summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-07-23 12:29:43 +0200
committerRory& <root@rory.gay>2024-07-23 12:29:43 +0200
commit505f5b342242ee62069d5fca314bb80b5923336b (patch)
treecf6c7d964378b825dd0979b63315b75dd8ca7b48
parentpass nixpkgs draupnir to correct output (diff)
downloadRory-Open-Architecture-505f5b342242ee62069d5fca314bb80b5923336b.tar.xz
Use networking.hosts instead of etc
-rwxr-xr-xhost/Rory-nginx/services/containers/draupnir-cme/root.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/host/Rory-nginx/services/containers/draupnir-cme/root.nix b/host/Rory-nginx/services/containers/draupnir-cme/root.nix
index 6725c3b..3802ee2 100755
--- a/host/Rory-nginx/services/containers/draupnir-cme/root.nix
+++ b/host/Rory-nginx/services/containers/draupnir-cme/root.nix
@@ -33,11 +33,10 @@
     nameserver 1.0.0.1
   '';
 
-  environment.etc."hosts".text = ''
-    192.168.100.16 matrix.rory.gay
-    192.168.100.16 rory.gay
-  '';
-
+  networking.hosts = {
+    "192.168.100.16" = [ "matrix.rory.gay" "rory.gay" ];
+  }
+  
   networking.firewall = {
     enable = true;
   };