[skip ci] feat/fix: networking.hostName must be set for physical servers

This commit is contained in:
silver 2023-12-20 16:29:39 +00:00
parent ca9e1871cc
commit 93c21d3093
2 changed files with 6 additions and 0 deletions

View file

@ -18,6 +18,10 @@ in {
assertion = lists.any has_ip interfaces; assertion = lists.any has_ip interfaces;
message = "Must have a ip address set"; message = "Must have a ip address set";
} }
{
assertion = config.networking.hostName != "nixos";
message = "Must have networking.hostName set";
}
]; ];
}; };
} }

View file

@ -23,6 +23,8 @@ in {
./hardware/RM002.nix ./hardware/RM002.nix
]; ];
networking.hostName = name;
deployment = { deployment = {
targetHost = ip_pub; targetHost = ip_pub;
targetPort = 22; targetPort = 22;