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:
@@ -66,6 +66,8 @@ in
|
||||
extraGroups = [
|
||||
"pipewire"
|
||||
"audio"
|
||||
"lp"
|
||||
"scanner"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -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 = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user