2019-08-27 20:39:48 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.system-config-printer = {
|
|
|
|
|
2022-08-28 20:18:44 +01:00
|
|
|
enable = mkEnableOption (lib.mdDoc "system-config-printer, a Graphical user interface for CUPS administration");
|
2019-08-27 20:39:48 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf config.programs.system-config-printer.enable {
|
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
services.system-config-printer.enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|