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: b2935fbeceae
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: c6839e5ae8c5
Choose a head ref

Commits on Mar 12, 2020

  1. lib/systems: Assume newlib when no kernel and no libc is provided

    newlib is the default for most tools when no kernel is provided. Other
    exist, but this seems like a safe default.
    
    (cherry picked from commit 8009c20)
    matthewbauer authored and Ericson2314 committed Mar 12, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    siriobalmelli Sirio Balmelli
    Copy the full SHA
    acb24b4 View commit details
  2. Copy the full SHA
    00afca0 View commit details
  3. rustc: Add way to override the arch and config triple for rust

    Sometimes it is useful for it to be slightly different. Going forward we
    should, however, try to make this fallback rarely needed.
    Ericson2314 committed Mar 12, 2020
    Copy the full SHA
    783fa46 View commit details
  4. symmetrica: 2.0 -> 3.0.1

    This switches to the sagemath fork, since the original upstream is no
    longer maintained and sagemath has effectively maintained symmetrica
    through patches for a while now. The update fixes one bug in particular
    that has caused failures in the sagemath test suite:
    
    NixOS/nixpkgs#81449
    https://trac.sagemath.org/ticket/15312
    https://trac.sagemath.org/ticket/29061
    
    Regarding the licensing change:
    
    https://gitlab.com/sagemath/symmetrica/-/commit/7cf91b380078a4def28dd6bab2b4607e2346c650
    (cherry picked from commit 0c875c2)
    timokau committed Mar 12, 2020

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    04f75b1 View commit details

Commits on Mar 16, 2020

  1. python37Packages.starlette: 0.13.0 -> 0.12.9

     - Reverting the version of Starlette as FastAPI can not use anything
       greater than 0.12.12. FastAPI is Starlette's only dependent.
    
     - Use fetchurl instead of fetchPypi as this is now the preferred
       method. This also makes the tests pass and, thus, the build, which
       was failing.
    wd15 committed Mar 16, 2020
    Copy the full SHA
    9d99c49 View commit details
  2. python37Packages.fastapi: 0.45.0 -> 0.49.0

     - Add peewee to test environment as now required.
    
     - Remove pyproject.toml patching as no longer required.
    wd15 committed Mar 16, 2020
    Copy the full SHA
    55fee4d View commit details

Commits on Mar 18, 2020

  1. rsyslog: remove libksi from default build because it is broken

    (cherry picked from commit bdd33bc)
    aanderse committed Mar 18, 2020
    Copy the full SHA
    96e221d View commit details
  2. clang-*: Sync wrapping logic

    We only want to refer to GCC under these conditions.
    Ericson2314 committed Mar 18, 2020
    Copy the full SHA
    99c18b3 View commit details
  3. cc-wrapper, clang: libstdcxxHook should a propagated build input

    Lumping it in with the target platform libraries was incorrect, and
    caused eval failures when gcc couldn't be built for the target platform.
    Ericson2314 committed Mar 18, 2020
    Copy the full SHA
    bc05400 View commit details
  4. compiler-rt-{7,8,9}: Fix cmakeFlags in a few ways

     - Cross to bare metal with GCC works
    
     - Flags are deduplicated
    
     - Darwin bootstrapping for 8 and 0 closer.
    
     - Flags are same across versions.
    Ericson2314 committed Mar 18, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jojosch Johannes Schleifenbaum
    Copy the full SHA
    0c73297 View commit details
  5. Copy the full SHA
    7c0d3f6 View commit details

