Files
nixos/home/ssh.nix
T

51 lines
1.1 KiB
Nix
Raw Normal View History

2022-04-18 14:01:00 -05:00
{ lib, ... }:
{
programs.ssh = {
enable = true;
serverAliveInterval = 60;
matchBlocks =
let
nas = { user = "admin"; };
owned = { user = "greg"; };
in {
"10.42.1.4" = lib.hm.dag.entryBefore ["10.42.*"] nas;
nas = nas;
"nas.thehellings.lan" = nas;
"nas.greg-hellings.gmail.com.beta.tailscale.net" = nas;
chronicles = nas;
"chronicles.thehellings.lan" = lib.hm.dag.entryBefore [ "*.thehellings.lan"] nas;
gh = { user = "git"; hostname = "github.com"; };
"*.thehellings.lan" = owned;
"10.42.*" = owned;
"host.crosswire.org crosswire" = {
hostname = "host.crosswire.org";
user = "ghellings";
};
fedpeople = {
hostname = "fedorapeople.org";
user = "greghellings";
};
"src.fedoraproject.org pkgs.fedoraproject.org" = {
user = "greghellings";
};
2022-05-04 13:52:38 -05:00
"127.*".extraOptions = {
PubkeyAcceptedAlgorithms = "+ssh-rsa";
HostkeyAlgorithms = "+ssh-rsa";
};
2022-04-18 14:01:00 -05:00
};
};
2022-04-19 22:39:04 -05:00
home.file = {
".ssh/id_rsa".text = builtins.readFile ./ssh/id_rsa;
".ssh/id_rsa.pub".text = builtins.readFile ./ssh/id_rsa.pub;
};
2022-04-18 14:01:00 -05:00
}