diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 3351194..44e4022 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -12,12 +12,14 @@ ../../modules/beszel/enable-agent.nix ../../modules/services/enable-rpcbind.nix ../../modules/services/zfs/enable-service.nix - ../../modules/services/zfs/auto-mount-volumes.nix +# ../../modules/services/zfs/auto-mount-volumes.nix ]; networking.hostName = "server"; # Define your hostname. networking.hostId = "6689f93e"; + +boot.zfs.extraPools = [ "tank" ]; services.beszel.agent.environment = { #DOCKER_HOST = "tcp://docker-socket-proxy:2375"; @@ -42,6 +44,9 @@ services.nfs.server = { ''; }; +networking.firewall.allowedTCPPorts = [ 111 2049 ]; + # networking.firewall.allowedUDPPorts = [ ... ]; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix. diff --git a/modules/services/zfs/enable-service.nix b/modules/services/zfs/enable-service.nix index d128db6..b4e0952 100644 --- a/modules/services/zfs/enable-service.nix +++ b/modules/services/zfs/enable-service.nix @@ -10,7 +10,7 @@ boot.supportedFilesystems = [ "zfs" ]; trim.enable = true; }; -systemd.services.zfs-import-cache.enable = true; +#systemd.services.zfs-import-cache.enable = true; systemd.services.zfs-mount.enable = true; boot.zfs.devNodes = "/dev/disk/by-id"; - } \ No newline at end of file + }