[skip ci] feat/fix: networking.hostName must be set for physical servers
This commit is contained in:
parent
ca9e1871cc
commit
93c21d3093
2 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,10 @@ in {
|
|||
assertion = lists.any has_ip interfaces;
|
||||
message = "Must have a ip address set";
|
||||
}
|
||||
{
|
||||
assertion = config.networking.hostName != "nixos";
|
||||
message = "Must have networking.hostName set";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,6 +23,8 @@ in {
|
|||
./hardware/RM002.nix
|
||||
];
|
||||
|
||||
networking.hostName = name;
|
||||
|
||||
deployment = {
|
||||
targetHost = ip_pub;
|
||||
targetPort = 22;
|
||||
|
|
Loading…
Reference in a new issue