Add lots of missing option types

This commit is contained in:
Eelco Dolstra
2013-10-30 18:47:43 +01:00
parent d882e19662
commit 408b8b5725
67 changed files with 320 additions and 154 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ with pkgs.lib;
options = {
powerManagement.cpuFreqGovernor = mkOption {
default = "";
type = types.nullOr types.str;
default = null;
example = "ondemand";
type = types.str;
description = ''
Configure the governor used to regulate the frequence of the
available CPUs. By default, the kernel configures the
@@ -23,7 +23,7 @@ with pkgs.lib;
###### implementation
config = mkIf (config.powerManagement.cpuFreqGovernor != "") {
config = mkIf (config.powerManagement.cpuFreqGovernor != null) {
environment.systemPackages = [ pkgs.cpufrequtils ];