Commits on Mar 19, 2020

  1. protonvpn-cli-ng: 2.2.0 -> 2.2.2

    Simply keep up to date the cli since it is used to connect to a VPN.
    
    (cherry picked from commit eb96574e9df3aba387c4abe902b154398271becf)
    Reason: A tool to communicate with a VPN provider should be kept
    up-to-date
    JeffLabonte committed Mar 19, 2020
    Copy the full SHA
    71d2a85 View commit details
  2. lib/options: Only recurse into visible sub options

    (cherry picked from commit f195625)
    infinisil authored and roberth committed Mar 19, 2020

    Unverified

    No user is associated with the committer email.
    Copy the full SHA
    970ea96 View commit details
  3. Merge pull request #82933 from hercules-ci/backport-20.03-82897

    lib/options: Only recurse into visible sub options (backport to 20.03)
    roberth authored Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d6e406d View commit details
  4. Merge pull request #82896 from JeffLabonte/20_03_backport-protonvpn-c…

    …li-ng
    
    [20.03] backport protonvpn cli ng 2.2.0 -> 2.2.2
    Mic92 authored Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    82ab717 View commit details
  5. 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`.
    
    This was originally applied in 36ef112,
    but was reverted due to 1115959 causing
    evaluation errors on hydra.
    
    (cherry picked from commit 355c58e)
    
    nixos/manual: fix build
    
    (cherry picked from commit d96bd33)
    flokli committed Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c4611d8 View commit details
  6. 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.
    
    This was originally applied in 3d1079a,
    but was reverted due to 1115959 causing
    evaluation errors on hydra.
    
    (cherry picked from commit 4e53f84)
    flokli committed Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e26bc84 View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b41d1d9 View commit details
  8. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6c90920 View commit details
  9. texworks: fix qt build

    (cherry picked from commit aaefb94)
    Jonathan Ringer committed Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d1121df View commit details
  10. Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    b3ee6e4 View commit details
  11. thefuck: 3.29 -> 3.30

    Ma27 committed Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    25d8140 View commit details
  12. Merge pull request #82848 from aanderse/zhf/rsyslog

    rsyslog: remove libksi from default build because it is broken [20.03 backport]
    aanderse authored Mar 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    97f65b2 View commit details
  13. flatpak: remove malcontent

    It is not ready yet.
    
    See: NixOS/nixpkgs#81284
    jtojnar committed Mar 19, 2020
    Copy the full SHA
    e8701fe View commit details
  14. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1494f87 View commit details

Commits on Mar 20, 2020

  1. ocamlPackages.camlp5: 7.10 → 7.11

    (cherry picked from commit 8dddd8a)
    vbgl committed Mar 20, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    4362edf View commit details
  2. nixos-option: Disable on Nix >= 2.4 because it doesn't compile

    This is needed when using the overlay from the Nix flake.
    
    (cherry picked from commit a0a61c3)
    edolstra committed Mar 20, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    81fa5f4 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    af477bc View commit details
  4. gitea: 1.10.3 -> 1.11.3

    Updates `gitea` to the latest version available[1]. Also ensured that
    upgrading from `gitea-1.9` (used on NixOS 19.09) to `1.11.3` works
    seamlessly.
    
    The derivation required a few more changes this time since `gitea` uses
    `npm` now to build the frontend[2]. When using the default tarball from
    GitHub, we'd have to build the frontend manually. By fetching a custom
    tarball published on every release, we get a prebuilt frontend
    (as it was the case on previous versions) and build the backend only from
    source.
    
    Co-authored-by: kolaente <k@knt.li>
    Closes #80175
    
    [1] https://github.com/go-gitea/gitea/releases/tag/v1.11.3
    [2] go-gitea/gitea#10253
    
    (cherry picked from commit cbceee8)
    Ma27 committed Mar 20, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1ec2cf2 View commit details

Commits on Mar 21, 2020

  1. Merge pull request #82758 from wd15/fastapi-0.49.0

    [20.03] python37Packages.fastapi: 0.45.0 -> 0.49.0
    rnhmjoj authored Mar 21, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1674925 View commit details
  2. Merge pull request #82415 from timokau/symmetrica-3.0.1-20.03

    [20.03] symmetrica: 2.0 -> 3.0.1
    timokau authored Mar 21, 2020
    Copy the full SHA
    359934f View commit details
  3. darktable: 3.0.0 -> 3.0.1

    (cherry picked from commit eb3690c)
    r-ryantm authored and lsix committed Mar 21, 2020
    Copy the full SHA
    b323c01 View commit details
  4. grafana: 6.6.2 -> 6.7.0

    (cherry picked from commit 913e6b5)
    Frostman authored and Ma27 committed Mar 21, 2020
    Copy the full SHA
    8b42fbc View commit details
  5. grafana: 6.7.0 -> 6.7.1

    (cherry picked from commit bf453da)
    Frostman authored and Ma27 committed Mar 21, 2020
    Copy the full SHA
    d5fff78 View commit details
  6. grafana: add Frostman to maintainers

    (cherry picked from commit 9e98d47)
    Frostman authored and Ma27 committed Mar 21, 2020
    Copy the full SHA
    df820c7 View commit details

Commits on Mar 22, 2020

  1. ocamlPackages.parmap: 1.1 → 1.1.1

    (cherry picked from commit a8dafd2)
    vbgl committed Mar 22, 2020
    Copy the full SHA
    fe67af8 View commit details
  2. monero: use a compatible protobuf version

    (cherry picked from commit ddabb09)
    rnhmjoj committed Mar 22, 2020
    Copy the full SHA
    0e41c2c View commit details
  3. monero-gui: 0.15.0.1 -> 0.15.0.4

    (cherry picked from commit 3c93f1b)
    rnhmjoj committed Mar 22, 2020
    Copy the full SHA
    d566176 View commit details
  4. nixos/ssmtp: declare all option renames manually

    While renaming `networking.defaultMailServer` directly to
    `services.ssmtp` is shorter and probably clearer, it causes eval errors
    due to the second rename (directDelivery -> enable) when using e.g. `lib.mkForce`.
    
    For instance,
    
    ``` nix
    { lib, ... }: {
      networking.defaultMailServer = {
        hostName = "localhost";
        directDelivery = lib.mkForce true;
        domain = "example.org";
      };
    }
    ```
    
    would break with the following (rather confusing) error:
    
    ```
    error: The option value `services.ssmtp.enable' in `/home/ma27/Projects/nixpkgs/nixos/modules/programs/ssmtp.nix' is not of type `boolean'.
    (use '--show-trace' to show detailed location information)
    ```
    
    (cherry picked from commit fc316f7)
    Ma27 committed Mar 22, 2020
    Copy the full SHA
    ec145bf View commit details
  5. Copy the full SHA
    dcdb46c View commit details
  6. Copy the full SHA
    d91fc12 View commit details
  7. linux: 4.4.216 -> 4.4.217

    NeQuissimus committed Mar 22, 2020
    Copy the full SHA
    e00104d View commit details
  8. linux: 4.9.216 -> 4.9.217

    NeQuissimus committed Mar 22, 2020
    Copy the full SHA
    7ad6125 View commit details
  9. linux: 5.4.25 -> 5.4.27

    NeQuissimus committed Mar 22, 2020
    Copy the full SHA
    3c6a5be View commit details
  10. linux: 5.5.9 -> 5.5.11

    NeQuissimus committed Mar 22, 2020
    Copy the full SHA
    d847a4f View commit details
  11. nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15

    NixOS 20.03 is built on kernel 5.4 and 19.09 is on 4.19, so we should update
    this option to the highest value possible, per linked upstream instructions from
    Amazon.
    
    (cherry picked from commit 1291764)
    bhipple committed Mar 22, 2020
    Copy the full SHA
    8353669 View commit details
  12. Merge pull request #83147 from bhipple/bp/ami

    [20.03] nixos-ami: update nvme_core.io_timeout for linux kernel >= 4.15
    grahamc authored Mar 22, 2020
    Copy the full SHA
    75b00dd View commit details
  13. python39Full: fix to use Python 3.9 rather than 3.8

    Looks like this was a typo when python39 was added in 648152f.
    
    (cherry picked from commit c93acee)
    gnprice authored and roberth committed Mar 22, 2020
    Copy the full SHA
    5b02b91 View commit details
  14. fd: 7.4.0 -> 7.5.0

    Ma27 committed Mar 22, 2020
    Copy the full SHA
    1d12859 View commit details
  15. redo-apenwarr: 0.42 -> 0.42a; use python3 and fixed building manpage

    Removed dependency to mkdoc, which is only needed to build the webpage.
    
    (cherry picked from commit 4c9bd5d)
    ckesg authored and markuskowa committed Mar 22, 2020
    Copy the full SHA
    bdd53db View commit details
Showing with 1,159 additions and 506 deletions.
  1. +5 −3 doc/languages-frameworks/haskell.section.md
  2. +1 −1 lib/options.nix
  3. +1 −2 lib/systems/default.nix
  4. +7 −1 lib/systems/doubles.nix
  5. +1 −1 lib/tests/systems.nix
  6. +6 −0 maintainers/maintainer-list.nix
  7. +9 −1 nixos/doc/manual/release-notes/rl-2003.xml
  8. +4 −0 nixos/lib/make-options-doc/default.nix
  9. +8 −3 nixos/maintainers/scripts/ec2/amazon-image.nix
  10. +5 −3 nixos/modules/installer/tools/tools.nix
  11. +1 −0 nixos/modules/module-list.nix
  12. +10 −2 nixos/modules/programs/ssmtp.nix
  13. +7 −10 nixos/modules/services/databases/mysql.nix
  14. +46 −0 nixos/modules/services/networking/tailscale.nix
  15. +9 −8 nixos/modules/services/networking/zerotierone.nix
  16. +1 −1 nixos/modules/services/x11/desktop-managers/kodi.nix
  17. +44 −31 nixos/modules/system/boot/networkd.nix
  18. +1 −1 nixos/release-small.nix
  19. +27 −0 nixos/tests/mysql.nix
  20. +25 −0 nixos/tests/networking.nix
  21. +14 −15 pkgs/applications/blockchains/monero-gui/default.nix
  22. +8 −9 pkgs/applications/blockchains/monero-gui/move-log-file.patch
  23. +2 −2 pkgs/applications/blockchains/monero/default.nix
  24. +6 −6 pkgs/applications/editors/texworks/default.nix
  25. +1 −1 pkgs/applications/graphics/cq-editor/default.nix
  26. +3 −3 pkgs/applications/graphics/darktable/default.nix
  27. +2 −2 pkgs/applications/misc/xterm/default.nix
  28. +9 −9 pkgs/applications/networking/browsers/chromium/upstream-info.nix
  29. +2 −2 pkgs/applications/networking/mailreaders/neomutt/default.nix
  30. +3 −3 pkgs/applications/networking/protonvpn-cli-ng/default.nix
  31. +33 −11 pkgs/applications/science/logic/alt-ergo/default.nix
  32. +6 −1 pkgs/applications/science/logic/hol_light/default.nix
  33. +22 −48 pkgs/applications/science/math/symmetrica/default.nix
  34. +15 −18 pkgs/applications/version-management/gitea/default.nix
  35. +8 −8 pkgs/applications/version-management/gitea/static-root-path.patch
  36. +2 −1 pkgs/applications/video/kodi/default.nix
  37. +13 −8 pkgs/applications/video/vdr/xineliboutput/default.nix
  38. +1 −1 pkgs/applications/window-managers/i3/lock-fancy.nix
  39. +2 −2 pkgs/build-support/cc-wrapper/default.nix
  40. +3 −3 pkgs/desktops/pantheon/apps/elementary-music/default.nix
  41. +29 −9 pkgs/desktops/pantheon/apps/switchboard/wrapper.nix
  42. +25 −10 pkgs/desktops/pantheon/desktop/wingpanel/wrapper.nix
  43. +240 −0 pkgs/development/compilers/ghc/8.8.3.nix
  44. +4 −2 pkgs/development/compilers/llvm/5/default.nix
  45. +4 −2 pkgs/development/compilers/llvm/6/default.nix
  46. +25 −8 pkgs/development/compilers/llvm/7/compiler-rt.nix
  47. +4 −2 pkgs/development/compilers/llvm/7/default.nix
  48. +22 −14 pkgs/development/compilers/llvm/8/compiler-rt.nix
  49. +3 −1 pkgs/development/compilers/llvm/8/default.nix
  50. +21 −13 pkgs/development/compilers/llvm/9/compiler-rt.nix
  51. +3 −1 pkgs/development/compilers/llvm/9/default.nix
  52. +1 −1 pkgs/development/compilers/ocaml/generic.nix
  53. +3 −2 pkgs/development/compilers/rust/default.nix
  54. +1 −1 pkgs/development/interpreters/racket/default.nix
  55. +0 −2 pkgs/development/libraries/flatpak/default.nix
  56. +3 −1 pkgs/development/libraries/openssl/default.nix
  57. +4 −4 pkgs/development/ocaml-modules/parmap/default.nix
  58. +5 −10 pkgs/development/python-modules/fastapi/default.nix
  59. +11 −14 pkgs/development/python-modules/flake8-future-import/default.nix
  60. +13 −0 pkgs/development/python-modules/flake8-future-import/skip-test.patch
  61. +2 −2 pkgs/development/python-modules/mkl-service/default.nix
  62. +3 −1 pkgs/development/python-modules/rope/default.nix
  63. +72 −0 pkgs/development/python-modules/spyder-kernels/0.x.nix
  64. +70 −0 pkgs/development/python-modules/spyder/3.nix
  65. +13 −5 pkgs/development/python-modules/starlette/default.nix
  66. +2 −2 pkgs/development/python-modules/twisted/default.nix
  67. +0 −20 pkgs/development/tools/build-managers/redo-apenwarr/beautifulsoup.nix
  68. +6 −19 pkgs/development/tools/build-managers/redo-apenwarr/default.nix
  69. +0 −20 pkgs/development/tools/build-managers/redo-apenwarr/mkdocs-exclude.nix
  70. +3 −3 pkgs/development/tools/ocaml/camlp5/default.nix
  71. +67 −59 pkgs/development/tools/rust/cargo-make/Cargo.lock
  72. +5 −5 pkgs/development/tools/rust/cargo-make/default.nix
  73. +4 −4 pkgs/games/empty-epsilon/default.nix
  74. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  75. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  76. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  77. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  78. +2 −2 pkgs/os-specific/linux/kernel/linux-5.4.nix
  79. +2 −2 pkgs/os-specific/linux/kernel/linux-5.5.nix
  80. +2 −2 pkgs/servers/matrix-synapse/default.nix
  81. +4 −4 pkgs/servers/monitoring/grafana/default.nix
  82. +3 −9 pkgs/servers/monitoring/prometheus/wireguard-exporter.nix
  83. +35 −0 pkgs/servers/tailscale/default.nix
  84. +3 −3 pkgs/tools/misc/fd/default.nix
  85. +2 −2 pkgs/tools/misc/thefuck/default.nix
  86. +5 −6 pkgs/tools/misc/youtube-dl/default.nix
  87. +4 −2 pkgs/tools/networking/wireguard-tools/default.nix
  88. +7 −3 pkgs/top-level/all-packages.nix
  89. +11 −0 pkgs/top-level/haskell-packages.nix
  90. +13 −4 pkgs/top-level/make-tarball.nix
  91. +13 −0 pkgs/top-level/packages-config.nix
  92. +4 −1 pkgs/top-level/python-packages.nix
8 changes: 5 additions & 3 deletions doc/languages-frameworks/haskell.section.md
Original file line number Diff line number Diff line change
@@ -112,8 +112,10 @@ haskell.compiler.ghc865 ghc-8.6.5
haskell.compiler.integer-simple.ghc865 ghc-8.6.5
haskell.compiler.ghc881 ghc-8.8.1
haskell.compiler.integer-simple.ghc881 ghc-8.8.1
haskell.compiler.ghc882 ghc-8.8.1.20191211
haskell.compiler.integer-simple.ghc882 ghc-8.8.1.20191211
haskell.compiler.ghc882 ghc-8.8.2
haskell.compiler.integer-simple.ghc882 ghc-8.8.2
haskell.compiler.ghc883 ghc-8.8.3
haskell.compiler.integer-simple.ghc883 ghc-8.8.3
haskell.compiler.ghcjs ghcjs-8.6.0.1
```

