move more modules to common section

This commit is contained in:
Noah Masur
2022-05-22 19:43:46 -04:00
parent df96ff6cea
commit 5b9058935d
9 changed files with 131 additions and 125 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: {
{ config, pkgs, lib, ... }: {
home-manager.users.${config.user} = {
programs.gpg.enable = true;
@ -10,7 +10,7 @@
maxCacheTtlSsh = 34560000; # Can never reset
pinentryFlavor = "tty";
};
home.packages = with pkgs; [ pinentry ];
home = lib.mkIf config.gui.enable { packages = with pkgs; [ pinentry ]; };
};
}