1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix zaatar build: move printer groups to configs/default.nix

printing.nix can't conditionally set users.users.me.extraGroups —
any mention of users.users.me in the module system creates the user
entry and triggers the isNormalUser/isSystemUser assertion on machines
without a 'me' user (like zaatar).

Move lp/scanner groups to configs/default.nix where users.users.me is
defined. On zaatar, root gets lp/scanner groups directly.
This commit is contained in:
2026-02-17 21:43:08 +01:00
parent ca6157a4f0
commit 6d2acd2e3c
3 changed files with 5 additions and 1 deletions

View File

@@ -66,6 +66,8 @@ in
extraGroups = [
"pipewire"
"audio"
"lp"
"scanner"
];
};

View File

@@ -26,7 +26,7 @@ in
openFirewall = true;
};
users.users.me.extraGroups = [ "lp" "scanner" ];
# users.users.me.extraGroups is set in configs/default.nix which defines the "me" user
hardware.printers.ensurePrinters = [
{