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,
|
||||
...
|
||||
}:
|
||||
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 ];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue