3
0
Fork 0
forked from mirrors/nixpkgs

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

@ -151,6 +151,7 @@
./programs/sysdig.nix
./programs/systemtap.nix
./programs/sway.nix
./programs/system-config-printer.nix
./programs/thefuck.nix
./programs/tmux.nix
./programs/tsm-client.nix
@ -309,6 +310,7 @@
./services/desktops/gnome3/tracker.nix
./services/desktops/gnome3/tracker-miners.nix
./services/desktops/profile-sync-daemon.nix
./services/desktops/system-config-printer.nix
./services/desktops/telepathy.nix
./services/desktops/tumbler.nix
./services/desktops/zeitgeist.nix

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;
};
}

View file

@ -0,0 +1,38 @@
{ config, pkgs, lib, ... }:
with lib;
{
###### interface
options = {
services.system-config-printer = {
enable = mkEnableOption "system-config-printer, a service for CUPS administration used by printing interfaces";
};
};
###### implementation
config = mkIf config.services.system-config-printer.enable {
services.dbus.packages = [
pkgs.system-config-printer
];
systemd.packages = [
pkgs.system-config-printer
];
services.udev.packages = [
pkgs.system-config-printer
];
};
}