Nix: inherit system in module
This commit is contained in:
parent
a79b3be822
commit
78a86a1126
|
@ -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 ''
|
||||||
|
|
Loading…
Reference in New Issue