From cfc023f9b103eeea5cc2576b9416babbb6e09a3b Mon Sep 17 00:00:00 2001 From: ahtlon Date: Sat, 26 Oct 2024 19:33:49 +0200 Subject: [PATCH] erstelle nfs user --- machines/lucia/file_server.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 = {