1
0

flake/nixosConfigurations.nix: Generate hostname from host attribute name

This commit is contained in:
2024-05-23 13:51:06 +02:00
parent a2a84a66bc
commit 985b4d4c17
26 changed files with 25 additions and 76 deletions

View File

@@ -14,8 +14,6 @@
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/vda";
networking.hostName = "storage-2";
networking.useDHCP = false;
networking.interfaces.ens19.ipv4.addresses = [ { address = "192.168.10.35"; prefixLength = 24; } ];
networking.interfaces.ens18.ipv6.addresses = [ { address = "2001:638:904:ffc0::4"; prefixLength = 64; } ];