add scanner module

This commit is contained in:
Daylin Morgan 2024-08-07 15:29:42 -05:00
parent 2e4e12f369
commit 18f89b41a8
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 35 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ enabled, ... }:
{ enabled, config, ... }:
{
oizys = {
vpn = enabled;
@ -11,6 +11,7 @@
};
vbox = enabled;
backups = enabled;
hp-scanner = enabled;
languages = [
"misc"
"nim"
@ -33,5 +34,5 @@
];
};
users.users.daylin.extraGroups = [ "audio" ];
users.users.${config.oizys.user}.extraGroups = [ "audio" ];
}

View file

@ -1,4 +1,9 @@
{ pkgs, enabled, ... }:
{
pkgs,
enabled,
config,
...
}:
{
networking.networkmanager = enabled;
services.fwupd = enabled;
@ -7,13 +12,6 @@
};
services.printing = enabled;
hardware.sane = enabled // {
extraBackends = [ pkgs.hplipWithPlugin ];
};
users.users.daylin.extraGroups = [
"scanner"
"lp"
];
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/lenovo/thinkpad/x1/9th-gen/default.nix
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix

View file

@ -28,6 +28,7 @@ in
gui
fonts
hp-scanner
languages

View file

@ -0,0 +1,25 @@
{
enabled,
config,
pkgs,
mkOizysModule,
...
}:
mkOizysModule config "hp-scanner" {
environment.systemPackages = [ pkgs.skanpage ];
hardware.sane = enabled // {
extraBackends = [ pkgs.hplipWithPlugin ];
};
services.avahi = enabled // {
nssmdns4 = true;
};
users.users.${config.oizys.user}.extraGroups = [
"scanner"
"lp"
];
}