nixos manuals: bring back package references
This reverts most of 89e983786a, as those references are sanitized now.
Fixes #10039, at least most of it.
The `sane` case wasn't fixed, as it calls a *function* in pkgs to get
the default value.
commit4fede53c0996938979d2966a69f108782a8c1c12
authorVladimír Čunát <vcunat@gmail.com>
dateWed 13 Jan 2016, 11:48 (11 years ago)
parente0feace
nixos/modules/programs/ssh.nix+1−2
@@ -36,6 +36,7 @@ in
3636
3737 askPassword = mkOption {
3838 type = types.str;
39+ default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
3940 description = ''Program used by SSH to ask for passwords.'';
4041 };
4142
@@ -226,7 +227,5 @@ in
226227
227228 environment.variables.SSH_ASKPASS = optionalString config.services.xserver.enable askPassword;
228229
229− programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
230−
231230 };
232231}
nixos/modules/programs/venus.nix+1−2
@@ -99,6 +99,7 @@ in
9999 };
100100
101101 outputTheme = mkOption {
102+ default = "${pkgs.venus}/themes/classic_fancy";
102103 type = types.path;
103104 description = ''
104105 Directory containing a config.ini file which is merged with this one.
@@ -169,7 +170,5 @@ in
169170 startAt = cfg.dates;
170171 };
171172
172− services.venus.outputTheme = mkDefault "${pkgs.venus}/themes/classic_fancy";
173−
174173 };
175174}
nixos/modules/services/amqp/activemq/default.nix+1−2
@@ -32,6 +32,7 @@ in {
3232 '';
3333 };
3434 configurationDir = mkOption {
35+ default = "${activemq}/conf";
3536 description = ''
3637 The base directory for ActiveMQ's configuration.
3738 By default, this directory is searched for a file named activemq.xml,
@@ -125,8 +126,6 @@ in {
125126 '';
126127 };
127128
128− services.activemq.configurationDir = mkDefault "${activemq}/conf";
129−
130129 };
131130
132131}
nixos/modules/services/misc/nixos-manual.nix+1−2
@@ -96,6 +96,7 @@ in
9696
9797 services.nixosManual.browser = mkOption {
9898 type = types.path;
99+ default = "${pkgs.w3m-nox}/bin/w3m";
99100 description = ''
100101 Browser used to show the manual.
101102 '';
@@ -133,8 +134,6 @@ in
133134 services.mingetty.helpLine = mkIf cfg.showManual
134135 "\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual.";
135136
136− services.nixosManual.browser = mkDefault "${pkgs.w3m-nox}/bin/w3m";
137−
138137 };
139138
140139}
nixos/modules/services/misc/subsonic.nix+1−3
@@ -97,6 +97,7 @@ in
9797
9898 transcoders = mkOption {
9999 type = types.listOf types.path;
100+ default = [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
100101 description = ''
101102 List of paths to transcoder executables that should be accessible
102103 from Subsonic. Symlinks will be created to each executable inside
@@ -152,8 +153,5 @@ in
152153 };
153154
154155 users.extraGroups.subsonic.gid = config.ids.gids.subsonic;
155−
156− services.subsonic.transcoders = mkDefault [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
157−
158156 };
159157}
nixos/modules/services/monitoring/grafana.nix+1−3
@@ -87,6 +87,7 @@ in {
8787
8888 staticRootPath = mkOption {
8989 description = "Root path for static assets.";
90+ default = "${cfg.package.out}/share/grafana/public";
9091 type = types.str;
9192 };
9293
@@ -232,8 +233,5 @@ in {
232233 home = cfg.dataDir;
233234 createHome = true;
234235 };
235−
236− services.grafana.staticRootPath = mkDefault "${cfg.package}/share/grafana/public";
237−
238236 };
239237}
nixos/modules/services/networking/dnscrypt-proxy.nix+4−1
@@ -52,7 +52,10 @@ in
5252 default = "opendns";
5353 type = types.nullOr types.string;
5454 description = ''
55− The name of the upstream DNSCrypt resolver to use.
55+ The name of the upstream DNSCrypt resolver to use. See
56+ <literal>${resolverListFile}</literal> for alternative resolvers
57+ (e.g., if you are concerned about logging and/or server
58+ location).
5659 '';
5760 };
5861 customResolver = mkOption {
nixos/modules/services/web-servers/phpfpm.nix+2−3
@@ -46,7 +46,8 @@ in {
4646
4747 phpIni = mkOption {
4848 type = types.path;
49− description = "PHP configuration file to use.";
49+ default = "${cfg.phpPackage}/etc/php-recommended.ini";
50+ description = "php.ini file to use.";
5051 };
5152
5253 poolConfigs = mkOption {
@@ -87,7 +88,5 @@ in {
8788 };
8889 };
8990
90− services.phpfpm.phpIni = mkDefault "${cfg.phpPackage}/etc/php-recommended.ini";
91−
9291 };
9392}
nixos/modules/services/x11/display-managers/lightdm.nix+1−3
@@ -87,6 +87,7 @@ in
8787
8888 background = mkOption {
8989 type = types.str;
90+ default = "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
9091 description = ''
9192 The background image or color to use.
9293 '';
@@ -152,9 +153,6 @@ in
152153 };
153154
154155 users.extraGroups.lightdm.gid = config.ids.gids.lightdm;
155−
156− services.xserver.displayManager.lightdm.background = mkDefault "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
157−
158156 services.xserver.tty = null; # We might start multiple X servers so let the tty increment themselves..
159157 services.xserver.display = null; # We specify our own display (and logfile) in xserver-wrapper up there
160158 };