Added hosts and hostname for Ratchet

This commit is contained in:
yaroslav
2025-06-12 14:57:07 +03:00
parent 0a10d16c18
commit d2495b9049
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -48,6 +48,7 @@
# still possible to use this option, but it's recommended to use it in conjunction # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
networking.hostName = "Ratchet";
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+5
View File
@@ -30,6 +30,11 @@
networking.firewall.allowedTCPPorts = [ 22 38401 ]; networking.firewall.allowedTCPPorts = [ 22 38401 ];
networking.firewall.allowedUDPPorts = [ 38401 ]; networking.firewall.allowedUDPPorts = [ 38401 ];
networking.nftables.enable = true; networking.nftables.enable = true;
networking.hosts = {
"192.168.1.116" = [ "Clank" ];
"192.168.1.222" = [ "Aphelion" ];
"192.168.1.94" = [ "Qwark" ];
};
# locales # locales
i18n.extraLocales = [ "en_US.UTF-8/UTF-8" "C.UTF-8/UTF-8" "ru_RU.UTF-8/UTF-8" ]; i18n.extraLocales = [ "en_US.UTF-8/UTF-8" "C.UTF-8/UTF-8" "ru_RU.UTF-8/UTF-8" ];