nixos-configs/modules/desktop/environment/modules/printer.nix

31 lines
468 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: let
2025-01-06 14:41:55 -05:00
inherit (lib) attrValues mkIf;
cfg = config.roles.desktop;
in {
config = mkIf cfg.enable {
services = {
# Enable CUPS to print documents.
printing = {
enable = true;
2025-01-06 14:41:55 -05:00
drivers = attrValues {
inherit
(pkgs)
hplip
samsung-unified-linux-driver
;
};
};
};
};
# For accurate stack trace
_file = ./printer.nix;
}