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