add simple-scan to modules/desktop/printing

This commit is contained in:
Sakooooo 2024-11-01 14:07:50 +04:00
parent 23089e4bb2
commit ef440ce2d1
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -1,24 +1,13 @@
{ { options, config, lib, pkgs, ... }:
options, let cfg = config.modules.desktop.printing;
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.desktop.printing;
in { in {
options.modules.desktop.printing = { options.modules.desktop.printing = { enable = lib.mkEnableOption false; };
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# enable printing itself # enable printing itself
services.printing = { services.printing = {
enable = true; enable = true;
drivers = with pkgs; [ drivers = with pkgs; [ epson-escpr ];
epson-escpr
];
}; };
# autodiscovery of printers # autodiscovery of printers
@ -28,5 +17,7 @@ in {
openFirewall = true; openFirewall = true;
}; };
users.users.sako.packages = with pkgs; [ simple-scan ];
}; };
} }