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