Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd04c3afbbd6
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 16a3d75f5e47
Choose a head ref

Commits on Jul 2, 2019

  1. Copy the full SHA
    86e3208 View commit details

Commits on Oct 1, 2019

  1. lib.kernel: make public

    Remove the "version" parameter in order to make it more widely
    available.
    Starts making some kernel configuration helpers available.
    The intent is to be able to better build and check the linux kernel
    configuration.
    teto committed Oct 1, 2019
    Copy the full SHA
    afa0e02 View commit details
  2. lib.kernel: scoped whenXXX helpers

    whenAtLeast/whenBetween are made available in lib/kernel.nix but are now
    scoped under whenXXX.
    teto committed Oct 1, 2019
    Copy the full SHA
    a4fe469 View commit details

Commits on Jan 28, 2020

  1. nixos/dovecot: add an option to enable mail_plugins

    Motivation:
    if enableQuota is true, mail plugins cannot be enabled in extraConfig
    because of the problem described here:
    
    https://doc.dovecot.org/configuration_manual/config_file/config_file_syntax/#variable-expansion
    
    doveconf: Warning: /etc/dovecot/dovecot.conf line 8: Global setting
    mail_plugins won't change the setting inside an earlier filter at
    /etc/dovecot/dovecot.conf line 5 (if this is intentional, avoid this
    warning by moving the global setting before /etc/dovecot/dovecot.conf
    line 5)
    symphorien committed Jan 28, 2020
    Copy the full SHA
    0da7a14 View commit details
  2. Update nixos/modules/services/mail/dovecot.nix

    Co-Authored-By: Léo Gaspard <github@leo.gaspard.ninja>
    symphorien and Ekleog committed Jan 28, 2020
    Copy the full SHA
    56f9c51 View commit details
  3. Copy the full SHA
    7a40ced View commit details
  4. Copy the full SHA
    2832122 View commit details

Commits on Feb 14, 2020

  1. nixos/btrfs: make autoScrub not prevent shutdown or suspend

    Fixes: #79086 #79017
    symphorien committed Feb 14, 2020
    Copy the full SHA
    5359d90 View commit details

Commits on Feb 27, 2020

  1. Copy the full SHA
    9879184 View commit details
  2. nixos/activation: propagate system to nested configurations

    The current behavior lets `system` default to
    `builtins.currentSystem`. The system value specified to
    `eval-config.nix` has very low precedence, so this should compose
    properly.
    
    Fixes #80806
    thefloweringash committed Feb 27, 2020
    Copy the full SHA
    b83164a View commit details

Commits on Mar 2, 2020

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    GTrunSec GuangTao Zhang
    Copy the full SHA
    9382357 View commit details
  2. zeek: 3.0.1 -> 3.0.2

    GTrunSec committed Mar 2, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    GTrunSec GuangTao Zhang
    Copy the full SHA
    43f394a View commit details
  3. Copy the full SHA
    39c1774 View commit details
  4. pantalaimon: 0.4 -> 0.5.1

    symphorien committed Mar 2, 2020
    Copy the full SHA
    b1237f5 View commit details

Commits on Mar 5, 2020

  1. nixos/activation: use eval-config's system argument for nesting

    This avoids a possible surprise if the user is using `nixpkgs.system`
    and `nesting.children`. `nesting.children` is expected to ignore all
    parent configuration so we shouldn't propagate the user-facing option
    `nixpkgs.system`. To avoid doing so, we introduce a new internal
    option for holding the value passed to eval-config.nix, and use that
    when recursing for nesting.
    thefloweringash committed Mar 5, 2020
    Copy the full SHA
    ce41677 View commit details

Commits on Mar 7, 2020

  1. nixos/networking: Add hostFiles option

    When blocklists are built with a derivation, using extraHosts would
    require IFD, since the result of the derivation needs to be converted to
    a string again.
    
    By introducing this option no IFD is needed for such use-cases, since
    the fetched files can be assigned directly.
    infinisil committed Mar 7, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    ec6e4db View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    1906320 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    infinisil Silvan Mosberger
    Copy the full SHA
    64ee425 View commit details
  4. libinsane: init at 1.0.3

    Nadrieril committed Mar 7, 2020
    Copy the full SHA
    88d5b00 View commit details

