erstelle nfs user

This commit is contained in:
ahtlon
2024-10-26 19:33:49 +02:00
parent 1201f0fc53
commit cfc023f9b1

View File

@@ -5,12 +5,21 @@
#bash-script?
#user-oder root mount
#systemd-automount villeicht
systemd.tmpfiles.rules = [ "d /exports 0755 malobeo malobeo -" ];
users.groups = { nfs = {gid = 1003; }; }; #erstelle nfs user und gruppe für isolation
users.user.nfs = {
isSystemUser = true;
group = "nfs";
uid = "1003";
};
systemd.tmpfiles.rules = [ "d /export 0775 nfs nfs -" ]; #erstelle nfs ordner
services.nfs.server = {
enable = true;
exports = ''
/export 192.168.1.0/24(ro, async, all_squash, anonuid=1003, anongid=1003)
'';
};
networking.firewall = {