summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/x11/colord.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/x11/colord.nix')
-rw-r--r--nixos/modules/services/x11/colord.nix19
1 files changed, 10 insertions, 9 deletions
diff --git a/nixos/modules/services/x11/colord.nix b/nixos/modules/services/x11/colord.nix
index d9e81d750725..17568df091d4 100644
--- a/nixos/modules/services/x11/colord.nix
+++ b/nixos/modules/services/x11/colord.nix
@@ -18,22 +18,23 @@ in {
config = mkIf cfg.enable {
+ environment.systemPackages = [ pkgs.colord ];
+
services.dbus.packages = [ pkgs.colord ];
services.udev.packages = [ pkgs.colord ];
- environment.systemPackages = [ pkgs.colord ];
+ systemd.packages = [ 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;
- };
+ environment.etc."tmpfiles.d/colord.conf".source = "${pkgs.colord}/lib/tmpfiles.d/colord.conf";
+
+ users.users.colord = {
+ home = "/var/lib/colord";
+ group = "colord";
};
+ users.groups.colord = {};
+
};
}