modules/radeon-profile-daemon: fix package import path
This commit is contained in:
parent
32e8d6c12d
commit
1a129ac179
@ -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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user