summary refs log tree commit diff
path: root/nixos/modules/config/power-management.nix
Commit message (Collapse)AuthorAge
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos/power-management: always run systemctl of the currently running systemdFlorian Klink2020-05-21
|
* treewide: remove redundant quotesvolth2019-08-26
|
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* nixos/powerManagement: remove duplicate definitionFranz Pletz2018-01-28
| | | | | | | When not set just use the kernel default. `nixos-generate-config` will pick a reasonable default. cc #34350
* nixos/powerManagement: set `cpuFreqGovernor` with `mkOptionDefault`Maximilian Bosch2018-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `nixos-generate-config` detects the `cpuFreqGovernor` suited best for my machine, e.g. `powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";`. However the `powerManagement` module sets a sensitive default for `cpuFreqGovernor` using `mkDefault` to avoid breackage with older setups. Since 140ac2f1 the `hardware-configuration.nix` sets the gorvernor with `mkDefault` as well which causes evaluation errors if the powermanagement module is enabled: ``` error: The unique option `powerManagement.cpuFreqGovernor' is defined multiple times, in `/home/ma27/Projects/nixos-config/hardware-configuration.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/config/power-management.nix'. ``` Using `mkOptionDefault` rather than `mkDefault` in the powermanagement module fixes this issue as it decreases the priority of the module and prefers the value set in `hardware-configuration.nix`. I have confirmed the change using the following VM declaration: ``` { cpuFreq = { lib, ... }: { powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.enable = true; }; } ```
* nixos-generate-config: detect CPU governorgnidorah2017-01-02
| | | | | | | | | | * cpu-freq: Try powersave if ondemand is not available * Revert "cpu-freq: Try powersave if ondemand is not available" This reverts commit 4dc56db37e32dcfecd667ebbf88263e47b296097. Consult available scaling governors; for freshly generated configs, this provides a better experience than relying on a default that might not work everywhere.
* Remove default scsiLinkPolicyaaron levin2015-12-17
|
* link_power_policy_management default to max_performanceaaron levin2015-12-16
| | | | | | | | | | | | | | | The kernel default for `link_power_management_policy` is `"max_performance"`. This commit: https://github.com/NixOS/nixpkgs/commit/f169f60575bec7c61626af180cae364d321b4bec set the NixOS default to `"min_performance"`. This issue (https://github.com/NixOS/nixpkgs/issues/11276) details my long journey to discover this after several file system failures incorrectly attributed to `TRIM` and `NCQ` settings. I think we should use the kernel default of `"max_performance"` to assure the best experience for new users with SSDs and to conform to the defaults of the kernel and other distros.
* power management: restart post-resume.target on resumeThomas Strobel2015-10-06
| | | | | | Trigger a restart of the post-resume.target on resume. That allows other systemd services to receive the restart signal after resume by becoming 'partOf' the post-resume.target.
* nixos/manual: Use literalExample when feasible.aszlig2014-08-27
| | | | | | | | | Should bring most of the examples into a better consistency regarding syntactic representation in the manual. Thanks to @devhell for reporting. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* cpu-freq: Use cpupower instead of cpufrequtilsWilliam A. Kennington III2014-04-16
| | | | | | Additionally, put the powersave utility in charge of loading the cpufrequency modules based on the governor specified in the configuration.
* Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra2014-04-14
| | | | | | | | Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.
* power-management: Don't enable acpid.ambrop7@gmail.com2014-03-15
| | | | Running acpid along with systemd will cause double handling of acpi events.
* Add lots of missing option typesEelco Dolstra2013-10-30
|
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10