ma: add more groups to users
This commit is contained in:
parent
a3a23f3963
commit
c3fec61aad
@ -7,6 +7,7 @@
|
|||||||
home = "/home/share";
|
home = "/home/share";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
|
users.groups.share = {};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
139 445 # samba
|
139 445 # samba
|
||||||
|
@ -14,7 +14,10 @@ with import <stockholm/lib>;
|
|||||||
description = "smb guest user";
|
description = "smb guest user";
|
||||||
home = "/home/share";
|
home = "/home/share";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
group = "share";
|
||||||
};
|
};
|
||||||
|
users.groups.share = {};
|
||||||
|
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNmbd = true;
|
enableNmbd = true;
|
||||||
|
@ -9,7 +9,9 @@ in {
|
|||||||
uid = config.ids.uids.smbguest; # effectively systemUser
|
uid = config.ids.uids.smbguest; # effectively systemUser
|
||||||
description = "smb guest user";
|
description = "smb guest user";
|
||||||
home = "/var/empty";
|
home = "/var/empty";
|
||||||
|
group = "share";
|
||||||
};
|
};
|
||||||
|
users.groups.share = {};
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shares = {
|
shares = {
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
description = "smb guest user";
|
description = "smb guest user";
|
||||||
home = "/data/lanparty";
|
home = "/data/lanparty";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
group = "share";
|
||||||
};
|
};
|
||||||
|
users.groups.share = {};
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNmbd = true;
|
enableNmbd = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user