nixos-configs/modules/desktop/environment/modules/printer.nix
matt1432 82c8cb4b1f
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: some nix code cleanups
2025-01-06 14:41:55 -05:00

30 lines
468 B
Nix

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