2025-01-04 19:02:30 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2025-01-06 14:41:55 -05:00
|
|
|
inherit (lib) attrValues mkIf;
|
2025-01-04 19:02:30 -05:00
|
|
|
|
|
|
|
cfg = config.roles.desktop;
|
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2024-08-02 22:32:29 -04:00
|
|
|
services = {
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
printing = {
|
|
|
|
enable = true;
|
2024-08-31 19:16:06 -04:00
|
|
|
|
2025-01-06 14:41:55 -05:00
|
|
|
drivers = attrValues {
|
2024-09-25 15:12:11 -04:00
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
hplip
|
|
|
|
samsung-unified-linux-driver
|
|
|
|
;
|
|
|
|
};
|
2024-08-02 22:32:29 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./printer.nix;
|
|
|
|
}
|