Skip to content
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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 457e94d9008a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf27abf53493
Choose a head ref

Commits on Oct 25, 2019

  1. plymouth: Add extra config field

    Signed-off-by: Mathieu A.-Tetreault <alexandretm@amotus.ca>
    Mathieu A.-Tetreault committed Oct 25, 2019
    Copy the full SHA
    054ceb8 View commit details

Commits on Oct 26, 2019

  1. Copy the full SHA
    f82fb81 View commit details
  2. Verified

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

Commits on Oct 28, 2019

  1. crawl: 0.23.2 -> 0.24.0

    lightbulbjim committed Oct 28, 2019
    Copy the full SHA
    c972e1b View commit details

Commits on Oct 29, 2019

  1. keepalived: 1.4.2 -> 1.4.5

    risicle committed Oct 29, 2019
    Copy the full SHA
    5e8eaa6 View commit details
  2. Copy the full SHA
    03d6145 View commit details

Commits on Oct 31, 2019

  1. rPackages.glmnet: Add missing dependency

    Fixes the error:
        ld: library not found for -liconv
    nkpart committed Oct 31, 2019
    Copy the full SHA
    4d54c9e View commit details

Commits on Nov 1, 2019

  1. transifex-client: Fix build

    We have updated python-slugify to 4.0.0 (or newer) which broke the
    build. This has happened several times before without actually
    breaking the software.
    
    So yeah, lets just accept newer versions and fix it if it breaks for
    some other reason in the future.
    etu committed Nov 1, 2019
    Copy the full SHA
    ee16c54 View commit details

Commits on Nov 3, 2019

  1. tome4: 1.5.10 -> 1.6.0

    r-ryantm committed Nov 3, 2019
    Copy the full SHA
    7d88403 View commit details
  2. nixos/gnome3: add sound-theme-freedesktop

    I've noticed a similar issue in Pantheon, without this
    sound theme installed there's no system sounds.
    I believe it's because the gnome theme and the pantheon
    theme inherit this one.
    worldofpeace committed Nov 3, 2019
    Copy the full SHA
    4bdbbc1 View commit details
  3. Copy the full SHA
    4e2161f View commit details

Commits on Nov 4, 2019

  1. qtwebengine: add patch for CVE-2019-13720

    Milan Pässler committed Nov 4, 2019
    Copy the full SHA
    00ac18c View commit details
  2. Copy the full SHA
    c115659 View commit details

Commits on Nov 5, 2019

  1. sd-image: Add the compressed file path for hydra.

    This makes the nixos on arm user instructions work again.
    c00w committed Nov 5, 2019
    Copy the full SHA
    c861f80 View commit details

Commits on Nov 6, 2019

  1. neomutt: add autocrypt

    According to Neomutt's autocrypt manual
    <https://neomutt.org/guide/autocryptdoc.html>, autocrypt needs to be
    enabled in the `configureFlags` and `sqlite` is a new dependency.
    tasmo committed Nov 6, 2019
    Copy the full SHA
    689b963 View commit details
  2. insomnia: 6.6.2 -> 7.0.3

    Update insomnia to latest version (at the current date: 2019/11/06)
    babariviere committed Nov 6, 2019
    Copy the full SHA
    e870472 View commit details
  3. jasmin: init at 2.4

    fgaz committed Nov 6, 2019
    Copy the full SHA
    446368e View commit details

Commits on Nov 7, 2019

  1. Copy the full SHA
    34cd476 View commit details
  2. Copy the full SHA
    3b45b5b View commit details
  3. Copy the full SHA
    61de713 View commit details

