updated server configuration

This commit is contained in:
2026-07-13 05:55:40 +10:00
parent f3c6f13e89
commit 567e2536b1
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -12,12 +12,14 @@
../../modules/beszel/enable-agent.nix ../../modules/beszel/enable-agent.nix
../../modules/services/enable-rpcbind.nix ../../modules/services/enable-rpcbind.nix
../../modules/services/zfs/enable-service.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.hostName = "server"; # Define your hostname.
networking.hostId = "6689f93e"; networking.hostId = "6689f93e";
boot.zfs.extraPools = [ "tank" ];
services.beszel.agent.environment = { services.beszel.agent.environment = {
#DOCKER_HOST = "tcp://docker-socket-proxy:2375"; #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 # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix. # accidentally delete configuration.nix.
+2 -2
View File
@@ -10,7 +10,7 @@ boot.supportedFilesystems = [ "zfs" ];
trim.enable = true; trim.enable = true;
}; };
systemd.services.zfs-import-cache.enable = true; #systemd.services.zfs-import-cache.enable = true;
systemd.services.zfs-mount.enable = true; systemd.services.zfs-mount.enable = true;
boot.zfs.devNodes = "/dev/disk/by-id"; boot.zfs.devNodes = "/dev/disk/by-id";
} }