1 2 3 4 5 6 7 8 9 10
{ this, localHostname ? this.hostname, ... }: { networking = { computerName = localHostname; hostName = localHostname; }; }
Consider giving Nix/NixOS a try! <3