modules/radeon-profile-daemon: fix package import path

This commit is contained in:
xeals 2020-10-18 14:41:42 +11:00
parent 32e8d6c12d
commit 1a129ac179
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

View File

@ -11,6 +11,12 @@ in
{ {
options.services.radeon-profile-daemon = { options.services.radeon-profile-daemon = {
enable = mkEnableOption "radeon-profile-daemon"; enable = mkEnableOption "radeon-profile-daemon";
package = mkOption {
type = types.package;
default = pkgs.radeon-profile-daemon or (import ../../.. { inherit pkgs; }).radeon-profile-daemon;
defaultText = "pkgs.radeon-profile-daemon";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -18,10 +24,10 @@ in
radeon-profile-daemon = { radeon-profile-daemon = {
description = "radeon-profile daemon"; description = "radeon-profile daemon";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
after = [ "enable-manual-amdgpu-fan.service" ]; after = [ "amdgpu-pwm.service" ];
serviceConfig = { serviceConfig = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.radeon-profile-daemon}/bin/radeon-profile-daemon"; ExecStart = "${package}/bin/radeon-profile-daemon";
}; };
}; };
}; };