colmena changes from nixops

This commit is contained in:
Haak Saxberg 2024-02-17 10:03:49 -08:00
parent 34a33e1989
commit 540f4007a8

View file

@ -3,12 +3,9 @@ let
serverIp = "192.168.1.44"; serverIp = "192.168.1.44";
in in
{ {
network = { meta = {
name = "house"; name = "house";
enableRollback = true;
description = "machines used in my house"; description = "machines used in my house";
storage.legacy = { };
}; };
defaults = { pkgs, ... }: defaults = { pkgs, ... }:
@ -104,6 +101,10 @@ in
/export/storage 192.168.1.0/24(rw,sync,nohide,no_subtree_check,insecure) /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 = { networking.firewall = {
allowedTCPPorts = [ 2049 ]; # NFS port allowedTCPPorts = [ 2049 ]; # NFS port
allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport allowedUDPPorts = [ 51820 ]; # Clients and peers can use the same port, see listenport