mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-15 00:07:54 -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"
|
|
];
|
|
|
|
}
|