fix: printer samba access rules

This commit is contained in:
Patrick 2024-03-12 15:15:37 +01:00
parent dacc8ad9e0
commit cb72a7a224
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -169,12 +169,10 @@
hasPaperless = true; hasPaperless = true;
} {}) } {})
(mkShare { (mkShare {
name = "printer"; name = "printer";
user = "printer"; user = "printer";
group = "printer"; group = "printer";
} { } {})
"write list" = "@family";
})
(mkShare { (mkShare {
name = "family-data"; name = "family-data";
user = "family"; user = "family";
@ -218,7 +216,12 @@
${group} = { ${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: fileSystems = lib.mkMerge (lib.flip lib.mapAttrsToList config.services.samba.shares (_: v: