Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/colord: don't run as root #58458

Merged
merged 1 commit into from
Mar 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions nixos/modules/services/x11/colord.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
infinisil marked this conversation as resolved.
Show resolved Hide resolved

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 = {};

};

}
1 change: 1 addition & 0 deletions pkgs/tools/misc/colord/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
"-Dlibcolordcompat=true"
"-Dsane=true"
"-Dvapi=true"
"-Ddaemon_user=colord"
];

nativeBuildInputs = [
Expand Down