Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Add missing 'type', 'defaultText' and 'literalExample' in module definitions

- add missing types in module definitions
- add missing 'defaultText' in module definitions
- wrap example with 'literalExample' where necessary in module definitions

+175 -97
+1
nixos/modules/config/ldap.nix
··· 57 users.ldap = { 58 59 enable = mkOption { 60 default = false; 61 description = "Whether to enable authentication against an LDAP server."; 62 };
··· 57 users.ldap = { 58 59 enable = mkOption { 60 + type = types.bool; 61 default = false; 62 description = "Whether to enable authentication against an LDAP server."; 63 };
+1
nixos/modules/config/pulseaudio.nix
··· 99 package = mkOption { 100 type = types.package; 101 default = pulseaudioLight; 102 example = literalExample "pkgs.pulseaudioFull"; 103 description = '' 104 The PulseAudio derivation to use. This can be used to enable
··· 99 package = mkOption { 100 type = types.package; 101 default = pulseaudioLight; 102 + defaultText = "pkgs.pulseaudioLight"; 103 example = literalExample "pkgs.pulseaudioFull"; 104 description = '' 105 The PulseAudio derivation to use. This can be used to enable
+1
nixos/modules/config/shells-environment.nix
··· 119 120 environment.binsh = mkOption { 121 default = "${config.system.build.binsh}/bin/sh"; 122 example = literalExample '' 123 "''${pkgs.dash}/bin/dash" 124 '';
··· 119 120 environment.binsh = mkOption { 121 default = "${config.system.build.binsh}/bin/sh"; 122 + defaultText = "\${config.system.build.binsh}/bin/sh"; 123 example = literalExample '' 124 "''${pkgs.dash}/bin/dash" 125 '';
+3 -2
nixos/modules/config/unix-odbc-drivers.nix
··· 10 11 options = { 12 environment.unixODBCDrivers = mkOption { 13 default = []; 14 - example = literalExample "map (x : x.ini) (with pkgs.unixODBCDrivers; [ mysql psql psqlng ] )"; 15 description = '' 16 Specifies Unix ODBC drivers to be registered in 17 <filename>/etc/odbcinst.ini</filename>. You may also want to ··· 26 config = mkIf (config.environment.unixODBCDrivers != []) { 27 28 environment.etc."odbcinst.ini".text = 29 - let inis = config.environment.unixODBCDrivers; 30 in lib.concatStringsSep "\n" inis; 31 32 };
··· 10 11 options = { 12 environment.unixODBCDrivers = mkOption { 13 + type = types.listOf types.package; 14 default = []; 15 + example = literalExample "with pkgs.unixODBCDrivers; [ mysql psql psqlng ]"; 16 description = '' 17 Specifies Unix ODBC drivers to be registered in 18 <filename>/etc/odbcinst.ini</filename>. You may also want to ··· 27 config = mkIf (config.environment.unixODBCDrivers != []) { 28 29 environment.etc."odbcinst.ini".text = 30 + let inis = map (x : x.ini) config.environment.unixODBCDrivers; 31 in lib.concatStringsSep "\n" inis; 32 33 };
+1
nixos/modules/misc/crashdump.nix
··· 24 ''; 25 }; 26 kernelPackages = mkOption { 27 default = pkgs.linuxPackages; 28 # We don't want to evaluate all of linuxPackages for the manual 29 # - some of it might not even evaluate correctly.
··· 24 ''; 25 }; 26 kernelPackages = mkOption { 27 + type = types.package; 28 default = pkgs.linuxPackages; 29 # We don't want to evaluate all of linuxPackages for the manual 30 # - some of it might not even evaluate correctly.
+2 -2
nixos/modules/misc/nixos.nix
··· 37 38 nixos.extraModules = mkOption { 39 default = []; 40 - example = literalExample "mkIf config.services.openssh.enable [ ./sshd-config.nix ]"; 41 - type = types.listOf types.unspecified; 42 description = '' 43 Define additional modules which would be loaded to evaluate the 44 configuration.
··· 37 38 nixos.extraModules = mkOption { 39 default = []; 40 + example = literalExample "[ ./sshd-config.nix ]"; 41 + type = types.listOf (types.either (types.submodule ({...}:{options={};})) types.path); 42 description = '' 43 Define additional modules which would be loaded to evaluate the 44 configuration.
+14 -10
nixos/modules/programs/ssh.nix
··· 93 }; 94 95 package = mkOption { 96 default = pkgs.openssh; 97 description = '' 98 The package used for the openssh client and daemon. 99 ''; ··· 142 description = '' 143 The set of system-wide known SSH hosts. 144 ''; 145 - example = [ 146 - { 147 - hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ]; 148 - publicKeyFile = literalExample "./pubkeys/myhost_ssh_host_dsa_key.pub"; 149 - } 150 - { 151 - hostNames = [ "myhost2" ]; 152 - publicKeyFile = literalExample "./pubkeys/myhost2_ssh_host_dsa_key.pub"; 153 - } 154 - ]; 155 }; 156 157 };
··· 93 }; 94 95 package = mkOption { 96 + type = types.package; 97 default = pkgs.openssh; 98 + defaultText = "pkgs.openssh"; 99 description = '' 100 The package used for the openssh client and daemon. 101 ''; ··· 144 description = '' 145 The set of system-wide known SSH hosts. 146 ''; 147 + example = literalExample '' 148 + [ 149 + { 150 + hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ]; 151 + publicKeyFile = "./pubkeys/myhost_ssh_host_dsa_key.pub"; 152 + } 153 + { 154 + hostNames = [ "myhost2" ]; 155 + publicKeyFile = "./pubkeys/myhost2_ssh_host_dsa_key.pub"; 156 + } 157 + ] 158 + ''; 159 }; 160 161 };
+1 -1
nixos/modules/services/audio/liquidsoap.nix
··· 46 example = { 47 myStream1 = literalExample "\"/etc/liquidsoap/myStream1.liq\""; 48 myStream2 = literalExample "./myStream2.liq"; 49 - myStream3 = literalExample "\"out(playlist(\"/srv/music/\"))\""; 50 }; 51 52 type = types.attrsOf (types.either types.path types.str);
··· 46 example = { 47 myStream1 = literalExample "\"/etc/liquidsoap/myStream1.liq\""; 48 myStream2 = literalExample "./myStream2.liq"; 49 + myStream3 = literalExample "\"out(playlist(\\\"/srv/music/\\\"))\""; 50 }; 51 52 type = types.attrsOf (types.either types.path types.str);
+2 -2
nixos/modules/services/backup/bacula.nix
··· 207 description = '' 208 Extra configuration to be passed in Client directive. 209 ''; 210 - example = literalExample '' 211 Maximum Concurrent Jobs = 20; 212 Heartbeat Interval = 30; 213 ''; ··· 218 description = '' 219 Extra configuration to be passed in Messages directive. 220 ''; 221 - example = literalExample '' 222 console = all 223 ''; 224 };
··· 207 description = '' 208 Extra configuration to be passed in Client directive. 209 ''; 210 + example = '' 211 Maximum Concurrent Jobs = 20; 212 Heartbeat Interval = 30; 213 ''; ··· 218 description = '' 219 Extra configuration to be passed in Messages directive. 220 ''; 221 + example = '' 222 console = all 223 ''; 224 };
+1
nixos/modules/services/backup/rsnapshot.nix
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.rsnapshot; 46 example = literalExample "pkgs.rsnapshotGit"; 47 description = '' 48 RSnapshot package to use.
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.rsnapshot; 46 + defaultText = "pkgs.rsnapshot"; 47 example = literalExample "pkgs.rsnapshotGit"; 48 description = '' 49 RSnapshot package to use.
+1
nixos/modules/services/continuous-integration/jenkins/default.nix
··· 80 81 packages = mkOption { 82 default = [ pkgs.stdenv pkgs.git pkgs.jdk config.programs.ssh.package pkgs.nix ]; 83 type = types.listOf types.package; 84 description = '' 85 Packages to add to PATH for the jenkins process.
··· 80 81 packages = mkOption { 82 default = [ pkgs.stdenv pkgs.git pkgs.jdk config.programs.ssh.package pkgs.nix ]; 83 + defaultText = "[ pkgs.stdenv pkgs.git pkgs.jdk config.programs.ssh.package pkgs.nix ]"; 84 type = types.listOf types.package; 85 description = '' 86 Packages to add to PATH for the jenkins process.
+1 -1
nixos/modules/services/continuous-integration/jenkins/job-builder.nix
··· 74 ]; 75 }; 76 } 77 - ]; 78 ''; 79 description = '' 80 Job descriptions for Jenkins Job Builder in Nix format.
··· 74 ]; 75 }; 76 } 77 + ] 78 ''; 79 description = '' 80 Job descriptions for Jenkins Job Builder in Nix format.
+1
nixos/modules/services/databases/couchdb.nix
··· 38 package = mkOption { 39 type = types.package; 40 default = pkgs.couchdb; 41 example = literalExample "pkgs.couchdb"; 42 description = '' 43 CouchDB package to use.
··· 38 package = mkOption { 39 type = types.package; 40 default = pkgs.couchdb; 41 + defaultText = "pkgs.couchdb"; 42 example = literalExample "pkgs.couchdb"; 43 description = '' 44 CouchDB package to use.
+1
nixos/modules/services/databases/firebird.nix
··· 49 50 package = mkOption { 51 default = pkgs.firebirdSuper; 52 type = types.package; 53 /* 54 Example: <code>package = pkgs.firebirdSuper.override { icu =
··· 49 50 package = mkOption { 51 default = pkgs.firebirdSuper; 52 + defaultText = "pkgs.firebirdSuper"; 53 type = types.package; 54 /* 55 Example: <code>package = pkgs.firebirdSuper.override { icu =
+1
nixos/modules/services/databases/hbase.nix
··· 44 package = mkOption { 45 type = types.package; 46 default = pkgs.hbase; 47 example = literalExample "pkgs.hbase"; 48 description = '' 49 HBase package to use.
··· 44 package = mkOption { 45 type = types.package; 46 default = pkgs.hbase; 47 + defaultText = "pkgs.hbase"; 48 example = literalExample "pkgs.hbase"; 49 description = '' 50 HBase package to use.
+1
nixos/modules/services/databases/influxdb.nix
··· 120 121 package = mkOption { 122 default = pkgs.influxdb; 123 description = "Which influxdb derivation to use"; 124 type = types.package; 125 };
··· 120 121 package = mkOption { 122 default = pkgs.influxdb; 123 + defaultText = "pkgs.influxdb"; 124 description = "Which influxdb derivation to use"; 125 type = types.package; 126 };
+1
nixos/modules/services/databases/mongodb.nix
··· 41 42 package = mkOption { 43 default = pkgs.mongodb; 44 type = types.package; 45 description = " 46 Which MongoDB derivation to use.
··· 41 42 package = mkOption { 43 default = pkgs.mongodb; 44 + defaultText = "pkgs.mongodb"; 45 type = types.package; 46 description = " 47 Which MongoDB derivation to use.
+1
nixos/modules/services/databases/neo4j.nix
··· 49 package = mkOption { 50 description = "Neo4j package to use."; 51 default = pkgs.neo4j; 52 type = types.package; 53 }; 54
··· 49 package = mkOption { 50 description = "Neo4j package to use."; 51 default = pkgs.neo4j; 52 + defaultText = "pkgs.neo4j"; 53 type = types.package; 54 }; 55
+14 -16
nixos/modules/services/databases/openldap.nix
··· 25 description = " 26 Whether to enable the ldap server. 27 "; 28 - example = literalExample '' 29 - openldap.enable = true; 30 - openldap.extraConfig = ''' 31 - include ''${pkgs.openldap}/etc/openldap/schema/core.schema 32 - include ''${pkgs.openldap}/etc/openldap/schema/cosine.schema 33 - include ''${pkgs.openldap}/etc/openldap/schema/inetorgperson.schema 34 - include ''${pkgs.openldap}/etc/openldap/schema/nis.schema 35 - 36 - database bdb 37 - suffix dc=example,dc=org 38 - rootdn cn=admin,dc=example,dc=org 39 - # NOTE: change after first start 40 - rootpw secret 41 - directory /var/db/openldap 42 - '''; 43 - ''; 44 }; 45 46 user = mkOption { ··· 67 description = " 68 sldapd.conf configuration 69 "; 70 }; 71 }; 72
··· 25 description = " 26 Whether to enable the ldap server. 27 "; 28 + example = true; 29 }; 30 31 user = mkOption { ··· 52 description = " 53 sldapd.conf configuration 54 "; 55 + example = '' 56 + include ''${pkgs.openldap}/etc/openldap/schema/core.schema 57 + include ''${pkgs.openldap}/etc/openldap/schema/cosine.schema 58 + include ''${pkgs.openldap}/etc/openldap/schema/inetorgperson.schema 59 + include ''${pkgs.openldap}/etc/openldap/schema/nis.schema 60 + 61 + database bdb 62 + suffix dc=example,dc=org 63 + rootdn cn=admin,dc=example,dc=org 64 + # NOTE: change after first start 65 + rootpw secret 66 + directory /var/db/openldap 67 + ''; 68 }; 69 }; 70
+1
nixos/modules/services/databases/opentsdb.nix
··· 26 package = mkOption { 27 type = types.package; 28 default = pkgs.opentsdb; 29 example = literalExample "pkgs.opentsdb"; 30 description = '' 31 OpenTSDB package to use.
··· 26 package = mkOption { 27 type = types.package; 28 default = pkgs.opentsdb; 29 + defaultText = "pkgs.opentsdb"; 30 example = literalExample "pkgs.opentsdb"; 31 description = '' 32 OpenTSDB package to use.
+1
nixos/modules/services/databases/redis.nix
··· 46 package = mkOption { 47 type = types.package; 48 default = pkgs.redis; 49 description = "Which Redis derivation to use."; 50 }; 51
··· 46 package = mkOption { 47 type = types.package; 48 default = pkgs.redis; 49 + defaultText = "pkgs.redis"; 50 description = "Which Redis derivation to use."; 51 }; 52
+1
nixos/modules/services/hardware/freefall.nix
··· 21 package = mkOption { 22 type = types.package; 23 default = pkgs.freefall; 24 description = '' 25 freefall derivation to use. 26 '';
··· 21 package = mkOption { 22 type = types.package; 23 default = pkgs.freefall; 24 + defaultText = "pkgs.freefall"; 25 description = '' 26 freefall derivation to use. 27 '';
+1
nixos/modules/services/hardware/upower.nix
··· 27 package = mkOption { 28 type = types.package; 29 default = pkgs.upower; 30 example = lib.literalExample "pkgs.upower"; 31 description = '' 32 Which upower package to use.
··· 27 package = mkOption { 28 type = types.package; 29 default = pkgs.upower; 30 + defaultText = "pkgs.upower"; 31 example = lib.literalExample "pkgs.upower"; 32 description = '' 33 Which upower package to use.
+1
nixos/modules/services/logging/logrotate.nix
··· 13 options = { 14 services.logrotate = { 15 enable = mkOption { 16 default = false; 17 description = '' 18 Enable the logrotate cron job
··· 13 options = { 14 services.logrotate = { 15 enable = mkOption { 16 + type = lib.types.bool; 17 default = false; 18 description = '' 19 Enable the logrotate cron job
+2 -1
nixos/modules/services/logging/logstash.nix
··· 33 package = mkOption { 34 type = types.package; 35 default = pkgs.logstash; 36 example = literalExample "pkgs.logstash"; 37 description = "Logstash package to use."; 38 }; ··· 84 type = types.lines; 85 default = ''stdin { type => "example" }''; 86 description = "Logstash input configuration."; 87 - example = literalExample '' 88 # Read from journal 89 pipe { 90 command => "''${pkgs.systemd}/bin/journalctl -f -o json"
··· 33 package = mkOption { 34 type = types.package; 35 default = pkgs.logstash; 36 + defaultText = "pkgs.logstash"; 37 example = literalExample "pkgs.logstash"; 38 description = "Logstash package to use."; 39 }; ··· 85 type = types.lines; 86 default = ''stdin { type => "example" }''; 87 description = "Logstash input configuration."; 88 + example = '' 89 # Read from journal 90 pipe { 91 command => "''${pkgs.systemd}/bin/journalctl -f -o json"
+1
nixos/modules/services/logging/syslog-ng.nix
··· 39 package = mkOption { 40 type = types.package; 41 default = pkgs.syslogng; 42 description = '' 43 The package providing syslog-ng binaries. 44 '';
··· 39 package = mkOption { 40 type = types.package; 41 default = pkgs.syslogng; 42 + defaultText = "pkgs.syslogng"; 43 description = '' 44 The package providing syslog-ng binaries. 45 '';
+2 -1
nixos/modules/services/mail/dovecot.nix
··· 90 package = mkOption { 91 type = types.package; 92 default = pkgs.dovecot22; 93 description = "Dovecot package to use."; 94 }; 95 ··· 131 modules = mkOption { 132 type = types.listOf types.package; 133 default = []; 134 - example = [ pkgs.dovecot_pigeonhole ]; 135 description = '' 136 Symlinks the contents of lib/dovecot of every given package into 137 /var/lib/dovecot/modules. This will make the given modules available
··· 90 package = mkOption { 91 type = types.package; 92 default = pkgs.dovecot22; 93 + defaultText = "pkgs.dovecot22"; 94 description = "Dovecot package to use."; 95 }; 96 ··· 132 modules = mkOption { 133 type = types.listOf types.package; 134 default = []; 135 + example = literalExample "[ pkgs.dovecot_pigeonhole ]"; 136 description = '' 137 Symlinks the contents of lib/dovecot of every given package into 138 /var/lib/dovecot/modules. This will make the given modules available
+1 -2
nixos/modules/services/misc/apache-kafka.nix
··· 118 119 package = mkOption { 120 description = "The kafka package to use"; 121 - 122 default = pkgs.apacheKafka; 123 - 124 type = types.package; 125 }; 126
··· 118 119 package = mkOption { 120 description = "The kafka package to use"; 121 default = pkgs.apacheKafka; 122 + defaultText = "pkgs.apacheKafka"; 123 type = types.package; 124 }; 125
+2 -1
nixos/modules/services/misc/autofs.nix
··· 27 }; 28 29 autoMaster = mkOption { 30 example = literalExample '' 31 - autoMaster = let 32 mapConf = pkgs.writeText "auto" ''' 33 kernel -ro,soft,intr ftp.kernel.org:/pub/linux 34 boot -fstype=ext2 :/dev/hda1
··· 27 }; 28 29 autoMaster = mkOption { 30 + type = types.str; 31 example = literalExample '' 32 + let 33 mapConf = pkgs.writeText "auto" ''' 34 kernel -ro,soft,intr ftp.kernel.org:/pub/linux 35 boot -fstype=ext2 :/dev/hda1
+1
nixos/modules/services/misc/cgminer.nix
··· 41 42 package = mkOption { 43 default = pkgs.cgminer; 44 description = "Which cgminer derivation to use."; 45 type = types.package; 46 };
··· 41 42 package = mkOption { 43 default = pkgs.cgminer; 44 + defaultText = "pkgs.cgminer"; 45 description = "Which cgminer derivation to use."; 46 type = types.package; 47 };
+1
nixos/modules/services/misc/confd.nix
··· 64 package = mkOption { 65 description = "Confd package to use."; 66 default = pkgs.confd; 67 type = types.package; 68 }; 69 };
··· 64 package = mkOption { 65 description = "Confd package to use."; 66 default = pkgs.confd; 67 + defaultText = "pkgs.confd"; 68 type = types.package; 69 }; 70 };
+5 -5
nixos/modules/services/misc/etcd.nix
··· 77 default = {}; 78 example = literalExample '' 79 { 80 - "CORS": "*", 81 - "NAME": "default-name", 82 - "MAX_RESULT_BUFFER": "1024", 83 - "MAX_CLUSTER_SIZE": "9", 84 - "MAX_RETRY_ATTEMPTS": "3" 85 } 86 ''; 87 };
··· 77 default = {}; 78 example = literalExample '' 79 { 80 + "CORS" = "*"; 81 + "NAME" = "default-name"; 82 + "MAX_RESULT_BUFFER" = "1024"; 83 + "MAX_CLUSTER_SIZE" = "9"; 84 + "MAX_RETRY_ATTEMPTS" = "3"; 85 } 86 ''; 87 };
+2
nixos/modules/services/misc/felix.nix
··· 23 }; 24 25 bundles = mkOption { 26 default = [ pkgs.felix_remoteshell ]; 27 description = "List of bundles that should be activated on startup"; 28 }; 29
··· 23 }; 24 25 bundles = mkOption { 26 + type = types.listOf types.package; 27 default = [ pkgs.felix_remoteshell ]; 28 + defaultText = "[ pkgs.felix_remoteshell ]"; 29 description = "List of bundles that should be activated on startup"; 30 }; 31
+1
nixos/modules/services/misc/gitit.nix
··· 35 }; 36 37 haskellPackages = mkOption { 38 default = pkgs.haskellPackages; 39 defaultText = "pkgs.haskellPackages"; 40 example = literalExample "pkgs.haskell.packages.ghc784";
··· 35 }; 36 37 haskellPackages = mkOption { 38 + type = types.attrsOf types.package; 39 default = pkgs.haskellPackages; 40 defaultText = "pkgs.haskellPackages"; 41 example = literalExample "pkgs.haskell.packages.ghc784";
+1
nixos/modules/services/misc/ihaskell.nix
··· 22 }; 23 24 haskellPackages = mkOption { 25 default = pkgs.haskellPackages; 26 defaultText = "pkgs.haskellPackages"; 27 example = literalExample "pkgs.haskell.packages.ghc784";
··· 22 }; 23 24 haskellPackages = mkOption { 25 + type = types.attrsOf types.package; 26 default = pkgs.haskellPackages; 27 defaultText = "pkgs.haskellPackages"; 28 example = literalExample "pkgs.haskell.packages.ghc784";
+2
nixos/modules/services/misc/mbpfan.nix
··· 17 }; 18 19 package = mkOption { 20 default = pkgs.mbpfan; 21 description = '' 22 The package used for the mbpfan daemon. 23 '';
··· 17 }; 18 19 package = mkOption { 20 + type = types.package; 21 default = pkgs.mbpfan; 22 + defaultText = "pkgs.mbpfan"; 23 description = '' 24 The package used for the mbpfan daemon. 25 '';
+1
nixos/modules/services/misc/nix-daemon.nix
··· 66 package = mkOption { 67 type = types.package; 68 default = pkgs.nix; 69 description = '' 70 This option specifies the Nix package instance to use throughout the system. 71 '';
··· 66 package = mkOption { 67 type = types.package; 68 default = pkgs.nix; 69 + defaultText = "pkgs.nix"; 70 description = '' 71 This option specifies the Nix package instance to use throughout the system. 72 '';
+4 -3
nixos/modules/services/misc/rippled.nix
··· 208 description = "Which rippled package to use."; 209 type = types.package; 210 default = pkgs.rippled; 211 }; 212 213 ports = mkOption { ··· 238 nodeDb = mkOption { 239 description = "Rippled main database options."; 240 type = types.nullOr types.optionSet; 241 - options = [dbOptions]; 242 default = { 243 type = "rocksdb"; 244 extraOpts = '' ··· 254 tempDb = mkOption { 255 description = "Rippled temporary database options."; 256 type = types.nullOr types.optionSet; 257 - options = [dbOptions]; 258 default = null; 259 }; 260 261 importDb = mkOption { 262 description = "Settings for performing a one-time import."; 263 type = types.nullOr types.optionSet; 264 - options = [dbOptions]; 265 default = null; 266 }; 267
··· 208 description = "Which rippled package to use."; 209 type = types.package; 210 default = pkgs.rippled; 211 + defaultText = "pkgs.rippled"; 212 }; 213 214 ports = mkOption { ··· 239 nodeDb = mkOption { 240 description = "Rippled main database options."; 241 type = types.nullOr types.optionSet; 242 + options = dbOptions; 243 default = { 244 type = "rocksdb"; 245 extraOpts = '' ··· 255 tempDb = mkOption { 256 description = "Rippled temporary database options."; 257 type = types.nullOr types.optionSet; 258 + options = dbOptions; 259 default = null; 260 }; 261 262 importDb = mkOption { 263 description = "Settings for performing a one-time import."; 264 type = types.nullOr types.optionSet; 265 + options = dbOptions; 266 default = null; 267 }; 268
+1
nixos/modules/services/monitoring/bosun.nix
··· 33 package = mkOption { 34 type = types.package; 35 default = pkgs.bosun; 36 example = literalExample "pkgs.bosun"; 37 description = '' 38 bosun binary to use.
··· 33 package = mkOption { 34 type = types.package; 35 default = pkgs.bosun; 36 + defaultText = "pkgs.bosun"; 37 example = literalExample "pkgs.bosun"; 38 description = '' 39 bosun binary to use.
+1
nixos/modules/services/monitoring/grafana.nix
··· 93 package = mkOption { 94 description = "Package to use."; 95 default = pkgs.grafana; 96 type = types.package; 97 }; 98
··· 93 package = mkOption { 94 description = "Package to use."; 95 default = pkgs.grafana; 96 + defaultText = "pkgs.grafana"; 97 type = types.package; 98 }; 99
+4 -3
nixos/modules/services/monitoring/graphite.nix
··· 108 finders = mkOption { 109 description = "List of finder plugins to load."; 110 default = []; 111 - example = [ pkgs.python27Packages.graphite_influxdb ]; 112 type = types.listOf types.package; 113 }; 114 ··· 136 package = mkOption { 137 description = "Package to use for graphite api."; 138 default = pkgs.python27Packages.graphite_api; 139 type = types.package; 140 }; 141 ··· 146 directories: 147 - ${dataDir}/whisper 148 ''; 149 - example = literalExample '' 150 allowed_origins: 151 - dashboard.example.com 152 cheat_times: true ··· 350 critical: 200 351 name: Test 352 ''; 353 - example = literalExample '' 354 pushbullet_key: pushbullet_api_key 355 alerts: 356 - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit
··· 108 finders = mkOption { 109 description = "List of finder plugins to load."; 110 default = []; 111 + example = literalExample "[ pkgs.python27Packages.graphite_influxdb ]"; 112 type = types.listOf types.package; 113 }; 114 ··· 136 package = mkOption { 137 description = "Package to use for graphite api."; 138 default = pkgs.python27Packages.graphite_api; 139 + defaultText = "pkgs.python27Packages.graphite_api"; 140 type = types.package; 141 }; 142 ··· 147 directories: 148 - ${dataDir}/whisper 149 ''; 150 + example = '' 151 allowed_origins: 152 - dashboard.example.com 153 cheat_times: true ··· 351 critical: 200 352 name: Test 353 ''; 354 + example = '' 355 pushbullet_key: pushbullet_api_key 356 alerts: 357 - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit
+1
nixos/modules/services/monitoring/heapster.nix
··· 33 package = mkOption { 34 description = "Package to use by heapster"; 35 default = pkgs.heapster; 36 type = types.package; 37 }; 38 };
··· 33 package = mkOption { 34 description = "Package to use by heapster"; 35 default = pkgs.heapster; 36 + defaultText = "pkgs.heapster"; 37 type = types.package; 38 }; 39 };
+3 -15
nixos/modules/services/monitoring/munin.nix
··· 122 HTML output is in <filename>/var/www/munin/</filename>, configure your 123 favourite webserver to serve static files. 124 ''; 125 - example = literalExample '' 126 - services = { 127 - munin-node.enable = true; 128 - munin-cron = { 129 - enable = true; 130 - hosts = ''' 131 - [''${config.networking.hostName}] 132 - address localhost 133 - '''; 134 - extraGlobalConfig = ''' 135 - contact.email.command mail -s "Munin notification for ''${var:host}" someone@example.com 136 - '''; 137 - }; 138 - }; 139 - ''; 140 }; 141 142 extraGlobalConfig = mkOption { ··· 146 See <link xlink:href='http://munin-monitoring.org/wiki/munin.conf' />. 147 Useful to setup notifications, see 148 <link xlink:href='http://munin-monitoring.org/wiki/HowToContact' /> 149 ''; 150 }; 151
··· 122 HTML output is in <filename>/var/www/munin/</filename>, configure your 123 favourite webserver to serve static files. 124 ''; 125 }; 126 127 extraGlobalConfig = mkOption { ··· 131 See <link xlink:href='http://munin-monitoring.org/wiki/munin.conf' />. 132 Useful to setup notifications, see 133 <link xlink:href='http://munin-monitoring.org/wiki/HowToContact' /> 134 + ''; 135 + example = '' 136 + contact.email.command mail -s "Munin notification for ''${var:host}" someone@example.com 137 ''; 138 }; 139
+6
nixos/modules/services/monitoring/nagios.nix
··· 94 }; 95 96 plugins = mkOption { 97 default = [pkgs.nagiosPluginsOfficial pkgs.ssmtp]; 98 description = " 99 Packages to be added to the Nagios <envar>PATH</envar>. 100 Typically used to add plugins, but can be anything. ··· 102 }; 103 104 mainConfigFile = mkOption { 105 default = nagiosCfgFile; 106 description = " 107 Derivation for the main configuration file of Nagios. 108 "; 109 }; 110 111 cgiConfigFile = mkOption { 112 default = nagiosCGICfgFile; 113 description = " 114 Derivation for the configuration file of Nagios CGI scripts 115 that can be used in web servers for running the Nagios web interface.
··· 94 }; 95 96 plugins = mkOption { 97 + type = types.listOf types.package; 98 default = [pkgs.nagiosPluginsOfficial pkgs.ssmtp]; 99 + defaultText = "[pkgs.nagiosPluginsOfficial pkgs.ssmtp]"; 100 description = " 101 Packages to be added to the Nagios <envar>PATH</envar>. 102 Typically used to add plugins, but can be anything. ··· 104 }; 105 106 mainConfigFile = mkOption { 107 + type = types.package; 108 default = nagiosCfgFile; 109 + defaultText = "nagiosCfgFile"; 110 description = " 111 Derivation for the main configuration file of Nagios. 112 "; 113 }; 114 115 cgiConfigFile = mkOption { 116 + type = types.package; 117 default = nagiosCGICfgFile; 118 + defaultText = "nagiosCGICfgFile"; 119 description = " 120 Derivation for the configuration file of Nagios CGI scripts 121 that can be used in web servers for running the Nagios web interface.
+2 -1
nixos/modules/services/monitoring/scollector.nix
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.scollector; 46 example = literalExample "pkgs.scollector"; 47 description = '' 48 scollector binary to use. ··· 77 collectors = mkOption { 78 type = with types; attrsOf (listOf path); 79 default = {}; 80 - example = literalExample "{ 0 = [ \"\${postgresStats}/bin/collect-stats\" ]; }"; 81 description = '' 82 An attribute set mapping the frequency of collection to a list of 83 binaries that should be executed at that frequency. You can use "0"
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.scollector; 46 + defaultText = "pkgs.scollector"; 47 example = literalExample "pkgs.scollector"; 48 description = '' 49 scollector binary to use. ··· 78 collectors = mkOption { 79 type = with types; attrsOf (listOf path); 80 default = {}; 81 + example = literalExample "{ \"0\" = [ \"\${postgresStats}/bin/collect-stats\" ]; }"; 82 description = '' 83 An attribute set mapping the frequency of collection to a list of 84 binaries that should be executed at that frequency. You can use "0"
+2 -1
nixos/modules/services/network-filesystems/samba.nix
··· 85 package = mkOption { 86 type = types.package; 87 default = pkgs.samba; 88 - example = pkgs.samba4; 89 description = '' 90 Defines which package should be used for the samba server. 91 '';
··· 85 package = mkOption { 86 type = types.package; 87 default = pkgs.samba; 88 + defaultText = "pkgs.samba"; 89 + example = literalExample "pkgs.samba4"; 90 description = '' 91 Defines which package should be used for the samba server. 92 '';
+2
nixos/modules/services/networking/bind.nix
··· 120 }; 121 122 configFile = mkOption { 123 default = confFile; 124 description = " 125 Overridable config file to use for named. By default, that 126 generated by nixos.
··· 120 }; 121 122 configFile = mkOption { 123 + type = types.path; 124 default = confFile; 125 + defaultText = "confFile"; 126 description = " 127 Overridable config file to use for named. By default, that 128 generated by nixos.
+1
nixos/modules/services/networking/consul.nix
··· 118 package = mkOption { 119 description = "Package to use for consul-alerts."; 120 default = pkgs.consul-alerts; 121 type = types.package; 122 }; 123
··· 118 package = mkOption { 119 description = "Package to use for consul-alerts."; 120 default = pkgs.consul-alerts; 121 + defaultText = "pkgs.consul-alerts"; 122 type = types.package; 123 }; 124
+2 -1
nixos/modules/services/networking/firewall.nix
··· 421 }; 422 423 networking.firewall.extraPackages = mkOption { 424 default = [ ]; 425 - example = [ pkgs.ipset ]; 426 description = 427 '' 428 Additional packages to be included in the environment of the system
··· 421 }; 422 423 networking.firewall.extraPackages = mkOption { 424 + type = types.listOf types.package; 425 default = [ ]; 426 + example = literalExample "[ pkgs.ipset ]"; 427 description = 428 '' 429 Additional packages to be included in the environment of the system
+1
nixos/modules/services/networking/lambdabot.nix
··· 27 package = mkOption { 28 type = types.package; 29 default = pkgs.lambdabot; 30 description = "Used lambdabot package"; 31 }; 32
··· 27 package = mkOption { 28 type = types.package; 29 default = pkgs.lambdabot; 30 + defaultText = "pkgs.lambdabot"; 31 description = "Used lambdabot package"; 32 }; 33
+1 -1
nixos/modules/services/networking/networkmanager.nix
··· 110 111 # Ugly hack for using the correct gnome3 packageSet 112 basePackages = mkOption { 113 - type = types.attrsOf types.path; 114 default = { inherit networkmanager modemmanager wpa_supplicant 115 networkmanager_openvpn networkmanager_vpnc 116 networkmanager_openconnect
··· 110 111 # Ugly hack for using the correct gnome3 packageSet 112 basePackages = mkOption { 113 + type = types.attrsOf types.package; 114 default = { inherit networkmanager modemmanager wpa_supplicant 115 networkmanager_openvpn networkmanager_vpnc 116 networkmanager_openconnect
+1
nixos/modules/services/networking/ngircd.nix
··· 34 type = types.package; 35 36 default = pkgs.ngircd; 37 }; 38 }; 39 };
··· 34 type = types.package; 35 36 default = pkgs.ngircd; 37 + defaultText = "pkgs.ngircd"; 38 }; 39 }; 40 };
+1
nixos/modules/services/networking/skydns.nix
··· 56 57 package = mkOption { 58 default = pkgs.skydns; 59 type = types.package; 60 description = "Skydns package to use."; 61 };
··· 56 57 package = mkOption { 58 default = pkgs.skydns; 59 + defaultText = "pkgs.skydns"; 60 type = types.package; 61 description = "Skydns package to use."; 62 };
+1 -1
nixos/modules/services/networking/supplicant.nix
··· 115 116 path = mkOption { 117 type = types.path; 118 - example = "/etc/wpa_supplicant.conf"; 119 description = '' 120 External <literal>wpa_supplicant.conf</literal> configuration file. 121 The configuration options defined declaratively within <literal>networking.supplicant</literal> have
··· 115 116 path = mkOption { 117 type = types.path; 118 + example = literalExample "/etc/wpa_supplicant.conf"; 119 description = '' 120 External <literal>wpa_supplicant.conf</literal> configuration file. 121 The configuration options defined declaratively within <literal>networking.supplicant</literal> have
+1
nixos/modules/services/networking/syncthing.nix
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.syncthing; 46 example = literalExample "pkgs.syncthing"; 47 description = '' 48 Syncthing package to use.
··· 43 package = mkOption { 44 type = types.package; 45 default = pkgs.syncthing; 46 + defaultText = "pkgs.syncthing"; 47 example = literalExample "pkgs.syncthing"; 48 description = '' 49 Syncthing package to use.
+2
nixos/modules/services/networking/tinc.nix
··· 87 }; 88 89 package = mkOption { 90 default = pkgs.tinc_pre; 91 description = '' 92 The package to use for the tinc daemon's binary. 93 '';
··· 87 }; 88 89 package = mkOption { 90 + type = types.package; 91 default = pkgs.tinc_pre; 92 + defaultText = "pkgs.tinc_pre"; 93 description = '' 94 The package to use for the tinc daemon's binary. 95 '';
+2
nixos/modules/services/networking/vsftpd.nix
··· 120 }; 121 122 userlistFile = mkOption { 123 default = pkgs.writeText "userlist" (concatMapStrings (x: "${x}\n") cfg.userlist); 124 description = '' 125 Newline separated list of names to be allowed/denied if <option>userlistEnable</option> 126 is <literal>true</literal>. Meaning see <option>userlistDeny</option>.
··· 120 }; 121 122 userlistFile = mkOption { 123 + type = types.path; 124 default = pkgs.writeText "userlist" (concatMapStrings (x: "${x}\n") cfg.userlist); 125 + defaultText = "pkgs.writeText \"userlist\" (concatMapStrings (x: \"\${x}\n\") cfg.userlist)"; 126 description = '' 127 Newline separated list of names to be allowed/denied if <option>userlistEnable</option> 128 is <literal>true</literal>. Meaning see <option>userlistDeny</option>.
+1
nixos/modules/services/search/elasticsearch.nix
··· 40 package = mkOption { 41 description = "Elasticsearch package to use."; 42 default = pkgs.elasticsearch; 43 type = types.package; 44 }; 45
··· 40 package = mkOption { 41 description = "Elasticsearch package to use."; 42 default = pkgs.elasticsearch; 43 + defaultText = "pkgs.elasticsearch"; 44 type = types.package; 45 }; 46
+1
nixos/modules/services/search/kibana.nix
··· 127 package = mkOption { 128 description = "Kibana package to use"; 129 default = pkgs.kibana; 130 type = types.package; 131 }; 132
··· 127 package = mkOption { 128 description = "Kibana package to use"; 129 default = pkgs.kibana; 130 + defaultText = "pkgs.kibana"; 131 type = types.package; 132 }; 133
+2
nixos/modules/services/search/solr.nix
··· 45 javaPackage = mkOption { 46 type = types.package; 47 default = pkgs.jre; 48 description = '' 49 Which Java derivation to use for running solr. 50 ''; ··· 53 solrPackage = mkOption { 54 type = types.package; 55 default = pkgs.solr; 56 description = '' 57 Which solr derivation to use for running solr. 58 '';
··· 45 javaPackage = mkOption { 46 type = types.package; 47 default = pkgs.jre; 48 + defaultText = "pkgs.jre"; 49 description = '' 50 Which Java derivation to use for running solr. 51 ''; ··· 54 solrPackage = mkOption { 55 type = types.package; 56 default = pkgs.solr; 57 + defaultText = "pkgs.solr"; 58 description = '' 59 Which solr derivation to use for running solr. 60 '';
+3 -1
nixos/modules/services/web-servers/apache-httpd/default.nix
··· 429 package = mkOption { 430 type = types.package; 431 default = pkgs.apacheHttpd; 432 description = '' 433 Overridable attribute of the Apache HTTP Server package to use. 434 ''; ··· 437 configFile = mkOption { 438 type = types.path; 439 default = confFile; 440 - example = literalExample ''pkgs.writeText "httpd.conf" "# my custom config file ...";''; 441 description = '' 442 Override the configuration file used by Apache. By default, 443 NixOS generates one automatically.
··· 429 package = mkOption { 430 type = types.package; 431 default = pkgs.apacheHttpd; 432 + defaultText = "pkgs.apacheHttpd"; 433 description = '' 434 Overridable attribute of the Apache HTTP Server package to use. 435 ''; ··· 438 configFile = mkOption { 439 type = types.path; 440 default = confFile; 441 + defaultText = "confFile"; 442 + example = literalExample ''pkgs.writeText "httpd.conf" "# my custom config file ..."''; 443 description = '' 444 Override the configuration file used by Apache. By default, 445 NixOS generates one automatically.
+1
nixos/modules/services/web-servers/nginx/default.nix
··· 34 35 package = mkOption { 36 default = pkgs.nginx; 37 type = types.package; 38 description = " 39 Nginx package to use.
··· 34 35 package = mkOption { 36 default = pkgs.nginx; 37 + defaultText = "pkgs.nginx"; 38 type = types.package; 39 description = " 40 Nginx package to use.
+2
nixos/modules/services/web-servers/phpfpm.nix
··· 36 }; 37 38 phpPackage = mkOption { 39 default = pkgs.php; 40 description = '' 41 The PHP package to use for running the FPM service. 42 '';
··· 36 }; 37 38 phpPackage = mkOption { 39 + type = types.package; 40 default = pkgs.php; 41 + defaultText = "pkgs.php"; 42 description = '' 43 The PHP package to use for running the FPM service. 44 '';
+5
nixos/modules/services/web-servers/tomcat.nix
··· 24 package = mkOption { 25 type = types.package; 26 default = pkgs.tomcat7; 27 example = lib.literalExample "pkgs.tomcat8"; 28 description = '' 29 Which tomcat package to use. ··· 72 }; 73 74 webapps = mkOption { 75 default = [ tomcat ]; 76 description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat"; 77 }; 78 ··· 87 }; 88 89 jdk = mkOption { 90 default = pkgs.jdk; 91 description = "Which JDK to use."; 92 }; 93
··· 24 package = mkOption { 25 type = types.package; 26 default = pkgs.tomcat7; 27 + defaultText = "pkgs.tomcat7"; 28 example = lib.literalExample "pkgs.tomcat8"; 29 description = '' 30 Which tomcat package to use. ··· 73 }; 74 75 webapps = mkOption { 76 + type = types.listOf types.package; 77 default = [ tomcat ]; 78 + defaultText = "[ tomcat ]"; 79 description = "List containing WAR files or directories with WAR files which are web applications to be deployed on Tomcat"; 80 }; 81 ··· 90 }; 91 92 jdk = mkOption { 93 + type = types.package; 94 default = pkgs.jdk; 95 + defaultText = "pkgs.jdk"; 96 description = "Which JDK to use."; 97 }; 98
+1
nixos/modules/services/web-servers/winstone.nix
··· 31 javaPackage = mkOption { 32 type = types.package; 33 default = pkgs.jre; 34 description = '' 35 Which Java derivation to use for running Winstone. 36 '';
··· 31 javaPackage = mkOption { 32 type = types.package; 33 default = pkgs.jre; 34 + defaultText = "pkgs.jre"; 35 description = '' 36 Which Java derivation to use for running Winstone. 37 '';
+20 -19
nixos/modules/services/web-servers/zope2.nix
··· 75 services.zope2.instances = mkOption { 76 default = {}; 77 type = types.loaOf types.optionSet; 78 - example = { 79 - plone01 = { 80 - http_address = "127.0.0.1:8080"; 81 - extra = 82 - '' 83 - <zodb_db main> 84 - mount-point / 85 - cache-size 30000 86 - <blobstorage> 87 - blob-dir /var/lib/zope2/plone01/blobstorage 88 - <filestorage> 89 - path /var/lib/zope2/plone01/filestorage/Data.fs 90 - </filestorage> 91 - </blobstorage> 92 - </zodb_db> 93 - ''; 94 - 95 - }; 96 - }; 97 description = "zope2 instances to be created automaticaly by the system."; 98 options = [ zope2Opts ]; 99 };
··· 75 services.zope2.instances = mkOption { 76 default = {}; 77 type = types.loaOf types.optionSet; 78 + example = literalExample '' 79 + { 80 + plone01 = { 81 + http_address = "127.0.0.1:8080"; 82 + extra = 83 + ''' 84 + <zodb_db main> 85 + mount-point / 86 + cache-size 30000 87 + <blobstorage> 88 + blob-dir /var/lib/zope2/plone01/blobstorage 89 + <filestorage> 90 + path /var/lib/zope2/plone01/filestorage/Data.fs 91 + </filestorage> 92 + </blobstorage> 93 + </zodb_db> 94 + '''; 95 + }; 96 + } 97 + ''; 98 description = "zope2 instances to be created automaticaly by the system."; 99 options = [ zope2Opts ]; 100 };
+1
nixos/modules/services/x11/desktop-managers/gnome3.nix
··· 62 }; 63 64 environment.gnome3.packageSet = mkOption { 65 default = null; 66 example = literalExample "pkgs.gnome3_16"; 67 description = "Which GNOME 3 package set to use.";
··· 62 }; 63 64 environment.gnome3.packageSet = mkOption { 65 + type = types.nullOr types.package; 66 default = null; 67 example = literalExample "pkgs.gnome3_16"; 68 description = "Which GNOME 3 package set to use.";
+1
nixos/modules/services/x11/desktop-managers/kde4.nix
··· 66 kdeWorkspacePackage = mkOption { 67 internal = true; 68 default = pkgs.kde4.kde_workspace; 69 type = types.package; 70 description = "Custom kde-workspace, used for NixOS rebranding."; 71 };
··· 66 kdeWorkspacePackage = mkOption { 67 internal = true; 68 default = pkgs.kde4.kde_workspace; 69 + defaultText = "pkgs.kde4.kde_workspace"; 70 type = types.package; 71 description = "Custom kde-workspace, used for NixOS rebranding."; 72 };
+4 -2
nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix
··· 67 theme = { 68 69 package = mkOption { 70 - type = types.path; 71 default = pkgs.gnome3.gnome_themes_standard; 72 description = '' 73 The package path that contains the theme given in the name option. 74 ''; ··· 87 iconTheme = { 88 89 package = mkOption { 90 - type = types.path; 91 default = pkgs.gnome3.defaultIconTheme; 92 description = '' 93 The package path that contains the icon theme given in the name option. 94 '';
··· 67 theme = { 68 69 package = mkOption { 70 + type = types.package; 71 default = pkgs.gnome3.gnome_themes_standard; 72 + defaultText = "pkgs.gnome3.gnome_themes_standard"; 73 description = '' 74 The package path that contains the theme given in the name option. 75 ''; ··· 88 iconTheme = { 89 90 package = mkOption { 91 + type = types.package; 92 default = pkgs.gnome3.defaultIconTheme; 93 + defaultText = "pkgs.gnome3.defaultIconTheme"; 94 description = '' 95 The package path that contains the icon theme given in the name option. 96 '';
+2 -1
nixos/modules/services/x11/display-managers/lightdm.nix
··· 69 70 greeter = { 71 package = mkOption { 72 - type = types.path; 73 description = '' 74 The LightDM greeter to login via. The package should be a directory 75 containing a .desktop file matching the name in the 'name' option. ··· 86 }; 87 88 background = mkOption { 89 description = '' 90 The background image or color to use. 91 '';
··· 69 70 greeter = { 71 package = mkOption { 72 + type = types.package; 73 description = '' 74 The LightDM greeter to login via. The package should be a directory 75 containing a .desktop file matching the name in the 'name' option. ··· 86 }; 87 88 background = mkOption { 89 + type = types.path; 90 description = '' 91 The background image or color to use. 92 '';
+4
nixos/modules/services/x11/display-managers/slim.nix
··· 61 url = "https://github.com/jagajaga/nixos-slim-theme/archive/2.0.tar.gz"; 62 sha256 = "0lldizhigx7bjhxkipii87y432hlf5wdvamnfxrryf9z7zkfypc8"; 63 }; 64 example = literalExample '' 65 pkgs.fetchurl { 66 url = "mirror://sourceforge/slim.berlios/slim-wave.tar.gz";
··· 61 url = "https://github.com/jagajaga/nixos-slim-theme/archive/2.0.tar.gz"; 62 sha256 = "0lldizhigx7bjhxkipii87y432hlf5wdvamnfxrryf9z7zkfypc8"; 63 }; 64 + defaultText = ''pkgs.fetchurl { 65 + url = "https://github.com/jagajaga/nixos-slim-theme/archive/2.0.tar.gz"; 66 + sha256 = "0lldizhigx7bjhxkipii87y432hlf5wdvamnfxrryf9z7zkfypc8"; 67 + }''; 68 example = literalExample '' 69 pkgs.fetchurl { 70 url = "mirror://sourceforge/slim.berlios/slim-wave.tar.gz";
+1
nixos/modules/services/x11/redshift.nix
··· 76 package = mkOption { 77 type = types.package; 78 default = pkgs.redshift; 79 description = '' 80 redshift derivation to use. 81 '';
··· 76 package = mkOption { 77 type = types.package; 78 default = pkgs.redshift; 79 + defaultText = "pkgs.redshift"; 80 description = '' 81 redshift derivation to use. 82 '';
+1
nixos/modules/services/x11/window-managers/xmonad.nix
··· 16 services.xserver.windowManager.xmonad = { 17 enable = mkEnableOption "xmonad"; 18 haskellPackages = mkOption { 19 default = pkgs.haskellPackages; 20 defaultText = "pkgs.haskellPackages"; 21 example = literalExample "pkgs.haskell.packages.ghc784";
··· 16 services.xserver.windowManager.xmonad = { 17 enable = mkEnableOption "xmonad"; 18 haskellPackages = mkOption { 19 + type = lib.types.packageSet; 20 default = pkgs.haskellPackages; 21 defaultText = "pkgs.haskellPackages"; 22 example = literalExample "pkgs.haskell.packages.ghc784";
+1 -1
nixos/modules/system/activation/top-level.nix
··· 205 206 system.replaceRuntimeDependencies = mkOption { 207 default = []; 208 - example = lib.literalExample "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { ... }; }) ]"; 209 type = types.listOf (types.submodule ( 210 { options, ... }: { 211 options.original = mkOption {
··· 205 206 system.replaceRuntimeDependencies = mkOption { 207 default = []; 208 + example = lib.literalExample "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { }; }) ]"; 209 type = types.listOf (types.submodule ( 210 { options, ... }: { 211 options.original = mkOption {
+2 -1
nixos/modules/system/boot/kernel.nix
··· 20 options = { 21 22 boot.kernelPackages = mkOption { 23 default = pkgs.linuxPackages; 24 # We don't want to evaluate all of linuxPackages for the manual 25 # - some of it might not even evaluate correctly. ··· 63 }; 64 65 boot.extraModulePackages = mkOption { 66 - type = types.listOf types.path; 67 default = []; 68 example = literalExample "[ pkgs.linuxPackages.nvidia_x11 ]"; 69 description = "A list of additional packages supplying kernel modules.";
··· 20 options = { 21 22 boot.kernelPackages = mkOption { 23 + type = types.packageSet; 24 default = pkgs.linuxPackages; 25 # We don't want to evaluate all of linuxPackages for the manual 26 # - some of it might not even evaluate correctly. ··· 64 }; 65 66 boot.extraModulePackages = mkOption { 67 + type = types.listOf types.package; 68 default = []; 69 example = literalExample "[ pkgs.linuxPackages.nvidia_x11 ]"; 70 description = "A list of additional packages supplying kernel modules.";
+1
nixos/modules/system/boot/loader/grub/grub.nix
··· 251 }; 252 253 extraFiles = mkOption { 254 default = {}; 255 example = literalExample '' 256 { "memtest.bin" = "''${pkgs.memtest86plus}/memtest.bin"; }
··· 251 }; 252 253 extraFiles = mkOption { 254 + type = types.attrsOf types.path; 255 default = {}; 256 example = literalExample '' 257 { "memtest.bin" = "''${pkgs.memtest86plus}/memtest.bin"; }
+1 -1
nixos/modules/system/boot/loader/grub/ipxe.nix
··· 39 dhcp 40 chain http://boot.ipxe.org/demo/boot.php 41 '''; 42 - }; 43 ''; 44 }; 45 };
··· 39 dhcp 40 chain http://boot.ipxe.org/demo/boot.php 41 '''; 42 + } 43 ''; 44 }; 45 };
+1 -1
nixos/modules/system/boot/luksroot.nix
··· 229 230 boot.initrd.luks.devices = mkOption { 231 default = [ ]; 232 - example = [ { name = "luksroot"; device = "/dev/sda3"; preLVM = true; } ]; 233 description = '' 234 The list of devices that should be decrypted using LUKS before trying to mount the 235 root partition. This works for both LVM-over-LUKS and LUKS-over-LVM setups.
··· 229 230 boot.initrd.luks.devices = mkOption { 231 default = [ ]; 232 + example = literalExample ''[ { name = "luksroot"; device = "/dev/sda3"; preLVM = true; } ]''; 233 description = '' 234 The list of devices that should be decrypted using LUKS before trying to mount the 235 root partition. This works for both LVM-over-LUKS and LUKS-over-LVM setups.
+1
nixos/modules/system/boot/systemd.nix
··· 374 375 systemd.package = mkOption { 376 default = pkgs.systemd; 377 type = types.package; 378 description = "The systemd package."; 379 };
··· 374 375 systemd.package = mkOption { 376 default = pkgs.systemd; 377 + defaultText = "pkgs.systemd"; 378 type = types.package; 379 description = "The systemd package."; 380 };
+2
nixos/modules/tasks/network-interfaces.nix
··· 355 }; 356 357 networking.nameservers = mkOption { 358 default = []; 359 example = ["130.161.158.4" "130.161.33.17"]; 360 description = '' ··· 390 }; 391 392 networking.localCommands = mkOption { 393 default = ""; 394 example = "text=anything; echo You can put $text here."; 395 description = ''
··· 355 }; 356 357 networking.nameservers = mkOption { 358 + type = types.listOf types.str; 359 default = []; 360 example = ["130.161.158.4" "130.161.33.17"]; 361 description = '' ··· 391 }; 392 393 networking.localCommands = mkOption { 394 + type = types.str; 395 default = ""; 396 example = "text=anything; echo You can put $text here."; 397 description = ''
+1
nixos/modules/virtualisation/openvswitch.nix
··· 31 package = mkOption { 32 type = types.package; 33 default = pkgs.openvswitch; 34 description = '' 35 Open vSwitch package to use. 36 '';
··· 31 package = mkOption { 32 type = types.package; 33 default = pkgs.openvswitch; 34 + defaultText = "pkgs.openvswitch"; 35 description = '' 36 Open vSwitch package to use. 37 '';