nixos-config/modules/services/cups/default.nix

28 lines
549 B
Nix
Raw Normal View History

2022-04-27 11:10:16 +00:00
{ 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 ];
};
2023-07-19 12:01:58 +00:00
services.avahi = {
enable = lib.mkForce true;
nssmdns = true;
};
2022-04-27 11:10:16 +00:00
hardware.sane = {
enable = true;
extraBackends = with pkgs; [ sane-airscan hplip ];
};
};
}