refactor(nixos): inline SSH host name
This commit is contained in:
@@ -65,8 +65,7 @@ let
|
||||
"neogaia"
|
||||
"zeus"
|
||||
];
|
||||
isServer = lib.elem currentHost serverNames;
|
||||
currentHost = config.networking.hostName;
|
||||
isServer = lib.elem config.networking.hostName serverNames;
|
||||
serverNames = [ "pikachu" ];
|
||||
|
||||
knownHosts = lib.listToAttrs (
|
||||
@@ -115,8 +114,8 @@ let
|
||||
else
|
||||
[ "gitea" ];
|
||||
in
|
||||
lib.filter (name: name != currentHost) groupTargets;
|
||||
isWorkstation = lib.elem currentHost workstationNames;
|
||||
lib.filter (name: name != config.networking.hostName) groupTargets;
|
||||
isWorkstation = lib.elem config.networking.hostName workstationNames;
|
||||
|
||||
hostKeySecret = type: "ssh-host-${type}-key";
|
||||
hostKeyTypes = [
|
||||
|
||||
Reference in New Issue
Block a user