3
0
Fork 0
forked from mirrors/nixpkgs

Manual: Remove store path references

This commit is contained in:
Eelco Dolstra 2015-09-24 11:42:32 +02:00
parent e73b19ae4e
commit 89e983786a
13 changed files with 30 additions and 20 deletions

View file

@ -57,8 +57,8 @@ in
type = types.attrsOf (types.listOf types.str); type = types.attrsOf (types.listOf types.str);
example = { PATH = [ "/bin" "/sbin" ]; MANPATH = [ "/man" "/share/man" ]; }; example = { PATH = [ "/bin" "/sbin" ]; MANPATH = [ "/man" "/share/man" ]; };
description = '' description = ''
Attribute set of environment variable. Each attribute maps to a list Attribute set of environment variable. Each attribute maps to a list
of relative paths. Each relative path is appended to the each profile of relative paths. Each relative path is appended to the each profile
of <option>environment.profiles</option> to form the content of the of <option>environment.profiles</option> to form the content of the
corresponding environment variable. corresponding environment variable.
''; '';
@ -123,6 +123,7 @@ in
"''${pkgs.dash}/bin/dash" "''${pkgs.dash}/bin/dash"
''; '';
type = types.path; type = types.path;
visible = false;
description = '' description = ''
The shell executable that is linked system-wide to The shell executable that is linked system-wide to
<literal>/bin/sh</literal>. Please note that NixOS assumes all <literal>/bin/sh</literal>. Please note that NixOS assumes all

View file

@ -36,7 +36,6 @@ in
askPassword = mkOption { askPassword = mkOption {
type = types.str; type = types.str;
default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
description = ''Program used by SSH to ask for passwords.''; description = ''Program used by SSH to ask for passwords.'';
}; };
@ -223,5 +222,7 @@ in
export SSH_ASKPASS=${askPassword} export SSH_ASKPASS=${askPassword}
''; '';
programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
}; };
} }

View file

@ -99,7 +99,6 @@ in
}; };
outputTheme = mkOption { outputTheme = mkOption {
default = "${pkgs.venus}/themes/classic_fancy";
type = types.path; type = types.path;
description = '' description = ''
Directory containing a config.ini file which is merged with this one. Directory containing a config.ini file which is merged with this one.
@ -170,5 +169,7 @@ in
startAt = cfg.dates; startAt = cfg.dates;
}; };
services.venus.outputTheme = mkDefault "${pkgs.venus}/themes/classic_fancy";
}; };
} }

View file

@ -32,7 +32,6 @@ in {
''; '';
}; };
configurationDir = mkOption { configurationDir = mkOption {
default = "${activemq}/conf";
description = '' description = ''
The base directory for ActiveMQ's configuration. The base directory for ActiveMQ's configuration.
By default, this directory is searched for a file named activemq.xml, By default, this directory is searched for a file named activemq.xml,
@ -126,6 +125,8 @@ in {
''; '';
}; };
services.activemq.configurationDir = mkDefault "${activemq}/conf";
}; };
} }

View file

