···840 default in the CLI tooling which in turn enables us to use
841 <literal>unbound-control</literal> without passing a custom configuration location.
842 </para>
00000000000000000843 </listitem>
844 <listitem>
845 <para>
···840 default in the CLI tooling which in turn enables us to use
841 <literal>unbound-control</literal> without passing a custom configuration location.
842 </para>
843+844+ <para>
845+ The module has also been reworked to be <link
846+ xlink:href="https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md">RFC
847+ 0042</link> compliant. As such,
848+ <option>sevices.unbound.extraConfig</option> has been removed and replaced
849+ by <xref linkend="opt-services.unbound.settings"/>. <option>services.unbound.interfaces</option>
850+ has been renamed to <option>services.unbound.settings.server.interface</option>.
851+ </para>
852+853+ <para>
854+ <option>services.unbound.forwardAddresses</option> and
855+ <option>services.unbound.allowedAccess</option> have also been changed to
856+ use the new settings interface. You can follow the instructions when
857+ executing <literal>nixos-rebuild</literal> to upgrade your configuration to
858+ use the new interface.
859+ </para>
860 </listitem>
861 <listitem>
862 <para>
+7-2
nixos/lib/testing-python.nix
···54 };
5556 # Run an automated test suite in the given virtual network.
57- # `driver' is the script that runs the network.
58- runTests = { driver, pos }:
0000059 stdenv.mkDerivation {
60 name = "vm-test-run-${driver.testName}";
61
···54 };
5556 # Run an automated test suite in the given virtual network.
57+ runTests = {
58+ # the script that runs the network
59+ driver,
60+ # a source position in the format of builtins.unsafeGetAttrPos
61+ # for meta.position
62+ pos,
63+ }:
64 stdenv.mkDerivation {
65 name = "vm-test-run-${driver.testName}";
66
···1+{ config, lib, pkgs, ... }:
2+3+with lib;
4+5+let
6+ enable = config.programs.bash.enableCompletion;
7+in
8+{
9+ options = {
10+ programs.bash.enableCompletion = mkEnableOption "Bash completion for all interactive bash shells" // {
11+ default = true;
12+ };
13+ };
14+15+ config = mkIf enable {
16+ programs.bash.promptPluginInit = ''
17+ # Check whether we're running a version of Bash that has support for
18+ # programmable completion. If we do, enable all modules installed in
19+ # the system and user profile in obsolete /etc/bash_completion.d/
20+ # directories. Bash loads completions in all
21+ # $XDG_DATA_DIRS/bash-completion/completions/
22+ # on demand, so they do not need to be sourced here.
23+ if shopt -q progcomp &>/dev/null; then
24+ . "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
25+ nullglobStatus=$(shopt -p nullglob)
26+ shopt -s nullglob
27+ for p in $NIX_PROFILES; do
28+ for m in "$p/etc/bash_completion.d/"*; do
29+ . $m
30+ done
31+ done
32+ eval "$nullglobStatus"
33+ unset nullglobStatus p m
34+ fi
35+ '';
36+ };
37+}
+6-39
nixos/modules/programs/bash/bash.nix
···1112 cfg = config.programs.bash;
1314- bashCompletion = optionalString cfg.enableCompletion ''
15- # Check whether we're running a version of Bash that has support for
16- # programmable completion. If we do, enable all modules installed in
17- # the system and user profile in obsolete /etc/bash_completion.d/
18- # directories. Bash loads completions in all
19- # $XDG_DATA_DIRS/bash-completion/completions/
20- # on demand, so they do not need to be sourced here.
21- if shopt -q progcomp &>/dev/null; then
22- . "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
23- nullglobStatus=$(shopt -p nullglob)
24- shopt -s nullglob
25- for p in $NIX_PROFILES; do
26- for m in "$p/etc/bash_completion.d/"*; do
27- . $m
28- done
29- done
30- eval "$nullglobStatus"
31- unset nullglobStatus p m
32- fi
33- '';
34-35- lsColors = optionalString cfg.enableLsColors ''
36- eval "$(${pkgs.coreutils}/bin/dircolors -b)"
37- '';
38-39 bashAliases = concatStringsSep "\n" (
40 mapAttrsFlatten (k: v: "alias ${k}=${escapeShellArg v}")
41 (filterAttrs (k: v: v != null) cfg.shellAliases)
···123 type = types.lines;
124 };
125126- enableCompletion = mkOption {
127- default = true;
128 description = ''
129- Enable Bash completion for all interactive bash shells.
130 '';
131- type = types.bool;
132- };
133-134- enableLsColors = mkOption {
135- default = true;
136- description = ''
137- Enable extra colors in directory listings.
138- '';
139- type = types.bool;
140 };
141142 };
···167 set +h
168169 ${cfg.promptInit}
170- ${bashCompletion}
171- ${lsColors}
172 ${bashAliases}
173174 ${cfge.interactiveShellInit}
···3940 nativeBuildInputs = [ gfortran which ];
41 buildInputs =
42- [ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum libtirpc ]
43 # pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
44 ++ lib.optional (!stdenv.isDarwin) libyaml
045 ;
46 propagatedBuildInputs = [ lynx ];
47···4950 hardeningDisable = [ "format" ];
5152- NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
53- NIX_LDFLAGS = [ "-ltirpc" ];
5455 meta = with lib; {
56 description = "The xFitter project is an open source QCD fit framework ready to extract PDFs and assess the impact of new data";
···3940 nativeBuildInputs = [ gfortran which ];
41 buildInputs =
42+ [ apfel apfelgrid applgrid blas lhapdf lapack mela root5 qcdnum ]
43 # pdf2yaml requires fmemopen and open_memstream which are not readily available on Darwin
44 ++ lib.optional (!stdenv.isDarwin) libyaml
45+ ++ lib.optional (stdenv.hostPlatform.libc == "glibc") libtirpc
46 ;
47 propagatedBuildInputs = [ lynx ];
48···5051 hardeningDisable = [ "format" ];
5253+ NIX_CFLAGS_COMPILE = lib.optional (stdenv.hostPlatform.libc == "glibc") "-I${libtirpc.dev}/include/tirpc";
54+ NIX_LDFLAGS = lib.optional (stdenv.hostPlatform.libc == "glibc") "-ltirpc";
5556 meta = with lib; {
57 description = "The xFitter project is an open source QCD fit framework ready to extract PDFs and assess the impact of new data";