Skip to content

Commit

Permalink
Nix: inherit system in module
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 committed Feb 12, 2024
1 parent e57e789 commit ea6bbe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nix/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs: {
}:
with lib; let
cfg = config.programs.auto-cpufreq;
system = "x86_64-linux";
inherit (pkgs.stdenv.hostPlatform) system;
defaultPackage = inputs.self.packages.${system}.default;
cfgFilename = "auto-cpufreq.conf";
cfgFile = format.generate cfgFilename cfg.settings;
Expand All @@ -16,7 +16,6 @@ with lib; let
in {
options.programs.auto-cpufreq = {
enable = mkEnableOption "Automatic CPU speed & power optimizer for Linux";
#gui.enable = mkEnableOption "Enable GUI";

settings = mkOption {
description = mdDoc ''
Expand Down

0 comments on commit ea6bbe4

Please sign in to comment.