a44b2cdd3a
Also drop the `portables` tmpfiles because the file is missing in the systemd derivation.
42 lines
629 B
Nix
42 lines
629 B
Nix
{ 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 {
|
|
|
|
environment.systemPackages = [ pkgs.colord ];
|
|
|
|
services.dbus.packages = [ pkgs.colord ];
|
|
|
|
services.udev.packages = [ pkgs.colord ];
|
|
|
|
systemd.packages = [ pkgs.colord ];
|
|
|
|
systemd.tmpfiles.packages = [ pkgs.colord ];
|
|
|
|
users.users.colord = {
|
|
isSystemUser = true;
|
|
home = "/var/lib/colord";
|
|
group = "colord";
|
|
};
|
|
|
|
users.groups.colord = {};
|
|
|
|
};
|
|
|
|
}
|