Nix: inherit system in module

This commit is contained in:
shadeyg56 2023-10-13 16:47:47 -05:00
parent a79b3be822
commit 78a86a1126
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ inputs: {
}: }:
with lib; let with lib; let
cfg = config.programs.auto-cpufreq; cfg = config.programs.auto-cpufreq;
system = "x86_64-linux"; inherit (pkgs.stdenv.hostPlatform) system;
defaultPackage = inputs.self.packages.${system}.default; defaultPackage = inputs.self.packages.${system}.default;
cfgFilename = "auto-cpufreq.conf"; cfgFilename = "auto-cpufreq.conf";
cfgFile = format.generate cfgFilename cfg.settings; cfgFile = format.generate cfgFilename cfg.settings;
@ -16,7 +16,6 @@ with lib; let
in { in {
options.programs.auto-cpufreq = { options.programs.auto-cpufreq = {
enable = mkEnableOption "Automatic CPU speed & power optimizer for Linux"; enable = mkEnableOption "Automatic CPU speed & power optimizer for Linux";
#gui.enable = mkEnableOption "Enable GUI";
settings = mkOption { settings = mkOption {
description = mdDoc '' description = mdDoc ''