add simple-scan to modules/desktop/printing
This commit is contained in:
parent
23089e4bb2
commit
ef440ce2d1
1 changed files with 6 additions and 15 deletions
|
@ -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 ];
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue