2024-12-10 20:26:33 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2019-08-27 15:39:48 -04:00
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.system-config-printer = {
|
|
|
|
|
2024-04-17 14:37:58 +03:00
|
|
|
enable = lib.mkEnableOption "system-config-printer, a Graphical user interface for CUPS administration";
|
2019-08-27 15:39:48 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
2024-04-17 14:37:58 +03:00
|
|
|
config = lib.mkIf config.programs.system-config-printer.enable {
|
2019-08-27 15:39:48 -04:00
|
|
|
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.system-config-printer
|
|
|
|
];
|
|
|
|
|
|
|
|
services.system-config-printer.enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|