troubleshooting NFS shares

This commit is contained in:
Haak Saxberg 2022-08-11 15:13:23 -07:00
parent f5b6e307be
commit 35b60c250d
2 changed files with 8 additions and 11 deletions

View file

@ -77,8 +77,8 @@ in
services.nfs.server.enable = true;
services.nfs.server.exports = ''
/export 192.168.1.0/24(insecure,crossmnt,fsid=0)
/export/storage 192.168.1.0/24(insecure)
/export 192.168.1.0/24(insecure,crossmnt,no_subtree_check,fsid=0)
/export/storage 192.168.1.0/24(rw,sync,nohide,insecure)
'';
networking.firewall = {
@ -121,14 +121,5 @@ in
];
};
};
systemd.services.my-service = {
after = [ "wireguard-key.service" ];
wants = [ "wireguard-key.service" ];
script = ''
export MY_SECRET=$(cat /run/keys/my-secret)
run-my-program
'';
};
};
}