Testing SSH signing
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
"${userModules}/userd/copyq"
|
||||
"${userModules}/userd/mako"
|
||||
"${userModules}/userd/udiskie"
|
||||
"${userModules}/userd/gpg"
|
||||
"${userModules}/utils/anyrun"
|
||||
"${userModules}/utils/misc"
|
||||
"${userModules}/utils/rofi"
|
||||
|
||||
18
home/modules/userd/gpg/default.nix
Normal file
18
home/modules/userd/gpg/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.userd.gpg;
|
||||
in {
|
||||
options = {
|
||||
modules.userd.gpg.enable = mkEnableOption "Enables gpg";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user