From 505f5b342242ee62069d5fca314bb80b5923336b Mon Sep 17 00:00:00 2001 From: Rory& Date: Tue, 23 Jul 2024 12:29:43 +0200 Subject: Use networking.hosts instead of etc --- host/Rory-nginx/services/containers/draupnir-cme/root.nix | 9 ++++----- 1 file 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; }; -- cgit 1.4.1