services/ssh: add keys to agent automatically
This commit is contained in:
parent
080e3fb0db
commit
fb5ed25b58
1 changed files with 11 additions and 1 deletions
|
@ -2,10 +2,20 @@
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (config.local.systemVars) username;
|
||||||
|
in {
|
||||||
config = lib.mkIf config.local.profiles.desktop.enable {
|
config = lib.mkIf config.local.profiles.desktop.enable {
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
startAgent = true;
|
startAgent = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hjem.users.${username} = {
|
||||||
|
files = {
|
||||||
|
".ssh/config".text = ''
|
||||||
|
AddKeysToAgent yes
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue