scanner support: create scanner group. Users need to be in this group to access scanners.
This commit is contained in:
parent
15a15be2f6
commit
860cbf7890
@ -131,6 +131,7 @@ in
|
|||||||
spamd = 56;
|
spamd = 56;
|
||||||
networkmanager = 57;
|
networkmanager = 57;
|
||||||
nslcd = 58;
|
nslcd = 58;
|
||||||
|
scanner = 59;
|
||||||
|
|
||||||
# When adding a gid, make sure it doesn't match an existing uid.
|
# When adding a gid, make sure it doesn't match an existing uid.
|
||||||
|
|
||||||
|
@ -29,6 +29,12 @@ with pkgs.lib;
|
|||||||
in mkIf config.hardware.sane.enable {
|
in mkIf config.hardware.sane.enable {
|
||||||
environment.systemPackages = [ pkg ];
|
environment.systemPackages = [ pkg ];
|
||||||
services.udev.packages = [ pkg ];
|
services.udev.packages = [ pkg ];
|
||||||
|
|
||||||
|
users.extraGroups = singleton {
|
||||||
|
name = "scanner";
|
||||||
|
gid = config.ids.gids.scanner;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user