cups: Add module

This commit is contained in:
2022-04-27 13:10:16 +02:00
parent 59f061711a
commit 1361348bf1
4 changed files with 29 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
{ lib, config, pkgs, ...}:
let
cfg = config.ptw.services.cups;
in {
options.ptw.services.cups = {
enable = lib.mkEnableOption "Enable Cups";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ gnome.simple-scan ];
services.printing = {
enable = true;
drivers = with pkgs; [ hplip ];
};
hardware.sane = {
enable = true;
extraBackends = with pkgs; [ sane-airscan hplip ];
};
};
}