mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Network] compute networking.hostId using the hash of the hostname
This commit is contained in:
parent
65e6e93be8
commit
1102138015
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ in
|
||||||
# Must always be false
|
# Must always be false
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
networking.hostId = mkDefault (builtins.abort "Default hostId not changed" null);
|
networking.hostId = mkDefault (substring 0 8 (builtins.hashString "sha256" config.networking.hostName));
|
||||||
networking.hostName = mkDefault (builtins.abort "Default hostname not changed" null);
|
networking.hostName = mkDefault (builtins.abort "Default hostname not changed" null);
|
||||||
|
|
||||||
# Needed for proper WiFi support in some countries (like France, for instance)
|
# Needed for proper WiFi support in some countries (like France, for instance)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue