diff --git a/machines/lucia/file_server.nix b/machines/lucia/file_server.nix index d2a0efac..c326b04a 100644 --- a/machines/lucia/file_server.nix +++ b/machines/lucia/file_server.nix @@ -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 = {