Commits on Mar 8, 2020

  1. Copy the full SHA
    b81f725 View commit details

Commits on Mar 9, 2020

  1. btrfs-dedupe: remove broken and abandoned package

    This package was last released in 2017, and no longer compiles with the latest
    Rust compiler. It has just 1 commit from someone other than the original author
    and appears to be a dead project.
    bhipple committed Mar 9, 2020
    Copy the full SHA
    27a0a13 View commit details
  2. Copy the full SHA
    98bd9f5 View commit details
  3. paperwork: 1.2.4 -> 1.3.1

    Also install paperwork-shell and desktop file
    Nadrieril authored and symphorien committed Mar 9, 2020
    Copy the full SHA
    cb9c6a7 View commit details
  4. python3Packages.pyinsane2: remove

    It is only used for paperwork and is now unmaintained.
    Nadrieril authored and symphorien committed Mar 9, 2020
    Copy the full SHA
    99dfc57 View commit details
  5. sdparm: 1.10 -> 1.11

    r-ryantm committed Mar 9, 2020
    Copy the full SHA
    ab021ff View commit details
  6. sg3_utils: 1.44 -> 1.45

    r-ryantm committed Mar 9, 2020
    Copy the full SHA
    0d300d4 View commit details
  7. syslogng: 3.25.1 -> 3.26.1

    r-ryantm committed Mar 9, 2020
    Copy the full SHA
    ccc502f View commit details

Commits on Mar 10, 2020

  1. Copy the full SHA
    bcb40a5 View commit details
  2. elvish: 0.12 -> 0.13

    eraserhd committed Mar 10, 2020
    Copy the full SHA
    52068db View commit details
  3. ankisyncd: init at 2.1.0

    matt-snider committed Mar 10, 2020
    Copy the full SHA
    1968755 View commit details
  4. fselect: 0.6.8 -> 0.6.9

    r-ryantm committed Mar 10, 2020
    Copy the full SHA
    ac184e3 View commit details
  5. Copy the full SHA
    acba458 View commit details
  6. nginxModules.fastcgi-cache-purge: 2.3 -> 2.5

    switch to a fork that seems sort of alive
    ajs124 committed Mar 10, 2020
    Copy the full SHA
    0aec2cd View commit details

Commits on Mar 11, 2020

  1. tests/networking: remove pkgs.lib usages.

    picnoir authored and flokli committed Mar 11, 2020
    Copy the full SHA
    1115959 View commit details
  2. nixos/networkd: respect systemd.network.links also with disabled syst…

    …emd-networkd
    
    This mirrors the behaviour of systemd - It's udev that parses `.link`
    files, not `systemd-networkd`.
    flokli committed Mar 11, 2020
    Copy the full SHA
    36ef112 View commit details
  3. nixos/zerotierone: switch from manually generating the .link file to …

    …use the module
    
    Previously, systemd.network.links was only respected with networkd
    enabled, but it's really udev taking care of links, no matter if
    networkd is enabled or not.
    
    With our module fixed, there's no need to manually manage the text file
    anymore.
    flokli committed Mar 11, 2020
    Copy the full SHA
    3d1079a View commit details
  4. pcsctools: 1.5.5 -> 1.5.6

    r-ryantm committed Mar 11, 2020
    Copy the full SHA
    8ec473f View commit details
  5. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    93a0ec6 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    3ed91d2 View commit details
  7. maintainers: add thmzlt

    Thomaz Leite committed Mar 11, 2020
    Copy the full SHA
    063795f View commit details
  8. hobbes: init at unstable-2020-03-10

    Thomaz Leite committed Mar 11, 2020
    Copy the full SHA
    704e604 View commit details

