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";
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