set hostname per machine
This commit is contained in:
parent
8776ad93e9
commit
462c68c2ff
|
@ -83,6 +83,7 @@
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./modules
|
./modules
|
||||||
./machines/${name}
|
./machines/${name}
|
||||||
|
(import ./helpers/set-hostname.nix name)
|
||||||
] ++ extraModules;
|
] ++ extraModules;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
4
helpers/set-hostname.nix
Normal file
4
helpers/set-hostname.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
hostName: { ... }:
|
||||||
|
{
|
||||||
|
networking.hostName = hostName;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user