Skip to content

Commit

Permalink
Nix: fix duplicated package (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 authored May 25, 2024
1 parent a5ffa57 commit 487c344
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@ in {
};

config = mkIf cfg.enable {
environment.systemPackages = [defaultPackage];
environment.systemPackages = [ defaultPackage ];

services.auto-cpufreq.enable = true;
systemd.services.auto-cpufreq = {
overrideStrategy = "asDropin";
serviceConfig.ExecStart = mkForce [
""
"${defaultPackage}/bin/auto-cpufreq --daemon --config ${cfgFile}"
];
systemd = {
packages = [ defaultPackage ];
services.auto-cpufreq = {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ bash coreutils ];
overrideStrategy = "asDropin";

serviceConfig.WorkingDirectory = "";
serviceConfig.ExecStart = mkForce [
""
"${defaultPackage}/bin/auto-cpufreq --daemon --config ${cfgFile}"
];
};
};
};
}

0 comments on commit 487c344

Please sign in to comment.