nixos/system-config-printer: init

This commit is contained in:
worldofpeace
2019-08-27 15:39:48 -04:00
parent ce67c2ef59
commit 792444af84
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{ config, pkgs, lib, ... }:
with lib;
{
###### interface
options = {
programs.system-config-printer = {
enable = mkEnableOption "system-config-printer, a Graphical user interface for CUPS administration";
};
};
###### implementation
config = mkIf config.programs.system-config-printer.enable {
environment.systemPackages = [
pkgs.system-config-printer
];
services.system-config-printer.enable = true;
};
}