Commits on Mar 12, 2020

  1. gitlab: update script: unset GOROOT

    or vgo2nix might not be able to resolve some dependencies.
    flokli committed Mar 12, 2020
    Copy the full SHA
    d2061f0 View commit details
  2. Copy the full SHA
    ab3b836 View commit details
  3. docker: 19.03.7 -> 19.03.8

    Frostman committed Mar 12, 2020
    Copy the full SHA
    1d0c3f1 View commit details
  4. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    ccb9995 View commit details
  5. Copy the full SHA
    19fdac2 View commit details
  6. lib.callPackages(With): guard against a repeated mistake

    For example see the parent commit.
    vcunat committed Mar 12, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    b63f684 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    4d543ca View commit details
  8. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    03fb78e View commit details
  9. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    marsam Mario Rodas
    Copy the full SHA
    f6914a5 View commit details
Showing with 1,997 additions and 1,139 deletions.
  1. +6 −1 lib/customisation.nix
  2. +3 −0 lib/default.nix
  3. +11 −6 lib/kernel.nix
  4. +15 −3 maintainers/maintainer-list.nix
  5. +8 −0 nixos/doc/manual/release-notes/rl-2003.xml
  6. +6 −0 nixos/lib/eval-config.nix
  7. +2 −2 nixos/lib/testing-python.nix
  8. +21 −6 nixos/modules/config/networking.nix
  9. +8 −0 nixos/modules/misc/nixpkgs.nix
  10. +1 −0 nixos/modules/module-list.nix
  11. +1 −1 nixos/modules/programs/firejail.nix
  12. +152 −82 nixos/modules/services/mail/dovecot.nix
  13. +79 −0 nixos/modules/services/misc/ankisyncd.nix
  14. +26 −26 nixos/modules/services/networking/cjdns.nix
  15. +13 −0 nixos/modules/services/networking/ntp/ntpd.nix
  16. +9 −8 nixos/modules/services/networking/zerotierone.nix
  17. +1 −0 nixos/modules/system/activation/top-level.nix
  18. +44 −31 nixos/modules/system/boot/networkd.nix
  19. +6 −1 nixos/modules/tasks/filesystems/btrfs.nix
  20. +4 −4 nixos/tests/nesting.nix
  21. +42 −18 nixos/tests/networking.nix
  22. +3 −3 pkgs/applications/audio/spotify-tui/default.nix
  23. +14 −14 pkgs/applications/editors/jetbrains/default.nix
  24. +3 −3 pkgs/applications/editors/texstudio/default.nix
  25. +1 −1 pkgs/applications/editors/vscode/generic.nix
  26. +2 −1 pkgs/applications/misc/blender/default.nix
  27. +3 −3 pkgs/applications/misc/cheat/default.nix
  28. +0 −5 pkgs/applications/misc/polybar/default.nix
  29. +2 −2 pkgs/applications/misc/simplenote/default.nix
  30. +3 −3 pkgs/applications/misc/zola/default.nix
  31. +385 −385 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
  32. +2 −2 pkgs/applications/networking/cluster/helm/default.nix
  33. +1 −1 pkgs/applications/networking/cluster/marathon/default.nix
  34. +1 −1 pkgs/applications/networking/cluster/mesos/default.nix
  35. +9 −4 pkgs/applications/networking/ids/zeek/default.nix
  36. +62 −0 pkgs/applications/networking/ids/zeek/script.nix
  37. +8 −5 pkgs/applications/networking/instant-messengers/pantalaimon/default.nix
  38. +1 −1 pkgs/applications/networking/mailreaders/claws-mail/default.nix
  39. +121 −0 pkgs/applications/networking/mailreaders/claws-mail/gtk3.nix
  40. +3 −3 pkgs/applications/networking/mailreaders/neomutt/default.nix
  41. +7 −6 pkgs/applications/office/paperwork/backend.nix
  42. +35 −14 pkgs/applications/office/paperwork/default.nix
  43. +4 −4 pkgs/applications/office/trilium/default.nix
  44. +2 −2 pkgs/applications/radio/rtl-sdr/default.nix
  45. +2 −2 pkgs/applications/science/electronics/verilator/default.nix
  46. +2 −2 pkgs/applications/science/math/geogebra/default.nix
  47. +13 −10 pkgs/applications/science/math/getdp/default.nix
  48. +10 −0 pkgs/applications/science/math/pari/default.nix
  49. +7 −0 pkgs/applications/science/math/sage/sage-src.nix
  50. +2 −2 pkgs/applications/version-management/git-and-tools/git-standup/default.nix
  51. +6 −4 pkgs/applications/version-management/git-and-tools/gitstatus/romkatv_libgit2.nix
  52. +2 −2 pkgs/applications/version-management/git-and-tools/hub/default.nix
  53. +4 −4 pkgs/applications/version-management/gitlab/data.json
  54. +2 −2 pkgs/applications/version-management/gitlab/gitaly/default.nix
  55. +4 −0 pkgs/applications/version-management/gitlab/update.py
  56. +3 −3 pkgs/applications/virtualization/docker/default.nix
  57. +3 −3 pkgs/applications/window-managers/i3/lock-color.nix
  58. +2 −2 pkgs/data/fonts/jost/default.nix
  59. +6 −0 pkgs/development/compilers/gcc/9/default.nix
  60. +3 −3 pkgs/development/interpreters/wasmer/default.nix
  61. +0 −12 pkgs/development/libraries/boost/1.62.nix
  62. +0 −12 pkgs/development/libraries/boost/1.63.nix
  63. +0 −12 pkgs/development/libraries/boost/1.64.nix
  64. +3 −3 pkgs/development/libraries/dqlite/default.nix
  65. +3 −3 pkgs/development/libraries/howard-hinnant-date/default.nix
  66. +47 −0 pkgs/development/libraries/libinsane/default.nix
  67. +7 −6 pkgs/development/libraries/ndi/default.nix
  68. +10 −0 pkgs/development/libraries/openjpeg/2.x.nix
  69. +9 −7 pkgs/development/libraries/raft-canonical/default.nix
  70. +13 −21 pkgs/development/libraries/science/math/petsc/default.nix
  71. +3 −3 pkgs/development/libraries/wcslib/default.nix
  72. +3 −3 pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
  73. +23 −0 pkgs/development/python-modules/convertdate/default.nix
  74. +5 −10 pkgs/development/python-modules/fastapi/default.nix
  75. +5 −5 pkgs/development/python-modules/holidays/default.nix
  76. +19 −6 pkgs/development/python-modules/i3ipc/default.nix
  77. +2 −2 pkgs/development/python-modules/klaus/default.nix
  78. +2 −2 pkgs/development/python-modules/matrix-nio/default.nix
  79. +2 −2 pkgs/development/python-modules/pyicloud/default.nix
  80. +0 −45 pkgs/development/python-modules/pyinsane2/default.nix
  81. +24 −0 pkgs/development/python-modules/pymeeus/default.nix
  82. +7 −37 pkgs/development/python-modules/pyocr/default.nix
  83. +265 −25 pkgs/development/python-modules/pyocr/paths.patch
  84. +13 −5 pkgs/development/python-modules/starlette/default.nix
  85. +3 −3 pkgs/development/tools/analysis/tflint/default.nix
  86. +2 −2 pkgs/development/tools/heroku/default.nix
  87. +40 −0 pkgs/development/tools/hobbes/default.nix
  88. +2 −2 pkgs/development/tools/metals/default.nix
  89. +3 −3 pkgs/development/tools/misc/act/default.nix
  90. +2 −2 pkgs/development/tools/packer/default.nix
  91. +4 −4 pkgs/development/tools/rust/bindgen/default.nix
  92. +2 −2 pkgs/development/web/nodejs/v13.nix
  93. +5 −5 pkgs/games/empty-epsilon/default.nix
  94. +2 −0 pkgs/games/mnemosyne/default.nix
  95. +4 −13 pkgs/games/redeclipse/default.nix
  96. +1 −1 pkgs/misc/lilypond/default.nix
  97. +1 −3 pkgs/misc/lilypond/fonts.nix
  98. +1 −1 pkgs/misc/lilypond/with-fonts.nix
  99. +3 −2 pkgs/os-specific/linux/kernel/common-config.nix
  100. +2 −1 pkgs/os-specific/linux/kernel/hardened-config.nix
  101. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  102. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  103. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  104. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  105. +2 −2 pkgs/os-specific/linux/kernel/linux-5.5.nix
  106. +2 −2 pkgs/os-specific/linux/kernel/linux-testing.nix
  107. +1 −1 pkgs/os-specific/linux/kernel/mptcp-config.nix
  108. +3 −3 pkgs/os-specific/linux/sdparm/default.nix
  109. +67 −0 pkgs/servers/ankisyncd/default.nix
  110. +2 −1 pkgs/servers/home-assistant/component-packages.nix
  111. +2 −2 pkgs/servers/home-assistant/default.nix
  112. +2 −2 pkgs/servers/home-assistant/frontend.nix
  113. +4 −5 pkgs/servers/home-assistant/parse-requirements.py
  114. +3 −3 pkgs/servers/http/nginx/modules.nix
  115. +2 −2 pkgs/servers/http/unit/default.nix
  116. +2 −2 pkgs/servers/monitoring/prometheus/pushgateway.nix
  117. +2 −2 pkgs/servers/sql/postgresql/ext/pgroonga.nix
  118. +7 −3 pkgs/servers/ums/default.nix
  119. +6 −4 pkgs/shells/elvish/default.nix
  120. +3 −3 pkgs/shells/nushell/default.nix
  121. +4 −4 pkgs/tools/admin/lxd/default.nix
  122. +2 −2 pkgs/tools/bluetooth/blueman/default.nix
  123. +0 −29 pkgs/tools/filesystems/btrfs-dedupe/default.nix
  124. +2 −2 pkgs/tools/filesystems/ceph/default.nix
  125. +18 −3 pkgs/tools/misc/bepasty/default.nix
  126. +10 −4 pkgs/tools/misc/fselect/default.nix
  127. +2 −2 pkgs/tools/misc/fzf/default.nix
  128. +2 −11 pkgs/tools/misc/opentimestamps-client/default.nix
  129. +6 −3 pkgs/tools/misc/yubico-piv-tool/default.nix
  130. +6 −5 pkgs/tools/networking/yggdrasil/default.nix
  131. +3 −3 pkgs/tools/package-management/cargo-release/default.nix
  132. +2 −2 pkgs/tools/package-management/librepo/default.nix
  133. +3 −3 pkgs/tools/package-management/nfpm/default.nix
  134. +2 −2 pkgs/tools/security/bitwarden/default.nix
  135. +3 −3 pkgs/tools/security/pcsctools/default.nix
  136. +20 −18 pkgs/tools/system/r10k/Gemfile.lock
  137. +24 −24 pkgs/tools/system/r10k/gemset.nix
  138. +3 −3 pkgs/tools/system/sg3_utils/default.nix
  139. +3 −3 pkgs/tools/system/syslog-ng/default.nix
  140. +17 −10 pkgs/top-level/all-packages.nix
  141. +4 −2 pkgs/top-level/python-packages.nix
