summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2021-12-04 21:02:32 +0100
committermakefu <github@syntax-fehler.de>2021-12-04 21:02:32 +0100
commitc3fec61aadff34c067c568dc27858c06a13c66d8 (patch)
treefe42d1f401f2922b3d567da33920cb18e1a98141
parenta3a23f3963be1c003b7e1e16a921e8faf1d58cd9 (diff)
ma: add more groups to users
-rw-r--r--krebs/2configs/shack/share.nix1
-rw-r--r--lass/2configs/prism-share.nix3
-rw-r--r--makefu/2configs/filepimp-share.nix2
-rw-r--r--makefu/2configs/lanparty/samba.nix2
4 files changed, 8 insertions, 0 deletions
diff --git a/krebs/2configs/shack/share.nix b/krebs/2configs/shack/share.nix
index 3eb30964e..bc483e8d0 100644
--- a/krebs/2configs/shack/share.nix
+++ b/krebs/2configs/shack/share.nix
@@ -7,6 +7,7 @@
home = "/home/share";
createHome = true;
};
+ users.groups.share = {};
networking.firewall.allowedTCPPorts = [
139 445 # samba
diff --git a/lass/2configs/prism-share.nix b/lass/2configs/prism-share.nix
index aa3eb541d..fb803dd77 100644
--- a/lass/2configs/prism-share.nix
+++ b/lass/2configs/prism-share.nix
@@ -14,7 +14,10 @@ with import <stockholm/lib>;
description = "smb guest user";
home = "/home/share";
createHome = true;
+ group = "share";
};
+ users.groups.share = {};
+
services.samba = {
enable = true;
enableNmbd = true;
diff --git a/makefu/2configs/filepimp-share.nix b/makefu/2configs/filepimp-share.nix
index abbdcbbb2..850d432f3 100644
--- a/makefu/2configs/filepimp-share.nix
+++ b/makefu/2configs/filepimp-share.nix
@@ -9,7 +9,9 @@ in {
uid = config.ids.uids.smbguest; # effectively systemUser
description = "smb guest user";
home = "/var/empty";
+ group = "share";
};
+ users.groups.share = {};
services.samba = {
enable = true;
shares = {
diff --git a/makefu/2configs/lanparty/samba.nix b/makefu/2configs/lanparty/samba.nix
index 0bd29497d..e2fa58c4b 100644
--- a/makefu/2configs/lanparty/samba.nix
+++ b/makefu/2configs/lanparty/samba.nix
@@ -7,7 +7,9 @@
description = "smb guest user";
home = "/data/lanparty";
createHome = true;
+ group = "share";
};
+ users.groups.share = {};
services.samba = {
enable = true;
enableNmbd = true;