@ -36,7 +36,6 @@ in
hardware.sane.configDir = mkOption { hardware.sane.configDir = mkOption {
type = types.string; type = types.string;
default = "${saneConfig}/etc/sane.d";
description = "The value of SANE_CONFIG_DIR."; description = "The value of SANE_CONFIG_DIR.";
}; };
@ -47,6 +46,8 @@ in
config = mkIf config.hardware.sane.enable { config = mkIf config.hardware.sane.enable {
hardware.sane.configDir = mkDefault "${saneConfig}/etc/sane.d";
environment.systemPackages = backends; environment.systemPackages = backends;
environment.sessionVariables = { environment.sessionVariables = {
SANE_CONFIG_DIR = config.hardware.sane.configDir; SANE_CONFIG_DIR = config.hardware.sane.configDir;

View file

@ -84,10 +84,10 @@ in
type = types.lines; type = types.lines;
default = ''stdin { type => "example" }''; default = ''stdin { type => "example" }'';
description = "Logstash input configuration."; description = "Logstash input configuration.";
example = '' example = literalExample ''
# Read from journal # Read from journal
pipe { pipe {
command => "${pkgs.systemd}/bin/journalctl -f -o json" command => "''${pkgs.systemd}/bin/journalctl -f -o json"
type => "syslog" codec => json {} type => "syslog" codec => json {}
} }
''; '';

View file

@ -80,7 +80,6 @@ in
services.nixosManual.browser = mkOption { services.nixosManual.browser = mkOption {
type = types.path; type = types.path;
default = "${pkgs.w3m}/bin/w3m";
description = '' description = ''
Browser used to show the manual. Browser used to show the manual.
''; '';
@ -116,6 +115,8 @@ in
services.mingetty.helpLine = mkIf cfg.showManual services.mingetty.helpLine = mkIf cfg.showManual
"\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual."; "\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual.";
services.nixosManual.browser = mkDefault "${pkgs.w3m}/bin/w3m";
}; };
} }

View file

@ -97,7 +97,6 @@ in
transcoders = mkOption { transcoders = mkOption {
type = types.listOf types.path; type = types.listOf types.path;
default = [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
description = '' description = ''
List of paths to transcoder executables that should be accessible List of paths to transcoder executables that should be accessible
from Subsonic. Symlinks will be created to each executable inside from Subsonic. Symlinks will be created to each executable inside
@ -153,5 +152,8 @@ in
}; };
users.extraGroups.subsonic.gid = config.ids.gids.subsonic; users.extraGroups.subsonic.gid = config.ids.gids.subsonic;
services.subsonic.transcoders = mkDefault [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
}; };
} }

View file

@ -200,7 +200,6 @@ in {
staticRootPath = mkOption { staticRootPath = mkOption {
description = "Root path for static assets."; description = "Root path for static assets.";
default = "${cfg.package.out}/share/go/src/github.com/grafana/grafana/public";
type = types.str; type = types.str;
}; };
@ -311,7 +310,7 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
warnings = [ warnings = [
"Grafana passwords will be stored as plaintext in nix store!" "Grafana passwords will be stored as plaintext in the Nix store!"
]; ];
systemd.services.grafana = { systemd.services.grafana = {
@ -331,5 +330,8 @@ in {
home = cfg.dataDir; home = cfg.dataDir;
createHome = true; createHome = true;
}; };
services.grafana.staticRootPath = mkDefault "${cfg.package.out}/share/go/src/github.com/grafana/grafana/public";
}; };
} }

View file

@ -52,10 +52,7 @@ in
default = "opendns"; default = "opendns";
type = types.nullOr types.string; type = types.nullOr types.string;
description = '' description = ''
The name of the upstream DNSCrypt resolver to use. See The name of the upstream DNSCrypt resolver to use.
<literal>${resolverListFile}</literal> for alternative resolvers
(e.g., if you are concerned about logging and/or server
location).
''; '';
}; };
customResolver = mkOption { customResolver = mkOption {

View file

@ -33,7 +33,7 @@ in
type = types.str; type = types.str;
description = " description = "
The Seeks server configuration. If it is not specified, The Seeks server configuration. If it is not specified,
a default configuration is used (${seeks}/etc/seeks). a default configuration is used.
"; ";
}; };

View file

@ -44,8 +44,7 @@ in {
phpIni = mkOption { phpIni = mkOption {
type = types.path; type = types.path;
default = "${cfg.phpPackage}/etc/php-recommended.ini"; description = "PHP configuration file to use.";
description = "php.ini file to use.";
}; };
poolConfigs = mkOption { poolConfigs = mkOption {
@ -86,5 +85,7 @@ in {
}; };
}; };
services.phpfpm.phpIni = mkDefault "${cfg.phpPackage}/etc/php-recommended.ini";
}; };
} }

View file

@ -104,7 +104,6 @@ in
}; };
background = mkOption { background = mkOption {
default = "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
description = '' description = ''
The background image or color to use. The background image or color to use.
''; '';
@ -172,5 +171,8 @@ in
}; };
users.extraGroups.lightdm.gid = config.ids.gids.lightdm; users.extraGroups.lightdm.gid = config.ids.gids.lightdm;
services.xserver.displayManager.lightdm.background = mkDefault "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
}; };
} }