summary refs log tree commit diff
path: root/nixos/modules/programs/system-config-printer.nix
blob: 34592dd7064b4d3e1c4c83bb89f283f3230101c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;

  };

}