@@ -367,7 +369,7 @@ automatically select the right version of GHC and other build tools to build,
test and execute apps in an existing project downloaded from somewhere on the
Internet. Pass the `--nix` flag to any `stack` command to do so, e.g.
```shell
git clone --recursive https://github.com/yesodweb/wai
git clone --recurse-submodules https://github.com/yesodweb/wai.git
cd wai
stack --nix build
```
2 changes: 1 addition & 1 deletion lib/options.nix
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ rec {
let ss = opt.type.getSubOptions opt.loc;
in if ss != {} then optionAttrSetToDocList' opt.loc ss else [];
in
[ docOption ] ++ subOptions) (collect isOption options);
[ docOption ] ++ optionals docOption.visible subOptions) (collect isOption options);


/* This function recursively removes all derivation attributes from
3 changes: 1 addition & 2 deletions lib/systems/default.nix
Original file line number Diff line number Diff line change
@@ -36,9 +36,8 @@ rec {
else if final.isUClibc then "uclibc"
else if final.isAndroid then "bionic"
else if final.isLinux /* default */ then "glibc"
else if final.isMsp430 then "newlib"
else if final.isVc4 then "newlib"
else if final.isAvr then "avrlibc"
else if final.isNone then "newlib"
else if final.isNetBSD then "nblibc"
# TODO(@Ericson2314) think more about other operating systems
else "native/impure";
8 changes: 7 additions & 1 deletion lib/systems/doubles.nix
Original file line number Diff line number Diff line change
@@ -26,7 +26,13 @@ let

