erstelle nfs user
This commit is contained in:
@@ -5,12 +5,21 @@
|
|||||||
#bash-script?
|
#bash-script?
|
||||||
#user-oder root mount
|
#user-oder root mount
|
||||||
#systemd-automount villeicht
|
#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 = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exports = ''
|
exports = ''
|
||||||
|
/export 192.168.1.0/24(ro, async, all_squash, anonuid=1003, anongid=1003)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|||||||
Reference in New Issue
Block a user