Commits on Nov 8, 2019

  1. crystal: 0.30.1 -> 0.31.1

    manveru committed Nov 8, 2019
    Copy the full SHA
    34b84e8 View commit details
  2. Copy the full SHA
    e349b6e View commit details
  3. opensmtpd: 6.4.2p1 -> 6.6.1p1

    The substitition in smtpd/parse.y isn't necessary anymore.
    The hardcoded /usr/libexec/ has been replaced by a PATH_LIBEXEC #define,
    which will be set properly by the build system.
    flokli committed Nov 8, 2019
    Copy the full SHA
    9658850 View commit details
  4. Copy the full SHA
    1c5bfdd View commit details
  5. nixos/tinydns: order service after network.target

    In cases where you boot up really quickly (like in the VM test on a
    non-busy host), tinydns might want to bind before the loopback interface
    is fully up. Order tinydns after network.target to fix that.
    flokli committed Nov 8, 2019
    Copy the full SHA
    cbd9e9e View commit details
  6. Copy the full SHA
    caac096 View commit details
  7. sablotron: remove

    cko committed Nov 8, 2019
    Copy the full SHA
    60fade5 View commit details
  8. Copy the full SHA
    18f9cfa View commit details
  9. Copy the full SHA
    ece9c41 View commit details
  10. terraform-providers: group individual repo providers

    Marius Bergmann committed Nov 8, 2019
    Copy the full SHA
    206f719 View commit details
  11. terraform-providers: fix handling of version/rev in provider list

    I interpreted the purpose of stripping the first character from the 'version'
    argument as an attempt to remove a prefixed 'v' (e.g. 'v1.0.0') from a version
    tag. This works if the tag actually has a 'v' prefix, but also removes the first
    character if version tags are not prefixed (e.g. '1.0.0').
    
    Additionally, the 'v' was added again when specifying the `rev` for
    `fetchFromGitHub` in default.nix. As described above, this did also not work
    when provider repos did not prefix their version tags with 'v'.
    
    I changed the implementation as follows:
    
    - `version` and `rev` are stored inside data.nix
    - `version` is used to declare the nix package version
    - `rev` is used to fetch the proper git ref when building the package
    - for determining `version`, an optional leading 'v' is trimmed from the tag
      name
    
    Now this has the implication that the latest tag must always be a release tag
    when using the `update-all` script, but as the result of running `update-all`
    should always be reviewed before submission, makes this appear a manageable
    tradeoff to me.
    Marius Bergmann committed Nov 8, 2019
    Copy the full SHA
    3ddd53e View commit details
  12. terraform-providers: update existing providers

    Marius Bergmann committed Nov 8, 2019
    Copy the full SHA
    610ffc9 View commit details
  13. terraform-provider-pass: init at 1.2.1

    Marius Bergmann committed Nov 8, 2019
    Copy the full SHA
    bc0a2ad View commit details

Commits on Nov 9, 2019

  1. Copy the full SHA
    06decf0 View commit details
  2. esphome: 1.13.6 -> 1.14.1

    Jonathan Ringer committed Nov 9, 2019
    Copy the full SHA
    70a86f1 View commit details
  3. rust-bindgen: 0.51.0 -> 0.51.1

    Jonathan Ringer authored and alyssais committed Nov 9, 2019
    Copy the full SHA
    364ae63 View commit details
  4. Copy the full SHA
    019fcab View commit details
  5. Copy the full SHA
    76761a8 View commit details
  6. doc: fix allowUnfreePredicate example following the introduction of p…

    …name
    
    Co-Authored-By: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
    2 people authored and bjornfor committed Nov 9, 2019
    Copy the full SHA
    eebdaa9 View commit details
  7. Copy the full SHA
    07c84f4 View commit details
  8. Copy the full SHA
    8302338 View commit details
  9. Merge pull request #72804 from xtruder/pkgs/facetimehd-firmware/updat…

    …e-firmware-link
    
    facetimehd-firmware: 1.43_4 -> 1.43_5
    veprbl authored Nov 9, 2019
    Copy the full SHA
    21c3fab View commit details
  10. lttng-tools: 2.10.8 -> 2.11.0

    r-ryantm authored and bjornfor committed Nov 9, 2019
    Copy the full SHA
    e922e10 View commit details
  11. kanboard: 1.2.10 -> 1.2.11

    r-ryantm authored and bjornfor committed Nov 9, 2019
    Copy the full SHA
    4b11fed View commit details
  12. tpm2-tools: 4.0 -> 4.0.1

    lschuermann authored and bjornfor committed Nov 9, 2019
    Copy the full SHA
    0606210 View commit details
  13. Copy the full SHA
    07b4077 View commit details
  14. Copy the full SHA
    cdf9b62 View commit details
  15. Merge pull request #71986 from mtetreault/mte/plymouth-improvements

    plymouth: Add extra config field
    ttuegel authored Nov 9, 2019
    Copy the full SHA
    8e639f1 View commit details
  16. editorconfig-checker: init at 2.0.2

    uri-canva authored and bjornfor committed Nov 9, 2019
    Copy the full SHA
    e3fe458 View commit details
  17. xbps: 0.57 -> 0.57.1

    r-ryantm authored and c0bw3b committed Nov 9, 2019
    Copy the full SHA
    1d43f30 View commit details
Showing with 3,195 additions and 2,686 deletions.
  1. +1 −1 doc/languages-frameworks/android.section.md
  2. +11 −1 doc/languages-frameworks/ios.section.md
  3. +1 −1 doc/languages-frameworks/rust.section.md
  4. +2 −2 doc/stdenv/cross-compilation.xml
  5. +1 −1 doc/using/configuration.xml
  6. +12 −0 maintainers/maintainer-list.nix
  7. +5 −1 nixos/modules/config/xdg/sounds.nix
  8. +5 −1 nixos/modules/installer/cd-dvd/sd-image.nix
  9. +2 −2 nixos/modules/misc/ids.nix
  10. +6 −12 nixos/modules/services/mail/opensmtpd.nix
  11. +8 −12 nixos/modules/services/network-filesystems/samba.nix
  12. +19 −17 nixos/modules/services/networking/haproxy.nix
  13. +1 −0 nixos/modules/services/networking/tinydns.nix
  14. +6 −0 nixos/modules/services/x11/desktop-managers/gnome3.nix
  15. +10 −0 nixos/modules/system/boot/plymouth.nix
  16. +3 −1 nixos/tests/haproxy.nix
  17. +8 −8 nixos/tests/lightdm.nix
  18. +13 −13 nixos/tests/opensmtpd.nix
  19. +7 −7 nixos/tests/samba.nix
  20. +15 −13 nixos/tests/sddm.nix
  21. +4 −4 nixos/tests/tinydns.nix
  22. +45 −52 pkgs/applications/audio/cadence/default.nix
  23. +1 −1 pkgs/applications/audio/fmsynth/default.nix
  24. +2 −2 pkgs/applications/audio/mopidy/iris.nix
  25. +8 −8 pkgs/applications/blockchains/monero-gui/default.nix
  26. +16 −18 pkgs/applications/blockchains/monero/default.nix
  27. +21 −0 pkgs/applications/misc/epr/default.nix
  28. +2 −2 pkgs/applications/misc/kanboard/default.nix
  29. +4 −0 pkgs/applications/misc/keepassx/community.nix
  30. +2 −2 pkgs/applications/misc/verbiste/default.nix
  31. +1 −1 pkgs/applications/misc/wego/default.nix
  32. +2 −2 pkgs/applications/networking/browsers/brave/default.nix
  33. +4 −4 pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
  34. +2 −2 pkgs/applications/networking/browsers/vivaldi/default.nix
  35. +79 −0 pkgs/applications/networking/calls/default.nix
  36. +235 −124 pkgs/applications/networking/cluster/terraform-providers/data.nix
  37. +2 −3 pkgs/applications/networking/cluster/terraform-providers/default.nix
  38. +4 −11 pkgs/applications/networking/cluster/terraform-providers/providers.txt
  39. +3 −1 pkgs/applications/networking/cluster/terraform-providers/update-all
  40. +32 −0 pkgs/applications/networking/datovka/default.nix
  41. +3 −2 pkgs/applications/networking/mailreaders/neomutt/default.nix
  42. +4 −4 pkgs/applications/networking/remote/anydesk/default.nix
  43. +2 −2 pkgs/applications/networking/remote/teamviewer/default.nix
  44. +2 −2 pkgs/applications/office/libreoffice/default.nix
  45. +2 −2 pkgs/applications/office/libreoffice/still.nix
  46. +2 −2 pkgs/applications/version-management/bcompare/default.nix
  47. +2 −4 pkgs/desktops/pantheon/apps/switchboard/default.nix
  48. +3 −7 pkgs/desktops/pantheon/apps/switchboard/plugs-path-env.patch
  49. +2 −2 pkgs/desktops/pantheon/desktop/wingpanel-indicators/keyboard/default.nix
  50. +8 −1 pkgs/development/compilers/crystal/default.nix
  51. +31 −144 pkgs/development/compilers/gcc/4.8/default.nix
  52. +31 −151 pkgs/development/compilers/gcc/4.9/default.nix
  53. +30 −148 pkgs/development/compilers/gcc/5/default.nix
  54. +30 −153 pkgs/development/compilers/gcc/6/default.nix
  55. +28 −138 pkgs/development/compilers/gcc/7/default.nix
  56. +28 −137 pkgs/development/compilers/gcc/8/default.nix
  57. +29 −137 pkgs/development/compilers/gcc/9/default.nix
  58. +174 −0 pkgs/development/compilers/gcc/common/configure-flags.nix
  59. +12 −0 pkgs/development/compilers/gcc/common/pre-configure.nix
  60. +31 −132 pkgs/development/compilers/gcc/snapshot/default.nix
  61. +44 −0 pkgs/development/compilers/jasmin/default.nix
  62. +31 −0 pkgs/development/compilers/jasmin/test-assemble-hello-world/HelloWorld.j
  63. +12 −0 pkgs/development/compilers/jasmin/test-assemble-hello-world/default.nix
  64. +9 −0 pkgs/development/libraries/gdal/2.4.0.nix
  65. +9 −1 pkgs/development/libraries/gdal/default.nix
  66. +34 −0 pkgs/development/libraries/libisds/default.nix
  67. +15 −24 pkgs/development/libraries/lightstep-tracer-cpp/default.nix
  68. +9 −0 pkgs/development/libraries/qt-5/5.12/default.nix
  69. +24 −0 pkgs/development/libraries/randomx/default.nix
  70. +2 −2 pkgs/development/libraries/webkitgtk/default.nix
  71. +2 −2 pkgs/development/mobile/titaniumenv/default.nix
  72. +13 −6 pkgs/development/mobile/titaniumenv/{titaniumsdk-7.1.nix → titaniumsdk-8.2.nix}
  73. +1 −1 pkgs/development/mobile/xcodeenv/build-app.nix
  74. +1 −1 pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix
  75. +1 −0 pkgs/development/node-packages/node-packages-v10.json
  76. +1,250 −865 pkgs/development/node-packages/node-packages-v10.nix
  77. +5 −5 pkgs/development/node-packages/node-packages-v12.nix
  78. +10 −10 pkgs/development/node-packages/node-packages-v13.nix
  79. +6 −5 pkgs/development/python-modules/black/default.nix
  80. +13 −0 pkgs/development/python-modules/portend/black-19.10b0.patch
  81. +1 −0 pkgs/development/python-modules/portend/default.nix
  82. +13 −0 pkgs/development/python-modules/pytest-black/black-version.patch
  83. +1 −0 pkgs/development/python-modules/pytest-black/default.nix
  84. +2 −1 pkgs/development/python-modules/qrcode/default.nix
  85. +12 −0 pkgs/development/python-modules/spacy/models.json
  86. +2 −2 pkgs/development/python-modules/spyder-kernels/default.nix
  87. +7 −0 pkgs/development/python-modules/spyder/default.nix
  88. +1 −0 pkgs/development/r-modules/default.nix
  89. +22 −0 pkgs/development/tools/misc/editorconfig-checker/default.nix
  90. +10 −7 pkgs/development/tools/misc/fsatrace/default.nix
  91. +2 −2 pkgs/development/tools/misc/lttng-tools/default.nix
  92. +3 −2 pkgs/development/tools/pypi2nix/default.nix
  93. +3 −3 pkgs/development/tools/rust/bindgen/default.nix
  94. +2 −2 pkgs/development/tools/rust/racerd/default.nix
  95. +2 −2 pkgs/development/tools/wiiload/default.nix
  96. +12 −17 pkgs/development/web/insomnia/default.nix
  97. +4 −9 pkgs/games/crawl/default.nix
  98. +2 −2 pkgs/games/shattered-pixel-dungeon/default.nix
  99. +2 −2 pkgs/games/tome4/default.nix
  100. +2 −2 pkgs/misc/vim-plugins/overrides.nix
  101. +5 −5 pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix
  102. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  103. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  104. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  105. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  106. +2 −2 pkgs/os-specific/linux/kernel/linux-5.3.nix
  107. +2 −2 pkgs/os-specific/linux/mbpfan/default.nix
  108. +2 −2 pkgs/os-specific/linux/xf86-input-cmt/default.nix
  109. +13 −10 pkgs/servers/home-assistant/esphome.nix
  110. +2 −4 pkgs/servers/mail/opensmtpd/default.nix
  111. +2 −2 pkgs/tools/filesystems/mergerfs/default.nix
  112. +23 −0 pkgs/tools/misc/fselect/default.nix
  113. +9 −11 pkgs/tools/misc/venus/default.nix
  114. +1 −1 pkgs/tools/misc/vimpager/build.nix
  115. +3 −3 pkgs/tools/networking/cadaver/default.nix
  116. +48 −0 pkgs/tools/networking/cloud-custodian/default.nix
  117. +26 −16 pkgs/tools/networking/haproxy/default.nix
  118. +11 −3 pkgs/tools/networking/keepalived/default.nix
  119. +39 −9 pkgs/tools/networking/network-manager/openconnect/default.nix
  120. +2 −2 pkgs/tools/package-management/xbps/default.nix
  121. +2 −2 pkgs/tools/security/bettercap/default.nix
  122. +298 −100 pkgs/tools/security/bettercap/deps.nix
  123. +2 −2 pkgs/tools/security/tpm2-tools/default.nix
  124. +3 −3 pkgs/tools/system/yeshup/default.nix
  125. +3 −1 pkgs/tools/text/coloursum/default.nix
  126. +3 −3 pkgs/tools/text/transifex-client/default.nix
  127. +0 −14 pkgs/tools/text/xml/sablotron/default.nix
  128. +27 −5 pkgs/top-level/all-packages.nix
  129. +4 −3 pkgs/top-level/emscripten-packages.nix
2 changes: 1 addition & 1 deletion doc/languages-frameworks/android.section.md
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ $ nix-build

The Android SDK gets deployed with all desired plugin versions.

We can also deploy subsets of the Android SDK. For example, to only the the
We can also deploy subsets of the Android SDK. For example, to only the
`platform-tools` package, you can evaluate the following expression:

```nix
12 changes: 11 additions & 1 deletion doc/languages-frameworks/ios.section.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: iOS
author: Sander van der Burg
date: 2018-11-18
date: 2019-11-10
---
# iOS

@@ -217,3 +217,13 @@ xcode.simulateApp {

By providing the result of an `xcode.buildApp {}` function and configuring the
app bundle id, the app gets deployed automatically and started.

Troubleshooting
---------------
In some rare cases, it may happen that after a failure, changes are not picked
up. Most likely, this is caused by a derived data cache that Xcode maintains.
To wipe it you can run:

```bash
$ rm -rf ~/Library/Developer/Xcode/DerivedData
```
2 changes: 1 addition & 1 deletion doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
@@ -203,7 +203,7 @@ argument and returns a set that contains all attribute that should be
overwritten.

For more complicated cases, such as when parts of the crate's
derivation depend on the the crate's version, the `attrs` argument of
derivation depend on the crate's version, the `attrs` argument of
the override above can be read, as in the following example, which
patches the derivation:

4 changes: 2 additions & 2 deletions doc/stdenv/cross-compilation.xml
Original file line number Diff line number Diff line change
@@ -348,12 +348,12 @@ nix-build '&lt;nixpkgs&gt;' --arg crossSystem '{ config = "&lt;arch&gt;-&lt;os&g
</para>
</listitem>
</orderedlist>
In each stage, <varname>pkgsBuildHost</varname> refers the the previous stage, <varname>pkgsBuildBuild</varname> refers to the one before that, and <varname>pkgsHostTarget</varname> refers to the current one, and <varname>pkgsTargetTarget</varname> refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. <varname>pkgsBuildTarget</varname> and <varname>pkgsHostHost</varname> are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in <filename>pkgs/stdenv/booter.nix</filename>, and secondarily aliases in <filename>pkgs/top-level/stage.nix</filename>.
In each stage, <varname>pkgsBuildHost</varname> refers to the previous stage, <varname>pkgsBuildBuild</varname> refers to the one before that, and <varname>pkgsHostTarget</varname> refers to the current one, and <varname>pkgsTargetTarget</varname> refers to the next one. When there is no previous or next stage, they instead refer to the current stage. Note how all the invariants regarding the mapping between dependency and depending packages' build host and target platforms are preserved. <varname>pkgsBuildTarget</varname> and <varname>pkgsHostHost</varname> are more complex in that the stage fitting the requirements isn't always a fixed chain of "prevs" and "nexts" away (modulo the "saturating" self-references at the ends). We just special case each instead. All the primary edges are implemented is in <filename>pkgs/stdenv/booter.nix</filename>, and secondarily aliases in <filename>pkgs/top-level/stage.nix</filename>.
</para>

<note>
<para>
Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph.
Note the native stages are bootstrapped in legacy ways that predate the current cross implementation. This is why the bootstrapping stages leading up to the final stages are ignored inthe previous paragraph.
</para>
</note>

2 changes: 1 addition & 1 deletion doc/using/configuration.xml
Original file line number Diff line number Diff line change
@@ -142,7 +142,7 @@
<programlisting>
{
allowUnfreePredicate = (pkg: builtins.elem
(builtins.parseDrvName pkg.name).name [
(pkg.pname or (builtins.parseDrvName pkg.name).name) [
"flashplayer"
"vscode"
]);
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1401,6 +1401,12 @@
githubId = 411324;
name = "Carles Pagès";
};
craigem = {
email = "craige@mcwhirter.io";
github = "craigem";
githubId = "6470493";
name = "Craige McWhirter";
};
cransom = {
email = "cransom@hubns.net";
github = "cransom";
@@ -6518,6 +6524,12 @@
githubId = 506181;
name = "Peter Marheine";
};
tasmo = {
email = "tasmo@tasmo.de";
github = "tasmo";
githubId = 102685;
name = "Thomas Friese";
};
tavyc = {
email = "octavian.cerna@gmail.com";
github = "tavyc";
6 changes: 5 additions & 1 deletion nixos/modules/config/xdg/sounds.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:

with lib;
{
@@ -14,6 +14,10 @@ with lib;
};

config = mkIf config.xdg.sounds.enable {
environment.systemPackages = [
pkgs.sound-theme-freedesktop
];

environment.pathsToLink = [
"/share/sounds"
];
6 changes: 5 additions & 1 deletion nixos/modules/installer/cd-dvd/sd-image.nix
Original file line number Diff line number Diff line change
@@ -140,7 +140,11 @@ in
export img=$out/sd-image/${config.sdImage.imageName}
echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system
echo "file sd-image $img" >> $out/nix-support/hydra-build-products
if test -n "$compressImage"; then
echo "file sd-image $img.bz2" >> $out/nix-support/hydra-build-products
else
echo "file sd-image $img" >> $out/nix-support/hydra-build-products
fi
# Gap in front of the first partition, in MiB
gap=8
4 changes: 2 additions & 2 deletions nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@
tcpcryptd = 93; # tcpcryptd uses a hard-coded uid. We patch it in Nixpkgs to match this choice.
firebird = 95;
#keys = 96; # unused
haproxy = 97;
#haproxy = 97; # DynamicUser as of 2019-11-08
mongodb = 98;
openldap = 99;
#users = 100; # unused
@@ -443,7 +443,7 @@
#tcpcryptd = 93; # unused
firebird = 95;
keys = 96;
haproxy = 97;
#haproxy = 97; # DynamicUser as of 2019-11-08
#mongodb = 98; # unused
openldap = 99;
munin = 102;
18 changes: 6 additions & 12 deletions nixos/modules/services/mail/opensmtpd.nix
Original file line number Diff line number Diff line change
@@ -101,6 +101,12 @@ in {
};
};

systemd.tmpfiles.rules = [
"d /var/spool/smtpd 711 root - - -"
"d /var/spool/smtpd/offline 770 root smtpq - -"
"d /var/spool/smtpd/purge 700 smtpq root - -"
];

systemd.services.opensmtpd = let
procEnv = pkgs.buildEnv {
name = "opensmtpd-procs";
@@ -110,18 +116,6 @@ in {
in {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
preStart = ''
mkdir -p /var/spool/smtpd
chmod 711 /var/spool/smtpd
mkdir -p /var/spool/smtpd/offline
chown root.smtpq /var/spool/smtpd/offline
chmod 770 /var/spool/smtpd/offline
mkdir -p /var/spool/smtpd/purge
chown smtpq.root /var/spool/smtpd/purge
chmod 700 /var/spool/smtpd/purge
'';
serviceConfig.ExecStart = "${cfg.package}/sbin/smtpd -d -f ${conf} ${args}";
environment.OPENSMTPD_PROC_PATH = "${procEnv}/libexec/opensmtpd";
};
20 changes: 8 additions & 12 deletions nixos/modules/services/network-filesystems/samba.nix
Original file line number Diff line number Diff line change
@@ -12,11 +12,6 @@ let

samba = cfg.package;

setupScript =
''
mkdir -p /var/lock/samba /var/log/samba /var/cache/samba /var/lib/samba/private
'';

shareConfig = name:
let share = getAttr name cfg.shares; in
"[${name}]\n " + (smbToString (
@@ -62,6 +57,7 @@ let
Type = "notify";
NotifyAccess = "all"; #may not do anything...
};
unitConfig.RequiresMountsFor = "/var/lib/samba";

restartTriggers = [ configFile ];
};
@@ -228,8 +224,7 @@ in
systemd = {
targets.samba = {
description = "Samba Server";
requires = [ "samba-setup.service" ];
after = [ "samba-setup.service" "network.target" ];
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
};
# Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd
@@ -238,12 +233,13 @@ in
samba-smbd = daemonService "smbd" "";
samba-nmbd = mkIf cfg.enableNmbd (daemonService "nmbd" "");
samba-winbindd = mkIf cfg.enableWinbindd (daemonService "winbindd" "");
samba-setup = {
description = "Samba Setup Task";
script = setupScript;
unitConfig.RequiresMountsFor = "/var/lib/samba";
};
};
tmpfiles.rules = [
"d /var/lock/samba - - - - -"
"d /var/log/samba - - - - -"
"d /var/cache/samba - - - - -"
"d /var/lib/samba/private - - - - -"
];
};

security.pam.services.samba = {};
36 changes: 19 additions & 17 deletions nixos/modules/services/networking/haproxy.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{ config, lib, pkgs, ... }:

let
cfg = config.services.haproxy;
haproxyCfg = pkgs.writeText "haproxy.conf" cfg.config;

haproxyCfg = pkgs.writeText "haproxy.conf" ''
global
# needed for hot-reload to work without dropping packets in multi-worker mode
stats socket /run/haproxy/haproxy.sock mode 600 expose-fd listeners level user
${cfg.config}
'';

in
with lib;
{
@@ -25,9 +34,7 @@ with lib;
<filename>haproxy.conf</filename>.
'';
};

};

};

config = mkIf cfg.enable {
@@ -42,21 +49,16 @@ with lib;
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "forking";
PIDFile = "/run/haproxy.pid";
ExecStartPre = "${pkgs.haproxy}/sbin/haproxy -c -q -f ${haproxyCfg}";
ExecStart = "${pkgs.haproxy}/sbin/haproxy -D -f ${haproxyCfg} -p /run/haproxy.pid";
ExecReload = "-${pkgs.bash}/bin/bash -c \"exec ${pkgs.haproxy}/sbin/haproxy -D -f ${haproxyCfg} -p /run/haproxy.pid -sf $MAINPID\"";
DynamicUser = true;
Type = "notify";
# when running the config test, don't be quiet so we can see what goes wrong
ExecStartPre = "${pkgs.haproxy}/sbin/haproxy -c -f ${haproxyCfg}";
ExecStart = "${pkgs.haproxy}/sbin/haproxy -Ws -f ${haproxyCfg}";
Restart = "on-failure";
RuntimeDirectory = "haproxy";
# needed in case we bind to port < 1024
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
};
};

environment.systemPackages = [ pkgs.haproxy ];

users.users.haproxy = {
group = "haproxy";
uid = config.ids.uids.haproxy;
};

users.groups.haproxy.gid = config.ids.uids.haproxy;
};
}
1 change: 1 addition & 0 deletions nixos/modules/services/networking/tinydns.nix
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ with lib;
systemd.services.tinydns = {
description = "djbdns tinydns server";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
path = with pkgs; [ daemontools djbdns ];
preStart = ''
rm -rf /var/lib/tinydns
6 changes: 6 additions & 0 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
@@ -217,6 +217,12 @@ in

services.xserver.updateDbusEnvironment = true;

# gnome has a custom alert theme but it still
# inherits from the freedesktop theme.
environment.systemPackages = with pkgs; [
sound-theme-freedesktop
];

# Needed for themes and backgrounds
environment.pathsToLink = [
"/share" # TODO: https://github.com/NixOS/nixpkgs/issues/47173
10 changes: 10 additions & 0 deletions nixos/modules/system/boot/plymouth.nix
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ let
[Daemon]
ShowDelay=0
Theme=${cfg.theme}
${cfg.extraConfig}
'';

in
@@ -65,6 +66,15 @@ in
'';
};

extraConfig = mkOption {
type = types.lines;
default = "";
description = ''
Literal string to append to <literal>configFile</literal>
and the config file generated by the plymouth module.
'';
};

};

};
4 changes: 3 additions & 1 deletion nixos/tests/haproxy.nix
Original file line number Diff line number Diff line change
@@ -16,6 +16,8 @@ import ./make-test.nix ({ pkgs, ...}: {
frontend http
bind *:80
mode http
option http-use-htx
http-request use-service prometheus-exporter if { path /metrics }
use_backend http_server
'';
};
@@ -36,6 +38,6 @@ import ./make-test.nix ({ pkgs, ...}: {
$machine->waitForUnit('haproxy.service');
$machine->waitForUnit('httpd.service');
$machine->succeed('curl -k http://localhost:80/index.txt | grep "We are all good!"');
$machine->succeed('curl -k http://localhost:80/metrics | grep haproxy_process_pool_allocated_bytes');
'';
})
16 changes: 8 additions & 8 deletions nixos/tests/lightdm.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ./make-test.nix ({ pkgs, ...} : {
import ./make-test-python.nix ({ pkgs, ...} : {
name = "lightdm";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ aszlig worldofpeace ];
@@ -18,12 +18,12 @@ import ./make-test.nix ({ pkgs, ...} : {
testScript = { nodes, ... }: let
user = nodes.machine.config.users.users.alice;
in ''
startAll;
$machine->waitForText(qr/${user.description}/);
$machine->screenshot("lightdm");
$machine->sendChars("${user.password}\n");
$machine->waitForFile("/home/alice/.Xauthority");
$machine->succeed("xauth merge ~alice/.Xauthority");
$machine->waitForWindow("^IceWM ");
start_all()
machine.wait_for_text("${user.description}")
machine.screenshot("lightdm")
machine.send_chars("${user.password}\n")
machine.wait_for_file("${user.home}/.Xauthority")
machine.succeed("xauth merge ${user.home}/.Xauthority")
machine.wait_for_window("^IceWM ")
'';
})
Loading