"riscv32-linux" "riscv64-linux"

"aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none" "riscv64-none" "riscv32-none" "vc4-none"
"arm-none" "armv6l-none" "aarch64-none"
"avr-none"
"i686-none" "x86_64-none"
"powerpc-none"
"msp430-none"
"riscv64-none" "riscv32-none"
"vc4-none"

"js-ghcjs"
];
2 changes: 1 addition & 1 deletion lib/tests/systems.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ let
in with lib.systems.doubles; lib.runTests {
testall = mseteq all (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ wasi ++ windows ++ embedded ++ js);

testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "arm-none" "armv7a-darwin" ];
testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv6l-none" "armv7a-linux" "armv7l-linux" "arm-none" "armv7a-darwin" ];
testi686 = mseteq i686 [ "i686-linux" "i686-freebsd" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" "i686-darwin" ];
testmips = mseteq mips [ "mipsel-linux" ];
testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" "x86_64-none" ];
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4506,6 +4506,12 @@
githubId = 1269099;
name = "Marius Bakke";
};
mbaillie = {
email = "martin@baillie.email";
github = "martinbaillie";
githubId = 613740;
name = "Martin Baillie";
};
mbbx6spp = {
email = "me@susanpotter.net";
github = "mbbx6spp";
10 changes: 9 additions & 1 deletion nixos/doc/manual/release-notes/rl-2003.xml
Original file line number Diff line number Diff line change
@@ -1010,7 +1010,15 @@ auth required pam_succeed_if.so uid >= 1000 quiet
</para></listitem>
</itemizedlist>
</para>
</listitem>
</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>
4 changes: 4 additions & 0 deletions nixos/lib/make-options-doc/default.nix
Original file line number Diff line number Diff line change
@@ -133,6 +133,7 @@ in {

optionsJSON = pkgs.runCommand "options.json"
{ meta.description = "List of NixOS options in JSON format";
buildInputs = [ pkgs.brotli ];
}
''
# Export list of options in different format.
@@ -141,8 +142,11 @@ in {
cp ${builtins.toFile "options.json" (builtins.unsafeDiscardStringContext (builtins.toJSON optionsNix))} $dst/options.json
brotli -9 < $dst/options.json > $dst/options.json.br
mkdir -p $out/nix-support
echo "file json $dst/options.json" >> $out/nix-support/hydra-build-products
echo "file json-br $dst/options.json.br" >> $out/nix-support/hydra-build-products
''; # */

optionsDocBook = pkgs.runCommand "options-docbook.xml" {} ''
11 changes: 8 additions & 3 deletions nixos/maintainers/scripts/ec2/amazon-image.nix
Original file line number Diff line number Diff line change
@@ -8,10 +8,15 @@ in {

imports = [ ../../../modules/virtualisation/amazon-image.nix ];

# Required to provide good EBS experience,
# Amazon recomments setting this to the highest possible value for a good EBS
# experience, which prior to 4.15 was 255.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/nvme-ebs-volumes.html#timeout-nvme-ebs-volumes
# TODO change value to 4294967295 when kernel is updated to 4.15 or later
config.boot.kernelParams = [ "nvme_core.io_timeout=255" ];
config.boot.kernelParams =
let timeout =
if pkgs.lib.versionAtLeast config.boot.kernelPackages.kernel.version "4.15"
then "4294967295"
else "255";
in [ "nvme_core.io_timeout=${timeout}" ];

options.amazonImage = {
name = mkOption {
8 changes: 5 additions & 3 deletions nixos/modules/installer/tools/tools.nix
Original file line number Diff line number Diff line change
@@ -42,7 +42,10 @@ let
inherit (config.system.nixos-generate-config) configuration;
};

nixos-option = pkgs.callPackage ./nixos-option { };
nixos-option =
if lib.versionAtLeast (lib.getVersion pkgs.nix) "2.4pre"
then null
else pkgs.callPackage ./nixos-option { };

nixos-version = makeProg {
name = "nixos-version";
@@ -184,10 +187,9 @@ in
nixos-install
nixos-rebuild
nixos-generate-config
nixos-option
nixos-version
nixos-enter
];
] ++ lib.optional (nixos-option != null) nixos-option;

system.build = {
inherit nixos-install nixos-generate-config nixos-option nixos-rebuild nixos-enter;
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -723,6 +723,7 @@
./services/networking/syncthing.nix
./services/networking/syncthing-relay.nix
./services/networking/syncplay.nix
./services/networking/tailscale.nix
./services/networking/tcpcrypt.nix
./services/networking/teamspeak3.nix
./services/networking/tedicross.nix
12 changes: 10 additions & 2 deletions nixos/modules/programs/ssmtp.nix
Original file line number Diff line number Diff line change
@@ -14,8 +14,16 @@ in
{

imports = [
(mkRenamedOptionModule [ "networking" "defaultMailServer" ] [ "services" "ssmtp" ])
(mkRenamedOptionModule [ "services" "ssmtp" "directDelivery" ] [ "services" "ssmtp" "enable" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "directDelivery" ] [ "services" "ssmtp" "enable" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "hostName" ] [ "services" "ssmtp" "hostName" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "domain" ] [ "services" "ssmtp" "domain" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "root" ] [ "services" "ssmtp" "root" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "useTLS" ] [ "services" "ssmtp" "useTLS" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "useSTARTTLS" ] [ "services" "ssmtp" "useSTARTTLS" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "authUser" ] [ "services" "ssmtp" "authUser" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "authPass" ] [ "services" "ssmtp" "authPass" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "authPassFile" ] [ "services" "ssmtp" "authPassFile" ])
(mkRenamedOptionModule [ "networking" "defaultMailServer" "setSendmail" ] [ "services" "ssmtp" "setSendmail" ])
];

options = {
17 changes: 7 additions & 10 deletions nixos/modules/services/databases/mysql.nix
Original file line number Diff line number Diff line change
@@ -10,16 +10,8 @@ let

isMariaDB = lib.getName mysql == lib.getName pkgs.mariadb;

isMysqlAtLeast57 =
(lib.getName mysql == lib.getName pkgs.mysql57)
&& (builtins.compareVersions mysql.version "5.7" >= 0);

mysqldOptions =
"--user=${cfg.user} --datadir=${cfg.dataDir} --basedir=${mysql}";
# For MySQL 5.7+, --insecure creates the root user without password
# (earlier versions and MariaDB do this by default).
installOptions =
"${mysqldOptions} ${lib.optionalString isMysqlAtLeast57 "--insecure"}";

in

@@ -307,9 +299,14 @@ in
pkgs.nettools
];

preStart = ''
preStart = if isMariaDB then ''
if ! test -e ${cfg.dataDir}/mysql; then
${mysql}/bin/mysql_install_db --defaults-file=/etc/my.cnf ${mysqldOptions}
touch /tmp/mysql_init
fi
'' else ''
if ! test -e ${cfg.dataDir}/mysql; then
${mysql}/bin/mysql_install_db --defaults-file=/etc/my.cnf ${installOptions}
${mysql}/bin/mysqld --defaults-file=/etc/my.cnf ${mysqldOptions} --initialize-insecure
touch /tmp/mysql_init
fi
'';
46 changes: 46 additions & 0 deletions nixos/modules/services/networking/tailscale.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ config, lib, pkgs, ... }:

with lib;

let cfg = config.services.tailscale;
in {
meta.maintainers = with maintainers; [ danderson mbaillie ];

options.services.tailscale = {
enable = mkEnableOption "Tailscale client daemon";

port = mkOption {
type = types.port;
default = 41641;
description = "The port to listen on for tunnel traffic (0=autoselect).";
};
};

config = mkIf cfg.enable {
systemd.services.tailscale = {
description = "Tailscale client daemon";

after = [ "network-pre.target" ];
wants = [ "network-pre.target" ];
wantedBy = [ "multi-user.target" ];

unitConfig = {
StartLimitIntervalSec = 0;
StartLimitBurst = 0;
};

serviceConfig = {
ExecStart =
"${pkgs.tailscale}/bin/tailscaled --port ${toString cfg.port}";

RuntimeDirectory = "tailscale";
RuntimeDirectoryMode = 755;

StateDirectory = "tailscale";
StateDirectoryMode = 700;

Restart = "on-failure";
};
};
};
}
17 changes: 9 additions & 8 deletions nixos/modules/services/networking/zerotierone.nix
Original file line number Diff line number Diff line change
@@ -69,13 +69,14 @@ in
environment.systemPackages = [ cfg.package ];

# Prevent systemd from potentially changing the MAC address
environment.etc."systemd/network/50-zerotier.link".text = ''
[Match]
OriginalName=zt*
[Link]
AutoNegotiation=false
MACAddressPolicy=none
'';
systemd.network.links."50-zerotier" = {
matchConfig = {
OriginalName = "zt*";
};
linkConfig = {
AutoNegotiation = false;
MACAddressPolicy = "none";
};
};
};
}
2 changes: 1 addition & 1 deletion nixos/modules/services/x11/desktop-managers/kodi.nix
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ in
services.xserver.desktopManager.session = [{
name = "kodi";
start = ''
${pkgs.kodi}/bin/kodi --lircdev /run/lirc/lircd --standalone &
LIRC_SOCKET_PATH=/run/lirc/lircd ${pkgs.kodi}/bin/kodi --standalone &
waitPID=$!
'';
}];
75 changes: 44 additions & 31 deletions nixos/modules/system/boot/networkd.nix
Original file line number Diff line number Diff line change
@@ -325,6 +325,14 @@ let
};

linkOptions = commonNetworkOptions // {
# overwrite enable option from above
enable = mkOption {
default = true;
type = types.bool;
description = ''
Whether to enable this .link unit. It's handled by udev no matter if <command>systemd-networkd</command> is enabled or not
'';
};

linkConfig = mkOption {
default = {};
@@ -984,44 +992,49 @@ in

};

config = mkIf config.systemd.network.enable {
config = mkMerge [
# .link units are honored by udev, no matter if systemd-networkd is enabled or not.
{
systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links;
environment.etc = unitFiles;
}

users.users.systemd-network.group = "systemd-network";
(mkIf config.systemd.network.enable {

systemd.additionalUpstreamSystemUnits = [
"systemd-networkd.service" "systemd-networkd-wait-online.service"
];
users.users.systemd-network.group = "systemd-network";

systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.link" (linkToUnit n v)) cfg.links
// mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs
// mapAttrs' (n: v: nameValuePair "${n}.network" (networkToUnit n v)) cfg.networks;
systemd.additionalUpstreamSystemUnits = [
"systemd-networkd.service" "systemd-networkd-wait-online.service"
];

environment.etc = unitFiles;
systemd.network.units = mapAttrs' (n: v: nameValuePair "${n}.netdev" (netdevToUnit n v)) cfg.netdevs
// mapAttrs' (n: v: nameValuePair "${n}.network" (networkToUnit n v)) cfg.networks;

systemd.services.systemd-networkd = {
wantedBy = [ "multi-user.target" ];
restartTriggers = attrNames unitFiles;
# prevent race condition with interface renaming (#39069)
requires = [ "systemd-udev-settle.service" ];
after = [ "systemd-udev-settle.service" ];
};
systemd.services.systemd-networkd = {
wantedBy = [ "multi-user.target" ];
restartTriggers = attrNames unitFiles;
# prevent race condition with interface renaming (#39069)
requires = [ "systemd-udev-settle.service" ];
after = [ "systemd-udev-settle.service" ];
};

systemd.services.systemd-networkd-wait-online = {
wantedBy = [ "network-online.target" ];
};
systemd.services.systemd-networkd-wait-online = {
wantedBy = [ "network-online.target" ];
};

systemd.services."systemd-network-wait-online@" = {
description = "Wait for Network Interface %I to be Configured";
conflicts = [ "shutdown.target" ];
requisite = [ "systemd-networkd.service" ];
after = [ "systemd-networkd.service" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${config.systemd.package}/lib/systemd/systemd-networkd-wait-online -i %I";
systemd.services."systemd-network-wait-online@" = {
description = "Wait for Network Interface %I to be Configured";
conflicts = [ "shutdown.target" ];
requisite = [ "systemd-networkd.service" ];
after = [ "systemd-networkd.service" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = "${config.systemd.package}/lib/systemd/systemd-networkd-wait-online -i %I";
};
};
};

services.resolved.enable = mkDefault true;
};
services.resolved.enable = mkDefault true;
})
];
}
Loading