mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-09 20:33:15 -06:00
add scanner module
This commit is contained in:
parent
2e4e12f369
commit
18f89b41a8
4 changed files with 35 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ enabled, ... }:
|
{ enabled, config, ... }:
|
||||||
{
|
{
|
||||||
oizys = {
|
oizys = {
|
||||||
vpn = enabled;
|
vpn = enabled;
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
};
|
};
|
||||||
vbox = enabled;
|
vbox = enabled;
|
||||||
backups = enabled;
|
backups = enabled;
|
||||||
|
hp-scanner = enabled;
|
||||||
languages = [
|
languages = [
|
||||||
"misc"
|
"misc"
|
||||||
"nim"
|
"nim"
|
||||||
|
@ -33,5 +34,5 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.daylin.extraGroups = [ "audio" ];
|
users.users.${config.oizys.user}.extraGroups = [ "audio" ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ pkgs, enabled, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
enabled,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
networking.networkmanager = enabled;
|
networking.networkmanager = enabled;
|
||||||
services.fwupd = enabled;
|
services.fwupd = enabled;
|
||||||
|
@ -7,13 +12,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
services.printing = enabled;
|
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/lenovo/thinkpad/x1/9th-gen/default.nix
|
||||||
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix
|
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix
|
||||||
|
|
|
@ -28,6 +28,7 @@ in
|
||||||
|
|
||||||
gui
|
gui
|
||||||
fonts
|
fonts
|
||||||
|
hp-scanner
|
||||||
|
|
||||||
languages
|
languages
|
||||||
|
|
||||||
|
|
25
modules/services/scanner/hp-scanner.nix
Normal file
25
modules/services/scanner/hp-scanner.nix
Normal 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"
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue