From 540f4007a86e63177715bd1b0e4cd446ff3476a5 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Sat, 17 Feb 2024 10:03:49 -0800 Subject: [PATCH] colmena changes from nixops --- nix/deployments/{nixops.nix => hive.nix} | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename nix/deployments/{nixops.nix => hive.nix} (98%) diff --git a/nix/deployments/nixops.nix b/nix/deployments/hive.nix similarity index 98% rename from nix/deployments/nixops.nix rename to nix/deployments/hive.nix index e28b96d..9e813cd 100644 --- a/nix/deployments/nixops.nix +++ b/nix/deployments/hive.nix @@ -3,12 +3,9 @@ let serverIp = "192.168.1.44"; in { - network = { + meta = { name = "house"; - enableRollback = true; description = "machines used in my house"; - - storage.legacy = { }; }; defaults = { pkgs, ... }: @@ -104,6 +101,10 @@ in /export/storage 192.168.1.0/24(rw,sync,nohide,no_subtree_check,insecure) ''; + systemd.tmpfiles.rules = [ + "d /var/lib/nfs/nfsdcld 755 root root" + ]; + networking.firewall = { allowedTCPPorts = [ 2049 ]; # NFS port allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport