Archived
updated server configuration
This commit is contained in:
@@ -12,13 +12,15 @@
|
||||
../../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";
|
||||
#HUB_URL = "http://docker.sweet.home:8090";
|
||||
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user