2016-03-10 22:24:31 +00:00
|
|
|
{ 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 {
|
|
|
|
|
2019-03-27 19:28:10 +00:00
|
|
|
environment.systemPackages = [ pkgs.colord ];
|
|
|
|
|
2016-03-10 22:24:31 +00:00
|
|
|
services.dbus.packages = [ pkgs.colord ];
|
|
|
|
|
|
|
|
services.udev.packages = [ pkgs.colord ];
|
|
|
|
|
2019-03-27 19:28:10 +00:00
|
|
|
systemd.packages = [ pkgs.colord ];
|
2016-03-10 22:24:31 +00:00
|
|
|
|
2020-07-13 16:12:38 +00:00
|
|
|
systemd.tmpfiles.packages = [ pkgs.colord ];
|
2019-03-27 19:28:10 +00:00
|
|
|
|
|
|
|
users.users.colord = {
|
2019-05-18 22:48:34 +00:00
|
|
|
isSystemUser = true;
|
2019-03-27 19:28:10 +00:00
|
|
|
home = "/var/lib/colord";
|
|
|
|
group = "colord";
|
2016-03-10 22:24:31 +00:00
|
|
|
};
|
|
|
|
|
2019-03-27 19:28:10 +00:00
|
|
|
users.groups.colord = {};
|
|
|
|
|
2016-03-10 22:24:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|