2020-04-24 23:36:52 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.system-config-printer = {
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
enable = mkEnableOption (lib.mdDoc "system-config-printer, a Graphical user interface for CUPS administration");
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.programs.system-config-printer.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
services.system-config-printer.enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|