diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-03-11 01:24:31 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-03-11 01:58:40 +0300 |
commit | 4e58b33deea7d62f109bdb63d5d79397044b5d90 (patch) | |
tree | aba8b7c74e789166374cf08e351fe1beb6806851 /nixos/modules/services/x11/colord.nix | |
parent | 776845bbeb79091657570c541f7daade2efe912a (diff) | |
download | nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar.gz nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar.bz2 nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar.lz nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar.xz nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.tar.zst nixlib-4e58b33deea7d62f109bdb63d5d79397044b5d90.zip |
colord service: init
Diffstat (limited to 'nixos/modules/services/x11/colord.nix')
-rw-r--r-- | nixos/modules/services/x11/colord.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/colord.nix b/nixos/modules/services/x11/colord.nix new file mode 100644 index 000000000000..d9e81d750725 --- /dev/null +++ b/nixos/modules/services/x11/colord.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + + cfg = config.services.colord; + +in { + + options = { + + services.colord = { + enable = mkEnableOption "colord, the color management daemon"; + }; + + }; + + config = mkIf cfg.enable { + + services.dbus.packages = [ pkgs.colord ]; + + services.udev.packages = [ pkgs.colord ]; + + environment.systemPackages = [ pkgs.colord ]; + + systemd.services.colord = { + description = "Manage, Install and Generate Color Profiles"; + serviceConfig = { + Type = "dbus"; + BusName = "org.freedesktop.ColorManager"; + ExecStart = "${pkgs.colord}/libexec/colord"; + PrivateTmp = true; + }; + }; + + }; + +} |