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 = [
|
extraGroups = [
|
||||||
"pipewire"
|
"pipewire"
|
||||||
"audio"
|
"audio"
|
||||||
|
"lp"
|
||||||
|
"scanner"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ in
|
|||||||
openFirewall = true;
|
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 = [
|
hardware.printers.ensurePrinters = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,6 +77,8 @@
|
|||||||
pkgs.python3 # for sshuttle
|
pkgs.python3 # for sshuttle
|
||||||
];
|
];
|
||||||
|
|
||||||
|
users.users.root.extraGroups = [ "lp" "scanner" ];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "zaatar";
|
hostName = "zaatar";
|
||||||
wireless.interfaces = [ "wlp2s0" ];
|
wireless.interfaces = [ "wlp2s0" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user