diff --git a/config/hosts/aspects/doloro-shared.nix b/config/hosts/aspects/doloro-shared.nix index 5c130f2..85036e3 100644 --- a/config/hosts/aspects/doloro-shared.nix +++ b/config/hosts/aspects/doloro-shared.nix @@ -12,6 +12,7 @@ modules.tmux modules.hyfetch + modules.ssh ]; homeManager = { pkgs, ... }: diff --git a/config/modules/ssh.nix b/config/modules/ssh.nix new file mode 100644 index 0000000..08ce86b --- /dev/null +++ b/config/modules/ssh.nix @@ -0,0 +1,24 @@ +{ den, modules, ... }: +{ + modules.ssh = { + homeManager = + { home, ... }: + { + programs = { + ssh = { + enable = true; + enableDefaultConfig = false; + matchBlocks = { + "*" = { + addKeysToAgent = "yes"; + identityFile = [ + "~/.ssh/id_ed25519" + "~/.ssh/id_gitea_scug" + ]; + }; + }; + }; + }; + }; + }; +}