ma: add groups to users
This commit is contained in:
parent
6392c7b55d
commit
4745d9af8e
|
@ -13,7 +13,9 @@
|
||||||
description = "smb guest user";
|
description = "smb guest user";
|
||||||
home = "/home/share";
|
home = "/home/share";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
group = "smbguest";
|
||||||
};
|
};
|
||||||
|
users.groups.smbguest = {};
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
shares = {
|
shares = {
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
description = "smb guest user";
|
description = "smb guest user";
|
||||||
home = "/home/share";
|
home = "/home/share";
|
||||||
createHome = true;
|
createHome = true;
|
||||||
|
group = "smbguest";
|
||||||
};
|
};
|
||||||
|
users.groups.smbguest = {};
|
||||||
users.groups.mpd.members = [ "makefu" ];
|
users.groups.mpd.members = [ "makefu" ];
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -24,7 +24,9 @@ in {
|
||||||
inherit home;
|
inherit home;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
group = "arafetch";
|
||||||
};
|
};
|
||||||
|
users.groups.arafetch = {};
|
||||||
|
|
||||||
systemd.services.ara2mqtt = {
|
systemd.services.ara2mqtt = {
|
||||||
startAt = "05:00:00";
|
startAt = "05:00:00";
|
||||||
|
|
|
@ -51,6 +51,7 @@ let
|
||||||
users.users.ps3netsrv = {
|
users.users.ps3netsrv = {
|
||||||
uid = genid "ps3netsrv";
|
uid = genid "ps3netsrv";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
group = "ps3netsrv";
|
||||||
};
|
};
|
||||||
users.groups.ps3netsrv.gid = genid "ps3netsrv";
|
users.groups.ps3netsrv.gid = genid "ps3netsrv";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue