Merge #12357: nixos docs: show references to packages

Changed files
+37 -27
lib
nixos
modules
programs
services
amqp
activemq
misc
monitoring
networking
web-servers
x11
display-managers
+1 -1
lib/attrsets.nix
···
/* Like `mapAttrsRecursive', but it takes an additional predicate
-
function that tells it whether to recursive into an attribute
+
function that tells it whether to recurse into an attribute
set. If it returns false, `mapAttrsRecursiveCond' does not
recurse, but does apply the map function. It is returns true, it
does recurse, and does not apply the map function.
+1 -2
nixos/modules/programs/ssh.nix
···
askPassword = mkOption {
type = types.str;
+
default = "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
description = ''Program used by SSH to ask for passwords.'';
};
···
'';
environment.variables.SSH_ASKPASS = optionalString config.services.xserver.enable askPassword;
-
-
programs.ssh.askPassword = mkDefault "${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass";
};
}
+1 -2
nixos/modules/programs/venus.nix
···
};
outputTheme = mkOption {
+
default = "${pkgs.venus}/themes/classic_fancy";
type = types.path;
description = ''
Directory containing a config.ini file which is merged with this one.
···
environment.SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
startAt = cfg.dates;
};
-
-
services.venus.outputTheme = mkDefault "${pkgs.venus}/themes/classic_fancy";
};
}
+1 -2
nixos/modules/services/amqp/activemq/default.nix
···
'';
};
configurationDir = mkOption {
+
default = "${activemq}/conf";
description = ''
The base directory for ActiveMQ's configuration.
By default, this directory is searched for a file named activemq.xml,
···
${cfg.extraJavaOptions} ActiveMQBroker "${cfg.configurationURI}"
'';
};
-
-
services.activemq.configurationDir = mkDefault "${activemq}/conf";
};
+1 -2
nixos/modules/services/misc/nixos-manual.nix
···
services.nixosManual.browser = mkOption {
type = types.path;
+
default = "${pkgs.w3m-nox}/bin/w3m";
description = ''
Browser used to show the manual.
'';
···
services.mingetty.helpLine = mkIf cfg.showManual
"\nPress <Alt-F${toString cfg.ttyNumber}> for the NixOS manual.";
-
-
services.nixosManual.browser = mkDefault "${pkgs.w3m-nox}/bin/w3m";
};
+1 -3
nixos/modules/services/misc/subsonic.nix
···
transcoders = mkOption {
type = types.listOf types.path;
+
default = [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
description = ''
List of paths to transcoder executables that should be accessible
from Subsonic. Symlinks will be created to each executable inside
···
};
users.extraGroups.subsonic.gid = config.ids.gids.subsonic;
-
-
services.subsonic.transcoders = mkDefault [ "${pkgs.ffmpeg}/bin/ffmpeg" ];
-
};
}
+1 -3
nixos/modules/services/monitoring/grafana.nix
···
staticRootPath = mkOption {
description = "Root path for static assets.";
+
default = "${cfg.package.out}/share/grafana/public";
type = types.str;
};
···
home = cfg.dataDir;
createHome = true;
};
-
-
services.grafana.staticRootPath = mkDefault "${cfg.package}/share/grafana/public";
-
};
}
+4 -1
nixos/modules/services/networking/dnscrypt-proxy.nix
···
default = "opendns";
type = types.nullOr types.string;
description = ''
-
The name of the upstream DNSCrypt resolver to use.
+
The name of the upstream DNSCrypt resolver to use. See
+
<literal>${resolverListFile}</literal> for alternative resolvers
+
(e.g., if you are concerned about logging and/or server
+
location).
'';
};
customResolver = mkOption {
+2 -3
nixos/modules/services/web-servers/phpfpm.nix
···
phpIni = mkOption {
type = types.path;
-
description = "PHP configuration file to use.";
+
default = "${cfg.phpPackage}/etc/php-recommended.ini";
+
description = "php.ini file to use.";
};
poolConfigs = mkOption {
···
PIDFile = pidFile;
};
};
-
-
services.phpfpm.phpIni = mkDefault "${cfg.phpPackage}/etc/php-recommended.ini";
};
}
+1 -3
nixos/modules/services/x11/display-managers/lightdm.nix
···
background = mkOption {
type = types.str;
+
default = "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
description = ''
The background image or color to use.
'';
···
};
users.extraGroups.lightdm.gid = config.ids.gids.lightdm;
-
-
services.xserver.displayManager.lightdm.background = mkDefault "${pkgs.nixos-artwork}/share/artwork/gnome/Gnome_Dark.png";
-
services.xserver.tty = null; # We might start multiple X servers so let the tty increment themselves..
services.xserver.display = null; # We specify our own display (and logfile) in xserver-wrapper up there
};
+23 -5
nixos/release.nix
···
}).config));
+
cleanConfig = import ./lib/eval-config.nix {
+
system = "x86_64-linux";
+
modules = [ ];
+
pkgs = with pkgs.lib;
+
let
+
scrubDerivations = namePrefix: pkgSet: mapAttrs
+
(name: value:
+
let wholeName = "${namePrefix}.${name}"; in
+
if isAttrs value then
+
scrubDerivations wholeName value
+
// (optionalAttrs (isDerivation value) { outPath = "\${${wholeName}}"; })
+
else value
+
)
+
pkgSet;
+
in scrubDerivations "pkgs" pkgs;
+
};
+
docs = (import ./doc/manual) {
+
inherit pkgs version;
+
revision = versionModule.system.nixosRevision;
+
inherit (cleanConfig) options;
+
};
+
in rec {
channel = import lib/make-channel.nix { inherit pkgs nixpkgs version versionSuffix; };
-
manual = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.manual.manual);
-
manualPDF = (buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.manual.manualPDF)).x86_64-linux;
-
manpages = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.manual.manpages);
-
options = (buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.manual.optionsJSON)).x86_64-linux;
-
+
inherit (docs) manual manualPDF manpages optionsJSON;
# Build the initial ramdisk so Hydra can keep track of its size over time.
initialRamdisk = buildFromConfig ({ pkgs, ... }: { }) (config: config.system.build.initialRamdisk);