Compare commits

..

2 commits

Author SHA1 Message Date
Evie Litherland-Smith fe1f5bb6a2 Move GPG config to own file
Move home/services/ files up one level, adjust imports accordingly.
2024-10-05 16:39:27 +01:00
Evie Litherland-Smith 9864acd7e9 Revert "Firefox: add proton-pass, remove browserpass and simplelogin"
This reverts commit db7d968f49.
2024-10-05 16:24:23 +01:00
14 changed files with 289 additions and 284 deletions

View file

@ -1,7 +1,12 @@
{ pkgs, ... }: { config, pkgs, ... }:
{ {
stylix.targets.firefox.profileNames = [ "default" ]; stylix.targets.firefox.profileNames = [ "default" ];
programs.firefox = { programs = {
browserpass = {
enable = true;
browsers = [ "firefox" ];
};
firefox = {
enable = true; enable = true;
policies = { policies = {
BlockAboutProfiles = true; BlockAboutProfiles = true;
@ -10,7 +15,7 @@
BehaviorPrivateBrowsing = "reject"; BehaviorPrivateBrowsing = "reject";
Locked = true; Locked = true;
}; };
DefaultDownloadDirectory = "\${home}/Downloads"; DefaultDownloadDirectory = config.xdg.userDirs.download;
DisableAppUpdate = true; DisableAppUpdate = true;
DisableFirefoxAccounts = true; DisableFirefoxAccounts = true;
DisableFirefoxScreenshots = true; DisableFirefoxScreenshots = true;
@ -39,10 +44,15 @@
installation_mode = "force_installed"; installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
}; };
# Proton Pass # Browserpass
"78272b6fa58f4a1abaac99321d503a20@proton.me" = { "browserpass@maximbaz.com" = {
installation_mode = "force_installed"; installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/proton-pass/latest.xpi"; install_url = "https://addons.mozilla.org/firefox/downloads/latest/browserpass-ce/latest.xpi";
};
# SimpleLogin
"addon@simplelogin" = {
installation_mode = "force_installed";
install_url = "https://addons.mozilla.org/firefox/downloads/latest/simplelogin/latest.xpi";
}; };
# Consent-O-Matic # Consent-O-Matic
"gdpr@cavi.au.dk" = { "gdpr@cavi.au.dk" = {
@ -202,4 +212,5 @@
}; };
}; };
}; };
};
} }

View file

@ -4,7 +4,7 @@
inputs.nix-index-database.hmModules.nix-index inputs.nix-index-database.hmModules.nix-index
./shell/default.nix ./shell/default.nix
./scripts/default.nix ./scripts/default.nix
./services/password-store/default.nix ./password-store/default.nix
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }

View file

@ -2,11 +2,11 @@
{ {
imports = [ imports = [
./plasma/default.nix ./plasma/default.nix
./emacs/default.nix ./email/default.nix
./calendar/default.nix
./terminal/default.nix ./terminal/default.nix
./emacs/default.nix
./browser/default.nix ./browser/default.nix
./services/email/default.nix
./services/calendar/default.nix
]; ];
home = { home = {
packages = with pkgs; [ packages = with pkgs; [

View file

@ -1,17 +1,12 @@
{ config, pkgs, ... }:
{ {
config, imports = [
lib, ../shell/default.nix
pkgs, ../shell/git.nix
... ../gpg/default.nix
}: ];
{
imports = [ ../shell/default.nix ];
stylix.targets.emacs.enable = false; stylix.targets.emacs.enable = false;
services = { services = {
gpg-agent = {
enable = true;
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
};
git-sync.repositories = { git-sync.repositories = {
org = { org = {
path = "${config.xdg.userDirs.documents}/org"; path = "${config.xdg.userDirs.documents}/org";
@ -31,9 +26,7 @@
startWithUserSession = false; startWithUserSession = false;
}; };
}; };
programs = { programs.emacs = {
gpg.enable = true;
emacs = {
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git # Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
enable = true; enable = true;
package = pkgs.emacs29-pgtk; package = pkgs.emacs29-pgtk;
@ -80,7 +73,6 @@
emacsql-sqlite emacsql-sqlite
]; ];
}; };
};
home.packages = with pkgs; [ home.packages = with pkgs; [
# Emacs requirements # Emacs requirements
imagemagick imagemagick

View file

@ -0,0 +1,8 @@
{ lib, pkgs, ... }:
{
programs.gpg.enable = true;
services.gpg-agent = {
enable = true;
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
};
}

View file

@ -0,0 +1,22 @@
{ config, pkgs, ... }:
{
imports = [
../gpg/default.nix
../shell/git.nix
];
services.git-sync.repositories.password-store = {
path = config.programs.password-store.settings.PASSWORD_STORE_DIR;
uri = "git+https://git.xenia.me.uk/pixelifytica/pass.git";
};
programs = {
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass-nodmenu.withExtensions (exts: with exts; [ pass-update ]);
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
}

View file

@ -1,28 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
programs = {
gpg.enable = true;
password-store = {
enable = true;
package = pkgs.pass-nodmenu.withExtensions (
exts: with exts; [
pass-update
pass-import
]
); # pass-audit
settings = {
PASSWORD_STORE_DIR = "${config.home.homeDirectory}/.password-store";
PASSWORD_STORE_ENABLE_EXTENSIONS = "true";
};
};
};
services.gpg-agent = {
enable = true;
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
};
}