flocon/modules/services/ssh.nix
Anthony Rodriguez b944193615
treewide: pedantic inherits
This fixes inherits and library functions usage, to inherit them
explicitely at top level of the file.
2025-02-23 00:01:57 +01:00

23 lines
366 B
Nix

{
lib,
config,
...
}: let
inherit (lib.modules) mkIf;
inherit (config.local.systemVars) username;
in {
config = mkIf config.local.profiles.desktop.enable {
programs.ssh = {
startAgent = true;
};
hjem.users.${username} = {
files = {
".ssh/config".text = ''
AddKeysToAgent yes
'';
};
};
};
}