7 changes: 6 additions & 1 deletion lib/customisation.nix
Original file line number Diff line number Diff line change
@@ -131,7 +131,12 @@ rec {
origArgs = auto // args;
pkgs = f origArgs;
mkAttrOverridable = name: _: makeOverridable (newArgs: (f newArgs).${name}) origArgs;
in lib.mapAttrs mkAttrOverridable pkgs;
in
if lib.isDerivation pkgs then throw
("function `callPackages` was called on a *single* derivation "
+ ''"${pkgs.name or "<unknown-name>"}";''
+ " did you mean to use `callPackage` instead?")
else lib.mapAttrs mkAttrOverridable pkgs;


/* Add attributes to each output of a derivation without changing
3 changes: 3 additions & 0 deletions lib/default.nix
Original file line number Diff line number Diff line change
@@ -56,6 +56,9 @@ let
# back-compat aliases
platforms = systems.doubles;

# linux kernel configuration
kernel = callLibs ./kernel.nix;

inherit (builtins) add addErrorContext attrNames concatLists
deepSeq elem elemAt filter genericClosure genList getAttr
hasAttr head isAttrs isBool isInt isList isString length
17 changes: 11 additions & 6 deletions lib/kernel.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{ lib, version }:
{ lib }:

with lib;
{
# Common patterns/legacy
whenAtLeast = ver: mkIf (versionAtLeast version ver);
whenOlder = ver: mkIf (versionOlder version ver);
# range is (inclusive, exclusive)
whenBetween = verLow: verHigh: mkIf (versionAtLeast version verLow && versionOlder version verHigh);


# Keeping these around in case we decide to change this horrible implementation :)
@@ -18,4 +13,14 @@ with lib;
module = { tristate = "m"; };
freeform = x: { freeform = x; };

/*
Common patterns/legacy used in common-config/hardened-config.nix
*/
whenHelpers = version: {
whenAtLeast = ver: mkIf (versionAtLeast version ver);
whenOlder = ver: mkIf (versionOlder version ver);
# range is (inclusive, exclusive)
whenBetween = verLow: verHigh: mkIf (versionAtLeast version verLow && versionOlder version verHigh);
};

}
18 changes: 15 additions & 3 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1958,7 +1958,7 @@
drewrisinger = {
email = "drisinger+nixpkgs@gmail.com";
github = "drewrisinger";
gitHubId = 10198051;
githubId = 10198051;
name = "Drew Risinger";
};
dsferruzza = {
@@ -3099,7 +3099,7 @@
illiusdope = {
email = "mat@marini.ca";
github = "illiusdope";
gitHubId = 61913481;
githubId = 61913481;
name = "Mat Marini";
};
ilya-fedin = {
@@ -4544,6 +4544,12 @@
githubId = 1711539;
name = "matklad";
};
matt-snider = {
email = "matt.snider@protonmail.com";
github = "matt-snider";
githubId = 11810057;
name = "Matt Snider";
};
matthewbauer = {
email = "mjbauer95@gmail.com";
github = "matthewbauer";
@@ -4884,7 +4890,7 @@
mmilata = {
email = "martin@martinmilata.cz";
github = "mmilata";
gitHubId = 85857;
githubId = 85857;
name = "Martin Milata";
};
mmlb = {
@@ -7253,6 +7259,12 @@
githubId = 844343;
name = "Thiago K. Okada";
};
thmzlt = {
email = "git@thomazleite.com";
github = "thmzlt";
githubId = 7709;
name = "Thomaz Leite";
};
ThomasMader = {
email = "thomas.mader@gmail.com";
github = "ThomasMader";
8 changes: 8 additions & 0 deletions nixos/doc/manual/release-notes/rl-2003.xml
Original file line number Diff line number Diff line change
@@ -712,6 +712,14 @@ auth required pam_succeed_if.so uid >= 1000 quiet
For further reference, please read <link xlink:href="https://github.com/NixOS/nixpkgs/pull/68953">#68953</link> or the corresponding <link xlink:href="https://discourse.nixos.org/t/predictable-network-interface-names-in-initrd/4055">discourse thread</link>.
</para>
</listitem>
<listitem>
<para>
The <link linkend="opt-systemd.network.links">systemd.network.links</link> option is now respected
even when <link linkend="opt-systemd.network.enable">systemd-networkd</link> is disabled.
This mirrors the behaviour of systemd - It's udev that parses <literal>.link</literal> files,
not <command>systemd-networkd</command>.
</para>
</listitem>
</itemizedlist>
</section>
</section>
6 changes: 6 additions & 0 deletions nixos/lib/eval-config.nix
Original file line number Diff line number Diff line change
@@ -41,6 +41,12 @@ let
# default to the argument. That way this new default could propagate all
# they way through, but has the last priority behind everything else.
nixpkgs.system = lib.mkDefault system;

# Stash the value of the `system` argument. When using `nesting.children`
# we want to have the same default value behavior (immediately above)
# without any interference from the user's configuration.
nixpkgs.initialSystem = system;

_module.args.pkgs = lib.mkIf (pkgs_ != null) (lib.mkForce pkgs_);
};
};
4 changes: 2 additions & 2 deletions nixos/lib/testing-python.nix
Original file line number Diff line number Diff line change
@@ -175,13 +175,13 @@ in rec {

nodeNames = builtins.attrNames nodes;
invalidNodeNames = lib.filter
(node: builtins.match "^[A-z_][A-z0-9_]+$" node == null) nodeNames;
(node: builtins.match "^[A-z_]([A-z0-9_]+)?$" node == null) nodeNames;

in
if lib.length invalidNodeNames > 0 then
throw ''
Cannot create machines out of (${lib.concatStringsSep ", " invalidNodeNames})!
All machines are referenced as perl variables in the testing framework which will break the
All machines are referenced as python variables in the testing framework which will break the
script when special characters are used.
Please stick to alphanumeric chars and underscores as separation.
27 changes: 21 additions & 6 deletions nixos/modules/config/networking.nix
Original file line number Diff line number Diff line change
@@ -35,12 +35,22 @@ in
'';
};

networking.hostFiles = lib.mkOption {
type = types.listOf types.path;
defaultText = lib.literalExample "Hosts from `networking.hosts` and `networking.extraHosts`";
example = lib.literalExample ''[ "''${pkgs.my-blocklist-package}/share/my-blocklist/hosts" ]'';
description = ''
Files that should be concatenated together to form <filename>/etc/hosts</filename>.
'';
};

networking.extraHosts = lib.mkOption {
type = types.lines;
default = "";
example = "192.168.0.1 lanlocalhost";
description = ''
Additional verbatim entries to be appended to <filename>/etc/hosts</filename>.
For adding hosts from derivation results, use <option>networking.hostFiles</option> instead.
'';
};

@@ -159,6 +169,15 @@ in
"::1" = [ "localhost" ];
};

networking.hostFiles = let
stringHosts =
let
oneToString = set: ip: ip + " " + concatStringsSep " " set.${ip} + "\n";
allToString = set: concatMapStrings (oneToString set) (attrNames set);
in pkgs.writeText "string-hosts" (allToString (filterAttrs (_: v: v != []) cfg.hosts));
extraHosts = pkgs.writeText "extra-hosts" cfg.extraHosts;
in mkBefore [ stringHosts extraHosts ];

environment.etc =
{ # /etc/services: TCP/UDP port assignments.
services.source = pkgs.iana-etc + "/etc/services";
@@ -167,12 +186,8 @@ in
protocols.source = pkgs.iana-etc + "/etc/protocols";

# /etc/hosts: Hostname-to-IP mappings.
hosts.text = let
oneToString = set: ip: ip + " " + concatStringsSep " " set.${ip};
allToString = set: concatMapStringsSep "\n" (oneToString set) (attrNames set);
in ''
${allToString (filterAttrs (_: v: v != []) cfg.hosts)}
${cfg.extraHosts}
hosts.source = pkgs.runCommandNoCC "hosts" {} ''
cat ${escapeShellArgs cfg.hostFiles} > $out
'';

# /etc/host.conf: resolver configuration file
8 changes: 8 additions & 0 deletions nixos/modules/misc/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -216,6 +216,14 @@ in
Ignored when <code>nixpkgs.pkgs</code> is set.
'';
};

initialSystem = mkOption {
type = types.str;
internal = true;
description = ''
Preserved value of <literal>system</literal> passed to <literal>eval-config.nix</literal>.
'';
};
};

config = {
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -406,6 +406,7 @@
./services/mail/sympa.nix
./services/mail/nullmailer.nix
./services/misc/airsonic.nix
./services/misc/ankisyncd.nix
./services/misc/apache-kafka.nix
./services/misc/autofs.nix
./services/misc/autorandr.nix
2 changes: 1 addition & 1 deletion nixos/modules/programs/firejail.nix
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ in {
config = mkIf cfg.enable {
security.wrappers.firejail.source = "${lib.getBin pkgs.firejail}/bin/firejail";

environment.systemPackages = [ wrappedBins ];
environment.systemPackages = [ pkgs.firejail ] ++ [ wrappedBins ];
};

meta.maintainers = with maintainers; [ peterhoeg ];
Loading