2020-04-24 23:36:52 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
services.system-config-printer = {
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "system-config-printer, a service for CUPS administration used by printing interfaces");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.services.system-config-printer.enable {
|
|
|
|
|
|
|
|
services.dbus.packages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.packages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
services.udev.packages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
# for $out/bin/install-printer-driver
|
2022-08-21 13:32:41 +00:00
|
|
|
# TODO: Enable once #177946 is resolved
|
|
|
|
# services.packagekit.enable = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|