oizys/modules/services/scanner/hp-scanner.nix

26 lines
381 B
Nix
Raw Normal View History

2024-08-07 15:29:42 -05:00
{
enabled,
config,
pkgs,
mkOizysModule,
...
}:
mkOizysModule config "hp-scanner" {
2024-08-07 17:17:44 -05:00
environment.systemPackages = [ pkgs.kdePackages.skanpage ];
2024-08-07 15:29:42 -05:00
hardware.sane = enabled // {
extraBackends = [ pkgs.hplipWithPlugin ];
};
services.avahi = enabled // {
nssmdns4 = true;
};
users.users.${config.oizys.user}.extraGroups = [
"scanner"
"lp"
];
}