Closed willruggiano closed 2 years ago
It is expected for hostname to be specified as hosts.<hostname> = {...}
for consistency reasons. This is not a bug.
If you really wish overwrite it - you can do it via networking.hostName = lib.mkForce "bar";
If I have;
and then in
foo.nix
I have;I get an error;
There is (seemingly?) an attempt to support explicit hostName specification; https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/4db80b033eaa02d8aae46844364b24e0375214f8/lib/mkFlake.nix#L138 However either I am not specifying
networking.hostName
correctly (e.g. it needs to be an argument tomkFlake
in some way), or this logic is broken, or I am just misinterpreting the code :)