scanner support: create scanner group. Users need to be in this group to access scanners.

This commit is contained in:
Evgeny Egorochkin 2012-12-06 02:57:19 +02:00
parent 15a15be2f6
commit 860cbf7890
2 changed files with 7 additions and 0 deletions

@ -131,6 +131,7 @@ in
spamd = 56;
networkmanager = 57;
nslcd = 58;
scanner = 59;
# 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 {
environment.systemPackages = [ pkg ];
services.udev.packages = [ pkg ];
users.extraGroups = singleton {
name = "scanner";
gid = config.ids.gids.scanner;
};
};
}