From cb72a7a22484398c203fbe7bac149230f57f6c40 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 12 Mar 2024 15:15:37 +0100 Subject: [PATCH] fix: printer samba access rules --- modules/services/samba.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/services/samba.nix b/modules/services/samba.nix index fdb6fd1..3f99680 100644 --- a/modules/services/samba.nix +++ b/modules/services/samba.nix @@ -169,12 +169,10 @@ hasPaperless = true; } {}) (mkShare { - name = "printer"; - user = "printer"; - group = "printer"; - } { - "write list" = "@family"; - }) + name = "printer"; + user = "printer"; + group = "printer"; + } {}) (mkShare { name = "family-data"; user = "family"; @@ -218,7 +216,12 @@ ${group} = { }; })) - ++ [{family.members = ["patrick" "david" "helen" "ggr"];}]); + ++ [ + { + family.members = ["patrick" "david" "helen" "ggr"]; + printer.members = ["patrick" "david" "helen" "ggr"]; + } + ]); }; fileSystems = lib.mkMerge (lib.flip lib.mapAttrsToList config.services.samba.shares (_: v: