nixpkgs/nixos/modules/programs/system-config-printer.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
469 B
Nix
Raw Permalink Normal View History

2019-08-27 15:39:48 -04:00
{
config,
pkgs,
lib,
...
}:
{
###### interface
options = {
programs.system-config-printer = {
enable = lib.mkEnableOption "system-config-printer, a Graphical user interface for CUPS administration";
2019-08-27 15:39:48 -04:00
};
};
###### implementation
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;
};
}