mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added new workstation configs
This commit is contained in:
parent
ec56fef89b
commit
3a8d303d6f
4 changed files with 189 additions and 6 deletions
|
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.security.gpg;
|
||||
gui = config.modules.user.gui.wm;
|
||||
wm = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues gui);
|
||||
wm = config.modules.user.gui.wm;
|
||||
gui = {
|
||||
enable = builtins.any (mod: mod.enable or false) (builtins.attrValues wm);
|
||||
};
|
||||
|
||||
in
|
||||
|
|
@ -22,7 +22,16 @@ in
|
|||
text = "${config.user.keys.pgp.windows}";
|
||||
trust = 5;
|
||||
}
|
||||
];
|
||||
] ++ (if wm.sway.enable then [
|
||||
{
|
||||
text = "${config.user.keys.pgp.work}";
|
||||
trust = 5;
|
||||
}
|
||||
{
|
||||
text = "${config.user.keys.pgp.ccur}";
|
||||
trust = 5;
|
||||
}
|
||||
] else []);
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
|
|
@ -32,7 +41,7 @@ in
|
|||
enableScDaemon = true;
|
||||
|
||||
pinentryPackage =
|
||||
if wm.enable then
|
||||
if gui.enable then
|
||||
pkgs.pinentry-gnome3
|
||||
else
|
||||
pkgs.pinentry-curses;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue