Move GPG config to own file
Move home/services/ files up one level, adjust imports accordingly.
This commit is contained in:
parent
9864acd7e9
commit
fe1f5bb6a2
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
stylix.targets.firefox.profileNames = [ "default" ];
|
||||
programs = {
|
||||
|
@ -15,7 +15,7 @@
|
|||
BehaviorPrivateBrowsing = "reject";
|
||||
Locked = true;
|
||||
};
|
||||
DefaultDownloadDirectory = "\${home}/Downloads";
|
||||
DefaultDownloadDirectory = config.xdg.userDirs.download;
|
||||
DisableAppUpdate = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableFirefoxScreenshots = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
inputs.nix-index-database.hmModules.nix-index
|
||||
./shell/default.nix
|
||||
./scripts/default.nix
|
||||
./services/password-store/default.nix
|
||||
./password-store/default.nix
|
||||
];
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
{
|
||||
imports = [
|
||||
./plasma/default.nix
|
||||
./emacs/default.nix
|
||||
./email/default.nix
|
||||
./calendar/default.nix
|
||||
./terminal/default.nix
|
||||
./emacs/default.nix
|
||||
./browser/default.nix
|
||||
./services/email/default.nix
|
||||
./services/calendar/default.nix
|
||||
];
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../shell/default.nix ];
|
||||
imports = [
|
||||
../shell/default.nix
|
||||
../shell/git.nix
|
||||
../gpg/default.nix
|
||||
];
|
||||
stylix.targets.emacs.enable = false;
|
||||
services = {
|
||||
gpg-agent = {
|
||||
enable = true;
|
||||
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
|
||||
};
|
||||
git-sync.repositories = {
|
||||
org = {
|
||||
path = "${config.xdg.userDirs.documents}/org";
|
||||
|
@ -31,9 +26,7 @@
|
|||
startWithUserSession = false;
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
gpg.enable = true;
|
||||
emacs = {
|
||||
programs.emacs = {
|
||||
# Clone emacs config from https://git.xenia.me.uk/pixelifytica/emacs.git
|
||||
enable = true;
|
||||
package = pkgs.emacs29-pgtk;
|
||||
|
@ -80,7 +73,6 @@
|
|||
emacsql-sqlite
|
||||
];
|
||||
};
|
||||
};
|
||||
home.packages = with pkgs; [
|
||||
# Emacs requirements
|
||||
imagemagick
|
||||
|
|
8
system/home/gpg/default.nix
Normal file
8
system/home/gpg/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
programs.gpg.enable = true;
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
|
||||
};
|
||||
}
|
22
system/home/password-store/default.nix
Normal file
22
system/home/password-store/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue