mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-23 11:00:44 -06:00
25 lines
381 B
Nix
25 lines
381 B
Nix
{
|
|
enabled,
|
|
config,
|
|
pkgs,
|
|
mkOizysModule,
|
|
...
|
|
}:
|
|
mkOizysModule config "hp-scanner" {
|
|
|
|
environment.systemPackages = [ pkgs.kdePackages.skanpage ];
|
|
|
|
hardware.sane = enabled // {
|
|
extraBackends = [ pkgs.hplipWithPlugin ];
|
|
};
|
|
|
|
services.avahi = enabled // {
|
|
nssmdns4 = true;
|
|
};
|
|
|
|
users.users.${config.oizys.user}.extraGroups = [
|
|
"scanner"
|
|
"lp"
|
|
];
|
|
|
|
}
|