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