about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-03-11 01:24:31 +0300
committerNikolay Amiantov <ab@fmap.me>2016-03-11 01:58:40 +0300
commit4e58b33deea7d62f109bdb63d5d79397044b5d90 (patch)
treeaba8b7c74e789166374cf08e351fe1beb6806851 /nixos
parent776845bbeb79091657570c541f7daade2efe912a (diff)
downloadnixlib-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')
-rw-r--r--nixos/modules/services/x11/colord.nix39
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;
+      };
+    };
+
+  };
+
+}