Evie Litherland-Smith
5ff572a9b7
Move home/ directory under system/ directory. Remove duplicated machine-specific config files, now handled as one per host (excluding hardware-configuration directory) Move as much configuration as possible out of flake.nix and into more appropriate files (e.g. system/default.nix) Add a desktop.nix and laptop.nix for system, both will import home/desktop.nix and home/laptop.nix respectively to reduce duplication in machine-specific config files Remove games and streaming directories, moved directly into Vanguard config file Remove home/personal.nix since it ended up being empty after changes Remove old sway config since I haven't been maintaining it and this refactor will definitely break it
42 lines
1,000 B
Nix
42 lines
1,000 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
xdg.configFile."pass-git-helper/git-pass-mapping.ini".source = ./git-pass-mapping.ini;
|
|
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 = rec {
|
|
enable = true;
|
|
maxCacheTtl = 86400;
|
|
defaultCacheTtl = maxCacheTtl;
|
|
defaultCacheTtlSsh = maxCacheTtl;
|
|
pinentryPackage = lib.mkDefault pkgs.pinentry-all;
|
|
extraConfig = ''
|
|
no-allow-external-cache
|
|
'';
|
|
};
|
|
git-sync.repositories.password-store = {
|
|
path = "${config.home.homeDirectory}/.password-store";
|
|
uri = "git+https://git.xenia.me.uk/xenia/pass.git";
|
|
};
|
|
};
|
|
}
|