Merge branch 'master' into fix/roundcube
commit4c18309ca68010db90ee294d945a3ee5b71d8c9a
authorf--t <2817965+f--t@users.noreply.github.com>
dateTue 19 Nov 2019, 13:16 (7 years ago)
parentd7982b7943508a
3104 files changed+83663−86005
104 more files changed are not listed.
.github/CODEOWNERS+6
@@ -157,6 +157,12 @@
157157/pkgs/applications/editors/emacs @adisbladis
158158/pkgs/top-level/emacs-packages.nix @adisbladis
159159
160+# VimPlugins
161+/pkgs/misc/vim-plugins @jonringer
162+
163+# VsCode Extensions
164+/pkgs/misc/vscode-extensions @jonringer
165+
160166# Prometheus exporter modules and tests
161167/nixos/modules/services/monitoring/prometheus/exporters.nix @WilliButz
162168/nixos/modules/services/monitoring/prometheus/exporters.xml @WilliButz
.github/CONTRIBUTING.md+1−1
@@ -51,4 +51,4 @@ For package version upgrades and such a one-line commit message is usually suffi
5151
5252## Reviewing contributions
5353
54−See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#sec-reviewing-contributions).
54+See the nixpkgs manual for more details on how to [Review contributions](https://nixos.org/nixpkgs/manual/#chap-reviewing-contributions).
.github/PULL_REQUEST_TEMPLATE.md+2−2
@@ -1,4 +1,4 @@
1−<!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you aren't a committer, we would appreciate reviews of other PRs, especially simple ones like package updates. Just testing the relevant package/service and leaving a comment saying what you tested, how you tested it and whether it worked would be great. List of open PRs: <https://github.com/NixOS/nixpkgs/pulls>, for more about reviewing contributions: <https://hydra.nixos.org/job/nixpkgs/trunk/manual/latest/download/1/nixpkgs/manual.html#sec-reviewing-contributions>. Reviewing isn't mandatory, but it would help out a lot and reduce the average time-to-merge for all of us. Thanks a lot if you do! -->
1+<!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you aren't a committer, we would appreciate reviews of other PRs, especially simple ones like package updates. Just testing the relevant package/service and leaving a comment saying what you tested, how you tested it and whether it worked would be great. List of open PRs: <https://github.com/NixOS/nixpkgs/pulls>, for more about reviewing contributions: <https://hydra.nixos.org/job/nixpkgs/trunk/manual/latest/download/1/nixpkgs/manual.html#chap-reviewing-contributions>. Reviewing isn't mandatory, but it would help out a lot and reduce the average time-to-merge for all of us. Thanks a lot if you do! -->
22###### Motivation for this change
33
44
@@ -6,7 +6,7 @@
66
77<!-- Please check what applies. Note that these are not hard requirements but merely serve as information for reviewers. -->
88
9−- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS)
9+- [ ] Tested using sandboxing ([nix.useSandbox](http://nixos.org/nixos/manual/options.html#opt-nix.useSandbox) on NixOS, or option `sandbox` in [`nix.conf`](http://nixos.org/nix/manual/#sec-conf-file) on non-NixOS linux)
1010- Built on platform(s)
1111 - [ ] NixOS
1212 - [ ] macOS
.github/stale.ymlnew file+32
@@ -0,0 +1,32 @@
1+# Number of days of inactivity before an issue becomes stale
2+daysUntilStale: 180
3+# Number of days of inactivity before a stale issue is closed
4+daysUntilClose: false
5+# Issues with these labels will never be considered stale
6+exemptLabels:
7+ - 1.severity: security
8+# Label to use when marking an issue as stale
9+staleLabel: 2.status: stale
10+# Comment to post when marking an issue as stale. Set to `false` to disable
11+markComment: >
12+ Thank you for your contributions.
13+
14+ This has been automatically marked as stale because it has had no
15+ activity for 180 days.
16+
17+ If this is still important to you, we ask that you leave a
18+ comment below. Your comment can be as simple as "still important
19+ to me". This lets people see that at least one person still cares
20+ about this. Someone will have to do this at most twice a year if
21+ there is no other activity.
22+
23+ Here are suggestions that might help resolve this more quickly:
24+
25+ 1. Search for maintainers and people that previously touched the
26+ related code and @ mention them in a comment.
27+ 2. Ask on the [NixOS Discourse](https://discourse.nixos.org/).
28+ 3. Ask on the [#nixos channel](irc://irc.freenode.net/#nixos) on
29+ [irc.freenode.net](https://freenode.net).
30+
31+# Comment to post when closing a stale issue. Set to `false` to disable
32+closeComment: false
README.md+1−3
@@ -51,9 +51,7 @@ system, [Hydra](https://hydra.nixos.org/).
5151Artifacts successfully built with Hydra are published to cache at
5252https://cache.nixos.org/. When successful build and test criteria are
5353met, the Nixpkgs expressions are distributed via [Nix
54−channels](https://nixos.org/nix/manual/#sec-channels). The channels
55−are provided via a read-only mirror of the Nixpkgs repository called
56−[nixpkgs-channels](https://github.com/NixOS/nixpkgs-channels).
54+channels](https://nixos.org/nix/manual/#sec-channels).
5755
5856# Contributing
5957
doc/functions/fetchers.xml → doc/builders/fetchers.xmlrenamed+4−13
@@ -1,17 +1,14 @@
1−<section xmlns="http://docbook.org/ns/docbook"
1+<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
4− xml:id="sec-pkgs-fetchers">
5− <title>Fetcher functions</title>
6−
4+ xml:id="chap-pkgs-fetchers">
5+ <title>Fetchers</title>
76 <para>
87 When using Nix, you will frequently need to download source code and other files from the internet. Nixpkgs comes with a few helper functions that allow you to fetch fixed-output derivations in a structured way.
98 </para>
10−
119 <para>
1210 The two fetcher primitives are <function>fetchurl</function> and <function>fetchzip</function>. Both of these have two required arguments, a URL and a hash. The hash is typically <literal>sha256</literal>, although many more hash algorithms are supported. Nixpkgs contributors are currently recommended to use <literal>sha256</literal>. This hash will be used by Nix to identify your source. A typical usage of fetchurl is provided below.
1311 </para>
14−
1512<programlisting><![CDATA[
1613{ stdenv, fetchurl }:
1714
@@ -23,19 +20,15 @@ stdenv.mkDerivation {
2320 };
2421}
2522]]></programlisting>
26−
2723 <para>
2824 The main difference between <function>fetchurl</function> and <function>fetchzip</function> is in how they store the contents. <function>fetchurl</function> will store the unaltered contents of the URL within the Nix store. <function>fetchzip</function> on the other hand will decompress the archive for you, making files and directories directly accessible in the future. <function>fetchzip</function> can only be used with archives. Despite the name, <function>fetchzip</function> is not limited to .zip files and can also be used with any tarball.
2925 </para>
30−
3126 <para>
3227 <function>fetchpatch</function> works very similarly to <function>fetchurl</function> with the same arguments expected. It expects patch files as a source and and performs normalization on them before computing the checksum. For example it will remove comments or other unstable parts that are sometimes added by version control systems and can change over time.
3328 </para>
34−
3529 <para>
3630 Other fetcher functions allow you to add source code directly from a VCS such as subversion or git. These are mostly straightforward names based on the name of the command used with the VCS system. Because they give you a working repository, they act most like <function>fetchzip</function>.
3731 </para>
38−
3932 <variablelist>
4033 <varlistentry>
4134 <term>
@@ -88,11 +81,9 @@ stdenv.mkDerivation {
8881 </listitem>
8982 </varlistentry>
9083 </variablelist>
91−
9284 <para>
9385 A number of fetcher functions wrap part of <function>fetchurl</function> and <function>fetchzip</function>. They are mainly convenience functions intended for commonly used destinations of source code in Nixpkgs. These wrapper fetchers are listed below.
9486 </para>
95−
9687 <variablelist>
9788 <varlistentry>
9889 <term>
@@ -145,4 +136,4 @@ stdenv.mkDerivation {
145136 </listitem>
146137 </varlistentry>
147138 </variablelist>
148−</section>
139+</chapter>
doc/builders/images.xmlnew file+12
@@ -0,0 +1,12 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xi="http://www.w3.org/2001/XInclude"
3+ xml:id="chap-images">
4+ <title>Images</title>
5+ <para>
6+ This chapter describes tools for creating various types of images.
7+ </para>
8+ <xi:include href="images/appimagetools.xml" />
9+ <xi:include href="images/dockertools.xml" />
10+ <xi:include href="images/ocitools.xml" />
11+ <xi:include href="images/snaptools.xml" />
12+</chapter>
doc/functions/appimagetools.xml → doc/builders/images/appimagetools.xmlrenamed
The content is the same.
doc/functions/dockertools.xml → doc/builders/images/dockertools.xmlrenamed
The content is the same.
doc/functions/ocitools.xml → doc/builders/images/ocitools.xmlrenamed
The content is the same.
doc/functions/snap/example-firefox.nix → doc/builders/images/snap/example-firefox.nixrenamed
The content is the same.
doc/functions/snap/example-hello.nix → doc/builders/images/snap/example-hello.nixrenamed
The content is the same.
doc/functions/snaptools.xml → doc/builders/images/snaptools.xmlrenamed
The content is the same.
doc/builders/packages/citrix.xmlnew file+44
@@ -0,0 +1,44 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-citrix">
4+ <title>Citrix Workspace</title>
5+
6+ <para>
7+ <note>
8+ <para>
9+ Please note that the <literal>citrix_receiver</literal> package has been deprecated since its development was <link xlink:href="https://docs.citrix.com/en-us/citrix-workspace-app.html">discontinued by upstream</link> and has been replaced by <link xlink:href="https://www.citrix.com/products/workspace-app/">the citrix workspace app</link>.
10+ </para>
11+ </note>
12+ <link xlink:href="https://www.citrix.com/products/receiver/">Citrix Receiver</link> and <link xlink:href="https://www.citrix.com/products/workspace-app/">Citrix Workspace App</link> are a remote desktop viewers which provide access to <link xlink:href="https://www.citrix.com/products/xenapp-xendesktop/">XenDesktop</link> installations.
13+ </para>
14+
15+ <section xml:id="sec-citrix-base">
16+ <title>Basic usage</title>
17+
18+ <para>
19+ The tarball archive needs to be downloaded manually as the license agreements of the vendor for <link xlink:href="https://www.citrix.com/downloads/citrix-receiver/">Citrix Receiver</link> or <link xlink:href="https://www.citrix.de/downloads/workspace-app/linux/workspace-app-for-linux-latest.html">Citrix Workspace</link> need to be accepted first. Then run <command>nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz</command>. With the archive available in the store the package can be built and installed with Nix.
20+ </para>
21+
22+ <warning>
23+ <title>Caution with <command>nix-shell</command> installs</title>
24+ <para>
25+ It's recommended to install <literal>Citrix Receiver</literal> and/or <literal>Citrix Workspace</literal> using <literal>nix-env -i</literal> or globally to ensure that the <literal>.desktop</literal> files are installed properly into <literal>$XDG_CONFIG_DIRS</literal>. Otherwise it won't be possible to open <literal>.ica</literal> files automatically from the browser to start a Citrix connection.
26+ </para>
27+ </warning>
28+ </section>
29+
30+ <section xml:id="sec-citrix-custom-certs">
31+ <title>Custom certificates</title>
32+
33+ <para>
34+ The <literal>Citrix Workspace App</literal> in <literal>nixpkgs</literal> trust several certificates <link xlink:href="https://curl.haxx.se/docs/caextract.html">from the Mozilla database</link> by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in <link xlink:href="https://developer-docs.citrix.com/projects/receiver-for-linux-command-reference/en/13.7/"><literal>$ICAROOT</literal></link>, however this directory is a store path in <literal>nixpkgs</literal>. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using <literal>symlinkJoin</literal>:
35+<programlisting>
36+<![CDATA[with import <nixpkgs> { config.allowUnfree = true; };
37+let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in
38+citrix_workspace.override {
39+ inherit extraCerts;
40+}]]>
41+</programlisting>
42+ </para>
43+ </section>
44+</section>
doc/builders/packages/dlib.xmlnew file+24
@@ -0,0 +1,24 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="dlib">
4+ <title>DLib</title>
5+
6+ <para>
7+ <link xlink:href="http://dlib.net/">DLib</link> is a modern, C++-based toolkit which provides several machine learning algorithms.
8+ </para>
9+
10+ <section xml:id="compiling-without-avx-support">
11+ <title>Compiling without AVX support</title>
12+
13+ <para>
14+ Especially older CPUs don't support <link xlink:href="https://en.wikipedia.org/wiki/Advanced_Vector_Extensions">AVX</link> (<abbrev>Advanced Vector Extensions</abbrev>) instructions that are used by DLib to optimize their algorithms.
15+ </para>
16+
17+ <para>
18+ On the affected hardware errors like <literal>Illegal instruction</literal> will occur. In those cases AVX support needs to be disabled:
19+<programlisting>self: super: {
20+ dlib = super.dlib.override { avxSupport = false; };
21+}</programlisting>
22+ </para>
23+ </section>
24+</section>
doc/builders/packages/eclipse.xmlnew file+72
@@ -0,0 +1,72 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-eclipse">
4+ <title>Eclipse</title>
5+
6+ <para>
7+ The Nix expressions related to the Eclipse platform and IDE are in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse"><filename>pkgs/applications/editors/eclipse</filename></link>.
8+ </para>
9+
10+ <para>
11+ Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
12+<screen>
13+<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses --description
14+</screen>
15+ Once an Eclipse variant is installed it can be run using the <command>eclipse</command> command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
16+ </para>
17+
18+ <para>
19+ If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an <emphasis>Eclipse environment</emphasis>. This type of environment is created using the function <varname>eclipseWithPlugins</varname> found inside the <varname>nixpkgs.eclipses</varname> attribute set. This function takes as argument <literal>{ eclipse, plugins ? [], jvmArgs ? [] }</literal> where <varname>eclipse</varname> is a one of the Eclipse packages described above, <varname>plugins</varname> is a list of plugin derivations, and <varname>jvmArgs</varname> is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add
20+<screen>
21+packageOverrides = pkgs: {
22+ myEclipse = with pkgs.eclipses; eclipseWithPlugins {
23+ eclipse = eclipse-platform;
24+ jvmArgs = [ "-Xmx2048m" ];
25+ plugins = [ plugins.color-theme ];
26+ };
27+}
28+</screen>
29+ to your Nixpkgs configuration (<filename>~/.config/nixpkgs/config.nix</filename>) and install it by running <command>nix-env -f '<nixpkgs>' -iA myEclipse</command> and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using <varname>eclipseWithPlugins</varname> by running
30+<screen>
31+<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
32+</screen>
33+ </para>
34+
35+ <para>
36+ If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the <varname>buildEclipseUpdateSite</varname> and <varname>buildEclipsePlugin</varname> functions found in the <varname>nixpkgs.eclipses.plugins</varname> attribute set. Use the <varname>buildEclipseUpdateSite</varname> function to install a plugin distributed as an Eclipse update site. This function takes <literal>{ name, src }</literal> as argument where <literal>src</literal> indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the <varname>buildEclipsePlugin</varname> function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument <literal>{ name, srcFeature, srcPlugin }</literal> where <literal>srcFeature</literal> and <literal>srcPlugin</literal> are the feature and plugin JARs, respectively.
37+ </para>
38+
39+ <para>
40+ Expanding the previous example with two plugins using the above functions we have
41+<screen>
42+packageOverrides = pkgs: {
43+ myEclipse = with pkgs.eclipses; eclipseWithPlugins {
44+ eclipse = eclipse-platform;
45+ jvmArgs = [ "-Xmx2048m" ];
46+ plugins = [
47+ plugins.color-theme
48+ (plugins.buildEclipsePlugin {
49+ name = "myplugin1-1.0";
50+ srcFeature = fetchurl {
51+ url = "http://…/features/myplugin1.jar";
52+ sha256 = "123…";
53+ };
54+ srcPlugin = fetchurl {
55+ url = "http://…/plugins/myplugin1.jar";
56+ sha256 = "123…";
57+ };
58+ });
59+ (plugins.buildEclipseUpdateSite {
60+ name = "myplugin2-1.0";
61+ src = fetchurl {
62+ stripRoot = false;
63+ url = "http://…/myplugin2.zip";
64+ sha256 = "123…";
65+ };
66+ });
67+ ];
68+ };
69+}
70+</screen>
71+ </para>
72+</section>
doc/builders/packages/elm.xmlnew file+17
@@ -0,0 +1,17 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-elm">
4+ <title>Elm</title>
5+
6+ <para>
7+ To start a development environment do <command>nix-shell -p elmPackages.elm elmPackages.elm-format</command>
8+ </para>
9+
10+ <para>
11+ To update Elm compiler, see <filename>nixpkgs/pkgs/development/compilers/elm/README.md</filename>.
12+ </para>
13+
14+ <para>
15+ To package Elm applications, <link xlink:href="https://github.com/hercules-ci/elm2nix#elm2nix">read about elm2nix</link>.
16+ </para>
17+</section>
doc/builders/packages/emacs.xmlnew file+131
@@ -0,0 +1,131 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-emacs">
4+ <title>Emacs</title>
5+
6+ <section xml:id="sec-emacs-config">
7+ <title>Configuring Emacs</title>
8+
9+ <para>
10+ The Emacs package comes with some extra helpers to make it easier to configure. <varname>emacsWithPackages</varname> allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use <literal>company</literal>, <literal>counsel</literal>, <literal>flycheck</literal>, <literal>ivy</literal>, <literal>magit</literal>, <literal>projectile</literal>, and <literal>use-package</literal> you could use this as a <filename>~/.config/nixpkgs/config.nix</filename> override:
11+ </para>
12+
13+<screen>
14+{
15+ packageOverrides = pkgs: with pkgs; {
16+ myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
17+ company
18+ counsel
19+ flycheck
20+ ivy
21+ magit
22+ projectile
23+ use-package
24+ ]));
25+ }
26+}
27+</screen>
28+
29+ <para>
30+ You can install it like any other packages via <command>nix-env -iA myEmacs</command>. However, this will only install those packages. It will not <literal>configure</literal> them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a <filename>default.el</filename> file in <filename>/share/emacs/site-start/</filename>. Emacs knows to load this file automatically when it starts.
31+ </para>
32+
33+<screen>
34+{
35+ packageOverrides = pkgs: with pkgs; rec {
36+ myEmacsConfig = writeText "default.el" ''
37+;; initialize package
38+
39+(require 'package)
40+(package-initialize 'noactivate)
41+(eval-when-compile
42+ (require 'use-package))
43+
44+;; load some packages
45+
46+(use-package company
47+ :bind ("<C-tab>" . company-complete)
48+ :diminish company-mode
49+ :commands (company-mode global-company-mode)
50+ :defer 1
51+ :config
52+ (global-company-mode))
53+
54+(use-package counsel
55+ :commands (counsel-descbinds)
56+ :bind (([remap execute-extended-command] . counsel-M-x)
57+ ("C-x C-f" . counsel-find-file)
58+ ("C-c g" . counsel-git)
59+ ("C-c j" . counsel-git-grep)
60+ ("C-c k" . counsel-ag)
61+ ("C-x l" . counsel-locate)
62+ ("M-y" . counsel-yank-pop)))
63+
64+(use-package flycheck
65+ :defer 2
66+ :config (global-flycheck-mode))
67+
68+(use-package ivy
69+ :defer 1
70+ :bind (("C-c C-r" . ivy-resume)
71+ ("C-x C-b" . ivy-switch-buffer)
72+ :map ivy-minibuffer-map
73+ ("C-j" . ivy-call))
74+ :diminish ivy-mode
75+ :commands ivy-mode
76+ :config
77+ (ivy-mode 1))
78+
79+(use-package magit
80+ :defer
81+ :if (executable-find "git")
82+ :bind (("C-x g" . magit-status)
83+ ("C-x G" . magit-dispatch-popup))
84+ :init
85+ (setq magit-completing-read-function 'ivy-completing-read))
86+
87+(use-package projectile
88+ :commands projectile-mode
89+ :bind-keymap ("C-c p" . projectile-command-map)
90+ :defer 5
91+ :config
92+ (projectile-global-mode))
93+ '';
94+ myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
95+ (runCommand "default.el" {} ''
96+mkdir -p $out/share/emacs/site-lisp
97+cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
98+'')
99+ company
100+ counsel
101+ flycheck
102+ ivy
103+ magit
104+ projectile
105+ use-package
106+ ]));
107+ };
108+}
109+</screen>
110+
111+ <para>
112+ This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing <command>-q</command> to the Emacs command.
113+ </para>
114+
115+ <para>
116+ Sometimes <varname>emacsWithPackages</varname> is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in <filename>pkgs/top-level/emacs-packages.nix</filename>). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use <varname>overrideScope'</varname>.
117+ </para>
118+
119+<screen>
120+overrides = self: super: rec {
121+ haskell-mode = self.melpaPackages.haskell-mode;
122+ ...
123+};
124+((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [
125+ # here both these package will use haskell-mode of our own choice
126+ ghc-mod
127+ dante
128+])
129+</screen>
130+ </section>
131+</section>
doc/builders/packages/ibus.xmlnew file+57
@@ -0,0 +1,57 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-ibus-typing-booster">
4+ <title>ibus-engines.typing-booster</title>
5+
6+ <para>
7+ This package is an ibus-based completion method to speed up typing.
8+ </para>
9+
10+ <section xml:id="sec-ibus-typing-booster-activate">
11+ <title>Activating the engine</title>
12+
13+ <para>
14+ IBus needs to be configured accordingly to activate <literal>typing-booster</literal>. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the <link xlink:href="https://mike-fabian.github.io/ibus-typing-booster/documentation.html">upstream docs</link>.
15+ </para>
16+
17+ <para>
18+ On NixOS you need to explicitly enable <literal>ibus</literal> with given engines before customizing your desktop to use <literal>typing-booster</literal>. This can be achieved using the <literal>ibus</literal> module:
19+<programlisting>{ pkgs, ... }: {
20+ i18n.inputMethod = {
21+ enabled = "ibus";
22+ ibus.engines = with pkgs.ibus-engines; [ typing-booster ];
23+ };
24+}</programlisting>
25+ </para>
26+ </section>
27+
28+ <section xml:id="sec-ibus-typing-booster-customize-hunspell">
29+ <title>Using custom hunspell dictionaries</title>
30+
31+ <para>
32+ The IBus engine is based on <literal>hunspell</literal> to support completion in many languages. By default the dictionaries <literal>de-de</literal>, <literal>en-us</literal>, <literal>fr-moderne</literal> <literal>es-es</literal>, <literal>it-it</literal>, <literal>sv-se</literal> and <literal>sv-fi</literal> are in use. To add another dictionary, the package can be overridden like this:
33+<programlisting>ibus-engines.typing-booster.override {
34+ langs = [ "de-at" "en-gb" ];
35+}</programlisting>
36+ </para>
37+
38+ <para>
39+ <emphasis>Note: each language passed to <literal>langs</literal> must be an attribute name in <literal>pkgs.hunspellDicts</literal>.</emphasis>
40+ </para>
41+ </section>
42+
43+ <section xml:id="sec-ibus-typing-booster-emoji-picker">
44+ <title>Built-in emoji picker</title>
45+
46+ <para>
47+ The <literal>ibus-engines.typing-booster</literal> package contains a program named <literal>emoji-picker</literal>. To display all emojis correctly, a special font such as <literal>noto-fonts-emoji</literal> is needed:
48+ </para>
49+
50+ <para>
51+ On NixOS it can be installed using the following expression:
52+<programlisting>{ pkgs, ... }: {
53+ fonts.fonts = with pkgs; [ noto-fonts-emoji ];
54+}</programlisting>
55+ </para>
56+ </section>
57+</section>
doc/builders/packages/index.xmlnew file+23
@@ -0,0 +1,23 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xi="http://www.w3.org/2001/XInclude"
3+ xml:id="chap-packages">
4+ <title>Packages</title>
5+ <para>
6+ This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org.
7+ </para>
8+ <xi:include href="citrix.xml" />
9+ <xi:include href="dlib.xml" />
10+ <xi:include href="eclipse.xml" />
11+ <xi:include href="elm.xml" />
12+ <xi:include href="emacs.xml" />
13+ <xi:include href="ibus.xml" />
14+ <xi:include href="kakoune.xml" />
15+ <xi:include href="linux.xml" />
16+ <xi:include href="locales.xml" />
17+ <xi:include href="nginx.xml" />
18+ <xi:include href="opengl.xml" />
19+ <xi:include href="shell-helpers.xml" />
20+ <xi:include href="steam.xml" />
21+ <xi:include href="weechat.xml" />
22+ <xi:include href="xorg.xml" />
23+</chapter>
doc/builders/packages/kakoune.xmlnew file+14
@@ -0,0 +1,14 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-kakoune">
4+ <title>Kakoune</title>
5+
6+ <para>
7+ Kakoune can be built to autoload plugins:
8+<programlisting>(kakoune.override {
9+ configure = {
10+ plugins = with pkgs.kakounePlugins; [ parinfer-rust ];
11+ };
12+})</programlisting>
13+ </para>
14+</section>
doc/builders/packages/linux.xmlnew file+85
@@ -0,0 +1,85 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-linux-kernel">
4+ <title>Linux kernel</title>
5+
6+ <para>
7+ The Nix expressions to build the Linux kernel are in <link
8+xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel"><filename>pkgs/os-specific/linux/kernel</filename></link>.
9+ </para>
10+
11+ <para>
12+ The function that builds the kernel has an argument <varname>kernelPatches</varname> which should be a list of <literal>{name, patch, extraConfig}</literal> attribute sets, where <varname>name</varname> is the name of the patch (which is included in the kernel’s <varname>meta.description</varname> attribute), <varname>patch</varname> is the patch itself (possibly compressed), and <varname>extraConfig</varname> (optional) is a string specifying extra options to be concatenated to the kernel configuration file (<filename>.config</filename>).
13+ </para>
14+
15+ <para>
16+ The kernel derivation exports an attribute <varname>features</varname> specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the <varname>iwlwifi</varname> feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external <varname>iwlwifi</varname> package:
17+<programlisting>
18+modulesTree = [kernel]
19+ ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi
20+ ++ ...;
21+</programlisting>
22+ </para>
23+
24+ <para>
25+ How to add a new (major) version of the Linux kernel to Nixpkgs:
26+ <orderedlist>
27+ <listitem>
28+ <para>
29+ Copy the old Nix expression (e.g. <filename>linux-2.6.21.nix</filename>) to the new one (e.g. <filename>linux-2.6.22.nix</filename>) and update it.
30+ </para>
31+ </listitem>
32+ <listitem>
33+ <para>
34+ Add the new kernel to <filename>all-packages.nix</filename> (e.g., create an attribute <varname>kernel_2_6_22</varname>).
35+ </para>
36+ </listitem>
37+ <listitem>
38+ <para>
39+ Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (<literal>i686</literal>, <literal>x86_64</literal>, <literal>uml</literal>) do the following:
40+ <orderedlist>
41+ <listitem>
42+ <para>
43+ Make an copy from the old config (e.g. <filename>config-2.6.21-i686-smp</filename>) to the new one (e.g. <filename>config-2.6.22-i686-smp</filename>).
44+ </para>
45+ </listitem>
46+ <listitem>
47+ <para>
48+ Copy the config file for this platform (e.g. <filename>config-2.6.22-i686-smp</filename>) to <filename>.config</filename> in the kernel source tree.
49+ </para>
50+ </listitem>
51+ <listitem>
52+ <para>
53+ Run <literal>make oldconfig ARCH=<replaceable>{i386,x86_64,um}</replaceable></literal> and answer all questions. (For the uml configuration, also add <literal>SHELL=bash</literal>.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on <literal>i686</literal> and disable it on <literal>x86_64</literal>).
54+ </para>
55+ </listitem>
56+ <listitem>
57+ <para>
58+ If needed you can also run <literal>make menuconfig</literal>:
59+<screen>
60+<prompt>$ </prompt>nix-env -i ncurses
61+<prompt>$ </prompt>export NIX_CFLAGS_LINK=-lncurses
62+<prompt>$ </prompt>make menuconfig ARCH=<replaceable>arch</replaceable></screen>
63+ </para>
64+ </listitem>
65+ <listitem>
66+ <para>
67+ Copy <filename>.config</filename> over the new config file (e.g. <filename>config-2.6.22-i686-smp</filename>).
68+ </para>
69+ </listitem>
70+ </orderedlist>
71+ </para>
72+ </listitem>
73+ <listitem>
74+ <para>
75+ Test building the kernel: <literal>nix-build -A kernel_2_6_22</literal>. If it compiles, ship it! For extra credit, try booting NixOS with it.
76+ </para>
77+ </listitem>
78+ <listitem>
79+ <para>
80+ It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the <varname>linuxPackagesFor</varname> function in <filename>all-packages.nix</filename> (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around.
81+ </para>
82+ </listitem>
83+ </orderedlist>
84+ </para>
85+</section>
doc/builders/packages/locales.xmlnew file+13
@@ -0,0 +1,13 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="locales">
4+ <title>Locales</title>
5+
6+ <para>
7+ To allow simultaneous use of packages linked against different versions of <literal>glibc</literal> with different locale archive formats Nixpkgs patches <literal>glibc</literal> to rely on <literal>LOCALE_ARCHIVE</literal> environment variable.
8+ </para>
9+
10+ <para>
11+ On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the <literal>LOCALE_ARCHIVE</literal> variable pointing to <literal>${glibcLocales}/lib/locale/locale-archive</literal>. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters <literal>allLocales</literal> and <literal>locales</literal> of the package.
12+ </para>
13+</section>
doc/builders/packages/nginx.xmlnew file+25
@@ -0,0 +1,25 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-nginx">
4+ <title>Nginx</title>
5+
6+ <para>
7+ <link xlink:href="https://nginx.org/">Nginx</link> is a reverse proxy and lightweight webserver.
8+ </para>
9+
10+ <section xml:id="sec-nginx-etag">
11+ <title>ETags on static files served from the Nix store</title>
12+
13+ <para>
14+ HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the <link xlink:href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"><literal>Last-Modified</literal></link> response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the <literal>Last-Modified</literal> header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility).
15+ </para>
16+
17+ <para>
18+ Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the <link xlink:href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"><literal>ETag</literal></link> response header. The value of the <literal>ETag</literal> header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an <literal>If-None-Match</literal> header. If the ETag value is unchanged, then the server does not need to resend the content.
19+ </para>
20+
21+ <para>
22+ As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of <filename>/nix/store</filename>, the hash in the store path is used as the <literal>ETag</literal> header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior.
23+ </para>
24+ </section>
25+</section>
doc/builders/packages/opengl.xmlnew file+9
@@ -0,0 +1,9 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-opengl">
4+ <title>OpenGL</title>
5+
6+ <para>
7+ Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on <literal>libglvnd</literal> and looks for the driver implementation in <literal>LD_LIBRARY_PATH</literal>. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of <literal>libglvnd</literal> and <literal>mesa_drivers</literal> in <literal>LD_LIBRARY_PATH</literal>. For proprietary video drivers you might have luck with also adding the corresponding video driver package.
8+ </para>
9+</section>
doc/builders/packages/shell-helpers.xmlnew file+25
@@ -0,0 +1,25 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-shell-helpers">
4+ <title>Interactive shell helpers</title>
5+
6+ <para>
7+ Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch <command>PACKAGE-share</command> scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following:
8+ <itemizedlist>
9+ <listitem>
10+ <para>
11+ <literal>autojump</literal>: <command>autojump-share</command>
12+ </para>
13+ </listitem>
14+ <listitem>
15+ <para>
16+ <literal>fzf</literal>: <command>fzf-share</command>
17+ </para>
18+ </listitem>
19+ </itemizedlist>
20+ E.g. <literal>autojump</literal> can then used in the .bashrc like this:
21+<screen>
22+ source "$(autojump-share)/autojump.bash"
23+</screen>
24+ </para>
25+</section>
doc/builders/packages/steam.xmlnew file+131
@@ -0,0 +1,131 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-steam">
4+ <title>Steam</title>
5+
6+ <section xml:id="sec-steam-nix">
7+ <title>Steam in Nix</title>
8+
9+ <para>
10+ Steam is distributed as a <filename>.deb</filename> file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called <filename>steam</filename> that in Ubuntu (their target distro) would go to <filename>/usr/bin </filename>. When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME.
11+ </para>
12+
13+ <para>
14+ Nix problems and constraints:
15+ <itemizedlist>
16+ <listitem>
17+ <para>
18+ We don't have <filename>/bin/bash</filename> and many scripts point there. Similarly for <filename>/usr/bin/python</filename> .
19+ </para>
20+ </listitem>
21+ <listitem>
22+ <para>
23+ We don't have the dynamic loader in <filename>/lib </filename>.
24+ </para>
25+ </listitem>
26+ <listitem>
27+ <para>
28+ The <filename>steam.sh</filename> script in $HOME can not be patched, as it is checked and rewritten by steam.
29+ </para>
30+ </listitem>
31+ <listitem>
32+ <para>
33+ The steam binary cannot be patched, it's also checked.
34+ </para>
35+ </listitem>
36+ </itemizedlist>
37+ </para>
38+
39+ <para>
40+ The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented <link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment.
41+ </para>
42+ </section>
43+
44+ <section xml:id="sec-steam-play">
45+ <title>How to play</title>
46+
47+ <para>
48+ For 64-bit systems it's important to have
49+<programlisting>hardware.opengl.driSupport32Bit = true;</programlisting>
50+ in your <filename>/etc/nixos/configuration.nix</filename>. You'll also need
51+<programlisting>hardware.pulseaudio.support32Bit = true;</programlisting>
52+ if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add
53+<programlisting>hardware.steam-hardware.enable = true;</programlisting>
54+ to your configuration.
55+ </para>
56+ </section>
57+
58+ <section xml:id="sec-steam-troub">
59+ <title>Troubleshooting</title>
60+
61+ <para>
62+ <variablelist>
63+ <varlistentry>
64+ <term>
65+ Steam fails to start. What do I do?
66+ </term>
67+ <listitem>
68+ <para>
69+ Try to run
70+<programlisting>strace steam</programlisting>
71+ to see what is causing steam to fail.
72+ </para>
73+ </listitem>
74+ </varlistentry>
75+ <varlistentry>
76+ <term>
77+ Using the FOSS Radeon or nouveau (nvidia) drivers
78+ </term>
79+ <listitem>
80+ <itemizedlist>
81+ <listitem>
82+ <para>
83+ The <literal>newStdcpp</literal> parameter was removed since NixOS 17.09 and should not be needed anymore.
84+ </para>
85+ </listitem>
86+ <listitem>
87+ <para>
88+ Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error
89+<programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
90+ have a look at <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this pull request</link>.
91+ </para>
92+ </listitem>
93+ </itemizedlist>
94+ </listitem>
95+ </varlistentry>
96+ <varlistentry>
97+ <term>
98+ Java
99+ </term>
100+ <listitem>
101+ <orderedlist>
102+ <listitem>
103+ <para>
104+ There is no java in steam chrootenv by default. If you get a message like
105+<programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
106+ You need to add
107+<programlisting> steam.override { withJava = true; };</programlisting>
108+ to your configuration.
109+ </para>
110+ </listitem>
111+ </orderedlist>
112+ </listitem>
113+ </varlistentry>
114+ </variablelist>
115+ </para>
116+ </section>
117+
118+ <section xml:id="sec-steam-run">
119+ <title>steam-run</title>
120+
121+ <para>
122+ The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add
123+<programlisting>pkgs.(steam.override {
124+ nativeOnly = true;
125+ newStdcpp = true;
126+ }).run</programlisting>
127+ to your configuration, rebuild, and run the game with
128+<programlisting>steam-run ./foo</programlisting>
129+ </para>
130+ </section>
131+</section>
doc/builders/packages/unfree.xmlnew file+13
@@ -0,0 +1,13 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="unfree-software">
4+ <title>Unfree software</title>
5+
6+ <para>
7+ All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export <literal>NIXPKGS_ALLOW_UNFREE=1</literal>. For a persistent solution, users can set <literal>allowUnfree</literal> in the Nixpkgs configuration.
8+ </para>
9+
10+ <para>
11+ Fine-grained control is possible by defining <literal>allowUnfreePredicate</literal> function in config; it takes the <literal>mkDerivation</literal> parameter attrset and returns <literal>true</literal> for unfree packages that should be allowed.
12+ </para>
13+</section>
doc/builders/packages/weechat.xmlnew file+85
@@ -0,0 +1,85 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-weechat">
4+ <title>Weechat</title>
5+
6+ <para>
7+ Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as
8+<programlisting>weechat.override {configure = {availablePlugins, ...}: {
9+ plugins = with availablePlugins; [ python perl ];
10+ }
11+}</programlisting>
12+ If the <literal>configure</literal> function returns an attrset without the <literal>plugins</literal> attribute, <literal>availablePlugins</literal> will be used automatically.
13+ </para>
14+
15+ <para>
16+ The plugins currently available are <literal>python</literal>, <literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>, <literal>tcl</literal> and <literal>lua</literal>.
17+ </para>
18+
19+ <para>
20+ The python and perl plugins allows the addition of extra libraries. For instance, the <literal>inotify.py</literal> script in weechat-scripts requires D-Bus or libnotify, and the <literal>fish.py</literal> script requires pycrypto. To use these scripts, use the plugin's <literal>withPackages</literal> attribute:
21+<programlisting>weechat.override { configure = {availablePlugins, ...}: {
22+ plugins = with availablePlugins; [
23+ (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
24+ ];
25+ };
26+}
27+</programlisting>
28+ </para>
29+
30+ <para>
31+ In order to also keep all default plugins installed, it is possible to use the following method:
32+<programlisting>weechat.override { configure = { availablePlugins, ... }: {
33+ plugins = builtins.attrValues (availablePlugins // {
34+ python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
35+ });
36+}; }
37+</programlisting>
38+ </para>
39+
40+ <para>
41+ WeeChat allows to set defaults on startup using the <literal>--run-command</literal>. The <literal>configure</literal> method can be used to pass commands to the program:
42+<programlisting>weechat.override {
43+ configure = { availablePlugins, ... }: {
44+ init = ''
45+ /set foo bar
46+ /server add freenode chat.freenode.org
47+ '';
48+ };
49+}</programlisting>
50+ Further values can be added to the list of commands when running <literal>weechat --run-command "your-commands"</literal>.
51+ </para>
52+
53+ <para>
54+ Additionally it's possible to specify scripts to be loaded when starting <literal>weechat</literal>. These will be loaded before the commands from <literal>init</literal>:
55+<programlisting>weechat.override {
56+ configure = { availablePlugins, ... }: {
57+ scripts = with pkgs.weechatScripts; [
58+ weechat-xmpp weechat-matrix-bridge wee-slack
59+ ];
60+ init = ''
61+ /set plugins.var.python.jabber.key "val"
62+ '':
63+ };
64+}</programlisting>
65+ </para>
66+
67+ <para>
68+ In <literal>nixpkgs</literal> there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a <literal>passthru.scripts</literal> attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in <literal>$out/share</literal>. An exemplary derivation looks like this:
69+<programlisting>{ stdenv, fetchurl }:
70+
71+stdenv.mkDerivation {
72+ name = "exemplary-weechat-script";
73+ src = fetchurl {
74+ url = "https://scripts.tld/your-scripts.tar.gz";
75+ sha256 = "...";
76+ };
77+ passthru.scripts = [ "foo.py" "bar.lua" ];
78+ installPhase = ''
79+ mkdir $out/share
80+ cp foo.py $out/share
81+ cp bar.lua $out/share
82+ '';
83+}</programlisting>
84+ </para>
85+</section>
doc/builders/packages/xorg.xmlnew file+34
@@ -0,0 +1,34 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="sec-xorg">
4+ <title>X.org</title>
5+
6+ <para>
7+ The Nix expressions for the X.org packages reside in <filename>pkgs/servers/x11/xorg/default.nix</filename>. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file <filename>pkgs/servers/x11/xorg/overrides.nix</filename>, in which you can override or add to the derivations produced by the generator.
8+ </para>
9+
10+ <para>
11+ The generator is invoked as follows:
12+<screen>
13+<prompt>$ </prompt>cd pkgs/servers/x11/xorg
14+<prompt>$ </prompt>cat tarballs-7.5.list extra.list old.list \
15+ | perl ./generate-expr-from-tarballs.pl
16+</screen>
17+ For each of the tarballs in the <filename>.list</filename> files, the script downloads it, unpacks it, and searches its <filename>configure.ac</filename> and <filename>*.pc.in</filename> files for dependencies. This information is used to generate <filename>default.nix</filename>. The generator caches downloaded tarballs between runs. Pay close attention to the <literal>NOT FOUND: <replaceable>name</replaceable></literal> messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.)
18+ </para>
19+
20+ <para>
21+ A file like <filename>tarballs-7.5.list</filename> contains all tarballs in a X.org release. It can be generated like this:
22+<screen>
23+<prompt>$ </prompt>export i="mirror://xorg/X11R7.4/src/everything/"
24+<prompt>$ </prompt>cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \
25+ | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \
26+ | sort > tarballs-7.4.list
27+</screen>
28+ <filename>extra.list</filename> contains libraries that aren’t part of X.org proper, but are closely related to it, such as <literal>libxcb</literal>. <filename>old.list</filename> contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as <varname>imake</varname>).
29+ </para>
30+
31+ <para>
32+ If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, <varname>patches</varname> or a <varname>postInstall</varname> hook), you should modify <filename>pkgs/servers/x11/xorg/overrides.nix</filename>.
33+ </para>
34+</section>
doc/builders/special.xmlnew file+10
@@ -0,0 +1,10 @@
1+<chapter xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xi="http://www.w3.org/2001/XInclude"
3+ xml:id="chap-special">
4+ <title>Special builders</title>
5+ <para>
6+ This chapter describes several special builders.
7+ </para>
8+ <xi:include href="special/fhs-environments.xml" />
9+ <xi:include href="special/mkshell.xml" />
10+</chapter>
doc/functions/fhs-environments.xml → doc/builders/special/fhs-environments.xmlrenamed
The content is the same.
doc/functions/shell.xml → doc/builders/special/mkshell.xmlrenamed
The content is the same.
doc/functions/trivial-builders.xml → doc/builders/trivial-builders.xmlrenamed+3−5
@@ -1,13 +1,11 @@
1−<section xmlns="http://docbook.org/ns/docbook"
1+<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
4− xml:id="sec-trivial-builders">
4+ xml:id="chap-trivial-builders">
55 <title>Trivial builders</title>
6−
76 <para>
87 Nixpkgs provides a couple of functions that help with building derivations. The most important one, <function>stdenv.mkDerivation</function>, has already been documented above. The following functions wrap <function>stdenv.mkDerivation</function>, making it easier to use in certain cases.
98 </para>
10−
119 <variablelist>
1210 <varlistentry>
1311 <term>
@@ -76,4 +74,4 @@
7674 </listitem>
7775 </varlistentry>
7876 </variablelist>
79−</section>
77+</chapter>
doc/coding-conventions.xml → doc/contributing/coding-conventions.xmlrenamed
The content is the same.
doc/contributing.xml → doc/contributing/contributing-to-documentation.xmlrenamed
The content is the same.
doc/quick-start.xml → doc/contributing/quick-start.xmlrenamed
The content is the same.
doc/reviewing-contributions.xml → doc/contributing/reviewing-contributions.xmlrenamed+2−9
@@ -2,7 +2,7 @@
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
5− xml:id="sec-reviewing-contributions">
5+ xml:id="chap-reviewing-contributions">
66 <title>Reviewing contributions</title>
77 <warning>
88 <para>
@@ -115,19 +115,12 @@
115115 <para>
116116 It is possible to rebase the changes on nixos-unstable or nixpkgs-unstable for easier review by running the following commands from a nixpkgs clone.
117117<screen>
118−<prompt>$ </prompt>git remote add channels https://github.com/NixOS/nixpkgs-channels.git <co
119− xml:id='reviewing-rebase-1' />
120−<prompt>$ </prompt>git fetch channels nixos-unstable <co xml:id='reviewing-rebase-2' />
118+<prompt>$ </prompt>git fetch origin nixos-unstable <co xml:id='reviewing-rebase-2' />
121119<prompt>$ </prompt>git fetch origin pull/PRNUMBER/head <co xml:id='reviewing-rebase-3' />
122120<prompt>$ </prompt>git rebase --onto nixos-unstable BASEBRANCH FETCH_HEAD <co
123121 xml:id='reviewing-rebase-4' />
124122</screen>
125123 <calloutlist>
126− <callout arearefs='reviewing-rebase-1'>
127− <para>
128− This should be done only once to be able to fetch channel branches from the nixpkgs-channels repository.
129− </para>
130− </callout>
131124 <callout arearefs='reviewing-rebase-2'>
132125 <para>
133126 Fetching the nixos-unstable branch.
doc/submitting-changes.xml → doc/contributing/submitting-changes.xmlrenamed+56−23
@@ -228,6 +228,33 @@ Additional information.
228228 </listitem>
229229 </itemizedlist>
230230 </section>
231+ <section xml:id="submitting-changes-submitting-security-fixes">
232+ <title>Submitting security fixes</title>
233+
234+ <para>
235+ Security fixes are submitted in the same way as other changes and thus the same guidelines apply.
236+ </para>
237+
238+ <para>
239+ If the security fix comes in the form of a patch and a CVE is available, then the name of the patch should be the CVE identifier, so e.g. <literal>CVE-2019-13636.patch</literal> in the case of a patch that is included in the Nixpkgs tree. If a patch is fetched the name needs to be set as well, e.g.:
240+ </para>
241+
242+<programlisting>
243+ (fetchpatch {
244+ name = "CVE-2019-11068.patch";
245+ url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
246+ sha256 = "0pkpb4837km15zgg6h57bncp66d5lwrlvkr73h0lanywq7zrwhj8";
247+ })
248+ </programlisting>
249+
250+ <para>
251+ If a security fix applies to both master and a stable release then, similar to regular changes, they are preferably delivered via master first and cherry-picked to the release branch.
252+ </para>
253+
254+ <para>
255+ Critical security fixes may by-pass the staging branches and be delivered directly to release branches such as <literal>master</literal> and <literal>release-*</literal>.
256+ </para>
257+ </section>
231258 <section xml:id="submitting-changes-pull-request-template">
232259 <title>Pull Request Template</title>
233260
@@ -298,12 +325,17 @@ Additional information.
298325
299326 <para>
300327 review changes from pull request number 12345:
301−<screen>nix-shell -p nix-review --run "nix-review pr 12345"</screen>
328+ <screen>nix run nixpkgs.nix-review -c nix-review pr 12345</screen>
302329 </para>
303330
304331 <para>
305332 review uncommitted changes:
306−<screen>nix-shell -p nix-review --run "nix-review wip"</screen>
333+ <screen>nix run nixpkgs.nix-review -c nix-review wip</screen>
334+ </para>
335+
336+ <para>
337+ review changes from last commit:
338+ <screen>nix run nixpkgs.nix-review -c nix-review rev HEAD</screen>
307339 </para>
308340 </section>
309341
@@ -375,31 +407,32 @@ Additional information.
375407
376408 <section xml:id="submitting-changes-master-branch">
377409 <title>Master branch</title>
378−
379− <itemizedlist>
380− <listitem>
381− <para>
382− It should only see non-breaking commits that do not cause mass rebuilds.
383− </para>
384− </listitem>
385− </itemizedlist>
410+ <para>
411+ The <literal>master</literal> branch is the main development branch.
412+ It should only see non-breaking commits that do not cause mass rebuilds.
413+ </para>
386414 </section>
387415
388416 <section xml:id="submitting-changes-staging-branch">
389417 <title>Staging branch</title>
418+ <para>
419+ The <literal>staging</literal> branch is a development branch where mass-rebuilds go.
420+ It should only see non-breaking mass-rebuild commits.
421+ That means it is not to be used for testing, and changes must have been well tested already.
422+ If the branch is already in a broken state, please refrain from adding extra new breakages.
423+ </para>
424+ </section>
390425
391− <itemizedlist>
392− <listitem>
393− <para>
394− It's only for non-breaking mass-rebuild commits. That means it's not to be used for testing, and changes must have been well tested already. <link xlink:href="https://web.archive.org/web/20160528180406/http://comments.gmane.org/gmane.linux.distributions.nixos/13447">Read policy here</link>.
395− </para>
396− </listitem>
397− <listitem>
398− <para>
399− If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days, merge into master, then resume development on staging. <link xlink:href="http://hydra.nixos.org/jobset/nixpkgs/staging#tabs-evaluations">Keep an eye on the staging evaluations here</link>. If any fixes for staging happen to be already in master, then master can be merged into staging.
400− </para>
401− </listitem>
402− </itemizedlist>
426+ <section xml:id="submitting-changes-staging-next-branch">
427+ <title>Staging-next branch</title>
428+ <para>
429+ The <literal>staging-next</literal> branch is for stabilizing mass-rebuilds submitted to the <literal>staging</literal> branch prior to merging them into <literal>master</literal>.
430+ Mass-rebuilds should go via the <literal>staging</literal> branch.
431+ It should only see non-breaking commits that are fixing issues blocking it from being merged into the <literal>master </literal> branch.
432+ </para>
433+ <para>
434+ If the branch is already in a broken state, please refrain from adding extra new breakages. Stabilize it for a few days and then merge into master.
435+ </para>
403436 </section>
404437
405438 <section xml:id="submitting-changes-stable-release-branches">
@@ -408,7 +441,7 @@ Additional information.
408441 <itemizedlist>
409442 <listitem>
410443 <para>
411− If you're cherry-picking a commit to a stable release branch, always use <command>git cherry-pick -xe</command> and ensure the message contains a clear description about why this needs to be included in the stable branch.
444+ If you're cherry-picking a commit to a stable release branch (“backporting”), always use <command>git cherry-pick -xe</command> and ensure the message contains a clear description about why this needs to be included in the stable branch.
412445 </para>
413446 <para>
414447 An example of a cherry-picked commit would look like this:
doc/doc-support/parameters.xml+1−1
@@ -8,7 +8,7 @@
88 <xsl:param name="html.script" select="'./highlightjs/highlight.pack.js ./highlightjs/loader.js'" />
99 <xsl:param name="xref.with.number.and.title" select="1" />
1010 <xsl:param name="use.id.as.filename" select="1" />
11− <xsl:param name="toc.section.depth" select="3" />
11+ <xsl:param name="toc.section.depth" select="0" />
1212 <xsl:param name="admon.style" select="''" />
1313 <xsl:param name="callout.graphics.extension" select="'.svg'" />
1414</xsl:stylesheet>
doc/functions.xml−9
@@ -7,17 +7,8 @@
77 The nixpkgs repository has several utility functions to manipulate Nix expressions.
88 </para>
99 <xi:include href="functions/library.xml" />
10− <xi:include href="functions/overrides.xml" />
1110 <xi:include href="functions/generators.xml" />
1211 <xi:include href="functions/debug.xml" />
13− <xi:include href="functions/fetchers.xml" />
14− <xi:include href="functions/trivial-builders.xml" />
15− <xi:include href="functions/fhs-environments.xml" />
16− <xi:include href="functions/shell.xml" />
17− <xi:include href="functions/dockertools.xml" />
18− <xi:include href="functions/snaptools.xml" />
19− <xi:include href="functions/appimagetools.xml" />
2012 <xi:include href="functions/prefer-remote-fetch.xml" />
2113 <xi:include href="functions/nix-gitignore.xml" />
22− <xi:include href="functions/ocitools.xml" />
2314</chapter>
doc/languages-frameworks/android.section.md+1−1
@@ -95,7 +95,7 @@ $ nix-build
9595
9696The Android SDK gets deployed with all desired plugin versions.
9797
98−We can also deploy subsets of the Android SDK. For example, to only the the
98+We can also deploy subsets of the Android SDK. For example, to only the
9999`platform-tools` package, you can evaluate the following expression:
100100
101101```nix
doc/languages-frameworks/beam.xml+21−286
@@ -26,7 +26,7 @@
2626 </listitem>
2727 <listitem>
2828 <para>
29− <literal>packages</literal>: a set of package sets, each compiled with a specific Erlang/OTP version, e.g. <literal>beam.packages.erlangR19</literal>.
29+ <literal>packages</literal>: a set of package builders (Mix and rebar3), each compiled with a specific Erlang/OTP version, e.g. <literal>beam.packages.erlangR19</literal>.
3030 </para>
3131 </listitem>
3232 </itemizedlist>
@@ -36,15 +36,11 @@
3636 </para>
3737
3838 <para>
39− To create a package set built with a custom Erlang version, use the lambda, <literal>beam.packagesWith</literal>, which accepts an Erlang/OTP derivation and produces a package set similar to <literal>beam.packages.erlang</literal>.
39+ To create a package builder built with a custom Erlang version, use the lambda, <literal>beam.packagesWith</literal>, which accepts an Erlang/OTP derivation and produces a package builder similar to <literal>beam.packages.erlang</literal>.
4040 </para>
4141
4242 <para>
43− Many Erlang/OTP distributions available in <literal>beam.interpreters</literal> have versions with ODBC and/or Java enabled. For example, there's <literal>beam.interpreters.erlangR19_odbc_javac</literal>, which corresponds to <literal>beam.interpreters.erlangR19</literal>.
44− </para>
45−
46− <para xml:id="erlang-call-package">
47− We also provide the lambda, <literal>beam.packages.erlang.callPackage</literal>, which simplifies writing BEAM package definitions by injecting all packages from <literal>beam.packages.erlang</literal> into the top-level context.
43+ Many Erlang/OTP distributions available in <literal>beam.interpreters</literal> have versions with ODBC and/or Java enabled or without wx (no observer support). For example, there's <literal>beam.interpreters.erlangR22_odbc_javac</literal>, which corresponds to <literal>beam.interpreters.erlangR22</literal> and <literal>beam.interpreters.erlangR22_nox</literal>, which corresponds to <literal>beam.interpreters.erlangR22</literal>.
4844 </para>
4945 </section>
5046
@@ -55,7 +51,7 @@
5551 <title>Rebar3</title>
5652
5753 <para>
58− We provide a version of Rebar3, which is the normal, unmodified Rebar3, under <literal>rebar3</literal>. We also provide a helper to fetch Rebar3 dependencies from a lockfile under <literal>fetchRebar3Deps</literal>.
54+ We provide a version of Rebar3, under <literal>rebar3</literal>. We also provide a helper to fetch Rebar3 dependencies from a lockfile under <literal>fetchRebar3Deps</literal>.
5955 </para>
6056 </section>
6157
@@ -72,32 +68,14 @@
7268 <title>How to Install BEAM Packages</title>
7369
7470 <para>
75− BEAM packages are not registered at the top level, simply because they are not relevant to the vast majority of Nix users. They are installable using the <literal>beam.packages.erlang</literal> attribute set (aliased as <literal>beamPackages</literal>), which points to packages built by the default Erlang/OTP version in Nixpkgs, as defined by <literal>beam.interpreters.erlang</literal>. To list the available packages in <literal>beamPackages</literal>, use the following command:
76− </para>
77−
78−<screen>
79−<prompt>$ </prompt>nix-env -f "<nixpkgs>" -qaP -A beamPackages
80−beamPackages.esqlite esqlite-0.2.1
81−beamPackages.goldrush goldrush-0.1.7
82−beamPackages.ibrowse ibrowse-4.2.2
83−beamPackages.jiffy jiffy-0.14.5
84−beamPackages.lager lager-3.0.2
85−beamPackages.meck meck-0.8.3
86−beamPackages.rebar3-pc pc-1.1.0
87−</screen>
88−
89− <para>
90− To install any of those packages into your profile, refer to them by their attribute path (first column):
71+ BEAM builders are not registered at the top level, simply because they are not relevant to the vast majority of Nix users.
72+ To install any of those builders into your profile, refer to them by their attribute path <literal>beamPackages.rebar3</literal>:
9173 </para>
9274
93−<screen>
94−<prompt>$ </prompt>nix-env -f "<nixpkgs>" -iA beamPackages.ibrowse
95−</screen>
96−
97− <para>
98− The attribute path of any BEAM package corresponds to the name of that particular package in <link xlink:href="https://hex.pm">Hex</link> or its OTP Application/Release name.
99− </para>
100− </section>
75+ <screen>
76+ <prompt>$ </prompt>nix-env -f "<nixpkgs>" -iA beamPackages.rebar3
77+ </screen>
78+</section>
10179
10280 <section xml:id="packaging-beam-applications">
10381 <title>Packaging BEAM Applications</title>
@@ -109,35 +87,7 @@ beamPackages.rebar3-pc pc-1.1.0
10987 <title>Rebar3 Packages</title>
11088
11189 <para>
112− The Nix function, <literal>buildRebar3</literal>, defined in <literal>beam.packages.erlang.buildRebar3</literal> and aliased at the top level, can be used to build a derivation that understands how to build a Rebar3 project. For example, we can build <link
113− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link> as follows:
114− </para>
115−
116−<programlisting>
117−{ stdenv, fetchFromGitHub, buildRebar3, ibrowse, jsx, erlware_commons }:
118−
119−buildRebar3 rec {
120− name = "hex2nix";
121− version = "0.0.1";
122−
123− src = fetchFromGitHub {
124− owner = "ericbmerritt";
125− repo = "hex2nix";
126− rev = "${version}";
127− sha256 = "1w7xjidz1l5yjmhlplfx7kphmnpvqm67w99hd2m7kdixwdxq0zqg";
128− };
129−
130− beamDeps = [ ibrowse jsx erlware_commons ];
131−}
132−</programlisting>
133−
134− <para>
135− Such derivations are callable with <literal>beam.packages.erlang.callPackage</literal> (see <xref
136− linkend="erlang-call-package"/>). To call this package using the normal <literal>callPackage</literal>, refer to dependency packages via <literal>beamPackages</literal>, e.g. <literal>beamPackages.ibrowse</literal>.
137− </para>
138−
139− <para>
140− Notably, <literal>buildRebar3</literal> includes <literal>beamDeps</literal>, while <literal>stdenv.mkDerivation</literal> does not. BEAM dependencies added there will be correctly handled by the system.
90+ The Nix function, <literal>buildRebar3</literal>, defined in <literal>beam.packages.erlang.buildRebar3</literal> and aliased at the top level, can be used to build a derivation that understands how to build a Rebar3 project.
14191 </para>
14292
14393 <para>
@@ -152,30 +102,6 @@ buildRebar3 rec {
152102 Erlang.mk functions similarly to Rebar3, except we use <literal>buildErlangMk</literal> instead of <literal>buildRebar3</literal>.
153103 </para>
154104
155−<programlisting>
156−{ buildErlangMk, fetchHex, cowlib, ranch }:
157−
158−buildErlangMk {
159− name = "cowboy";
160− version = "1.0.4";
161−
162− src = fetchHex {
163− pkg = "cowboy";
164− version = "1.0.4";
165− sha256 = "6a0edee96885fae3a8dd0ac1f333538a42e807db638a9453064ccfdaa6b9fdac";
166− };
167−
168− beamDeps = [ cowlib ranch ];
169−
170− meta = {
171− description = ''
172− Small, fast, modular HTTP server written in Erlang
173− '';
174− license = stdenv.lib.licenses.isc;
175− homepage = https://github.com/ninenines/cowboy;
176− };
177−}
178−</programlisting>
179105 </section>
180106
181107 <section xml:id="mix-packages">
@@ -185,57 +111,9 @@ buildErlangMk {
185111 Mix functions similarly to Rebar3, except we use <literal>buildMix</literal> instead of <literal>buildRebar3</literal>.
186112 </para>
187113
188−<programlisting>
189−{ buildMix, fetchHex, plug, absinthe }:
190−
191−buildMix {
192− name = "absinthe_plug";
193− version = "1.0.0";
194−
195− src = fetchHex {
196− pkg = "absinthe_plug";
197− version = "1.0.0";
198− sha256 = "08459823fe1fd4f0325a8bf0c937a4520583a5a26d73b193040ab30a1dfc0b33";
199− };
200−
201− beamDeps = [ plug absinthe ];
202−
203− meta = {
204− description = ''
205− A plug for Absinthe, an experimental GraphQL toolkit
206− '';
207− license = stdenv.lib.licenses.bsd3;
208− homepage = https://github.com/CargoSense/absinthe_plug;
209− };
210−}
211−</programlisting>
212−
213114 <para>
214115 Alternatively, we can use <literal>buildHex</literal> as a shortcut:
215116 </para>
216−
217−<programlisting>
218−{ buildHex, buildMix, plug, absinthe }:
219−
220−buildHex {
221− name = "absinthe_plug";
222− version = "1.0.0";
223−
224− sha256 = "08459823fe1fd4f0325a8bf0c937a4520583a5a26d73b193040ab30a1dfc0b33";
225−
226− builder = buildMix;
227−
228− beamDeps = [ plug absinthe ];
229−
230− meta = {
231− description = ''
232− A plug for Absinthe, an experimental GraphQL toolkit
233− '';
234− license = stdenv.lib.licenses.bsd3;
235− homepage = https://github.com/CargoSense/absinthe_plug;
236− };
237−}
238−</programlisting>
239117 </section>
240118 </section>
241119 </section>
@@ -243,66 +121,13 @@ buildHex {
243121 <section xml:id="how-to-develop">
244122 <title>How to Develop</title>
245123
246− <section xml:id="accessing-an-environment">
247− <title>Accessing an Environment</title>
248−
249− <para>
250− Often, we simply want to access a valid environment that contains a specific package and its dependencies. We can accomplish that with the <literal>env</literal> attribute of a derivation. For example, let's say we want to access an Erlang REPL with <literal>ibrowse</literal> loaded up. We could do the following:
251− </para>
252−
253−<screen>
254−<prompt>$ </prompt><userinput>nix-shell -A beamPackages.ibrowse.env --run "erl"</userinput>
255−<computeroutput>Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
256−
257−Eshell V7.0 (abort with ^G)</computeroutput>
258−<prompt>1> </prompt><userinput>m(ibrowse).</userinput>
259−<computeroutput>Module: ibrowse
260−MD5: 3b3e0137d0cbb28070146978a3392945
261−Compiled: January 10 2016, 23:34
262−Object file: /nix/store/g1rlf65rdgjs4abbyj4grp37ry7ywivj-ibrowse-4.2.2/lib/erlang/lib/ibrowse-4.2.2/ebin/ibrowse.beam
263−Compiler options: [{outdir,"/tmp/nix-build-ibrowse-4.2.2.drv-0/hex-source-ibrowse-4.2.2/_build/default/lib/ibrowse/ebin"},
264−debug_info,debug_info,nowarn_shadow_vars,
265−warn_unused_import,warn_unused_vars,warnings_as_errors,
266−{i,"/tmp/nix-build-ibrowse-4.2.2.drv-0/hex-source-ibrowse-4.2.2/_build/default/lib/ibrowse/include"}]
267−Exports:
268−add_config/1 send_req_direct/7
269−all_trace_off/0 set_dest/3
270−code_change/3 set_max_attempts/3
271−get_config_value/1 set_max_pipeline_size/3
272−get_config_value/2 set_max_sessions/3
273−get_metrics/0 show_dest_status/0
274−get_metrics/2 show_dest_status/1
275−handle_call/3 show_dest_status/2
276−handle_cast/2 spawn_link_worker_process/1
277−handle_info/2 spawn_link_worker_process/2
278−init/1 spawn_worker_process/1
279−module_info/0 spawn_worker_process/2
280−module_info/1 start/0
281−rescan_config/0 start_link/0
282−rescan_config/1 stop/0
283−send_req/3 stop_worker_process/1
284−send_req/4 stream_close/1
285−send_req/5 stream_next/1
286−send_req/6 terminate/2
287−send_req_direct/4 trace_off/0
288−send_req_direct/5 trace_off/2
289−send_req_direct/6 trace_on/0
290−trace_on/2
291−ok</computeroutput>
292−<prompt>2></prompt>
293−</screen>
294−
295− <para>
296− Notice the <literal>-A beamPackages.ibrowse.env</literal>. That is the key to this functionality.
297− </para>
298− </section>
299−
300124 <section xml:id="creating-a-shell">
301125 <title>Creating a Shell</title>
302126
303− <para>
304− Getting access to an environment often isn't enough to do real development. Usually, we need to create a <literal>shell.nix</literal> file and do our development inside of the environment specified therein. This file looks a lot like the packaging described above, except that <literal>src</literal> points to the project root and we call the package directly.
305− </para>
127+ <para>
128+ Usually, we need to create a <literal>shell.nix</literal> file and do our development inside of the environment specified therein. Just install your version of erlang and other interpreter, and then user your normal build tools.
129+ As an example with elixir:
130+ </para>
306131
307132<programlisting>
308133{ pkgs ? import "<nixpkgs"> {} }:
@@ -311,114 +136,24 @@ with pkgs;
311136
312137let
313138
314− f = { buildRebar3, ibrowse, jsx, erlware_commons }:
315− buildRebar3 {
316− name = "hex2nix";
317− version = "0.1.0";
318− src = ./.;
319− beamDeps = [ ibrowse jsx erlware_commons ];
320− };
321− drv = beamPackages.callPackage f {};
139+ elixir = beam.packages.erlangR22.elixir_1_9;
322140
323141in
142+mkShell {
143+ buildInputs = [ elixir ];
324144
325− drv
145+ ERL_INCLUDE_PATH="${erlang}/lib/erlang/usr/include";
146+}
326147</programlisting>
327148
328149 <section xml:id="building-in-a-shell">
329150 <title>Building in a Shell (for Mix Projects)</title>
330151
331− <para>
332− We can leverage the support of the derivation, irrespective of the build derivation, by calling the commands themselves.
333− </para>
334−
335−<programlisting>
336−# =============================================================================
337−# Variables
338−# =============================================================================
339−
340−NIX_TEMPLATES := "$(CURDIR)/nix-templates"
341−
342−TARGET := "$(PREFIX)"
343−
344−PROJECT_NAME := thorndyke
345−
346−NIXPKGS=../nixpkgs
347−NIX_PATH=nixpkgs=$(NIXPKGS)
348−NIX_SHELL=nix-shell -I "$(NIX_PATH)" --pure
349−# =============================================================================
350−# Rules
351−# =============================================================================
352−.PHONY= all test clean repl shell build test analyze configure install \
353− test-nix-install publish plt analyze
354−
355−all: build
356−
357−guard-%:
358− @ if [ "${${*}}" == "" ]; then \
359− echo "Environment variable $* not set"; \
360− exit 1; \
361− fi
362−
363−clean:
364− rm -rf _build
365− rm -rf .cache
366−
367−repl:
368− $(NIX_SHELL) --run "iex -pa './_build/prod/lib/*/ebin'"
369−
370−shell:
371− $(NIX_SHELL)
372−
373−configure:
374− $(NIX_SHELL) --command 'eval "$$configurePhase"'
375−
376−build: configure
377− $(NIX_SHELL) --command 'eval "$$buildPhase"'
378−
379−install:
380− $(NIX_SHELL) --command 'eval "$$installPhase"'
381−
382−test:
383− $(NIX_SHELL) --command 'mix test --no-start --no-deps-check'
384−
385−plt:
386− $(NIX_SHELL) --run "mix dialyzer.plt --no-deps-check"
387−
388−analyze: build plt
389− $(NIX_SHELL) --run "mix dialyzer --no-compile"
390−
391−</programlisting>
392−
393152 <para>
394153 Using a <literal>shell.nix</literal> as described (see <xref
395− linkend="creating-a-shell"/>) should just work. Aside from <literal>test</literal>, <literal>plt</literal>, and <literal>analyze</literal>, the Make targets work just fine for all of the build derivations.
154+ linkend="creating-a-shell"/>) should just work.
396155 </para>
397156 </section>
398157 </section>
399158 </section>
400−
401− <section xml:id="generating-packages-from-hex-with-hex2nix">
402− <title>Generating Packages from Hex with <literal>hex2nix</literal></title>
403−
404− <para>
405− Updating the <link xlink:href="https://hex.pm">Hex</link> package set requires <link
406− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link>. Given the path to the Erlang modules (usually <literal>pkgs/development/erlang-modules</literal>), it will dump a file called <literal>hex-packages.nix</literal>, containing all the packages that use a recognized build system in <link
407− xlink:href="https://hex.pm">Hex</link>. It can't be determined, however, whether every package is buildable.
408− </para>
409−
410− <para>
411− To make life easier for our users, try to build every <link
412− xlink:href="https://hex.pm">Hex</link> package and remove those that fail. To do that, simply run the following command in the root of your <literal>nixpkgs</literal> repository:
413− </para>
414−
415−<screen>
416−<prompt>$ </prompt>nix-build -A beamPackages
417−</screen>
418−
419− <para>
420− That will attempt to build every package in <literal>beamPackages</literal>. Then manually remove those that fail. Hopefully, someone will improve <link
421− xlink:href="https://github.com/erlang-nix/hex2nix">hex2nix</link> in the future to automate the process.
422− </para>
423− </section>
424159</section>
doc/languages-frameworks/emscripten.section.md+1−1
@@ -1,4 +1,4 @@
1−# User's Guide to Emscripten in Nixpkgs
1+# Emscripten
22
33[Emscripten](https://github.com/kripken/emscripten): An LLVM-to-JavaScript Compiler
44
doc/languages-frameworks/haskell.section.md+4−2
@@ -3,7 +3,7 @@ title: User's Guide for Haskell in Nixpkgs
33author: Peter Simons
44date: 2015-06-01
55---
6−# User's Guide to the Haskell Infrastructure
6+# Haskell
77
88
99## How to install Haskell packages
@@ -398,7 +398,9 @@ nix:
398398For more on how to write a `shell.nix` file see the below section. You'll need
399399to express a derivation. Note that Nixpkgs ships with a convenience wrapper
400400function around `mkDerivation` called `haskell.lib.buildStackProject` to help you
401−create this derivation in exactly the way Stack expects. All of the same inputs
401+create this derivation in exactly the way Stack expects. However for this to work
402+you need to disable the sandbox, which you can do by using `--option sandbox relaxed`
403+or `--option sandbox false` to the Nix command. All of the same inputs
402404as `mkDerivation` can be provided. For example, to build a Stack project that
403405including packages that link against a version of the R library compiled with
404406special options turned on:
doc/languages-frameworks/idris.section.md+1−1
@@ -1,4 +1,4 @@
1−# Idris packages
1+# Idris
22
33## Installing Idris
44
doc/languages-frameworks/index.xml+3−3
@@ -1,7 +1,7 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xi="http://www.w3.org/2001/XInclude"
33 xml:id="chap-language-support">
4− <title>Support for specific programming languages and frameworks</title>
4+ <title>Languages and frameworks</title>
55 <para>
66 The <link linkend="chap-stdenv">standard build environment</link> makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accomodated by overriding the appropriate phases of <literal>stdenv</literal>. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter.
77 </para>
@@ -9,6 +9,8 @@
99 <xi:include href="beam.xml" />
1010 <xi:include href="bower.xml" />
1111 <xi:include href="coq.xml" />
12+ <xi:include href="crystal.section.xml" />
13+ <xi:include href="emscripten.section.xml" />
1214 <xi:include href="gnome.xml" />
1315 <xi:include href="go.xml" />
1416 <xi:include href="haskell.section.xml" />
@@ -27,6 +29,4 @@
2729 <xi:include href="texlive.xml" />
2830 <xi:include href="titanium.section.xml" />
2931 <xi:include href="vim.section.xml" />
30− <xi:include href="emscripten.section.xml" />
31− <xi:include href="crystal.section.xml" />
3232</chapter>
doc/languages-frameworks/ios.section.md+11−1
@@ -1,7 +1,7 @@
11---
22title: iOS
33author: Sander van der Burg
4−date: 2018-11-18
4+date: 2019-11-10
55---
66# iOS
77
@@ -217,3 +217,13 @@ xcode.simulateApp {
217217
218218By providing the result of an `xcode.buildApp {}` function and configuring the
219219app bundle id, the app gets deployed automatically and started.
220+
221+Troubleshooting
222+---------------
223+In some rare cases, it may happen that after a failure, changes are not picked
224+up. Most likely, this is caused by a derived data cache that Xcode maintains.
225+To wipe it you can run:
226+
227+```bash
228+$ rm -rf ~/Library/Developer/Xcode/DerivedData
229+```
doc/languages-frameworks/node.section.md+2−2
@@ -1,5 +1,5 @@
1−Node.js packages
2−================
1+Node.js
2+=======
33The `pkgs/development/node-packages` folder contains a generated collection of
44[NPM packages](https://npmjs.com/) that can be installed with the Nix package
55manager.
doc/languages-frameworks/python.section.md+19−1
@@ -144,6 +144,24 @@ What's happening here?
1441442. Then we create a Python 3.5 environment with the `withPackages` function.
1451453. The `withPackages` function expects us to provide a function as an argument that takes the set of all python packages and returns a list of packages to include in the environment. Here, we select the packages `numpy` and `toolz` from the package set.
146146
147+To combine this with `mkShell` you can:
148+
149+```nix
150+with import <nixpkgs> {};
151+
152+let
153+ pythonEnv = python35.withPackages (ps: [
154+ ps.numpy
155+ ps.toolz
156+ ]);
157+in mkShell {
158+ buildInputs = [
159+ pythonEnv
160+ hello
161+ ];
162+}
163+```
164+
147165##### Execute command with `--run`
148166A convenient option with `nix-shell` is the `--run`
149167option, with which you can execute a command in the `nix-shell`. We can
@@ -593,7 +611,7 @@ as the interpreter unless overridden otherwise.
593611All parameters from `stdenv.mkDerivation` function are still supported. The following are specific to `buildPythonPackage`:
594612
595613* `catchConflicts ? true`: If `true`, abort package build if a package name appears more than once in dependency tree. Default is `true`.
596−* `disabled` ? false: If `true`, package is not build for the particular Python interpreter version.
614+* `disabled` ? false: If `true`, package is not built for the particular Python interpreter version.
597615* `dontWrapPythonPrograms ? false`: Skip wrapping of python programs.
598616* `permitUserSite ? false`: Skip setting the `PYTHONNOUSERSITE` environment variable in wrapped programs.
599617* `installFlags ? []`: A list of strings. Arguments to be passed to `pip install`. To pass options to `python setup.py install`, use `--install-option`. E.g., `installFlags=["--install-option='--cpp_implementation'"]`.
doc/languages-frameworks/r.section.md+2−2
@@ -1,5 +1,5 @@
1−R packages
2−==========
1+R
2+=
33
44## Installation
55
doc/languages-frameworks/rust.section.md+13−2
@@ -4,7 +4,7 @@ author: Matthias Beyer
44date: 2017-03-05
55---
66
7−# User's Guide to the Rust Infrastructure
7+# Rust
88
99To install the rust compiler and cargo put
1010
@@ -68,6 +68,17 @@ build-time.
6868When `verifyCargoDeps` is set to `true`, the build will also verify that the
6969`cargoSha256` is not out of date by comparing the `Cargo.lock` file in both the `cargoDeps` and `src`. Note that this option changes the value of `cargoSha256` since it also copies the `Cargo.lock` in it. To avoid breaking backward-compatibility this option is not enabled by default but hopefully will be in the future.
7070
71+### Building a crate for a different target
72+
73+To build your crate with a different cargo `--target` simply specify the `target` attribute:
74+
75+```nix
76+pkgs.rustPlatform.buildRustPackage {
77+ (...)
78+ target = "x86_64-fortanix-unknown-sgx";
79+}
80+```
81+
7182## Compiling Rust crates using Nix instead of Cargo
7283
7384### Simple operation
@@ -192,7 +203,7 @@ argument and returns a set that contains all attribute that should be
192203overwritten.
193204
194205For more complicated cases, such as when parts of the crate's
195−derivation depend on the the crate's version, the `attrs` argument of
206+derivation depend on the crate's version, the `attrs` argument of
196207the override above can be read, as in the following example, which
197208patches the derivation:
198209
doc/languages-frameworks/vim.section.md+1−1
@@ -3,7 +3,7 @@ title: User's Guide for Vim in Nixpkgs
33author: Marc Weber
44date: 2016-06-25
55---
6−# User's Guide to Vim Plugins/Addons/Bundles/Scripts in Nixpkgs
6+# Vim
77
88Both Neovim and Vim can be configured to include your favorite plugins
99and additional libraries.
doc/manual.xml+33−17
@@ -5,21 +5,37 @@
55 <subtitle>Version <xi:include href=".version" parse="text" />
66 </subtitle>
77 </info>
8− <xi:include href="introduction.chapter.xml" />
9− <xi:include href="quick-start.xml" />
10− <xi:include href="package-specific-user-notes.xml" />
11− <xi:include href="stdenv.xml" />
12− <xi:include href="multiple-output.xml" />
13− <xi:include href="cross-compilation.xml" />
14− <xi:include href="configuration.xml" />
15− <xi:include href="functions.xml" />
16− <xi:include href="meta.xml" />
17− <xi:include href="languages-frameworks/index.xml" />
18− <xi:include href="platform-notes.xml" />
19− <xi:include href="package-notes.xml" />
20− <xi:include href="overlays.xml" />
21− <xi:include href="coding-conventions.xml" />
22− <xi:include href="submitting-changes.xml" />
23− <xi:include href="reviewing-contributions.xml" />
24− <xi:include href="contributing.xml" />
8+ <xi:include href="preface.chapter.xml" />
9+ <part>
10+ <title>Using Nixpkgs</title>
11+ <xi:include href="using/configuration.xml" />
12+ <xi:include href="using/overlays.xml" />
13+ <xi:include href="using/overrides.xml" />
14+ <xi:include href="functions.xml" />
15+ </part>
16+ <part>
17+ <title>Standard environment</title>
18+ <xi:include href="stdenv/stdenv.xml" />
19+ <xi:include href="stdenv/meta.xml" />
20+ <xi:include href="stdenv/multiple-output.xml" />
21+ <xi:include href="stdenv/cross-compilation.xml" />
22+ <xi:include href="stdenv/platform-notes.xml" />
23+ </part>
24+ <part>
25+ <title>Builders</title>
26+ <xi:include href="builders/fetchers.xml" />
27+ <xi:include href="builders/trivial-builders.xml" />
28+ <xi:include href="builders/special.xml" />
29+ <xi:include href="builders/images.xml" />
30+ <xi:include href="languages-frameworks/index.xml" />
31+ <xi:include href="builders/packages/index.xml" />
32+ </part>
33+ <part>
34+ <title>Contributing to Nixpkgs</title>
35+ <xi:include href="contributing/quick-start.xml" />
36+ <xi:include href="contributing/coding-conventions.xml" />
37+ <xi:include href="contributing/submitting-changes.xml" />
38+ <xi:include href="contributing/reviewing-contributions.xml" />
39+ <xi:include href="contributing/contributing-to-documentation.xml" />
40+ </part>
2541</book>
doc/package-notes.xmldeleted−422
@@ -1,422 +0,0 @@
1−<chapter xmlns="http://docbook.org/ns/docbook"
2− xmlns:xlink="http://www.w3.org/1999/xlink"
3− xml:id="chap-package-notes">
4− <title>Package Notes</title>
5− <para>
6− This chapter contains information about how to use and maintain the Nix expressions for a number of specific packages, such as the Linux kernel or X.org.
7− </para>
8−<!--============================================================-->
9− <section xml:id="sec-linux-kernel">
10− <title>Linux kernel</title>
11−
12− <para>
13− The Nix expressions to build the Linux kernel are in <link
14−xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel"><filename>pkgs/os-specific/linux/kernel</filename></link>.
15− </para>
16−
17− <para>
18− The function that builds the kernel has an argument <varname>kernelPatches</varname> which should be a list of <literal>{name, patch, extraConfig}</literal> attribute sets, where <varname>name</varname> is the name of the patch (which is included in the kernel’s <varname>meta.description</varname> attribute), <varname>patch</varname> is the patch itself (possibly compressed), and <varname>extraConfig</varname> (optional) is a string specifying extra options to be concatenated to the kernel configuration file (<filename>.config</filename>).
19− </para>
20−
21− <para>
22− The kernel derivation exports an attribute <varname>features</varname> specifying whether optional functionality is or isn’t enabled. This is used in NixOS to implement kernel-specific behaviour. For instance, if the kernel has the <varname>iwlwifi</varname> feature (i.e. has built-in support for Intel wireless chipsets), then NixOS doesn’t have to build the external <varname>iwlwifi</varname> package:
23−<programlisting>
24−modulesTree = [kernel]
25− ++ pkgs.lib.optional (!kernel.features ? iwlwifi) kernelPackages.iwlwifi
26− ++ ...;
27−</programlisting>
28− </para>
29−
30− <para>
31− How to add a new (major) version of the Linux kernel to Nixpkgs:
32− <orderedlist>
33− <listitem>
34− <para>
35− Copy the old Nix expression (e.g. <filename>linux-2.6.21.nix</filename>) to the new one (e.g. <filename>linux-2.6.22.nix</filename>) and update it.
36− </para>
37− </listitem>
38− <listitem>
39− <para>
40− Add the new kernel to <filename>all-packages.nix</filename> (e.g., create an attribute <varname>kernel_2_6_22</varname>).
41− </para>
42− </listitem>
43− <listitem>
44− <para>
45− Now we’re going to update the kernel configuration. First unpack the kernel. Then for each supported platform (<literal>i686</literal>, <literal>x86_64</literal>, <literal>uml</literal>) do the following:
46− <orderedlist>
47− <listitem>
48− <para>
49− Make an copy from the old config (e.g. <filename>config-2.6.21-i686-smp</filename>) to the new one (e.g. <filename>config-2.6.22-i686-smp</filename>).
50− </para>
51− </listitem>
52− <listitem>
53− <para>
54− Copy the config file for this platform (e.g. <filename>config-2.6.22-i686-smp</filename>) to <filename>.config</filename> in the kernel source tree.
55− </para>
56− </listitem>
57− <listitem>
58− <para>
59− Run <literal>make oldconfig ARCH=<replaceable>{i386,x86_64,um}</replaceable></literal> and answer all questions. (For the uml configuration, also add <literal>SHELL=bash</literal>.) Make sure to keep the configuration consistent between platforms (i.e. don’t enable some feature on <literal>i686</literal> and disable it on <literal>x86_64</literal>).
60− </para>
61− </listitem>
62− <listitem>
63− <para>
64− If needed you can also run <literal>make menuconfig</literal>:
65−<screen>
66−<prompt>$ </prompt>nix-env -i ncurses
67−<prompt>$ </prompt>export NIX_CFLAGS_LINK=-lncurses
68−<prompt>$ </prompt>make menuconfig ARCH=<replaceable>arch</replaceable></screen>
69− </para>
70− </listitem>
71− <listitem>
72− <para>
73− Copy <filename>.config</filename> over the new config file (e.g. <filename>config-2.6.22-i686-smp</filename>).
74− </para>
75− </listitem>
76− </orderedlist>
77− </para>
78− </listitem>
79− <listitem>
80− <para>
81− Test building the kernel: <literal>nix-build -A kernel_2_6_22</literal>. If it compiles, ship it! For extra credit, try booting NixOS with it.
82− </para>
83− </listitem>
84− <listitem>
85− <para>
86− It may be that the new kernel requires updating the external kernel modules and kernel-dependent packages listed in the <varname>linuxPackagesFor</varname> function in <filename>all-packages.nix</filename> (such as the NVIDIA drivers, AUFS, etc.). If the updated packages aren’t backwards compatible with older kernels, you may need to keep the older versions around.
87− </para>
88− </listitem>
89− </orderedlist>
90− </para>
91− </section>
92−<!--============================================================-->
93− <section xml:id="sec-xorg">
94− <title>X.org</title>
95−
96− <para>
97− The Nix expressions for the X.org packages reside in <filename>pkgs/servers/x11/xorg/default.nix</filename>. This file is automatically generated from lists of tarballs in an X.org release. As such it should not be modified directly; rather, you should modify the lists, the generator script or the file <filename>pkgs/servers/x11/xorg/overrides.nix</filename>, in which you can override or add to the derivations produced by the generator.
98− </para>
99−
100− <para>
101− The generator is invoked as follows:
102−<screen>
103−<prompt>$ </prompt>cd pkgs/servers/x11/xorg
104−<prompt>$ </prompt>cat tarballs-7.5.list extra.list old.list \
105− | perl ./generate-expr-from-tarballs.pl
106−</screen>
107− For each of the tarballs in the <filename>.list</filename> files, the script downloads it, unpacks it, and searches its <filename>configure.ac</filename> and <filename>*.pc.in</filename> files for dependencies. This information is used to generate <filename>default.nix</filename>. The generator caches downloaded tarballs between runs. Pay close attention to the <literal>NOT FOUND: <replaceable>name</replaceable></literal> messages at the end of the run, since they may indicate missing dependencies. (Some might be optional dependencies, however.)
108− </para>
109−
110− <para>
111− A file like <filename>tarballs-7.5.list</filename> contains all tarballs in a X.org release. It can be generated like this:
112−<screen>
113−<prompt>$ </prompt>export i="mirror://xorg/X11R7.4/src/everything/"
114−<prompt>$ </prompt>cat $(PRINT_PATH=1 nix-prefetch-url $i | tail -n 1) \
115− | perl -e 'while (<>) { if (/(href|HREF)="([^"]*.bz2)"/) { print "$ENV{'i'}$2\n"; }; }' \
116− | sort > tarballs-7.4.list
117−</screen>
118− <filename>extra.list</filename> contains libraries that aren’t part of X.org proper, but are closely related to it, such as <literal>libxcb</literal>. <filename>old.list</filename> contains some packages that were removed from X.org, but are still needed by some people or by other packages (such as <varname>imake</varname>).
119− </para>
120−
121− <para>
122− If the expression for a package requires derivation attributes that the generator cannot figure out automatically (say, <varname>patches</varname> or a <varname>postInstall</varname> hook), you should modify <filename>pkgs/servers/x11/xorg/overrides.nix</filename>.
123− </para>
124− </section>
125−<!--============================================================-->
126−<!--
127−<section xml:id="sec-package-notes-gnome">
128− <title>Gnome</title>
129− <para>* Expression is auto-generated</para>
130− <para>* How to update</para>
131−</section>
132−-->
133−<!--============================================================-->
134−<!--
135−<section xml:id="sec-package-notes-gcc">
136− <title>GCC</title>
137− <para>…</para>
138−</section>
139−-->
140−<!--============================================================-->
141− <section xml:id="sec-eclipse">
142− <title>Eclipse</title>
143−
144− <para>
145− The Nix expressions related to the Eclipse platform and IDE are in <link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/eclipse"><filename>pkgs/applications/editors/eclipse</filename></link>.
146− </para>
147−
148− <para>
149− Nixpkgs provides a number of packages that will install Eclipse in its various forms. These range from the bare-bones Eclipse Platform to the more fully featured Eclipse SDK or Scala-IDE packages and multiple version are often available. It is possible to list available Eclipse packages by issuing the command:
150−<screen>
151−<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses --description
152−</screen>
153− Once an Eclipse variant is installed it can be run using the <command>eclipse</command> command, as expected. From within Eclipse it is then possible to install plugins in the usual manner by either manually specifying an Eclipse update site or by installing the Marketplace Client plugin and using it to discover and install other plugins. This installation method provides an Eclipse installation that closely resemble a manually installed Eclipse.
154− </para>
155−
156− <para>
157− If you prefer to install plugins in a more declarative manner then Nixpkgs also offer a number of Eclipse plugins that can be installed in an <emphasis>Eclipse environment</emphasis>. This type of environment is created using the function <varname>eclipseWithPlugins</varname> found inside the <varname>nixpkgs.eclipses</varname> attribute set. This function takes as argument <literal>{ eclipse, plugins ? [], jvmArgs ? [] }</literal> where <varname>eclipse</varname> is a one of the Eclipse packages described above, <varname>plugins</varname> is a list of plugin derivations, and <varname>jvmArgs</varname> is a list of arguments given to the JVM running the Eclipse. For example, say you wish to install the latest Eclipse Platform with the popular Eclipse Color Theme plugin and also allow Eclipse to use more RAM. You could then add
158−<screen>
159−packageOverrides = pkgs: {
160− myEclipse = with pkgs.eclipses; eclipseWithPlugins {
161− eclipse = eclipse-platform;
162− jvmArgs = [ "-Xmx2048m" ];
163− plugins = [ plugins.color-theme ];
164− };
165−}
166−</screen>
167− to your Nixpkgs configuration (<filename>~/.config/nixpkgs/config.nix</filename>) and install it by running <command>nix-env -f '<nixpkgs>' -iA myEclipse</command> and afterward run Eclipse as usual. It is possible to find out which plugins are available for installation using <varname>eclipseWithPlugins</varname> by running
168−<screen>
169−<prompt>$ </prompt>nix-env -f '<nixpkgs>' -qaP -A eclipses.plugins --description
170−</screen>
171− </para>
172−
173− <para>
174− If there is a need to install plugins that are not available in Nixpkgs then it may be possible to define these plugins outside Nixpkgs using the <varname>buildEclipseUpdateSite</varname> and <varname>buildEclipsePlugin</varname> functions found in the <varname>nixpkgs.eclipses.plugins</varname> attribute set. Use the <varname>buildEclipseUpdateSite</varname> function to install a plugin distributed as an Eclipse update site. This function takes <literal>{ name, src }</literal> as argument where <literal>src</literal> indicates the Eclipse update site archive. All Eclipse features and plugins within the downloaded update site will be installed. When an update site archive is not available then the <varname>buildEclipsePlugin</varname> function can be used to install a plugin that consists of a pair of feature and plugin JARs. This function takes an argument <literal>{ name, srcFeature, srcPlugin }</literal> where <literal>srcFeature</literal> and <literal>srcPlugin</literal> are the feature and plugin JARs, respectively.
175− </para>
176−
177− <para>
178− Expanding the previous example with two plugins using the above functions we have
179−<screen>
180−packageOverrides = pkgs: {
181− myEclipse = with pkgs.eclipses; eclipseWithPlugins {
182− eclipse = eclipse-platform;
183− jvmArgs = [ "-Xmx2048m" ];
184− plugins = [
185− plugins.color-theme
186− (plugins.buildEclipsePlugin {
187− name = "myplugin1-1.0";
188− srcFeature = fetchurl {
189− url = "http://…/features/myplugin1.jar";
190− sha256 = "123…";
191− };
192− srcPlugin = fetchurl {
193− url = "http://…/plugins/myplugin1.jar";
194− sha256 = "123…";
195− };
196− });
197− (plugins.buildEclipseUpdateSite {
198− name = "myplugin2-1.0";
199− src = fetchurl {
200− stripRoot = false;
201− url = "http://…/myplugin2.zip";
202− sha256 = "123…";
203− };
204− });
205− ];
206− };
207−}
208−</screen>
209− </para>
210− </section>
211− <section xml:id="sec-elm">
212− <title>Elm</title>
213−
214− <para>
215− To start a development environment do <command>nix-shell -p elmPackages.elm elmPackages.elm-format</command>
216− </para>
217−
218− <para>
219− To update Elm compiler, see <filename>nixpkgs/pkgs/development/compilers/elm/README.md</filename>.
220− </para>
221−
222− <para>
223− To package Elm applications, <link xlink:href="https://github.com/hercules-ci/elm2nix#elm2nix">read about elm2nix</link>.
224− </para>
225− </section>
226− <section xml:id="sec-kakoune">
227− <title>Kakoune</title>
228−
229− <para>
230− Kakoune can be built to autoload plugins:
231−<programlisting>(kakoune.override {
232− configure = {
233− plugins = with pkgs.kakounePlugins; [ parinfer-rust ];
234− };
235−})</programlisting>
236− </para>
237− </section>
238− <section xml:id="sec-shell-helpers">
239− <title>Interactive shell helpers</title>
240−
241− <para>
242− Some packages provide the shell integration to be more useful. But unlike other systems, nix doesn't have a standard share directory location. This is why a bunch <command>PACKAGE-share</command> scripts are shipped that print the location of the corresponding shared folder. Current list of such packages is as following:
243− <itemizedlist>
244− <listitem>
245− <para>
246− <literal>autojump</literal>: <command>autojump-share</command>
247− </para>
248− </listitem>
249− <listitem>
250− <para>
251− <literal>fzf</literal>: <command>fzf-share</command>
252− </para>
253− </listitem>
254− </itemizedlist>
255− E.g. <literal>autojump</literal> can then used in the .bashrc like this:
256−<screen>
257− source "$(autojump-share)/autojump.bash"
258−</screen>
259− </para>
260− </section>
261− <section xml:id="sec-weechat">
262− <title>Weechat</title>
263−
264− <para>
265− Weechat can be configured to include your choice of plugins, reducing its closure size from the default configuration which includes all available plugins. To make use of this functionality, install an expression that overrides its configuration such as
266−<programlisting>weechat.override {configure = {availablePlugins, ...}: {
267− plugins = with availablePlugins; [ python perl ];
268− }
269−}</programlisting>
270− If the <literal>configure</literal> function returns an attrset without the <literal>plugins</literal> attribute, <literal>availablePlugins</literal> will be used automatically.
271− </para>
272−
273− <para>
274− The plugins currently available are <literal>python</literal>, <literal>perl</literal>, <literal>ruby</literal>, <literal>guile</literal>, <literal>tcl</literal> and <literal>lua</literal>.
275− </para>
276−
277− <para>
278− The python and perl plugins allows the addition of extra libraries. For instance, the <literal>inotify.py</literal> script in weechat-scripts requires D-Bus or libnotify, and the <literal>fish.py</literal> script requires pycrypto. To use these scripts, use the plugin's <literal>withPackages</literal> attribute:
279−<programlisting>weechat.override { configure = {availablePlugins, ...}: {
280− plugins = with availablePlugins; [
281− (python.withPackages (ps: with ps; [ pycrypto python-dbus ]))
282− ];
283− };
284−}
285−</programlisting>
286− </para>
287−
288− <para>
289− In order to also keep all default plugins installed, it is possible to use the following method:
290−<programlisting>weechat.override { configure = { availablePlugins, ... }: {
291− plugins = builtins.attrValues (availablePlugins // {
292− python = availablePlugins.python.withPackages (ps: with ps; [ pycrypto python-dbus ]);
293− });
294−}; }
295−</programlisting>
296− </para>
297−
298− <para>
299− WeeChat allows to set defaults on startup using the <literal>--run-command</literal>. The <literal>configure</literal> method can be used to pass commands to the program:
300−<programlisting>weechat.override {
301− configure = { availablePlugins, ... }: {
302− init = ''
303− /set foo bar
304− /server add freenode chat.freenode.org
305− '';
306− };
307−}</programlisting>
308− Further values can be added to the list of commands when running <literal>weechat --run-command "your-commands"</literal>.
309− </para>
310−
311− <para>
312− Additionally it's possible to specify scripts to be loaded when starting <literal>weechat</literal>. These will be loaded before the commands from <literal>init</literal>:
313−<programlisting>weechat.override {
314− configure = { availablePlugins, ... }: {
315− scripts = with pkgs.weechatScripts; [
316− weechat-xmpp weechat-matrix-bridge wee-slack
317− ];
318− init = ''
319− /set plugins.var.python.jabber.key "val"
320− '':
321− };
322−}</programlisting>
323− </para>
324−
325− <para>
326− In <literal>nixpkgs</literal> there's a subpackage which contains derivations for WeeChat scripts. Such derivations expect a <literal>passthru.scripts</literal> attribute which contains a list of all scripts inside the store path. Furthermore all scripts have to live in <literal>$out/share</literal>. An exemplary derivation looks like this:
327−<programlisting>{ stdenv, fetchurl }:
328−
329−stdenv.mkDerivation {
330− name = "exemplary-weechat-script";
331− src = fetchurl {
332− url = "https://scripts.tld/your-scripts.tar.gz";
333− sha256 = "...";
334− };
335− passthru.scripts = [ "foo.py" "bar.lua" ];
336− installPhase = ''
337− mkdir $out/share
338− cp foo.py $out/share
339− cp bar.lua $out/share
340− '';
341−}</programlisting>
342− </para>
343− </section>
344− <section xml:id="sec-ibus-typing-booster">
345− <title>ibus-engines.typing-booster</title>
346−
347− <para>
348− This package is an ibus-based completion method to speed up typing.
349− </para>
350−
351− <section xml:id="sec-ibus-typing-booster-activate">
352− <title>Activating the engine</title>
353−
354− <para>
355− IBus needs to be configured accordingly to activate <literal>typing-booster</literal>. The configuration depends on the desktop manager in use. For detailed instructions, please refer to the <link xlink:href="https://mike-fabian.github.io/ibus-typing-booster/documentation.html">upstream docs</link>.
356− </para>
357−
358− <para>
359− On NixOS you need to explicitly enable <literal>ibus</literal> with given engines before customizing your desktop to use <literal>typing-booster</literal>. This can be achieved using the <literal>ibus</literal> module:
360−<programlisting>{ pkgs, ... }: {
361− i18n.inputMethod = {
362− enabled = "ibus";
363− ibus.engines = with pkgs.ibus-engines; [ typing-booster ];
364− };
365−}</programlisting>
366− </para>
367− </section>
368−
369− <section xml:id="sec-ibus-typing-booster-customize-hunspell">
370− <title>Using custom hunspell dictionaries</title>
371−
372− <para>
373− The IBus engine is based on <literal>hunspell</literal> to support completion in many languages. By default the dictionaries <literal>de-de</literal>, <literal>en-us</literal>, <literal>fr-moderne</literal> <literal>es-es</literal>, <literal>it-it</literal>, <literal>sv-se</literal> and <literal>sv-fi</literal> are in use. To add another dictionary, the package can be overridden like this:
374−<programlisting>ibus-engines.typing-booster.override {
375− langs = [ "de-at" "en-gb" ];
376−}</programlisting>
377− </para>
378−
379− <para>
380− <emphasis>Note: each language passed to <literal>langs</literal> must be an attribute name in <literal>pkgs.hunspellDicts</literal>.</emphasis>
381− </para>
382− </section>
383−
384− <section xml:id="sec-ibus-typing-booster-emoji-picker">
385− <title>Built-in emoji picker</title>
386−
387− <para>
388− The <literal>ibus-engines.typing-booster</literal> package contains a program named <literal>emoji-picker</literal>. To display all emojis correctly, a special font such as <literal>noto-fonts-emoji</literal> is needed:
389− </para>
390−
391− <para>
392− On NixOS it can be installed using the following expression:
393−<programlisting>{ pkgs, ... }: {
394− fonts.fonts = with pkgs; [ noto-fonts-emoji ];
395−}</programlisting>
396− </para>
397− </section>
398− </section>
399− <section xml:id="sec-nginx">
400− <title>Nginx</title>
401−
402− <para>
403− <link xlink:href="https://nginx.org/">Nginx</link> is a reverse proxy and lightweight webserver.
404− </para>
405−
406− <section xml:id="sec-nginx-etag">
407− <title>ETags on static files served from the Nix store</title>
408−
409− <para>
410− HTTP has a couple different mechanisms for caching to prevent clients from having to download the same content repeatedly if a resource has not changed since the last time it was requested. When nginx is used as a server for static files, it implements the caching mechanism based on the <link xlink:href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"><literal>Last-Modified</literal></link> response header automatically; unfortunately, it works by using filesystem timestamps to determine the value of the <literal>Last-Modified</literal> header. This doesn't give the desired behavior when the file is in the Nix store, because all file timestamps are set to 0 (for reasons related to build reproducibility).
411− </para>
412−
413− <para>
414− Fortunately, HTTP supports an alternative (and more effective) caching mechanism: the <link xlink:href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"><literal>ETag</literal></link> response header. The value of the <literal>ETag</literal> header specifies some identifier for the particular content that the server is sending (e.g. a hash). When a client makes a second request for the same resource, it sends that value back in an <literal>If-None-Match</literal> header. If the ETag value is unchanged, then the server does not need to resend the content.
415− </para>
416−
417− <para>
418− As of NixOS 19.09, the nginx package in Nixpkgs is patched such that when nginx serves a file out of <filename>/nix/store</filename>, the hash in the store path is used as the <literal>ETag</literal> header in the HTTP response, thus providing proper caching functionality. This happens automatically; you do not need to do modify any configuration to get this behavior.
419− </para>
420− </section>
421− </section>
422−</chapter>
doc/package-specific-user-notes.xmldeleted−357
@@ -1,357 +0,0 @@
1−<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="package-specific-user-notes">
2− <title>Package-specific usage notes</title>
3− <para>
4− These chapters includes some notes that apply to specific packages and should answer some of the frequently asked questions related to Nixpkgs use. Some useful information related to package use can be found in <link linkend="chap-package-notes">package-specific development notes</link>.
5− </para>
6− <section xml:id="opengl">
7− <title>OpenGL</title>
8−
9− <para>
10− Packages that use OpenGL have NixOS desktop as their primary target. The current solution for loading the GPU-specific drivers is based on <literal>libglvnd</literal> and looks for the driver implementation in <literal>LD_LIBRARY_PATH</literal>. If you are using a non-NixOS GNU/Linux/X11 desktop with free software video drivers, consider launching OpenGL-dependent programs from Nixpkgs with Nixpkgs versions of <literal>libglvnd</literal> and <literal>mesa_drivers</literal> in <literal>LD_LIBRARY_PATH</literal>. For proprietary video drivers you might have luck with also adding the corresponding video driver package.
11− </para>
12− </section>
13− <section xml:id="locales">
14− <title>Locales</title>
15−
16− <para>
17− To allow simultaneous use of packages linked against different versions of <literal>glibc</literal> with different locale archive formats Nixpkgs patches <literal>glibc</literal> to rely on <literal>LOCALE_ARCHIVE</literal> environment variable.
18− </para>
19−
20− <para>
21− On non-NixOS distributions this variable is obviously not set. This can cause regressions in language support or even crashes in some Nixpkgs-provided programs. The simplest way to mitigate this problem is exporting the <literal>LOCALE_ARCHIVE</literal> variable pointing to <literal>${glibcLocales}/lib/locale/locale-archive</literal>. The drawback (and the reason this is not the default) is the relatively large (a hundred MiB) size of the full set of locales. It is possible to build a custom set of locales by overriding parameters <literal>allLocales</literal> and <literal>locales</literal> of the package.
22− </para>
23− </section>
24− <section xml:id="sec-emacs">
25− <title>Emacs</title>
26−
27− <section xml:id="sec-emacs-config">
28− <title>Configuring Emacs</title>
29−
30− <para>
31− The Emacs package comes with some extra helpers to make it easier to configure. <varname>emacsWithPackages</varname> allows you to manage packages from ELPA. This means that you will not have to install that packages from within Emacs. For instance, if you wanted to use <literal>company</literal>, <literal>counsel</literal>, <literal>flycheck</literal>, <literal>ivy</literal>, <literal>magit</literal>, <literal>projectile</literal>, and <literal>use-package</literal> you could use this as a <filename>~/.config/nixpkgs/config.nix</filename> override:
32− </para>
33−
34−<screen>
35−{
36− packageOverrides = pkgs: with pkgs; {
37− myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
38− company
39− counsel
40− flycheck
41− ivy
42− magit
43− projectile
44− use-package
45− ]));
46− }
47−}
48−</screen>
49−
50− <para>
51− You can install it like any other packages via <command>nix-env -iA myEmacs</command>. However, this will only install those packages. It will not <literal>configure</literal> them for us. To do this, we need to provide a configuration file. Luckily, it is possible to do this from within Nix! By modifying the above example, we can make Emacs load a custom config file. The key is to create a package that provide a <filename>default.el</filename> file in <filename>/share/emacs/site-start/</filename>. Emacs knows to load this file automatically when it starts.
52− </para>
53−
54−<screen>
55−{
56− packageOverrides = pkgs: with pkgs; rec {
57− myEmacsConfig = writeText "default.el" ''
58−;; initialize package
59−
60−(require 'package)
61−(package-initialize 'noactivate)
62−(eval-when-compile
63− (require 'use-package))
64−
65−;; load some packages
66−
67−(use-package company
68− :bind ("<C-tab>" . company-complete)
69− :diminish company-mode
70− :commands (company-mode global-company-mode)
71− :defer 1
72− :config
73− (global-company-mode))
74−
75−(use-package counsel
76− :commands (counsel-descbinds)
77− :bind (([remap execute-extended-command] . counsel-M-x)
78− ("C-x C-f" . counsel-find-file)
79− ("C-c g" . counsel-git)
80− ("C-c j" . counsel-git-grep)
81− ("C-c k" . counsel-ag)
82− ("C-x l" . counsel-locate)
83− ("M-y" . counsel-yank-pop)))
84−
85−(use-package flycheck
86− :defer 2
87− :config (global-flycheck-mode))
88−
89−(use-package ivy
90− :defer 1
91− :bind (("C-c C-r" . ivy-resume)
92− ("C-x C-b" . ivy-switch-buffer)
93− :map ivy-minibuffer-map
94− ("C-j" . ivy-call))
95− :diminish ivy-mode
96− :commands ivy-mode
97− :config
98− (ivy-mode 1))
99−
100−(use-package magit
101− :defer
102− :if (executable-find "git")
103− :bind (("C-x g" . magit-status)
104− ("C-x G" . magit-dispatch-popup))
105− :init
106− (setq magit-completing-read-function 'ivy-completing-read))
107−
108−(use-package projectile
109− :commands projectile-mode
110− :bind-keymap ("C-c p" . projectile-command-map)
111− :defer 5
112− :config
113− (projectile-global-mode))
114− '';
115− myEmacs = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
116− (runCommand "default.el" {} ''
117−mkdir -p $out/share/emacs/site-lisp
118−cp ${myEmacsConfig} $out/share/emacs/site-lisp/default.el
119−'')
120− company
121− counsel
122− flycheck
123− ivy
124− magit
125− projectile
126− use-package
127− ]));
128− };
129−}
130−</screen>
131−
132− <para>
133− This provides a fairly full Emacs start file. It will load in addition to the user's presonal config. You can always disable it by passing <command>-q</command> to the Emacs command.
134− </para>
135−
136− <para>
137− Sometimes <varname>emacsWithPackages</varname> is not enough, as this package set has some priorities imposed on packages (with the lowest priority assigned to Melpa Unstable, and the highest for packages manually defined in <filename>pkgs/top-level/emacs-packages.nix</filename>). But you can't control this priorities when some package is installed as a dependency. You can override it on per-package-basis, providing all the required dependencies manually - but it's tedious and there is always a possibility that an unwanted dependency will sneak in through some other package. To completely override such a package you can use <varname>overrideScope'</varname>.
138− </para>
139−
140−<screen>
141−overrides = self: super: rec {
142− haskell-mode = self.melpaPackages.haskell-mode;
143− ...
144−};
145−((emacsPackagesGen emacs).overrideScope' overrides).emacsWithPackages (p: with p; [
146− # here both these package will use haskell-mode of our own choice
147− ghc-mod
148− dante
149−])
150−</screen>
151− </section>
152− </section>
153− <section xml:id="dlib">
154− <title>DLib</title>
155−
156− <para>
157− <link xlink:href="http://dlib.net/">DLib</link> is a modern, C++-based toolkit which provides several machine learning algorithms.
158− </para>
159−
160− <section xml:id="compiling-without-avx-support">
161− <title>Compiling without AVX support</title>
162−
163− <para>
164− Especially older CPUs don't support <link xlink:href="https://en.wikipedia.org/wiki/Advanced_Vector_Extensions">AVX</link> (<abbrev>Advanced Vector Extensions</abbrev>) instructions that are used by DLib to optimize their algorithms.
165− </para>
166−
167− <para>
168− On the affected hardware errors like <literal>Illegal instruction</literal> will occur. In those cases AVX support needs to be disabled:
169−<programlisting>self: super: {
170− dlib = super.dlib.override { avxSupport = false; };
171−}</programlisting>
172− </para>
173− </section>
174− </section>
175− <section xml:id="unfree-software">
176− <title>Unfree software</title>
177−
178− <para>
179− All users of Nixpkgs are free software users, and many users (and developers) of Nixpkgs want to limit and tightly control their exposure to unfree software. At the same time, many users need (or want) to run some specific pieces of proprietary software. Nixpkgs includes some expressions for unfree software packages. By default unfree software cannot be installed and doesn’t show up in searches. To allow installing unfree software in a single Nix invocation one can export <literal>NIXPKGS_ALLOW_UNFREE=1</literal>. For a persistent solution, users can set <literal>allowUnfree</literal> in the Nixpkgs configuration.
180− </para>
181−
182− <para>
183− Fine-grained control is possible by defining <literal>allowUnfreePredicate</literal> function in config; it takes the <literal>mkDerivation</literal> parameter attrset and returns <literal>true</literal> for unfree packages that should be allowed.
184− </para>
185− </section>
186− <section xml:id="sec-steam">
187− <title>Steam</title>
188−
189− <section xml:id="sec-steam-nix">
190− <title>Steam in Nix</title>
191−
192− <para>
193− Steam is distributed as a <filename>.deb</filename> file, for now only as an i686 package (the amd64 package only has documentation). When unpacked, it has a script called <filename>steam</filename> that in Ubuntu (their target distro) would go to <filename>/usr/bin </filename>. When run for the first time, this script copies some files to the user's home, which include another script that is the ultimate responsible for launching the steam binary, which is also in $HOME.
194− </para>
195−
196− <para>
197− Nix problems and constraints:
198− <itemizedlist>
199− <listitem>
200− <para>
201− We don't have <filename>/bin/bash</filename> and many scripts point there. Similarly for <filename>/usr/bin/python</filename> .
202− </para>
203− </listitem>
204− <listitem>
205− <para>
206− We don't have the dynamic loader in <filename>/lib </filename>.
207− </para>
208− </listitem>
209− <listitem>
210− <para>
211− The <filename>steam.sh</filename> script in $HOME can not be patched, as it is checked and rewritten by steam.
212− </para>
213− </listitem>
214− <listitem>
215− <para>
216− The steam binary cannot be patched, it's also checked.
217− </para>
218− </listitem>
219− </itemizedlist>
220− </para>
221−
222− <para>
223− The current approach to deploy Steam in NixOS is composing a FHS-compatible chroot environment, as documented <link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>. This allows us to have binaries in the expected paths without disrupting the system, and to avoid patching them to work in a non FHS environment.
224− </para>
225− </section>
226−
227− <section xml:id="sec-steam-play">
228− <title>How to play</title>
229−
230− <para>
231− For 64-bit systems it's important to have
232−<programlisting>hardware.opengl.driSupport32Bit = true;</programlisting>
233− in your <filename>/etc/nixos/configuration.nix</filename>. You'll also need
234−<programlisting>hardware.pulseaudio.support32Bit = true;</programlisting>
235− if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add
236−<programlisting>hardware.steam-hardware.enable = true;</programlisting>
237− to your configuration.
238− </para>
239− </section>
240−
241− <section xml:id="sec-steam-troub">
242− <title>Troubleshooting</title>
243−
244− <para>
245− <variablelist>
246− <varlistentry>
247− <term>
248− Steam fails to start. What do I do?
249− </term>
250− <listitem>
251− <para>
252− Try to run
253−<programlisting>strace steam</programlisting>
254− to see what is causing steam to fail.
255− </para>
256− </listitem>
257− </varlistentry>
258− <varlistentry>
259− <term>
260− Using the FOSS Radeon or nouveau (nvidia) drivers
261− </term>
262− <listitem>
263− <itemizedlist>
264− <listitem>
265− <para>
266− The <literal>newStdcpp</literal> parameter was removed since NixOS 17.09 and should not be needed anymore.
267− </para>
268− </listitem>
269− <listitem>
270− <para>
271− Steam ships statically linked with a version of libcrypto that conflics with the one dynamically loaded by radeonsi_dri.so. If you get the error
272−<programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
273− have a look at <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this pull request</link>.
274− </para>
275− </listitem>
276− </itemizedlist>
277− </listitem>
278− </varlistentry>
279− <varlistentry>
280− <term>
281− Java
282− </term>
283− <listitem>
284− <orderedlist>
285− <listitem>
286− <para>
287− There is no java in steam chrootenv by default. If you get a message like
288−<programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
289− You need to add
290−<programlisting> steam.override { withJava = true; };</programlisting>
291− to your configuration.
292− </para>
293− </listitem>
294− </orderedlist>
295− </listitem>
296− </varlistentry>
297− </variablelist>
298− </para>
299− </section>
300−
301− <section xml:id="sec-steam-run">
302− <title>steam-run</title>
303−
304− <para>
305− The FHS-compatible chroot used for steam can also be used to run other linux games that expect a FHS environment. To do it, add
306−<programlisting>pkgs.(steam.override {
307− nativeOnly = true;
308− newStdcpp = true;
309− }).run</programlisting>
310− to your configuration, rebuild, and run the game with
311−<programlisting>steam-run ./foo</programlisting>
312− </para>
313− </section>
314− </section>
315− <section xml:id="sec-citrix">
316− <title>Citrix Receiver & Citrix Workspace App</title>
317−
318− <para>
319− <note>
320− <para>
321− Please note that the <literal>citrix_receiver</literal> package has been deprecated since its development was <link xlink:href="https://docs.citrix.com/en-us/citrix-workspace-app.html">discontinued by upstream</link> and has been replaced by <link xlink:href="https://www.citrix.com/products/workspace-app/">the citrix workspace app</link>.
322− </para>
323− </note>
324− <link xlink:href="https://www.citrix.com/products/receiver/">Citrix Receiver</link> and <link xlink:href="https://www.citrix.com/products/workspace-app/">Citrix Workspace App</link> are a remote desktop viewers which provide access to <link xlink:href="https://www.citrix.com/products/xenapp-xendesktop/">XenDesktop</link> installations.
325− </para>
326−
327− <section xml:id="sec-citrix-base">
328− <title>Basic usage</title>
329−
330− <para>
331− The tarball archive needs to be downloaded manually as the license agreements of the vendor for <link xlink:href="https://www.citrix.com/downloads/citrix-receiver/">Citrix Receiver</link> or <link xlink:href="https://www.citrix.de/downloads/workspace-app/linux/workspace-app-for-linux-latest.html">Citrix Workspace</link> need to be accepted first. Then run <command>nix-prefetch-url file://$PWD/linuxx64-$version.tar.gz</command>. With the archive available in the store the package can be built and installed with Nix.
332− </para>
333−
334− <warning>
335− <title>Caution with <command>nix-shell</command> installs</title>
336− <para>
337− It's recommended to install <literal>Citrix Receiver</literal> and/or <literal>Citrix Workspace</literal> using <literal>nix-env -i</literal> or globally to ensure that the <literal>.desktop</literal> files are installed properly into <literal>$XDG_CONFIG_DIRS</literal>. Otherwise it won't be possible to open <literal>.ica</literal> files automatically from the browser to start a Citrix connection.
338− </para>
339− </warning>
340− </section>
341−
342− <section xml:id="sec-citrix-custom-certs">
343− <title>Custom certificates</title>
344−
345− <para>
346− The <literal>Citrix Workspace App</literal> in <literal>nixpkgs</literal> trust several certificates <link xlink:href="https://curl.haxx.se/docs/caextract.html">from the Mozilla database</link> by default. However several companies using Citrix might require their own corporate certificate. On distros with imperative packaging these certs can be stored easily in <link xlink:href="https://developer-docs.citrix.com/projects/receiver-for-linux-command-reference/en/13.7/"><literal>$ICAROOT</literal></link>, however this directory is a store path in <literal>nixpkgs</literal>. In order to work around this issue the package provides a simple mechanism to add custom certificates without rebuilding the entire package using <literal>symlinkJoin</literal>:
347−<programlisting>
348−<![CDATA[with import <nixpkgs> { config.allowUnfree = true; };
349−let extraCerts = [ ./custom-cert-1.pem ./custom-cert-2.pem /* ... */ ]; in
350−citrix_workspace.override {
351− inherit extraCerts;
352−}]]>
353−</programlisting>
354− </para>
355− </section>
356− </section>
357−</chapter>
doc/introduction.chapter.md → doc/preface.chapter.mdrenamed+14−13
@@ -1,44 +1,45 @@
11---
2−title: Introduction
2+title: Preface
33author: Frederik Rietdijk
44date: 2015-11-25
55---
66
7−# Introduction
7+# Preface
88
99The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the
10−[Nix package manager](http://nixos.org/nix/), released under a
10+[Nix package manager](https://nixos.org/nix/), released under a
1111[permissive MIT/X11 license](https://github.com/NixOS/nixpkgs/blob/master/COPYING).
1212Packages are available for several platforms, and can be used with the Nix
13−package manager on most GNU/Linux distributions as well as NixOS.
13+package manager on most GNU/Linux distributions as well as [NixOS](https://nixos.org/nixos).
1414
1515This manual primarily describes how to write packages for the Nix Packages collection
1616(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to
1717Nixpkgs. If you like to learn more about the Nix package manager and the Nix
18−expression language, then you are kindly referred to the [Nix manual](http://nixos.org/nix/manual/).
18+expression language, then you are kindly referred to the [Nix manual](https://nixos.org/nix/manual/).
19+The NixOS distribution is documented in the [NixOS manual](https://nixos.org/nixos/manual/).
1920
2021## Overview of Nixpkgs
2122
2223Nix expressions describe how to build packages from source and are collected in
2324the [nixpkgs repository](https://github.com/NixOS/nixpkgs). Also included in the
2425collection are Nix expressions for
25−[NixOS modules](http://nixos.org/nixos/manual/index.html#sec-writing-modules).
26+[NixOS modules](https://nixos.org/nixos/manual/index.html#sec-writing-modules).
2627With these expressions the Nix package manager can build binary packages.
2728
2829Packages, including the Nix packages collection, are distributed through
29−[channels](http://nixos.org/nix/manual/#sec-channels). The collection is
30+[channels](https://nixos.org/nix/manual/#sec-channels). The collection is
3031distributed for users of Nix on non-NixOS distributions through the channel
3132`nixpkgs`. Users of NixOS generally use one of the `nixos-*` channels, e.g.
32−`nixos-16.03`, which includes all packages and modules for the stable NixOS
33−16.03. Stable NixOS releases are generally only given
33+`nixos-19.09`, which includes all packages and modules for the stable NixOS
34+19.09. Stable NixOS releases are generally only given
3435security updates. More up to date packages and modules are available via the
3536`nixos-unstable` channel.
3637
3738Both `nixos-unstable` and `nixpkgs` follow the `master` branch of the Nixpkgs
3839repository, although both do lag the `master` branch by generally
39−[a couple of days](http://howoldis.herokuapp.com/). Updates to a channel are
40+[a couple of days](https://howoldis.herokuapp.com/). Updates to a channel are
4041distributed as soon as all tests for that channel pass, e.g.
41−[this table](http://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
42+[this table](https://hydra.nixos.org/job/nixpkgs/trunk/unstable#tabs-constituents)
4243shows the status of tests for the `nixpkgs` channel.
4344
4445The tests are conducted by a cluster called [Hydra](http://nixos.org/hydra/),
@@ -47,5 +48,5 @@ which also builds binary packages from the Nix expressions in Nixpkgs for
4748The binaries are made available via a [binary cache](https://cache.nixos.org).
4849
4950The current Nix expressions of the channels are available in the
50−[`nixpkgs-channels`](https://github.com/NixOS/nixpkgs-channels) repository,
51−which has branches corresponding to the available channels.
51+[`nixpkgs`](https://github.com/NixOS/nixpkgs) repository in branches
52+that correspond to the channel names (e.g. `nixos-19.09-small`).
doc/cross-compilation.xml → doc/stdenv/cross-compilation.xmlrenamed+2−2
@@ -348,12 +348,12 @@ nix-build '<nixpkgs>' --arg crossSystem '{ config = "<arch>-<os&g
348348 </para>
349349 </listitem>
350350 </orderedlist>
351− 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>.
351+ 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>.
352352 </para>
353353
354354 <note>
355355 <para>
356− 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.
356+ 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.
357357 </para>
358358 </note>
359359
doc/meta.xml → doc/stdenv/meta.xmlrenamed
The content is the same.
doc/multiple-output.xml → doc/stdenv/multiple-output.xmlrenamed
The content is the same.
doc/platform-notes.xml → doc/stdenv/platform-notes.xmlrenamed+1−1
@@ -1,6 +1,6 @@
11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
3− xml:id="chap-platform-nodes">
3+ xml:id="chap-platform-notes">
44 <title>Platform Notes</title>
55 <section xml:id="sec-darwin">
66 <title>Darwin (macOS)</title>
doc/stdenv.xml → doc/stdenv/stdenv.xmlrenamed
The content is the same.
doc/configuration.xml → doc/using/configuration.xmlrenamed+1−1
@@ -142,7 +142,7 @@
142142<programlisting>
143143{
144144 allowUnfreePredicate = (pkg: builtins.elem
145− (builtins.parseDrvName pkg.name).name [
145+ (pkg.pname or (builtins.parseDrvName pkg.name).name) [
146146 "flashplayer"
147147 "vscode"
148148 ]);
doc/overlays.xml → doc/using/overlays.xmlrenamed
The content is the same.
doc/functions/overrides.xml → doc/using/overrides.xmlrenamed+3−9
@@ -1,17 +1,14 @@
1−<section xmlns="http://docbook.org/ns/docbook"
1+<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
4− xml:id="sec-overrides">
4+ xml:id="chap-overrides">
55 <title>Overriding</title>
6−
76 <para>
87 Sometimes one wants to override parts of <literal>nixpkgs</literal>, e.g. derivation attributes, the results of derivations.
98 </para>
10−
119 <para>
1210 These functions are used to make changes to packages, returning only single packages. <link xlink:href="#chap-overlays">Overlays</link>, on the other hand, can be used to combine the overridden packages across the entire package set of Nixpkgs.
1311 </para>
14−
1512 <section xml:id="sec-pkg-override">
1613 <title><pkg>.override</title>
1714
@@ -45,7 +42,6 @@ mypkg = pkgs.callPackage ./mypkg.nix {
4542 In the first example, <varname>pkgs.foo</varname> is the result of a function call with some default arguments, usually a derivation. Using <varname>pkgs.foo.override</varname> will call the same function with the given new arguments.
4643 </para>
4744 </section>
48−
4945 <section xml:id="sec-pkg-overrideAttrs">
5046 <title><pkg>.overrideAttrs</title>
5147
@@ -76,7 +72,6 @@ helloWithDebug = pkgs.hello.overrideAttrs (oldAttrs: rec {
7672 </para>
7773 </note>
7874 </section>
79−
8075 <section xml:id="sec-pkg-overrideDerivation">
8176 <title><pkg>.overrideDerivation</title>
8277
@@ -124,7 +119,6 @@ mySed = pkgs.gnused.overrideDerivation (oldAttrs: {
124119 </para>
125120 </note>
126121 </section>
127−
128122 <section xml:id="sec-lib-makeOverridable">
129123 <title>lib.makeOverridable</title>
130124
@@ -148,4 +142,4 @@ c = lib.makeOverridable f { a = 1; b = 2; };
148142 The variable <varname>c</varname> however also has some additional functions, like <link linkend="sec-pkg-override">c.override</link> which can be used to override the default arguments. In this example the value of <varname>(c.override { a = 4; }).result</varname> is 6.
149143 </para>
150144 </section>
151−</section>
145+</chapter>
lib/customisation.nix+23−14
@@ -66,22 +66,31 @@ rec {
6666 */
6767 makeOverridable = f: origArgs:
6868 let
69− ff = f origArgs;
69+ result = f origArgs;
70+
71+ # Creates a functor with the same arguments as f
72+ copyArgs = g: lib.setFunctionArgs g (lib.functionArgs f);
73+ # Changes the original arguments with (potentially a function that returns) a set of new attributes
7074 overrideWith = newArgs: origArgs // (if lib.isFunction newArgs then newArgs origArgs else newArgs);
75+
76+ # Re-call the function but with different arguments
77+ overrideArgs = copyArgs (newArgs: makeOverridable f (overrideWith newArgs));
78+ # Change the result of the function call by applying g to it
79+ overrideResult = g: makeOverridable (copyArgs (args: g (f args))) origArgs;
7180 in
72− if builtins.isAttrs ff then (ff // {
73− override = newArgs: makeOverridable f (overrideWith newArgs);
74− overrideDerivation = fdrv:
75− makeOverridable (args: overrideDerivation (f args) fdrv) origArgs;
76− ${if ff ? overrideAttrs then "overrideAttrs" else null} = fdrv:
77− makeOverridable (args: (f args).overrideAttrs fdrv) origArgs;
78− })
79− else if lib.isFunction ff then {
80− override = newArgs: makeOverridable f (overrideWith newArgs);
81− __functor = self: ff;
82− overrideDerivation = throw "overrideDerivation not yet supported for functors";
83− }
84− else ff;
81+ if builtins.isAttrs result then
82+ result // {
83+ override = overrideArgs;
84+ overrideDerivation = fdrv: overrideResult (x: overrideDerivation x fdrv);
85+ ${if result ? overrideAttrs then "overrideAttrs" else null} = fdrv:
86+ overrideResult (x: x.overrideAttrs fdrv);
87+ }
88+ else if lib.isFunction result then
89+ # Transform the result into a functor while propagating its arguments
90+ lib.setFunctionArgs result (lib.functionArgs result) // {
91+ override = overrideArgs;
92+ }
93+ else result;
8594
8695
8796 /* Call the package function in the file `fn' with the required
lib/default.nix+2−2
@@ -57,8 +57,8 @@ let
5757 hasAttr head isAttrs isBool isInt isList isString length
5858 lessThan listToAttrs pathExists readFile replaceStrings seq
5959 stringLength sub substring tail;
60− inherit (trivial) id const concat or and bitAnd bitOr bitXor bitNot
61− boolToString mergeAttrs flip mapNullable inNixShell min max
60+ inherit (trivial) id const pipe concat or and bitAnd bitOr bitXor
61+ bitNot boolToString mergeAttrs flip mapNullable inNixShell min max
6262 importJSON warn info showWarnings nixpkgsVersion version mod compare
6363 splitByAndCompare functionArgs setFunctionArgs isFunction;
6464 inherit (fixedPoints) fix fix' converge extends composeExtensions
lib/modules.nix+2
@@ -326,6 +326,8 @@ rec {
326326
327327 # The value with a check that it is defined
328328 valueDefined = if res.isDefined then res.mergedValue else
329+ # (nixos-option detects this specific error message and gives it special
330+ # handling. If changed here, please change it there too.)
329331 throw "The option `${showOption loc}' is used but not defined.";
330332
331333 # Apply the 'apply' function to the merged value. This allows options to
lib/systems/default.nix+1
@@ -79,6 +79,7 @@ rec {
7979 else if final.isAarch64 then "arm64"
8080 else if final.isx86_32 then "x86"
8181 else if final.isx86_64 then "ia64"
82+ else if final.isMips then "mips"
8283 else final.parsed.cpu.name;
8384
8485 qemuArch =
lib/systems/examples.nix+2−2
@@ -207,7 +207,7 @@ rec {
207207
208208 # 32 bit mingw-w64
209209 mingw32 = {
210− config = "i686-pc-mingw32";
210+ config = "i686-w64-mingw32";
211211 libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
212212 platform = {};
213213 };
@@ -215,7 +215,7 @@ rec {
215215 # 64 bit mingw-w64
216216 mingwW64 = {
217217 # That's the triplet they use in the mingw-w64 docs.
218− config = "x86_64-pc-mingw32";
218+ config = "x86_64-w64-mingw32";
219219 libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
220220 platform = {};
221221 };
lib/systems/parse.nix+4
@@ -208,6 +208,9 @@ rec {
208208 vendors = setTypes types.openVendor {
209209 apple = {};
210210 pc = {};
211+ # Actually matters, unlocking some MinGW-w64-specific options in GCC. See
212+ # bottom of https://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/
213+ w64 = {};
211214
212215 none = {};
213216 unknown = {};
@@ -327,6 +330,7 @@ rec {
327330 }
328331 ];
329332 };
333+ gnuabi64 = { abi = "64"; };
330334
331335 musleabi = { float = "soft"; };
332336 musleabihf = { float = "hard"; };
lib/tests/misc.nix+25
@@ -18,6 +18,31 @@ runTests {
1818 expected = 2;
1919 };
2020
21+ testPipe = {
22+ expr = pipe 2 [
23+ (x: x + 2) # 2 + 2 = 4
24+ (x: x * 2) # 4 * 2 = 8
25+ ];
26+ expected = 8;
27+ };
28+
29+ testPipeEmpty = {
30+ expr = pipe 2 [];
31+ expected = 2;
32+ };
33+
34+ testPipeStrings = {
35+ expr = pipe [ 3 4 ] [
36+ (map toString)
37+ (map (s: s + "\n"))
38+ concatStrings
39+ ];
40+ expected = ''
41+ 3
42+ 4
43+ '';
44+ };
45+
2146 /*
2247 testOr = {
2348 expr = or true false;
lib/trivial.nix+37
@@ -29,6 +29,43 @@ rec {
2929 # Value to ignore
3030 y: x;
3131
32+ /* Pipes a value through a list of functions, left to right.
33+
34+ Type: pipe :: a -> [<functions>] -> <return type of last function>
35+ Example:
36+ pipe 2 [
37+ (x: x + 2) # 2 + 2 = 4
38+ (x: x * 2) # 4 * 2 = 8
39+ ]
40+ => 8
41+
42+ # ideal to do text transformations
43+ pipe [ "a/b" "a/c" ] [
44+
45+ # create the cp command
46+ (map (file: ''cp "${src}/${file}" $out\n''))
47+
48+ # concatenate all commands into one string
49+ lib.concatStrings
50+
51+ # make that string into a nix derivation
52+ (pkgs.runCommand "copy-to-out" {})
53+
54+ ]
55+ => <drv which copies all files to $out>
56+
57+ The output type of each function has to be the input type
58+ of the next function, and the last function returns the
59+ final value.
60+ */
61+ pipe = val: functions:
62+ let reverseApply = x: f: f x;
63+ in builtins.foldl' reverseApply val functions;
64+ /* note please don’t add a function like `compose = flip pipe`.
65+ This would confuse users, because the order of the functions
66+ in the list is not clear. With pipe, it’s obvious that it
67+ goes first-to-last. With `compose`, not so much.
68+ */
3269
3370 ## Named versions corresponding to some builtin operators.
3471
maintainers/maintainer-list.nix+257−10
@@ -189,6 +189,12 @@
189189 githubId = 1250775;
190190 name = "Adolfo E. García Castro";
191191 };
192+ adsr = {
193+ email = "as@php.net";
194+ github = "adsr";
195+ githubId = 315003;
196+ name = "Adam Saponara";
197+ };
192198 aepsil0n = {
193199 email = "eduard.bopp@aepsil0n.de";
194200 github = "aepsil0n";
@@ -563,6 +569,12 @@
563569 githubId = 718812;
564570 name = "Antoine R. Dumont";
565571 };
572+ arianvp = {
573+ email = "arian.vanputten@gmail.com";
574+ github = "arianvp";
575+ githubId = 628387;
576+ name = "Arian van Putten";
577+ };
566578 aristid = {
567579 email = "aristidb@gmail.com";
568580 github = "aristidb";
@@ -591,6 +603,12 @@
591603 fingerprint = "3D2B B230 F9FA F0C5 1832 46DD 4FDC 96F1 61E7 BA8A";
592604 }];
593605 };
606+ arthur = {
607+ email = "me@arthur.li";
608+ github = "arthurl";
609+ githubId = 3965744;
610+ name = "Arthur Lee";
611+ };
594612 artuuge = {
595613 email = "artuuge@gmail.com";
596614 github = "artuuge";
@@ -713,6 +731,16 @@
713731 githubId = 135230;
714732 name = "Aycan iRiCAN";
715733 };
734+ b4dm4n = {
735+ email = "fabianm88@gmail.com";
736+ github = "B4dM4n";
737+ githubId = 448169;
738+ name = "Fabian Möller";
739+ keys = [{
740+ longkeyid = "rsa4096/0x754B5C0963C42C5";
741+ fingerprint = "6309 E212 29D4 DA30 AF24 BDED 754B 5C09 63C4 2C50";
742+ }];
743+ };
716744 babariviere = {
717745 email = "babathriviere@gmail.com";
718746 github = "babariviere";
@@ -916,6 +944,12 @@
916944 githubId = 5718007;
917945 name = "Bastian Köcher";
918946 };
947+ blitz = {
948+ email = "js@alien8.de";
949+ github = "blitz";
950+ githubId = 37907;
951+ name = "Julian Stecklina";
952+ };
919953 bluescreen303 = {
920954 email = "mathijs@bluescreen303.nl";
921955 github = "bluescreen303";
@@ -1136,6 +1170,12 @@
11361170 githubId = 5771456;
11371171 name = "Chaddaï Fouché";
11381172 };
1173+ cfsmp3 = {
1174+ email = "carlos@sanz.dev";
1175+ github = "cfsmp3";
1176+ githubId = 5949913;
1177+ name = "Carlos Fernandez Sanz";
1178+ };
11391179 chaduffy = {
11401180 email = "charles@dyfis.net";
11411181 github = "charles-dyfis-net";
@@ -1182,6 +1222,12 @@
11821222 githubId = 30435868;
11831223 name = "Okina Matara";
11841224 };
1225+ chkno = {
1226+ email = "chuck@intelligence.org";
1227+ github = "chkno";
1228+ githubId = 1118859;
1229+ name = "Scott Worley";
1230+ };
11851231 choochootrain = {
11861232 email = "hurshal@imap.cc";
11871233 github = "choochootrain";
@@ -1359,6 +1405,12 @@
13591405 githubId = 1740337;
13601406 name = "Chris Ostrouchov";
13611407 };
1408+ contrun = {
1409+ email = "uuuuuu@protonmail.com";
1410+ github = "contrun";
1411+ githubId = 32609395;
1412+ name = "B YI";
1413+ };
13621414 couchemar = {
13631415 email = "couchemar@yandex.ru";
13641416 github = "couchemar";
@@ -1371,6 +1423,12 @@
13711423 githubId = 411324;
13721424 name = "Carles Pagès";
13731425 };
1426+ craigem = {
1427+ email = "craige@mcwhirter.io";
1428+ github = "craigem";
1429+ githubId = "6470493";
1430+ name = "Craige McWhirter";
1431+ };
13741432 cransom = {
13751433 email = "cransom@hubns.net";
13761434 github = "cransom";
@@ -1426,6 +1484,16 @@
14261484 }
14271485 ];
14281486 };
1487+ dadada = {
1488+ name = "dadada";
1489+ email = "dadada@dadada.li";
1490+ github = "dadada";
1491+ githubId = 7216772;
1492+ keys = [{
1493+ longkeyid = "ed25519/0xEEB8D1CE62C4DFEA";
1494+ fingerprint = "D68C 8469 5C08 7E0F 733A 28D0 EEB8 D1CE 62C4 DFEA";
1495+ }];
1496+ };
14291497 dalance = {
14301498 email = "dalance@gmail.com";
14311499 github = "dalance";
@@ -1541,6 +1609,12 @@
15411609 githubId = 14032;
15421610 name = "Daniel Brockman";
15431611 };
1612+ dduan = {
1613+ email = "daniel@duan.ca";
1614+ github = "dduan";
1615+ githubId = 75067;
1616+ name = "Daniel Duan";
1617+ };
15441618 deepfire = {
15451619 email = "_deepfire@feelingofgreen.ru";
15461620 github = "deepfire";
@@ -1742,7 +1816,7 @@
17421816 name = "Chris Double";
17431817 };
17441818 dpaetzel = {
1745− email = "david.a.paetzel@gmail.com";
1819+ email = "david.paetzel@posteo.de";
17461820 github = "dpaetzel";
17471821 githubId = 974130;
17481822 name = "David Pätzel";
@@ -1920,7 +1994,9 @@
19201994 name = "Eric Hegnes";
19211995 };
19221996 ehmry = {
1923− email = "emery@vfemail.net";
1997+ email = "ehmry@posteo.net";
1998+ github= "ehmry";
1999+ githubId = 537775;
19242000 name = "Emery Hemingway";
19252001 };
19262002 eikek = {
@@ -2006,6 +2082,12 @@
20062082 github = "ericnorris";
20072083 githubId = 1906605;
20082084 };
2085+ Enteee = {
2086+ email = "nix@duckpond.ch";
2087+ github = "Enteee";
2088+ githubid = 5493775;
2089+ name = "Ente";
2090+ };
20092091 enzime = {
20102092 email = "enzime@users.noreply.github.com";
20112093 github = "enzime";
@@ -2022,6 +2104,12 @@
20222104 email = "mpcervin@uncg.edu";
20232105 name = "Mabry Cervin";
20242106 };
2107+ equirosa = {
2108+ email = "eduardo@eduardoquiros.com";
2109+ github = "equirosa";
2110+ githubId = 39096810;
2111+ name = "Eduardo Quiros";
2112+ };
20252113 eqyiel = {
20262114 email = "ruben@maher.fyi";
20272115 github = "eqyiel";
@@ -2163,12 +2251,6 @@
21632251 githubId = 2817965;
21642252 name = "f--t";
21652253 };
2166− fleaz = {
2167− email = "mail@felixbreidenstein.de";
2168− github = "fleaz";
2169− githubId = 2489598;
2170− name = "Felix Breidenstein";
2171− };
21722254 fadenb = {
21732255 email = "tristan.helmich+nixos@gmail.com";
21742256 github = "fadenb";
@@ -2209,12 +2291,32 @@
22092291 githubId = 8182846;
22102292 name = "Francesco Gazzetta";
22112293 };
2294+ filalex77 = {
2295+ email = "brightone@protonmail.com";
2296+ github = "filalex77";
2297+ githubId = 12615679;
2298+ name = "Oleksii Filonenko";
2299+ keys = [{
2300+ longkeyid = "rsa3072/0xA1BC8428323ECFE8";
2301+ fingerprint = "F549 3B7F 9372 5578 FDD3 D0B8 A1BC 8428 323E CFE8";
2302+ }];
2303+ };
22122304 FireyFly = {
22132305 email = "nix@firefly.nu";
22142306 github = "FireyFly";
22152307 githubId = 415760;
22162308 name = "Jonas Höglund";
22172309 };
2310+ Flakebi = {
2311+ email = "flakebi@t-online.de";
2312+ github = "Flakebi";
2313+ githubId = "Flakebi";
2314+ name = "Sebastian Neubauer";
2315+ keys = [{
2316+ longkeyid = "rsa4096/0xECC755EE583C1672";
2317+ fingerprint = "2F93 661D AC17 EA98 A104 F780 ECC7 55EE 583C 1672";
2318+ }];
2319+ };
22182320 flexw = {
22192321 email = "felix.weilbach@t-online.de";
22202322 github = "FlexW";
@@ -2410,6 +2512,11 @@
24102512 github = "gavinrogers";
24112513 name = "Gavin Rogers";
24122514 };
2515+ gazally = {
2516+ email = "gazally@runbox.com";
2517+ github = "gazally";
2518+ name = "Gemini Lasswell";
2519+ };
24132520 gebner = {
24142521 email = "gebner@gebner.org";
24152522 github = "gebner";
@@ -2552,6 +2659,12 @@
25522659 githubId = 9705357;
25532660 name = "Guillaume Bouchard";
25542661 };
2662+ GuillaumeDesforges = {
2663+ email = "aceus02@gmail.com";
2664+ github = "GuillaumeDesforges";
2665+ githubId = 1882000;
2666+ name = "Guillaume Desforges";
2667+ };
25552668 guillaumekoenig = {
25562669 email = "guillaume.edward.koenig@gmail.com";
25572670 github = "guillaumekoenig";
@@ -2815,6 +2928,15 @@
28152928 githubId = 137306;
28162929 name = "Michele Catalano";
28172930 };
2931+ isgy = {
2932+ email = "isgy@teiyg.com";
2933+ github = "isgy";
2934+ githubId = 13622947;
2935+ keys = [{
2936+ longkeyid = "rsa4096/0xD3E1B013B4631293";
2937+ fingerprint = "1412 816B A9FA F62F D051 1975 D3E1 B013 B463 1293";
2938+ }];
2939+ };
28182940 ivan = {
28192941 email = "ivan@ludios.org";
28202942 github = "ivan";
@@ -3069,6 +3191,11 @@
30693191 githubId = 184898;
30703192 name = "Jirka Marsik";
30713193 };
3194+ jitwit = {
3195+ email = "jrn@bluefarm.ca";
3196+ github = "jitwit";
3197+ name = "jitwit";
3198+ };
30723199 jlesquembre = {
30733200 email = "jl@lafuente.me";
30743201 github = "jlesquembre";
@@ -3281,6 +3408,12 @@
32813408 github = "juliendehos";
32823409 name = "Julien Dehos";
32833410 };
3411+ jumper149 = {
3412+ email = "felixspringer149@gmail.com";
3413+ github = "jumper149";
3414+ githubId = 39434424;
3415+ name = "Felix Springer";
3416+ };
32843417 justinwoo = {
32853418 email = "moomoowoo@gmail.com";
32863419 github = "justinwoo";
@@ -3817,6 +3950,22 @@
38173950 github = "lovek323";
38183951 name = "Jason O'Conal";
38193952 };
3953+ lovesegfault = {
3954+ email = "meurerbernardo@gmail.com";
3955+ github = "lovesegfault";
3956+ githubId = 7243783;
3957+ name = "Bernardo Meurer";
3958+ keys = [
3959+ {
3960+ longkeyid = "rsa2048/0xE421C74191EA186C";
3961+ fingerprint = "5894 12CE 19DF 582A E10A 3320 E421 C741 91EA 186C";
3962+ }
3963+ {
3964+ longkeyid = "rsa2048/0x4A6D87A0E7475769";
3965+ fingerprint = "56A8 E164 E834 290C 4AC0 EE3E 4A6D 87A0 E747 5769";
3966+ }
3967+ ];
3968+ };
38203969 lowfatcomputing = {
38213970 email = "andreas.wagner@lowfatcomputing.org";
38223971 github = "lowfatcomputing";
@@ -3888,6 +4037,11 @@
38884037 githubId = 13791;
38894038 name = "Luke Gorrie";
38904039 };
4040+ lumi = {
4041+ email = "lumi@pew.im";
4042+ github = "lumi-me-not";
4043+ name = "lumi";
4044+ };
38914045 luz = {
38924046 email = "luz666@daum.net";
38934047 github = "Luz";
@@ -4059,6 +4213,12 @@
40594213 githubId = 427866;
40604214 name = "Matthias Beyer";
40614215 };
4216+ matthuszagh = {
4217+ email = "huszaghmatt@gmail.com";
4218+ github = "matthuszagh";
4219+ githubId = 7377393;
4220+ name = "Matt Huszagh";
4221+ };
40624222 matti-kariluoma = {
40634223 email = "matti@kariluo.ma";
40644224 github = "matti-kariluoma";
@@ -4402,6 +4562,10 @@
44024562 github = "moredread";
44034563 githubId = 100848;
44044564 name = "André-Patrick Bubel";
4565+ keys = [{
4566+ longkeyid = "rsa8192/0x118CE7C424B45728";
4567+ fingerprint = "4412 38AD CAD3 228D 876C 5455 118C E7C4 24B4 5728";
4568+ }];
44054569 };
44064570 moretea = {
44074571 email = "maarten@moretea.nl";
@@ -5083,6 +5247,16 @@
50835247 githubId = 1179566;
50845248 name = "Nicolas B. Pierron";
50855249 };
5250+ pingiun = {
5251+ email = "nixos@pingiun.com";
5252+ github = "pingiun";
5253+ githubId = 1576660;
5254+ name = "Jelle Besseling";
5255+ keys = [{
5256+ longkeyid = "rsa4096/0x9712452E8BE3372E";
5257+ fingerprint = "A3A3 65AE 16ED A7A0 C29C 88F1 9712 452E 8BE3 372E";
5258+ }];
5259+ };
50865260 piotr = {
50875261 email = "ppietrasa@gmail.com";
50885262 name = "Piotr Pietraszkiewicz";
@@ -6306,6 +6480,12 @@
63066480 githubId = 120188;
63076481 name = "Scott W. Dunlop";
63086482 };
6483+ sweber = {
6484+ email = "sweber2342+nixpkgs@gmail.com";
6485+ github = "sweber83";
6486+ githubId = 19905904;
6487+ name = "Simon Weber";
6488+ };
63096489 swflint = {
63106490 email = "swflint@flintfam.org";
63116491 github = "swflint";
@@ -6423,6 +6603,12 @@
64236603 githubId = 506181;
64246604 name = "Peter Marheine";
64256605 };
6606+ tasmo = {
6607+ email = "tasmo@tasmo.de";
6608+ github = "tasmo";
6609+ githubId = 102685;
6610+ name = "Thomas Friese";
6611+ };
64266612 tavyc = {
64276613 email = "octavian.cerna@gmail.com";
64286614 github = "tavyc";
@@ -6609,6 +6795,16 @@
66096795 githubId = 13026;
66106796 name = "Jonathan Rudenberg";
66116797 };
6798+ tkerber = {
6799+ email = "tk@drwx.org";
6800+ github = "tkerber";
6801+ githubId = 5722198;
6802+ name = "Thomas Kerber";
6803+ keys = [ {
6804+ longkeyid = "rsa4096/0x8489B911F9ED617B";
6805+ fingerprint = "556A 403F B0A2 D423 F656 3424 8489 B911 F9ED 617B";
6806+ } ];
6807+ };
66126808 tmplt = {
66136809 email = "tmplt@dragons.rocks";
66146810 github = "tmplt";
@@ -6656,6 +6852,12 @@
66566852 githubId = 178444;
66576853 name = "Thomas Bereknyei";
66586854 };
6855+ tomfitzhenry = {
6856+ email = "tom@tom-fitzhenry.me.uk";
6857+ github = "tomfitzhenry";
6858+ githubId = 61303;
6859+ name = "Tom Fitzhenry";
6860+ };
66596861 tomsmeets = {
66606862 email = "tom.tsmeets@gmail.com";
66616863 github = "tomsmeets";
@@ -6686,6 +6888,12 @@
66866888 githubId = 1312290;
66876889 name = "Trevor Joynson";
66886890 };
6891+ tricktron = {
6892+ email = "tgagnaux@gmail.com";
6893+ github = "tricktron";
6894+ githubId = 16036882;
6895+ name = "Thibault Gagnaux";
6896+ };
66896897 trino = {
66906898 email = "muehlhans.hubert@ekodia.de";
66916899 github = "hmuehlhans";
@@ -6698,6 +6906,11 @@
66986906 githubId = 483735;
66996907 name = "Dmitry Geurkov";
67006908 };
6909+ tscholak = {
6910+ email = "torsten.scholak@googlemail.com";
6911+ github = "tscholak";
6912+ name = "Torsten Scholak";
6913+ };
67016914 tstrobel = {
67026915 email = "4ZKTUB6TEP74PYJOPWIR013S2AV29YUBW5F9ZH2F4D5UMJUJ6S@hash.domains";
67036916 name = "Thomas Strobel";
@@ -7014,6 +7227,12 @@
70147227 email = "kirill.wedens@gmail.com";
70157228 name = "wedens";
70167229 };
7230+ WhittlesJr = {
7231+ email = "alex.joseph.whitt@gmail.com";
7232+ github = "WhittlesJr";
7233+ githubId = 19174984;
7234+ name = "Alex Whitt";
7235+ };
70177236 willibutz = {
70187237 email = "willibutz@posteo.de";
70197238 github = "willibutz";
@@ -7229,14 +7448,24 @@
72297448 githubId = 1866448;
72307449 name = "Eric Bailey";
72317450 };
7451+ Yumasi = {
7452+ email = "gpagnoux@gmail.com";
7453+ github = "Yumasi";
7454+ githubId = 24368641;
7455+ name = "Guillaume Pagnoux";
7456+ keys = [{
7457+ longkeyid = "rsa4096/0xEC5065899AEAAF4C";
7458+ fingerprint = "85F8 E850 F8F2 F823 F934 535B EC50 6589 9AEA AF4C";
7459+ }];
7460+ };
72327461 yvt = {
72337462 email = "i@yvt.jp";
72347463 github = "yvt";
72357464 githubId = 5253988;
72367465 name = "yvt";
72377466 };
7238− z77z = {
7239− email = "maggesi@math.unifi.it";
7467+ maggesi = {
7468+ email = "marco.maggesi@gmail.com";
72407469 github = "maggesi";
72417470 githubId = 1809783;
72427471 name = "Marco Maggesi";
@@ -7280,6 +7509,12 @@
72807509 email = "zef@zef.me";
72817510 name = "Zef Hemel";
72827511 };
7512+ zfnmxt = {
7513+ name = "zfnmxt";
7514+ email = "zfnmxt@zfnmxt.com";
7515+ github = "zfnmxt";
7516+ githubId = 37446532;
7517+ };
72837518 zgrannan = {
72847519 email = "zgrannan@gmail.com";
72857520 github = "zgrannan";
@@ -7352,4 +7587,16 @@
73527587 githubId = 1986844;
73537588 name = "Daniel Wheeler";
73547589 };
7590+ zokrezyl = {
7591+ email = "zokrezyl@gmail.com";
7592+ github = "zokrezyl";
7593+ githubId = 51886259;
7594+ name = "Zokre Zyl";
7595+ };
7596+ rakesh4g = {
7597+ email = "rakeshgupta4u@gmail.com";
7598+ github = "rakesh4g";
7599+ githubId = 50867187;
7600+ name = "Rakesh Gupta";
7601+ };
73557602}
maintainers/scripts/luarocks-packages.csv+2
@@ -42,10 +42,12 @@ luadbi,,,,,
4242luadbi-mysql,,,,,
4343luadbi-postgresql,,,,,
4444luadbi-sqlite3,,,,,
45+luadoc,,,,,
4546luaevent,,,,,
4647luaexpat,,,1.3.0-1,,arobyn flosse
4748luaffi,,http://luarocks.org/dev,,,
4849luafilesystem,,,1.7.0-2,,flosse vcunat
50+lualogging,,,,,
4951luaossl,,,,lua5_1,vcunat
5052luaposix,,,,,vyp lblasc
5153luasec,,,,,flosse
nixos/doc/manual/configuration/x-windows.xml+1−1
@@ -39,7 +39,7 @@
3939 can select an alternative one by picking one of the following lines:
4040<programlisting>
4141<xref linkend="opt-services.xserver.displayManager.sddm.enable"/> = true;
42−<xref linkend="opt-services.xserver.displayManager.slim.enable"/> = true;
42+<xref linkend="opt-services.xserver.displayManager.gdm.enable"/> = true;
4343</programlisting>
4444 </para>
4545 <para>
nixos/doc/manual/default.nix+1−2
@@ -62,14 +62,13 @@ let
6262 "--stringparam html.stylesheet 'style.css overrides.css highlightjs/mono-blue.css'"
6363 "--stringparam html.script './highlightjs/highlight.pack.js ./highlightjs/loader.js'"
6464 "--param xref.with.number.and.title 1"
65− "--param toc.section.depth 3"
65+ "--param toc.section.depth 0"
6666 "--stringparam admon.style ''"
6767 "--stringparam callout.graphics.extension .svg"
6868 "--stringparam current.docid manual"
6969 "--param chunk.section.depth 0"
7070 "--param chunk.first.sections 1"
7171 "--param use.id.as.filename 1"
72− "--stringparam generate.toc 'book toc appendix toc'"
7372 "--stringparam chunk.toc ${toc}"
7473 ];
7574
nixos/doc/manual/development/option-declarations.xml+5−5
@@ -99,7 +99,7 @@ xlink:href="https://nixos.org/nixpkgs/manual/#sec-package-naming">
9999 <para>
100100 As an example, we will take the case of display managers. There is a central
101101 display manager module for generic display manager options and a module file
102− per display manager backend (slim, sddm, gdm ...).
102+ per display manager backend (sddm, gdm ...).
103103 </para>
104104
105105 <para>
@@ -146,7 +146,7 @@ xlink:href="https://nixos.org/nixpkgs/manual/#sec-package-naming">
146146 />), and to extend
147147 it in each backend module
148148 (<xref
149− linkend='ex-option-declaration-eot-backend-slim' />,
149+ linkend='ex-option-declaration-eot-backend-gdm' />,
150150 <xref
151151 linkend='ex-option-declaration-eot-backend-sddm' />).
152152 </para>
@@ -167,11 +167,11 @@ services.xserver.displayManager.enable = mkOption {
167167};</screen>
168168 </example>
169169
170− <example xml:id='ex-option-declaration-eot-backend-slim'>
171− <title>Extending <literal>services.xserver.displayManager.enable</literal> in the <literal>slim</literal> module</title>
170+ <example xml:id='ex-option-declaration-eot-backend-gdm'>
171+ <title>Extending <literal>services.xserver.displayManager.enable</literal> in the <literal>gdm</literal> module</title>
172172<screen>
173173services.xserver.displayManager.enable = mkOption {
174− type = with types; nullOr (enum [ "slim" ]);
174+ type = with types; nullOr (enum [ "gdm" ]);
175175};</screen>
176176 </example>
177177
nixos/doc/manual/development/running-nixos-tests-interactively.xml+7−7
@@ -2,7 +2,7 @@
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
5− xml:id="sec-running-nixos-tests">
5+ xml:id="sec-running-nixos-tests-interactively">
66 <title>Running Tests interactively</title>
77
88 <para>
@@ -14,14 +14,14 @@
1414starting VDE switch for network 1
1515<prompt>></prompt>
1616</screen>
17− You can then take any Perl statement, e.g.
17+ You can then take any Python statement, e.g.
1818<screen>
19−<prompt>></prompt> startAll
20−<prompt>></prompt> testScript
21−<prompt>></prompt> $machine->succeed("touch /tmp/foo")
22−<prompt>></prompt> print($machine->succeed("pwd")) # Show stdout of command
19+<prompt>></prompt> start_all()
20+<prompt>></prompt> test_script()
21+<prompt>></prompt> machine.succeed("touch /tmp/foo")
22+<prompt>></prompt> print(machine.succeed("pwd")) # Show stdout of command
2323</screen>
24− The function <command>testScript</command> executes the entire test script
24+ The function <command>test_script</command> executes the entire test script
2525 and drops you back into the test driver command line upon its completion.
2626 This allows you to inspect the state of the VMs after the test (e.g. to debug
2727 the test script).
nixos/doc/manual/development/running-nixos-tests.xml+1−1
@@ -2,7 +2,7 @@
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xmlns:xi="http://www.w3.org/2001/XInclude"
44 version="5.0"
5− xml:id="sec-running-nixos-tests-interactively">
5+ xml:id="sec-running-nixos-tests">
66 <title>Running Tests</title>
77
88 <para>
nixos/doc/manual/development/sources.xml+9−10
@@ -13,17 +13,16 @@
1313<screen>
1414<prompt>$ </prompt>git clone https://github.com/NixOS/nixpkgs
1515<prompt>$ </prompt>cd nixpkgs
16−<prompt>$ </prompt>git remote add channels https://github.com/NixOS/nixpkgs-channels
17−<prompt>$ </prompt>git remote update channels
16+<prompt>$ </prompt>git remote update origin
1817</screen>
1918 This will check out the latest Nixpkgs sources to
2019 <filename>./nixpkgs</filename> the NixOS sources to
2120 <filename>./nixpkgs/nixos</filename>. (The NixOS source tree lives in a
22− subdirectory of the Nixpkgs repository.) The remote
23− <literal>channels</literal> refers to a read-only repository that tracks the
24− Nixpkgs/NixOS channels (see <xref linkend="sec-upgrading"/> for more
21+ subdirectory of the Nixpkgs repository.) The
22+ <literal>nixpkgs</literal> repository has branches that correspond
23+ to each Nixpkgs/NixOS channel (see <xref linkend="sec-upgrading"/> for more
2524 information about channels). Thus, the Git branch
26− <literal>channels/nixos-17.03</literal> will contain the latest built and
25+ <literal>origin/nixos-17.03</literal> will contain the latest built and
2726 tested version available in the <literal>nixos-17.03</literal> channel.
2827 </para>
2928 <para>
@@ -40,15 +39,15 @@
4039 Or, to base your local branch on the latest version available in a NixOS
4140 channel:
4241<screen>
43−<prompt>$ </prompt>git remote update channels
44−<prompt>$ </prompt>git checkout -b local channels/nixos-17.03
42+<prompt>$ </prompt>git remote update origin
43+<prompt>$ </prompt>git checkout -b local origin/nixos-17.03
4544</screen>
4645 (Replace <literal>nixos-17.03</literal> with the name of the channel you want
4746 to use.) You can use <command>git merge</command> or <command>git
4847 rebase</command> to keep your local branch in sync with the channel, e.g.
4948<screen>
50−<prompt>$ </prompt>git remote update channels
51−<prompt>$ </prompt>git merge channels/nixos-17.03
49+<prompt>$ </prompt>git remote update origin
50+<prompt>$ </prompt>git merge origin/nixos-17.03
5251</screen>
5352 You can use <command>git cherry-pick</command> to copy commits from your
5453 local branch to the upstream branch.
nixos/doc/manual/development/writing-nixos-tests.xml+44−43
@@ -8,7 +8,7 @@
88 <para>
99 A NixOS test is a Nix expression that has the following structure:
1010<programlisting>
11−import ./make-test.nix {
11+import ./make-test-python.nix {
1212
1313 # Either the configuration of a single machine:
1414 machine =
@@ -27,11 +27,11 @@ import ./make-test.nix {
2727
2828 testScript =
2929 ''
30− <replaceable>Perl code…</replaceable>
30+ <replaceable>Python code…</replaceable>
3131 '';
3232}
3333</programlisting>
34− The attribute <literal>testScript</literal> is a bit of Perl code that
34+ The attribute <literal>testScript</literal> is a bit of Python code that
3535 executes the test (described below). During the test, it will start one or
3636 more virtual machines, the configuration of which is described by the
3737 attribute <literal>machine</literal> (if you need only one machine in your
@@ -96,26 +96,27 @@ xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualis
9696 </para>
9797
9898 <para>
99− The test script is a sequence of Perl statements that perform various
99+ The test script is a sequence of Python statements that perform various
100100 actions, such as starting VMs, executing commands in the VMs, and so on. Each
101101 virtual machine is represented as an object stored in the variable
102− <literal>$<replaceable>name</replaceable></literal>, where
103− <replaceable>name</replaceable> is the identifier of the machine (which is
104− just <literal>machine</literal> if you didn’t specify multiple machines
105− using the <literal>nodes</literal> attribute). For instance, the following
106− starts the machine, waits until it has finished booting, then executes a
107− command and checks that the output is more-or-less correct:
102+ <literal><replaceable>name</replaceable></literal> if this is also the
103+ identifier of the machine in the declarative config.
104+ If you didn't specify multiple machines using the <literal>nodes</literal>
105+ attribute, it is just <literal>machine</literal>.
106+ The following example starts the machine, waits until it has finished booting,
107+ then executes a command and checks that the output is more-or-less correct:
108108<programlisting>
109−$machine->start;
110−$machine->waitForUnit("default.target");
111−$machine->succeed("uname") =~ /Linux/ or die;
109+machine.start()
110+machine.wait_for_unit("default.target")
111+if not "Linux" in machine.succeed("uname"):
112+ raise Exception("Wrong OS")
112113</programlisting>
113114 The first line is actually unnecessary; machines are implicitly started when
114− you first execute an action on them (such as <literal>waitForUnit</literal>
115+ you first execute an action on them (such as <literal>wait_for_unit</literal>
115116 or <literal>succeed</literal>). If you have multiple machines, you can speed
116117 up the test by starting them in parallel:
117118<programlisting>
118−startAll;
119+start_all()
119120</programlisting>
120121 </para>
121122
@@ -187,7 +188,7 @@ startAll;
187188 </varlistentry>
188189 <varlistentry>
189190 <term>
190− <methodname>getScreenText</methodname>
191+ <methodname>get_screen_text</methodname>
191192 </term>
192193 <listitem>
193194 <para>
@@ -204,7 +205,7 @@ startAll;
204205 </varlistentry>
205206 <varlistentry>
206207 <term>
207− <methodname>sendMonitorCommand</methodname>
208+ <methodname>send_monitor_command</methodname>
208209 </term>
209210 <listitem>
210211 <para>
@@ -215,23 +216,23 @@ startAll;
215216 </varlistentry>
216217 <varlistentry>
217218 <term>
218− <methodname>sendKeys</methodname>
219+ <methodname>send_keys</methodname>
219220 </term>
220221 <listitem>
221222 <para>
222223 Simulate pressing keys on the virtual keyboard, e.g.,
223− <literal>sendKeys("ctrl-alt-delete")</literal>.
224+ <literal>send_keys("ctrl-alt-delete")</literal>.
224225 </para>
225226 </listitem>
226227 </varlistentry>
227228 <varlistentry>
228229 <term>
229− <methodname>sendChars</methodname>
230+ <methodname>send_chars</methodname>
230231 </term>
231232 <listitem>
232233 <para>
233234 Simulate typing a sequence of characters on the virtual keyboard, e.g.,
234− <literal>sendKeys("foobar\n")</literal> will type the string
235+ <literal>send_keys("foobar\n")</literal> will type the string
235236 <literal>foobar</literal> followed by the Enter key.
236237 </para>
237238 </listitem>
@@ -272,7 +273,7 @@ startAll;
272273 </varlistentry>
273274 <varlistentry>
274275 <term>
275− <methodname>waitUntilSucceeds</methodname>
276+ <methodname>wait_until_succeeds</methodname>
276277 </term>
277278 <listitem>
278279 <para>
@@ -282,7 +283,7 @@ startAll;
282283 </varlistentry>
283284 <varlistentry>
284285 <term>
285− <methodname>waitUntilFails</methodname>
286+ <methodname>wait_until_fails</methodname>
286287 </term>
287288 <listitem>
288289 <para>
@@ -292,7 +293,7 @@ startAll;
292293 </varlistentry>
293294 <varlistentry>
294295 <term>
295− <methodname>waitForUnit</methodname>
296+ <methodname>wait_for_unit</methodname>
296297 </term>
297298 <listitem>
298299 <para>
@@ -302,7 +303,7 @@ startAll;
302303 </varlistentry>
303304 <varlistentry>
304305 <term>
305− <methodname>waitForFile</methodname>
306+ <methodname>wait_for_file</methodname>
306307 </term>
307308 <listitem>
308309 <para>
@@ -312,7 +313,7 @@ startAll;
312313 </varlistentry>
313314 <varlistentry>
314315 <term>
315− <methodname>waitForOpenPort</methodname>
316+ <methodname>wait_for_open_port</methodname>
316317 </term>
317318 <listitem>
318319 <para>
@@ -323,7 +324,7 @@ startAll;
323324 </varlistentry>
324325 <varlistentry>
325326 <term>
326− <methodname>waitForClosedPort</methodname>
327+ <methodname>wait_for_closed_port</methodname>
327328 </term>
328329 <listitem>
329330 <para>
@@ -333,7 +334,7 @@ startAll;
333334 </varlistentry>
334335 <varlistentry>
335336 <term>
336− <methodname>waitForX</methodname>
337+ <methodname>wait_for_x</methodname>
337338 </term>
338339 <listitem>
339340 <para>
@@ -343,13 +344,13 @@ startAll;
343344 </varlistentry>
344345 <varlistentry>
345346 <term>
346− <methodname>waitForText</methodname>
347+ <methodname>wait_for_text</methodname>
347348 </term>
348349 <listitem>
349350 <para>
350351 Wait until the supplied regular expressions matches the textual contents
351352 of the screen by using optical character recognition (see
352− <methodname>getScreenText</methodname>).
353+ <methodname>get_screen_text</methodname>).
353354 </para>
354355 <note>
355356 <para>
@@ -361,23 +362,23 @@ startAll;
361362 </varlistentry>
362363 <varlistentry>
363364 <term>
364− <methodname>waitForWindow</methodname>
365+ <methodname>wait_for_window</methodname>
365366 </term>
366367 <listitem>
367368 <para>
368369 Wait until an X11 window has appeared whose name matches the given
369− regular expression, e.g., <literal>waitForWindow(qr/Terminal/)</literal>.
370+ regular expression, e.g., <literal>wait_for_window("Terminal")</literal>.
370371 </para>
371372 </listitem>
372373 </varlistentry>
373374 <varlistentry>
374375 <term>
375− <methodname>copyFileFromHost</methodname>
376+ <methodname>copy_file_from_host</methodname>
376377 </term>
377378 <listitem>
378379 <para>
379380 Copies a file from host to machine, e.g.,
380− <literal>copyFileFromHost("myfile", "/etc/my/important/file")</literal>.
381+ <literal>copy_file_from_host("myfile", "/etc/my/important/file")</literal>.
381382 </para>
382383 <para>
383384 The first argument is the file on the host. The file needs to be
@@ -397,8 +398,8 @@ startAll;
397398 </para>
398399 <para>
399400<programlisting>
400−$machine->systemctl("list-jobs --no-pager"); // runs `systemctl list-jobs --no-pager`
401−$machine->systemctl("list-jobs --no-pager", "any-user"); // spawns a shell for `any-user` and runs `systemctl --user list-jobs --no-pager`
401+machine.systemctl("list-jobs --no-pager") # runs `systemctl list-jobs --no-pager`
402+machine.systemctl("list-jobs --no-pager", "any-user") # spawns a shell for `any-user` and runs `systemctl --user list-jobs --no-pager`
402403</programlisting>
403404 </para>
404405 </listitem>
@@ -408,14 +409,14 @@ $machine->systemctl("list-jobs --no-pager", "any-user"); // spawns a shell for `
408409
409410 <para>
410411 To test user units declared by <literal>systemd.user.services</literal> the
411− optional <literal>$user</literal> argument can be used:
412+ optional <literal>user</literal> argument can be used:
412413<programlisting>
413−$machine->start;
414−$machine->waitForX;
415−$machine->waitForUnit("xautolock.service", "x-session-user");
414+machine.start()
415+machine.wait_for_x()
416+machine.wait_for_unit("xautolock.service", "x-session-user")
416417</programlisting>
417− This applies to <literal>systemctl</literal>, <literal>getUnitInfo</literal>,
418− <literal>waitForUnit</literal>, <literal>startJob</literal> and
419− <literal>stopJob</literal>.
418+ This applies to <literal>systemctl</literal>, <literal>get_unit_info</literal>,
419+ <literal>wait_for_unit</literal>, <literal>start_job</literal> and
420+ <literal>stop_job</literal>.
420421 </para>
421422</section>
nixos/doc/manual/installation/installing-virtualbox-guest.xml+5
@@ -47,6 +47,11 @@
4747 acceleration
4848 </para>
4949 </listitem>
50+ <listitem>
51+ <para>
52+ Click on Settings / Display / Screen and select VBoxVGA as Graphics Controller
53+ </para>
54+ </listitem>
5055 <listitem>
5156 <para>
5257 Save the settings, start the virtual machine, and continue installation
nixos/doc/manual/man-nixos-option.xml+3−18
@@ -19,14 +19,10 @@
1919 </arg>
2020
2121 <arg>
22− <option>--verbose</option>
22+ <option>--all</option>
2323 </arg>
2424
2525 <arg>
26− <option>--xml</option>
27− </arg>
28−
29− <arg choice="plain">
3026 <replaceable>option.name</replaceable>
3127 </arg>
3228 </cmdsynopsis>
@@ -62,22 +58,11 @@
6258 </varlistentry>
6359 <varlistentry>
6460 <term>
65− <option>--verbose</option>
66− </term>
67− <listitem>
68− <para>
69− This option enables verbose mode, which currently is just the Bash
70− <command>set</command> <option>-x</option> debug mode.
71− </para>
72− </listitem>
73− </varlistentry>
74− <varlistentry>
75− <term>
76− <option>--xml</option>
61+ <option>--all</option>
7762 </term>
7863 <listitem>
7964 <para>
80− This option causes the output to be rendered as XML.
65+ Print the values of all options.
8166 </para>
8267 </listitem>
8368 </varlistentry>
nixos/doc/manual/man-nixos-rebuild.xml+14
@@ -494,6 +494,20 @@
494494 </para>
495495 </listitem>
496496 </varlistentry>
497+
498+ <varlistentry>
499+ <term>
500+ <option>--use-remote-sudo</option>
501+ </term>
502+ <listitem>
503+ <para>
504+ When set, nixos-rebuild prefixes remote commands that run on
505+ the <option>--build-host</option> and <option>--target-host</option>
506+ systems with <command>sudo</command>. Setting this option allows
507+ deploying as a non-root user.
508+ </para>
509+ </listitem>
510+ </varlistentry>
497511 </variablelist>
498512
499513 <para>
nixos/doc/manual/manual.xml+1−26
@@ -8,32 +8,7 @@
88 <subtitle>Version <xi:include href="./generated/version" parse="text" />
99 </subtitle>
1010 </info>
11− <preface xml:id="preface">
12− <title>Preface</title>
13− <para>
14− This manual describes how to install, use and extend NixOS, a Linux
15− distribution based on the purely functional package management system Nix.
16− </para>
17− <para>
18− If you encounter problems, please report them on the
19− <literal
20− xlink:href="https://discourse.nixos.org">Discourse</literal> or
21− on the <link
22− xlink:href="irc://irc.freenode.net/#nixos">
23− <literal>#nixos</literal> channel on Freenode</link>. Bugs should be
24− reported in
25− <link
26− xlink:href="https://github.com/NixOS/nixpkgs/issues">NixOS’
27− GitHub issue tracker</link>.
28− </para>
29− <note>
30− <para>
31− Commands prefixed with <literal>#</literal> have to be run as root, either
32− requiring to login as root user or temporarily switching to it using
33− <literal>sudo</literal> for example.
34− </para>
35− </note>
36− </preface>
11+ <xi:include href="preface.xml" />
3712 <xi:include href="installation/installation.xml" />
3813 <xi:include href="configuration/configuration.xml" />
3914 <xi:include href="administration/running.xml" />
nixos/doc/manual/preface.xmlnew file+37
@@ -0,0 +1,37 @@
1+<preface xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xml:id="preface">
4+ <title>Preface</title>
5+ <para>
6+ This manual describes how to install, use and extend NixOS, a Linux
7+ distribution based on the purely functional package management system
8+ <link xlink:href="https://nixos.org/nix">Nix</link>, that is composed
9+ using modules and packages defined in the
10+ <link xlink:href="https://nixos.org/nixpkgs">Nixpkgs</link> project.
11+ </para>
12+ <para>
13+ Additional information regarding the Nix package manager and the Nixpkgs
14+ project can be found in respectively the
15+ <link xlink:href="https://nixos.org/nix/manual">Nix manual</link> and the
16+ <link xlink:href="https://nixos.org/nixpkgs/manual">Nixpkgs manual</link>.
17+ </para>
18+ <para>
19+ If you encounter problems, please report them on the
20+ <literal
21+ xlink:href="https://discourse.nixos.org">Discourse</literal> or
22+ on the <link
23+ xlink:href="irc://irc.freenode.net/#nixos">
24+ <literal>#nixos</literal> channel on Freenode</link>. Bugs should be
25+ reported in
26+ <link
27+ xlink:href="https://github.com/NixOS/nixpkgs/issues">NixOS’
28+ GitHub issue tracker</link>.
29+ </para>
30+ <note>
31+ <para>
32+ Commands prefixed with <literal>#</literal> have to be run as root, either
33+ requiring to login as root user or temporarily switching to it using
34+ <literal>sudo</literal> for example.
35+ </para>
36+ </note>
37+</preface>
nixos/doc/manual/release-notes/rl-1909.xml+29−1
@@ -190,6 +190,13 @@
190190 </listitem>
191191 </itemizedlist>
192192 </listitem>
193+ <listitem>
194+ <para>
195+ <xref linkend="opt-services.blueman.enable"/> has been added.
196+ If you previously had blueman installed via <option>environment.systemPackages</option> please
197+ migrate to using the NixOS module, as this would result in an insufficiently configured blueman.
198+ </para>
199+ </listitem>
193200 </itemizedlist>
194201
195202 </section>
@@ -536,7 +543,7 @@
536543 <listitem>
537544 <para>
538545 The <option>networking.useDHCP</option> option is unsupported in combination with
539− <option>networking.useNetworkd</option> in anticipation of defaulting to it by default.
546+ <option>networking.useNetworkd</option> in anticipation of defaulting to it.
540547 It has to be set to <literal>false</literal> and enabled per
541548 interface with <option>networking.interfaces.<name>.useDHCP = true;</option>
542549 </para>
@@ -563,6 +570,27 @@
563570 earlier version of NixOS.
564571 </para>
565572 </listitem>
573+ <listitem>
574+ <para>
575+ Due to the short lifetime of non-LTS kernel releases package attributes like <literal>linux_5_1</literal>,
576+ <literal>linux_5_2</literal> and <literal>linux_5_3</literal> have been removed to discourage dependence
577+ on specific non-LTS kernel versions in stable NixOS releases.
578+
579+ Going forward, versioned attributes like <literal>linux_4_9</literal> will exist for LTS versions only.
580+ Please use <literal>linux_latest</literal> or <literal>linux_testing</literal> if you depend on non-LTS
581+ releases. Keep in mind that <literal>linux_latest</literal> and <literal>linux_testing</literal> will
582+ change versions under the hood during the lifetime of a stable release and might include breaking changes.
583+ </para>
584+ </listitem>
585+ <listitem>
586+ <para>
587+ Because of the systemd upgrade,
588+ some network interfaces might change their name. For details see
589+ <link xlink:href="https://www.freedesktop.org/software/systemd/man/systemd.net-naming-scheme.html#History">
590+ upstream docs</link> or <link xlink:href="https://github.com/NixOS/nixpkgs/issues/71086">
591+ our ticket</link>.
592+ </para>
593+ </listitem>
566594 </itemizedlist>
567595 </section>
568596
nixos/doc/manual/release-notes/rl-2003.xml+71−2
@@ -49,6 +49,12 @@
4949 zfs as soon as any zfs mountpoint is configured in <varname>fileSystems</varname>.
5050 </para>
5151 </listitem>
52+ <listitem>
53+ <para>
54+ <command>nixos-option</command> has been rewritten in C++, speeding it up, improving correctness,
55+ and adding a <option>--all</option> option which prints all options and their values.
56+ </para>
57+ </listitem>
5258 </itemizedlist>
5359 </section>
5460
@@ -65,7 +71,11 @@
6571
6672 <itemizedlist>
6773 <listitem>
68− <para />
74+ <para>
75+ The kubernetes kube-proxy now supports a new hostname configuration
76+ <literal>services.kubernetes.proxy.hostname</literal> which has to
77+ be set if the hostname of the node should be non default.
78+ </para>
6979 </listitem>
7080 </itemizedlist>
7181
@@ -85,7 +95,58 @@
8595
8696 <itemizedlist>
8797 <listitem>
88− <para />
98+ <para>
99+ GnuPG is now built without support for a graphical passphrase entry
100+ by default. Please enable the <literal>gpg-agent</literal> user service
101+ via the NixOS option <literal>programs.gnupg.agent.enable</literal>.
102+ Note that upstream recommends using <literal>gpg-agent</literal> and
103+ will spawn a <literal>gpg-agent</literal> on the first invocation of
104+ GnuPG anyway.
105+ </para>
106+ </listitem>
107+ <listitem>
108+ <para>
109+ The <literal>dynamicHosts</literal> option has been removed from the
110+ <link linkend="opt-networking.networkmanager.enable">networkd</link>
111+ module. Allowing (multiple) regular users to override host entries
112+ affecting the whole system opens up a huge attack vector.
113+ There seem to be very rare cases where this might be useful.
114+ Consider setting system-wide host entries using
115+ <link linkend="opt-networking.hosts">networking.hosts</link>, provide
116+ them via the DNS server in your network, or use
117+ <link linkend="opt-environment.etc">environment.etc</link>
118+ to add a file into <literal>/etc/NetworkManager/dnsmasq.d</literal>
119+ reconfiguring <literal>hostsdir</literal>.
120+ </para>
121+ </listitem>
122+ <listitem>
123+ <para>
124+ The <literal>99-main.network</literal> file was removed. Maching all
125+ network interfaces caused many breakages, see
126+ <link xlink:href="https://github.com/NixOS/nixpkgs/pull/18962">#18962</link>
127+ and <link xlink:href="https://github.com/NixOS/nixpkgs/pull/71106">#71106</link>.
128+ </para>
129+ <para>
130+ We already don't support the global <link linkend="opt-networking.useDHCP">networking.useDHCP</link>,
131+ <link linkend="opt-networking.defaultGateway">networking.defaultGateway</link> and
132+ <link linkend="opt-networking.defaultGateway6">networking.defaultGateway6</link> options
133+ if <link linkend="opt-networking.useNetworkd">networking.useNetworkd</link> is enabled,
134+ but direct users to configure the per-device
135+ <link linkend="opt-networking.interfaces">networking.interfaces.<name>.…</link> options.
136+ </para>
137+ </listitem>
138+ <listitem>
139+ <para>
140+ The SLIM Display Manager has been removed, as it has been unmaintained since 2013.
141+ Consider migrating to a different display manager such as LightDM (current default in NixOS),
142+ SDDM, GDM, or using the startx module which uses Xinitrc.
143+ </para>
144+ </listitem>
145+ <listitem>
146+ <para>
147+ The BEAM package set has been deleted. You will only find there the different interpreters.
148+ You should now use the different build tools coming with the languages with sandbox mode disabled.
149+ </para>
89150 </listitem>
90151 </itemizedlist>
91152 </section>
@@ -101,6 +162,14 @@
101162 <listitem>
102163 <para>SD images are now compressed by default using <literal>bzip2</literal>.</para>
103164 </listitem>
165+ <listitem>
166+ <para>
167+ OpenSSH has been upgraded from 7.9 to 8.1, improving security and adding features
168+ but with potential incompatibilities. Consult the
169+ <link xlink:href="https://www.openssh.com/txt/release-8.1">
170+ release announcement</link> for more information.
171+ </para>
172+ </listitem>
104173 </itemizedlist>
105174 </section>
106175</section>
nixos/lib/test-driver/test-driver.pynew file+820
@@ -0,0 +1,820 @@
1+#! /somewhere/python3
2+from contextlib import contextmanager, _GeneratorContextManager
3+from xml.sax.saxutils import XMLGenerator
4+import _thread
5+import atexit
6+import json
7+import os
8+import ptpython.repl
9+import pty
10+from queue import Queue, Empty
11+import re
12+import shutil
13+import socket
14+import subprocess
15+import sys
16+import tempfile
17+import time
18+import unicodedata
19+from typing import Tuple, TextIO, Any, Callable, Dict, Iterator, Optional, List
20+
21+CHAR_TO_KEY = {
22+ "A": "shift-a",
23+ "N": "shift-n",
24+ "-": "0x0C",
25+ "_": "shift-0x0C",
26+ "B": "shift-b",
27+ "O": "shift-o",
28+ "=": "0x0D",
29+ "+": "shift-0x0D",
30+ "C": "shift-c",
31+ "P": "shift-p",
32+ "[": "0x1A",
33+ "{": "shift-0x1A",
34+ "D": "shift-d",
35+ "Q": "shift-q",
36+ "]": "0x1B",
37+ "}": "shift-0x1B",
38+ "E": "shift-e",
39+ "R": "shift-r",
40+ ";": "0x27",
41+ ":": "shift-0x27",
42+ "F": "shift-f",
43+ "S": "shift-s",
44+ "'": "0x28",
45+ '"': "shift-0x28",
46+ "G": "shift-g",
47+ "T": "shift-t",
48+ "`": "0x29",
49+ "~": "shift-0x29",
50+ "H": "shift-h",
51+ "U": "shift-u",
52+ "\\": "0x2B",
53+ "|": "shift-0x2B",
54+ "I": "shift-i",
55+ "V": "shift-v",
56+ ",": "0x33",
57+ "<": "shift-0x33",
58+ "J": "shift-j",
59+ "W": "shift-w",
60+ ".": "0x34",
61+ ">": "shift-0x34",
62+ "K": "shift-k",
63+ "X": "shift-x",
64+ "/": "0x35",
65+ "?": "shift-0x35",
66+ "L": "shift-l",
67+ "Y": "shift-y",
68+ " ": "spc",
69+ "M": "shift-m",
70+ "Z": "shift-z",
71+ "\n": "ret",
72+ "!": "shift-0x02",
73+ "@": "shift-0x03",
74+ "#": "shift-0x04",
75+ "$": "shift-0x05",
76+ "%": "shift-0x06",
77+ "^": "shift-0x07",
78+ "&": "shift-0x08",
79+ "*": "shift-0x09",
80+ "(": "shift-0x0A",
81+ ")": "shift-0x0B",
82+}
83+
84+# Forward references
85+nr_tests: int
86+nr_succeeded: int
87+log: "Logger"
88+machines: "List[Machine]"
89+
90+
91+def eprint(*args: object, **kwargs: Any) -> None:
92+ print(*args, file=sys.stderr, **kwargs)
93+
94+
95+def create_vlan(vlan_nr: str) -> Tuple[str, str, "subprocess.Popen[bytes]", Any]:
96+ global log
97+ log.log("starting VDE switch for network {}".format(vlan_nr))
98+ vde_socket = os.path.abspath("./vde{}.ctl".format(vlan_nr))
99+ pty_master, pty_slave = pty.openpty()
100+ vde_process = subprocess.Popen(
101+ ["vde_switch", "-s", vde_socket, "--dirmode", "0777"],
102+ bufsize=1,
103+ stdin=pty_slave,
104+ stdout=subprocess.PIPE,
105+ stderr=subprocess.PIPE,
106+ shell=False,
107+ )
108+ fd = os.fdopen(pty_master, "w")
109+ fd.write("version\n")
110+ # TODO: perl version checks if this can be read from
111+ # an if not, dies. we could hang here forever. Fix it.
112+ vde_process.stdout.readline()
113+ if not os.path.exists(os.path.join(vde_socket, "ctl")):
114+ raise Exception("cannot start vde_switch")
115+
116+ return (vlan_nr, vde_socket, vde_process, fd)
117+
118+
119+def retry(fn: Callable) -> None:
120+ """Call the given function repeatedly, with 1 second intervals,
121+ until it returns True or a timeout is reached.
122+ """
123+
124+ for _ in range(900):
125+ if fn(False):
126+ return
127+ time.sleep(1)
128+
129+ if not fn(True):
130+ raise Exception("action timed out")
131+
132+
133+class Logger:
134+ def __init__(self) -> None:
135+ self.logfile = os.environ.get("LOGFILE", "/dev/null")
136+ self.logfile_handle = open(self.logfile, "wb")
137+ self.xml = XMLGenerator(self.logfile_handle, encoding="utf-8")
138+ self.queue: "Queue[Dict[str, str]]" = Queue(1000)
139+
140+ self.xml.startDocument()
141+ self.xml.startElement("logfile", attrs={})
142+
143+ def close(self) -> None:
144+ self.xml.endElement("logfile")
145+ self.xml.endDocument()
146+ self.logfile_handle.close()
147+
148+ def sanitise(self, message: str) -> str:
149+ return "".join(ch for ch in message if unicodedata.category(ch)[0] != "C")
150+
151+ def maybe_prefix(self, message: str, attributes: Dict[str, str]) -> str:
152+ if "machine" in attributes:
153+ return "{}: {}".format(attributes["machine"], message)
154+ return message
155+
156+ def log_line(self, message: str, attributes: Dict[str, str]) -> None:
157+ self.xml.startElement("line", attributes)
158+ self.xml.characters(message)
159+ self.xml.endElement("line")
160+
161+ def log(self, message: str, attributes: Dict[str, str] = {}) -> None:
162+ eprint(self.maybe_prefix(message, attributes))
163+ self.drain_log_queue()
164+ self.log_line(message, attributes)
165+
166+ def enqueue(self, message: Dict[str, str]) -> None:
167+ self.queue.put(message)
168+
169+ def drain_log_queue(self) -> None:
170+ try:
171+ while True:
172+ item = self.queue.get_nowait()
173+ attributes = {"machine": item["machine"], "type": "serial"}
174+ self.log_line(self.sanitise(item["msg"]), attributes)
175+ except Empty:
176+ pass
177+
178+ @contextmanager
179+ def nested(self, message: str, attributes: Dict[str, str] = {}) -> Iterator[None]:
180+ eprint(self.maybe_prefix(message, attributes))
181+
182+ self.xml.startElement("nest", attrs={})
183+ self.xml.startElement("head", attributes)
184+ self.xml.characters(message)
185+ self.xml.endElement("head")
186+
187+ tic = time.time()
188+ self.drain_log_queue()
189+ yield
190+ self.drain_log_queue()
191+ toc = time.time()
192+ self.log("({:.2f} seconds)".format(toc - tic))
193+
194+ self.xml.endElement("nest")
195+
196+
197+class Machine:
198+ def __init__(self, args: Dict[str, Any]) -> None:
199+ if "name" in args:
200+ self.name = args["name"]
201+ else:
202+ self.name = "machine"
203+ cmd = args.get("startCommand", None)
204+ if cmd:
205+ match = re.search("run-(.+)-vm$", cmd)
206+ if match:
207+ self.name = match.group(1)
208+
209+ self.script = args.get("startCommand", self.create_startcommand(args))
210+
211+ tmp_dir = os.environ.get("TMPDIR", tempfile.gettempdir())
212+
213+ def create_dir(name: str) -> str:
214+ path = os.path.join(tmp_dir, name)
215+ os.makedirs(path, mode=0o700, exist_ok=True)
216+ return path
217+
218+ self.state_dir = create_dir("vm-state-{}".format(self.name))
219+ self.shared_dir = create_dir("xchg-shared")
220+
221+ self.booted = False
222+ self.connected = False
223+ self.pid: Optional[int] = None
224+ self.socket = None
225+ self.monitor: Optional[socket.socket] = None
226+ self.logger: Logger = args["log"]
227+ self.allow_reboot = args.get("allowReboot", False)
228+
229+ @staticmethod
230+ def create_startcommand(args: Dict[str, str]) -> str:
231+ net_backend = "-netdev user,id=net0"
232+ net_frontend = "-device virtio-net-pci,netdev=net0"
233+
234+ if "netBackendArgs" in args:
235+ net_backend += "," + args["netBackendArgs"]
236+
237+ if "netFrontendArgs" in args:
238+ net_frontend += "," + args["netFrontendArgs"]
239+
240+ start_command = (
241+ "qemu-kvm -m 384 " + net_backend + " " + net_frontend + " $QEMU_OPTS "
242+ )
243+
244+ if "hda" in args:
245+ hda_path = os.path.abspath(args["hda"])
246+ if args.get("hdaInterface", "") == "scsi":
247+ start_command += (
248+ "-drive id=hda,file="
249+ + hda_path
250+ + ",werror=report,if=none "
251+ + "-device scsi-hd,drive=hda "
252+ )
253+ else:
254+ start_command += (
255+ "-drive file="
256+ + hda_path
257+ + ",if="
258+ + args["hdaInterface"]
259+ + ",werror=report "
260+ )
261+
262+ if "cdrom" in args:
263+ start_command += "-cdrom " + args["cdrom"] + " "
264+
265+ if "usb" in args:
266+ start_command += (
267+ "-device piix3-usb-uhci -drive "
268+ + "id=usbdisk,file="
269+ + args["usb"]
270+ + ",if=none,readonly "
271+ + "-device usb-storage,drive=usbdisk "
272+ )
273+ if "bios" in args:
274+ start_command += "-bios " + args["bios"] + " "
275+
276+ start_command += args.get("qemuFlags", "")
277+
278+ return start_command
279+
280+ def is_up(self) -> bool:
281+ return self.booted and self.connected
282+
283+ def log(self, msg: str) -> None:
284+ self.logger.log(msg, {"machine": self.name})
285+
286+ def nested(self, msg: str, attrs: Dict[str, str] = {}) -> _GeneratorContextManager:
287+ my_attrs = {"machine": self.name}
288+ my_attrs.update(attrs)
289+ return self.logger.nested(msg, my_attrs)
290+
291+ def wait_for_monitor_prompt(self) -> str:
292+ assert self.monitor is not None
293+ while True:
294+ answer = self.monitor.recv(1024).decode()
295+ if answer.endswith("(qemu) "):
296+ return answer
297+
298+ def send_monitor_command(self, command: str) -> str:
299+ message = ("{}\n".format(command)).encode()
300+ self.log("sending monitor command: {}".format(command))
301+ assert self.monitor is not None
302+ self.monitor.send(message)
303+ return self.wait_for_monitor_prompt()
304+
305+ def wait_for_unit(self, unit: str, user: Optional[str] = None) -> bool:
306+ while True:
307+ info = self.get_unit_info(unit, user)
308+ state = info["ActiveState"]
309+ if state == "failed":
310+ raise Exception('unit "{}" reached state "{}"'.format(unit, state))
311+
312+ if state == "inactive":
313+ status, jobs = self.systemctl("list-jobs --full 2>&1", user)
314+ if "No jobs" in jobs:
315+ info = self.get_unit_info(unit, user)
316+ if info["ActiveState"] == state:
317+ raise Exception(
318+ (
319+ 'unit "{}" is inactive and there ' "are no pending jobs"
320+ ).format(unit)
321+ )
322+ if state == "active":
323+ return True
324+
325+ def get_unit_info(self, unit: str, user: Optional[str] = None) -> Dict[str, str]:
326+ status, lines = self.systemctl('--no-pager show "{}"'.format(unit), user)
327+ if status != 0:
328+ raise Exception(
329+ 'retrieving systemctl info for unit "{}" {} failed with exit code {}'.format(
330+ unit, "" if user is None else 'under user "{}"'.format(user), status
331+ )
332+ )
333+
334+ line_pattern = re.compile(r"^([^=]+)=(.*)$")
335+
336+ def tuple_from_line(line: str) -> Tuple[str, str]:
337+ match = line_pattern.match(line)
338+ assert match is not None
339+ return match[1], match[2]
340+
341+ return dict(
342+ tuple_from_line(line)
343+ for line in lines.split("\n")
344+ if line_pattern.match(line)
345+ )
346+
347+ def systemctl(self, q: str, user: Optional[str] = None) -> Tuple[int, str]:
348+ if user is not None:
349+ q = q.replace("'", "\\'")
350+ return self.execute(
351+ (
352+ "su -l {} -c "
353+ "$'XDG_RUNTIME_DIR=/run/user/`id -u` "
354+ "systemctl --user {}'"
355+ ).format(user, q)
356+ )
357+ return self.execute("systemctl {}".format(q))
358+
359+ def require_unit_state(self, unit: str, require_state: str = "active") -> None:
360+ with self.nested(
361+ "checking if unit ‘{}’ has reached state '{}'".format(unit, require_state)
362+ ):
363+ info = self.get_unit_info(unit)
364+ state = info["ActiveState"]
365+ if state != require_state:
366+ raise Exception(
367+ "Expected unit ‘{}’ to to be in state ".format(unit)
368+ + "'active' but it is in state ‘{}’".format(state)
369+ )
370+
371+ def execute(self, command: str) -> Tuple[int, str]:
372+ self.connect()
373+
374+ out_command = "( {} ); echo '|!EOF' $?\n".format(command)
375+ self.shell.send(out_command.encode())
376+
377+ output = ""
378+ status_code_pattern = re.compile(r"(.*)\|\!EOF\s+(\d+)")
379+
380+ while True:
381+ chunk = self.shell.recv(4096).decode()
382+ match = status_code_pattern.match(chunk)
383+ if match:
384+ output += match[1]
385+ status_code = int(match[2])
386+ return (status_code, output)
387+ output += chunk
388+
389+ def succeed(self, *commands: str) -> str:
390+ """Execute each command and check that it succeeds."""
391+ output = ""
392+ for command in commands:
393+ with self.nested("must succeed: {}".format(command)):
394+ (status, out) = self.execute(command)
395+ if status != 0:
396+ self.log("output: {}".format(out))
397+ raise Exception(
398+ "command `{}` failed (exit code {})".format(command, status)
399+ )
400+ output += out
401+ return output
402+
403+ def fail(self, *commands: str) -> None:
404+ """Execute each command and check that it fails."""
405+ for command in commands:
406+ with self.nested("must fail: {}".format(command)):
407+ status, output = self.execute(command)
408+ if status == 0:
409+ raise Exception(
410+ "command `{}` unexpectedly succeeded".format(command)
411+ )
412+
413+ def wait_until_succeeds(self, command: str) -> str:
414+ with self.nested("waiting for success: {}".format(command)):
415+ while True:
416+ status, output = self.execute(command)
417+ if status == 0:
418+ return output
419+
420+ def wait_until_fails(self, command: str) -> str:
421+ with self.nested("waiting for failure: {}".format(command)):
422+ while True:
423+ status, output = self.execute(command)
424+ if status != 0:
425+ return output
426+
427+ def wait_for_shutdown(self) -> None:
428+ if not self.booted:
429+ return
430+
431+ with self.nested("waiting for the VM to power off"):
432+ sys.stdout.flush()
433+ self.process.wait()
434+
435+ self.pid = None
436+ self.booted = False
437+ self.connected = False
438+
439+ def get_tty_text(self, tty: str) -> str:
440+ status, output = self.execute(
441+ "fold -w$(stty -F /dev/tty{0} size | "
442+ "awk '{{print $2}}') /dev/vcs{0}".format(tty)
443+ )
444+ return output
445+
446+ def wait_until_tty_matches(self, tty: str, regexp: str) -> bool:
447+ matcher = re.compile(regexp)
448+ with self.nested("waiting for {} to appear on tty {}".format(regexp, tty)):
449+ while True:
450+ text = self.get_tty_text(tty)
451+ if len(matcher.findall(text)) > 0:
452+ return True
453+
454+ def send_chars(self, chars: List[str]) -> None:
455+ with self.nested("sending keys ‘{}‘".format(chars)):
456+ for char in chars:
457+ self.send_key(char)
458+
459+ def wait_for_file(self, filename: str) -> bool:
460+ with self.nested("waiting for file ‘{}‘".format(filename)):
461+ while True:
462+ status, _ = self.execute("test -e {}".format(filename))
463+ if status == 0:
464+ return True
465+
466+ def wait_for_open_port(self, port: int) -> None:
467+ def port_is_open(_: Any) -> bool:
468+ status, _ = self.execute("nc -z localhost {}".format(port))
469+ return status == 0
470+
471+ with self.nested("waiting for TCP port {}".format(port)):
472+ retry(port_is_open)
473+
474+ def wait_for_closed_port(self, port: int) -> None:
475+ def port_is_closed(_: Any) -> bool:
476+ status, _ = self.execute("nc -z localhost {}".format(port))
477+ return status != 0
478+
479+ retry(port_is_closed)
480+
481+ def start_job(self, jobname: str, user: Optional[str] = None) -> Tuple[int, str]:
482+ return self.systemctl("start {}".format(jobname), user)
483+
484+ def stop_job(self, jobname: str, user: Optional[str] = None) -> Tuple[int, str]:
485+ return self.systemctl("stop {}".format(jobname), user)
486+
487+ def wait_for_job(self, jobname: str) -> bool:
488+ return self.wait_for_unit(jobname)
489+
490+ def connect(self) -> None:
491+ if self.connected:
492+ return
493+
494+ with self.nested("waiting for the VM to finish booting"):
495+ self.start()
496+
497+ tic = time.time()
498+ self.shell.recv(1024)
499+ # TODO: Timeout
500+ toc = time.time()
501+
502+ self.log("connected to guest root shell")
503+ self.log("(connecting took {:.2f} seconds)".format(toc - tic))
504+ self.connected = True
505+
506+ def screenshot(self, filename: str) -> None:
507+ out_dir = os.environ.get("out", os.getcwd())
508+ word_pattern = re.compile(r"^\w+$")
509+ if word_pattern.match(filename):
510+ filename = os.path.join(out_dir, "{}.png".format(filename))
511+ tmp = "{}.ppm".format(filename)
512+
513+ with self.nested(
514+ "making screenshot {}".format(filename),
515+ {"image": os.path.basename(filename)},
516+ ):
517+ self.send_monitor_command("screendump {}".format(tmp))
518+ ret = subprocess.run("pnmtopng {} > {}".format(tmp, filename), shell=True)
519+ os.unlink(tmp)
520+ if ret.returncode != 0:
521+ raise Exception("Cannot convert screenshot")
522+
523+ def dump_tty_contents(self, tty: str) -> None:
524+ """Debugging: Dump the contents of the TTY<n>
525+ """
526+ self.execute("fold -w 80 /dev/vcs{} | systemd-cat".format(tty))
527+
528+ def get_screen_text(self) -> str:
529+ if shutil.which("tesseract") is None:
530+ raise Exception("get_screen_text used but enableOCR is false")
531+
532+ magick_args = (
533+ "-filter Catrom -density 72 -resample 300 "
534+ + "-contrast -normalize -despeckle -type grayscale "
535+ + "-sharpen 1 -posterize 3 -negate -gamma 100 "
536+ + "-blur 1x65535"
537+ )
538+
539+ tess_args = "-c debug_file=/dev/null --psm 11 --oem 2"
540+
541+ with self.nested("performing optical character recognition"):
542+ with tempfile.NamedTemporaryFile() as tmpin:
543+ self.send_monitor_command("screendump {}".format(tmpin.name))
544+
545+ cmd = "convert {} {} tiff:- | tesseract - - {}".format(
546+ magick_args, tmpin.name, tess_args
547+ )
548+ ret = subprocess.run(cmd, shell=True, capture_output=True)
549+ if ret.returncode != 0:
550+ raise Exception(
551+ "OCR failed with exit code {}".format(ret.returncode)
552+ )
553+
554+ return ret.stdout.decode("utf-8")
555+
556+ def wait_for_text(self, regex: str) -> None:
557+ def screen_matches(last: bool) -> bool:
558+ text = self.get_screen_text()
559+ matches = re.search(regex, text) is not None
560+
561+ if last and not matches:
562+ self.log("Last OCR attempt failed. Text was: {}".format(text))
563+
564+ return matches
565+
566+ with self.nested("waiting for {} to appear on screen".format(regex)):
567+ retry(screen_matches)
568+
569+ def send_key(self, key: str) -> None:
570+ key = CHAR_TO_KEY.get(key, key)
571+ self.send_monitor_command("sendkey {}".format(key))
572+
573+ def start(self) -> None:
574+ if self.booted:
575+ return
576+
577+ self.log("starting vm")
578+
579+ def create_socket(path: str) -> socket.socket:
580+ if os.path.exists(path):
581+ os.unlink(path)
582+ s = socket.socket(family=socket.AF_UNIX, type=socket.SOCK_STREAM)
583+ s.bind(path)
584+ s.listen(1)
585+ return s
586+
587+ monitor_path = os.path.join(self.state_dir, "monitor")
588+ self.monitor_socket = create_socket(monitor_path)
589+
590+ shell_path = os.path.join(self.state_dir, "shell")
591+ self.shell_socket = create_socket(shell_path)
592+
593+ qemu_options = (
594+ " ".join(
595+ [
596+ "" if self.allow_reboot else "-no-reboot",
597+ "-monitor unix:{}".format(monitor_path),
598+ "-chardev socket,id=shell,path={}".format(shell_path),
599+ "-device virtio-serial",
600+ "-device virtconsole,chardev=shell",
601+ "-device virtio-rng-pci",
602+ "-serial stdio" if "DISPLAY" in os.environ else "-nographic",
603+ ]
604+ )
605+ + " "
606+ + os.environ.get("QEMU_OPTS", "")
607+ )
608+
609+ environment = {
610+ "QEMU_OPTS": qemu_options,
611+ "SHARED_DIR": self.shared_dir,
612+ "USE_TMPDIR": "1",
613+ }
614+ environment.update(dict(os.environ))
615+
616+ self.process = subprocess.Popen(
617+ self.script,
618+ bufsize=1,
619+ stdin=subprocess.DEVNULL,
620+ stdout=subprocess.PIPE,
621+ stderr=subprocess.STDOUT,
622+ shell=True,
623+ cwd=self.state_dir,
624+ env=environment,
625+ )
626+ self.monitor, _ = self.monitor_socket.accept()
627+ self.shell, _ = self.shell_socket.accept()
628+
629+ def process_serial_output() -> None:
630+ for _line in self.process.stdout:
631+ line = _line.decode("unicode_escape").replace("\r", "").rstrip()
632+ eprint("{} # {}".format(self.name, line))
633+ self.logger.enqueue({"msg": line, "machine": self.name})
634+
635+ _thread.start_new_thread(process_serial_output, ())
636+
637+ self.wait_for_monitor_prompt()
638+
639+ self.pid = self.process.pid
640+ self.booted = True
641+
642+ self.log("QEMU running (pid {})".format(self.pid))
643+
644+ def shutdown(self) -> None:
645+ if not self.booted:
646+ return
647+
648+ self.shell.send("poweroff\n".encode())
649+ self.wait_for_shutdown()
650+
651+ def crash(self) -> None:
652+ if not self.booted:
653+ return
654+
655+ self.log("forced crash")
656+ self.send_monitor_command("quit")
657+ self.wait_for_shutdown()
658+
659+ def wait_for_x(self) -> None:
660+ """Wait until it is possible to connect to the X server. Note that
661+ testing the existence of /tmp/.X11-unix/X0 is insufficient.
662+ """
663+ with self.nested("waiting for the X11 server"):
664+ while True:
665+ cmd = (
666+ "journalctl -b SYSLOG_IDENTIFIER=systemd | "
667+ + 'grep "Reached target Current graphical"'
668+ )
669+ status, _ = self.execute(cmd)
670+ if status != 0:
671+ continue
672+ status, _ = self.execute("[ -e /tmp/.X11-unix/X0 ]")
673+ if status == 0:
674+ return
675+
676+ def get_window_names(self) -> List[str]:
677+ return self.succeed(
678+ r"xwininfo -root -tree | sed 's/.*0x[0-9a-f]* \"\([^\"]*\)\".*/\1/; t; d'"
679+ ).splitlines()
680+
681+ def wait_for_window(self, regexp: str) -> None:
682+ pattern = re.compile(regexp)
683+
684+ def window_is_visible(last_try: bool) -> bool:
685+ names = self.get_window_names()
686+ if last_try:
687+ self.log(
688+ "Last chance to match {} on the window list,".format(regexp)
689+ + " which currently contains: "
690+ + ", ".join(names)
691+ )
692+ return any(pattern.search(name) for name in names)
693+
694+ with self.nested("Waiting for a window to appear"):
695+ retry(window_is_visible)
696+
697+ def sleep(self, secs: int) -> None:
698+ time.sleep(secs)
699+
700+ def forward_port(self, host_port: int = 8080, guest_port: int = 80) -> None:
701+ """Forward a TCP port on the host to a TCP port on the guest.
702+ Useful during interactive testing.
703+ """
704+ self.send_monitor_command(
705+ "hostfwd_add tcp::{}-:{}".format(host_port, guest_port)
706+ )
707+
708+ def block(self) -> None:
709+ """Make the machine unreachable by shutting down eth1 (the multicast
710+ interface used to talk to the other VMs). We keep eth0 up so that
711+ the test driver can continue to talk to the machine.
712+ """
713+ self.send_monitor_command("set_link virtio-net-pci.1 off")
714+
715+ def unblock(self) -> None:
716+ """Make the machine reachable.
717+ """
718+ self.send_monitor_command("set_link virtio-net-pci.1 on")
719+
720+
721+def create_machine(args: Dict[str, Any]) -> Machine:
722+ global log
723+ args["log"] = log
724+ args["redirectSerial"] = os.environ.get("USE_SERIAL", "0") == "1"
725+ return Machine(args)
726+
727+
728+def start_all() -> None:
729+ global machines
730+ with log.nested("starting all VMs"):
731+ for machine in machines:
732+ machine.start()
733+
734+
735+def join_all() -> None:
736+ global machines
737+ with log.nested("waiting for all VMs to finish"):
738+ for machine in machines:
739+ machine.wait_for_shutdown()
740+
741+
742+def test_script() -> None:
743+ exec(os.environ["testScript"])
744+
745+
746+def run_tests() -> None:
747+ global machines
748+ tests = os.environ.get("tests", None)
749+ if tests is not None:
750+ with log.nested("running the VM test script"):
751+ try:
752+ exec(tests)
753+ except Exception as e:
754+ eprint("error: {}".format(str(e)))
755+ sys.exit(1)
756+ else:
757+ ptpython.repl.embed(locals(), globals())
758+
759+ # TODO: Collect coverage data
760+
761+ for machine in machines:
762+ if machine.is_up():
763+ machine.execute("sync")
764+
765+ if nr_tests != 0:
766+ log.log("{} out of {} tests succeeded".format(nr_succeeded, nr_tests))
767+
768+
769+@contextmanager
770+def subtest(name: str) -> Iterator[None]:
771+ global nr_tests
772+ global nr_succeeded
773+
774+ with log.nested(name):
775+ nr_tests += 1
776+ try:
777+ yield
778+ nr_succeeded += 1
779+ return True
780+ except Exception as e:
781+ log.log("error: {}".format(str(e)))
782+
783+ return False
784+
785+
786+if __name__ == "__main__":
787+ log = Logger()
788+
789+ vlan_nrs = list(dict.fromkeys(os.environ["VLANS"].split()))
790+ vde_sockets = [create_vlan(v) for v in vlan_nrs]
791+ for nr, vde_socket, _, _ in vde_sockets:
792+ os.environ["QEMU_VDE_SOCKET_{}".format(nr)] = vde_socket
793+
794+ vm_scripts = sys.argv[1:]
795+ machines = [create_machine({"startCommand": s}) for s in vm_scripts]
796+ machine_eval = [
797+ "{0} = machines[{1}]".format(m.name, idx) for idx, m in enumerate(machines)
798+ ]
799+ exec("\n".join(machine_eval))
800+
801+ nr_tests = 0
802+ nr_succeeded = 0
803+
804+ @atexit.register
805+ def clean_up() -> None:
806+ with log.nested("cleaning up"):
807+ for machine in machines:
808+ if machine.pid is None:
809+ continue
810+ log.log("killing {} (pid {})".format(machine.name, machine.pid))
811+ machine.process.kill()
812+
813+ for _, _, process, _ in vde_sockets:
814+ process.kill()
815+ log.close()
816+
817+ tic = time.time()
818+ run_tests()
819+ toc = time.time()
820+ print("test script finished in {:.2f}s".format(toc - tic))
nixos/lib/testing-python.nixnew file+281
@@ -0,0 +1,281 @@
1+{ system
2+, pkgs ? import ../.. { inherit system config; }
3+ # Use a minimal kernel?
4+, minimal ? false
5+ # Ignored
6+, config ? {}
7+ # Modules to add to each VM
8+, extraConfigurations ? [] }:
9+
10+with import ./build-vms.nix { inherit system pkgs minimal extraConfigurations; };
11+with pkgs;
12+
13+let
14+ jquery-ui = callPackage ./testing/jquery-ui.nix { };
15+ jquery = callPackage ./testing/jquery.nix { };
16+
17+in rec {
18+
19+ inherit pkgs;
20+
21+
22+ testDriver = let
23+ testDriverScript = ./test-driver/test-driver.py;
24+ in stdenv.mkDerivation {
25+ name = "nixos-test-driver";
26+
27+ nativeBuildInputs = [ makeWrapper ];
28+ buildInputs = [ (python3.withPackages (p: [ p.ptpython ])) ];
29+ checkInputs = with python3Packages; [ pylint black mypy ];
30+
31+ dontUnpack = true;
32+
33+ preferLocalBuild = true;
34+
35+ doCheck = true;
36+ checkPhase = ''
37+ mypy --disallow-untyped-defs \
38+ --no-implicit-optional \
39+ --ignore-missing-imports ${testDriverScript}
40+ pylint --errors-only ${testDriverScript}
41+ black --check --diff ${testDriverScript}
42+ '';
43+
44+ installPhase =
45+ ''
46+ mkdir -p $out/bin
47+ cp ${testDriverScript} $out/bin/nixos-test-driver
48+ chmod u+x $out/bin/nixos-test-driver
49+ # TODO: copy user script part into this file (append)
50+
51+ wrapProgram $out/bin/nixos-test-driver \
52+ --prefix PATH : "${lib.makeBinPath [ qemu_test vde2 netpbm coreutils ]}" \
53+ '';
54+ };
55+
56+
57+ # Run an automated test suite in the given virtual network.
58+ # `driver' is the script that runs the network.
59+ runTests = driver:
60+ stdenv.mkDerivation {
61+ name = "vm-test-run-${driver.testName}";
62+
63+ requiredSystemFeatures = [ "kvm" "nixos-test" ];
64+
65+ buildInputs = [ libxslt ];
66+
67+ buildCommand =
68+ ''
69+ mkdir -p $out/nix-support
70+
71+ LOGFILE=$out/log.xml tests='exec(os.environ["testScript"])' ${driver}/bin/nixos-test-driver
72+
73+ # Generate a pretty-printed log.
74+ xsltproc --output $out/log.html ${./test-driver/log2html.xsl} $out/log.xml
75+ ln -s ${./test-driver/logfile.css} $out/logfile.css
76+ ln -s ${./test-driver/treebits.js} $out/treebits.js
77+ ln -s ${jquery}/js/jquery.min.js $out/
78+ ln -s ${jquery}/js/jquery.js $out/
79+ ln -s ${jquery-ui}/js/jquery-ui.min.js $out/
80+ ln -s ${jquery-ui}/js/jquery-ui.js $out/
81+
82+ touch $out/nix-support/hydra-build-products
83+ echo "report testlog $out log.html" >> $out/nix-support/hydra-build-products
84+
85+ for i in */xchg/coverage-data; do
86+ mkdir -p $out/coverage-data
87+ mv $i $out/coverage-data/$(dirname $(dirname $i))
88+ done
89+ '';
90+ };
91+
92+
93+ makeTest =
94+ { testScript
95+ , makeCoverageReport ? false
96+ , enableOCR ? false
97+ , name ? "unnamed"
98+ , ...
99+ } @ t:
100+
101+ let
102+ # A standard store path to the vm monitor is built like this:
103+ # /tmp/nix-build-vm-test-run-$name.drv-0/vm-state-machine/monitor
104+ # The max filename length of a unix domain socket is 108 bytes.
105+ # This means $name can at most be 50 bytes long.
106+ maxTestNameLen = 50;
107+ testNameLen = builtins.stringLength name;
108+
109+ testDriverName = with builtins;
110+ if testNameLen > maxTestNameLen then
111+ abort ("The name of the test '${name}' must not be longer than ${toString maxTestNameLen} " +
112+ "it's currently ${toString testNameLen} characters long.")
113+ else
114+ "nixos-test-driver-${name}";
115+
116+ nodes = buildVirtualNetwork (
117+ t.nodes or (if t ? machine then { machine = t.machine; } else { }));
118+
119+ testScript' =
120+ # Call the test script with the computed nodes.
121+ if lib.isFunction testScript
122+ then testScript { inherit nodes; }
123+ else testScript;
124+
125+ vlans = map (m: m.config.virtualisation.vlans) (lib.attrValues nodes);
126+
127+ vms = map (m: m.config.system.build.vm) (lib.attrValues nodes);
128+
129+ ocrProg = tesseract4.override { enableLanguages = [ "eng" ]; };
130+
131+ imagemagick_tiff = imagemagick_light.override { inherit libtiff; };
132+
133+ # Generate onvenience wrappers for running the test driver
134+ # interactively with the specified network, and for starting the
135+ # VMs from the command line.
136+ driver = runCommand testDriverName
137+ { buildInputs = [ makeWrapper];
138+ testScript = testScript';
139+ preferLocalBuild = true;
140+ testName = name;
141+ }
142+ ''
143+ mkdir -p $out/bin
144+
145+ echo -n "$testScript" > $out/test-script
146+ ${python3Packages.black}/bin/black --check --diff $out/test-script
147+
148+ ln -s ${testDriver}/bin/nixos-test-driver $out/bin/
149+ vms=($(for i in ${toString vms}; do echo $i/bin/run-*-vm; done))
150+ wrapProgram $out/bin/nixos-test-driver \
151+ --add-flags "''${vms[*]}" \
152+ ${lib.optionalString enableOCR
153+ "--prefix PATH : '${ocrProg}/bin:${imagemagick_tiff}/bin'"} \
154+ --run "export testScript=\"\$(cat $out/test-script)\"" \
155+ --set VLANS '${toString vlans}'
156+ ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms
157+ wrapProgram $out/bin/nixos-run-vms \
158+ --add-flags "''${vms[*]}" \
159+ ${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \
160+ --set tests 'start_all(); join_all();' \
161+ --set VLANS '${toString vlans}' \
162+ ${lib.optionalString (builtins.length vms == 1) "--set USE_SERIAL 1"}
163+ ''; # "
164+
165+ passMeta = drv: drv // lib.optionalAttrs (t ? meta) {
166+ meta = (drv.meta or {}) // t.meta;
167+ };
168+
169+ test = passMeta (runTests driver);
170+ report = passMeta (releaseTools.gcovReport { coverageRuns = [ test ]; });
171+
172+ nodeNames = builtins.attrNames nodes;
173+ invalidNodeNames = lib.filter
174+ (node: builtins.match "^[A-z_][A-z0-9_]+$" node == null) nodeNames;
175+
176+ in
177+ if lib.length invalidNodeNames > 0 then
178+ throw ''
179+ Cannot create machines out of (${lib.concatStringsSep ", " invalidNodeNames})!
180+ All machines are referenced as perl variables in the testing framework which will break the
181+ script when special characters are used.
182+
183+ Please stick to alphanumeric chars and underscores as separation.
184+ ''
185+ else
186+ (if makeCoverageReport then report else test) // {
187+ inherit nodes driver test;
188+ };
189+
190+ runInMachine =
191+ { drv
192+ , machine
193+ , preBuild ? ""
194+ , postBuild ? ""
195+ , ... # ???
196+ }:
197+ let
198+ vm = buildVM { }
199+ [ machine
200+ { key = "run-in-machine";
201+ networking.hostName = "client";
202+ nix.readOnlyStore = false;
203+ virtualisation.writableStore = false;
204+ }
205+ ];
206+
207+ buildrunner = writeText "vm-build" ''
208+ source $1
209+
210+ ${coreutils}/bin/mkdir -p $TMPDIR
211+ cd $TMPDIR
212+
213+ exec $origBuilder $origArgs
214+ '';
215+
216+ testScript = ''
217+ startAll;
218+ $client->waitForUnit("multi-user.target");
219+ ${preBuild}
220+ $client->succeed("env -i ${bash}/bin/bash ${buildrunner} /tmp/xchg/saved-env >&2");
221+ ${postBuild}
222+ $client->succeed("sync"); # flush all data before pulling the plug
223+ '';
224+
225+ vmRunCommand = writeText "vm-run" ''
226+ xchg=vm-state-client/xchg
227+ ${coreutils}/bin/mkdir $out
228+ ${coreutils}/bin/mkdir -p $xchg
229+
230+ for i in $passAsFile; do
231+ i2=''${i}Path
232+ _basename=$(${coreutils}/bin/basename ''${!i2})
233+ ${coreutils}/bin/cp ''${!i2} $xchg/$_basename
234+ eval $i2=/tmp/xchg/$_basename
235+ ${coreutils}/bin/ls -la $xchg
236+ done
237+
238+ unset i i2 _basename
239+ export | ${gnugrep}/bin/grep -v '^xchg=' > $xchg/saved-env
240+ unset xchg
241+
242+ export tests='${testScript}'
243+ ${testDriver}/bin/nixos-test-driver ${vm.config.system.build.vm}/bin/run-*-vm
244+ ''; # */
245+
246+ in
247+ lib.overrideDerivation drv (attrs: {
248+ requiredSystemFeatures = [ "kvm" ];
249+ builder = "${bash}/bin/sh";
250+ args = ["-e" vmRunCommand];
251+ origArgs = attrs.args;
252+ origBuilder = attrs.builder;
253+ });
254+
255+
256+ runInMachineWithX = { require ? [], ... } @ args:
257+ let
258+ client =
259+ { ... }:
260+ {
261+ inherit require;
262+ virtualisation.memorySize = 1024;
263+ services.xserver.enable = true;
264+ services.xserver.displayManager.auto.enable = true;
265+ services.xserver.windowManager.default = "icewm";
266+ services.xserver.windowManager.icewm.enable = true;
267+ services.xserver.desktopManager.default = "none";
268+ };
269+ in
270+ runInMachine ({
271+ machine = client;
272+ preBuild =
273+ ''
274+ $client->waitForX;
275+ '';
276+ } // args);
277+
278+
279+ simpleTest = as: (makeTest as).test;
280+
281+}
nixos/lib/testing.nix−1
@@ -248,7 +248,6 @@ in rec {
248248 inherit require;
249249 virtualisation.memorySize = 1024;
250250 services.xserver.enable = true;
251− services.xserver.displayManager.slim.enable = false;
252251 services.xserver.displayManager.auto.enable = true;
253252 services.xserver.windowManager.default = "icewm";
254253 services.xserver.windowManager.icewm.enable = true;
nixos/maintainers/scripts/ec2/create-amis.sh+1−1
@@ -14,7 +14,7 @@
1414set -euo pipefail
1515
1616# configuration
17−state_dir=/home/deploy/amis/ec2-images
17+state_dir=$HOME/amis/ec2-images
1818home_region=eu-west-1
1919bucket=nixos-amis
2020
nixos/maintainers/scripts/gce/create-gce.sh+1−1
@@ -15,7 +15,7 @@ nix-build '<nixpkgs/nixos/lib/eval-config.nix>' \
1515 -j 10
1616
1717img_path=$(echo gce/*.tar.gz)
18−img_name=$(basename "$img_path")
18+img_name=${IMAGE_NAME:-$(basename "$img_path")}
1919img_id=$(echo "$img_name" | sed 's|.raw.tar.gz$||;s|\.|-|g;s|_|-|g')
2020if ! gsutil ls "gs://${BUCKET_NAME}/$img_name"; then
2121 gsutil cp "$img_path" "gs://${BUCKET_NAME}/$img_name"
nixos/modules/config/fonts/corefonts.nixdeleted−36
@@ -1,36 +0,0 @@
1−# This module is deprecated, since you can just say ‘fonts.fonts = [
2−# pkgs.corefonts ];’ instead.
3−
4−{ config, lib, pkgs, ... }:
5−
6−with lib;
7−
8−{
9−
10− options = {
11−
12− fonts = {
13−
14− enableCoreFonts = mkOption {
15− visible = false;
16− default = false;
17− description = ''
18− Whether to include Microsoft's proprietary Core Fonts. These fonts
19− are redistributable, but only verbatim, among other restrictions.
20− See <link xlink:href="http://corefonts.sourceforge.net/eula.htm"/>
21− for details.
22− '';
23− };
24−
25− };
26−
27− };
28−
29−
30− config = mkIf config.fonts.enableCoreFonts {
31−
32− fonts.fonts = [ pkgs.corefonts ];
33−
34− };
35−
36−}
nixos/modules/config/fonts/fontconfig-ultimate.nixdeleted−86
@@ -1,86 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−with lib;
4−
5−let cfg = config.fonts.fontconfig.ultimate;
6−
7− latestVersion = pkgs.fontconfig.configVersion;
8−
9− # The configuration to be included in /etc/font/
10− confPkg = pkgs.runCommand "font-ultimate-conf" { preferLocalBuild = true; } ''
11− support_folder=$out/etc/fonts/conf.d
12− latest_folder=$out/etc/fonts/${latestVersion}/conf.d
13−
14− mkdir -p $support_folder
15− mkdir -p $latest_folder
16−
17− # fontconfig ultimate substitutions
18− ${optionalString (cfg.substitutions != "none") ''
19− ln -s ${pkgs.fontconfig-ultimate}/etc/fonts/presets/${cfg.substitutions}/*.conf \
20− $support_folder
21− ln -s ${pkgs.fontconfig-ultimate}/etc/fonts/presets/${cfg.substitutions}/*.conf \
22− $latest_folder
23− ''}
24−
25− # fontconfig ultimate various configuration files
26− ln -s ${pkgs.fontconfig-ultimate}/etc/fonts/conf.d/*.conf \
27− $support_folder
28− ln -s ${pkgs.fontconfig-ultimate}/etc/fonts/conf.d/*.conf \
29− $latest_folder
30− '';
31−
32−in
33−{
34−
35− options = {
36−
37− fonts = {
38−
39− fontconfig = {
40−
41− ultimate = {
42− enable = mkOption {
43− type = types.bool;
44− default = false;
45− description = ''
46− Enable fontconfig-ultimate settings (formerly known as
47− Infinality). Besides the customizable settings in this NixOS
48− module, fontconfig-ultimate also provides many font-specific
49− rendering tweaks.
50− '';
51− };
52−
53− substitutions = mkOption {
54− type = types.enum ["free" "combi" "ms" "none"];
55− default = "free";
56− description = ''
57− Font substitutions to replace common Type 1 fonts with nicer
58− TrueType fonts. <literal>free</literal> uses free fonts,
59− <literal>ms</literal> uses Microsoft fonts,
60− <literal>combi</literal> uses a combination, and
61− <literal>none</literal> disables the substitutions.
62− '';
63− };
64−
65− preset = mkOption {
66− type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"];
67− default = "ultimate3";
68− description = ''
69− FreeType rendering settings preset. Any of the presets may be
70− customized by setting environment variables.
71− '';
72− };
73− };
74− };
75− };
76−
77− };
78−
79− config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
80−
81− fonts.fontconfig.confPackages = [ confPkg ];
82− environment.variables.INFINALITY_FT = cfg.preset;
83−
84− };
85−
86−}
nixos/modules/config/i18n.nix+1−5
@@ -89,11 +89,7 @@ with lib;
8989 };
9090
9191 consoleKeyMap = mkOption {
92− type = mkOptionType {
93− name = "string or path";
94− check = t: (isString t || types.path.check t);
95− };
96−
92+ type = with types; either str path;
9793 default = "us";
9894 example = "fr";
9995 description = ''
nixos/modules/config/no-x-libs.nix−1
@@ -34,7 +34,6 @@ with lib;
3434 networkmanager-openvpn = super.networkmanager-openvpn.override { withGnome = false; };
3535 networkmanager-vpnc = super.networkmanager-vpnc.override { withGnome = false; };
3636 networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; };
37− pinentry = super.pinentry.override { gtk2 = null; gcr = null; qt4 = null; qt5 = null; };
3837 gobject-introspection = super.gobject-introspection.override { x11Support = false; };
3938 }));
4039 };
nixos/modules/config/pulseaudio.nix+3−2
@@ -98,11 +98,12 @@ in {
9898 description = ''
9999 If false, a PulseAudio server is launched automatically for
100100 each user that tries to use the sound system. The server runs
101− with user privileges. This is the recommended and most secure
102− way to use PulseAudio. If true, one system-wide PulseAudio
101+ with user privileges. If true, one system-wide PulseAudio
103102 server is launched on boot, running as the user "pulse", and
104103 only users in the "audio" group will have access to the server.
105104 Please read the PulseAudio documentation for more details.
105+
106+ Don't enable this option unless you know what you are doing.
106107 '';
107108 };
108109
nixos/modules/config/shells-environment.nix+12−2
@@ -118,6 +118,14 @@ in
118118 type = with types; attrsOf (nullOr (either str path));
119119 };
120120
121+ environment.homeBinInPath = mkOption {
122+ description = ''
123+ Include ~/bin/ in $PATH.
124+ '';
125+ default = true;
126+ type = types.bool;
127+ };
128+
121129 environment.binsh = mkOption {
122130 default = "${config.system.build.binsh}/bin/sh";
123131 defaultText = "\${config.system.build.binsh}/bin/sh";
@@ -186,8 +194,10 @@ in
186194
187195 ${cfg.extraInit}
188196
189− # ~/bin if it exists overrides other bin directories.
190− export PATH="$HOME/bin:$PATH"
197+ ${optionalString cfg.homeBinInPath ''
198+ # ~/bin if it exists overrides other bin directories.
199+ export PATH="$HOME/bin:$PATH"
200+ ''}
191201 '';
192202
193203 system.activationScripts.binsh = stringAfter [ "stdio" ]
nixos/modules/config/update-users-groups.pl+2−2
@@ -56,12 +56,12 @@ sub allocGid {
5656 $gidsUsed{$prevGid} = 1;
5757 return $prevGid;
5858 }
59− return allocId(\%gidsUsed, \%gidsPrevUsed, 400, 499, 0, sub { my ($gid) = @_; getgrgid($gid) });
59+ return allocId(\%gidsUsed, \%gidsPrevUsed, 400, 999, 0, sub { my ($gid) = @_; getgrgid($gid) });
6060}
6161
6262sub allocUid {
6363 my ($name, $isSystemUser) = @_;
64− my ($min, $max, $up) = $isSystemUser ? (400, 499, 0) : (1000, 29999, 1);
64+ my ($min, $max, $up) = $isSystemUser ? (400, 999, 0) : (1000, 29999, 1);
6565 my $prevUid = $uidMap->{$name};
6666 if (defined $prevUid && $prevUid >= $min && $prevUid <= $max && !defined $uidsUsed{$prevUid}) {
6767 print STDERR "reviving user '$name' with UID $prevUid\n";
nixos/modules/config/users-groups.nix+1−1
@@ -251,7 +251,7 @@ let
251251 default = [];
252252 example = literalExample "[ pkgs.firefox pkgs.thunderbird ]";
253253 description = ''
254− The set of packages that should be made availabe to the user.
254+ The set of packages that should be made available to the user.
255255 This is in contrast to <option>environment.systemPackages</option>,
256256 which adds packages to all users.
257257 '';
nixos/modules/config/xdg/sounds.nix+5−1
@@ -1,4 +1,4 @@
1−{ config, lib, ... }:
1+{ config, lib, pkgs, ... }:
22
33with lib;
44{
@@ -14,6 +14,10 @@ with lib;
1414 };
1515
1616 config = mkIf config.xdg.sounds.enable {
17+ environment.systemPackages = [
18+ pkgs.sound-theme-freedesktop
19+ ];
20+
1721 environment.pathsToLink = [
1822 "/share/sounds"
1923 ];
nixos/modules/hardware/brillo.nixnew file+22
@@ -0,0 +1,22 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+let
5+ cfg = config.hardware.brillo;
6+in
7+{
8+ options = {
9+ hardware.brillo = {
10+ enable = mkEnableOption ''
11+ Enable brillo in userspace.
12+ This will allow brightness control from users in the video group.
13+ '';
14+ };
15+ };
16+
17+
18+ config = mkIf cfg.enable {
19+ services.udev.packages = [ pkgs.brillo ];
20+ environment.systemPackages = [ pkgs.brillo ];
21+ };
22+}
nixos/modules/hardware/video/displaylink.nix+16−6
@@ -19,6 +19,21 @@ in
1919 config = mkIf enabled {
2020
2121 boot.extraModulePackages = [ evdi ];
22+ boot.kernelModules = [ "evdi" ];
23+
24+ environment.etc."X11/xorg.conf.d/40-displaylink.conf".text = ''
25+ Section "OutputClass"
26+ Identifier "DisplayLink"
27+ MatchDriver "evdi"
28+ Driver "modesetting"
29+ Option "AccelMethod" "none"
30+ EndSection
31+ '';
32+
33+ # make the device available
34+ services.xserver.displayManager.sessionCommands = ''
35+ ${lib.getBin pkgs.xorg.xrandr}/bin/xrandr --setprovideroutputsource 1 0
36+ '';
2237
2338 # Those are taken from displaylink-installer.sh and from Arch Linux AUR package.
2439
@@ -47,18 +62,13 @@ in
4762 description = "DisplayLink Manager Service";
4863 after = [ "display-manager.service" ];
4964 conflicts = [ "getty@tty7.service" ];
50− path = [ pkgs.kmod ];
5165
5266 serviceConfig = {
5367 ExecStart = "${displaylink}/bin/DisplayLinkManager";
5468 Restart = "always";
5569 RestartSec = 5;
70+ LogsDirectory = "displaylink";
5671 };
57−
58− preStart = ''
59− mkdir -p /var/log/displaylink
60− modprobe evdi
61− '';
6272 };
6373
6474 };
nixos/modules/hardware/video/nvidia.nix+1−1
@@ -75,7 +75,7 @@ in
7575
7676 Note that this configuration will only be successful when a display manager
7777 for which the <option>services.xserver.displayManager.setupCommands</option>
78− option is supported is used; notably, SLiM is not supported.
78+ option is supported is used.
7979 '';
8080 };
8181
nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix+1−11
@@ -22,17 +22,7 @@ with lib;
2222 });
2323 '';
2424
25− services.xserver = {
26− enable = true;
27−
28− # Automatically login as nixos.
29− displayManager.slim = {
30− enable = true;
31− defaultUser = "nixos";
32− autoLogin = true;
33− };
34−
35− };
25+ services.xserver.enable = true;
3626
3727 # Provide networkmanager for easy wireless configuration.
3828 networking.networkmanager.enable = true;
nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix−2
@@ -10,8 +10,6 @@ with lib;
1010
1111 services.xserver.desktopManager.gnome3.enable = true;
1212
13− services.xserver.displayManager.slim.enable = mkForce false;
14−
1513 # Auto-login as root.
1614 services.xserver.displayManager.gdm.autoLogin = {
1715 enable = true;
nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix+9
@@ -13,6 +13,15 @@ with lib;
1313 enable = true;
1414 enableQt4Support = false;
1515 };
16+
17+ # Automatically login as nixos.
18+ displayManager.sddm = {
19+ enable = true;
20+ autoLogin = {
21+ enable = true;
22+ user = "nixos";
23+ };
24+ };
1625 };
1726
1827 environment.systemPackages = with pkgs; [
nixos/modules/installer/cd-dvd/sd-image.nix+5−1
@@ -140,7 +140,11 @@ in
140140 export img=$out/sd-image/${config.sdImage.imageName}
141141
142142 echo "${pkgs.stdenv.buildPlatform.system}" > $out/nix-support/system
143− echo "file sd-image $img" >> $out/nix-support/hydra-build-products
143+ if test -n "$compressImage"; then
144+ echo "file sd-image $img.bz2" >> $out/nix-support/hydra-build-products
145+ else
146+ echo "file sd-image $img" >> $out/nix-support/hydra-build-products
147+ fi
144148
145149 # Gap in front of the first partition, in MiB
146150 gap=8
nixos/modules/installer/tools/nixos-option.shdeleted−327
@@ -1,327 +0,0 @@
1−#! @shell@ -e
2−
3−# FIXME: rewrite this in a more suitable language.
4−
5−usage () {
6− exec man nixos-option
7− exit 1
8−}
9−
10−#####################
11−# Process Arguments #
12−#####################
13−
14−xml=false
15−verbose=false
16−nixPath=""
17−
18−option=""
19−exit_code=0
20−
21−argfun=""
22−for arg; do
23− if test -z "$argfun"; then
24− case $arg in
25− -*)
26− sarg="$arg"
27− longarg=""
28− while test "$sarg" != "-"; do
29− case $sarg in
30− --*) longarg=$arg; sarg="--";;
31− -I) argfun="include_nixpath";;
32− -*) usage;;
33− esac
34− # remove the first letter option
35− sarg="-${sarg#??}"
36− done
37− ;;
38− *) longarg=$arg;;
39− esac
40− for larg in $longarg; do
41− case $larg in
42− --xml) xml=true;;
43− --verbose) verbose=true;;
44− --help) usage;;
45− -*) usage;;
46− *) if test -z "$option"; then
47− option="$larg"
48− else
49− usage
50− fi;;
51− esac
52− done
53− else
54− case $argfun in
55− set_*)
56− var=$(echo $argfun | sed 's,^set_,,')
57− eval $var=$arg
58− ;;
59− include_nixpath)
60− nixPath="-I $arg $nixPath"
61− ;;
62− esac
63− argfun=""
64− fi
65−done
66−
67−if $verbose; then
68− set -x
69−else
70− set +x
71−fi
72−
73−#############################
74−# Process the configuration #
75−#############################
76−
77−evalNix(){
78− # disable `-e` flag, it's possible that the evaluation of `nix-instantiate` fails (e.g. due to broken pkgs)
79− set +e
80− result=$(nix-instantiate ${nixPath:+$nixPath} - --eval-only "$@" 2>&1)
81− exit_code=$?
82− set -e
83−
84− if test $exit_code -eq 0; then
85− sed '/^warning: Nix search path/d' <<EOF
86−$result
87−EOF
88− return 0;
89− else
90− sed -n '
91− /^error/ { s/, at (string):[0-9]*:[0-9]*//; p; };
92− /^warning: Nix search path/ { p; };
93−' >&2 <<EOF
94−$result
95−EOF
96− exit_code=1
97− fi
98−}
99−
100−header="let
101− nixos = import <nixpkgs/nixos> {};
102− nixpkgs = import <nixpkgs> {};
103−in with nixpkgs.lib;
104−"
105−
106−# This function is used for converting the option definition path given by
107−# the user into accessors for reaching the definition and the declaration
108−# corresponding to this option.
109−generateAccessors(){
110− if result=$(evalNix --strict --show-trace <<EOF
111−$header
112−
113−let
114− path = "${option:+$option}";
115− pathList = splitString "." path;
116−
117− walkOptions = attrsNames: result:
118− if attrsNames == [] then
119− result
120− else
121− let name = head attrsNames; rest = tail attrsNames; in
122− if isOption result.options then
123− walkOptions rest {
124− options = result.options.type.getSubOptions "";
125− opt = ''(\${result.opt}.type.getSubOptions "")'';
126− cfg = ''\${result.cfg}."\${name}"'';
127− }
128− else
129− walkOptions rest {
130− options = result.options.\${name};
131− opt = ''\${result.opt}."\${name}"'';
132− cfg = ''\${result.cfg}."\${name}"'';
133− }
134− ;
135−
136− walkResult = (if path == "" then x: x else walkOptions pathList) {
137− options = nixos.options;
138− opt = ''nixos.options'';
139− cfg = ''nixos.config'';
140− };
141−
142−in
143− ''let option = \${walkResult.opt}; config = \${walkResult.cfg}; in''
144−EOF
145−)
146− then
147− echo $result
148− else
149− # In case of error we want to ignore the error message roduced by the
150− # script above, as it is iterating over each attribute, which does not
151− # produce a nice error message. The following code is a fallback
152− # solution which is cause a nicer error message in the next
153− # evaluation.
154− echo "\"let option = nixos.options${option:+.$option}; config = nixos.config${option:+.$option}; in\""
155− fi
156−}
157−
158−header="$header
159−$(eval echo $(generateAccessors))
160−"
161−
162−evalAttr(){
163− local prefix="$1"
164− local strict="$2"
165− local suffix="$3"
166−
167− # If strict is set, then set it to "true".
168− test -n "$strict" && strict=true
169−
170− evalNix ${strict:+--strict} <<EOF
171−$header
172−
173−let
174− value = $prefix${suffix:+.$suffix};
175− strict = ${strict:-false};
176− cleanOutput = x: with nixpkgs.lib;
177− if isDerivation x then x.outPath
178− else if isFunction x then "<CODE>"
179− else if strict then
180− if isAttrs x then mapAttrs (n: cleanOutput) x
181− else if isList x then map cleanOutput x
182− else x
183− else x;
184−in
185− cleanOutput value
186−EOF
187−}
188−
189−evalOpt(){
190− evalAttr "option" "" "$@"
191−}
192−
193−evalCfg(){
194− local strict="$1"
195− evalAttr "config" "$strict"
196−}
197−
198−findSources(){
199− local suffix=$1
200− evalNix --strict <<EOF
201−$header
202−
203−option.$suffix
204−EOF
205−}
206−
207−# Given a result from nix-instantiate, recover the list of attributes it
208−# contains.
209−attrNames() {
210− local attributeset=$1
211− # sed is used to replace un-printable subset by 0s, and to remove most of
212− # the inner-attribute set, which reduce the likelyhood to encounter badly
213− # pre-processed input.
214− echo "builtins.attrNames $attributeset" | \
215− sed 's,<[A-Z]*>,0,g; :inner; s/{[^\{\}]*};/0;/g; t inner;' | \
216− evalNix --strict
217−}
218−
219−# map a simple list which contains strings or paths.
220−nixMap() {
221− local fun="$1"
222− local list="$2"
223− local elem
224− for elem in $list; do
225− test $elem = '[' -o $elem = ']' && continue;
226− $fun $elem
227− done
228−}
229−
230−# This duplicates the work made below, but it is useful for processing
231−# the output of nixos-option with other tools such as nixos-gui.
232−if $xml; then
233− evalNix --xml --no-location <<EOF
234−$header
235−
236−let
237− sources = builtins.map (f: f.source);
238− opt = option;
239− cfg = config;
240−in
241−
242−with nixpkgs.lib;
243−
244−let
245− optStrict = v:
246− let
247− traverse = x :
248− if isAttrs x then
249− if x ? outPath then true
250− else all id (mapAttrsFlatten (n: traverseNoAttrs) x)
251− else traverseNoAttrs x;
252− traverseNoAttrs = x:
253− # do not continue in attribute sets
254− if isAttrs x then true
255− else if isList x then all id (map traverse x)
256− else true;
257− in assert traverse v; v;
258−in
259−
260−if isOption opt then
261− optStrict ({}
262− // optionalAttrs (opt ? default) { inherit (opt) default; }
263− // optionalAttrs (opt ? example) { inherit (opt) example; }
264− // optionalAttrs (opt ? description) { inherit (opt) description; }
265− // optionalAttrs (opt ? type) { typename = opt.type.description; }
266− // optionalAttrs (opt ? options) { inherit (opt) options; }
267− // {
268− # to disambiguate the xml output.
269− _isOption = true;
270− declarations = sources opt.declarations;
271− definitions = sources opt.definitions;
272− value = cfg;
273− })
274−else
275− opt
276−EOF
277− exit $?
278−fi
279−
280−if test "$(evalOpt "_type" 2> /dev/null)" = '"option"'; then
281− echo "Value:"
282− evalCfg 1
283−
284− echo
285−
286− echo "Default:"
287− if default=$(evalOpt "default" - 2> /dev/null); then
288− echo "$default"
289− else
290− echo "<None>"
291− fi
292− echo
293− if example=$(evalOpt "example" - 2> /dev/null); then
294− echo "Example:"
295− echo "$example"
296− echo
297− fi
298− echo "Description:"
299− echo
300− echo $(evalOpt "description")
301−
302− echo $desc;
303−
304− printPath () { echo " $1"; }
305−
306− echo "Declared by:"
307− nixMap printPath "$(findSources "declarations")"
308− echo
309− echo "Defined by:"
310− nixMap printPath "$(findSources "files")"
311− echo
312−
313−else
314− # echo 1>&2 "Warning: This value is not an option."
315−
316− result=$(evalCfg "")
317− if [ ! -z "$result" ]; then
318− names=$(attrNames "$result" 2> /dev/null)
319− echo 1>&2 "This attribute set contains:"
320− escapeQuotes () { eval echo "$1"; }
321− nixMap escapeQuotes "$names"
322− else
323− echo 1>&2 "An error occurred while looking for attribute names. Are you sure that '$option' exists?"
324− fi
325−fi
326−
327−exit $exit_code
nixos/modules/installer/tools/nixos-option/CMakeLists.txtnew file+8
@@ -0,0 +1,8 @@
1+cmake_minimum_required (VERSION 2.6)
2+project (nixos-option)
3+
4+add_executable(nixos-option nixos-option.cc libnix-copy-paste.cc)
5+target_link_libraries(nixos-option PRIVATE -lnixmain -lnixexpr -lnixstore -lnixutil)
6+target_compile_features(nixos-option PRIVATE cxx_std_17)
7+
8+install (TARGETS nixos-option DESTINATION bin)
nixos/modules/installer/tools/nixos-option/default.nixnew file+11
@@ -0,0 +1,11 @@
1+{lib, stdenv, boost, cmake, pkgconfig, nix, ... }:
2+stdenv.mkDerivation rec {
3+ name = "nixos-option";
4+ src = ./.;
5+ nativeBuildInputs = [ cmake pkgconfig ];
6+ buildInputs = [ boost nix ];
7+ meta = {
8+ license = stdenv.lib.licenses.lgpl2Plus;
9+ maintainers = with lib.maintainers; [ chkno ];
10+ };
11+}
nixos/modules/installer/tools/nixos-option/libnix-copy-paste.ccnew file+83
@@ -0,0 +1,83 @@
1+// These are useful methods inside the nix library that ought to be exported.
2+// Since they are not, copy/paste them here.
3+// TODO: Delete these and use the ones in the library as they become available.
4+
5+#include <nix/config.h> // for nix/globals.hh's reference to SYSTEM
6+
7+#include "libnix-copy-paste.hh"
8+#include <boost/format/alt_sstream.hpp> // for basic_altstringbuf...
9+#include <boost/format/alt_sstream_impl.hpp> // for basic_altstringbuf...
10+#include <boost/format/format_class.hpp> // for basic_format
11+#include <boost/format/format_fwd.hpp> // for format
12+#include <boost/format/format_implementation.hpp> // for basic_format::basi...
13+#include <boost/optional/optional.hpp> // for get_pointer
14+#include <iostream> // for operator<<, basic_...
15+#include <nix/types.hh> // for Strings, Error
16+#include <string> // for string, basic_string
17+
18+using boost::format;
19+using nix::Error;
20+using nix::Strings;
21+using std::string;
22+
23+// From nix/src/libexpr/attr-path.cc
24+Strings parseAttrPath(const string & s)
25+{
26+ Strings res;
27+ string cur;
28+ string::const_iterator i = s.begin();
29+ while (i != s.end()) {
30+ if (*i == '.') {
31+ res.push_back(cur);
32+ cur.clear();
33+ } else if (*i == '"') {
34+ ++i;
35+ while (1) {
36+ if (i == s.end())
37+ throw Error(format("missing closing quote in selection path '%1%'") % s);
38+ if (*i == '"')
39+ break;
40+ cur.push_back(*i++);
41+ }
42+ } else
43+ cur.push_back(*i);
44+ ++i;
45+ }
46+ if (!cur.empty())
47+ res.push_back(cur);
48+ return res;
49+}
50+
51+// From nix/src/nix/repl.cc
52+bool isVarName(const string & s)
53+{
54+ if (s.size() == 0)
55+ return false;
56+ char c = s[0];
57+ if ((c >= '0' && c <= '9') || c == '-' || c == '\'')
58+ return false;
59+ for (auto & i : s)
60+ if (!((i >= 'a' && i <= 'z') || (i >= 'A' && i <= 'Z') || (i >= '0' && i <= '9') || i == '_' || i == '-' ||
61+ i == '\''))
62+ return false;
63+ return true;
64+}
65+
66+// From nix/src/nix/repl.cc
67+std::ostream & printStringValue(std::ostream & str, const char * string)
68+{
69+ str << "\"";
70+ for (const char * i = string; *i; i++)
71+ if (*i == '\"' || *i == '\\')
72+ str << "\\" << *i;
73+ else if (*i == '\n')
74+ str << "\\n";
75+ else if (*i == '\r')
76+ str << "\\r";
77+ else if (*i == '\t')
78+ str << "\\t";
79+ else
80+ str << *i;
81+ str << "\"";
82+ return str;
83+}
nixos/modules/installer/tools/nixos-option/libnix-copy-paste.hhnew file+9
@@ -0,0 +1,9 @@
1+#pragma once
2+
3+#include <iostream>
4+#include <nix/types.hh>
5+#include <string>
6+
7+nix::Strings parseAttrPath(const std::string & s);
8+bool isVarName(const std::string & s);
9+std::ostream & printStringValue(std::ostream & str, const char * string);
nixos/modules/installer/tools/nixos-option/nixos-option.ccnew file+618
@@ -0,0 +1,618 @@
1+#include <nix/config.h> // for nix/globals.hh's reference to SYSTEM
2+
3+#include <exception> // for exception_ptr, current_exception
4+#include <functional> // for function
5+#include <iostream> // for operator<<, basic_ostream, ostrin...
6+#include <iterator> // for next
7+#include <list> // for _List_iterator
8+#include <memory> // for allocator, unique_ptr, make_unique
9+#include <new> // for operator new
10+#include <nix/args.hh> // for argvToStrings, UsageError
11+#include <nix/attr-path.hh> // for findAlongAttrPath
12+#include <nix/attr-set.hh> // for Attr, Bindings, Bindings::iterator
13+#include <nix/common-eval-args.hh> // for MixEvalArgs
14+#include <nix/eval-inline.hh> // for EvalState::forceValue
15+#include <nix/eval.hh> // for EvalState, initGC, operator<<
16+#include <nix/globals.hh> // for initPlugins, Settings, settings
17+#include <nix/nixexpr.hh> // for Pos
18+#include <nix/shared.hh> // for getArg, LegacyArgs, printVersion
19+#include <nix/store-api.hh> // for openStore
20+#include <nix/symbol-table.hh> // for Symbol, SymbolTable
21+#include <nix/types.hh> // for Error, Path, Strings, PathSet
22+#include <nix/util.hh> // for absPath, baseNameOf
23+#include <nix/value.hh> // for Value, Value::(anonymous), Value:...
24+#include <string> // for string, operator+, operator==
25+#include <utility> // for move
26+#include <variant> // for get, holds_alternative, variant
27+#include <vector> // for vector<>::iterator, vector
28+
29+#include "libnix-copy-paste.hh"
30+
31+using nix::absPath;
32+using nix::Bindings;
33+using nix::Error;
34+using nix::EvalError;
35+using nix::EvalState;
36+using nix::Path;
37+using nix::PathSet;
38+using nix::Strings;
39+using nix::Symbol;
40+using nix::tAttrs;
41+using nix::ThrownError;
42+using nix::tLambda;
43+using nix::tString;
44+using nix::UsageError;
45+using nix::Value;
46+
47+// An ostream wrapper to handle nested indentation
48+class Out
49+{
50+ public:
51+ class Separator
52+ {};
53+ const static Separator sep;
54+ enum LinePolicy
55+ {
56+ ONE_LINE,
57+ MULTI_LINE
58+ };
59+ explicit Out(std::ostream & ostream) : ostream(ostream), policy(ONE_LINE), writeSinceSep(true) {}
60+ Out(Out & o, const std::string & start, const std::string & end, LinePolicy policy);
61+ Out(Out & o, const std::string & start, const std::string & end, int count)
62+ : Out(o, start, end, count < 2 ? ONE_LINE : MULTI_LINE)
63+ {}
64+ Out(const Out &) = delete;
65+ Out(Out &&) = default;
66+ Out & operator=(const Out &) = delete;
67+ Out & operator=(Out &&) = delete;
68+ ~Out() { ostream << end; }
69+
70+ private:
71+ std::ostream & ostream;
72+ std::string indentation;
73+ std::string end;
74+ LinePolicy policy;
75+ bool writeSinceSep;
76+ template <typename T> friend Out & operator<<(Out & o, T thing);
77+};
78+
79+template <typename T> Out & operator<<(Out & o, T thing)
80+{
81+ if (!o.writeSinceSep && o.policy == Out::MULTI_LINE) {
82+ o.ostream << o.indentation;
83+ }
84+ o.writeSinceSep = true;
85+ o.ostream << thing;
86+ return o;
87+}
88+
89+template <> Out & operator<<<Out::Separator>(Out & o, Out::Separator /* thing */)
90+{
91+ o.ostream << (o.policy == Out::ONE_LINE ? " " : "\n");
92+ o.writeSinceSep = false;
93+ return o;
94+}
95+
96+Out::Out(Out & o, const std::string & start, const std::string & end, LinePolicy policy)
97+ : ostream(o.ostream), indentation(policy == ONE_LINE ? o.indentation : o.indentation + " "),
98+ end(policy == ONE_LINE ? end : o.indentation + end), policy(policy), writeSinceSep(true)
99+{
100+ o << start;
101+ *this << Out::sep;
102+}
103+
104+// Stuff needed for evaluation
105+struct Context
106+{
107+ Context(EvalState & state, Bindings & autoArgs, Value optionsRoot, Value configRoot)
108+ : state(state), autoArgs(autoArgs), optionsRoot(optionsRoot), configRoot(configRoot),
109+ underscoreType(state.symbols.create("_type"))
110+ {}
111+ EvalState & state;
112+ Bindings & autoArgs;
113+ Value optionsRoot;
114+ Value configRoot;
115+ Symbol underscoreType;
116+};
117+
118+Value evaluateValue(Context & ctx, Value & v)
119+{
120+ ctx.state.forceValue(v);
121+ if (ctx.autoArgs.empty()) {
122+ return v;
123+ }
124+ Value called{};
125+ ctx.state.autoCallFunction(ctx.autoArgs, v, called);
126+ return called;
127+}
128+
129+bool isOption(Context & ctx, const Value & v)
130+{
131+ if (v.type != tAttrs) {
132+ return false;
133+ }
134+ const auto & atualType = v.attrs->find(ctx.underscoreType);
135+ if (atualType == v.attrs->end()) {
136+ return false;
137+ }
138+ try {
139+ Value evaluatedType = evaluateValue(ctx, *atualType->value);
140+ if (evaluatedType.type != tString) {
141+ return false;
142+ }
143+ return static_cast<std::string>(evaluatedType.string.s) == "option";
144+ } catch (Error &) {
145+ return false;
146+ }
147+}
148+
149+// Add quotes to a component of a path.
150+// These are needed for paths like:
151+// fileSystems."/".fsType
152+// systemd.units."dbus.service".text
153+std::string quoteAttribute(const std::string & attribute)
154+{
155+ if (isVarName(attribute)) {
156+ return attribute;
157+ }
158+ std::ostringstream buf;
159+ printStringValue(buf, attribute.c_str());
160+ return buf.str();
161+}
162+
163+const std::string appendPath(const std::string & prefix, const std::string & suffix)
164+{
165+ if (prefix.empty()) {
166+ return quoteAttribute(suffix);
167+ }
168+ return prefix + "." + quoteAttribute(suffix);
169+}
170+
171+bool forbiddenRecursionName(std::string name) { return (!name.empty() && name[0] == '_') || name == "haskellPackages"; }
172+
173+void recurse(const std::function<bool(const std::string & path, std::variant<Value, std::exception_ptr>)> & f,
174+ Context & ctx, Value v, const std::string & path)
175+{
176+ std::variant<Value, std::exception_ptr> evaluated;
177+ try {
178+ evaluated = evaluateValue(ctx, v);
179+ } catch (Error &) {
180+ evaluated = std::current_exception();
181+ }
182+ if (!f(path, evaluated)) {
183+ return;
184+ }
185+ if (std::holds_alternative<std::exception_ptr>(evaluated)) {
186+ return;
187+ }
188+ const Value & evaluated_value = std::get<Value>(evaluated);
189+ if (evaluated_value.type != tAttrs) {
190+ return;
191+ }
192+ for (const auto & child : evaluated_value.attrs->lexicographicOrder()) {
193+ if (forbiddenRecursionName(child->name)) {
194+ continue;
195+ }
196+ recurse(f, ctx, *child->value, appendPath(path, child->name));
197+ }
198+}
199+
200+// Calls f on all the option names
201+void mapOptions(const std::function<void(const std::string & path)> & f, Context & ctx, Value root)
202+{
203+ recurse(
204+ [f, &ctx](const std::string & path, std::variant<Value, std::exception_ptr> v) {
205+ bool isOpt = std::holds_alternative<std::exception_ptr>(v) || isOption(ctx, std::get<Value>(v));
206+ if (isOpt) {
207+ f(path);
208+ }
209+ return !isOpt;
210+ },
211+ ctx, root, "");
212+}
213+
214+// Calls f on all the config values inside one option.
215+// Simple options have one config value inside, like sound.enable = true.
216+// Compound options have multiple config values. For example, the option
217+// "users.users" has about 1000 config values inside it:
218+// users.users.avahi.createHome = false;
219+// users.users.avahi.cryptHomeLuks = null;
220+// users.users.avahi.description = "`avahi-daemon' privilege separation user";
221+// ...
222+// users.users.avahi.openssh.authorizedKeys.keyFiles = [ ];
223+// users.users.avahi.openssh.authorizedKeys.keys = [ ];
224+// ...
225+// users.users.avahi.uid = 10;
226+// users.users.avahi.useDefaultShell = false;
227+// users.users.cups.createHome = false;
228+// ...
229+// users.users.cups.useDefaultShell = false;
230+// users.users.gdm = ... ... ...
231+// users.users.messagebus = ... .. ...
232+// users.users.nixbld1 = ... .. ...
233+// ...
234+// users.users.systemd-timesync = ... .. ...
235+void mapConfigValuesInOption(
236+ const std::function<void(const std::string & path, std::variant<Value, std::exception_ptr> v)> & f,
237+ const std::string & path, Context & ctx)
238+{
239+ Value * option;
240+ try {
241+ option = findAlongAttrPath(ctx.state, path, ctx.autoArgs, ctx.configRoot);
242+ } catch (Error &) {
243+ f(path, std::current_exception());
244+ return;
245+ }
246+ recurse(
247+ [f, ctx](const std::string & path, std::variant<Value, std::exception_ptr> v) {
248+ bool leaf = std::holds_alternative<std::exception_ptr>(v) || std::get<Value>(v).type != tAttrs ||
249+ ctx.state.isDerivation(std::get<Value>(v));
250+ if (!leaf) {
251+ return true; // Keep digging
252+ }
253+ f(path, v);
254+ return false;
255+ },
256+ ctx, *option, path);
257+}
258+
259+std::string describeError(const Error & e) { return "«error: " + e.msg() + "»"; }
260+
261+void describeDerivation(Context & ctx, Out & out, Value v)
262+{
263+ // Copy-pasted from nix/src/nix/repl.cc :(
264+ Bindings::iterator i = v.attrs->find(ctx.state.sDrvPath);
265+ PathSet pathset;
266+ try {
267+ Path drvPath = i != v.attrs->end() ? ctx.state.coerceToPath(*i->pos, *i->value, pathset) : "???";
268+ out << "«derivation " << drvPath << "»";
269+ } catch (Error & e) {
270+ out << describeError(e);
271+ }
272+}
273+
274+Value parseAndEval(EvalState & state, const std::string & expression, const std::string & path)
275+{
276+ Value v{};
277+ state.eval(state.parseExprFromString(expression, absPath(path)), v);
278+ return v;
279+}
280+
281+void printValue(Context & ctx, Out & out, std::variant<Value, std::exception_ptr> maybeValue, const std::string & path);
282+
283+void printList(Context & ctx, Out & out, Value & v)
284+{
285+ Out listOut(out, "[", "]", v.listSize());
286+ for (unsigned int n = 0; n < v.listSize(); ++n) {
287+ printValue(ctx, listOut, *v.listElems()[n], "");
288+ listOut << Out::sep;
289+ }
290+}
291+
292+void printAttrs(Context & ctx, Out & out, Value & v, const std::string & path)
293+{
294+ Out attrsOut(out, "{", "}", v.attrs->size());
295+ for (const auto & a : v.attrs->lexicographicOrder()) {
296+ std::string name = a->name;
297+ attrsOut << name << " = ";
298+ printValue(ctx, attrsOut, *a->value, appendPath(path, name));
299+ attrsOut << ";" << Out::sep;
300+ }
301+}
302+
303+void multiLineStringEscape(Out & out, const std::string & s)
304+{
305+ int i;
306+ for (i = 1; i < s.size(); i++) {
307+ if (s[i - 1] == '$' && s[i] == '{') {
308+ out << "''${";
309+ i++;
310+ } else if (s[i - 1] == '\'' && s[i] == '\'') {
311+ out << "'''";
312+ i++;
313+ } else {
314+ out << s[i - 1];
315+ }
316+ }
317+ if (i == s.size()) {
318+ out << s[i - 1];
319+ }
320+}
321+
322+void printMultiLineString(Out & out, const Value & v)
323+{
324+ std::string s = v.string.s;
325+ Out strOut(out, "''", "''", Out::MULTI_LINE);
326+ std::string::size_type begin = 0;
327+ while (begin < s.size()) {
328+ std::string::size_type end = s.find('\n', begin);
329+ if (end == std::string::npos) {
330+ multiLineStringEscape(strOut, s.substr(begin, s.size() - begin));
331+ break;
332+ }
333+ multiLineStringEscape(strOut, s.substr(begin, end - begin));
334+ strOut << Out::sep;
335+ begin = end + 1;
336+ }
337+}
338+
339+void printValue(Context & ctx, Out & out, std::variant<Value, std::exception_ptr> maybeValue, const std::string & path)
340+{
341+ try {
342+ if (auto ex = std::get_if<std::exception_ptr>(&maybeValue)) {
343+ std::rethrow_exception(*ex);
344+ }
345+ Value v = evaluateValue(ctx, std::get<Value>(maybeValue));
346+ if (ctx.state.isDerivation(v)) {
347+ describeDerivation(ctx, out, v);
348+ } else if (v.isList()) {
349+ printList(ctx, out, v);
350+ } else if (v.type == tAttrs) {
351+ printAttrs(ctx, out, v, path);
352+ } else if (v.type == tString && std::string(v.string.s).find('\n') != std::string::npos) {
353+ printMultiLineString(out, v);
354+ } else {
355+ ctx.state.forceValueDeep(v);
356+ out << v;
357+ }
358+ } catch (ThrownError & e) {
359+ if (e.msg() == "The option `" + path + "' is used but not defined.") {
360+ // 93% of errors are this, and just letting this message through would be
361+ // misleading. These values may or may not actually be "used" in the
362+ // config. The thing throwing the error message assumes that if anything
363+ // ever looks at this value, it is a "use" of this value. But here in
364+ // nixos-option, we are looking at this value only to print it.
365+ // In order to avoid implying that this undefined value is actually
366+ // referenced, eat the underlying error message and emit "«not defined»".
367+ out << "«not defined»";
368+ } else {
369+ out << describeError(e);
370+ }
371+ } catch (Error & e) {
372+ out << describeError(e);
373+ }
374+}
375+
376+void printConfigValue(Context & ctx, Out & out, const std::string & path, std::variant<Value, std::exception_ptr> v)
377+{
378+ out << path << " = ";
379+ printValue(ctx, out, std::move(v), path);
380+ out << ";\n";
381+}
382+
383+void printAll(Context & ctx, Out & out)
384+{
385+ mapOptions(
386+ [&ctx, &out](const std::string & optionPath) {
387+ mapConfigValuesInOption(
388+ [&ctx, &out](const std::string & configPath, std::variant<Value, std::exception_ptr> v) {
389+ printConfigValue(ctx, out, configPath, v);
390+ },
391+ optionPath, ctx);
392+ },
393+ ctx, ctx.optionsRoot);
394+}
395+
396+void printAttr(Context & ctx, Out & out, const std::string & path, Value & root)
397+{
398+ try {
399+ printValue(ctx, out, *findAlongAttrPath(ctx.state, path, ctx.autoArgs, root), path);
400+ } catch (Error & e) {
401+ out << describeError(e);
402+ }
403+}
404+
405+bool hasExample(Context & ctx, Value & option)
406+{
407+ try {
408+ findAlongAttrPath(ctx.state, "example", ctx.autoArgs, option);
409+ return true;
410+ } catch (Error &) {
411+ return false;
412+ }
413+}
414+
415+void printOption(Context & ctx, Out & out, const std::string & path, Value & option)
416+{
417+ out << "Value:\n";
418+ printAttr(ctx, out, path, ctx.configRoot);
419+
420+ out << "\n\nDefault:\n";
421+ printAttr(ctx, out, "default", option);
422+
423+ out << "\n\nType:\n";
424+ printAttr(ctx, out, "type.description", option);
425+
426+ if (hasExample(ctx, option)) {
427+ out << "\n\nExample:\n";
428+ printAttr(ctx, out, "example", option);
429+ }
430+
431+ out << "\n\nDescription:\n";
432+ printAttr(ctx, out, "description", option);
433+
434+ out << "\n\nDeclared by:\n";
435+ printAttr(ctx, out, "declarations", option);
436+
437+ out << "\n\nDefined by:\n";
438+ printAttr(ctx, out, "files", option);
439+ out << "\n";
440+}
441+
442+void printListing(Out & out, Value & v)
443+{
444+ out << "This attribute set contains:\n";
445+ for (const auto & a : v.attrs->lexicographicOrder()) {
446+ std::string name = a->name;
447+ if (!name.empty() && name[0] != '_') {
448+ out << name << "\n";
449+ }
450+ }
451+}
452+
453+bool optionTypeIs(Context & ctx, Value & v, const std::string & soughtType)
454+{
455+ try {
456+ const auto & typeLookup = v.attrs->find(ctx.state.sType);
457+ if (typeLookup == v.attrs->end()) {
458+ return false;
459+ }
460+ Value type = evaluateValue(ctx, *typeLookup->value);
461+ if (type.type != tAttrs) {
462+ return false;
463+ }
464+ const auto & nameLookup = type.attrs->find(ctx.state.sName);
465+ if (nameLookup == type.attrs->end()) {
466+ return false;
467+ }
468+ Value name = evaluateValue(ctx, *nameLookup->value);
469+ if (name.type != tString) {
470+ return false;
471+ }
472+ return name.string.s == soughtType;
473+ } catch (Error &) {
474+ return false;
475+ }
476+}
477+
478+bool isAggregateOptionType(Context & ctx, Value & v)
479+{
480+ return optionTypeIs(ctx, v, "attrsOf") || optionTypeIs(ctx, v, "listOf") || optionTypeIs(ctx, v, "loaOf");
481+}
482+
483+MakeError(OptionPathError, EvalError);
484+
485+Value getSubOptions(Context & ctx, Value & option)
486+{
487+ Value getSubOptions = evaluateValue(ctx, *findAlongAttrPath(ctx.state, "type.getSubOptions", ctx.autoArgs, option));
488+ if (getSubOptions.type != tLambda) {
489+ throw OptionPathError("Option's type.getSubOptions isn't a function");
490+ }
491+ Value emptyString{};
492+ nix::mkString(emptyString, "");
493+ Value v;
494+ ctx.state.callFunction(getSubOptions, emptyString, v, nix::Pos{});
495+ return v;
496+}
497+
498+// Carefully walk an option path, looking for sub-options when a path walks past
499+// an option value.
500+Value findAlongOptionPath(Context & ctx, const std::string & path)
501+{
502+ Strings tokens = parseAttrPath(path);
503+ Value v = ctx.optionsRoot;
504+ for (auto i = tokens.begin(); i != tokens.end(); i++) {
505+ const auto & attr = *i;
506+ try {
507+ bool lastAttribute = std::next(i) == tokens.end();
508+ v = evaluateValue(ctx, v);
509+ if (attr.empty()) {
510+ throw OptionPathError("empty attribute name");
511+ }
512+ if (isOption(ctx, v) && optionTypeIs(ctx, v, "submodule")) {
513+ v = getSubOptions(ctx, v);
514+ }
515+ if (isOption(ctx, v) && isAggregateOptionType(ctx, v) && !lastAttribute) {
516+ v = getSubOptions(ctx, v);
517+ // Note that we've consumed attr, but didn't actually use it. This is the path component that's looked
518+ // up in the list or attribute set that doesn't name an option -- the "root" in "users.users.root.name".
519+ } else if (v.type != tAttrs) {
520+ throw OptionPathError("Value is %s while a set was expected", showType(v));
521+ } else {
522+ const auto & next = v.attrs->find(ctx.state.symbols.create(attr));
523+ if (next == v.attrs->end()) {
524+ throw OptionPathError("Attribute not found", attr, path);
525+ }
526+ v = *next->value;
527+ }
528+ } catch (OptionPathError & e) {
529+ throw OptionPathError("At '%s' in path '%s': %s", attr, path, e.msg());
530+ }
531+ }
532+ return v;
533+}
534+
535+void printOne(Context & ctx, Out & out, const std::string & path)
536+{
537+ try {
538+ Value option = findAlongOptionPath(ctx, path);
539+ option = evaluateValue(ctx, option);
540+ if (isOption(ctx, option)) {
541+ printOption(ctx, out, path, option);
542+ } else {
543+ printListing(out, option);
544+ }
545+ } catch (Error & e) {
546+ std::cerr << "error: " << e.msg()
547+ << "\nAn error occurred while looking for attribute names. Are "
548+ "you sure that '"
549+ << path << "' exists?\n";
550+ }
551+}
552+
553+int main(int argc, char ** argv)
554+{
555+ bool all = false;
556+ std::string path = ".";
557+ std::string optionsExpr = "(import <nixpkgs/nixos> {}).options";
558+ std::string configExpr = "(import <nixpkgs/nixos> {}).config";
559+ std::vector<std::string> args;
560+
561+ struct MyArgs : nix::LegacyArgs, nix::MixEvalArgs
562+ {
563+ using nix::LegacyArgs::LegacyArgs;
564+ };
565+
566+ MyArgs myArgs(nix::baseNameOf(argv[0]), [&](Strings::iterator & arg, const Strings::iterator & end) {
567+ if (*arg == "--help") {
568+ nix::showManPage("nixos-option");
569+ } else if (*arg == "--version") {
570+ nix::printVersion("nixos-option");
571+ } else if (*arg == "--all") {
572+ all = true;
573+ } else if (*arg == "--path") {
574+ path = nix::getArg(*arg, arg, end);
575+ } else if (*arg == "--options_expr") {
576+ optionsExpr = nix::getArg(*arg, arg, end);
577+ } else if (*arg == "--config_expr") {
578+ configExpr = nix::getArg(*arg, arg, end);
579+ } else if (!arg->empty() && arg->at(0) == '-') {
580+ return false;
581+ } else {
582+ args.push_back(*arg);
583+ }
584+ return true;
585+ });
586+
587+ myArgs.parseCmdline(nix::argvToStrings(argc, argv));
588+
589+ nix::initPlugins();
590+ nix::initGC();
591+ nix::settings.readOnlyMode = true;
592+ auto store = nix::openStore();
593+ auto state = std::make_unique<EvalState>(myArgs.searchPath, store);
594+
595+ Value optionsRoot = parseAndEval(*state, optionsExpr, path);
596+ Value configRoot = parseAndEval(*state, configExpr, path);
597+
598+ Context ctx{*state, *myArgs.getAutoArgs(*state), optionsRoot, configRoot};
599+ Out out(std::cout);
600+
601+ if (all) {
602+ if (!args.empty()) {
603+ throw UsageError("--all cannot be used with arguments");
604+ }
605+ printAll(ctx, out);
606+ } else {
607+ if (args.empty()) {
608+ printOne(ctx, out, "");
609+ }
610+ for (const auto & arg : args) {
611+ printOne(ctx, out, arg);
612+ }
613+ }
614+
615+ ctx.state.printStats();
616+
617+ return 0;
618+}
nixos/modules/installer/tools/nixos-rebuild.sh+9−4
@@ -22,6 +22,7 @@ repair=
2222profile=/nix/var/nix/profiles/system
2323buildHost=
2424targetHost=
25+maybeSudo=
2526
2627while [ "$#" -gt 0 ]; do
2728 i="$1"; shift 1
@@ -89,6 +90,11 @@ while [ "$#" -gt 0 ]; do
8990 targetHost="$1"
9091 shift 1
9192 ;;
93+ --use-remote-sudo)
94+ # note the trailing space
95+ maybeSudo="sudo "
96+ shift 1
97+ ;;
9298 *)
9399 echo "$0: unknown option \`$i'"
94100 exit 1
@@ -96,7 +102,6 @@ while [ "$#" -gt 0 ]; do
96102 esac
97103done
98104
99−
100105if [ -z "$buildHost" -a -n "$targetHost" ]; then
101106 buildHost="$targetHost"
102107fi
@@ -111,9 +116,9 @@ buildHostCmd() {
111116 if [ -z "$buildHost" ]; then
112117 "$@"
113118 elif [ -n "$remoteNix" ]; then
114− ssh $SSHOPTS "$buildHost" env PATH="$remoteNix:$PATH" "$@"
119+ ssh $SSHOPTS "$buildHost" env PATH="$remoteNix:$PATH" "$maybeSudo$@"
115120 else
116− ssh $SSHOPTS "$buildHost" "$@"
121+ ssh $SSHOPTS "$buildHost" "$maybeSudo$@"
117122 fi
118123}
119124
@@ -121,7 +126,7 @@ targetHostCmd() {
121126 if [ -z "$targetHost" ]; then
122127 "$@"
123128 else
124− ssh $SSHOPTS "$targetHost" "$@"
129+ ssh $SSHOPTS "$targetHost" "$maybeSudo$@"
125130 fi
126131}
127132
nixos/modules/installer/tools/tools.nix+6−5
@@ -41,10 +41,7 @@ let
4141 inherit (config.system.nixos-generate-config) configuration;
4242 };
4343
44− nixos-option = makeProg {
45− name = "nixos-option";
46− src = ./nixos-option.sh;
47− };
44+ nixos-option = pkgs.callPackage ./nixos-option { };
4845
4946 nixos-version = makeProg {
5047 name = "nixos-version";
@@ -120,7 +117,11 @@ in
120117 # Some programs need SUID wrappers, can be configured further or are
121118 # started in user sessions.
122119 # programs.mtr.enable = true;
123− # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
120+ # programs.gnupg.agent = {
121+ # enable = true;
122+ # enableSSHSupport = true;
123+ # pinentryFlavor = "gnome3";
124+ # };
124125
125126 # List services that you want to enable:
126127
nixos/modules/misc/ids.nix+7−2
@@ -11,6 +11,9 @@
1111
1212{ lib, ... }:
1313
14+let
15+ inherit (lib) types;
16+in
1417{
1518 options = {
1619
@@ -19,6 +22,7 @@
1922 description = ''
2023 The user IDs used in NixOS.
2124 '';
25+ type = types.attrsOf types.int;
2226 };
2327
2428 ids.gids = lib.mkOption {
@@ -26,6 +30,7 @@
2630 description = ''
2731 The group IDs used in NixOS.
2832 '';
33+ type = types.attrsOf types.int;
2934 };
3035
3136 };
@@ -128,7 +133,7 @@
128133 tcpcryptd = 93; # tcpcryptd uses a hard-coded uid. We patch it in Nixpkgs to match this choice.
129134 firebird = 95;
130135 #keys = 96; # unused
131− haproxy = 97;
136+ #haproxy = 97; # DynamicUser as of 2019-11-08
132137 mongodb = 98;
133138 openldap = 99;
134139 #users = 100; # unused
@@ -443,7 +448,7 @@
443448 #tcpcryptd = 93; # unused
444449 firebird = 95;
445450 keys = 96;
446− haproxy = 97;
451+ #haproxy = 97; # DynamicUser as of 2019-11-08
447452 #mongodb = 98; # unused
448453 openldap = 99;
449454 munin = 102;
nixos/modules/module-list.nix+14−3
@@ -1,9 +1,7 @@
11[
22 ./config/debug-info.nix
3− ./config/fonts/corefonts.nix
43 ./config/fonts/fontconfig.nix
54 ./config/fonts/fontconfig-penultimate.nix
6− ./config/fonts/fontconfig-ultimate.nix
75 ./config/fonts/fontdir.nix
86 ./config/fonts/fonts.nix
97 ./config/fonts/ghostscript.nix
@@ -44,6 +42,7 @@
4442 ./hardware/all-firmware.nix
4543 ./hardware/bladeRF.nix
4644 ./hardware/brightnessctl.nix
45+ ./hardware/brillo.nix
4746 ./hardware/ckb-next.nix
4847 ./hardware/cpu/amd-microcode.nix
4948 ./hardware/cpu/intel-microcode.nix
@@ -227,6 +226,7 @@
227226 ./services/backup/rsnapshot.nix
228227 ./services/backup/tarsnap.nix
229228 ./services/backup/tsm.nix
229+ ./services/backup/zfs-replication.nix
230230 ./services/backup/znapzend.nix
231231 ./services/cluster/hadoop/default.nix
232232 ./services/cluster/kubernetes/addons/dns.nix
@@ -316,11 +316,13 @@
316316 ./services/development/bloop.nix
317317 ./services/development/hoogle.nix
318318 ./services/development/jupyter/default.nix
319+ ./services/development/lorri.nix
319320 ./services/editors/emacs.nix
320321 ./services/editors/infinoted.nix
321322 ./services/games/factorio.nix
322323 ./services/games/minecraft-server.nix
323324 ./services/games/minetest-server.nix
325+ ./services/games/openarena.nix
324326 ./services/games/terraria.nix
325327 ./services/hardware/acpid.nix
326328 ./services/hardware/actkbd.nix
@@ -548,6 +550,8 @@
548550 ./services/network-filesystems/nfsd.nix
549551 ./services/network-filesystems/openafs/client.nix
550552 ./services/network-filesystems/openafs/server.nix
553+ ./services/network-filesystems/orangefs/server.nix
554+ ./services/network-filesystems/orangefs/client.nix
551555 ./services/network-filesystems/rsyncd.nix
552556 ./services/network-filesystems/samba.nix
553557 ./services/network-filesystems/tahoe.nix
@@ -601,6 +605,7 @@
601605 ./services/networking/gdomap.nix
602606 ./services/networking/git-daemon.nix
603607 ./services/networking/gnunet.nix
608+ ./services/networking/go-shadowsocks2.nix
604609 ./services/networking/gogoclient.nix
605610 ./services/networking/gvpe.nix
606611 ./services/networking/hans.nix
@@ -614,7 +619,6 @@
614619 ./services/networking/iodine.nix
615620 ./services/networking/iperf3.nix
616621 ./services/networking/ircd-hybrid/default.nix
617− ./services/networking/jormungandr.nix
618622 ./services/networking/iwd.nix
619623 ./services/networking/keepalived/default.nix
620624 ./services/networking/keybase.nix
@@ -713,6 +717,7 @@
713717 ./services/networking/tinc.nix
714718 ./services/networking/tinydns.nix
715719 ./services/networking/tftpd.nix
720+ ./services/networking/trickster.nix
716721 ./services/networking/tox-bootstrapd.nix
717722 ./services/networking/tox-node.nix
718723 ./services/networking/toxvpn.nix
@@ -729,6 +734,7 @@
729734 ./services/networking/xinetd.nix
730735 ./services/networking/xl2tpd.nix
731736 ./services/networking/xrdp.nix
737+ ./services/networking/yggdrasil.nix
732738 ./services/networking/zerobin.nix
733739 ./services/networking/zeronet.nix
734740 ./services/networking/zerotierone.nix
@@ -793,6 +799,7 @@
793799 ./services/web-apps/cryptpad.nix
794800 ./services/web-apps/documize.nix
795801 ./services/web-apps/frab.nix
802+ ./services/web-apps/gotify-server.nix
796803 ./services/web-apps/icingaweb2/icingaweb2.nix
797804 ./services/web-apps/icingaweb2/module-monitoring.nix
798805 ./services/web-apps/limesurvey.nix
@@ -804,8 +811,10 @@
804811 ./services/web-apps/nexus.nix
805812 ./services/web-apps/pgpkeyserver-lite.nix
806813 ./services/web-apps/matomo.nix
814+ ./services/web-apps/moinmoin.nix
807815 ./services/web-apps/restya-board.nix
808816 ./services/web-apps/tt-rss.nix
817+ ./services/web-apps/trac.nix
809818 ./services/web-apps/selfoss.nix
810819 ./services/web-apps/shiori.nix
811820 ./services/web-apps/virtlyst.nix
@@ -833,6 +842,7 @@
833842 ./services/web-servers/shellinabox.nix
834843 ./services/web-servers/tomcat.nix
835844 ./services/web-servers/traefik.nix
845+ ./services/web-servers/ttyd.nix
836846 ./services/web-servers/uwsgi.nix
837847 ./services/web-servers/varnish/default.nix
838848 ./services/web-servers/zope2.nix
@@ -856,6 +866,7 @@
856866 ./services/x11/hardware/multitouch.nix
857867 ./services/x11/hardware/synaptics.nix
858868 ./services/x11/hardware/wacom.nix
869+ ./services/x11/hardware/digimend.nix
859870 ./services/x11/hardware/cmt.nix
860871 ./services/x11/gdk-pixbuf.nix
861872 ./services/x11/redshift.nix
nixos/modules/profiles/graphical.nix−1
@@ -16,7 +16,6 @@
1616
1717 # Enable sound in virtualbox appliances.
1818 hardware.pulseaudio.enable = true;
19− hardware.pulseaudio.systemWide = true; # Needed since we run plasma as root.
2019
2120 environment.systemPackages = [ pkgs.glxinfo pkgs.firefox ];
2221}
nixos/modules/profiles/installation-device.nix−3
@@ -31,9 +31,6 @@ with lib;
3131 # Let the user play Rogue on TTY 8 during the installation.
3232 #services.rogue.enable = true;
3333
34− # Disable some other stuff we don't need.
35− services.udisks2.enable = mkDefault false;
36−
3734 # Use less privileged nixos user
3835 users.users.nixos = {
3936 isNormalUser = true;
nixos/modules/programs/gnupg.nix+40−1
@@ -6,6 +6,19 @@ let
66
77 cfg = config.programs.gnupg;
88
9+ xserverCfg = config.services.xserver;
10+
11+ defaultPinentryFlavor =
12+ if xserverCfg.desktopManager.lxqt.enable
13+ || xserverCfg.desktopManager.plasma5.enable then
14+ "qt"
15+ else if xserverCfg.desktopManager.xfce.enable then
16+ "gtk2"
17+ else if xserverCfg.enable || config.programs.sway.enable then
18+ "gnome3"
19+ else
20+ null;
21+
922in
1023
1124{
@@ -54,6 +67,20 @@ in
5467 '';
5568 };
5669
70+ agent.pinentryFlavor = mkOption {
71+ type = types.nullOr (types.enum pkgs.pinentry.flavors);
72+ example = "gnome3";
73+ description = ''
74+ Which pinentry interface to use. If not null, the path to the
75+ pinentry binary will be passed to gpg-agent via commandline and
76+ thus overrides the pinentry option in gpg-agent.conf in the user's
77+ home directory.
78+ If not set at all, it'll pick an appropriate flavor depending on the
79+ system configuration (qt flavor for lxqt and plasma5, gtk2 for xfce
80+ 4.12, gnome3 on all other systems with X enabled, ncurses otherwise).
81+ '';
82+ };
83+
5784 dirmngr.enable = mkOption {
5885 type = types.bool;
5986 default = false;
@@ -64,6 +91,16 @@ in
6491 };
6592
6693 config = mkIf cfg.agent.enable {
94+ programs.gnupg.agent.pinentryFlavor = mkDefault defaultPinentryFlavor;
95+
96+ # This overrides the systemd user unit shipped with the gnupg package
97+ systemd.user.services.gpg-agent = mkIf (cfg.agent.pinentryFlavor != null) {
98+ serviceConfig.ExecStart = [ "" ''
99+ ${pkgs.gnupg}/bin/gpg-agent --supervised \
100+ --pinentry-program ${pkgs.pinentry.${cfg.agent.pinentryFlavor}}/bin/pinentry
101+ '' ];
102+ };
103+
67104 systemd.user.sockets.gpg-agent = {
68105 wantedBy = [ "sockets.target" ];
69106 };
@@ -83,7 +120,9 @@ in
83120 systemd.user.sockets.dirmngr = mkIf cfg.dirmngr.enable {
84121 wantedBy = [ "sockets.target" ];
85122 };
86−
123+
124+ services.dbus.packages = mkIf (cfg.agent.pinentryFlavor == "gnome3") [ pkgs.gcr ];
125+
87126 environment.systemPackages = with pkgs; [ cfg.package ];
88127 systemd.packages = [ cfg.package ];
89128
nixos/modules/programs/seahorse.nix+2
@@ -31,6 +31,8 @@ with lib;
3131
3232 config = mkIf config.programs.seahorse.enable {
3333
34+ programs.ssh.askPassword = mkDefault "${pkgs.gnome3.seahorse}/libexec/seahorse/ssh-askpass";
35+
3436 environment.systemPackages = [
3537 pkgs.gnome3.seahorse
3638 ];
nixos/modules/programs/shadow.nix+12−2
@@ -6,17 +6,27 @@ with lib;
66
77let
88
9+ /*
10+ There are three different sources for user/group id ranges, each of which gets
11+ used by different programs:
12+ - The login.defs file, used by the useradd, groupadd and newusers commands
13+ - The update-users-groups.pl file, used by NixOS in the activation phase to
14+ decide on which ids to use for declaratively defined users without a static
15+ id
16+ - Systemd compile time options -Dsystem-uid-max= and -Dsystem-gid-max=, used
17+ by systemd for features like ConditionUser=@system and systemd-sysusers
18+ */
919 loginDefs =
1020 ''
1121 DEFAULT_HOME yes
1222
1323 SYS_UID_MIN 400
14− SYS_UID_MAX 499
24+ SYS_UID_MAX 999
1525 UID_MIN 1000
1626 UID_MAX 29999
1727
1828 SYS_GID_MIN 400
19− SYS_GID_MAX 499
29+ SYS_GID_MAX 999
2030 GID_MIN 1000
2131 GID_MAX 29999
2232
nixos/modules/programs/ssh.nix+11
@@ -115,6 +115,16 @@ in
115115 '';
116116 };
117117
118+ agentPKCS11Whitelist = mkOption {
119+ type = types.nullOr types.str;
120+ default = null;
121+ example = "\${pkgs.opensc}/lib/opensc-pkcs11.so";
122+ description = ''
123+ A pattern-list of acceptable paths for PKCS#11 shared libraries
124+ that may be used with the -s option to ssh-add.
125+ '';
126+ };
127+
118128 package = mkOption {
119129 type = types.package;
120130 default = pkgs.openssh;
@@ -241,6 +251,7 @@ in
241251 ExecStart =
242252 "${cfg.package}/bin/ssh-agent " +
243253 optionalString (cfg.agentTimeout != null) ("-t ${cfg.agentTimeout} ") +
254+ optionalString (cfg.agentPKCS11Whitelist != null) ("-P ${cfg.agentPKCS11Whitelist} ") +
244255 "-a %t/ssh-agent";
245256 StandardOutput = "null";
246257 Type = "forking";
nixos/modules/programs/x2goserver.nix+1
@@ -69,6 +69,7 @@ in {
6969 users.users.x2go = {
7070 home = "/var/lib/x2go/db";
7171 group = "x2go";
72+ isSystemUser = true;
7273 };
7374
7475 security.wrappers.x2gosqliteWrapper = {
nixos/modules/programs/zsh/zsh-syntax-highlighting.nix+2−2
@@ -81,7 +81,7 @@ in
8181 ];
8282
8383 programs.zsh.interactiveShellInit = with pkgs;
84− lib.concatStringsSep "\n" ([
84+ lib.mkAfter (lib.concatStringsSep "\n" ([
8585 "source ${zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
8686 ] ++ optional (length(cfg.highlighters) > 0)
8787 "ZSH_HIGHLIGHT_HIGHLIGHTERS=(${concatStringsSep " " cfg.highlighters})"
@@ -95,6 +95,6 @@ in
9595 styles: design:
9696 "ZSH_HIGHLIGHT_STYLES[${styles}]='${design}'"
9797 ) cfg.styles)
98− );
98+ ));
9999 };
100100}
nixos/modules/rename.nix+12−1
@@ -135,7 +135,8 @@ with lib;
135135 # piwik was renamed to matomo
136136 (mkRenamedOptionModule [ "services" "piwik" "enable" ] [ "services" "matomo" "enable" ])
137137 (mkRenamedOptionModule [ "services" "piwik" "webServerUser" ] [ "services" "matomo" "webServerUser" ])
138− (mkRenamedOptionModule [ "services" "piwik" "phpfpmProcessManagerConfig" ] [ "services" "matomo" "phpfpmProcessManagerConfig" ])
138+ (mkRemovedOptionModule [ "services" "piwik" "phpfpmProcessManagerConfig" ] "Use services.phpfpm.pools.<name>.settings")
139+ (mkRemovedOptionModule [ "services" "matomo" "phpfpmProcessManagerConfig" ] "Use services.phpfpm.pools.<name>.settings")
139140 (mkRenamedOptionModule [ "services" "piwik" "nginx" ] [ "services" "matomo" "nginx" ])
140141
141142 # tarsnap
@@ -233,6 +234,7 @@ with lib;
233234 (mkRemovedOptionModule [ "services" "mysql" "rootPassword" ] "Use socket authentication or set the password outside of the nix store.")
234235 (mkRemovedOptionModule [ "services" "zabbixServer" "dbPassword" ] "Use services.zabbixServer.database.passwordFile instead.")
235236 (mkRemovedOptionModule [ "systemd" "generator-packages" ] "Use systemd.packages instead.")
237+ (mkRemovedOptionModule [ "fonts" "enableCoreFonts" ] "Use fonts.fonts = [ pkgs.corefonts ]; instead.")
236238
237239 # ZSH
238240 (mkRenamedOptionModule [ "programs" "zsh" "enableSyntaxHighlighting" ] [ "programs" "zsh" "syntaxHighlighting" "enable" ])
@@ -290,5 +292,14 @@ with lib;
290292 (opt: mkRemovedOptionModule [ "services" "prometheus" "${opt}" ] ''
291293 The prometheus exporters are now configured using `services.prometheus.exporters'.
292294 See the 18.03 release notes for more information.
295+ '' ))
296+
297+ ++ (forEach [ "enable" "substitutions" "preset" ]
298+ (opt: mkRemovedOptionModule [ "fonts" "fontconfig" "ultimate" "${opt}" ] ''
299+ The fonts.fontconfig.ultimate module and configuration is obsolete.
300+ The repository has since been archived and activity has ceased.
301+ https://github.com/bohoomil/fontconfig-ultimate/issues/171.
302+ No action should be needed for font configuration, as the fonts.fontconfig
303+ module is already used by default.
293304 '' ));
294305}
nixos/modules/security/acme.nix+43−18
@@ -20,6 +20,16 @@ let
2020 '';
2121 };
2222
23+ server = mkOption {
24+ type = types.nullOr types.str;
25+ default = null;
26+ description = ''
27+ ACME Directory Resource URI. Defaults to let's encrypt
28+ production endpoint,
29+ https://acme-v02.api.letsencrypt.org/directory, if unset.
30+ '';
31+ };
32+
2333 domain = mkOption {
2434 type = types.str;
2535 default = name;
@@ -69,9 +79,9 @@ let
6979 plugins = mkOption {
7080 type = types.listOf (types.enum [
7181 "cert.der" "cert.pem" "chain.pem" "external.sh"
72− "fullchain.pem" "full.pem" "key.der" "key.pem" "account_key.json"
82+ "fullchain.pem" "full.pem" "key.der" "key.pem" "account_key.json" "account_reg.json"
7383 ]);
74− default = [ "fullchain.pem" "full.pem" "key.pem" "account_key.json" ];
84+ default = [ "fullchain.pem" "full.pem" "key.pem" "account_key.json" "account_reg.json" ];
7585 description = ''
7686 Plugins to enable. With default settings simp_le will
7787 store public certificate bundle in <filename>fullchain.pem</filename>,
@@ -109,7 +119,15 @@ in
109119{
110120
111121 ###### interface
112−
122+ imports = [
123+ (mkRemovedOptionModule [ "security" "acme" "production" ] ''
124+ Use security.acme.server to define your staging ACME server URL instead.
125+
126+ To use the let's encrypt staging server, use security.acme.server =
127+ "https://acme-staging-v02.api.letsencrypt.org/directory".
128+ ''
129+ )
130+ ];
113131 options = {
114132 security.acme = {
115133
@@ -129,6 +147,16 @@ in
129147 '';
130148 };
131149
150+ server = mkOption {
151+ type = types.nullOr types.str;
152+ default = null;
153+ description = ''
154+ ACME Directory Resource URI. Defaults to let's encrypt
155+ production endpoint,
156+ <literal>https://acme-v02.api.letsencrypt.org/directory</literal>, if unset.
157+ '';
158+ };
159+
132160 preliminarySelfsigned = mkOption {
133161 type = types.bool;
134162 default = true;
@@ -142,20 +170,6 @@ in
142170 '';
143171 };
144172
145− production = mkOption {
146− type = types.bool;
147− default = true;
148− description = ''
149− If set to true, use Let's Encrypt's production environment
150− instead of the staging environment. The main benefit of the
151− staging environment is to get much higher rate limits.
152−
153− See
154− <literal>https://letsencrypt.org/docs/staging-environment</literal>
155− for more detail.
156− '';
157− };
158−
159173 certs = mkOption {
160174 default = { };
161175 type = with types; attrsOf (submodule certOpts);
@@ -198,13 +212,24 @@ in
198212 ++ optionals (data.email != null) [ "--email" data.email ]
199213 ++ concatMap (p: [ "-f" p ]) data.plugins
200214 ++ concatLists (mapAttrsToList (name: root: [ "-d" (if root == null then name else "${name}:${root}")]) data.extraDomains)
201− ++ optionals (!cfg.production) ["--server" "https://acme-staging.api.letsencrypt.org/directory"];
215+ ++ optionals (cfg.server != null || data.server != null) ["--server" (if data.server == null then cfg.server else data.server)];
202216 acmeService = {
203217 description = "Renew ACME Certificate for ${cert}";
204218 after = [ "network.target" "network-online.target" ];
205219 wants = [ "network-online.target" ];
220+ # simp_le uses requests, which uses certifi under the hood,
221+ # which doesn't respect the system trust store.
222+ # At least in the acme test, we provision a fake CA, impersonating the LE endpoint.
223+ # REQUESTS_CA_BUNDLE is a way to teach python requests to use something else
224+ environment.REQUESTS_CA_BUNDLE = "/etc/ssl/certs/ca-certificates.crt";
206225 serviceConfig = {
207226 Type = "oneshot";
227+ # With RemainAfterExit the service is considered active even
228+ # after the main process having exited, which means when it
229+ # gets changed, the activation phase restarts it, meaning
230+ # the permissions of the StateDirectory get adjusted
231+ # according to the specified group
232+ RemainAfterExit = true;
208233 SuccessExitStatus = [ "0" "1" ];
209234 User = data.user;
210235 Group = data.group;
nixos/modules/security/pam_mount.nix+3−3
@@ -50,9 +50,6 @@ in
5050 <pam_mount>
5151 <debug enable="0" />
5252
53− ${concatStrings (map userVolumeEntry (attrValues extraUserVolumes))}
54− ${concatStringsSep "\n" cfg.extraVolumes}
55−
5653 <!-- if activated, requires ofl from hxtools to be present -->
5754 <logout wait="0" hup="no" term="no" kill="no" />
5855 <!-- set PATH variable for pam_mount module -->
@@ -64,6 +61,9 @@ in
6461 <cryptmount>${pkgs.pam_mount}/bin/mount.crypt %(VOLUME) %(MNTPT)</cryptmount>
6562 <cryptumount>${pkgs.pam_mount}/bin/umount.crypt %(MNTPT)</cryptumount>
6663 <pmvarrun>${pkgs.pam_mount}/bin/pmvarrun -u %(USER) -o %(OPERATION)</pmvarrun>
64+
65+ ${concatStrings (map userVolumeEntry (attrValues extraUserVolumes))}
66+ ${concatStringsSep "\n" cfg.extraVolumes}
6767 </pam_mount>
6868 '';
6969 }];
nixos/modules/services/admin/oxidized.nix+1
@@ -89,6 +89,7 @@ in
8989 group = cfg.group;
9090 home = cfg.dataDir;
9191 createHome = true;
92+ isSystemUser = true;
9293 };
9394
9495 systemd.services.oxidized = {
nixos/modules/services/audio/jack.nix+1
@@ -223,6 +223,7 @@ in {
223223 group = "jackaudio";
224224 extraGroups = [ "audio" ];
225225 description = "JACK Audio system service user";
226+ isSystemUser = true;
226227 };
227228 # http://jackaudio.org/faq/linux_rt_config.html
228229 security.pam.loginLimits = [
nixos/modules/services/audio/mpd.nix+1−1
@@ -18,7 +18,6 @@ let
1818 ''}
1919 state_file "${cfg.dataDir}/state"
2020 sticker_file "${cfg.dataDir}/sticker.sql"
21− log_file "syslog"
2221 user "${cfg.user}"
2322 group "${cfg.group}"
2423
@@ -181,6 +180,7 @@ in {
181180 ProtectKernelModules = true;
182181 RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
183182 RestrictNamespaces = true;
183+ Restart = "always";
184184 };
185185 };
186186
nixos/modules/services/backup/automysqlbackup.nix+4−1
@@ -99,7 +99,10 @@ in
9999
100100 environment.systemPackages = [ pkg ];
101101
102− users.users.${user}.group = group;
102+ users.users.${user} = {
103+ group = group;
104+ isSystemUser = true;
105+ };
103106 users.groups.${group} = { };
104107
105108 systemd.tmpfiles.rules = [
nixos/modules/services/backup/znapzend.nix+28
@@ -34,6 +34,8 @@ let
3434 description = "string of the form number{b|k|M|G}";
3535 };
3636
37+ enabledFeatures = concatLists (mapAttrsToList (name: enabled: optional enabled name) cfg.features);
38+
3739 # Type for a string that must contain certain other strings (the list parameter).
3840 # Note that these would need regex escaping.
3941 stringContainingStrings = list: let
@@ -354,6 +356,22 @@ in
354356 '';
355357 default = false;
356358 };
359+
360+ features.recvu = mkEnableOption ''
361+ recvu feature which uses <literal>-u</literal> on the receiving end to keep the destination
362+ filesystem unmounted.
363+ '';
364+ features.compressed = mkEnableOption ''
365+ compressed feature which adds the options <literal>-Lce</literal> to
366+ the <command>zfs send</command> command. When this is enabled, make
367+ sure that both the sending and receiving pool have the same relevant
368+ features enabled. Using <literal>-c</literal> will skip unneccessary
369+ decompress-compress stages, <literal>-L</literal> is for large block
370+ support and -e is for embedded data support. see
371+ <citerefentry><refentrytitle>znapzend</refentrytitle><manvolnum>1</manvolnum></citerefentry>
372+ and <citerefentry><refentrytitle>zfs</refentrytitle><manvolnum>8</manvolnum></citerefentry>
373+ for more info.
374+ '';
357375 };
358376 };
359377
@@ -381,12 +399,22 @@ in
381399 '';
382400
383401 serviceConfig = {
402+ # znapzendzetup --import apparently tries to connect to the backup
403+ # host 3 times with a timeout of 30 seconds, leading to a startup
404+ # delay of >90s when the host is down, which is just above the default
405+ # service timeout of 90 seconds. Increase the timeout so it doesn't
406+ # make the service fail in that case.
407+ TimeoutStartSec = 180;
408+ # Needs to have write access to ZFS
409+ User = "root";
384410 ExecStart = let
385411 args = concatStringsSep " " [
386412 "--logto=${cfg.logTo}"
387413 "--loglevel=${cfg.logLevel}"
388414 (optionalString cfg.noDestroy "--nodestroy")
389415 (optionalString cfg.autoCreation "--autoCreation")
416+ (optionalString (enabledFeatures != [])
417+ "--features=${concatStringsSep "," enabledFeatures}")
390418 ]; in "${pkgs.znapzend}/bin/znapzend ${args}";
391419 ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
392420 Restart = "on-failure";
nixos/modules/services/cluster/kubernetes/addons/dns.nix+6−6
@@ -3,7 +3,7 @@
33with lib;
44
55let
6− version = "1.5.0";
6+ version = "1.6.4";
77 cfg = config.services.kubernetes.addons.dns;
88 ports = {
99 dns = 10053;
@@ -55,9 +55,9 @@ in {
5555 type = types.attrs;
5656 default = {
5757 imageName = "coredns/coredns";
58− imageDigest = "sha256:e83beb5e43f8513fa735e77ffc5859640baea30a882a11cc75c4c3244a737d3c";
58+ imageDigest = "sha256:493ee88e1a92abebac67cbd4b5658b4730e0f33512461442d8d9214ea6734a9b";
5959 finalImageTag = version;
60− sha256 = "15sbmhrxjxidj0j0cccn1qxpg6al175w43m6ngspl0mc132zqc9q";
60+ sha256 = "0fm9zdjavpf5hni8g7fkdd3csjbhd7n7py7llxjc66sbii087028";
6161 };
6262 };
6363 };
@@ -68,7 +68,7 @@ in {
6868
6969 services.kubernetes.addonManager.bootstrapAddons = {
7070 coredns-cr = {
71− apiVersion = "rbac.authorization.k8s.io/v1beta1";
71+ apiVersion = "rbac.authorization.k8s.io/v1";
7272 kind = "ClusterRole";
7373 metadata = {
7474 labels = {
@@ -94,7 +94,7 @@ in {
9494 };
9595
9696 coredns-crb = {
97− apiVersion = "rbac.authorization.k8s.io/v1beta1";
97+ apiVersion = "rbac.authorization.k8s.io/v1";
9898 kind = "ClusterRoleBinding";
9999 metadata = {
100100 annotations = {
@@ -170,7 +170,7 @@ in {
170170 };
171171
172172 coredns-deploy = {
173− apiVersion = "extensions/v1beta1";
173+ apiVersion = "apps/v1";
174174 kind = "Deployment";
175175 metadata = {
176176 labels = {
nixos/modules/services/cluster/kubernetes/flannel.nix+1
@@ -40,6 +40,7 @@ in
4040 cni.config = mkDefault [{
4141 name = "mynet";
4242 type = "flannel";
43+ cniVersion = "0.3.1";
4344 delegate = {
4445 isDefaultGateway = true;
4546 bridge = "docker0";
nixos/modules/services/cluster/kubernetes/kubelet.nix+2−2
@@ -92,7 +92,7 @@ in
9292 default = [];
9393 example = literalExample ''
9494 [{
95− "cniVersion": "0.2.0",
95+ "cniVersion": "0.3.1",
9696 "name": "mynet",
9797 "type": "bridge",
9898 "bridge": "cni0",
@@ -106,7 +106,7 @@ in
106106 ]
107107 }
108108 } {
109− "cniVersion": "0.2.0",
109+ "cniVersion": "0.3.1",
110110 "type": "loopback"
111111 }]
112112 '';
nixos/modules/services/cluster/kubernetes/proxy.nix+9
@@ -31,6 +31,12 @@ in
3131 type = listOf str;
3232 };
3333
34+ hostname = mkOption {
35+ description = "Kubernetes proxy hostname override.";
36+ default = config.networking.hostName;
37+ type = str;
38+ };
39+
3440 kubeconfig = top.lib.mkKubeConfigOptions "Kubernetes proxy";
3541
3642 verbosity = mkOption {
@@ -59,6 +65,7 @@ in
5965 "--cluster-cidr=${top.clusterCidr}"} \
6066 ${optionalString (cfg.featureGates != [])
6167 "--feature-gates=${concatMapStringsSep "," (feature: "${feature}=true") cfg.featureGates}"} \
68+ --hostname-override=${cfg.hostname} \
6269 --kubeconfig=${top.lib.mkKubeConfig "kube-proxy" cfg.kubeconfig} \
6370 ${optionalString (cfg.verbosity != null) "--v=${toString cfg.verbosity}"} \
6471 ${cfg.extraOpts}
@@ -69,6 +76,8 @@ in
6976 };
7077 };
7178
79+ services.kubernetes.proxy.hostname = with config.networking; mkDefault hostName;
80+
7281 services.kubernetes.pki.certs = {
7382 kubeProxyClient = top.lib.mkCert {
7483 name = "kube-proxy-client";
nixos/modules/services/computing/slurm/slurm.nix+46−5
@@ -18,7 +18,7 @@ let
1818 ${optionalString (cfg.controlAddr != null) ''controlAddr=${cfg.controlAddr}''}
1919 ${toString (map (x: "NodeName=${x}\n") cfg.nodeName)}
2020 ${toString (map (x: "PartitionName=${x}\n") cfg.partitionName)}
21− PlugStackConfig=${plugStackConfig}
21+ PlugStackConfig=${plugStackConfig}/plugstack.conf
2222 ProctrackType=${cfg.procTrackType}
2323 ${cfg.extraConfig}
2424 '';
@@ -39,6 +39,8 @@ let
3939 DbdHost=${cfg.dbdserver.dbdHost}
4040 SlurmUser=${cfg.user}
4141 StorageType=accounting_storage/mysql
42+ StorageUser=${cfg.dbdserver.storageUser}
43+ ${optionalString (cfg.dbdserver.storagePass != null) "StoragePass=${cfg.dbdserver.storagePass}"}
4244 ${cfg.dbdserver.extraConfig}
4345 '';
4446
@@ -48,7 +50,6 @@ let
4850 name = "etc-slurm";
4951 paths = [ configFile cgroupConfig plugStackConfig ] ++ cfg.extraConfigPaths;
5052 };
51−
5253in
5354
5455{
@@ -86,6 +87,37 @@ in
8687 '';
8788 };
8889
90+ storageUser = mkOption {
91+ type = types.str;
92+ default = cfg.user;
93+ description = ''
94+ Database user name.
95+ '';
96+ };
97+
98+ storagePass = mkOption {
99+ type = types.nullOr types.str;
100+ default = null;
101+ description = ''
102+ Database password. Note that this password will be publicable
103+ readable in the nix store. Use <option>configFile</option>
104+ to store the and config file and password outside the nix store.
105+ '';
106+ };
107+
108+ configFile = mkOption {
109+ type = types.nullOr types.str;
110+ default = null;
111+ description = ''
112+ Path to <literal>slurmdbd.conf</literal>. The password for the database connection
113+ is stored in the config file. Use this option to specfify a path
114+ outside the nix store. If this option is unset a configuration file
115+ will be generated. See also:
116+ <citerefentry><refentrytitle>slurmdbd.conf</refentrytitle>
117+ <manvolnum>8</manvolnum></citerefentry>.
118+ '';
119+ };
120+
89121 extraConfig = mkOption {
90122 type = types.lines;
91123 default = "";
@@ -112,7 +144,7 @@ in
112144
113145 package = mkOption {
114146 type = types.package;
115− default = pkgs.slurm;
147+ default = pkgs.slurm.override { enableX11 = ! cfg.enableSrunX11; };
116148 defaultText = "pkgs.slurm";
117149 example = literalExample "pkgs.slurm-full";
118150 description = ''
@@ -178,9 +210,14 @@ in
178210 If enabled srun will accept the option "--x11" to allow for X11 forwarding
179211 from within an interactive session or a batch job. This activates the
180212 slurm-spank-x11 module. Note that this option also enables
181− 'services.openssh.forwardX11' on the client.
213+ <option>services.openssh.forwardX11</option> on the client.
182214
183215 This option requires slurm to be compiled without native X11 support.
216+ The default behavior is to re-compile the slurm package with native X11
217+ support disabled if this option is set to true.
218+
219+ To use the native X11 support add <literal>PrologFlags=X11</literal> in <option>extraConfig</option>.
220+ Note that this method will only work RSA SSH host keys.
184221 '';
185222 };
186223
@@ -356,7 +393,11 @@ in
356393 requires = [ "munged.service" "mysql.service" ];
357394
358395 # slurm strips the last component off the path
359− environment.SLURM_CONF = "${slurmdbdConf}/slurm.conf";
396+ environment.SLURM_CONF =
397+ if (cfg.dbdserver.configFile == null) then
398+ "${slurmdbdConf}/slurm.conf"
399+ else
400+ cfg.dbdserver.configFile;
360401
361402 serviceConfig = {
362403 Type = "forking";
nixos/modules/services/continuous-integration/buildkite-agent.nix+1
@@ -191,6 +191,7 @@ in
191191 createHome = true;
192192 description = "Buildkite agent user";
193193 extraGroups = [ "keys" ];
194+ isSystemUser = true;
194195 };
195196
196197 environment.systemPackages = [ cfg.package ];
nixos/modules/services/continuous-integration/hydra/default.nix+2−2
@@ -242,8 +242,8 @@ in
242242 environment.variables = hydraEnv;
243243
244244 nix.extraOptions = ''
245− gc-keep-outputs = true
246− gc-keep-derivations = true
245+ keep-outputs = true
246+ keep-derivations = true
247247
248248 # The default (`true') slows Nix down a lot since the build farm
249249 # has so many GC roots.
nixos/modules/services/databases/redis.nix+8−13
@@ -185,27 +185,22 @@ in
185185 ###### implementation
186186
187187 config = mkIf config.services.redis.enable {
188−
189− boot.kernel.sysctl = mkIf cfg.vmOverCommit {
190− "vm.overcommit_memory" = "1";
191− };
188+ boot.kernel.sysctl = (mkMerge [
189+ { "vm.nr_hugepages" = "0"; }
190+ ( mkIf cfg.vmOverCommit { "vm.overcommit_memory" = "1"; } )
191+ ]);
192192
193193 networking.firewall = mkIf cfg.openFirewall {
194194 allowedTCPPorts = [ cfg.port ];
195195 };
196196
197− users.users.redis.description = "Redis database user";
197+ users.users.redis = {
198+ description = "Redis database user";
199+ isSystemUser = true;
200+ };
198201
199202 environment.systemPackages = [ cfg.package ];
200203
201− systemd.services.disable-transparent-huge-pages = {
202− description = "Disable Transparent Huge Pages (required by Redis)";
203− before = [ "redis.service" ];
204− wantedBy = [ "redis.service" ];
205− script = "echo never > /sys/kernel/mm/transparent_hugepage/enabled";
206− serviceConfig.Type = "oneshot";
207− };
208−
209204 systemd.services.redis =
210205 { description = "Redis Server";
211206
nixos/modules/services/databases/rethinkdb.nix+1
@@ -99,6 +99,7 @@ in
9999 users.users.rethinkdb = mkIf (cfg.user == "rethinkdb")
100100 { name = "rethinkdb";
101101 description = "RethinkDB server user";
102+ isSystemUser = true;
102103 };
103104
104105 users.groups = optionalAttrs (cfg.group == "rethinkdb") (singleton
nixos/modules/services/desktops/geoclue2.nix+25−16
@@ -188,34 +188,41 @@ in
188188
189189 systemd.packages = [ package ];
190190
191− users.users.geoclue = {
192− isSystemUser = true;
193− home = "/var/lib/geoclue";
194− group = "geoclue";
195− description = "Geoinformation service";
196− };
197−
198− users.groups.geoclue = {};
191+ # we cannot use DynamicUser as we need the the geoclue user to exist for the dbus policy to work
192+ users = {
193+ users.geoclue = {
194+ isSystemUser = true;
195+ home = "/var/lib/geoclue";
196+ group = "geoclue";
197+ description = "Geoinformation service";
198+ };
199199
200− systemd.tmpfiles.rules = [
201− "d /var/lib/geoclue 0755 geoclue geoclue"
202− ];
200+ groups.geoclue = {};
201+ };
203202
204− # restart geoclue service when the configuration changes
205− systemd.services.geoclue.restartTriggers = [
206− config.environment.etc."geoclue/geoclue.conf".source
207− ];
203+ systemd.services.geoclue = {
204+ # restart geoclue service when the configuration changes
205+ restartTriggers = [
206+ config.environment.etc."geoclue/geoclue.conf".source
207+ ];
208+ serviceConfig.StateDirectory = "geoclue";
209+ };
208210
209211 # this needs to run as a user service, since it's associated with the
210212 # user who is making the requests
211213 systemd.user.services = mkIf cfg.enableDemoAgent {
212214 geoclue-agent = {
213215 description = "Geoclue agent";
214− script = "${package}/libexec/geoclue-2.0/demos/agent";
215216 # this should really be `partOf = [ "geoclue.service" ]`, but
216217 # we can't be part of a system service, and the agent should
217218 # be okay with the main service coming and going
218219 wantedBy = [ "default.target" ];
220+ serviceConfig = {
221+ Type = "exec";
222+ ExecStart = "${package}/libexec/geoclue-2.0/demos/agent";
223+ Restart = "on-failure";
224+ PrivateTmp = true;
225+ };
219226 };
220227 };
221228
@@ -256,4 +263,6 @@ in
256263 };
257264 } // mapAttrs' appConfigToINICompatible cfg.appConfig);
258265 };
266+
267+ meta.maintainers = with lib.maintainers; [ worldofpeace ];
259268}
nixos/modules/services/desktops/system-config-printer.nix+3
@@ -33,6 +33,9 @@ with lib;
3333 pkgs.system-config-printer
3434 ];
3535
36+ # for $out/bin/install-printer-driver
37+ services.packagekit.enable = true;
38+
3639 };
3740
3841}
nixos/modules/services/development/lorri.nixnew file+47
@@ -0,0 +1,47 @@
1+{ config, lib, pkgs, ... }:
2+
3+let
4+ cfg = config.services.lorri;
5+ socketPath = "lorri/daemon.socket";
6+in {
7+ options = {
8+ services.lorri = {
9+ enable = lib.mkOption {
10+ default = false;
11+ type = lib.types.bool;
12+ description = ''
13+ Enables the daemon for `lorri`, a nix-shell replacement for project
14+ development. The socket-activated daemon starts on the first request
15+ issued by the `lorri` command.
16+ '';
17+ };
18+ };
19+ };
20+
21+ config = lib.mkIf cfg.enable {
22+ systemd.user.sockets.lorri = {
23+ description = "Socket for Lorri Daemon";
24+ wantedBy = [ "sockets.target" ];
25+ socketConfig = {
26+ ListenStream = "%t/${socketPath}";
27+ RuntimeDirectory = "lorri";
28+ };
29+ };
30+
31+ systemd.user.services.lorri = {
32+ description = "Lorri Daemon";
33+ requires = [ "lorri.socket" ];
34+ after = [ "lorri.socket" ];
35+ path = with pkgs; [ config.nix.package gnutar gzip ];
36+ serviceConfig = {
37+ ExecStart = "${pkgs.lorri}/bin/lorri daemon";
38+ PrivateTmp = true;
39+ ProtectSystem = "strict";
40+ ProtectHome = "read-only";
41+ Restart = "on-failure";
42+ };
43+ };
44+
45+ environment.systemPackages = [ pkgs.lorri ];
46+ };
47+}
nixos/modules/services/editors/infinoted.nix+1
@@ -115,6 +115,7 @@ in {
115115 { name = "infinoted";
116116 description = "Infinoted user";
117117 group = cfg.group;
118+ isSystemUser = true;
118119 };
119120 users.groups = optional (cfg.group == "infinoted")
120121 { name = "infinoted";
nixos/modules/services/games/openarena.nixnew file+56
@@ -0,0 +1,56 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.openarena;
7+in
8+{
9+ options = {
10+ services.openarena = {
11+ enable = mkEnableOption "OpenArena";
12+
13+ openPorts = mkOption {
14+ type = types.bool;
15+ default = false;
16+ description = "Whether to open firewall ports for OpenArena";
17+ };
18+
19+ extraFlags = mkOption {
20+ type = types.listOf types.str;
21+ default = [];
22+ description = ''Extra flags to pass to <command>oa_ded</command>'';
23+ example = [
24+ "+set dedicated 2"
25+ "+set sv_hostname 'My NixOS OpenArena Server'"
26+ # Load a map. Mandatory for clients to be able to connect.
27+ "+map oa_dm1"
28+ ];
29+ };
30+ };
31+ };
32+
33+ config = mkIf cfg.enable {
34+ networking.firewall = mkIf cfg.openPorts {
35+ allowedUDPPorts = [ 27960 ];
36+ };
37+
38+ systemd.services.openarena = {
39+ description = "OpenArena";
40+ wantedBy = [ "multi-user.target" ];
41+ after = [ "network.target" ];
42+
43+ serviceConfig = {
44+ DynamicUser = true;
45+ StateDirectory = "openarena";
46+ ExecStart = "${pkgs.openarena}/bin/openarena-server +set fs_basepath ${pkgs.openarena}/openarena-0.8.8 +set fs_homepath /var/lib/openarena ${concatStringsSep " " cfg.extraFlags}";
47+ Restart = "on-failure";
48+
49+ # Hardening
50+ CapabilityBoundingSet = "";
51+ NoNewPrivileges = true;
52+ PrivateDevices = true;
53+ };
54+ };
55+ };
56+}
nixos/modules/services/hardware/fancontrol.nix+19−20
@@ -4,42 +4,41 @@ with lib;
44
55let
66 cfg = config.hardware.fancontrol;
7− configFile = pkgs.writeText "fan.conf" cfg.config;
8−
9−in {
7+ configFile = pkgs.writeText "fancontrol.conf" cfg.config;
108
9+in{
1110 options.hardware.fancontrol = {
12− enable = mkEnableOption "fancontrol (requires fancontrol.config)";
11+ enable = mkEnableOption "software fan control (requires fancontrol.config)";
1312
1413 config = mkOption {
15− type = types.lines;
1614 default = null;
15+ type = types.lines;
16+ description = "Fancontrol configuration file content. See <citerefentry><refentrytitle>pwmconfig</refentrytitle><manvolnum>8</manvolnum></citerefentry> from the lm_sensors package.";
1717 example = ''
1818 # Configuration file generated by pwmconfig
19− INTERVAL=1
20− DEVPATH=hwmon0=devices/platform/nct6775.656 hwmon1=devices/pci0000:00/0000:00:18.3
21− DEVNAME=hwmon0=nct6779 hwmon1=k10temp
22− FCTEMPS=hwmon0/pwm2=hwmon1/temp1_input
23− FCFANS=hwmon0/pwm2=hwmon0/fan2_input
24− MINTEMP=hwmon0/pwm2=25
25− MAXTEMP=hwmon0/pwm2=60
26− MINSTART=hwmon0/pwm2=25
27− MINSTOP=hwmon0/pwm2=10
28− MINPWM=hwmon0/pwm2=0
29− MAXPWM=hwmon0/pwm2=255
19+ INTERVAL=10
20+ DEVPATH=hwmon3=devices/virtual/thermal/thermal_zone2 hwmon4=devices/platform/f71882fg.656
21+ DEVNAME=hwmon3=soc_dts1 hwmon4=f71869a
22+ FCTEMPS=hwmon4/device/pwm1=hwmon3/temp1_input
23+ FCFANS= hwmon4/device/pwm1=hwmon4/device/fan1_input
24+ MINTEMP=hwmon4/device/pwm1=35
25+ MAXTEMP=hwmon4/device/pwm1=65
26+ MINSTART=hwmon4/device/pwm1=150
27+ MINSTOP=hwmon4/device/pwm1=0
3028 '';
31− description = "Contents for configuration file. See <citerefentry><refentrytitle>pwmconfig</refentrytitle><manvolnum>8</manvolnum></citerefentry>.";
3229 };
3330 };
3431
35−
3632 config = mkIf cfg.enable {
3733 systemd.services.fancontrol = {
38− description = "Fan speed control from lm_sensors";
34+ unitConfig.Documentation = "man:fancontrol(8)";
35+ description = "software fan control";
3936 wantedBy = [ "multi-user.target" ];
37+ after = [ "lm_sensors.service" ];
38+
4039 serviceConfig = {
4140 Type = "simple";
42− ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${configFile}";
41+ ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
4342 };
4443 };
4544 };
nixos/modules/services/hardware/tlp.nix+1−1
@@ -37,7 +37,7 @@ in
3737 enable = mkOption {
3838 type = types.bool;
3939 default = false;
40− description = "Whether to enable the TLP daemon.";
40+ description = "Whether to enable the TLP power management daemon.";
4141 };
4242
4343 extraConfig = mkOption {
nixos/modules/services/hardware/trezord.nix+2−14
@@ -44,20 +44,7 @@ in {
4444 ### implementation
4545
4646 config = mkIf cfg.enable {
47− services.udev.packages = lib.singleton (pkgs.writeTextFile {
48− name = "trezord-udev-rules";
49− destination = "/etc/udev/rules.d/51-trezor.rules";
50− text = ''
51− # TREZOR v1 (One)
52− SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
53− KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0660", GROUP="trezord", TAG+="uaccess"
54−
55− # TREZOR v2 (T)
56− SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c0", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
57− SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c1", MODE="0660", GROUP="trezord", TAG+="uaccess", SYMLINK+="trezor%n"
58− KERNEL=="hidraw*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="53c1", MODE="0660", GROUP="trezord", TAG+="uaccess"
59− '';
60− });
47+ services.udev.packages = [ pkgs.trezor-udev-rules ];
6148
6249 systemd.services.trezord = {
6350 description = "TREZOR Bridge";
@@ -74,6 +61,7 @@ in {
7461 users.users.trezord = {
7562 group = "trezord";
7663 description = "Trezor bridge daemon user";
64+ isSystemUser = true;
7765 };
7866
7967 users.groups.trezord = {};
nixos/modules/services/hardware/udisks2.nix+1−4
@@ -34,10 +34,7 @@ with lib;
3434
3535 services.dbus.packages = [ pkgs.udisks2 ];
3636
37− system.activationScripts.udisks2 =
38− ''
39− mkdir -m 0755 -p /var/lib/udisks2
40− '';
37+ systemd.tmpfiles.rules = [ "d /var/lib/udisks2 0755 root root -" ];
4138
4239 services.udev.packages = [ pkgs.udisks2 ];
4340
nixos/modules/services/hardware/usbmuxd.nix+1
@@ -47,6 +47,7 @@ in
4747 name = cfg.user;
4848 description = "usbmuxd user";
4949 group = cfg.group;
50+ isSystemUser = true;
5051 };
5152
5253 users.groups = optional (cfg.group == defaultUserGroup) {
nixos/modules/services/hardware/vdr.nix+1
@@ -66,6 +66,7 @@ in {
6666 users.users.vdr = {
6767 group = "vdr";
6868 home = libDir;
69+ isSystemUser = true;
6970 };
7071
7172 users.groups.vdr = {};
nixos/modules/services/mail/mailhog.nix+1
@@ -27,6 +27,7 @@ in {
2727 users.users.mailhog = {
2828 name = cfg.user;
2929 description = "MailHog service user";
30+ isSystemUser = true;
3031 };
3132
3233 systemd.services.mailhog = {
nixos/modules/services/mail/opensmtpd.nix+6−12
@@ -101,6 +101,12 @@ in {
101101 };
102102 };
103103
104+ systemd.tmpfiles.rules = [
105+ "d /var/spool/smtpd 711 root - - -"
106+ "d /var/spool/smtpd/offline 770 root smtpq - -"
107+ "d /var/spool/smtpd/purge 700 smtpq root - -"
108+ ];
109+
104110 systemd.services.opensmtpd = let
105111 procEnv = pkgs.buildEnv {
106112 name = "opensmtpd-procs";
@@ -110,18 +116,6 @@ in {
110116 in {
111117 wantedBy = [ "multi-user.target" ];
112118 after = [ "network.target" ];
113− preStart = ''
114− mkdir -p /var/spool/smtpd
115− chmod 711 /var/spool/smtpd
116−
117− mkdir -p /var/spool/smtpd/offline
118− chown root.smtpq /var/spool/smtpd/offline
119− chmod 770 /var/spool/smtpd/offline
120−
121− mkdir -p /var/spool/smtpd/purge
122− chown smtpq.root /var/spool/smtpd/purge
123− chmod 700 /var/spool/smtpd/purge
124− '';
125119 serviceConfig.ExecStart = "${cfg.package}/sbin/smtpd -d -f ${conf} ${args}";
126120 environment.OPENSMTPD_PROC_PATH = "${procEnv}/libexec/opensmtpd";
127121 };
nixos/modules/services/mail/postfix.nix+8
@@ -631,6 +631,14 @@ in
631631 setgid = true;
632632 };
633633
634+ security.wrappers.mailq = {
635+ program = "mailq";
636+ source = "${pkgs.postfix}/bin/mailq";
637+ group = setgidGroup;
638+ setuid = false;
639+ setgid = true;
640+ };
641+
634642 security.wrappers.postqueue = {
635643 program = "postqueue";
636644 source = "${pkgs.postfix}/bin/postqueue";
nixos/modules/services/mail/rspamd.nix+1−1
@@ -60,7 +60,7 @@ let
6060 };
6161 type = mkOption {
6262 type = types.nullOr (types.enum [
63− "normal" "controller" "fuzzy_storage" "rspamd_proxy" "lua" "proxy"
63+ "normal" "controller" "fuzzy" "rspamd_proxy" "lua" "proxy"
6464 ]);
6565 description = ''
6666 The type of this worker. The type <literal>proxy</literal> is
nixos/modules/services/misc/airsonic.nix+1
@@ -148,6 +148,7 @@ in {
148148 name = cfg.user;
149149 home = cfg.home;
150150 createHome = true;
151+ isSystemUser = true;
151152 };
152153 };
153154}
nixos/modules/services/misc/docker-registry.nix+4−2
@@ -145,11 +145,13 @@ in {
145145 };
146146
147147 users.users.docker-registry =
148− if cfg.storagePath != null
148+ (if cfg.storagePath != null
149149 then {
150150 createHome = true;
151151 home = cfg.storagePath;
152152 }
153− else {};
153+ else {}) // {
154+ isSystemUser = true;
155+ };
154156 };
155157}
nixos/modules/services/misc/errbot.nix+4−1
@@ -76,7 +76,10 @@ in {
7676 };
7777
7878 config = mkIf (cfg.instances != {}) {
79− users.users.errbot.group = "errbot";
79+ users.users.errbot = {
80+ group = "errbot";
81+ isSystemUser = true;
82+ };
8083 users.groups.errbot = {};
8184
8285 systemd.services = mapAttrs' (name: instanceCfg: nameValuePair "errbot-${name}" (
nixos/modules/services/misc/gitea.nix+1
@@ -409,6 +409,7 @@ in
409409 home = cfg.stateDir;
410410 useDefaultShell = true;
411411 group = "gitea";
412+ isSystemUser = true;
412413 };
413414 };
414415
nixos/modules/services/misc/gitlab.nix+8−3
@@ -608,6 +608,8 @@ in {
608608 # objects owners and extensions; for now we tack on what's needed
609609 # here.
610610 systemd.services.postgresql.postStart = mkAfter (optionalString databaseActuallyCreateLocally ''
611+ set -eu
612+
611613 $PSQL -tAc "SELECT 1 FROM pg_database WHERE datname = '${cfg.databaseName}'" | grep -q 1 || $PSQL -tAc 'CREATE DATABASE "${cfg.databaseName}" OWNER "${cfg.databaseUsername}"'
612614 current_owner=$($PSQL -tAc "SELECT pg_catalog.pg_get_userbyid(datdba) FROM pg_catalog.pg_database WHERE datname = '${cfg.databaseName}'")
613615 if [[ "$current_owner" != "${cfg.databaseUsername}" ]]; then
@@ -649,7 +651,7 @@ in {
649651 "d ${cfg.statePath} 0750 ${cfg.user} ${cfg.group} -"
650652 "d ${cfg.statePath}/builds 0750 ${cfg.user} ${cfg.group} -"
651653 "d ${cfg.statePath}/config 0750 ${cfg.user} ${cfg.group} -"
652− "D ${cfg.statePath}/config/initializers 0750 ${cfg.user} ${cfg.group} -"
654+ "d ${cfg.statePath}/config/initializers 0750 ${cfg.user} ${cfg.group} -"
653655 "d ${cfg.statePath}/db 0750 ${cfg.user} ${cfg.group} -"
654656 "d ${cfg.statePath}/log 0750 ${cfg.user} ${cfg.group} -"
655657 "d ${cfg.statePath}/repositories 2770 ${cfg.user} ${cfg.group} -"
@@ -666,7 +668,6 @@ in {
666668 "d ${gitlabConfig.production.shared.path}/artifacts 0750 ${cfg.user} ${cfg.group} -"
667669 "d ${gitlabConfig.production.shared.path}/lfs-objects 0750 ${cfg.user} ${cfg.group} -"
668670 "d ${gitlabConfig.production.shared.path}/pages 0750 ${cfg.user} ${cfg.group} -"
669− "L+ ${cfg.statePath}/lib - - - - ${cfg.packages.gitlab}/share/gitlab/lib"
670671 "L+ /run/gitlab/config - - - - ${cfg.statePath}/config"
671672 "L+ /run/gitlab/log - - - - ${cfg.statePath}/log"
672673 "L+ /run/gitlab/tmp - - - - ${cfg.statePath}/tmp"
@@ -740,7 +741,6 @@ in {
740741 gitlab-workhorse
741742 ];
742743 serviceConfig = {
743− PermissionsStartOnly = true; # preStart must be run as root
744744 Type = "simple";
745745 User = cfg.user;
746746 Group = cfg.group;
@@ -782,13 +782,18 @@ in {
782782 ExecStartPre = let
783783 preStartFullPrivileges = ''
784784 shopt -s dotglob nullglob
785+ set -eu
786+
785787 chown --no-dereference '${cfg.user}':'${cfg.group}' '${cfg.statePath}'/*
786788 chown --no-dereference '${cfg.user}':'${cfg.group}' '${cfg.statePath}'/config/*
787789 '';
788790 preStart = ''
791+ set -eu
792+
789793 cp -f ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
790794 rm -rf ${cfg.statePath}/db/*
791795 rm -rf ${cfg.statePath}/config/initializers/*
796+ rm -f ${cfg.statePath}/lib
792797 cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
793798 cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db
794799
nixos/modules/services/misc/gollum.nix+1
@@ -71,6 +71,7 @@ in
7171 group = config.users.users.gollum.name;
7272 description = "Gollum user";
7373 createHome = false;
74+ isSystemUser = true;
7475 };
7576
7677 users.groups.gollum = { };
nixos/modules/services/misc/jellyfin.nix+4−1
@@ -41,7 +41,10 @@ in
4141 };
4242
4343 users.users = mkIf (cfg.user == "jellyfin") {
44− jellyfin.group = cfg.group;
44+ jellyfin = {
45+ group = cfg.group;
46+ isSystemUser = true;
47+ };
4548 };
4649
4750 users.groups = mkIf (cfg.group == "jellyfin") {
nixos/modules/services/misc/lidarr.nix+11−4
@@ -10,6 +10,12 @@ in
1010 services.lidarr = {
1111 enable = mkEnableOption "Lidarr";
1212
13+ dataDir = mkOption {
14+ type = types.str;
15+ default = "/var/lib/lidarr/.config/Lidarr";
16+ description = "The directory where Lidarr stores its data files.";
17+ };
18+
1319 package = mkOption {
1420 type = types.package;
1521 default = pkgs.lidarr;
@@ -44,6 +50,10 @@ in
4450 };
4551
4652 config = mkIf cfg.enable {
53+ systemd.tmpfiles.rules = [
54+ "d '${cfg.dataDir}' 0700 ${cfg.user} ${cfg.group} - -"
55+ ];
56+
4757 systemd.services.lidarr = {
4858 description = "Lidarr";
4959 after = [ "network.target" ];
@@ -53,11 +63,8 @@ in
5363 Type = "simple";
5464 User = cfg.user;
5565 Group = cfg.group;
56− ExecStart = "${cfg.package}/bin/Lidarr";
66+ ExecStart = "${cfg.package}/bin/Lidarr -nobrowser -data='${cfg.dataDir}'";
5767 Restart = "on-failure";
58−
59− StateDirectory = "lidarr";
60− StateDirectoryMode = "0770";
6168 };
6269 };
6370
nixos/modules/services/misc/matrix-synapse.nix+3
@@ -407,6 +407,9 @@ in {
407407 "192.168.0.0/16"
408408 "100.64.0.0/10"
409409 "169.254.0.0/16"
410+ "::1/128"
411+ "fe80::/64"
412+ "fc00::/7"
410413 ];
411414 description = ''
412415 List of IP address CIDR ranges that the URL preview spider is denied
nixos/modules/services/misc/nix-daemon.nix+3−3
@@ -61,7 +61,7 @@ let
6161 '' else ''
6262 echo "Checking that Nix can read nix.conf..."
6363 ln -s $out ./nix.conf
64− NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config ${optionalString isNix23 "--no-net"} >/dev/null
64+ NIX_CONF_DIR=$PWD ${cfg.package}/bin/nix show-config ${optionalString isNix23 "--no-net --option experimental-features nix-command"} >/dev/null
6565 '')
6666 );
6767
@@ -152,8 +152,8 @@ in
152152 type = types.lines;
153153 default = "";
154154 example = ''
155− gc-keep-outputs = true
156− gc-keep-derivations = true
155+ keep-outputs = true
156+ keep-derivations = true
157157 '';
158158 description = "Additional text appended to <filename>nix.conf</filename>.";
159159 };
nixos/modules/services/misc/osrm.nix+1
@@ -59,6 +59,7 @@ in
5959 group = config.users.users.osrm.name;
6060 description = "OSRM user";
6161 createHome = false;
62+ isSystemUser = true;
6263 };
6364
6465 users.groups.osrm = { };
nixos/modules/services/misc/redmine.nix+3−12
@@ -62,20 +62,11 @@ in
6262 services.redmine = {
6363 enable = mkEnableOption "Redmine";
6464
65− # default to the 4.x series not forcing major version upgrade of those on the 3.x series
6665 package = mkOption {
6766 type = types.package;
68− default = if versionAtLeast config.system.stateVersion "19.03"
69− then pkgs.redmine_4
70− else pkgs.redmine
71− ;
72− defaultText = "pkgs.redmine";
73− description = ''
74− Which Redmine package to use. This defaults to version 3.x if
75− <literal>system.stateVersion < 19.03</literal> and version 4.x
76− otherwise.
77− '';
78− example = "pkgs.redmine_4.override { ruby = pkgs.ruby_2_4; }";
67+ default = pkgs.redmine;
68+ description = "Which Redmine package to use.";
69+ example = "pkgs.redmine.override { ruby = pkgs.ruby_2_4; }";
7970 };
8071
8172 user = mkOption {
nixos/modules/services/misc/zoneminder.nix+1−1
@@ -265,7 +265,7 @@ in {
265265 }
266266
267267 location /cache/ {
268− alias /var/cache/${dirName};
268+ alias /var/cache/${dirName}/;
269269 }
270270
271271 location ~ \.php$ {
nixos/modules/services/monitoring/collectd.nix+37−3
@@ -16,13 +16,29 @@ let
1616 NotifyLevel "OKAY"
1717 </Plugin>
1818
19+ ${concatStrings (mapAttrsToList (plugin: pluginConfig: ''
20+ LoadPlugin ${plugin}
21+ <Plugin "${plugin}">
22+ ${pluginConfig}
23+ </Plugin>
24+ '') cfg.plugins)}
25+
1926 ${concatMapStrings (f: ''
20− Include "${f}"
27+ Include "${f}"
2128 '') cfg.include}
2229
2330 ${cfg.extraConfig}
2431 '';
2532
33+ package =
34+ if cfg.buildMinimalPackage
35+ then minimalPackage
36+ else cfg.package;
37+
38+ minimalPackage = cfg.package.override {
39+ enabledPlugins = [ "syslog" ] ++ builtins.attrNames cfg.plugins;
40+ };
41+
2642in {
2743 options.services.collectd = with types; {
2844 enable = mkEnableOption "collectd agent";
@@ -33,7 +49,15 @@ in {
3349 description = ''
3450 Which collectd package to use.
3551 '';
36− type = package;
52+ type = types.package;
53+ };
54+
55+ buildMinimalPackage = mkOption {
56+ default = false;
57+ description = ''
58+ Build a minimal collectd package with only the configured `services.collectd.plugins`
59+ '';
60+ type = types.bool;
3761 };
3862
3963 user = mkOption {
@@ -68,6 +92,15 @@ in {
6892 type = listOf str;
6993 };
7094
95+ plugins = mkOption {
96+ default = {};
97+ example = { cpu = ""; memory = ""; network = "Server 192.168.1.1 25826"; };
98+ description = ''
99+ Attribute set of plugin names to plugin config segments
100+ '';
101+ type = types.attrsOf types.str;
102+ };
103+
71104 extraConfig = mkOption {
72105 default = "";
73106 description = ''
@@ -89,7 +122,7 @@ in {
89122 wantedBy = [ "multi-user.target" ];
90123
91124 serviceConfig = {
92− ExecStart = "${cfg.package}/sbin/collectd -C ${conf} -f";
125+ ExecStart = "${package}/sbin/collectd -C ${conf} -f";
93126 User = cfg.user;
94127 Restart = "on-failure";
95128 RestartSec = 3;
@@ -98,6 +131,7 @@ in {
98131
99132 users.users = optional (cfg.user == "collectd") {
100133 name = "collectd";
134+ isSystemUser = true;
101135 };
102136 };
103137}
nixos/modules/services/monitoring/fusion-inventory.nix+1
@@ -49,6 +49,7 @@ in {
4949 users.users = singleton {
5050 name = "fusion-inventory";
5151 description = "FusionInventory user";
52+ isSystemUser = true;
5253 };
5354
5455 systemd.services.fusion-inventory = {
nixos/modules/services/monitoring/grafana.nix+1−1
@@ -43,7 +43,7 @@ let
4343
4444 ANALYTICS_REPORTING_ENABLED = boolToString cfg.analytics.reporting.enable;
4545
46− SMTP_ENABLE = boolToString cfg.smtp.enable;
46+ SMTP_ENABLED = boolToString cfg.smtp.enable;
4747 SMTP_HOST = cfg.smtp.host;
4848 SMTP_USER = cfg.smtp.user;
4949 SMTP_PASSWORD = cfg.smtp.password;
nixos/modules/services/monitoring/netdata.nix+2−1
@@ -138,7 +138,7 @@ in {
138138 description = "Real time performance monitoring";
139139 after = [ "network.target" ];
140140 wantedBy = [ "multi-user.target" ];
141− path = (with pkgs; [ gawk curl ]) ++ lib.optional cfg.python.enable
141+ path = (with pkgs; [ curl gawk which ]) ++ lib.optional cfg.python.enable
142142 (pkgs.python3.withPackages cfg.python.extraPackages);
143143 serviceConfig = {
144144 Environment="PYTHONPATH=${pkgs.netdata}/libexec/netdata/python.d/python_modules";
@@ -181,6 +181,7 @@ in {
181181
182182 users.users = optional (cfg.user == defaultUser) {
183183 name = defaultUser;
184+ isSystemUser = true;
184185 };
185186
186187 users.groups = optional (cfg.group == defaultUser) {
nixos/modules/services/monitoring/zabbix-agent.nix+1
@@ -131,6 +131,7 @@ in
131131 users.users.${user} = {
132132 description = "Zabbix Agent daemon user";
133133 inherit group;
134+ isSystemUser = true;
134135 };
135136
136137 users.groups.${group} = { };
nixos/modules/services/network-filesystems/ceph.nix+42−30
@@ -9,12 +9,14 @@ let
99 expandCamelCase = replaceStrings upperChars (map (s: " ${s}") lowerChars);
1010 expandCamelCaseAttrs = mapAttrs' (name: value: nameValuePair (expandCamelCase name) value);
1111
12− makeServices = (daemonType: daemonIds: extraServiceConfig:
12+ makeServices = (daemonType: daemonIds:
1313 mkMerge (map (daemonId:
14− { "ceph-${daemonType}-${daemonId}" = makeService daemonType daemonId cfg.global.clusterName pkgs.ceph extraServiceConfig; })
14+ { "ceph-${daemonType}-${daemonId}" = makeService daemonType daemonId cfg.global.clusterName pkgs.ceph; })
1515 daemonIds));
1616
17− makeService = (daemonType: daemonId: clusterName: ceph: extraServiceConfig: {
17+ makeService = (daemonType: daemonId: clusterName: ceph:
18+ let
19+ stateDirectory = "ceph/${if daemonType == "rgw" then "radosgw" else daemonType}/${clusterName}-${daemonId}"; in {
1820 enable = true;
1921 description = "Ceph ${builtins.replaceStrings lowerChars upperChars daemonType} daemon ${daemonId}";
2022 after = [ "network-online.target" "time-sync.target" ] ++ optional (daemonType == "osd") "ceph-mon.target";
@@ -22,6 +24,11 @@ let
2224 partOf = [ "ceph-${daemonType}.target" ];
2325 wantedBy = [ "ceph-${daemonType}.target" ];
2426
27+ path = [ pkgs.getopt ];
28+
29+ # Don't start services that are not yet initialized
30+ unitConfig.ConditionPathExists = "/var/lib/${stateDirectory}/keyring";
31+
2532 serviceConfig = {
2633 LimitNOFILE = 1048576;
2734 LimitNPROC = 1048576;
@@ -34,22 +41,22 @@ let
3441 Restart = "on-failure";
3542 StartLimitBurst = "5";
3643 StartLimitInterval = "30min";
44+ StateDirectory = stateDirectory;
45+ User = "ceph";
46+ Group = if daemonType == "osd" then "disk" else "ceph";
3747 ExecStart = ''${ceph.out}/bin/${if daemonType == "rgw" then "radosgw" else "ceph-${daemonType}"} \
38− -f --cluster ${clusterName} --id ${daemonId} --setuser ceph \
39− --setgroup ${if daemonType == "osd" then "disk" else "ceph"}'';
40− } // extraServiceConfig
41− // optionalAttrs (daemonType == "osd") { ExecStartPre = ''${ceph.lib}/libexec/ceph/ceph-osd-prestart.sh \
42− --id ${daemonId} --cluster ${clusterName}''; };
43− } // optionalAttrs (builtins.elem daemonType [ "mds" "mon" "rgw" "mgr" ]) {
44− preStart = ''
45− daemonPath="/var/lib/ceph/${if daemonType == "rgw" then "radosgw" else daemonType}/${clusterName}-${daemonId}"
46− if [ ! -d $daemonPath ]; then
47− mkdir -m 755 -p $daemonPath
48− chown -R ceph:ceph $daemonPath
49− fi
50− '';
51− } // optionalAttrs (daemonType == "osd") { path = [ pkgs.getopt ]; }
52− );
48+ -f --cluster ${clusterName} --id ${daemonId}'';
49+ } // optionalAttrs (daemonType == "osd") {
50+ ExecStartPre = ''${ceph.lib}/libexec/ceph/ceph-osd-prestart.sh --id ${daemonId} --cluster ${clusterName}'';
51+ StartLimitBurst = "30";
52+ RestartSec = "20s";
53+ PrivateDevices = "no"; # osd needs disk access
54+ } // optionalAttrs ( daemonType == "mon") {
55+ RestartSec = "10";
56+ } // optionalAttrs (lib.elem daemonType ["mgr" "mds"]) {
57+ StartLimitBurst = "3";
58+ };
59+ });
5360
5461 makeTarget = (daemonType:
5562 {
@@ -58,6 +65,7 @@ let
5865 partOf = [ "ceph.target" ];
5966 wantedBy = [ "ceph.target" ];
6067 before = [ "ceph.target" ];
68+ unitConfig.StopWhenUnneeded = true;
6169 };
6270 }
6371 );
@@ -377,22 +385,22 @@ in
377385
378386 systemd.services = let
379387 services = []
380− ++ optional cfg.mon.enable (makeServices "mon" cfg.mon.daemons { RestartSec = "10"; })
381− ++ optional cfg.mds.enable (makeServices "mds" cfg.mds.daemons { StartLimitBurst = "3"; })
382− ++ optional cfg.osd.enable (makeServices "osd" cfg.osd.daemons { StartLimitBurst = "30";
383− RestartSec = "20s";
384− PrivateDevices = "no"; # osd needs disk access
385− })
386− ++ optional cfg.rgw.enable (makeServices "rgw" cfg.rgw.daemons { })
387− ++ optional cfg.mgr.enable (makeServices "mgr" cfg.mgr.daemons { StartLimitBurst = "3"; });
388+ ++ optional cfg.mon.enable (makeServices "mon" cfg.mon.daemons)
389+ ++ optional cfg.mds.enable (makeServices "mds" cfg.mds.daemons)
390+ ++ optional cfg.osd.enable (makeServices "osd" cfg.osd.daemons)
391+ ++ optional cfg.rgw.enable (makeServices "rgw" cfg.rgw.daemons)
392+ ++ optional cfg.mgr.enable (makeServices "mgr" cfg.mgr.daemons);
388393 in
389394 mkMerge services;
390395
391396 systemd.targets = let
392397 targets = [
393− { ceph = { description = "Ceph target allowing to start/stop all ceph service instances at once";
394− wantedBy = [ "multi-user.target" ]; }; }
395− ] ++ optional cfg.mon.enable (makeTarget "mon")
398+ { ceph = {
399+ description = "Ceph target allowing to start/stop all ceph service instances at once";
400+ wantedBy = [ "multi-user.target" ];
401+ unitConfig.StopWhenUnneeded = true;
402+ }; } ]
403+ ++ optional cfg.mon.enable (makeTarget "mon")
396404 ++ optional cfg.mds.enable (makeTarget "mds")
397405 ++ optional cfg.osd.enable (makeTarget "osd")
398406 ++ optional cfg.rgw.enable (makeTarget "rgw")
@@ -401,7 +409,11 @@ in
401409 mkMerge targets;
402410
403411 systemd.tmpfiles.rules = [
412+ "d /etc/ceph - ceph ceph - -"
404413 "d /run/ceph 0770 ceph ceph -"
405− ];
414+ "d /var/lib/ceph - ceph ceph - -"]
415+ ++ optionals cfg.mgr.enable [ "d /var/lib/ceph/mgr - ceph ceph - -"]
416+ ++ optionals cfg.mon.enable [ "d /var/lib/ceph/mon - ceph ceph - -"]
417+ ++ optionals cfg.osd.enable [ "d /var/lib/ceph/osd - ceph ceph - -"];
406418 };
407419}
nixos/modules/services/network-filesystems/orangefs/client.nixnew file+97
@@ -0,0 +1,97 @@
1+{ config, lib, pkgs, ...} :
2+
3+with lib;
4+
5+let
6+ cfg = config.services.orangefs.client;
7+
8+in {
9+ ###### interface
10+
11+ options = {
12+ services.orangefs.client = {
13+ enable = mkEnableOption "OrangeFS client daemon";
14+
15+ extraOptions = mkOption {
16+ type = with types; listOf str;
17+ default = [];
18+ description = "Extra command line options for pvfs2-client.";
19+ };
20+
21+ fileSystems = mkOption {
22+ description = ''
23+ The orangefs file systems to be mounted.
24+ This option is prefered over using <option>fileSystems</option> directly since
25+ the pvfs client service needs to be running for it to be mounted.
26+ '';
27+
28+ example = [{
29+ mountPoint = "/orangefs";
30+ target = "tcp://server:3334/orangefs";
31+ }];
32+
33+ type = with types; listOf (submodule ({ ... } : {
34+ options = {
35+
36+ mountPoint = mkOption {
37+ type = types.str;
38+ default = "/orangefs";
39+ description = "Mount point.";
40+ };
41+
42+ options = mkOption {
43+ type = with types; listOf str;
44+ default = [];
45+ description = "Mount options";
46+ };
47+
48+ target = mkOption {
49+ type = types.str;
50+ default = null;
51+ example = "tcp://server:3334/orangefs";
52+ description = "Target URL";
53+ };
54+ };
55+ }));
56+ };
57+ };
58+ };
59+
60+
61+ ###### implementation
62+
63+ config = mkIf cfg.enable {
64+ environment.systemPackages = [ pkgs.orangefs ];
65+
66+ boot.supportedFilesystems = [ "pvfs2" ];
67+ boot.kernelModules = [ "orangefs" ];
68+
69+ systemd.services.orangefs-client = {
70+ requires = [ "network-online.target" ];
71+ after = [ "network-online.target" ];
72+
73+ serviceConfig = {
74+ Type = "simple";
75+
76+ ExecStart = ''
77+ ${pkgs.orangefs}/bin/pvfs2-client-core \
78+ --logtype=syslog ${concatStringsSep " " cfg.extraOptions}
79+ '';
80+
81+ TimeoutStopSec = "120";
82+ };
83+ };
84+
85+ systemd.mounts = map (fs: {
86+ requires = [ "orangefs-client.service" ];
87+ after = [ "orangefs-client.service" ];
88+ bindsTo = [ "orangefs-client.service" ];
89+ wantedBy = [ "remote-fs.target" ];
90+ type = "pvfs2";
91+ options = concatStringsSep "," fs.options;
92+ what = fs.target;
93+ where = fs.mountPoint;
94+ }) cfg.fileSystems;
95+ };
96+}
97+
nixos/modules/services/network-filesystems/orangefs/server.nixnew file+225
@@ -0,0 +1,225 @@
1+{ config, lib, pkgs, ...} :
2+
3+with lib;
4+
5+let
6+ cfg = config.services.orangefs.server;
7+
8+ aliases = mapAttrsToList (alias: url: alias) cfg.servers;
9+
10+ # Maximum handle number is 2^63
11+ maxHandle = 9223372036854775806;
12+
13+ # One range of handles for each meta/data instance
14+ handleStep = maxHandle / (length aliases) / 2;
15+
16+ fileSystems = mapAttrsToList (name: fs: ''
17+ <FileSystem>
18+ Name ${name}
19+ ID ${toString fs.id}
20+ RootHandle ${toString fs.rootHandle}
21+
22+ ${fs.extraConfig}
23+
24+ <MetaHandleRanges>
25+ ${concatStringsSep "\n" (
26+ imap0 (i: alias:
27+ let
28+ begin = i * handleStep + 3;
29+ end = begin + handleStep - 1;
30+ in "Range ${alias} ${toString begin}-${toString end}") aliases
31+ )}
32+ </MetaHandleRanges>
33+
34+ <DataHandleRanges>
35+ ${concatStringsSep "\n" (
36+ imap0 (i: alias:
37+ let
38+ begin = i * handleStep + 3 + (length aliases) * handleStep;
39+ end = begin + handleStep - 1;
40+ in "Range ${alias} ${toString begin}-${toString end}") aliases
41+ )}
42+ </DataHandleRanges>
43+
44+ <StorageHints>
45+ TroveSyncMeta ${if fs.troveSyncMeta then "yes" else "no"}
46+ TroveSyncData ${if fs.troveSyncData then "yes" else "no"}
47+ ${fs.extraStorageHints}
48+ </StorageHints>
49+
50+ </FileSystem>
51+ '') cfg.fileSystems;
52+
53+ configFile = ''
54+ <Defaults>
55+ LogType ${cfg.logType}
56+ DataStorageSpace ${cfg.dataStorageSpace}
57+ MetaDataStorageSpace ${cfg.metadataStorageSpace}
58+
59+ BMIModules ${concatStringsSep "," cfg.BMIModules}
60+ ${cfg.extraDefaults}
61+ </Defaults>
62+
63+ ${cfg.extraConfig}
64+
65+ <Aliases>
66+ ${concatStringsSep "\n" (mapAttrsToList (alias: url: "Alias ${alias} ${url}") cfg.servers)}
67+ </Aliases>
68+
69+ ${concatStringsSep "\n" fileSystems}
70+ '';
71+
72+in {
73+ ###### interface
74+
75+ options = {
76+ services.orangefs.server = {
77+ enable = mkEnableOption "OrangeFS server";
78+
79+ logType = mkOption {
80+ type = with types; enum [ "file" "syslog" ];
81+ default = "syslog";
82+ description = "Destination for log messages.";
83+ };
84+
85+ dataStorageSpace = mkOption {
86+ type = types.str;
87+ default = null;
88+ example = "/data/storage";
89+ description = "Directory for data storage.";
90+ };
91+
92+ metadataStorageSpace = mkOption {
93+ type = types.str;
94+ default = null;
95+ example = "/data/meta";
96+ description = "Directory for meta data storage.";
97+ };
98+
99+ BMIModules = mkOption {
100+ type = with types; listOf str;
101+ default = [ "bmi_tcp" ];
102+ example = [ "bmi_tcp" "bmi_ib"];
103+ description = "List of BMI modules to load.";
104+ };
105+
106+ extraDefaults = mkOption {
107+ type = types.lines;
108+ default = "";
109+ description = "Extra config for <literal><Defaults></literal> section.";
110+ };
111+
112+ extraConfig = mkOption {
113+ type = types.lines;
114+ default = "";
115+ description = "Extra config for the global section.";
116+ };
117+
118+ servers = mkOption {
119+ type = with types; attrsOf types.str;
120+ default = {};
121+ example = ''
122+ {
123+ node1="tcp://node1:3334";
124+ node2="tcp://node2:3334";
125+ }
126+ '';
127+ description = "URLs for storage server including port. The attribute names define the server alias.";
128+ };
129+
130+ fileSystems = mkOption {
131+ description = ''
132+ These options will create the <literal><FileSystem></literal> sections of config file.
133+ '';
134+ default = { orangefs = {}; };
135+ defaultText = literalExample "{ orangefs = {}; }";
136+ example = literalExample ''
137+ {
138+ fs1 = {
139+ id = 101;
140+ };
141+
142+ fs2 = {
143+ id = 102;
144+ };
145+ }
146+ '';
147+ type = with types; attrsOf (submodule ({ ... } : {
148+ options = {
149+ id = mkOption {
150+ type = types.int;
151+ default = 1;
152+ description = "File system ID (must be unique within configuration).";
153+ };
154+
155+ rootHandle = mkOption {
156+ type = types.int;
157+ default = 3;
158+ description = "File system root ID.";
159+ };
160+
161+ extraConfig = mkOption {
162+ type = types.lines;
163+ default = "";
164+ description = "Extra config for <literal><FileSystem></literal> section.";
165+ };
166+
167+ troveSyncMeta = mkOption {
168+ type = types.bool;
169+ default = true;
170+ description = "Sync meta data.";
171+ };
172+
173+ troveSyncData = mkOption {
174+ type = types.bool;
175+ default = false;
176+ description = "Sync data.";
177+ };
178+
179+ extraStorageHints = mkOption {
180+ type = types.lines;
181+ default = "";
182+ description = "Extra config for <literal><StorageHints></literal> section.";
183+ };
184+ };
185+ }));
186+ };
187+ };
188+ };
189+
190+ ###### implementation
191+
192+ config = mkIf cfg.enable {
193+ environment.systemPackages = [ pkgs.orangefs ];
194+
195+ # orangefs daemon will run as user
196+ users.users.orangefs.isSystemUser = true;
197+ users.groups.orangefs = {};
198+
199+ # To format the file system the config file is needed.
200+ environment.etc."orangefs/server.conf" = {
201+ text = configFile;
202+ user = "orangefs";
203+ group = "orangefs";
204+ };
205+
206+ systemd.services.orangefs-server = {
207+ wantedBy = [ "multi-user.target" ];
208+ requires = [ "network-online.target" ];
209+ after = [ "network-online.target" ];
210+
211+ serviceConfig = {
212+ # Run as "simple" in forground mode.
213+ # This is more reliable
214+ ExecStart = ''
215+ ${pkgs.orangefs}/bin/pvfs2-server -d \
216+ /etc/orangefs/server.conf
217+ '';
218+ TimeoutStopSec = "120";
219+ User = "orangefs";
220+ Group = "orangefs";
221+ };
222+ };
223+ };
224+
225+}
nixos/modules/services/network-filesystems/samba.nix+9−13
@@ -12,11 +12,6 @@ let
1212
1313 samba = cfg.package;
1414
15− setupScript =
16− ''
17− mkdir -p /var/lock/samba /var/log/samba /var/cache/samba /var/lib/samba/private
18− '';
19−
2015 shareConfig = name:
2116 let share = getAttr name cfg.shares; in
2217 "[${name}]\n " + (smbToString (
@@ -45,7 +40,7 @@ let
4540 daemonService = appName: args:
4641 { description = "Samba Service Daemon ${appName}";
4742
48− after = [ "network.target" ];
43+ after = [ (mkIf (cfg.enableNmbd && "${appName}" == "smbd") "samba-nmbd.service") ];
4944 requiredBy = [ "samba.target" ];
5045 partOf = [ "samba.target" ];
5146
@@ -62,6 +57,7 @@ let
6257 Type = "notify";
6358 NotifyAccess = "all"; #may not do anything...
6459 };
60+ unitConfig.RequiresMountsFor = "/var/lib/samba";
6561
6662 restartTriggers = [ configFile ];
6763 };
@@ -228,8 +224,7 @@ in
228224 systemd = {
229225 targets.samba = {
230226 description = "Samba Server";
231− requires = [ "samba-setup.service" ];
232− after = [ "samba-setup.service" "network.target" ];
227+ after = [ "network.target" ];
233228 wantedBy = [ "multi-user.target" ];
234229 };
235230 # Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd
@@ -238,12 +233,13 @@ in
238233 samba-smbd = daemonService "smbd" "";
239234 samba-nmbd = mkIf cfg.enableNmbd (daemonService "nmbd" "");
240235 samba-winbindd = mkIf cfg.enableWinbindd (daemonService "winbindd" "");
241− samba-setup = {
242− description = "Samba Setup Task";
243− script = setupScript;
244− unitConfig.RequiresMountsFor = "/var/lib/samba";
245− };
246236 };
237+ tmpfiles.rules = [
238+ "d /var/lock/samba - - - - -"
239+ "d /var/log/samba - - - - -"
240+ "d /var/cache/samba - - - - -"
241+ "d /var/lib/samba/private - - - - -"
242+ ];
247243 };
248244
249245 security.pam.services.samba = {};
nixos/modules/services/networking/bitcoind.nix+1−3
@@ -177,9 +177,6 @@ in {
177177 NoNewPrivileges = "true";
178178 PrivateDevices = "true";
179179 MemoryDenyWriteExecute = "true";
180−
181− # Permission for preStart
182− PermissionsStartOnly = "true";
183180 };
184181 };
185182 users.users.${cfg.user} = {
@@ -187,6 +184,7 @@ in {
187184 group = cfg.group;
188185 description = "Bitcoin daemon user";
189186 home = cfg.dataDir;
187+ isSystemUser = true;
190188 };
191189 users.groups.${cfg.group} = {
192190 name = cfg.group;
nixos/modules/services/networking/dnscache.nix+1−1
@@ -84,7 +84,7 @@ in {
8484
8585 config = mkIf config.services.dnscache.enable {
8686 environment.systemPackages = [ pkgs.djbdns ];
87− users.users.dnscache = {};
87+ users.users.dnscache.isSystemUser = true;
8888
8989 systemd.services.dnscache = {
9090 description = "djbdns dnscache server";
nixos/modules/services/networking/dnscrypt-wrapper.nix+1
@@ -142,6 +142,7 @@ in {
142142 description = "dnscrypt-wrapper daemon user";
143143 home = "${dataDir}";
144144 createHome = true;
145+ isSystemUser = true;
145146 };
146147 users.groups.dnscrypt-wrapper = { };
147148
nixos/modules/services/networking/dnsdist.nix+2−3
@@ -46,11 +46,10 @@ in {
4646 RestartSec="1";
4747 DynamicUser = true;
4848 StartLimitInterval="0";
49− PrivateTmp=true;
5049 PrivateDevices=true;
51− CapabilityBoundingSet="CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID";
50+ AmbientCapabilities="CAP_NET_BIND_SERVICE";
51+ CapabilityBoundingSet="CAP_NET_BIND_SERVICE";
5252 ExecStart = "${pkgs.dnsdist}/bin/dnsdist --supervised --disable-syslog --config ${configFile}";
53− ProtectSystem="full";
5453 ProtectHome=true;
5554 RestrictAddressFamilies="AF_UNIX AF_INET AF_INET6";
5655 LimitNOFILE="16384";
nixos/modules/services/networking/eternal-terminal.nix+6
@@ -23,6 +23,8 @@ in
2323 type = types.int;
2424 description = ''
2525 The port the server should listen on. Will use the server's default (2022) if not specified.
26+
27+ Make sure to open this port in the firewall if necessary.
2628 '';
2729 };
2830
@@ -86,4 +88,8 @@ in
8688 };
8789 };
8890 };
91+
92+ meta = {
93+ maintainers = with lib.maintainers; [ pingiun ];
94+ };
8995}
nixos/modules/services/networking/go-shadowsocks2.nixnew file+30
@@ -0,0 +1,30 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+let
5+ cfg = config.services.go-shadowsocks2.server;
6+in {
7+ options.services.go-shadowsocks2.server = {
8+ enable = mkEnableOption "go-shadowsocks2 server";
9+
10+ listenAddress = mkOption {
11+ type = types.str;
12+ description = "Server listen address or URL";
13+ example = "ss://AEAD_CHACHA20_POLY1305:your-password@:8488";
14+ };
15+ };
16+
17+ config = mkIf cfg.enable {
18+ systemd.services.go-shadowsocks2-server = {
19+ description = "go-shadowsocks2 server";
20+
21+ after = [ "network.target" ];
22+ wantedBy = [ "multi-user.target" ];
23+
24+ serviceConfig = {
25+ ExecStart = "${pkgs.go-shadowsocks2}/bin/go-shadowsocks2 -s '${cfg.listenAddress}'";
26+ DynamicUser = true;
27+ };
28+ };
29+ };
30+}
nixos/modules/services/networking/hans.nix+1
@@ -138,6 +138,7 @@ in
138138 users.users = singleton {
139139 name = hansUser;
140140 description = "Hans daemon user";
141+ isSystemUser = true;
141142 };
142143 };
143144
nixos/modules/services/networking/haproxy.nix+19−17
@@ -1,7 +1,16 @@
11{ config, lib, pkgs, ... }:
2+
23let
34 cfg = config.services.haproxy;
4− haproxyCfg = pkgs.writeText "haproxy.conf" cfg.config;
5+
6+ haproxyCfg = pkgs.writeText "haproxy.conf" ''
7+ global
8+ # needed for hot-reload to work without dropping packets in multi-worker mode
9+ stats socket /run/haproxy/haproxy.sock mode 600 expose-fd listeners level user
10+
11+ ${cfg.config}
12+ '';
13+
514in
615with lib;
716{
@@ -25,9 +34,7 @@ with lib;
2534 <filename>haproxy.conf</filename>.
2635 '';
2736 };
28−
2937 };
30−
3138 };
3239
3340 config = mkIf cfg.enable {
@@ -42,21 +49,16 @@ with lib;
4249 after = [ "network.target" ];
4350 wantedBy = [ "multi-user.target" ];
4451 serviceConfig = {
45− Type = "forking";
46− PIDFile = "/run/haproxy.pid";
47− ExecStartPre = "${pkgs.haproxy}/sbin/haproxy -c -q -f ${haproxyCfg}";
48− ExecStart = "${pkgs.haproxy}/sbin/haproxy -D -f ${haproxyCfg} -p /run/haproxy.pid";
49− ExecReload = "-${pkgs.bash}/bin/bash -c \"exec ${pkgs.haproxy}/sbin/haproxy -D -f ${haproxyCfg} -p /run/haproxy.pid -sf $MAINPID\"";
52+ DynamicUser = true;
53+ Type = "notify";
54+ # when running the config test, don't be quiet so we can see what goes wrong
55+ ExecStartPre = "${pkgs.haproxy}/sbin/haproxy -c -f ${haproxyCfg}";
56+ ExecStart = "${pkgs.haproxy}/sbin/haproxy -Ws -f ${haproxyCfg}";
57+ Restart = "on-failure";
58+ RuntimeDirectory = "haproxy";
59+ # needed in case we bind to port < 1024
60+ AmbientCapabilities = "CAP_NET_BIND_SERVICE";
5061 };
5162 };
52−
53− environment.systemPackages = [ pkgs.haproxy ];
54−
55− users.users.haproxy = {
56− group = "haproxy";
57− uid = config.ids.uids.haproxy;
58− };
59−
60− users.groups.haproxy.gid = config.ids.uids.haproxy;
6163 };
6264}
nixos/modules/services/networking/jormungandr.nixdeleted−102
@@ -1,102 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−let
4− cfg = config.services.jormungandr;
5−
6− inherit (lib) mkEnableOption mkIf mkOption;
7− inherit (lib) optionalString types;
8−
9− dataDir = "/var/lib/jormungandr";
10−
11− # Default settings so far, as the service matures we will
12− # move these out as separate settings
13− configSettings = {
14− storage = dataDir;
15− p2p = {
16− public_address = "/ip4/127.0.0.1/tcp/8299";
17− topics_of_interest = {
18− messages = "high";
19− blocks = "high";
20− };
21− };
22− rest = {
23− listen = "127.0.0.1:8607";
24− };
25− };
26−
27− configFile = if cfg.configFile == null then
28− pkgs.writeText "jormungandr.yaml" (builtins.toJSON configSettings)
29− else cfg.configFile;
30−
31−in {
32−
33− options = {
34−
35− services.jormungandr = {
36− enable = mkEnableOption "jormungandr service";
37−
38− configFile = mkOption {
39− type = types.nullOr types.path;
40− default = null;
41− example = "/var/lib/jormungandr/node.yaml";
42− description = ''
43− The path of the jormungandr blockchain configuration file in YAML format.
44− If no file is specified, a file is generated using the other options.
45− '';
46− };
47−
48− secretFile = mkOption {
49− type = types.nullOr types.path;
50− default = null;
51− example = "/etc/secret/jormungandr.yaml";
52− description = ''
53− The path of the jormungandr blockchain secret node configuration file in
54− YAML format. Do not store this in nix store!
55− '';
56− };
57−
58− genesisBlockHash = mkOption {
59− type = types.nullOr types.str;
60− default = null;
61− example = "d70495af81ae8600aca3e642b2427327cb6001ec4d7a0037e96a00dabed163f9";
62− description = ''
63− Set the genesis block hash (the hash of the block0) so we can retrieve
64− the genesis block (and the blockchain configuration) from the existing
65− storage or from the network.
66− '';
67− };
68−
69− genesisBlockFile = mkOption {
70− type = types.nullOr types.path;
71− default = null;
72− example = "/var/lib/jormungandr/block-0.bin";
73− description = ''
74− The path of the genesis block file if we are hosting it locally.
75− '';
76− };
77−
78− };
79− };
80−
81− config = mkIf cfg.enable {
82−
83− systemd.services.jormungandr = {
84− description = "jormungandr server";
85− wantedBy = [ "multi-user.target" ];
86− after = [ "network-online.target" ];
87− environment = {
88− RUST_BACKTRACE = "full";
89− };
90− serviceConfig = {
91− DynamicUser = true;
92− StateDirectory = baseNameOf dataDir;
93− ExecStart = ''
94− ${pkgs.jormungandr}/bin/jormungandr --config ${configFile} \
95− ${optionalString (cfg.secretFile != null) " --secret ${cfg.secretFile}"} \
96− ${optionalString (cfg.genesisBlockHash != null) " --genesis-block-hash ${cfg.genesisBlockHash}"} \
97− ${optionalString (cfg.genesisBlockFile != null) " --genesis-block ${cfg.genesisBlockFile}"}
98− '';
99− };
100− };
101− };
102−}
nixos/modules/services/networking/matterbridge.nix+1
@@ -95,6 +95,7 @@ in
9595 users.users = optional (cfg.user == "matterbridge")
9696 { name = "matterbridge";
9797 group = "matterbridge";
98+ isSystemUser = true;
9899 };
99100
100101 users.groups = optional (cfg.group == "matterbridge")
nixos/modules/services/networking/morty.nix+1
@@ -74,6 +74,7 @@ in
7474 { description = "Morty user";
7575 createHome = true;
7676 home = "/var/lib/morty";
77+ isSystemUser = true;
7778 };
7879
7980 systemd.services.morty =
nixos/modules/services/networking/nat.nix+1−1
@@ -29,7 +29,7 @@ let
2929 iptables -w -t nat -N nixos-nat-post
3030
3131 # We can't match on incoming interface in POSTROUTING, so
32− # mark packets coming from the external interfaces.
32+ # mark packets coming from the internal interfaces.
3333 ${concatMapStrings (iface: ''
3434 iptables -w -t nat -A nixos-nat-pre \
3535 -i '${iface}' -j MARK --set-mark 1
nixos/modules/services/networking/networkmanager.nix+24−85
@@ -17,9 +17,6 @@ let
1717 networkmanager-vpnc
1818 ] ++ optional (!delegateWireless && !enableIwd) wpa_supplicant;
1919
20− dynamicHostsEnabled =
21− cfg.dynamicHosts.enable && cfg.dynamicHosts.hostsDirs != {};
22−
2320 delegateWireless = config.networking.wireless.enable == true && cfg.unmanaged != [];
2421
2522 enableIwd = cfg.wifi.backend == "iwd";
@@ -335,55 +332,20 @@ in {
335332 so you don't need to to that yourself.
336333 '';
337334 };
338−
339− dynamicHosts = {
340− enable = mkOption {
341− type = types.bool;
342− default = false;
343− description = ''
344− Enabling this option requires the
345− <option>networking.networkmanager.dns</option> option to be
346− set to <literal>dnsmasq</literal>. If enabled, the directories
347− defined by the
348− <option>networking.networkmanager.dynamicHosts.hostsDirs</option>
349− option will be set up when the service starts. The dnsmasq instance
350− managed by NetworkManager will then watch those directories for
351− hosts files (see the <literal>--hostsdir</literal> option of
352− dnsmasq). This way a non-privileged user can add or override DNS
353− entries on the local system (depending on what hosts directories
354− that are configured)..
355− '';
356− };
357− hostsDirs = mkOption {
358− type = with types; attrsOf (submodule {
359− options = {
360− user = mkOption {
361− type = types.str;
362− default = "root";
363− description = ''
364− The user that will own the hosts directory.
365− '';
366− };
367− group = mkOption {
368− type = types.str;
369− default = "root";
370− description = ''
371− The group that will own the hosts directory.
372− '';
373− };
374− };
375− });
376− default = {};
377− description = ''
378− Defines a set of directories (relative to
379− <literal>/run/NetworkManager/hostdirs</literal>) that dnsmasq will
380− watch for hosts files.
381− '';
382− };
383− };
384335 };
385336 };
386337
338+ imports = [
339+ (mkRemovedOptionModule ["networking" "networkmanager" "dynamicHosts"] ''
340+ This option was removed because allowing (multiple) regular users to
341+ override host entries affecting the whole system opens up a huge attack
342+ vector. There seem to be very rare cases where this might be useful.
343+ Consider setting system-wide host entries using networking.hosts, provide
344+ them via the DNS server in your network, or use environment.etc
345+ to add a file into /etc/NetworkManager/dnsmasq.d reconfiguring hostsdir.
346+ '')
347+ ];
348+
387349
388350 ###### implementation
389351
@@ -396,12 +358,6 @@ in {
396358 Except if you mark some interfaces as <literal>unmanaged</literal> by NetworkManager.
397359 '';
398360 }
399− { assertion = !dynamicHostsEnabled || (dynamicHostsEnabled && cfg.dns == "dnsmasq");
400− message = ''
401− To use networking.networkmanager.dynamicHosts you also need to set
402− `networking.networkmanager.dns = "dnsmasq"`
403− '';
404− }
405361 ];
406362
407363 environment.etc = with pkgs; [
@@ -435,12 +391,6 @@ in {
435391 target = "NetworkManager/dispatcher.d/${dispatcherTypesSubdirMap.${s.type}}03userscript${lib.fixedWidthNumber 4 i}";
436392 mode = "0544";
437393 }) cfg.dispatcherScripts
438− ++ optional dynamicHostsEnabled
439− { target = "NetworkManager/dnsmasq.d/dyndns.conf";
440− text = concatMapStrings (n: ''
441− hostsdir=/run/NetworkManager/hostsdirs/${n}
442− '') (attrNames cfg.dynamicHosts.hostsDirs);
443− }
444394 ++ optional cfg.enableStrongSwan
445395 { source = "${pkgs.networkmanager_strongswan}/lib/NetworkManager/VPN/nm-strongswan-service.name";
446396 target = "NetworkManager/VPN/nm-strongswan-service.name";
@@ -496,21 +446,6 @@ in {
496446
497447 systemd.services.ModemManager.aliases = [ "dbus-org.freedesktop.ModemManager1.service" ];
498448
499− systemd.services.nm-setup-hostsdirs = mkIf dynamicHostsEnabled {
500− wantedBy = [ "NetworkManager.service" ];
501− before = [ "NetworkManager.service" ];
502− partOf = [ "NetworkManager.service" ];
503− script = concatStrings (mapAttrsToList (n: d: ''
504− mkdir -p "/run/NetworkManager/hostsdirs/${n}"
505− chown "${d.user}:${d.group}" "/run/NetworkManager/hostsdirs/${n}"
506− chmod 0775 "/run/NetworkManager/hostsdirs/${n}"
507− '') cfg.dynamicHosts.hostsDirs);
508− serviceConfig = {
509− Type = "oneshot";
510− RemainAfterExit = true;
511− };
512− };
513−
514449 systemd.services.NetworkManager-dispatcher = {
515450 wantedBy = [ "network.target" ];
516451 restartTriggers = [ configFile ];
@@ -521,15 +456,19 @@ in {
521456 };
522457
523458 # Turn off NixOS' network management when networking is managed entirely by NetworkManager
524− networking = (mkIf (!delegateWireless) {
525− useDHCP = false;
526− # Use mkDefault to trigger the assertion about the conflict above
527− wireless.enable = mkDefault false;
528− }) // (mkIf cfg.enableStrongSwan {
529− networkmanager.packages = [ pkgs.networkmanager_strongswan ];
530− }) // (mkIf enableIwd {
531− wireless.iwd.enable = true;
532− });
459+ networking = mkMerge [
460+ (mkIf (!delegateWireless) {
461+ useDHCP = false;
462+ })
463+
464+ (mkIf cfg.enableStrongSwan {
465+ networkmanager.packages = [ pkgs.networkmanager_strongswan ];
466+ })
467+
468+ (mkIf enableIwd {
469+ wireless.iwd.enable = true;
470+ })
471+ ];
533472
534473 security.polkit.extraConfig = polkitConf;
535474
nixos/modules/services/networking/nghttpx/default.nix+1
@@ -96,6 +96,7 @@ in
9696 users.groups.nghttpx = { };
9797 users.users.nghttpx = {
9898 group = config.users.groups.nghttpx.name;
99+ isSystemUser = true;
99100 };
100101
101102
nixos/modules/services/networking/owamp.nix+1
@@ -21,6 +21,7 @@ in
2121 name = "owamp";
2222 group = "owamp";
2323 description = "Owamp daemon";
24+ isSystemUser = true;
2425 };
2526
2627 users.groups = singleton {
nixos/modules/services/networking/smokeping.nix+4−1
@@ -299,7 +299,8 @@ in
299299 mkdir -m 0755 -p ${smokepingHome}/cache ${smokepingHome}/data
300300 rm -f ${smokepingHome}/cropper
301301 ln -s ${cfg.package}/htdocs/cropper ${smokepingHome}/cropper
302− cp ${cgiHome} ${smokepingHome}/smokeping.fcgi
302+ rm -f ${smokepingHome}/smokeping.fcgi
303+ ln -s ${cgiHome} ${smokepingHome}/smokeping.fcgi
303304 ${cfg.package}/bin/smokeping --check --config=${configPath}
304305 ${cfg.package}/bin/smokeping --static --config=${configPath}
305306 '';
@@ -314,5 +315,7 @@ in
314315 serviceConfig.Restart = "always";
315316 };
316317 };
318+
319+ meta.maintainers = with lib.maintainers; [ erictapen ];
317320}
318321
nixos/modules/services/networking/stunnel.nix+14−1
@@ -57,7 +57,13 @@ let
5757 };
5858
5959 CAPath = mkOption {
60− type = types.path;
60+ type = types.nullOr types.path;
61+ default = null;
62+ description = "Path to a directory containing certificates to validate against.";
63+ };
64+
65+ CAFile = mkOption {
66+ type = types.nullOr types.path;
6167 default = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
6268 description = "Path to a file containing certificates to validate against.";
6369 };
@@ -196,6 +202,7 @@ in
196202 verifyChain = ${yesNo v.verifyChain}
197203 verifyPeer = ${yesNo v.verifyPeer}
198204 ${optionalString (v.CAPath != null) "CApath = ${v.CAPath}"}
205+ ${optionalString (v.CAFile != null) "CAFile = ${v.CAFile}"}
199206 ${optionalString (v.verifyHostname != null) "checkHost = ${v.verifyHostname}"}
200207 OCSPaia = yes
201208
@@ -216,6 +223,12 @@ in
216223 };
217224 };
218225
226+ meta.maintainers = with maintainers; [
227+ # Server side
228+ lschuermann
229+ # Client side
230+ das_j
231+ ];
219232 };
220233
221234}
nixos/modules/services/networking/syncthing.nix+64
@@ -18,6 +18,7 @@ let
1818 fsWatcherEnabled = folder.watch;
1919 fsWatcherDelayS = folder.watchDelay;
2020 ignorePerms = folder.ignorePerms;
21+ versioning = folder.versioning;
2122 }) (filterAttrs (
2223 _: folder:
2324 folder.enable
@@ -220,6 +221,69 @@ in {
220221 '';
221222 };
222223
224+ versioning = mkOption {
225+ default = null;
226+ description = ''
227+ How to keep changed/deleted files with syncthing.
228+ There are 4 different types of versioning with different parameters.
229+ See https://docs.syncthing.net/users/versioning.html
230+ '';
231+ example = [
232+ {
233+ versioning = {
234+ type = "simple";
235+ params.keep = "10";
236+ };
237+ }
238+ {
239+ versioning = {
240+ type = "trashcan";
241+ params.cleanoutDays = "1000";
242+ };
243+ }
244+ {
245+ versioning = {
246+ type = "staggered";
247+ params = {
248+ cleanInterval = "3600";
249+ maxAge = "31536000";
250+ versionsPath = "/syncthing/backup";
251+ };
252+ };
253+ }
254+ {
255+ versioning = {
256+ type = "external";
257+ params.versionsPath = pkgs.writers.writeBash "backup" ''
258+ folderpath="$1"
259+ filepath="$2"
260+ rm -rf "$folderpath/$filepath"
261+ '';
262+ };
263+ }
264+ ];
265+ type = with types; nullOr (submodule {
266+ options = {
267+ type = mkOption {
268+ type = enum [ "external" "simple" "staggered" "trashcan" ];
269+ description = ''
270+ Type of versioning.
271+ See https://docs.syncthing.net/users/versioning.html
272+ '';
273+ };
274+ params = mkOption {
275+ type = attrsOf (either str path);
276+ description = ''
277+ Parameters for versioning. Structure depends on versioning.type.
278+ See https://docs.syncthing.net/users/versioning.html
279+ '';
280+ };
281+ };
282+ });
283+ };
284+
285+
286+
223287 rescanInterval = mkOption {
224288 type = types.int;
225289 default = 3600;
nixos/modules/services/networking/thelounge.nix+1
@@ -56,6 +56,7 @@ in {
5656 users.users.thelounge = {
5757 description = "thelounge service user";
5858 group = "thelounge";
59+ isSystemUser = true;
5960 };
6061 users.groups.thelounge = {};
6162 systemd.services.thelounge = {
nixos/modules/services/networking/tinydns.nix+2−1
@@ -32,11 +32,12 @@ with lib;
3232 config = mkIf config.services.tinydns.enable {
3333 environment.systemPackages = [ pkgs.djbdns ];
3434
35− users.users.tinydns = {};
35+ users.users.tinydns.isSystemUser = true;
3636
3737 systemd.services.tinydns = {
3838 description = "djbdns tinydns server";
3939 wantedBy = [ "multi-user.target" ];
40+ after = [ "network.target" ];
4041 path = with pkgs; [ daemontools djbdns ];
4142 preStart = ''
4243 rm -rf /var/lib/tinydns
nixos/modules/services/networking/trickster.nixnew file+112
@@ -0,0 +1,112 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.trickster;
7+in
8+{
9+
10+ options = {
11+ services.trickster = {
12+ enable = mkOption {
13+ type = types.bool;
14+ default = false;
15+ description = ''
16+ Enable Trickster.
17+ '';
18+ };
19+
20+ package = mkOption {
21+ type = types.package;
22+ default = pkgs.trickster;
23+ defaultText = "pkgs.trickster";
24+ description = ''
25+ Package that should be used for trickster.
26+ '';
27+ };
28+
29+ configFile = mkOption {
30+ type = types.nullOr types.path;
31+ default = null;
32+ description = ''
33+ Path to configuration file.
34+ '';
35+ };
36+
37+ instance-id = mkOption {
38+ type = types.nullOr types.int;
39+ default = null;
40+ description = ''
41+ Instance ID for when running multiple processes (default null).
42+ '';
43+ };
44+
45+ log-level = mkOption {
46+ type = types.str;
47+ default = "info";
48+ description = ''
49+ Level of Logging to use (debug, info, warn, error) (default "info").
50+ '';
51+ };
52+
53+ metrics-port = mkOption {
54+ type = types.port;
55+ default = 8082;
56+ description = ''
57+ Port that the /metrics endpoint will listen on.
58+ '';
59+ };
60+
61+ origin = mkOption {
62+ type = types.str;
63+ default = "http://prometheus:9090";
64+ description = ''
65+ URL to the Prometheus Origin. Enter it like you would in grafana, e.g., http://prometheus:9090 (default http://prometheus:9090).
66+ '';
67+ };
68+
69+ profiler-port = mkOption {
70+ type = types.nullOr types.port;
71+ default = null;
72+ description = ''
73+ Port that the /debug/pprof endpoint will listen on.
74+ '';
75+ };
76+
77+ proxy-port = mkOption {
78+ type = types.port;
79+ default = 9090;
80+ description = ''
81+ Port that the Proxy server will listen on.
82+ '';
83+ };
84+
85+ };
86+ };
87+
88+ config = mkIf cfg.enable {
89+ systemd.services.trickster = {
90+ description = "Dashboard Accelerator for Prometheus";
91+ after = [ "network.target" ];
92+ wantedBy = [ "multi-user.target" ];
93+ serviceConfig = {
94+ DynamicUser = true;
95+ ExecStart = ''
96+ ${cfg.package}/bin/trickster \
97+ -log-level ${cfg.log-level} \
98+ -metrics-port ${toString cfg.metrics-port} \
99+ -origin ${cfg.origin} \
100+ -proxy-port ${toString cfg.proxy-port} \
101+ ${optionalString (cfg.configFile != null) "-config ${cfg.configFile}"} \
102+ ${optionalString (cfg.profiler-port != null) "-profiler-port ${cfg.profiler-port}"} \
103+ ${optionalString (cfg.instance-id != null) "-instance-id ${cfg.instance-id}"}
104+ '';
105+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
106+ Restart = "always";
107+ };
108+ };
109+
110+ };
111+}
112+
nixos/modules/services/networking/vsftpd.nix+109−20
@@ -34,6 +34,15 @@ let
3434 };
3535
3636 optionDescription = [
37+ (yesNoOption "allowWriteableChroot" "allow_writeable_chroot" false ''
38+ Allow the use of writeable root inside chroot().
39+ '')
40+ (yesNoOption "virtualUseLocalPrivs" "virtual_use_local_privs" false ''
41+ If enabled, virtual users will use the same privileges as local
42+ users. By default, virtual users will use the same privileges as
43+ anonymous users, which tends to be more restrictive (especially
44+ in terms of write access).
45+ '')
3746 (yesNoOption "anonymousUser" "anonymous_enable" false ''
3847 Whether to enable the anonymous FTP user.
3948 '')
@@ -76,9 +85,21 @@ let
7685 outgoing data connections can only connect to the client. Only enable if you
7786 know what you are doing!
7887 '')
79− (yesNoOption "ssl_tlsv1" "ssl_tlsv1" true '' '')
80− (yesNoOption "ssl_sslv2" "ssl_sslv2" false '' '')
81− (yesNoOption "ssl_sslv3" "ssl_sslv3" false '' '')
88+ (yesNoOption "ssl_tlsv1" "ssl_tlsv1" true ''
89+ Only applies if <option>ssl_enable</option> is activated. If
90+ enabled, this option will permit TLS v1 protocol connections.
91+ TLS v1 connections are preferred.
92+ '')
93+ (yesNoOption "ssl_sslv2" "ssl_sslv2" false ''
94+ Only applies if <option>ssl_enable</option> is activated. If
95+ enabled, this option will permit SSL v2 protocol connections.
96+ TLS v1 connections are preferred.
97+ '')
98+ (yesNoOption "ssl_sslv3" "ssl_sslv3" false ''
99+ Only applies if <option>ssl_enable</option> is activated. If
100+ enabled, this option will permit SSL v3 protocol connections.
101+ TLS v1 connections are preferred.
102+ '')
82103 ];
83104
84105 configFile = pkgs.writeText "vsftpd.conf"
@@ -98,6 +119,9 @@ let
98119 listen=YES
99120 nopriv_user=vsftpd
100121 secure_chroot_dir=/var/empty
122+ ${optionalString (cfg.localRoot != null) ''
123+ local_root=${cfg.localRoot}
124+ ''}
101125 syslog_enable=YES
102126 ${optionalString (pkgs.stdenv.hostPlatform.system == "x86_64-linux") ''
103127 seccomp_sandbox=NO
@@ -106,6 +130,11 @@ let
106130 ${optionalString cfg.anonymousUser ''
107131 anon_root=${cfg.anonymousUserHome}
108132 ''}
133+ ${optionalString cfg.enableVirtualUsers ''
134+ guest_enable=YES
135+ guest_username=vsftpd
136+ pam_service_name=vsftpd
137+ ''}
109138 ${cfg.extraConfig}
110139 '';
111140
@@ -119,10 +148,7 @@ in
119148
120149 services.vsftpd = {
121150
122− enable = mkOption {
123− default = false;
124− description = "Whether to enable the vsftpd FTP server.";
125− };
151+ enable = mkEnableOption "vsftpd";
126152
127153 userlist = mkOption {
128154 default = [];
@@ -143,6 +169,61 @@ in
143169 '';
144170 };
145171
172+ enableVirtualUsers = mkOption {
173+ type = types.bool;
174+ default = false;
175+ description = ''
176+ Whether to enable the <literal>pam_userdb</literal>-based
177+ virtual user system
178+ '';
179+ };
180+
181+ userDbPath = mkOption {
182+ type = types.nullOr types.str;
183+ example = "/etc/vsftpd/userDb";
184+ default = null;
185+ description = ''
186+ Only applies if <option>enableVirtualUsers</option> is true.
187+ Path pointing to the <literal>pam_userdb</literal> user
188+ database used by vsftpd to authenticate the virtual users.
189+
190+ This user list should be stored in the Berkeley DB database
191+ format.
192+
193+ To generate a new user database, create a text file, add
194+ your users using the following format:
195+ <programlisting>
196+ user1
197+ password1
198+ user2
199+ password2
200+ </programlisting>
201+
202+ You can then install <literal>pkgs.db</literal> to generate
203+ the Berkeley DB using
204+ <programlisting>
205+ db_load -T -t hash -f logins.txt userDb.db
206+ </programlisting>
207+
208+ Caution: <literal>pam_userdb</literal> will automatically
209+ append a <literal>.db</literal> suffix to the filename you
210+ provide though this option. This option shouldn't include
211+ this filetype suffix.
212+ '';
213+ };
214+
215+ localRoot = mkOption {
216+ type = types.nullOr types.str;
217+ default = null;
218+ example = "/var/www/$USER";
219+ description = ''
220+ This option represents a directory which vsftpd will try to
221+ change into after a local (i.e. non- anonymous) login.
222+
223+ Failure is silently ignored.
224+ '';
225+ };
226+
146227 anonymousUserHome = mkOption {
147228 type = types.path;
148229 default = "/home/ftp/";
@@ -186,18 +267,25 @@ in
186267
187268 config = mkIf cfg.enable {
188269
189− assertions = singleton
270+ assertions = [
190271 { assertion =
191272 (cfg.forceLocalLoginsSSL -> cfg.rsaCertFile != null)
192273 && (cfg.forceLocalDataSSL -> cfg.rsaCertFile != null);
193274 message = "vsftpd: If forceLocalLoginsSSL or forceLocalDataSSL is true then a rsaCertFile must be provided!";
194− };
275+ }
276+ {
277+ assertion = (cfg.enableVirtualUsers -> cfg.userDbPath != null)
278+ && (cfg.enableVirtualUsers -> cfg.localUsers != null);
279+ message = "vsftpd: If enableVirtualUsers is true, you need to setup both the userDbPath and localUsers options.";
280+ }];
195281
196282 users.users =
197283 [ { name = "vsftpd";
198284 uid = config.ids.uids.vsftpd;
199285 description = "VSFTPD user";
200− home = "/homeless-shelter";
286+ home = if cfg.localRoot != null
287+ then cfg.localRoot # <= Necessary for virtual users.
288+ else "/homeless-shelter";
201289 }
202290 ] ++ optional cfg.anonymousUser
203291 { name = "ftp";
@@ -213,23 +301,24 @@ in
213301 # = false and whitelist root
214302 services.vsftpd.userlist = if cfg.userlistDeny then ["root"] else [];
215303
216− systemd.services.vsftpd =
217− { description = "Vsftpd Server";
304+ systemd = {
305+ tmpfiles.rules = optional cfg.anonymousUser
306+ #Type Path Mode User Gr Age Arg
307+ "d '${builtins.toString cfg.anonymousUserHome}' 0555 'ftp' 'ftp' - -";
308+ services.vsftpd = {
309+ description = "Vsftpd Server";
218310
219311 wantedBy = [ "multi-user.target" ];
220312
221− preStart =
222− optionalString cfg.anonymousUser
223− ''
224− mkdir -p -m 555 ${cfg.anonymousUserHome}
225− chown -R ftp:ftp ${cfg.anonymousUserHome}
226− '';
227−
228313 serviceConfig.ExecStart = "@${vsftpd}/sbin/vsftpd vsftpd ${configFile}";
229314 serviceConfig.Restart = "always";
230315 serviceConfig.Type = "forking";
231316 };
317+ };
232318
319+ security.pam.services.vsftpd.text = mkIf (cfg.enableVirtualUsers && cfg.userDbPath != null)''
320+ auth required pam_userdb.so db=${cfg.userDbPath}
321+ account required pam_userdb.so db=${cfg.userDbPath}
322+ '';
233323 };
234−
235324}
nixos/modules/services/networking/wireguard.nix+55−11
@@ -112,6 +112,32 @@ let
112112 Determines whether to add allowed IPs as routes or not.
113113 '';
114114 };
115+
116+ socketNamespace = mkOption {
117+ default = null;
118+ type = with types; nullOr str;
119+ example = "container";
120+ description = ''The pre-existing network namespace in which the
121+ WireGuard interface is created, and which retains the socket even if the
122+ interface is moved via <option>interfaceNamespace</option>. When
123+ <literal>null</literal>, the interface is created in the init namespace.
124+ See <link
125+ xlink:href="https://www.wireguard.com/netns/">documentation</link>.
126+ '';
127+ };
128+
129+ interfaceNamespace = mkOption {
130+ default = null;
131+ type = with types; nullOr str;
132+ example = "init";
133+ description = ''The pre-existing network namespace the WireGuard
134+ interface is moved to. The special value <literal>init</literal> means
135+ the init namespace. When <literal>null</literal>, the interface is not
136+ moved.
137+ See <link
138+ xlink:href="https://www.wireguard.com/netns/">documentation</link>.
139+ '';
140+ };
115141 };
116142
117143 };
@@ -239,6 +265,10 @@ let
239265 if peer.presharedKey != null
240266 then pkgs.writeText "wg-psk" peer.presharedKey
241267 else peer.presharedKeyFile;
268+ src = interfaceCfg.socketNamespace;
269+ dst = interfaceCfg.interfaceNamespace;
270+ ip = nsWrap "ip" src dst;
271+ wg = nsWrap "wg" src dst;
242272 in nameValuePair "wireguard-${interfaceName}-peer-${unitName}"
243273 {
244274 description = "WireGuard Peer - ${interfaceName} - ${peer.publicKey}";
@@ -255,16 +285,16 @@ let
255285 };
256286
257287 script = let
258− wg_setup = "wg set ${interfaceName} peer ${peer.publicKey}" +
288+ wg_setup = "${wg} set ${interfaceName} peer ${peer.publicKey}" +
259289 optionalString (psk != null) " preshared-key ${psk}" +
260290 optionalString (peer.endpoint != null) " endpoint ${peer.endpoint}" +
261291 optionalString (peer.persistentKeepalive != null) " persistent-keepalive ${toString peer.persistentKeepalive}" +
262292 optionalString (peer.allowedIPs != []) " allowed-ips ${concatStringsSep "," peer.allowedIPs}";
263293 route_setup =
264− optionalString (interfaceCfg.allowedIPsAsRoutes != false)
294+ optionalString interfaceCfg.allowedIPsAsRoutes
265295 (concatMapStringsSep "\n"
266296 (allowedIP:
267− "ip route replace ${allowedIP} dev ${interfaceName} table ${interfaceCfg.table}"
297+ "${ip} route replace ${allowedIP} dev ${interfaceName} table ${interfaceCfg.table}"
268298 ) peer.allowedIPs);
269299 in ''
270300 ${wg_setup}
@@ -272,13 +302,13 @@ let
272302 '';
273303
274304 postStop = let
275− route_destroy = optionalString (interfaceCfg.allowedIPsAsRoutes != false)
305+ route_destroy = optionalString interfaceCfg.allowedIPsAsRoutes
276306 (concatMapStringsSep "\n"
277307 (allowedIP:
278− "ip route delete ${allowedIP} dev ${interfaceName} table ${interfaceCfg.table}"
308+ "${ip} route delete ${allowedIP} dev ${interfaceName} table ${interfaceCfg.table}"
279309 ) peer.allowedIPs);
280310 in ''
281− wg set ${interfaceName} peer ${peer.publicKey} remove
311+ ${wg} set ${interfaceName} peer ${peer.publicKey} remove
282312 ${route_destroy}
283313 '';
284314 };
@@ -287,6 +317,13 @@ let
287317 # exactly one way to specify the private key must be set
288318 #assert (values.privateKey != null) != (values.privateKeyFile != null);
289319 let privKey = if values.privateKeyFile != null then values.privateKeyFile else pkgs.writeText "wg-key" values.privateKey;
320+ src = values.socketNamespace;
321+ dst = values.interfaceNamespace;
322+ ipPreMove = nsWrap "ip" src null;
323+ ipPostMove = nsWrap "ip" src dst;
324+ wg = nsWrap "wg" src dst;
325+ ns = if dst == "init" then "1" else dst;
326+
290327 in
291328 nameValuePair "wireguard-${name}"
292329 {
@@ -307,26 +344,33 @@ let
307344
308345 ${values.preSetup}
309346
310− ip link add dev ${name} type wireguard
347+ ${ipPreMove} link add dev ${name} type wireguard
348+ ${optionalString (values.interfaceNamespace != null && values.interfaceNamespace != values.socketNamespace) "${ipPreMove} link set ${name} netns ${ns}"}
311349
312350 ${concatMapStringsSep "\n" (ip:
313− "ip address add ${ip} dev ${name}"
351+ "${ipPostMove} address add ${ip} dev ${name}"
314352 ) values.ips}
315353
316− wg set ${name} private-key ${privKey} ${
354+ ${wg} set ${name} private-key ${privKey} ${
317355 optionalString (values.listenPort != null) " listen-port ${toString values.listenPort}"}
318356
319− ip link set up dev ${name}
357+ ${ipPostMove} link set up dev ${name}
320358
321359 ${values.postSetup}
322360 '';
323361
324362 postStop = ''
325− ip link del dev ${name}
363+ ${ipPostMove} link del dev ${name}
326364 ${values.postShutdown}
327365 '';
328366 };
329367
368+ nsWrap = cmd: src: dst:
369+ let
370+ nsList = filter (ns: ns != null) [ src dst ];
371+ ns = last nsList;
372+ in
373+ if (length nsList > 0 && ns != "init") then "ip netns exec ${ns} ${cmd}" else cmd;
330374in
331375
332376{
nixos/modules/services/networking/yggdrasil.nixnew file+187
@@ -0,0 +1,187 @@
1+{ config, lib, pkgs, ... }:
2+with lib;
3+let
4+ cfg = config.services.yggdrasil;
5+ configProvided = (cfg.config != {});
6+ configAsFile = (if configProvided then
7+ toString (pkgs.writeTextFile {
8+ name = "yggdrasil-conf";
9+ text = builtins.toJSON cfg.config;
10+ })
11+ else null);
12+ configFileProvided = (cfg.configFile != null);
13+ generateConfig = (
14+ if configProvided && configFileProvided then
15+ "${pkgs.jq}/bin/jq -s add /run/yggdrasil/configFile.json ${configAsFile}"
16+ else if configProvided then
17+ "cat ${configAsFile}"
18+ else if configFileProvided then
19+ "cat /run/yggdrasil/configFile.json"
20+ else
21+ "${cfg.package}/bin/yggdrasil -genconf"
22+ );
23+
24+in {
25+ options = with types; {
26+ services.yggdrasil = {
27+ enable = mkEnableOption "the yggdrasil system service";
28+
29+ configFile = mkOption {
30+ type = nullOr str;
31+ default = null;
32+ example = "/run/keys/yggdrasil.conf";
33+ description = ''
34+ A file which contains JSON configuration for yggdrasil.
35+
36+ You do not have to supply a complete configuration, as
37+ yggdrasil will use default values for anything which is
38+ omitted. If the encryption and signing keys are omitted,
39+ yggdrasil will generate new ones each time the service is
40+ started, resulting in a random IPv6 address on the yggdrasil
41+ network each time.
42+
43+ If both this option and <option>config</option> are
44+ supplied, they will be combined, with values from
45+ <option>config</option> taking precedence.
46+
47+ You can use the command <code>nix-shell -p yggdrasil --run
48+ "yggdrasil -genconf -json"</code> to generate a default
49+ JSON configuration.
50+ '';
51+ };
52+
53+ config = mkOption {
54+ type = attrs;
55+ default = {};
56+ example = {
57+ Peers = [
58+ "tcp://aa.bb.cc.dd:eeeee"
59+ "tcp://[aaaa:bbbb:cccc:dddd::eeee]:fffff"
60+ ];
61+ Listen = [
62+ "tcp://0.0.0.0:xxxxx"
63+ ];
64+ };
65+ description = ''
66+ Configuration for yggdrasil, as a Nix attribute set.
67+
68+ Warning: this is stored in the WORLD-READABLE Nix store!
69+ Therefore, it is not appropriate for private keys. If you
70+ do not specify the keys, yggdrasil will generate a new set
71+ each time the service is started, creating a random IPv6
72+ address on the yggdrasil network each time.
73+
74+ If you wish to specify the keys, use
75+ <option>configFile</option>. If both
76+ <option>configFile</option> and <option>config</option> are
77+ supplied, they will be combined, with values from
78+ <option>config</option> taking precedence.
79+
80+ You can use the command <code>nix-shell -p yggdrasil --run
81+ "yggdrasil -genconf"</code> to generate default
82+ configuration values with documentation.
83+ '';
84+ };
85+
86+ openMulticastPort = mkOption {
87+ type = bool;
88+ default = false;
89+ description = ''
90+ Whether to open the UDP port used for multicast peer
91+ discovery. The NixOS firewall blocks link-local
92+ communication, so in order to make local peering work you
93+ will also need to set <code>LinkLocalTCPPort</code> in your
94+ yggdrasil configuration (<option>config</option> or
95+ <option>configFile</option>) to a port number other than 0,
96+ and then add that port to
97+ <option>networking.firewall.allowedTCPPorts</option>.
98+ '';
99+ };
100+
101+ denyDhcpcdInterfaces = mkOption {
102+ type = listOf str;
103+ default = [];
104+ example = [ "tap*" ];
105+ description = ''
106+ Disable the DHCP client for any interface whose name matches
107+ any of the shell glob patterns in this list. Use this
108+ option to prevent the DHCP client from broadcasting requests
109+ on the yggdrasil network. It is only necessary to do so
110+ when yggdrasil is running in TAP mode, because TUN
111+ interfaces do not support broadcasting.
112+ '';
113+ };
114+
115+ package = mkOption {
116+ type = package;
117+ default = pkgs.yggdrasil;
118+ defaultText = "pkgs.yggdrasil";
119+ description = "Yggdrasil package to use.";
120+ };
121+ };
122+ };
123+
124+ config = mkIf cfg.enable {
125+ assertions = [
126+ { assertion = config.networking.enableIPv6;
127+ message = "networking.enableIPv6 must be true for yggdrasil to work";
128+ }
129+ ];
130+
131+ systemd.services.yggdrasil = {
132+ description = "Yggdrasil Network Service";
133+ path = [ cfg.package ] ++ optional (configProvided && configFileProvided) pkgs.jq;
134+ bindsTo = [ "network-online.target" ];
135+ after = [ "network-online.target" ];
136+ wantedBy = [ "multi-user.target" ];
137+
138+ preStart = ''
139+ ${generateConfig} | yggdrasil -normaliseconf -useconf > /run/yggdrasil/yggdrasil.conf
140+ '';
141+
142+ serviceConfig = {
143+ ExecStart = "${cfg.package}/bin/yggdrasil -useconffile /run/yggdrasil/yggdrasil.conf";
144+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
145+ Restart = "always";
146+
147+ RuntimeDirectory = "yggdrasil";
148+ RuntimeDirectoryMode = "0700";
149+ BindReadOnlyPaths = mkIf configFileProvided
150+ [ "${cfg.configFile}:/run/yggdrasil/configFile.json" ];
151+
152+ # TODO: as of yggdrasil 0.3.8 and systemd 243, yggdrasil fails
153+ # to set up the network adapter when DynamicUser is set. See
154+ # github.com/yggdrasil-network/yggdrasil-go/issues/557. The
155+ # following options are implied by DynamicUser according to
156+ # the systemd.exec documentation, and can be removed if the
157+ # upstream issue is fixed and DynamicUser is set to true:
158+ PrivateTmp = true;
159+ RemoveIPC = true;
160+ NoNewPrivileges = true;
161+ ProtectSystem = "strict";
162+ RestrictSUIDSGID = true;
163+ # End of list of options implied by DynamicUser.
164+
165+ AmbientCapabilities = "CAP_NET_ADMIN";
166+ CapabilityBoundingSet = "CAP_NET_ADMIN";
167+ MemoryDenyWriteExecute = true;
168+ ProtectControlGroups = true;
169+ ProtectHome = "tmpfs";
170+ ProtectKernelModules = true;
171+ ProtectKernelTunables = true;
172+ RestrictAddressFamilies = "AF_UNIX AF_INET AF_INET6 AF_NETLINK";
173+ RestrictNamespaces = true;
174+ RestrictRealtime = true;
175+ SystemCallArchitectures = "native";
176+ SystemCallFilter = "~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @resources";
177+ };
178+ };
179+
180+ networking.dhcpcd.denyInterfaces = cfg.denyDhcpcdInterfaces;
181+ networking.firewall.allowedUDPPorts = mkIf cfg.openMulticastPort [ 9001 ];
182+
183+ # Make yggdrasilctl available on the command line.
184+ environment.systemPackages = [ cfg.package ];
185+ };
186+ meta.maintainers = with lib.maintainers; [ gazally ];
187+}
nixos/modules/services/printing/cupsd.nix+1−1
@@ -31,7 +31,7 @@ let
3131 # part of CUPS itself, e.g. the SMB backend is part of Samba. Since
3232 # we can't update ${cups.out}/lib/cups itself, we create a symlink tree
3333 # here and add the additional programs. The ServerBin directive in
34− # cupsd.conf tells cupsd to use this tree.
34+ # cups-files.conf tells cupsd to use this tree.
3535 bindir = pkgs.buildEnv {
3636 name = "cups-progs";
3737 paths =
nixos/modules/services/scheduling/marathon.nix+1−1
@@ -93,6 +93,6 @@ in {
9393 };
9494 };
9595
96− users.users.${cfg.user} = { };
96+ users.users.${cfg.user}.isSystemUser = true;
9797 };
9898}
nixos/modules/services/security/bitwarden_rs/default.nix+4−1
@@ -74,7 +74,10 @@ in {
7474 webVaultEnabled = mkDefault true;
7575 };
7676
77− users.users.bitwarden_rs = { inherit group; };
77+ users.users.bitwarden_rs = {
78+ inherit group;
79+ isSystemUser = true;
80+ };
7881 users.groups.bitwarden_rs = { };
7982
8083 systemd.services.bitwarden_rs = {
nixos/modules/services/security/oauth2_proxy.nix+1
@@ -546,6 +546,7 @@ in
546546
547547 users.users.oauth2_proxy = {
548548 description = "OAuth2 Proxy";
549+ isSystemUser = true;
549550 };
550551
551552 systemd.services.oauth2_proxy = {
nixos/modules/services/security/vault.nix+2−3
@@ -119,9 +119,8 @@ in
119119 };
120120 users.groups.vault.gid = config.ids.gids.vault;
121121
122− systemd.tmpfiles.rules = optional (cfg.storagePath != null) [
123− "d '${cfg.storagePath}' 0700 vault vault - -"
124− ];
122+ systemd.tmpfiles.rules = optional (cfg.storagePath != null)
123+ "d '${cfg.storagePath}' 0700 vault vault - -";
125124
126125 systemd.services.vault = {
127126 description = "Vault server daemon";
nixos/modules/services/torrent/magnetico.nix+5−3
@@ -35,6 +35,7 @@ let
3535 (if (cfg.web.credentialsFile != null || cfg.web.credentials != { })
3636 then "--credentials=${toString credFile}"
3737 else "--no-auth")
38+ "--addr=${address}:${toString port}"
3839 ] ++ extraOptions);
3940
4041in {
@@ -171,12 +172,13 @@ in {
171172
172173 users.users.magnetico = {
173174 description = "Magnetico daemons user";
175+ isSystemUser = true;
174176 };
175177
176178 systemd.services.magneticod = {
177179 description = "Magnetico DHT crawler";
178180 wantedBy = [ "multi-user.target" ];
179− after = [ "network-online.target" ];
181+ after = [ "network.target" ];
180182
181183 serviceConfig = {
182184 User = "magnetico";
@@ -188,7 +190,7 @@ in {
188190 systemd.services.magneticow = {
189191 description = "Magnetico web interface";
190192 wantedBy = [ "multi-user.target" ];
191− after = [ "network-online.target" "magneticod.service"];
193+ after = [ "network.target" "magneticod.service"];
192194
193195 serviceConfig = {
194196 User = "magnetico";
@@ -201,7 +203,7 @@ in {
201203 assertions =
202204 [
203205 {
204− assertion = cfg.web.credentialsFile != null || cfg.web.credentials != { };
206+ assertion = cfg.web.credentialsFile == null || cfg.web.credentials == { };
205207 message = ''
206208 The options services.magnetico.web.credentialsFile and
207209 services.magnetico.web.credentials are mutually exclusives.
nixos/modules/services/web-apps/codimd.nix+1
@@ -893,6 +893,7 @@ in
893893 extraGroups = cfg.groups;
894894 home = cfg.workDir;
895895 createHome = true;
896+ isSystemUser = true;
896897 };
897898
898899 systemd.services.codimd = {
nixos/modules/services/web-apps/frab.nix+1
@@ -177,6 +177,7 @@ in
177177 { name = cfg.user;
178178 group = cfg.group;
179179 home = "${cfg.statePath}";
180+ isSystemUser = true;
180181 }
181182 ];
182183
nixos/modules/services/web-apps/gotify-server.nixnew file+49
@@ -0,0 +1,49 @@
1+{ pkgs, lib, config, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.gotify;
7+in {
8+ options = {
9+ services.gotify = {
10+ enable = mkEnableOption "Gotify webserver";
11+
12+ port = mkOption {
13+ type = types.port;
14+ description = ''
15+ Port the server listens to.
16+ '';
17+ };
18+
19+ stateDirectoryName = mkOption {
20+ type = types.str;
21+ default = "gotify-server";
22+ description = ''
23+ The name of the directory below <filename>/var/lib</filename> where
24+ gotify stores its runtime data.
25+ '';
26+ };
27+ };
28+ };
29+
30+ config = mkIf cfg.enable {
31+ systemd.services.gotify-server = {
32+ wantedBy = [ "multi-user.target" ];
33+ after = [ "network.target" ];
34+ description = "Simple server for sending and receiving messages";
35+
36+ environment = {
37+ GOTIFY_SERVER_PORT = toString cfg.port;
38+ };
39+
40+ serviceConfig = {
41+ WorkingDirectory = "/var/lib/${cfg.stateDirectoryName}";
42+ StateDirectory = cfg.stateDirectoryName;
43+ Restart = "always";
44+ DynamicUser = "yes";
45+ ExecStart = "${pkgs.gotify-server}/bin/server";
46+ };
47+ };
48+ };
49+}
nixos/modules/services/web-apps/limesurvey.nix+4−1
@@ -277,7 +277,10 @@ in
277277
278278 systemd.services.httpd.after = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service";
279279
280− users.users.${user}.group = group;
280+ users.users.${user} = {
281+ group = group;
282+ isSystemUser = true;
283+ };
281284
282285 };
283286}
nixos/modules/services/web-apps/matomo-doc.xml+1−1
@@ -105,7 +105,7 @@ GRANT ALL PRIVILEGES ON matomo.* TO 'matomo'@'localhost';
105105 <para>
106106 You can use other web servers by forwarding calls for
107107 <filename>index.php</filename> and <filename>piwik.php</filename> to the
108− <literal>/run/phpfpm-matomo.sock</literal> fastcgi unix socket. You can use
108+ <literal><link linkend="opt-services.phpfpm.pools._name_.socket">services.phpfpm.pools.<name>.socket</link></literal> fastcgi unix socket. You can use
109109 the nginx configuration in the module code as a reference to what else
110110 should be configured.
111111 </para>
nixos/modules/services/web-apps/matomo.nix+22−34
@@ -2,15 +2,13 @@
22with lib;
33let
44 cfg = config.services.matomo;
5+ fpm = config.services.phpfpm.pools.${pool};
56
67 user = "matomo";
78 dataDir = "/var/lib/${user}";
89 deprecatedDataDir = "/var/lib/piwik";
910
1011 pool = user;
11− # it's not possible to use /run/phpfpm/${pool}.sock because /run/phpfpm/ is root:root 0770,
12− # and therefore is not accessible by the web server.
13− phpSocket = "/run/phpfpm-${pool}.sock";
1412 phpExecutionUnit = "phpfpm-${pool}";
1513 databaseService = "mysql.service";
1614
@@ -50,7 +48,7 @@ in {
5048 default = null;
5149 example = "lighttpd";
5250 description = ''
53− Name of the web server user that forwards requests to the ${phpSocket} fastcgi socket for Matomo if the nginx
51+ Name of the web server user that forwards requests to <option>services.phpfpm.pools.<name>.socket</option> the fastcgi socket for Matomo if the nginx
5452 option is not used. Either this option or the nginx option is mandatory.
5553 If you want to use another webserver than nginx, you need to set this to that server's user
5654 and pass fastcgi requests to `index.php`, `matomo.php` and `piwik.php` (legacy name) to this socket.
@@ -71,25 +69,6 @@ in {
7169 '';
7270 };
7371
74− phpfpmProcessManagerConfig = mkOption {
75− type = types.str;
76− default = ''
77− ; default phpfpm process manager settings
78− pm = dynamic
79− pm.max_children = 75
80− pm.start_servers = 10
81− pm.min_spare_servers = 5
82− pm.max_spare_servers = 20
83− pm.max_requests = 500
84−
85− ; log worker's stdout, but this has a performance hit
86− catch_workers_output = yes
87− '';
88− description = ''
89− Settings for phpfpm's process manager. You might need to change this depending on the load for Matomo.
90− '';
91− };
92−
9372 nginx = mkOption {
9473 type = types.nullOr (types.submodule (
9574 recursiveUpdate
@@ -233,15 +212,24 @@ in {
233212 else if (cfg.webServerUser != null) then cfg.webServerUser else "";
234213 in {
235214 ${pool} = {
236− listen = phpSocket;
237− extraConfig = ''
238− listen.owner = ${socketOwner}
239− listen.group = root
240− listen.mode = 0600
241− user = ${user}
242− env[PIWIK_USER_PATH] = ${dataDir}
243− ${cfg.phpfpmProcessManagerConfig}
215+ inherit user;
216+ phpOptions = ''
217+ error_log = 'stderr'
218+ log_errors = on
244219 '';
220+ settings = mapAttrs (name: mkDefault) {
221+ "listen.owner" = socketOwner;
222+ "listen.group" = "root";
223+ "listen.mode" = "0660";
224+ "pm" = "dynamic";
225+ "pm.max_children" = 75;
226+ "pm.start_servers" = 10;
227+ "pm.min_spare_servers" = 5;
228+ "pm.max_spare_servers" = 20;
229+ "pm.max_requests" = 500;
230+ "catch_workers_output" = true;
231+ };
232+ phpEnv.PIWIK_USER_PATH = dataDir;
245233 };
246234 };
247235
@@ -264,15 +252,15 @@ in {
264252 };
265253 # allow index.php for webinterface
266254 locations."= /index.php".extraConfig = ''
267− fastcgi_pass unix:${phpSocket};
255+ fastcgi_pass unix:${fpm.socket};
268256 '';
269257 # allow matomo.php for tracking
270258 locations."= /matomo.php".extraConfig = ''
271− fastcgi_pass unix:${phpSocket};
259+ fastcgi_pass unix:${fpm.socket};
272260 '';
273261 # allow piwik.php for tracking (deprecated name)
274262 locations."= /piwik.php".extraConfig = ''
275− fastcgi_pass unix:${phpSocket};
263+ fastcgi_pass unix:${fpm.socket};
276264 '';
277265 # Any other attempt to access any php files is forbidden
278266 locations."~* ^.+\\.php$".extraConfig = ''
nixos/modules/services/web-apps/mediawiki.nix+4−1
@@ -461,7 +461,10 @@ in
461461
462462 systemd.services.httpd.after = optional (cfg.database.createLocally && cfg.database.type == "mysql") "mysql.service";
463463
464− users.users.${user}.group = group;
464+ users.users.${user} = {
465+ group = group;
466+ isSystemUser = true;
467+ };
465468
466469 environment.systemPackages = [ mediawikiScripts ];
467470 };
nixos/modules/services/web-apps/moinmoin.nixnew file+303
@@ -0,0 +1,303 @@
1+{ config, lib, pkgs, ... }:
2+with lib;
3+
4+let
5+ cfg = config.services.moinmoin;
6+ python = pkgs.python27;
7+ pkg = python.pkgs.moinmoin;
8+ dataDir = "/var/lib/moin";
9+ usingGunicorn = cfg.webServer == "nginx-gunicorn" || cfg.webServer == "gunicorn";
10+ usingNginx = cfg.webServer == "nginx-gunicorn";
11+ user = "moin";
12+ group = "moin";
13+
14+ uLit = s: ''u"${s}"'';
15+ indentLines = n: str: concatMapStrings (line: "${fixedWidthString n " " " "}${line}\n") (splitString "\n" str);
16+
17+ moinCliWrapper = wikiIdent: pkgs.writeShellScriptBin "moin-${wikiIdent}" ''
18+ ${pkgs.su}/bin/su -s ${pkgs.runtimeShell} -c "${pkg}/bin/moin --config-dir=/var/lib/moin/${wikiIdent}/config $*" ${user}
19+ '';
20+
21+ wikiConfig = wikiIdent: w: ''
22+ # -*- coding: utf-8 -*-
23+
24+ from MoinMoin.config import multiconfig, url_prefix_static
25+
26+ class Config(multiconfig.DefaultConfig):
27+ ${optionalString (w.webLocation != "/") ''
28+ url_prefix_static = '${w.webLocation}' + url_prefix_static
29+ ''}
30+
31+ sitename = u'${w.siteName}'
32+ page_front_page = u'${w.frontPage}'
33+
34+ data_dir = '${dataDir}/${wikiIdent}/data'
35+ data_underlay_dir = '${dataDir}/${wikiIdent}/underlay'
36+
37+ language_default = u'${w.languageDefault}'
38+ ${optionalString (w.superUsers != []) ''
39+ superuser = [${concatMapStringsSep ", " uLit w.superUsers}]
40+ ''}
41+
42+ ${indentLines 4 w.extraConfig}
43+ '';
44+ wikiConfigFile = name: wiki: pkgs.writeText "${name}.py" (wikiConfig name wiki);
45+
46+in
47+{
48+ options.services.moinmoin = with types; {
49+ enable = mkEnableOption "MoinMoin Wiki Engine";
50+
51+ webServer = mkOption {
52+ type = enum [ "nginx-gunicorn" "gunicorn" "none" ];
53+ default = "nginx-gunicorn";
54+ example = "none";
55+ description = ''
56+ Which web server to use to serve the wiki.
57+ Use <literal>none</literal> if you want to configure this yourself.
58+ '';
59+ };
60+
61+ gunicorn.workers = mkOption {
62+ type = ints.positive;
63+ default = 3;
64+ example = 10;
65+ description = ''
66+ The number of worker processes for handling requests.
67+ '';
68+ };
69+
70+ wikis = mkOption {
71+ type = attrsOf (submodule ({ name, ... }: {
72+ options = {
73+ siteName = mkOption {
74+ type = str;
75+ default = "Untitled Wiki";
76+ example = "ExampleWiki";
77+ description = ''
78+ Short description of your wiki site, displayed below the logo on each page, and
79+ used in RSS documents as the channel title.
80+ '';
81+ };
82+
83+ webHost = mkOption {
84+ type = str;
85+ description = "Host part of the wiki URL. If undefined, the name of the attribute set will be used.";
86+ example = "wiki.example.org";
87+ };
88+
89+ webLocation = mkOption {
90+ type = str;
91+ default = "/";
92+ example = "/moin";
93+ description = "Location part of the wiki URL.";
94+ };
95+
96+ frontPage = mkOption {
97+ type = str;
98+ default = "LanguageSetup";
99+ example = "FrontPage";
100+ description = ''
101+ Front page name. Set this to something like <literal>FrontPage</literal> once languages are
102+ configured.
103+ '';
104+ };
105+
106+ superUsers = mkOption {
107+ type = listOf str;
108+ default = [];
109+ example = [ "elvis" ];
110+ description = ''
111+ List of trusted user names with wiki system administration super powers.
112+
113+ Please note that accounts for these users need to be created using the <command>moin</command> command-line utility, e.g.:
114+ <command>moin-<replaceable>WIKINAME</replaceable> account create --name=<replaceable>NAME</replaceable> --email=<replaceable>EMAIL</replaceable> --password=<replaceable>PASSWORD</replaceable></command>.
115+ '';
116+ };
117+
118+ languageDefault = mkOption {
119+ type = str;
120+ default = "en";
121+ example = "de";
122+ description = "The ISO-639-1 name of the main wiki language. Languages that MoinMoin does not support are ignored.";
123+ };
124+
125+ extraConfig = mkOption {
126+ type = lines;
127+ default = "";
128+ example = ''
129+ show_hosts = True
130+ search_results_per_page = 100
131+ acl_rights_default = u"Known:read,write,delete,revert All:read"
132+ logo_string = u"<h2>\U0001f639</h2>"
133+ theme_default = u"modernized"
134+
135+ user_checkbox_defaults = {'show_page_trail': 0, 'edit_on_doubleclick': 0}
136+ navi_bar = [u'SomePage'] + multiconfig.DefaultConfig.navi_bar
137+ actions_excluded = multiconfig.DefaultConfig.actions_excluded + ['newaccount']
138+
139+ mail_smarthost = "mail.example.org"
140+ mail_from = u"Example.Org Wiki <wiki@example.org>"
141+ '';
142+ description = ''
143+ Additional configuration to be appended verbatim to this wiki's config.
144+
145+ See <link xlink:href='http://moinmo.in/HelpOnConfiguration' /> for documentation.
146+ '';
147+ };
148+
149+ };
150+ config = {
151+ webHost = mkDefault name;
152+ };
153+ }));
154+ example = literalExample ''
155+ {
156+ "mywiki" = {
157+ siteName = "Example Wiki";
158+ webHost = "wiki.example.org";
159+ superUsers = [ "admin" ];
160+ frontPage = "Index";
161+ extraConfig = "page_category_regex = ur'(?P<all>(Category|Kategorie)(?P<key>(?!Template)\S+))'"
162+ };
163+ }
164+ '';
165+ description = ''
166+ Configurations of the individual wikis. Attribute names must be valid Python
167+ identifiers of the form <literal>[A-Za-z_][A-Za-z0-9_]*</literal>.
168+
169+ For every attribute <replaceable>WIKINAME</replaceable>, a helper script
170+ moin-<replaceable>WIKINAME</replaceable> is created which runs the
171+ <command>moin</command> command under the <literal>moin</literal> user (to avoid
172+ file ownership issues) and with the right configuration directory passed to it.
173+ '';
174+ };
175+ };
176+
177+ config = mkIf cfg.enable {
178+ assertions = forEach (attrNames cfg.wikis) (wname:
179+ { assertion = builtins.match "[A-Za-z_][A-Za-z0-9_]*" wname != null;
180+ message = "${wname} is not valid Python identifier";
181+ }
182+ );
183+
184+ users.users = {
185+ moin = {
186+ description = "MoinMoin wiki";
187+ home = dataDir;
188+ group = group;
189+ isSystemUser = true;
190+ };
191+ };
192+
193+ users.groups = {
194+ moin = {
195+ members = mkIf usingNginx [ config.services.nginx.user ];
196+ };
197+ };
198+
199+ environment.systemPackages = [ pkg ] ++ map moinCliWrapper (attrNames cfg.wikis);
200+
201+ systemd.services = mkIf usingGunicorn
202+ (flip mapAttrs' cfg.wikis (wikiIdent: wiki:
203+ nameValuePair "moin-${wikiIdent}"
204+ {
205+ description = "MoinMoin wiki ${wikiIdent} - gunicorn process";
206+ wantedBy = [ "multi-user.target" ];
207+ after = [ "network.target" ];
208+ restartIfChanged = true;
209+ restartTriggers = [ (wikiConfigFile wikiIdent wiki) ];
210+
211+ environment = let
212+ penv = python.buildEnv.override {
213+ # setuptools: https://github.com/benoitc/gunicorn/issues/1716
214+ extraLibs = [ python.pkgs.gevent python.pkgs.setuptools pkg ];
215+ };
216+ in {
217+ PYTHONPATH = "${dataDir}/${wikiIdent}/config:${penv}/${python.sitePackages}";
218+ };
219+
220+ preStart = ''
221+ umask 0007
222+ rm -rf ${dataDir}/${wikiIdent}/underlay
223+ cp -r ${pkg}/share/moin/underlay ${dataDir}/${wikiIdent}/
224+ chmod -R u+w ${dataDir}/${wikiIdent}/underlay
225+ '';
226+
227+ serviceConfig = {
228+ User = user;
229+ Group = group;
230+ WorkingDirectory = "${dataDir}/${wikiIdent}";
231+ ExecStart = ''${python.pkgs.gunicorn}/bin/gunicorn moin_wsgi \
232+ --name gunicorn-${wikiIdent} \
233+ --workers ${toString cfg.gunicorn.workers} \
234+ --worker-class gevent \
235+ --bind unix:/run/moin/${wikiIdent}/gunicorn.sock
236+ '';
237+
238+ Restart = "on-failure";
239+ RestartSec = "2s";
240+ StartLimitIntervalSec = "30s";
241+
242+ StateDirectory = "moin/${wikiIdent}";
243+ StateDirectoryMode = "0750";
244+ RuntimeDirectory = "moin/${wikiIdent}";
245+ RuntimeDirectoryMode = "0750";
246+
247+ NoNewPrivileges = true;
248+ ProtectSystem = "strict";
249+ ProtectHome = true;
250+ PrivateTmp = true;
251+ PrivateDevices = true;
252+ PrivateNetwork = true;
253+ ProtectKernelTunables = true;
254+ ProtectKernelModules = true;
255+ ProtectControlGroups = true;
256+ RestrictAddressFamilies = [ "AF_UNIX" "AF_INET" "AF_INET6" ];
257+ RestrictNamespaces = true;
258+ LockPersonality = true;
259+ MemoryDenyWriteExecute = true;
260+ RestrictRealtime = true;
261+ };
262+ }
263+ ));
264+
265+ services.nginx = mkIf usingNginx {
266+ enable = true;
267+ virtualHosts = flip mapAttrs' cfg.wikis (name: w: nameValuePair w.webHost {
268+ forceSSL = mkDefault true;
269+ enableACME = mkDefault true;
270+ locations."${w.webLocation}" = {
271+ extraConfig = ''
272+ proxy_set_header Host $host;
273+ proxy_set_header X-Real-IP $remote_addr;
274+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
275+ proxy_set_header X-Forwarded-Proto $scheme;
276+ proxy_set_header X-Forwarded-Host $host;
277+ proxy_set_header X-Forwarded-Server $host;
278+
279+ proxy_pass http://unix:/run/moin/${name}/gunicorn.sock;
280+ '';
281+ };
282+ });
283+ };
284+
285+ systemd.tmpfiles.rules = [
286+ "d /run/moin 0750 ${user} ${group} - -"
287+ "d ${dataDir} 0550 ${user} ${group} - -"
288+ ]
289+ ++ (concatLists (flip mapAttrsToList cfg.wikis (wikiIdent: wiki: [
290+ "d ${dataDir}/${wikiIdent} 0750 ${user} ${group} - -"
291+ "d ${dataDir}/${wikiIdent}/config 0550 ${user} ${group} - -"
292+ "L+ ${dataDir}/${wikiIdent}/config/wikiconfig.py - - - - ${wikiConfigFile wikiIdent wiki}"
293+ # needed in order to pass module name to gunicorn
294+ "L+ ${dataDir}/${wikiIdent}/config/moin_wsgi.py - - - - ${pkg}/share/moin/server/moin.wsgi"
295+ # seed data files
296+ "C ${dataDir}/${wikiIdent}/data 0770 ${user} ${group} - ${pkg}/share/moin/data"
297+ # fix nix store permissions
298+ "Z ${dataDir}/${wikiIdent}/data 0770 ${user} ${group} - -"
299+ ])));
300+ };
301+
302+ meta.maintainers = with lib.maintainers; [ b42 ];
303+}
nixos/modules/services/web-apps/moodle.nix+4−2
@@ -309,7 +309,9 @@ in
309309
310310 systemd.services.httpd.after = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service";
311311
312− users.users.${user}.group = group;
313−
312+ users.users.${user} = {
313+ group = group;
314+ isSystemUser = true;
315+ };
314316 };
315317}
nixos/modules/services/web-apps/nextcloud.nix+3−1
@@ -467,7 +467,7 @@ in {
467467 };
468468 "/" = {
469469 priority = 200;
470− extraConfig = "rewrite ^ /index.php$request_uri;";
470+ extraConfig = "rewrite ^ /index.php;";
471471 };
472472 "~ ^/store-apps" = {
473473 priority = 201;
@@ -494,6 +494,7 @@ in {
494494 extraConfig = ''
495495 include ${config.services.nginx.package}/conf/fastcgi.conf;
496496 fastcgi_split_path_info ^(.+\.php)(\\/.*)$;
497+ try_files $fastcgi_script_name =404;
497498 fastcgi_param PATH_INFO $fastcgi_path_info;
498499 fastcgi_param HTTPS ${if cfg.https then "on" else "off"};
499500 fastcgi_param modHeadersAvailable true;
@@ -531,6 +532,7 @@ in {
531532 add_header X-Download-Options noopen;
532533 add_header X-Permitted-Cross-Domain-Policies none;
533534 add_header Referrer-Policy no-referrer;
535+ add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
534536 error_page 403 /core/templates/403.php;
535537 error_page 404 /core/templates/404.php;
536538 client_max_body_size ${cfg.maxUploadSize};
nixos/modules/services/web-apps/nexus.nix+1
@@ -68,6 +68,7 @@ in
6868 -Dkaraf.data=${cfg.home}/nexus3
6969 -Djava.io.tmpdir=${cfg.home}/nexus3/tmp
7070 -Dkaraf.startLocalConsole=false
71+ -Djava.endorsed.dirs=${cfg.package}/lib/endorsed
7172 '';
7273
7374 description = ''
nixos/modules/services/web-apps/trac.nixnew file+79
@@ -0,0 +1,79 @@
1+{ config, lib, pkgs, ... }:
2+
3+let
4+ cfg = config.services.trac;
5+
6+ inherit (lib) mkEnableOption mkIf mkOption types;
7+
8+in {
9+
10+ options = {
11+
12+ services.trac = {
13+ enable = mkEnableOption "Trac service";
14+
15+ listen = {
16+ ip = mkOption {
17+ type = types.str;
18+ default = "0.0.0.0";
19+ description = ''
20+ IP address that Trac should listen on.
21+ '';
22+ };
23+
24+ port = mkOption {
25+ type = types.port;
26+ default = 8000;
27+ description = ''
28+ Listen port for Trac.
29+ '';
30+ };
31+ };
32+
33+ dataDir = mkOption {
34+ default = "/var/lib/trac";
35+ type = types.path;
36+ description = ''
37+ The directory for storing the Trac data.
38+ '';
39+ };
40+
41+ openFirewall = mkOption {
42+ type = types.bool;
43+ default = false;
44+ description = ''
45+ Open ports in the firewall for Trac.
46+ '';
47+ };
48+ };
49+
50+ };
51+
52+ config = mkIf cfg.enable {
53+
54+ systemd.services.trac = {
55+ description = "Trac server";
56+ wantedBy = [ "multi-user.target" ];
57+ serviceConfig = {
58+ DynamicUser = true;
59+ StateDirectory = baseNameOf cfg.dataDir;
60+ ExecStart = ''
61+ ${pkgs.trac}/bin/tracd -s \
62+ -b ${toString cfg.listen.ip} \
63+ -p ${toString cfg.listen.port} \
64+ ${cfg.dataDir}
65+ '';
66+ };
67+ preStart = ''
68+ if [ ! -e ${cfg.dataDir}/VERSION ]; then
69+ ${pkgs.trac}/bin/trac-admin ${cfg.dataDir} initenv Trac "sqlite:db/trac.db"
70+ fi
71+ '';
72+ };
73+
74+ networking.firewall = mkIf cfg.openFirewall {
75+ allowedTCPPorts = [ cfg.listen.port ];
76+ };
77+
78+ };
79+}
nixos/modules/services/web-apps/virtlyst.nix+1
@@ -54,6 +54,7 @@ in
5454 home = stateDir;
5555 createHome = true;
5656 group = mkIf config.virtualisation.libvirtd.enable "libvirtd";
57+ isSystemUser = true;
5758 };
5859
5960 systemd.services.virtlyst = {
nixos/modules/services/web-apps/wordpress.nix+4−1
@@ -367,7 +367,10 @@ in
367367 })
368368 ];
369369
370− users.users.${user}.group = group;
370+ users.users.${user} = {
371+ group = group;
372+ isSystemUser = true;
373+ };
371374
372375 };
373376}
nixos/modules/services/web-servers/apache-httpd/default.nix+91−164
@@ -6,6 +6,8 @@ let
66
77 mainCfg = config.services.httpd;
88
9+ runtimeDir = "/run/httpd";
10+
911 httpd = mainCfg.package.out;
1012
1113 httpdConf = mainCfg.configFile;
@@ -27,103 +29,29 @@ let
2729
2830 listenToString = l: "${l.ip}:${toString l.port}";
2931
30− extraModules = attrByPath ["extraModules"] [] mainCfg;
31− extraForeignModules = filter isAttrs extraModules;
32− extraApacheModules = filter isString extraModules;
33−
34−
35− makeServerInfo = cfg: {
36− # Canonical name must not include a trailing slash.
37− canonicalNames =
38− let defaultPort = (head (defaultListen cfg)).port; in
39− map (port:
40− (if cfg.enableSSL then "https" else "http") + "://" +
41− cfg.hostName +
42− (if port != defaultPort then ":${toString port}" else "")
43− ) (map (x: x.port) (getListen cfg));
44−
45− # Admin address: inherit from the main server if not specified for
46− # a virtual host.
47− adminAddr = if cfg.adminAddr != null then cfg.adminAddr else mainCfg.adminAddr;
48−
49− vhostConfig = cfg;
50− serverConfig = mainCfg;
51− fullConfig = config; # machine config
52− };
53−
54−
5532 allHosts = [mainCfg] ++ mainCfg.virtualHosts;
5633
57−
58− callSubservices = serverInfo: defs:
59− let f = svc:
60− let
61− svcFunction =
62− if svc ? function then svc.function
63− # instead of using serviceType="mediawiki"; you can copy mediawiki.nix to any location outside nixpkgs, modify it at will, and use serviceExpression=./mediawiki.nix;
64− else if svc ? serviceExpression then import (toString svc.serviceExpression)
65− else import (toString "${toString ./.}/${if svc ? serviceType then svc.serviceType else svc.serviceName}.nix");
66− config = (evalModules
67− { modules = [ { options = res.options; config = svc.config or svc; } ];
68− check = false;
69− }).config;
70− defaults = {
71− extraConfig = "";
72− extraModules = [];
73− extraModulesPre = [];
74− extraPath = [];
75− extraServerPath = [];
76− globalEnvVars = [];
77− robotsEntries = "";
78− startupScript = "";
79− enablePHP = false;
80− enablePerl = false;
81− phpOptions = "";
82− options = {};
83− documentRoot = null;
84− };
85− res = defaults // svcFunction { inherit config lib pkgs serverInfo php; };
86− in res;
87− in map f defs;
88−
89−
90− # !!! callSubservices is expensive
91− subservicesFor = cfg: callSubservices (makeServerInfo cfg) cfg.extraSubservices;
92−
93− mainSubservices = subservicesFor mainCfg;
94−
95− allSubservices = mainSubservices ++ concatMap subservicesFor mainCfg.virtualHosts;
96−
97−
9834 enableSSL = any (vhost: vhost.enableSSL) allHosts;
9935
36+ enableUserDir = any (vhost: vhost.enableUserDir) allHosts;
10037
101− # Names of modules from ${httpd}/modules that we want to load.
102− apacheModules =
103− [ # HTTP authentication mechanisms: basic and digest.
104− "auth_basic" "auth_digest"
105−
106− # Authentication: is the user who he claims to be?
107− "authn_file" "authn_dbm" "authn_anon" "authn_core"
108−
109− # Authorization: is the user allowed access?
110− "authz_user" "authz_groupfile" "authz_host" "authz_core"
111−
112− # Other modules.
113− "ext_filter" "include" "log_config" "env" "mime_magic"
114− "cern_meta" "expires" "headers" "usertrack" /* "unique_id" */ "setenvif"
115− "mime" "dav" "status" "autoindex" "asis" "info" "dav_fs"
116− "vhost_alias" "negotiation" "dir" "imagemap" "actions" "speling"
117− "userdir" "alias" "rewrite" "proxy" "proxy_http"
118− "unixd" "cache" "cache_disk" "slotmem_shm" "socache_shmcb"
38+ # NOTE: generally speaking order of modules is very important
39+ modules =
40+ [ # required apache modules our httpd service cannot run without
41+ "authn_core" "authz_core"
42+ "log_config"
43+ "mime" "autoindex" "negotiation" "dir"
44+ "alias" "rewrite"
45+ "unixd" "slotmem_shm" "socache_shmcb"
11946 "mpm_${mainCfg.multiProcessingModule}"
120−
121− # For compatibility with old configurations, the new module mod_access_compat is provided.
122− "access_compat"
12347 ]
12448 ++ (if mainCfg.multiProcessingModule == "prefork" then [ "cgi" ] else [ "cgid" ])
12549 ++ optional enableSSL "ssl"
126− ++ extraApacheModules;
50+ ++ optional enableUserDir "userdir"
51+ ++ optional mainCfg.enableMellon { name = "auth_mellon"; path = "${pkgs.apacheHttpdPackages.mod_auth_mellon}/modules/mod_auth_mellon.so"; }
52+ ++ optional mainCfg.enablePHP { name = "php${phpMajorVersion}"; path = "${php}/modules/libphp${phpMajorVersion}.so"; }
53+ ++ optional mainCfg.enablePerl { name = "perl"; path = "${mod_perl}/modules/mod_perl.so"; }
54+ ++ mainCfg.extraModules;
12755
12856
12957 allDenied = "Require all denied";
@@ -147,20 +75,22 @@ let
14775
14876
14977 browserHacks = ''
150− BrowserMatch "Mozilla/2" nokeepalive
151− BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
152− BrowserMatch "RealPlayer 4\.0" force-response-1.0
153− BrowserMatch "Java/1\.0" force-response-1.0
154− BrowserMatch "JDK/1\.0" force-response-1.0
155− BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
156− BrowserMatch "^WebDrive" redirect-carefully
157− BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
158− BrowserMatch "^gnome-vfs" redirect-carefully
78+ <IfModule mod_setenvif.c>
79+ BrowserMatch "Mozilla/2" nokeepalive
80+ BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
81+ BrowserMatch "RealPlayer 4\.0" force-response-1.0
82+ BrowserMatch "Java/1\.0" force-response-1.0
83+ BrowserMatch "JDK/1\.0" force-response-1.0
84+ BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
85+ BrowserMatch "^WebDrive" redirect-carefully
86+ BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
87+ BrowserMatch "^gnome-vfs" redirect-carefully
88+ </IfModule>
15989 '';
16090
16191
16292 sslConf = ''
163− SSLSessionCache shmcb:${mainCfg.stateDir}/ssl_scache(512000)
93+ SSLSessionCache shmcb:${runtimeDir}/ssl_scache(512000)
16494
16595 Mutex posixsem
16696
@@ -188,13 +118,18 @@ let
188118
189119 perServerConf = isMainServer: cfg: let
190120
191− serverInfo = makeServerInfo cfg;
192−
193− subservices = callSubservices serverInfo cfg.extraSubservices;
121+ # Canonical name must not include a trailing slash.
122+ canonicalNames =
123+ let defaultPort = (head (defaultListen cfg)).port; in
124+ map (port:
125+ (if cfg.enableSSL then "https" else "http") + "://" +
126+ cfg.hostName +
127+ (if port != defaultPort then ":${toString port}" else "")
128+ ) (map (x: x.port) (getListen cfg));
194129
195130 maybeDocumentRoot = fold (svc: acc:
196131 if acc == null then svc.documentRoot else assert svc.documentRoot == null; acc
197− ) null ([ cfg ] ++ subservices);
132+ ) null ([ cfg ]);
198133
199134 documentRoot = if maybeDocumentRoot != null then maybeDocumentRoot else
200135 pkgs.runCommand "empty" { preferLocalBuild = true; } "mkdir -p $out";
@@ -209,15 +144,11 @@ let
209144 </Directory>
210145 '';
211146
212− robotsTxt =
213− concatStringsSep "\n" (filter (x: x != "") (
214− # If this is a vhost, the include the entries for the main server as well.
215− (if isMainServer then [] else [mainCfg.robotsEntries] ++ map (svc: svc.robotsEntries) mainSubservices)
216− ++ [cfg.robotsEntries]
217− ++ (map (svc: svc.robotsEntries) subservices)));
147+ # If this is a vhost, the include the entries for the main server as well.
148+ robotsTxt = concatStringsSep "\n" (filter (x: x != "") ([ cfg.robotsEntries ] ++ lib.optional (!isMainServer) mainCfg.robotsEntries));
218149
219150 in ''
220− ${concatStringsSep "\n" (map (n: "ServerName ${n}") serverInfo.canonicalNames)}
151+ ${concatStringsSep "\n" (map (n: "ServerName ${n}") canonicalNames)}
221152
222153 ${concatMapStrings (alias: "ServerAlias ${alias}\n") cfg.serverAliases}
223154
@@ -292,8 +223,6 @@ let
292223 in concatMapStrings makeDirConf cfg.servedDirs
293224 }
294225
295− ${concatMapStrings (svc: svc.extraConfig) subservices}
296−
297226 ${cfg.extraConfig}
298227 '';
299228
@@ -302,13 +231,13 @@ let
302231
303232 ServerRoot ${httpd}
304233
305− DefaultRuntimeDir ${mainCfg.stateDir}/runtime
234+ DefaultRuntimeDir ${runtimeDir}/runtime
306235
307− PidFile ${mainCfg.stateDir}/httpd.pid
236+ PidFile ${runtimeDir}/httpd.pid
308237
309238 ${optionalString (mainCfg.multiProcessingModule != "prefork") ''
310239 # mod_cgid requires this.
311− ScriptSock ${mainCfg.stateDir}/cgisock
240+ ScriptSock ${runtimeDir}/cgisock
312241 ''}
313242
314243 <IfModule prefork.c>
@@ -327,16 +256,12 @@ let
327256 Group ${mainCfg.group}
328257
329258 ${let
330− load = {name, path}: "LoadModule ${name}_module ${path}\n";
331− allModules =
332− concatMap (svc: svc.extraModulesPre) allSubservices
333− ++ map (name: {inherit name; path = "${httpd}/modules/mod_${name}.so";}) apacheModules
334− ++ optional mainCfg.enableMellon { name = "auth_mellon"; path = "${pkgs.apacheHttpdPackages.mod_auth_mellon}/modules/mod_auth_mellon.so"; }
335− ++ optional enablePHP { name = "php${phpMajorVersion}"; path = "${php}/modules/libphp${phpMajorVersion}.so"; }
336− ++ optional enablePerl { name = "perl"; path = "${mod_perl}/modules/mod_perl.so"; }
337− ++ concatMap (svc: svc.extraModules) allSubservices
338− ++ extraForeignModules;
339− in concatMapStrings load (unique allModules)
259+ mkModule = module:
260+ if isString module then { name = module; path = "${httpd}/modules/mod_${module}.so"; }
261+ else if isAttrs module then { inherit (module) name path; }
262+ else throw "Expecting either a string or attribute set including a name and path.";
263+ in
264+ concatMapStringsSep "\n" (module: "LoadModule ${module.name}_module ${module.path}") (unique (map mkModule modules))
340265 }
341266
342267 AddHandler type-map var
@@ -385,17 +310,10 @@ let
385310 }
386311 '';
387312
388−
389− enablePHP = mainCfg.enablePHP || any (svc: svc.enablePHP) allSubservices;
390−
391− enablePerl = mainCfg.enablePerl || any (svc: svc.enablePerl) allSubservices;
392−
393−
394313 # Generate the PHP configuration file. Should probably be factored
395314 # out into a separate module.
396315 phpIni = pkgs.runCommand "php.ini"
397− { options = concatStringsSep "\n"
398− ([ mainCfg.phpOptions ] ++ (map (svc: svc.phpOptions) allSubservices));
316+ { options = mainCfg.phpOptions;
399317 preferLocalBuild = true;
400318 }
401319 ''
@@ -408,6 +326,11 @@ in
408326
409327{
410328
329+ imports = [
330+ (mkRemovedOptionModule [ "services" "httpd" "extraSubservices" ] "Most existing subservices have been ported to the NixOS module system. Please update your configuration accordingly.")
331+ (mkRemovedOptionModule [ "services" "httpd" "stateDir" ] "The httpd module now uses /run/httpd as a runtime directory.")
332+ ];
333+
411334 ###### interface
412335
413336 options = {
@@ -453,7 +376,12 @@ in
453376 extraModules = mkOption {
454377 type = types.listOf types.unspecified;
455378 default = [];
456− example = literalExample ''[ "proxy_connect" { name = "php5"; path = "''${pkgs.php}/modules/libphp5.so"; } ]'';
379+ example = literalExample ''
380+ [
381+ "proxy_connect"
382+ { name = "jk"; path = "''${pkgs.tomcat_connectors}/modules/mod_jk.so"; }
383+ ]
384+ '';
457385 description = ''
458386 Additional Apache modules to be used. These can be
459387 specified as a string in the case of modules distributed
@@ -500,16 +428,6 @@ in
500428 '';
501429 };
502430
503− stateDir = mkOption {
504− type = types.path;
505− default = "/run/httpd";
506− description = ''
507− Directory for Apache's transient runtime state (such as PID
508− files). It is created automatically. Note that the default,
509− <filename>/run/httpd</filename>, is deleted at boot time.
510− '';
511− };
512−
513431 virtualHosts = mkOption {
514432 type = types.listOf (types.submodule (
515433 { options = import ./per-server-options.nix {
@@ -637,8 +555,6 @@ in
637555 message = "SSL is enabled for httpd, but sslServerCert and/or sslServerKey haven't been specified."; }
638556 ];
639557
640− warnings = map (cfg: "apache-httpd's extraSubservices option is deprecated. Most existing subservices have been ported to the NixOS module system. Please update your configuration accordingly.") (lib.filter (cfg: cfg.extraSubservices != []) allHosts);
641−
642558 users.users = optionalAttrs (mainCfg.user == "wwwrun") (singleton
643559 { name = "wwwrun";
644560 group = mainCfg.group;
@@ -651,7 +567,7 @@ in
651567 gid = config.ids.gids.wwwrun;
652568 });
653569
654− environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
570+ environment.systemPackages = [httpd];
655571
656572 services.httpd.phpOptions =
657573 ''
@@ -666,6 +582,28 @@ in
666582 date.timezone = "${config.time.timeZone}"
667583 '';
668584
585+ services.httpd.extraModules = mkBefore [
586+ # HTTP authentication mechanisms: basic and digest.
587+ "auth_basic" "auth_digest"
588+
589+ # Authentication: is the user who he claims to be?
590+ "authn_file" "authn_dbm" "authn_anon"
591+
592+ # Authorization: is the user allowed access?
593+ "authz_user" "authz_groupfile" "authz_host"
594+
595+ # Other modules.
596+ "ext_filter" "include" "env" "mime_magic"
597+ "cern_meta" "expires" "headers" "usertrack" "setenvif"
598+ "dav" "status" "asis" "info" "dav_fs"
599+ "vhost_alias" "imagemap" "actions" "speling"
600+ "proxy" "proxy_http"
601+ "cache" "cache_disk"
602+
603+ # For compatibility with old configurations, the new module mod_access_compat is provided.
604+ "access_compat"
605+ ];
606+
669607 systemd.services.httpd =
670608 { description = "Apache HTTPD";
671609
@@ -674,22 +612,14 @@ in
674612
675613 path =
676614 [ httpd pkgs.coreutils pkgs.gnugrep ]
677− ++ optional enablePHP pkgs.system-sendmail # Needed for PHP's mail() function.
678− ++ concatMap (svc: svc.extraServerPath) allSubservices;
615+ ++ optional mainCfg.enablePHP pkgs.system-sendmail; # Needed for PHP's mail() function.
679616
680617 environment =
681− optionalAttrs enablePHP { PHPRC = phpIni; }
682− // optionalAttrs mainCfg.enableMellon { LD_LIBRARY_PATH = "${pkgs.xmlsec}/lib"; }
683− // (listToAttrs (concatMap (svc: svc.globalEnvVars) allSubservices));
618+ optionalAttrs mainCfg.enablePHP { PHPRC = phpIni; }
619+ // optionalAttrs mainCfg.enableMellon { LD_LIBRARY_PATH = "${pkgs.xmlsec}/lib"; };
684620
685621 preStart =
686622 ''
687− mkdir -m 0750 -p ${mainCfg.stateDir}
688− [ $(id -u) != 0 ] || chown root.${mainCfg.group} ${mainCfg.stateDir}
689−
690− mkdir -m 0750 -p "${mainCfg.stateDir}/runtime"
691− [ $(id -u) != 0 ] || chown root.${mainCfg.group} "${mainCfg.stateDir}/runtime"
692−
693623 mkdir -m 0700 -p ${mainCfg.logDir}
694624
695625 # Get rid of old semaphores. These tend to accumulate across
@@ -698,21 +628,18 @@ in
698628 for i in $(${pkgs.utillinux}/bin/ipcs -s | grep ' ${mainCfg.user} ' | cut -f2 -d ' '); do
699629 ${pkgs.utillinux}/bin/ipcrm -s $i
700630 done
701−
702− # Run the startup hooks for the subservices.
703− for i in ${toString (map (svn: svn.startupScript) allSubservices)}; do
704− echo Running Apache startup hook $i...
705− $i
706− done
707631 '';
708632
709633 serviceConfig.ExecStart = "@${httpd}/bin/httpd httpd -f ${httpdConf}";
710634 serviceConfig.ExecStop = "${httpd}/bin/httpd -f ${httpdConf} -k graceful-stop";
711635 serviceConfig.ExecReload = "${httpd}/bin/httpd -f ${httpdConf} -k graceful";
636+ serviceConfig.Group = mainCfg.group;
712637 serviceConfig.Type = "forking";
713− serviceConfig.PIDFile = "${mainCfg.stateDir}/httpd.pid";
638+ serviceConfig.PIDFile = "${runtimeDir}/httpd.pid";
714639 serviceConfig.Restart = "always";
715640 serviceConfig.RestartSec = "5s";
641+ serviceConfig.RuntimeDirectory = "httpd httpd/runtime";
642+ serviceConfig.RuntimeDirectoryMode = "0750";
716643 };
717644
718645 };
nixos/modules/services/web-servers/apache-httpd/per-server-options.nix−6
@@ -133,12 +133,6 @@ with lib;
133133 '';
134134 };
135135
136− extraSubservices = mkOption {
137− type = types.listOf types.unspecified;
138− default = [];
139− description = "Extra subservices to enable in the webserver.";
140− };
141−
142136 enableUserDir = mkOption {
143137 type = types.bool;
144138 default = false;
nixos/modules/services/web-servers/hitch/default.nix+4−1
@@ -102,7 +102,10 @@ with lib;
102102
103103 environment.systemPackages = [ pkgs.hitch ];
104104
105− users.users.hitch.group = "hitch";
105+ users.users.hitch = {
106+ group = "hitch";
107+ isSystemUser = true;
108+ };
106109 users.groups.hitch = {};
107110 };
108111}
nixos/modules/services/web-servers/nginx/location-options.nix+1−2
@@ -1,4 +1,4 @@
1−# This file defines the options that can be used both for the Apache
1+# This file defines the options that can be used both for the Nginx
22# main server configuration, and for the virtual hosts. (The latter
33# has additional options that affect the web server as a whole, like
44# the user/group to run under.)
@@ -92,4 +92,3 @@ with lib;
9292 };
9393 };
9494}
95−
nixos/modules/services/web-servers/nginx/vhost-options.nix+1−1
@@ -1,4 +1,4 @@
1−# This file defines the options that can be used both for the Apache
1+# This file defines the options that can be used both for the Nginx
22# main server configuration, and for the virtual hosts. (The latter
33# has additional options that affect the web server as a whole, like
44# the user/group to run under.)
nixos/modules/services/web-servers/phpfpm/default.nix+2−3
@@ -31,7 +31,7 @@ let
3131 '';
3232 passAsFile = [ "nixDefaults" "phpOptions" ];
3333 } ''
34− cat $phpPackage/etc/php.ini $nixDefaultsPath $phpOptionsPath > $out
34+ cat ${poolOpts.phpPackage}/etc/php.ini $nixDefaultsPath $phpOptionsPath > $out
3535 '';
3636
3737 poolOpts = { name, ... }:
@@ -69,8 +69,6 @@ let
6969
7070 phpOptions = mkOption {
7171 type = types.lines;
72− default = cfg.phpOptions;
73− defaultText = "config.services.phpfpm.phpOptions";
7472 description = ''
7573 "Options appended to the PHP configuration file <filename>php.ini</filename> used for this PHP-FPM pool."
7674 '';
@@ -137,6 +135,7 @@ let
137135 config = {
138136 socket = if poolOpts.listen == "" then "${runtimeDir}/${name}.sock" else poolOpts.listen;
139137 group = mkDefault poolOpts.user;
138+ phpOptions = mkBefore cfg.phpOptions;
140139
141140 settings = mapAttrs (name: mkDefault){
142141 listen = poolOpts.socket;
nixos/modules/services/web-servers/traefik.nix+1
@@ -117,6 +117,7 @@ in {
117117 group = "traefik";
118118 home = cfg.dataDir;
119119 createHome = true;
120+ isSystemUser = true;
120121 };
121122
122123 users.groups.traefik = {};
nixos/modules/services/web-servers/ttyd.nixnew file+196
@@ -0,0 +1,196 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.services.ttyd;
8+
9+ # Command line arguments for the ttyd daemon
10+ args = [ "--port" (toString cfg.port) ]
11+ ++ optionals (cfg.socket != null) [ "--interface" cfg.socket ]
12+ ++ optionals (cfg.interface != null) [ "--interface" cfg.interface ]
13+ ++ [ "--signal" (toString cfg.signal) ]
14+ ++ (concatLists (mapAttrsToList (_k: _v: [ "--client-option" "${_k}=${_v}" ]) cfg.clientOptions))
15+ ++ [ "--terminal-type" cfg.terminalType ]
16+ ++ optionals cfg.checkOrigin [ "--check-origin" ]
17+ ++ [ "--max-clients" (toString cfg.maxClients) ]
18+ ++ optionals (cfg.indexFile != null) [ "--index" cfg.indexFile ]
19+ ++ optionals cfg.enableIPv6 [ "--ipv6" ]
20+ ++ optionals cfg.enableSSL [ "--ssl-cert" cfg.certFile
21+ "--ssl-key" cfg.keyFile
22+ "--ssl-ca" cfg.caFile ]
23+ ++ [ "--debug" (toString cfg.logLevel) ];
24+
25+in
26+
27+{
28+
29+ ###### interface
30+
31+ options = {
32+ services.ttyd = {
33+ enable = mkEnableOption "ttyd daemon";
34+
35+ port = mkOption {
36+ type = types.int;
37+ default = 7681;
38+ description = "Port to listen on (use 0 for random port)";
39+ };
40+
41+ socket = mkOption {
42+ type = types.nullOr types.path;
43+ default = null;
44+ example = "/var/run/ttyd.sock";
45+ description = "UNIX domain socket path to bind.";
46+ };
47+
48+ interface = mkOption {
49+ type = types.nullOr types.str;
50+ default = null;
51+ example = "eth0";
52+ description = "Network interface to bind.";
53+ };
54+
55+ username = mkOption {
56+ type = types.nullOr types.str;
57+ default = null;
58+ description = "Username for basic authentication.";
59+ };
60+
61+ passwordFile = mkOption {
62+ type = types.nullOr types.path;
63+ default = null;
64+ apply = value: if value == null then null else toString value;
65+ description = ''
66+ File containing the password to use for basic authentication.
67+ For insecurely putting the password in the globally readable store use
68+ <literal>pkgs.writeText "ttydpw" "MyPassword"</literal>.
69+ '';
70+ };
71+
72+ signal = mkOption {
73+ type = types.ints.u8;
74+ default = 1;
75+ description = "Signal to send to the command on session close.";
76+ };
77+
78+ clientOptions = mkOption {
79+ type = types.attrsOf types.str;
80+ default = {};
81+ example = literalExample ''{
82+ fontSize = "16";
83+ fontFamily = "Fira Code";
84+
85+ }'';
86+ description = ''
87+ Attribute set of client options for xtermjs.
88+ <link xlink:href="https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/"/>
89+ '';
90+ };
91+
92+ terminalType = mkOption {
93+ type = types.str;
94+ default = "xterm-256color";
95+ description = "Terminal type to report.";
96+ };
97+
98+ checkOrigin = mkOption {
99+ type = types.bool;
100+ default = false;
101+ description = "Whether to allow a websocket connection from a different origin.";
102+ };
103+
104+ maxClients = mkOption {
105+ type = types.int;
106+ default = 0;
107+ description = "Maximum clients to support (0, no limit)";
108+ };
109+
110+ indexFile = mkOption {
111+ type = types.nullOr types.path;
112+ default = null;
113+ description = "Custom index.html path";
114+ };
115+
116+ enableIPv6 = mkOption {
117+ type = types.bool;
118+ default = false;
119+ description = "Whether or not to enable IPv6 support.";
120+ };
121+
122+ enableSSL = mkOption {
123+ type = types.bool;
124+ default = false;
125+ description = "Whether or not to enable SSL (https) support.";
126+ };
127+
128+ certFile = mkOption {
129+ type = types.nullOr types.path;
130+ default = null;
131+ description = "SSL certificate file path.";
132+ };
133+
134+ keyFile = mkOption {
135+ type = types.nullOr types.path;
136+ default = null;
137+ apply = value: if value == null then null else toString value;
138+ description = ''
139+ SSL key file path.
140+ For insecurely putting the keyFile in the globally readable store use
141+ <literal>pkgs.writeText "ttydKeyFile" "SSLKEY"</literal>.
142+ '';
143+ };
144+
145+ caFile = mkOption {
146+ type = types.nullOr types.path;
147+ default = null;
148+ description = "SSL CA file path for client certificate verification.";
149+ };
150+
151+ logLevel = mkOption {
152+ type = types.int;
153+ default = 7;
154+ description = "Set log level.";
155+ };
156+ };
157+ };
158+
159+ ###### implementation
160+
161+ config = mkIf cfg.enable {
162+
163+ assertions =
164+ [ { assertion = cfg.enableSSL
165+ -> cfg.certFile != null && cfg.keyFile != null && cfg.caFile != null;
166+ message = "SSL is enabled for ttyd, but no certFile, keyFile or caFile has been specefied."; }
167+ { assertion = ! (cfg.interface != null && cfg.socket != null);
168+ message = "Cannot set both interface and socket for ttyd."; }
169+ { assertion = (cfg.username != null) == (cfg.passwordFile != null);
170+ message = "Need to set both username and passwordFile for ttyd"; }
171+ ];
172+
173+ systemd.services.ttyd = {
174+ description = "ttyd Web Server Daemon";
175+
176+ wantedBy = [ "multi-user.target" ];
177+
178+ serviceConfig = {
179+ # Runs login which needs to be run as root
180+ # login: Cannot possibly work without effective root
181+ User = "root";
182+ };
183+
184+ script = if cfg.passwordFile != null then ''
185+ PASSWORD=$(cat ${escapeShellArg cfg.passwordFile})
186+ ${pkgs.ttyd}/bin/ttyd ${lib.escapeShellArgs args} \
187+ --credential ${escapeShellArg cfg.username}:"$PASSWORD" \
188+ ${pkgs.shadow}/bin/login
189+ ''
190+ else ''
191+ ${pkgs.ttyd}/bin/ttyd ${lib.escapeShellArgs args} \
192+ ${pkgs.shadow}/bin/login
193+ '';
194+ };
195+ };
196+}
nixos/modules/services/web-servers/unit/default.nix+1
@@ -116,6 +116,7 @@ in {
116116 users.users = optionalAttrs (cfg.user == "unit") (singleton {
117117 name = "unit";
118118 group = cfg.group;
119+ isSystemUser = true;
119120 });
120121
121122 users.groups = optionalAttrs (cfg.group == "unit") (singleton {
nixos/modules/services/web-servers/varnish/default.nix+3−3
@@ -15,8 +15,8 @@ in
1515
1616 package = mkOption {
1717 type = types.package;
18− default = pkgs.varnish5;
19− defaultText = "pkgs.varnish5";
18+ default = pkgs.varnish;
19+ defaultText = "pkgs.varnish";
2020 description = ''
2121 The package to use
2222 '';
@@ -48,7 +48,7 @@ in
4848 extraModules = mkOption {
4949 type = types.listOf types.package;
5050 default = [];
51− example = literalExample "[ pkgs.varnish5Packages.geoip ]";
51+ example = literalExample "[ pkgs.varnishPackages.geoip ]";
5252 description = "
5353 Varnish modules (except 'std').
5454 ";
nixos/modules/services/x11/desktop-managers/gnome3.nix+33−4
@@ -180,14 +180,17 @@ in
180180 wmCommand = "${pkgs.gnome3.metacity}/bin/metacity";
181181 } ++ cfg.flashback.customSessions);
182182
183− systemd.packages = with pkgs.gnome3; [
184− gnome-flashback
185− ];
186−
187183 security.pam.services.gnome-screensaver = {
188184 enableGnomeKeyring = true;
189185 };
190186
187+ systemd.packages = with pkgs.gnome3; [
188+ gnome-flashback
189+ ] ++ (map
190+ (wm: gnome-flashback.mkSystemdTargetForWm {
191+ inherit (wm) wmName;
192+ }) cfg.flashback.customSessions);
193+
191194 services.dbus.packages = [
192195 pkgs.gnome3.gnome-screensaver
193196 ];
@@ -221,6 +224,12 @@ in
221224
222225 services.xserver.updateDbusEnvironment = true;
223226
227+ # gnome has a custom alert theme but it still
228+ # inherits from the freedesktop theme.
229+ environment.systemPackages = with pkgs; [
230+ sound-theme-freedesktop
231+ ];
232+
224233 # Needed for themes and backgrounds
225234 environment.pathsToLink = [
226235 "/share" # TODO: https://github.com/NixOS/nixpkgs/issues/47173
@@ -269,6 +278,26 @@ in
269278 source-sans-pro
270279 ];
271280
281+ ## Enable soft realtime scheduling, only supported on wayland ##
282+
283+ security.wrappers.".gnome-shell-wrapped" = {
284+ source = "${pkgs.gnome3.gnome-shell}/bin/.gnome-shell-wrapped";
285+ capabilities = "cap_sys_nice=ep";
286+ };
287+
288+ systemd.user.services.gnome-shell-wayland = let
289+ gnomeShellRT = with pkgs.gnome3; pkgs.runCommand "gnome-shell-rt" {} ''
290+ mkdir -p $out/bin/
291+ cp ${gnome-shell}/bin/gnome-shell $out/bin
292+ sed -i "s@${gnome-shell}/bin/@${config.security.wrapperDir}/@" $out/bin/gnome-shell
293+ '';
294+ in {
295+ # Note we need to clear ExecStart before overriding it
296+ serviceConfig.ExecStart = ["" "${gnomeShellRT}/bin/gnome-shell"];
297+ # Do not use the default environment, it provides a broken PATH
298+ environment = mkForce {};
299+ };
300+
272301 # Adapt from https://gitlab.gnome.org/GNOME/gnome-build-meta/blob/gnome-3-32/elements/core/meta-gnome-core-shell.bst
273302 environment.systemPackages = with pkgs.gnome3; [
274303 adwaita-icon-theme
nixos/modules/services/x11/desktop-managers/plasma5.nix−1
@@ -232,7 +232,6 @@ in
232232 security.pam.services.kdm.enableKwallet = true;
233233 security.pam.services.lightdm.enableKwallet = true;
234234 security.pam.services.sddm.enableKwallet = true;
235− security.pam.services.slim.enableKwallet = true;
236235
237236 xdg.portal.enable = true;
238237 xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
nixos/modules/services/x11/display-managers/default.nix+5−7
@@ -1,9 +1,9 @@
11# This module declares the options to define a *display manager*, the
2−# program responsible for handling X logins (such as xdm, gdb, or
3−# SLiM). The display manager allows the user to select a *session
4−# type*. When the user logs in, the display manager starts the
2+# program responsible for handling X logins (such as LightDM, GDM, or SDDM).
3+# The display manager allows the user to select a *session
4+# type*. When the user logs in, the display manager starts the
55# *session script* ("xsession" below) to launch the selected session
6−# type. The session type defines two things: the *desktop manager*
6+# type. The session type defines two things: the *desktop manager*
77# (e.g., KDE, Gnome or a plain xterm), and optionally the *window
88# manager* (e.g. kwin or twm).
99
@@ -196,7 +196,6 @@ let
196196 fi
197197 '') cfg.displayManager.extraSessionFilePackages}
198198
199−
200199 ${concatMapStrings (pkg: ''
201200 if test -d ${pkg}/share/wayland-sessions; then
202201 mkdir -p "$out/share/wayland-sessions"
@@ -322,7 +321,7 @@ in
322321 execCmd = mkOption {
323322 type = types.str;
324323 example = literalExample ''
325− "''${pkgs.slim}/bin/slim"
324+ "''${pkgs.lightdm}/bin/lightdm"
326325 '';
327326 description = "Command to start the display manager.";
328327 };
@@ -330,7 +329,6 @@ in
330329 environment = mkOption {
331330 type = types.attrsOf types.unspecified;
332331 default = {};
333− example = { SLIM_CFGFILE = "/etc/slim.conf"; };
334332 description = "Additional environment variables needed by the display manager.";
335333 };
336334
nixos/modules/services/x11/display-managers/sddm.nix+1−1
@@ -14,7 +14,7 @@ let
1414 xserverWrapper = pkgs.writeScript "xserver-wrapper" ''
1515 #!/bin/sh
1616 ${concatMapStrings (n: "export ${n}=\"${getAttr n xEnv}\"\n") (attrNames xEnv)}
17− exec systemd-cat ${dmcfg.xserverBin} ${toString dmcfg.xserverArgs} "$@"
17+ exec systemd-cat -t xserver-wrapper ${dmcfg.xserverBin} ${toString dmcfg.xserverArgs} "$@"
1818 '';
1919
2020 Xsetup = pkgs.writeScript "Xsetup" ''
nixos/modules/services/x11/display-managers/slim.nix+10−150
@@ -2,155 +2,15 @@
22
33with lib;
44
5−let
6−
7− dmcfg = config.services.xserver.displayManager;
8−
9− cfg = dmcfg.slim;
10−
11− slimConfig = pkgs.writeText "slim.cfg"
12− ''
13− xauth_path ${dmcfg.xauthBin}
14− default_xserver ${dmcfg.xserverBin}
15− xserver_arguments ${toString dmcfg.xserverArgs}
16− sessiondir ${dmcfg.session.desktops}/share/xsessions
17− login_cmd exec ${pkgs.runtimeShell} ${dmcfg.session.wrapper} "%session"
18− halt_cmd ${config.systemd.package}/sbin/shutdown -h now
19− reboot_cmd ${config.systemd.package}/sbin/shutdown -r now
20− logfile /dev/stderr
21− ${optionalString (cfg.defaultUser != null) ("default_user " + cfg.defaultUser)}
22− ${optionalString (cfg.defaultUser != null) ("focus_password yes")}
23− ${optionalString cfg.autoLogin "auto_login yes"}
24− ${optionalString (cfg.consoleCmd != null) "console_cmd ${cfg.consoleCmd}"}
25− ${cfg.extraConfig}
26− '';
27−
28− # Unpack the SLiM theme, or use the default.
29− slimThemesDir =
30− let
31− unpackedTheme = pkgs.runCommand "slim-theme" { preferLocalBuild = true; }
32− ''
33− mkdir -p $out
34− cd $out
35− unpackFile ${cfg.theme}
36− ln -s * default
37− '';
38− in if cfg.theme == null then "${pkgs.slim}/share/slim/themes" else unpackedTheme;
39−
40−in
41−
425{
43−
44− ###### interface
45−
46− options = {
47−
48− services.xserver.displayManager.slim = {
49−
50− enable = mkOption {
51− type = types.bool;
52− default = false;
53− description = ''
54− Whether to enable SLiM as the display manager.
55− '';
56− };
57−
58− theme = mkOption {
59− type = types.nullOr types.path;
60− default = pkgs.fetchurl {
61− url = "https://github.com/jagajaga/nixos-slim-theme/archive/2.0.tar.gz";
62− sha256 = "0lldizhigx7bjhxkipii87y432hlf5wdvamnfxrryf9z7zkfypc8";
63− };
64− defaultText = ''pkgs.fetchurl {
65− url = "https://github.com/jagajaga/nixos-slim-theme/archive/2.0.tar.gz";
66− sha256 = "0lldizhigx7bjhxkipii87y432hlf5wdvamnfxrryf9z7zkfypc8";
67− }'';
68− example = literalExample ''
69− pkgs.fetchurl {
70− url = "mirror://sourceforge/slim.berlios/slim-wave.tar.gz";
71− sha256 = "0ndr419i5myzcylvxb89m9grl2xyq6fbnyc3lkd711mzlmnnfxdy";
72− }
73− '';
74− description = ''
75− The theme for the SLiM login manager. If not specified, SLiM's
76− default theme is used. See <link
77− xlink:href='http://slim.berlios.de/themes01.php'/> for a
78− collection of themes. TODO: berlios shut down.
79− '';
80− };
81−
82− defaultUser = mkOption {
83− type = types.nullOr types.str;
84− default = null;
85− example = "login";
86− description = ''
87− The default user to load. If you put a username here you
88− get it automatically loaded into the username field, and
89− the focus is placed on the password.
90− '';
91− };
92−
93− autoLogin = mkOption {
94− type = types.bool;
95− default = false;
96− description = ''
97− Automatically log in as the default user.
98− '';
99− };
100−
101− extraConfig = mkOption {
102− type = types.lines;
103− default = "";
104− description = ''
105− Extra configuration options for SLiM login manager. Do not
106− add options that can be configured directly.
107− '';
108− };
109−
110− consoleCmd = mkOption {
111− type = types.nullOr types.str;
112− default = ''
113− ${pkgs.xterm}/bin/xterm -C -fg white -bg black +sb -T "Console login" -e ${pkgs.shadow}/bin/login
114− '';
115− defaultText = ''
116− ''${pkgs.xterm}/bin/xterm -C -fg white -bg black +sb -T "Console login" -e ''${pkgs.shadow}/bin/login
117− '';
118− description = ''
119− The command to run when "console" is given as the username.
120− '';
121− };
122− };
123−
124− };
125−
126−
127− ###### implementation
128−
129− config = mkIf cfg.enable {
130−
131− services.xserver.displayManager.job =
132− { environment =
133− { SLIM_CFGFILE = slimConfig;
134− SLIM_THEMESDIR = slimThemesDir;
135− };
136− execCmd = "exec ${pkgs.slim}/bin/slim";
137− };
138−
139− services.xserver.displayManager.sessionCommands =
140− ''
141− # Export the config/themes for slimlock.
142− export SLIM_THEMESDIR=${slimThemesDir}
143− '';
144−
145− # Allow null passwords so that the user can login as root on the
146− # installation CD.
147− security.pam.services.slim = { allowNullPassword = true; startSession = true; };
148−
149− # Allow slimlock to work.
150− security.pam.services.slimlock = {};
151−
152− environment.systemPackages = [ pkgs.slim ];
153−
154− };
155−
6+ # added 2019-11-11
7+ imports = [
8+ (mkRemovedOptionModule [ "services" "xserver" "displayManager" "slim" ] ''
9+ The SLIM project is abandoned and their last release was in 2013.
10+ Because of this it poses a security risk to your system.
11+ Other issues include it not fully supporting systemd and logind sessions.
12+ Please use a different display manager such as LightDM, SDDM, or GDM.
13+ You can also use the startx module which uses Xinitrc.
14+ '')
15+ ];
15616}
nixos/modules/services/x11/hardware/digimend.nixnew file+43
@@ -0,0 +1,43 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.services.xserver.digimend;
8+
9+ pkg = config.boot.kernelPackages.digimend;
10+
11+in
12+
13+{
14+
15+ options = {
16+
17+ services.xserver.digimend = {
18+
19+ enable = mkOption {
20+ default = false;
21+ description = ''
22+ Whether to enable the digimend drivers for Huion/XP-Pen/etc. tablets.
23+ '';
24+ };
25+
26+ };
27+
28+ };
29+
30+
31+ config = mkIf cfg.enable {
32+
33+ # digimend drivers use xsetwacom and wacom X11 drivers
34+ services.xserver.wacom.enable = true;
35+
36+ boot.extraModulePackages = [ pkg ];
37+
38+ environment.etc."X11/xorg.conf.d/50-digimend.conf".source =
39+ "${pkg}/usr/share/X11/xorg.conf.d/50-digimend.conf";
40+
41+ };
42+
43+}
nixos/modules/services/x11/hardware/libinput.nix+1−1
@@ -122,7 +122,7 @@ in {
122122 description =
123123 ''
124124 Specify the scrolling method: <literal>twofinger</literal>, <literal>edge</literal>,
125− or <literal>none</literal>
125+ <literal>button</literal>, or <literal>none</literal>
126126 '';
127127 };
128128
nixos/modules/services/x11/window-managers/xmonad.nix+1−1
@@ -86,7 +86,7 @@ in
8686 ${xmonadBin}
8787 waitPID=$!
8888 '' else ''
89− ${xmonad}/bin/xmonad &
89+ systemd-cat -t xmonad ${xmonad}/bin/xmonad &
9090 waitPID=$!
9191 '';
9292 }];
nixos/modules/services/x11/xserver.nix−1
@@ -557,7 +557,6 @@ in
557557 default = !( dmconf.auto.enable
558558 || dmconf.gdm.enable
559559 || dmconf.sddm.enable
560− || dmconf.slim.enable
561560 || dmconf.xpra.enable );
562561 in mkIf (default) true;
563562
nixos/modules/system/boot/networkd.nix+2−2
@@ -10,7 +10,7 @@ let
1010
1111 checkLink = checkUnitConfig "Link" [
1212 (assertOnlyFields [
13− "Description" "Alias" "MACAddressPolicy" "MACAddress" "NamePolicy" "OriginalName"
13+ "Description" "Alias" "MACAddressPolicy" "MACAddress" "NamePolicy" "Name" "OriginalName"
1414 "MTUBytes" "BitsPerSecond" "Duplex" "AutoNegotiation" "WakeOnLan" "Port"
1515 "TCPSegmentationOffload" "TCP6SegmentationOffload" "GenericSegmentationOffload"
1616 "GenericReceiveOffload" "LargeReceiveOffload" "RxChannels" "TxChannels"
@@ -187,7 +187,7 @@ let
187187 # Note: For DHCP the values both, none, v4, v6 are deprecated
188188 (assertValueOneOf "DHCP" ["yes" "no" "ipv4" "ipv6" "both" "none" "v4" "v6"])
189189 (assertValueOneOf "DHCPServer" boolValues)
190− (assertValueOneOf "LinkLocalAddressing" ["yes" "no" "ipv4" "ipv6"])
190+ (assertValueOneOf "LinkLocalAddressing" ["yes" "no" "ipv4" "ipv6" "ipv4-fallback" "fallback"])
191191 (assertValueOneOf "IPv4LLRoute" boolValues)
192192 (assertValueOneOf "LLMNR" ["yes" "resolve" "no"])
193193 (assertValueOneOf "MulticastDNS" ["yes" "resolve" "no"])
nixos/modules/system/boot/plymouth.nix+10
@@ -25,6 +25,7 @@ let
2525 [Daemon]
2626 ShowDelay=0
2727 Theme=${cfg.theme}
28+ ${cfg.extraConfig}
2829 '';
2930
3031in
@@ -65,6 +66,15 @@ in
6566 '';
6667 };
6768
69+ extraConfig = mkOption {
70+ type = types.lines;
71+ default = "";
72+ description = ''
73+ Literal string to append to <literal>configFile</literal>
74+ and the config file generated by the plymouth module.
75+ '';
76+ };
77+
6878 };
6979
7080 };
nixos/modules/system/boot/systemd-unit-options.nix+1−1
@@ -24,7 +24,7 @@ in rec {
2424 in
2525 if isList (head defs'')
2626 then concatLists defs''
27− else mergeOneOption loc defs';
27+ else mergeEqualOption loc defs';
2828 };
2929
3030 sharedOptions = {
nixos/modules/tasks/network-interfaces-systemd.nix+1−10
@@ -31,7 +31,7 @@ in
3131 message = "networking.defaultGatewayWindowSize is not supported by networkd.";
3232 } {
3333 assertion = cfg.vswitches == {};
34− message = "networking.vswichtes are not supported by networkd.";
34+ message = "networking.vswitches are not supported by networkd.";
3535 } {
3636 assertion = cfg.defaultGateway == null || cfg.defaultGateway.interface == null;
3737 message = "networking.defaultGateway.interface is not supported by networkd.";
@@ -76,15 +76,6 @@ in
7676 };
7777 in mkMerge [ {
7878 enable = true;
79− networks."99-main" = (genericNetwork mkDefault) // {
80− # We keep the "broken" behaviour of applying this to all interfaces.
81− # In general we want to get rid of this workaround but there hasn't
82− # been any work on that.
83− # See the following issues for details:
84− # - https://github.com/NixOS/nixpkgs/issues/18962
85− # - https://github.com/NixOS/nixpkgs/issues/61629
86− matchConfig = mkDefault { Name = "*"; };
87− };
8879 }
8980 (mkMerge (forEach interfaces (i: {
9081 netdevs = mkIf i.virtual ({
nixos/modules/testing/test-instrumentation.nix+1−1
@@ -15,7 +15,7 @@ with import ../../lib/qemu-flags.nix { inherit pkgs; };
1515 #
1616 # One particular example are the boot tests where we want instrumentation
1717 # within the images but not other stuff like setting up 9p filesystems.
18− options.virtualisation.qemu.program = mkOption { type = types.path; };
18+ options.virtualisation.qemu = { };
1919
2020 config = {
2121
nixos/modules/virtualisation/amazon-image.nix+3
@@ -135,6 +135,9 @@ in
135135 services.openssh.enable = true;
136136 services.openssh.permitRootLogin = "prohibit-password";
137137
138+ # Creates symlinks for block device names.
139+ services.udev.packages = [ pkgs.ec2-utils ];
140+
138141 # Force getting the hostname from EC2.
139142 networking.hostName = mkDefault "";
140143
nixos/modules/virtualisation/ec2-amis.nix+17−1
@@ -291,5 +291,21 @@ let self = {
291291 "19.03".sa-east-1.hvm-ebs = "ami-0c6a43c6e0ad1f4e2";
292292 "19.03".ap-south-1.hvm-ebs = "ami-0303deb1b5890f878";
293293
294− latest = self."19.03";
294+ # 19.09.981.205691b7cbe
295+ "19.09".eu-west-1.hvm-ebs = "ami-0ebd3156e21e9642f";
296+ "19.09".eu-west-2.hvm-ebs = "ami-02a2b5480a79084b7";
297+ "19.09".eu-west-3.hvm-ebs = "ami-09aa175c7588734f7";
298+ "19.09".eu-central-1.hvm-ebs = "ami-00a7fafd7e237a330";
299+ "19.09".us-east-1.hvm-ebs = "ami-00a8eeaf232a74f84";
300+ "19.09".us-east-2.hvm-ebs = "ami-093efd3a57a1e03a8";
301+ "19.09".us-west-1.hvm-ebs = "ami-0913e9a2b677fac30";
302+ "19.09".us-west-2.hvm-ebs = "ami-02d9a19f77b47882a";
303+ "19.09".ca-central-1.hvm-ebs = "ami-0627dd3f7b3627a29";
304+ "19.09".ap-southeast-1.hvm-ebs = "ami-083614e4d08f2164d";
305+ "19.09".ap-southeast-2.hvm-ebs = "ami-0048c704185ded6dc";
306+ "19.09".ap-northeast-1.hvm-ebs = "ami-0329e7fc2d7f60bd0";
307+ "19.09".ap-northeast-2.hvm-ebs = "ami-03d4ae7d0b5fc364f";
308+ "19.09".ap-south-1.hvm-ebs = "ami-0b599690b35aeef23";
309+
310+ latest = self."19.09";
295311}; in self
nixos/modules/virtualisation/libvirtd.nix+2−1
@@ -146,7 +146,8 @@ in {
146146 # this file is expected in /etc/qemu and not sysconfdir (/var/lib)
147147 etc."qemu/bridge.conf".text = lib.concatMapStringsSep "\n" (e:
148148 "allow ${e}") cfg.allowedBridges;
149− systemPackages = with pkgs; [ libvirt libressl.nc cfg.qemuPackage ];
149+ systemPackages = with pkgs; [ libvirt libressl.nc iptables cfg.qemuPackage ];
150+ etc.ethertypes.source = "${pkgs.iptables}/etc/ethertypes";
150151 };
151152
152153 boot.kernelModules = [ "tun" ];
nixos/modules/virtualisation/qemu-vm.nix+99−36
@@ -23,24 +23,56 @@ let
2323
2424 cfg = config.virtualisation;
2525
26− qemuGraphics = lib.optionalString (!cfg.graphics) "-nographic";
27−
2826 consoles = lib.concatMapStringsSep " " (c: "console=${c}") cfg.qemu.consoles;
2927
30− # XXX: This is very ugly and in the future we really should use attribute
31− # sets to build ALL of the QEMU flags instead of this mixed mess of Nix
32− # expressions and shell script stuff.
33− mkDiskIfaceDriveFlag = idx: driveArgs: let
34− inherit (cfg.qemu) diskInterface;
35− # The drive identifier created by incrementing the index by one using the
36− # shell.
37− drvId = "drive$((${idx} + 1))";
38− # NOTE: DO NOT shell escape, because this may contain shell variables.
39− commonArgs = "index=${idx},id=${drvId},${driveArgs}";
40− isSCSI = diskInterface == "scsi";
41− devArgs = "${diskInterface}-hd,drive=${drvId}";
42− args = "-drive ${commonArgs},if=none -device lsi53c895a -device ${devArgs}";
43− in if isSCSI then args else "-drive ${commonArgs},if=${diskInterface}";
28+ driveOpts = { ... }: {
29+
30+ options = {
31+
32+ file = mkOption {
33+ type = types.str;
34+ description = "The file image used for this drive.";
35+ };
36+
37+ driveExtraOpts = mkOption {
38+ type = types.attrsOf types.str;
39+ default = {};
40+ description = "Extra options passed to drive flag.";
41+ };
42+
43+ deviceExtraOpts = mkOption {
44+ type = types.attrsOf types.str;
45+ default = {};
46+ description = "Extra options passed to device flag.";
47+ };
48+
49+ };
50+
51+ };
52+
53+ driveCmdline = idx: { file, driveExtraOpts, deviceExtraOpts, ... }:
54+ let
55+ drvId = "drive${toString idx}";
56+ mkKeyValue = generators.mkKeyValueDefault {} "=";
57+ mkOpts = opts: concatStringsSep "," (mapAttrsToList mkKeyValue opts);
58+ driveOpts = mkOpts (driveExtraOpts // {
59+ index = idx;
60+ id = drvId;
61+ "if" = "none";
62+ inherit file;
63+ });
64+ deviceOpts = mkOpts (deviceExtraOpts // {
65+ drive = drvId;
66+ });
67+ device =
68+ if cfg.qemu.diskInterface == "scsi" then
69+ "-device lsi53c895a -device scsi-hd,${deviceOpts}"
70+ else
71+ "-device virtio-blk-pci,${deviceOpts}";
72+ in
73+ "-drive ${driveOpts} ${device}";
74+
75+ drivesCmdLine = drives: concatStringsSep " " (imap1 driveCmdline drives);
4476
4577 # Shell script to start the VM.
4678 startVM =
@@ -77,13 +109,11 @@ let
77109 ''}
78110
79111 cd $TMPDIR
80− idx=2
81− extraDisks=""
112+ idx=0
82113 ${flip concatMapStrings cfg.emptyDiskImages (size: ''
83114 if ! test -e "empty$idx.qcow2"; then
84115 ${qemu}/bin/qemu-img create -f qcow2 "empty$idx.qcow2" "${toString size}M"
85116 fi
86− extraDisks="$extraDisks ${mkDiskIfaceDriveFlag "$idx" "file=$(pwd)/empty$idx.qcow2,werror=report"}"
87117 idx=$((idx + 1))
88118 '')}
89119
@@ -97,21 +127,7 @@ let
97127 -virtfs local,path=/nix/store,security_model=none,mount_tag=store \
98128 -virtfs local,path=$TMPDIR/xchg,security_model=none,mount_tag=xchg \
99129 -virtfs local,path=''${SHARED_DIR:-$TMPDIR/xchg},security_model=none,mount_tag=shared \
100− ${if cfg.useBootLoader then ''
101− ${mkDiskIfaceDriveFlag "0" "file=$NIX_DISK_IMAGE,cache=writeback,werror=report"} \
102− ${mkDiskIfaceDriveFlag "1" "file=$TMPDIR/disk.img,media=disk"} \
103− ${if cfg.useEFIBoot then ''
104− -pflash $TMPDIR/bios.bin \
105− '' else ''
106− ''}
107− '' else ''
108− ${mkDiskIfaceDriveFlag "0" "file=$NIX_DISK_IMAGE,cache=writeback,werror=report"} \
109− -kernel ${config.system.build.toplevel}/kernel \
110− -initrd ${config.system.build.toplevel}/initrd \
111− -append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS" \
112− ''} \
113− $extraDisks \
114− ${qemuGraphics} \
130+ ${drivesCmdLine config.virtualisation.qemu.drives} \
115131 ${toString config.virtualisation.qemu.options} \
116132 $QEMU_OPTS \
117133 "$@"
@@ -367,6 +383,12 @@ in
367383 '';
368384 };
369385
386+ drives =
387+ mkOption {
388+ type = types.listOf (types.submodule driveOpts);
389+ description = "Drives passed to qemu.";
390+ };
391+
370392 diskInterface =
371393 mkOption {
372394 default = "virtio";
@@ -476,8 +498,49 @@ in
476498
477499 # FIXME: Consolidate this one day.
478500 virtualisation.qemu.options = mkMerge [
479− (mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0" ])
480− (mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" ])
501+ (mkIf (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [
502+ "-vga std" "-usb" "-device usb-tablet,bus=usb-bus.0"
503+ ])
504+ (mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [
505+ "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet"
506+ ])
507+ (mkIf (!cfg.useBootLoader) [
508+ "-kernel ${config.system.build.toplevel}/kernel"
509+ "-initrd ${config.system.build.toplevel}/initrd"
510+ ''-append "$(cat ${config.system.build.toplevel}/kernel-params) init=${config.system.build.toplevel}/init regInfo=${regInfo}/registration ${consoles} $QEMU_KERNEL_PARAMS"''
511+ ])
512+ (mkIf cfg.useEFIBoot [
513+ "-pflash $TMPDIR/bios.bin"
514+ ])
515+ (mkIf (!cfg.graphics) [
516+ "-nographic"
517+ ])
518+ ];
519+
520+ virtualisation.qemu.drives = mkMerge [
521+ (mkIf cfg.useBootLoader [
522+ {
523+ file = "$NIX_DISK_IMAGE";
524+ driveExtraOpts.cache = "writeback";
525+ driveExtraOpts.werror = "report";
526+ }
527+ {
528+ file = "$TMPDIR/disk.img";
529+ driveExtraOpts.media = "disk";
530+ deviceExtraOpts.bootindex = "1";
531+ }
532+ ])
533+ (mkIf (!cfg.useBootLoader) [
534+ {
535+ file = "$NIX_DISK_IMAGE";
536+ driveExtraOpts.cache = "writeback";
537+ driveExtraOpts.werror = "report";
538+ }
539+ ])
540+ (imap0 (idx: _: {
541+ file = "$(pwd)/empty${toString idx}.qcow2";
542+ driveExtraOpts.werror = "report";
543+ }) cfg.emptyDiskImages)
481544 ];
482545
483546 # Mount the host filesystem via 9P, and bind-mount the Nix store
nixos/modules/virtualisation/virtualbox-host.nix+8−1
@@ -149,5 +149,12 @@ in
149149 # Make sure NetworkManager won't assume this interface being up
150150 # means we have internet access.
151151 networking.networkmanager.unmanaged = ["vboxnet0"];
152− })]);
152+ }) (mkIf config.networking.useNetworkd {
153+ systemd.network.networks."40-vboxnet0".extraConfig = ''
154+ [Link]
155+ RequiredForOnline=no
156+ '';
157+ })
158+
159+]);
153160}
nixos/release-combined.nix−1
@@ -133,7 +133,6 @@ in rec {
133133 (all nixos.tests.proxy)
134134 (all nixos.tests.sddm.default)
135135 (all nixos.tests.simple)
136− (all nixos.tests.slim)
137136 (all nixos.tests.switchTest)
138137 (all nixos.tests.udisks2)
139138 (all nixos.tests.xfce)
nixos/tests/acme.nix+41−23
@@ -1,6 +1,6 @@
11let
22 commonConfig = ./common/letsencrypt/common.nix;
3−in import ./make-test.nix {
3+in import ./make-test-python.nix {
44 name = "acme";
55
66 nodes = rec {
@@ -12,8 +12,11 @@ in import ./make-test.nix {
1212 networking.extraHosts = ''
1313 ${config.networking.primaryIPAddress} standalone.com
1414 '';
15− security.acme.certs."standalone.com" = {
16− webroot = "/var/lib/acme/acme-challenges";
15+ security.acme = {
16+ server = "https://acme-v02.api.letsencrypt.org/dir";
17+ certs."standalone.com" = {
18+ webroot = "/var/lib/acme/acme-challenges";
19+ };
1720 };
1821 systemd.targets."acme-finished-standalone.com" = {};
1922 systemd.services."acme-standalone.com" = {
@@ -54,6 +57,8 @@ in import ./make-test.nix {
5457 '';
5558 };
5659
60+ security.acme.server = "https://acme-v02.api.letsencrypt.org/dir";
61+
5762 nesting.clone = [
5863 ({pkgs, ...}: {
5964
@@ -80,36 +85,49 @@ in import ./make-test.nix {
8085 client = commonConfig;
8186 };
8287
83− testScript = {nodes, ...}:
88+ testScript = {nodes, ...}:
8489 let
8590 newServerSystem = nodes.webserver2.config.system.build.toplevel;
8691 switchToNewServer = "${newServerSystem}/bin/switch-to-configuration test";
8792 in
88− # Note, waitForUnit does not work for oneshot services that do not have RemainAfterExit=true,
93+ # Note, wait_for_unit does not work for oneshot services that do not have RemainAfterExit=true,
8994 # this is because a oneshot goes from inactive => activating => inactive, and never
9095 # reaches the active state. To work around this, we create some mock target units which
9196 # get pulled in by the oneshot units. The target units linger after activation, and hence we
9297 # can use them to probe that a oneshot fired. It is a bit ugly, but it is the best we can do
9398 ''
94− $client->waitForUnit("default.target");
95− $letsencrypt->waitForUnit("default.target");
96− $letsencrypt->waitForUnit("boulder.service");
97−
98− subtest "can request certificate with HTTPS-01 challenge", sub {
99− $acmeStandalone->waitForUnit("default.target");
100− $acmeStandalone->succeed("systemctl start acme-standalone.com.service");
101− $acmeStandalone->waitForUnit("acme-finished-standalone.com.target");
102− };
99+ client.start()
100+ letsencrypt.start()
101+ acmeStandalone.start()
103102
104− subtest "Can request certificate for nginx service", sub {
105− $webserver->waitForUnit("acme-finished-a.example.com.target");
106− $client->succeed('curl https://a.example.com/ | grep -qF "hello world"');
107− };
103+ letsencrypt.wait_for_unit("default.target")
104+ letsencrypt.wait_for_unit("pebble.service")
108105
109− subtest "Can add another certificate for nginx service", sub {
110− $webserver->succeed("/run/current-system/fine-tune/child-1/bin/switch-to-configuration test");
111− $webserver->waitForUnit("acme-finished-b.example.com.target");
112− $client->succeed('curl https://b.example.com/ | grep -qF "hello world"');
113− };
106+ with subtest("can request certificate with HTTPS-01 challenge"):
107+ acmeStandalone.wait_for_unit("default.target")
108+ acmeStandalone.succeed("systemctl start acme-standalone.com.service")
109+ acmeStandalone.wait_for_unit("acme-finished-standalone.com.target")
110+
111+ client.wait_for_unit("default.target")
112+
113+ client.succeed("curl https://acme-v02.api.letsencrypt.org:15000/roots/0 > /tmp/ca.crt")
114+ client.succeed(
115+ "curl https://acme-v02.api.letsencrypt.org:15000/intermediate-keys/0 >> /tmp/ca.crt"
116+ )
117+
118+ with subtest("Can request certificate for nginx service"):
119+ webserver.wait_for_unit("acme-finished-a.example.com.target")
120+ client.succeed(
121+ "curl --cacert /tmp/ca.crt https://a.example.com/ | grep -qF 'hello world'"
122+ )
123+
124+ with subtest("Can add another certificate for nginx service"):
125+ webserver.succeed(
126+ "/run/current-system/fine-tune/child-1/bin/switch-to-configuration test"
127+ )
128+ webserver.wait_for_unit("acme-finished-b.example.com.target")
129+ client.succeed(
130+ "curl --cacert /tmp/ca.crt https://b.example.com/ | grep -qF 'hello world'"
131+ )
114132 '';
115133}
nixos/tests/all-tests.nix+16−17
@@ -39,7 +39,8 @@ in
3939 caddy = handleTest ./caddy.nix {};
4040 cadvisor = handleTestOn ["x86_64-linux"] ./cadvisor.nix {};
4141 cassandra = handleTest ./cassandra.nix {};
42− ceph = handleTestOn ["x86_64-linux"] ./ceph.nix {};
42+ ceph-single-node = handleTestOn ["x86_64-linux"] ./ceph-single-node.nix {};
43+ ceph-multi-node = handleTestOn ["x86_64-linux"] ./ceph-multi-node.nix {};
4344 certmgr = handleTest ./certmgr.nix {};
4445 cfssl = handleTestOn ["x86_64-linux"] ./cfssl.nix {};
4546 chromium = (handleTestOn ["x86_64-linux"] ./chromium.nix {}).stable or {};
@@ -47,7 +48,6 @@ in
4748 clickhouse = handleTest ./clickhouse.nix {};
4849 cloud-init = handleTest ./cloud-init.nix {};
4950 codimd = handleTest ./codimd.nix {};
50− colord = handleTest ./colord.nix {};
5151 containers-bridge = handleTest ./containers-bridge.nix {};
5252 containers-ephemeral = handleTest ./containers-ephemeral.nix {};
5353 containers-extra_veth = handleTest ./containers-extra_veth.nix {};
@@ -81,31 +81,26 @@ in
8181 env = handleTest ./env.nix {};
8282 etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
8383 etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {};
84+ fancontrol = handleTest ./fancontrol.nix {};
8485 ferm = handleTest ./ferm.nix {};
8586 firefox = handleTest ./firefox.nix {};
8687 firewall = handleTest ./firewall.nix {};
8788 fish = handleTest ./fish.nix {};
8889 flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {};
89− flatpak = handleTest ./flatpak.nix {};
90− flatpak-builder = handleTest ./flatpak-builder.nix {};
9190 fluentd = handleTest ./fluentd.nix {};
9291 fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {};
9392 fsck = handleTest ./fsck.nix {};
94− fwupd = handleTestOn ["x86_64-linux"] ./fwupd.nix {}; # libsmbios is unsupported on aarch64
95− gdk-pixbuf = handleTest ./gdk-pixbuf.nix {};
93+ gotify-server = handleTest ./gotify-server.nix {};
9694 gitea = handleTest ./gitea.nix {};
9795 gitlab = handleTest ./gitlab.nix {};
9896 gitolite = handleTest ./gitolite.nix {};
99− gjs = handleTest ./gjs.nix {};
100− glib-networking = handleTest ./glib-networking.nix {};
10197 glusterfs = handleTest ./glusterfs.nix {};
10298 gnome3-xorg = handleTest ./gnome3-xorg.nix {};
10399 gnome3 = handleTest ./gnome3.nix {};
104− gnome-photos = handleTest ./gnome-photos.nix {};
100+ installed-tests = pkgs.recurseIntoAttrs (handleTest ./installed-tests {});
105101 gocd-agent = handleTest ./gocd-agent.nix {};
106102 gocd-server = handleTest ./gocd-server.nix {};
107103 google-oslogin = handleTest ./google-oslogin {};
108− graphene = handleTest ./graphene.nix {};
109104 grafana = handleTest ./grafana.nix {};
110105 graphite = handleTest ./graphite.nix {};
111106 graylog = handleTest ./graylog.nix {};
@@ -132,7 +127,6 @@ in
132127 jackett = handleTest ./jackett.nix {};
133128 jellyfin = handleTest ./jellyfin.nix {};
134129 jenkins = handleTest ./jenkins.nix {};
135− jormungandr = handleTest ./jormungandr.nix {};
136130 kafka = handleTest ./kafka.nix {};
137131 kerberos = handleTest ./kerberos/default.nix {};
138132 kernel-latest = handleTest ./kernel-latest.nix {};
@@ -147,16 +141,17 @@ in
147141 latestKernel.login = handleTest ./login.nix { latestKernel = true; };
148142 ldap = handleTest ./ldap.nix {};
149143 leaps = handleTest ./leaps.nix {};
150− libgdata = handleTest ./libgdata.nix {};
151− libxmlb = handleTest ./libxmlb.nix {};
152144 lidarr = handleTest ./lidarr.nix {};
153145 lightdm = handleTest ./lightdm.nix {};
154146 limesurvey = handleTest ./limesurvey.nix {};
155147 login = handleTest ./login.nix {};
156148 loki = handleTest ./loki.nix {};
157149 #logstash = handleTest ./logstash.nix {};
150+ lorri = handleTest ./lorri/default.nix {};
151+ magnetico = handleTest ./magnetico.nix {};
158152 mailcatcher = handleTest ./mailcatcher.nix {};
159153 mathics = handleTest ./mathics.nix {};
154+ matomo = handleTest ./matomo.nix {};
160155 matrix-synapse = handleTest ./matrix-synapse.nix {};
161156 mediawiki = handleTest ./mediawiki.nix {};
162157 memcached = handleTest ./memcached.nix {};
@@ -166,6 +161,7 @@ in
166161 minio = handleTest ./minio.nix {};
167162 minidlna = handleTest ./minidlna.nix {};
168163 misc = handleTest ./misc.nix {};
164+ moinmoin = handleTest ./moinmoin.nix {};
169165 mongodb = handleTest ./mongodb.nix {};
170166 moodle = handleTest ./moodle.nix {};
171167 morty = handleTest ./morty.nix {};
@@ -201,16 +197,17 @@ in
201197 novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
202198 nsd = handleTest ./nsd.nix {};
203199 nzbget = handleTest ./nzbget.nix {};
200+ openarena = handleTest ./openarena.nix {};
204201 openldap = handleTest ./openldap.nix {};
205202 opensmtpd = handleTest ./opensmtpd.nix {};
206203 openssh = handleTest ./openssh.nix {};
207204 # openstack-image-userdata doesn't work in a sandbox as the simulated openstack instance needs network access
208205 #openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {};
209206 openstack-image-metadata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).metadata or {};
207+ orangefs = handleTest ./orangefs.nix {};
210208 os-prober = handleTestOn ["x86_64-linux"] ./os-prober.nix {};
211209 osquery = handleTest ./osquery.nix {};
212210 osrm-backend = handleTest ./osrm-backend.nix {};
213− ostree = handleTest ./ostree.nix {};
214211 overlayfs = handleTest ./overlayfs.nix {};
215212 packagekit = handleTest ./packagekit.nix {};
216213 pam-oath-login = handleTest ./pam-oath-login.nix {};
@@ -236,7 +233,6 @@ in
236233 prosodyMysql = handleTest ./xmpp/prosody-mysql.nix {};
237234 proxy = handleTest ./proxy.nix {};
238235 quagga = handleTest ./quagga.nix {};
239− quake3 = handleTest ./quake3.nix {};
240236 rabbitmq = handleTest ./rabbitmq.nix {};
241237 radarr = handleTest ./radarr.nix {};
242238 radicale = handleTest ./radicale.nix {};
@@ -250,9 +246,9 @@ in
250246 rxe = handleTest ./rxe.nix {};
251247 samba = handleTest ./samba.nix {};
252248 sddm = handleTest ./sddm.nix {};
249+ shiori = handleTest ./shiori.nix {};
253250 signal-desktop = handleTest ./signal-desktop.nix {};
254251 simple = handleTest ./simple.nix {};
255− slim = handleTest ./slim.nix {};
256252 slurm = handleTest ./slurm.nix {};
257253 smokeping = handleTest ./smokeping.nix {};
258254 snapper = handleTest ./snapper.nix {};
@@ -274,7 +270,9 @@ in
274270 tinydns = handleTest ./tinydns.nix {};
275271 tor = handleTest ./tor.nix {};
276272 transmission = handleTest ./transmission.nix {};
273+ trac = handleTest ./trac.nix {};
277274 trezord = handleTest ./trezord.nix {};
275+ trickster = handleTest ./trickster.nix {};
278276 udisks2 = handleTest ./udisks2.nix {};
279277 upnp = handleTest ./upnp.nix {};
280278 uwsgi = handleTest ./uwsgi.nix {};
@@ -282,14 +280,15 @@ in
282280 virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
283281 wireguard = handleTest ./wireguard {};
284282 wireguard-generated = handleTest ./wireguard/generated.nix {};
283+ wireguard-namespaces = handleTest ./wireguard/namespaces.nix {};
285284 wordpress = handleTest ./wordpress.nix {};
286285 xautolock = handleTest ./xautolock.nix {};
287− xdg-desktop-portal = handleTest ./xdg-desktop-portal.nix {};
288286 xfce = handleTest ./xfce.nix {};
289287 xfce4-14 = handleTest ./xfce4-14.nix {};
290288 xmonad = handleTest ./xmonad.nix {};
291289 xrdp = handleTest ./xrdp.nix {};
292290 xss-lock = handleTest ./xss-lock.nix {};
293291 yabar = handleTest ./yabar.nix {};
292+ yggdrasil = handleTest ./yggdrasil.nix {};
294293 zookeeper = handleTest ./zookeeper.nix {};
295294}
nixos/tests/ammonite.nix+3−3
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "ammonite";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ nequissimus ];
@@ -13,8 +13,8 @@ import ./make-test.nix ({ pkgs, ...} : {
1313 };
1414
1515 testScript = ''
16− startAll;
16+ start_all()
1717
18− $amm->succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
18+ amm.succeed("amm -c 'val foo = 21; println(foo * 2)' | grep 42")
1919 '';
2020})
nixos/tests/atd.nix+10−10
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33{
44 name = "atd";
@@ -14,18 +14,18 @@ import ./make-test.nix ({ pkgs, ... }:
1414
1515 # "at" has a resolution of 1 minute
1616 testScript = ''
17− startAll;
17+ start_all()
1818
19− $machine->waitForUnit('atd.service'); # wait for atd to start
20− $machine->fail("test -f ~root/at-1");
21− $machine->fail("test -f ~alice/at-1");
19+ machine.wait_for_unit("atd.service") # wait for atd to start
20+ machine.fail("test -f ~root/at-1")
21+ machine.fail("test -f ~alice/at-1")
2222
23− $machine->succeed("echo 'touch ~root/at-1' | at now+1min");
24− $machine->succeed("su - alice -c \"echo 'touch at-1' | at now+1min\"");
23+ machine.succeed("echo 'touch ~root/at-1' | at now+1min")
24+ machine.succeed("su - alice -c \"echo 'touch at-1' | at now+1min\"")
2525
26− $machine->succeed("sleep 1.5m");
26+ machine.succeed("sleep 1.5m")
2727
28− $machine->succeed("test -f ~root/at-1");
29− $machine->succeed("test -f ~alice/at-1");
28+ machine.succeed("test -f ~root/at-1")
29+ machine.succeed("test -f ~alice/at-1")
3030 '';
3131})
nixos/tests/automysqlbackup.nix+18−14
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
1+import ./make-test-python.nix ({ pkgs, lib, ... }:
22
33{
44 name = "automysqlbackup";
@@ -15,20 +15,24 @@ import ./make-test.nix ({ pkgs, lib, ... }:
1515 };
1616
1717 testScript = ''
18− startAll;
18+ start_all()
1919
2020 # Need to have mysql started so that it can be populated with data.
21− $machine->waitForUnit("mysql.service");
22−
23− # Wait for testdb to be fully populated (5 rows).
24− $machine->waitUntilSucceeds("mysql -u root -D testdb -N -B -e 'select count(id) from tests' | grep -q 5");
25−
26− # Do a backup and wait for it to start
27− $machine->startJob("automysqlbackup.service");
28− $machine->waitForJob("automysqlbackup.service");
29−
30− # wait for backup file and check that data appears in backup
31− $machine->waitForFile("/var/backup/mysql/daily/testdb");
32− $machine->succeed("${pkgs.gzip}/bin/zcat /var/backup/mysql/daily/testdb/daily_testdb_*.sql.gz | grep hello");
21+ machine.wait_for_unit("mysql.service")
22+
23+ with subtest("Wait for testdb to be fully populated (5 rows)."):
24+ machine.wait_until_succeeds(
25+ "mysql -u root -D testdb -N -B -e 'select count(id) from tests' | grep -q 5"
26+ )
27+
28+ with subtest("Do a backup and wait for it to start"):
29+ machine.start_job("automysqlbackup.service")
30+ machine.wait_for_job("automysqlbackup.service")
31+
32+ with subtest("wait for backup file and check that data appears in backup"):
33+ machine.wait_for_file("/var/backup/mysql/daily/testdb")
34+ machine.succeed(
35+ "${pkgs.gzip}/bin/zcat /var/backup/mysql/daily/testdb/daily_testdb_*.sql.gz | grep hello"
36+ )
3337 '';
3438})
nixos/tests/avahi.nix+35−35
@@ -1,5 +1,5 @@
11# Test whether `avahi-daemon' and `libnss-mdns' work as expected.
2−import ./make-test.nix ({ pkgs, ... } : {
2+import ./make-test-python.nix ({ pkgs, ... } : {
33 name = "avahi";
44 meta = with pkgs.stdenv.lib.maintainers; {
55 maintainers = [ eelco ];
@@ -23,45 +23,45 @@ import ./make-test.nix ({ pkgs, ... } : {
2323 two = cfg;
2424 };
2525
26− testScript =
27− '' startAll;
26+ testScript = ''
27+ start_all()
2828
29− # mDNS.
30− $one->waitForUnit("network.target");
31− $two->waitForUnit("network.target");
29+ # mDNS.
30+ one.wait_for_unit("network.target")
31+ two.wait_for_unit("network.target")
3232
33− $one->succeed("avahi-resolve-host-name one.local | tee out >&2");
34− $one->succeed("test \"`cut -f1 < out`\" = one.local");
35− $one->succeed("avahi-resolve-host-name two.local | tee out >&2");
36− $one->succeed("test \"`cut -f1 < out`\" = two.local");
33+ one.succeed("avahi-resolve-host-name one.local | tee out >&2")
34+ one.succeed('test "`cut -f1 < out`" = one.local')
35+ one.succeed("avahi-resolve-host-name two.local | tee out >&2")
36+ one.succeed('test "`cut -f1 < out`" = two.local')
3737
38− $two->succeed("avahi-resolve-host-name one.local | tee out >&2");
39− $two->succeed("test \"`cut -f1 < out`\" = one.local");
40− $two->succeed("avahi-resolve-host-name two.local | tee out >&2");
41− $two->succeed("test \"`cut -f1 < out`\" = two.local");
38+ two.succeed("avahi-resolve-host-name one.local | tee out >&2")
39+ two.succeed('test "`cut -f1 < out`" = one.local')
40+ two.succeed("avahi-resolve-host-name two.local | tee out >&2")
41+ two.succeed('test "`cut -f1 < out`" = two.local')
4242
43− # Basic DNS-SD.
44− $one->succeed("avahi-browse -r -t _workstation._tcp | tee out >&2");
45− $one->succeed("test `wc -l < out` -gt 0");
46− $two->succeed("avahi-browse -r -t _workstation._tcp | tee out >&2");
47− $two->succeed("test `wc -l < out` -gt 0");
43+ # Basic DNS-SD.
44+ one.succeed("avahi-browse -r -t _workstation._tcp | tee out >&2")
45+ one.succeed("test `wc -l < out` -gt 0")
46+ two.succeed("avahi-browse -r -t _workstation._tcp | tee out >&2")
47+ two.succeed("test `wc -l < out` -gt 0")
4848
49− # More DNS-SD.
50− $one->execute("avahi-publish -s \"This is a test\" _test._tcp 123 one=1 &");
51− $one->sleep(5);
52− $two->succeed("avahi-browse -r -t _test._tcp | tee out >&2");
53− $two->succeed("test `wc -l < out` -gt 0");
49+ # More DNS-SD.
50+ one.execute('avahi-publish -s "This is a test" _test._tcp 123 one=1 &')
51+ one.sleep(5)
52+ two.succeed("avahi-browse -r -t _test._tcp | tee out >&2")
53+ two.succeed("test `wc -l < out` -gt 0")
5454
55− # NSS-mDNS.
56− $one->succeed("getent hosts one.local >&2");
57− $one->succeed("getent hosts two.local >&2");
58− $two->succeed("getent hosts one.local >&2");
59− $two->succeed("getent hosts two.local >&2");
55+ # NSS-mDNS.
56+ one.succeed("getent hosts one.local >&2")
57+ one.succeed("getent hosts two.local >&2")
58+ two.succeed("getent hosts one.local >&2")
59+ two.succeed("getent hosts two.local >&2")
6060
61− # extra service definitions
62− $one->succeed("avahi-browse -r -t _ssh._tcp | tee out >&2");
63− $one->succeed("test `wc -l < out` -gt 0");
64− $two->succeed("avahi-browse -r -t _ssh._tcp | tee out >&2");
65− $two->succeed("test `wc -l < out` -gt 0");
66− '';
61+ # extra service definitions
62+ one.succeed("avahi-browse -r -t _ssh._tcp | tee out >&2")
63+ one.succeed("test `wc -l < out` -gt 0")
64+ two.succeed("avahi-browse -r -t _ssh._tcp | tee out >&2")
65+ two.succeed("test `wc -l < out` -gt 0")
66+ '';
6767})
nixos/tests/babeld.nix+17−17
@@ -1,5 +1,5 @@
11
2−import ./make-test.nix ({ pkgs, lib, ...} : {
2+import ./make-test-python.nix ({ pkgs, lib, ...} : {
33 name = "babeld";
44 meta = with pkgs.stdenv.lib.maintainers; {
55 maintainers = [ hexa ];
@@ -21,7 +21,7 @@ import ./make-test.nix ({ pkgs, lib, ...} : {
2121 };
2222 };
2323
24− localRouter = { pkgs, lib, ... }:
24+ local_router = { pkgs, lib, ... }:
2525 {
2626 virtualisation.vlans = [ 10 20 ];
2727
@@ -70,7 +70,7 @@ import ./make-test.nix ({ pkgs, lib, ...} : {
7070 '';
7171 };
7272 };
73− remoteRouter = { pkgs, lib, ... }:
73+ remote_router = { pkgs, lib, ... }:
7474 {
7575 virtualisation.vlans = [ 20 30 ];
7676
@@ -124,25 +124,25 @@ import ./make-test.nix ({ pkgs, lib, ...} : {
124124
125125 testScript =
126126 ''
127− startAll;
127+ start_all()
128128
129− $client->waitForUnit("network-online.target");
130− $localRouter->waitForUnit("network-online.target");
131− $remoteRouter->waitForUnit("network-online.target");
129+ client.wait_for_unit("network-online.target")
130+ local_router.wait_for_unit("network-online.target")
131+ remote_router.wait_for_unit("network-online.target")
132132
133− $localRouter->waitForUnit("babeld.service");
134− $remoteRouter->waitForUnit("babeld.service");
133+ local_router.wait_for_unit("babeld.service")
134+ remote_router.wait_for_unit("babeld.service")
135135
136− $localRouter->waitUntilSucceeds("ip route get 192.168.30.1");
137− $localRouter->waitUntilSucceeds("ip route get 2001:db8:30::1");
136+ local_router.wait_until_succeeds("ip route get 192.168.30.1")
137+ local_router.wait_until_succeeds("ip route get 2001:db8:30::1")
138138
139− $remoteRouter->waitUntilSucceeds("ip route get 192.168.10.1");
140− $remoteRouter->waitUntilSucceeds("ip route get 2001:db8:10::1");
139+ remote_router.wait_until_succeeds("ip route get 192.168.10.1")
140+ remote_router.wait_until_succeeds("ip route get 2001:db8:10::1")
141141
142− $client->succeed("ping -c1 192.168.30.1");
143− $client->succeed("ping -c1 2001:db8:30::1");
142+ client.succeed("ping -c1 192.168.30.1")
143+ client.succeed("ping -c1 2001:db8:30::1")
144144
145− $remoteRouter->succeed("ping -c1 192.168.10.2");
146− $remoteRouter->succeed("ping -c1 2001:db8:10::2");
145+ remote_router.succeed("ping -c1 192.168.10.2")
146+ remote_router.succeed("ping -c1 2001:db8:10::2")
147147 '';
148148})
nixos/tests/bcachefs.nix+20−24
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "bcachefs";
33 meta.maintainers = with pkgs.stdenv.lib.maintainers; [ chiiruno ];
44
@@ -10,29 +10,25 @@ import ./make-test.nix ({ pkgs, ... }: {
1010 };
1111
1212 testScript = ''
13− $machine->succeed("modprobe bcachefs");
14− $machine->succeed("bcachefs version");
15− $machine->succeed("ls /dev");
13+ machine.succeed("modprobe bcachefs")
14+ machine.succeed("bcachefs version")
15+ machine.succeed("ls /dev")
1616
17− $machine->succeed(
18− "mkdir /tmp/mnt",
19−
20− "udevadm settle",
21− "parted --script /dev/vdb mklabel msdos",
22− "parted --script /dev/vdb -- mkpart primary 1024M -1s",
23− "udevadm settle",
24−
25− # Due to #32279, we cannot use encryption for this test yet
26− # "echo password | bcachefs format --encrypted /dev/vdb1",
27− # "echo password | bcachefs unlock /dev/vdb1",
28− "bcachefs format /dev/vdb1",
29− "mount -t bcachefs /dev/vdb1 /tmp/mnt",
30− "udevadm settle",
31−
32− "bcachefs fs usage /tmp/mnt",
33−
34− "umount /tmp/mnt",
35− "udevadm settle"
36− );
17+ machine.succeed(
18+ "mkdir /tmp/mnt",
19+ "udevadm settle",
20+ "parted --script /dev/vdb mklabel msdos",
21+ "parted --script /dev/vdb -- mkpart primary 1024M -1s",
22+ "udevadm settle",
23+ # Due to #32279, we cannot use encryption for this test yet
24+ # "echo password | bcachefs format --encrypted /dev/vdb1",
25+ # "echo password | bcachefs unlock /dev/vdb1",
26+ "bcachefs format /dev/vdb1",
27+ "mount -t bcachefs /dev/vdb1 /tmp/mnt",
28+ "udevadm settle",
29+ "bcachefs fs usage /tmp/mnt",
30+ "umount /tmp/mnt",
31+ "udevadm settle",
32+ )
3733 '';
3834})
nixos/tests/beanstalkd.nix+10−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
1+import ./make-test-python.nix ({ pkgs, lib, ... }:
22
33let
44 pythonEnv = pkgs.python3.withPackages (p: [p.beanstalkc]);
@@ -34,12 +34,16 @@ in
3434 };
3535
3636 testScript = ''
37− startAll;
37+ start_all()
3838
39− $machine->waitForUnit('beanstalkd.service');
39+ machine.wait_for_unit("beanstalkd.service")
4040
41− $machine->succeed("${produce}");
42− $machine->succeed("${consume}") eq "this is a job\n" or die;
43− $machine->succeed("${consume}") eq "this is another job\n" or die;
41+ machine.succeed("${produce}")
42+ assert "this is a job\n" == machine.succeed(
43+ "${consume}"
44+ )
45+ assert "this is another job\n" == machine.succeed(
46+ "${consume}"
47+ )
4448 '';
4549})
nixos/tests/bind.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix {
1+import ./make-test-python.nix {
22 name = "bind";
33
44 machine = { pkgs, lib, ... }: {
@@ -20,8 +20,8 @@ import ./make-test.nix {
2020 };
2121
2222 testScript = ''
23− $machine->waitForUnit('bind.service');
24− $machine->waitForOpenPort(53);
25− $machine->succeed('host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org');
23+ machine.wait_for_unit("bind.service")
24+ machine.wait_for_open_port(53)
25+ machine.succeed("host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org")
2626 '';
2727}
nixos/tests/bittorrent.nix+36−22
@@ -6,7 +6,7 @@
66# which only works if the first client successfully uses the UPnP-IGD
77# protocol to poke a hole in the NAT.
88
9−import ./make-test.nix ({ pkgs, ... }:
9+import ./make-test-python.nix ({ pkgs, ... }:
1010
1111let
1212
@@ -108,42 +108,56 @@ in
108108 testScript =
109109 { nodes, ... }:
110110 ''
111− startAll;
111+ start_all()
112112
113113 # Wait for network and miniupnpd.
114− $router->waitForUnit("network-online.target");
115− $router->waitForUnit("miniupnpd");
114+ router.wait_for_unit("network-online.target")
115+ router.wait_for_unit("miniupnpd")
116116
117117 # Create the torrent.
118− $tracker->succeed("mkdir /tmp/data");
119− $tracker->succeed("cp ${file} /tmp/data/test.tar.bz2");
120− $tracker->succeed("transmission-create /tmp/data/test.tar.bz2 --private --tracker http://${externalTrackerAddress}:6969/announce --outfile /tmp/test.torrent");
121− $tracker->succeed("chmod 644 /tmp/test.torrent");
118+ tracker.succeed("mkdir /tmp/data")
119+ tracker.succeed(
120+ "cp ${file} /tmp/data/test.tar.bz2"
121+ )
122+ tracker.succeed(
123+ "transmission-create /tmp/data/test.tar.bz2 --private --tracker http://${externalTrackerAddress}:6969/announce --outfile /tmp/test.torrent"
124+ )
125+ tracker.succeed("chmod 644 /tmp/test.torrent")
122126
123127 # Start the tracker. !!! use a less crappy tracker
124− $tracker->waitForUnit("network-online.target");
125− $tracker->waitForUnit("opentracker.service");
126− $tracker->waitForOpenPort(6969);
128+ tracker.wait_for_unit("network-online.target")
129+ tracker.wait_for_unit("opentracker.service")
130+ tracker.wait_for_open_port(6969)
127131
128132 # Start the initial seeder.
129− $tracker->succeed("transmission-remote --add /tmp/test.torrent --no-portmap --no-dht --download-dir /tmp/data");
133+ tracker.succeed(
134+ "transmission-remote --add /tmp/test.torrent --no-portmap --no-dht --download-dir /tmp/data"
135+ )
130136
131137 # Now we should be able to download from the client behind the NAT.
132− $tracker->waitForUnit("httpd");
133− $client1->waitForUnit("network-online.target");
134− $client1->succeed("transmission-remote --add http://${externalTrackerAddress}/test.torrent --download-dir /tmp >&2 &");
135− $client1->waitForFile("/tmp/test.tar.bz2");
136− $client1->succeed("cmp /tmp/test.tar.bz2 ${file}");
138+ tracker.wait_for_unit("httpd")
139+ client1.wait_for_unit("network-online.target")
140+ client1.succeed(
141+ "transmission-remote --add http://${externalTrackerAddress}/test.torrent --download-dir /tmp >&2 &"
142+ )
143+ client1.wait_for_file("/tmp/test.tar.bz2")
144+ client1.succeed(
145+ "cmp /tmp/test.tar.bz2 ${file}"
146+ )
137147
138148 # Bring down the initial seeder.
139− # $tracker->stopJob("transmission");
149+ # tracker.stop_job("transmission")
140150
141151 # Now download from the second client. This can only succeed if
142152 # the first client created a NAT hole in the router.
143− $client2->waitForUnit("network-online.target");
144− $client2->succeed("transmission-remote --add http://${externalTrackerAddress}/test.torrent --no-portmap --no-dht --download-dir /tmp >&2 &");
145− $client2->waitForFile("/tmp/test.tar.bz2");
146− $client2->succeed("cmp /tmp/test.tar.bz2 ${file}");
153+ client2.wait_for_unit("network-online.target")
154+ client2.succeed(
155+ "transmission-remote --add http://${externalTrackerAddress}/test.torrent --no-portmap --no-dht --download-dir /tmp >&2 &"
156+ )
157+ client2.wait_for_file("/tmp/test.tar.bz2")
158+ client2.succeed(
159+ "cmp /tmp/test.tar.bz2 ${file}"
160+ )
147161 '';
148162
149163})
nixos/tests/boot-stage1.nix+7−7
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "boot-stage1";
33
44 machine = { config, pkgs, lib, ... }: {
@@ -150,12 +150,12 @@ import ./make-test.nix ({ pkgs, ... }: {
150150 };
151151
152152 testScript = ''
153− $machine->waitForUnit("multi-user.target");
154− $machine->succeed('test -s /run/canary2.pid');
155− $machine->fail('pgrep -a canary1');
156− $machine->fail('kill -0 $(< /run/canary2.pid)');
157− $machine->succeed('pgrep -a -f \'^@canary3$\''');
158− $machine->succeed('pgrep -a -f \'^kcanary$\''');
153+ machine.wait_for_unit("multi-user.target")
154+ machine.succeed("test -s /run/canary2.pid")
155+ machine.fail("pgrep -a canary1")
156+ machine.fail("kill -0 $(< /run/canary2.pid)")
157+ machine.succeed('pgrep -a -f "^@canary3$"')
158+ machine.succeed('pgrep -a -f "^kcanary$"')
159159 '';
160160
161161 meta.maintainers = with pkgs.stdenv.lib.maintainers; [ aszlig ];
nixos/tests/boot.nix+17−18
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77with pkgs.lib;
88
99let
@@ -17,11 +17,11 @@ let
1717 ];
1818 }).config.system.build.isoImage;
1919
20− perlAttrs = params: "{ ${concatStringsSep ", " (mapAttrsToList (name: param: "${name} => ${builtins.toJSON param}") params)} }";
20+ pythonDict = params: "\n {\n ${concatStringsSep ",\n " (mapAttrsToList (name: param: "\"${name}\": \"${param}\"") params)},\n }\n";
2121
2222 makeBootTest = name: extraConfig:
2323 let
24− machineConfig = perlAttrs ({ qemuFlags = "-m 768"; } // extraConfig);
24+ machineConfig = pythonDict ({ qemuFlags = "-m 768"; } // extraConfig);
2525 in
2626 makeTest {
2727 inherit iso;
@@ -29,16 +29,16 @@ let
2929 nodes = { };
3030 testScript =
3131 ''
32− my $machine = createMachine(${machineConfig});
33− $machine->start;
34− $machine->waitForUnit("multi-user.target");
35− $machine->succeed("nix verify -r --no-trust /run/current-system");
32+ machine = create_machine(${machineConfig})
33+ machine.start()
34+ machine.wait_for_unit("multi-user.target")
35+ machine.succeed("nix verify -r --no-trust /run/current-system")
3636
37− # Test whether the channel got installed correctly.
38− $machine->succeed("nix-instantiate --dry-run '<nixpkgs>' -A hello");
39− $machine->succeed("nix-env --dry-run -iA nixos.procps");
37+ with subtest("Check whether the channel got installed correctly"):
38+ machine.succeed("nix-instantiate --dry-run '<nixpkgs>' -A hello")
39+ machine.succeed("nix-env --dry-run -iA nixos.procps")
4040
41− $machine->shutdown;
41+ machine.shutdown()
4242 '';
4343 };
4444
@@ -60,7 +60,7 @@ let
6060 config.system.build.netbootIpxeScript
6161 ];
6262 };
63− machineConfig = perlAttrs ({
63+ machineConfig = pythonDict ({
6464 qemuFlags = "-boot order=n -m 2000";
6565 netBackendArgs = "tftp=${ipxeBootDir},bootfile=netboot.ipxe";
6666 } // extraConfig);
@@ -68,12 +68,11 @@ let
6868 makeTest {
6969 name = "boot-netboot-" + name;
7070 nodes = { };
71− testScript =
72− ''
73− my $machine = createMachine(${machineConfig});
74− $machine->start;
75− $machine->waitForUnit("multi-user.target");
76− $machine->shutdown;
71+ testScript = ''
72+ machine = create_machine(${machineConfig})
73+ machine.start()
74+ machine.wait_for_unit("multi-user.target")
75+ machine.shutdown()
7776 '';
7877 };
7978in {
nixos/tests/borgbackup.nix+66−56
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33let
44 passphrase = "supersecret";
@@ -106,60 +106,70 @@ in {
106106 };
107107
108108 testScript = ''
109− startAll;
110−
111− $client->fail('test -d "${remoteRepo}"');
112−
113− $client->succeed("cp ${privateKey} /root/id_ed25519");
114− $client->succeed("chmod 0600 /root/id_ed25519");
115− $client->succeed("cp ${privateKeyAppendOnly} /root/id_ed25519.appendOnly");
116− $client->succeed("chmod 0600 /root/id_ed25519.appendOnly");
117−
118− $client->succeed("mkdir -p ${dataDir}");
119− $client->succeed("touch ${dataDir}/${excludeFile}");
120− $client->succeed("echo '${keepFileData}' > ${dataDir}/${keepFile}");
121−
122− subtest "local", sub {
123− my $borg = "BORG_PASSPHRASE='${passphrase}' borg";
124− $client->systemctl("start --wait borgbackup-job-local");
125− $client->fail("systemctl is-failed borgbackup-job-local");
126− # Make sure exactly one archive has been created
127− $client->succeed("c=\$($borg list '${localRepo}' | wc -l) && [[ \$c == '1' ]]");
128− # Make sure excludeFile has been excluded
129− $client->fail("$borg list '${localRepo}::${archiveName}' | grep -qF '${excludeFile}'");
130− # Make sure keepFile has the correct content
131− $client->succeed("$borg extract '${localRepo}::${archiveName}'");
132− $client->succeed('c=$(cat ${dataDir}/${keepFile}) && [[ "$c" == "${keepFileData}" ]]');
133− # Make sure the same is true when using `borg mount`
134− $client->succeed("mkdir -p /mnt/borg && $borg mount '${localRepo}::${archiveName}' /mnt/borg");
135− $client->succeed('c=$(cat /mnt/borg/${dataDir}/${keepFile}) && [[ "$c" == "${keepFileData}" ]]');
136− };
137−
138− subtest "remote", sub {
139− my $borg = "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519' borg";
140− $server->waitForUnit("sshd.service");
141− $client->waitForUnit("network.target");
142− $client->systemctl("start --wait borgbackup-job-remote");
143− $client->fail("systemctl is-failed borgbackup-job-remote");
144−
145− # Make sure we can't access repos other than the specified one
146− $client->fail("$borg list borg\@server:wrong");
147−
148− #TODO: Make sure that data is actually deleted
149− };
150−
151− subtest "remoteAppendOnly", sub {
152− my $borg = "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519.appendOnly' borg";
153− $server->waitForUnit("sshd.service");
154− $client->waitForUnit("network.target");
155− $client->systemctl("start --wait borgbackup-job-remoteAppendOnly");
156− $client->fail("systemctl is-failed borgbackup-job-remoteAppendOnly");
157−
158− # Make sure we can't access repos other than the specified one
159− $client->fail("$borg list borg\@server:wrong");
160−
161− #TODO: Make sure that data is not actually deleted
162− };
163−
109+ start_all()
110+
111+ client.fail('test -d "${remoteRepo}"')
112+
113+ client.succeed(
114+ "cp ${privateKey} /root/id_ed25519"
115+ )
116+ client.succeed("chmod 0600 /root/id_ed25519")
117+ client.succeed(
118+ "cp ${privateKeyAppendOnly} /root/id_ed25519.appendOnly"
119+ )
120+ client.succeed("chmod 0600 /root/id_ed25519.appendOnly")
121+
122+ client.succeed("mkdir -p ${dataDir}")
123+ client.succeed("touch ${dataDir}/${excludeFile}")
124+ client.succeed("echo '${keepFileData}' > ${dataDir}/${keepFile}")
125+
126+ with subtest("local"):
127+ borg = "BORG_PASSPHRASE='${passphrase}' borg"
128+ client.systemctl("start --wait borgbackup-job-local")
129+ client.fail("systemctl is-failed borgbackup-job-local")
130+ # Make sure exactly one archive has been created
131+ assert int(client.succeed("{} list '${localRepo}' | wc -l".format(borg))) > 0
132+ # Make sure excludeFile has been excluded
133+ client.fail(
134+ "{} list '${localRepo}::${archiveName}' | grep -qF '${excludeFile}'".format(borg)
135+ )
136+ # Make sure keepFile has the correct content
137+ client.succeed("{} extract '${localRepo}::${archiveName}'".format(borg))
138+ assert "${keepFileData}" in client.succeed("cat ${dataDir}/${keepFile}")
139+ # Make sure the same is true when using `borg mount`
140+ client.succeed(
141+ "mkdir -p /mnt/borg && {} mount '${localRepo}::${archiveName}' /mnt/borg".format(
142+ borg
143+ )
144+ )
145+ assert "${keepFileData}" in client.succeed(
146+ "cat /mnt/borg/${dataDir}/${keepFile}"
147+ )
148+
149+ with subtest("remote"):
150+ borg = "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519' borg"
151+ server.wait_for_unit("sshd.service")
152+ client.wait_for_unit("network.target")
153+ client.systemctl("start --wait borgbackup-job-remote")
154+ client.fail("systemctl is-failed borgbackup-job-remote")
155+
156+ # Make sure we can't access repos other than the specified one
157+ client.fail("{} list borg\@server:wrong".format(borg))
158+
159+ # TODO: Make sure that data is actually deleted
160+
161+ with subtest("remoteAppendOnly"):
162+ borg = (
163+ "BORG_RSH='ssh -oStrictHostKeyChecking=no -i /root/id_ed25519.appendOnly' borg"
164+ )
165+ server.wait_for_unit("sshd.service")
166+ client.wait_for_unit("network.target")
167+ client.systemctl("start --wait borgbackup-job-remoteAppendOnly")
168+ client.fail("systemctl is-failed borgbackup-job-remoteAppendOnly")
169+
170+ # Make sure we can't access repos other than the specified one
171+ client.fail("{} list borg\@server:wrong".format(borg))
172+
173+ # TODO: Make sure that data is not actually deleted
164174 '';
165175})
nixos/tests/caddy.nix+31−26
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "caddy";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ xfix ];
@@ -50,33 +50,38 @@ import ./make-test.nix ({ pkgs, ... }: {
5050 etagSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-1";
5151 justReloadSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-2";
5252 in ''
53− my $url = 'http://localhost/example.html';
54− $webserver->waitForUnit("caddy");
55− $webserver->waitForOpenPort("80");
53+ url = "http://localhost/example.html"
54+ webserver.wait_for_unit("caddy")
55+ webserver.wait_for_open_port("80")
5656
57− sub checkEtag {
58− my $etag = $webserver->succeed(
59− 'curl -v '.$url.' 2>&1 | sed -n -e "s/^< [Ee][Tt][Aa][Gg]: *//p"'
60− );
61− $etag =~ s/\r?\n$//;
62− my $httpCode = $webserver->succeed(
63− 'curl -w "%{http_code}" -X HEAD -H \'If-None-Match: '.$etag.'\' '.$url
64− );
65− die "HTTP code is not 304" unless $httpCode == 304;
66− return $etag;
67− }
6857
69− subtest "check ETag if serving Nix store paths", sub {
70− my $oldEtag = checkEtag;
71− $webserver->succeed("${etagSystem}/bin/switch-to-configuration test >&2");
72− $webserver->sleep(1); # race condition
73− my $newEtag = checkEtag;
74− die "Old ETag $oldEtag is the same as $newEtag" if $oldEtag eq $newEtag;
75− };
58+ def check_etag(url):
59+ etag = webserver.succeed(
60+ "curl -v '{}' 2>&1 | sed -n -e \"s/^< [Ee][Tt][Aa][Gg]: *//p\"".format(url)
61+ )
62+ etag = etag.replace("\r\n", " ")
63+ http_code = webserver.succeed(
64+ "curl -w \"%{{http_code}}\" -X HEAD -H 'If-None-Match: {}' {}".format(etag, url)
65+ )
66+ assert int(http_code) == 304, "HTTP code is not 304"
67+ return etag
7668
77− subtest "config is reloaded on nixos-rebuild switch", sub {
78− $webserver->succeed("${justReloadSystem}/bin/switch-to-configuration test >&2");
79− $webserver->waitForOpenPort("8080");
80− };
69+
70+ with subtest("check ETag if serving Nix store paths"):
71+ old_etag = check_etag(url)
72+ webserver.succeed(
73+ "${etagSystem}/bin/switch-to-configuration test >&2"
74+ )
75+ webserver.sleep(1)
76+ new_etag = check_etag(url)
77+ assert old_etag != new_etag, "Old ETag {} is the same as {}".format(
78+ old_etag, new_etag
79+ )
80+
81+ with subtest("config is reloaded on nixos-rebuild switch"):
82+ webserver.succeed(
83+ "${justReloadSystem}/bin/switch-to-configuration test >&2"
84+ )
85+ webserver.wait_for_open_port("8080")
8186 '';
8287})
nixos/tests/cadvisor.nix+11−12
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... } : {
1+import ./make-test-python.nix ({ pkgs, ... } : {
22 name = "cadvisor";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ offline ];
@@ -16,20 +16,19 @@ import ./make-test.nix ({ pkgs, ... } : {
1616 };
1717 };
1818
19− testScript =
20− ''
21− startAll;
22− $machine->waitForUnit("cadvisor.service");
23− $machine->succeed("curl http://localhost:8080/containers/");
19+ testScript = ''
20+ start_all()
21+ machine.wait_for_unit("cadvisor.service")
22+ machine.succeed("curl http://localhost:8080/containers/")
2423
25− $influxdb->waitForUnit("influxdb.service");
24+ influxdb.wait_for_unit("influxdb.service")
2625
2726 # create influxdb database
28− $influxdb->succeed(q~
29− curl -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"
30− ~);
27+ influxdb.succeed(
28+ 'curl -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE root"'
29+ )
3130
32− $influxdb->waitForUnit("cadvisor.service");
33− $influxdb->succeed("curl http://localhost:8080/containers/");
31+ influxdb.wait_for_unit("cadvisor.service")
32+ influxdb.succeed("curl http://localhost:8080/containers/")
3433 '';
3534})
nixos/tests/cassandra.nix+74−60
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
1+import ./make-test-python.nix ({ pkgs, lib, ... }:
22let
33 # Change this to test a different version of Cassandra:
44 testPackage = pkgs.cassandra;
@@ -9,13 +9,16 @@ let
99 jmxRolesFile = ./cassandra-jmx-roles;
1010 jmxAuthArgs = "-u ${(builtins.elemAt jmxRoles 0).username} -pw ${(builtins.elemAt jmxRoles 0).password}";
1111 jmxPort = 7200; # Non-standard port so it doesn't accidentally work
12+ jmxPortStr = toString jmxPort;
1213
13− # Would usually be assigned to 512M
14+ # Would usually be assigned to 512M.
15+ # Set it to a different value, so that we can check whether our config
16+ # actually changes it.
1417 numMaxHeapSize = "400";
1518 getHeapLimitCommand = ''
16− nodetool info -p ${toString jmxPort} | grep "^Heap Memory" | awk \'{print $NF}\'
19+ nodetool info -p ${jmxPortStr} | grep "^Heap Memory" | awk '{print $NF}'
1720 '';
18− checkHeapLimitCommand = ''
21+ checkHeapLimitCommand = pkgs.writeShellScript "check-heap-limit.sh" ''
1922 [ 1 -eq "$(echo "$(${getHeapLimitCommand}) < ${numMaxHeapSize}" | ${pkgs.bc}/bin/bc)" ]
2023 '';
2124
@@ -44,7 +47,10 @@ let
4447 };
4548in
4649{
47− name = "cassandra-ci";
50+ name = "cassandra";
51+ meta = {
52+ maintainers = with lib.maintainers; [ johnazoidberg ];
53+ };
4854
4955 nodes = {
5056 cass0 = nodeCfg "192.168.1.1" {};
@@ -52,66 +58,74 @@ in
5258 cass2 = nodeCfg "192.168.1.3" { jvmOpts = [ "-Dcassandra.replace_address=cass1" ]; };
5359 };
5460
55− testScript = let
56− jmxPortS = toString jmxPort;
57− in ''
61+ testScript = ''
5862 # Check configuration
59− subtest "Timers exist", sub {
60− $cass0->succeed("systemctl list-timers | grep cassandra-full-repair.timer");
61− $cass0->succeed("systemctl list-timers | grep cassandra-incremental-repair.timer");
62− };
63− subtest "Can connect via cqlsh", sub {
64− $cass0->waitForUnit("cassandra.service");
65− $cass0->waitUntilSucceeds("nc -z cass0 9042");
66− $cass0->succeed("echo 'show version;' | cqlsh cass0");
67− };
68− subtest "Nodetool is operational", sub {
69− $cass0->waitForUnit("cassandra.service");
70− $cass0->waitUntilSucceeds("nc -z localhost ${jmxPortS}");
71− $cass0->succeed("nodetool status -p ${jmxPortS} --resolve-ip | egrep '^UN[[:space:]]+cass0'");
72− };
73− subtest "Cluster name was set", sub {
74− $cass0->waitForUnit("cassandra.service");
75− $cass0->waitUntilSucceeds("nc -z localhost ${jmxPortS}");
76− $cass0->waitUntilSucceeds("nodetool describecluster -p ${jmxPortS} | grep 'Name: ${clusterName}'");
77− };
78− subtest "Heap limit set correctly", sub {
79− # Nodetool takes a while until it can display info
80− $cass0->waitUntilSucceeds('nodetool info -p ${jmxPortS}');
81− $cass0->succeed('${checkHeapLimitCommand}');
82− };
63+ with subtest("Timers exist"):
64+ cass0.succeed("systemctl list-timers | grep cassandra-full-repair.timer")
65+ cass0.succeed("systemctl list-timers | grep cassandra-incremental-repair.timer")
66+
67+ with subtest("Can connect via cqlsh"):
68+ cass0.wait_for_unit("cassandra.service")
69+ cass0.wait_until_succeeds("nc -z cass0 9042")
70+ cass0.succeed("echo 'show version;' | cqlsh cass0")
71+
72+ with subtest("Nodetool is operational"):
73+ cass0.wait_for_unit("cassandra.service")
74+ cass0.wait_until_succeeds("nc -z localhost ${jmxPortStr}")
75+ cass0.succeed("nodetool status -p ${jmxPortStr} --resolve-ip | egrep '^UN[[:space:]]+cass0'")
76+
77+ with subtest("Cluster name was set"):
78+ cass0.wait_for_unit("cassandra.service")
79+ cass0.wait_until_succeeds("nc -z localhost ${jmxPortStr}")
80+ cass0.wait_until_succeeds(
81+ "nodetool describecluster -p ${jmxPortStr} | grep 'Name: ${clusterName}'"
82+ )
83+
84+ with subtest("Heap limit set correctly"):
85+ # Nodetool takes a while until it can display info
86+ cass0.wait_until_succeeds("nodetool info -p ${jmxPortStr}")
87+ cass0.succeed("${checkHeapLimitCommand}")
8388
8489 # Check cluster interaction
85− subtest "Bring up cluster", sub {
86− $cass1->waitForUnit("cassandra.service");
87− $cass1->waitUntilSucceeds("nodetool -p ${jmxPortS} ${jmxAuthArgs} status | egrep -c '^UN' | grep 2");
88− $cass0->succeed("nodetool status -p ${jmxPortS} --resolve-ip | egrep '^UN[[:space:]]+cass1'");
89− };
90+ with subtest("Bring up cluster"):
91+ cass1.wait_for_unit("cassandra.service")
92+ cass1.wait_until_succeeds(
93+ "nodetool -p ${jmxPortStr} ${jmxAuthArgs} status | egrep -c '^UN' | grep 2"
94+ )
95+ cass0.succeed("nodetool status -p ${jmxPortStr} --resolve-ip | egrep '^UN[[:space:]]+cass1'")
9096 '' + lib.optionalString testRemoteAuth ''
91− subtest "Remote authenticated jmx", sub {
92− # Doesn't work if not enabled
93− $cass0->waitUntilSucceeds("nc -z localhost ${jmxPortS}");
94− $cass1->fail("nc -z 192.168.1.1 ${toString jmxPort}");
95− $cass1->fail("nodetool -p ${jmxPortS} -h 192.168.1.1 status");
97+ with subtest("Remote authenticated jmx"):
98+ # Doesn't work if not enabled
99+ cass0.wait_until_succeeds("nc -z localhost ${jmxPortStr}")
100+ cass1.fail("nc -z 192.168.1.1 ${jmxPortStr}")
101+ cass1.fail("nodetool -p ${jmxPortStr} -h 192.168.1.1 status")
96102
97− # Works if enabled
98− $cass1->waitUntilSucceeds("nc -z localhost ${toString jmxPort}");
99− $cass0->succeed("nodetool -p ${jmxPortS} -h 192.168.1.2 ${jmxAuthArgs} status");
100− };
103+ # Works if enabled
104+ cass1.wait_until_succeeds("nc -z localhost ${jmxPortStr}")
105+ cass0.succeed("nodetool -p ${jmxPortStr} -h 192.168.1.2 ${jmxAuthArgs} status")
101106 '' + ''
102− subtest "Break and fix node", sub {
103− $cass1->block;
104− $cass0->waitUntilSucceeds("nodetool status -p ${jmxPortS} --resolve-ip | egrep -c '^DN[[:space:]]+cass1'");
105− $cass0->succeed("nodetool status -p ${jmxPortS} | egrep -c '^UN' | grep 1");
106− $cass1->unblock;
107− $cass1->waitUntilSucceeds("nodetool -p ${jmxPortS} ${jmxAuthArgs} status | egrep -c '^UN' | grep 2");
108− $cass0->succeed("nodetool status -p ${jmxPortS} | egrep -c '^UN' | grep 2");
109− };
110− subtest "Replace crashed node", sub {
111− $cass1->crash;
112− $cass2->waitForUnit("cassandra.service");
113− $cass0->waitUntilFails("nodetool status -p ${jmxPortS} --resolve-ip | egrep '^UN[[:space:]]+cass1'");
114− $cass0->waitUntilSucceeds("nodetool status -p ${jmxPortS} --resolve-ip | egrep '^UN[[:space:]]+cass2'");
115− };
107+ with subtest("Break and fix node"):
108+ cass1.block()
109+ cass0.wait_until_succeeds(
110+ "nodetool status -p ${jmxPortStr} --resolve-ip | egrep -c '^DN[[:space:]]+cass1'"
111+ )
112+ cass0.succeed("nodetool status -p ${jmxPortStr} | egrep -c '^UN' | grep 1")
113+ cass1.unblock()
114+ cass1.wait_until_succeeds(
115+ "nodetool -p ${jmxPortStr} ${jmxAuthArgs} status | egrep -c '^UN' | grep 2"
116+ )
117+ cass0.succeed("nodetool status -p ${jmxPortStr} | egrep -c '^UN' | grep 2")
118+
119+ with subtest("Replace crashed node"):
120+ cass1.block() # .crash() waits until it's fully shutdown
121+ cass2.start()
122+ cass0.wait_until_fails(
123+ "nodetool status -p ${jmxPortStr} --resolve-ip | egrep '^UN[[:space:]]+cass1'"
124+ )
125+
126+ cass2.wait_for_unit("cassandra.service")
127+ cass0.wait_until_succeeds(
128+ "nodetool status -p ${jmxPortStr} --resolve-ip | egrep '^UN[[:space:]]+cass2'"
129+ )
116130 '';
117131})
nixos/tests/ceph-multi-node.nixnew file+225
@@ -0,0 +1,225 @@
1+import ./make-test.nix ({pkgs, lib, ...}:
2+
3+let
4+ cfg = {
5+ clusterId = "066ae264-2a5d-4729-8001-6ad265f50b03";
6+ monA = {
7+ name = "a";
8+ ip = "192.168.1.1";
9+ };
10+ osd0 = {
11+ name = "0";
12+ ip = "192.168.1.2";
13+ key = "AQBCEJNa3s8nHRAANvdsr93KqzBznuIWm2gOGg==";
14+ uuid = "55ba2294-3e24-478f-bee0-9dca4c231dd9";
15+ };
16+ osd1 = {
17+ name = "1";
18+ ip = "192.168.1.3";
19+ key = "AQBEEJNac00kExAAXEgy943BGyOpVH1LLlHafQ==";
20+ uuid = "5e97a838-85b6-43b0-8950-cb56d554d1e5";
21+ };
22+ };
23+ generateCephConfig = { daemonConfig }: {
24+ enable = true;
25+ global = {
26+ fsid = cfg.clusterId;
27+ monHost = cfg.monA.ip;
28+ monInitialMembers = cfg.monA.name;
29+ };
30+ } // daemonConfig;
31+
32+ generateHost = { pkgs, cephConfig, networkConfig, ... }: {
33+ virtualisation = {
34+ memorySize = 512;
35+ emptyDiskImages = [ 20480 ];
36+ vlans = [ 1 ];
37+ };
38+
39+ networking = networkConfig;
40+
41+ environment.systemPackages = with pkgs; [
42+ bash
43+ sudo
44+ ceph
45+ xfsprogs
46+ netcat-openbsd
47+ ];
48+
49+ boot.kernelModules = [ "xfs" ];
50+
51+ services.ceph = cephConfig;
52+ };
53+
54+ networkMonA = {
55+ dhcpcd.enable = false;
56+ interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [
57+ { address = cfg.monA.ip; prefixLength = 24; }
58+ ];
59+ firewall = {
60+ allowedTCPPorts = [ 6789 3300 ];
61+ allowedTCPPortRanges = [ { from = 6800; to = 7300; } ];
62+ };
63+ };
64+ cephConfigMonA = generateCephConfig { daemonConfig = {
65+ mon = {
66+ enable = true;
67+ daemons = [ cfg.monA.name ];
68+ };
69+ mgr = {
70+ enable = true;
71+ daemons = [ cfg.monA.name ];
72+ };
73+ }; };
74+
75+ networkOsd0 = {
76+ dhcpcd.enable = false;
77+ interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [
78+ { address = cfg.osd0.ip; prefixLength = 24; }
79+ ];
80+ firewall = {
81+ allowedTCPPortRanges = [ { from = 6800; to = 7300; } ];
82+ };
83+ };
84+ cephConfigOsd0 = generateCephConfig { daemonConfig = {
85+ osd = {
86+ enable = true;
87+ daemons = [ cfg.osd0.name ];
88+ };
89+ }; };
90+
91+ networkOsd1 = {
92+ dhcpcd.enable = false;
93+ interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [
94+ { address = cfg.osd1.ip; prefixLength = 24; }
95+ ];
96+ firewall = {
97+ allowedTCPPortRanges = [ { from = 6800; to = 7300; } ];
98+ };
99+ };
100+ cephConfigOsd1 = generateCephConfig { daemonConfig = {
101+ osd = {
102+ enable = true;
103+ daemons = [ cfg.osd1.name ];
104+ };
105+ }; };
106+
107+ # Following deployment is based on the manual deployment described here:
108+ # https://docs.ceph.com/docs/master/install/manual-deployment/
109+ # For other ways to deploy a ceph cluster, look at the documentation at
110+ # https://docs.ceph.com/docs/master/
111+ testscript = { ... }: ''
112+ startAll;
113+
114+ $monA->waitForUnit("network.target");
115+ $osd0->waitForUnit("network.target");
116+ $osd1->waitForUnit("network.target");
117+
118+ # Bootstrap ceph-mon daemon
119+ $monA->mustSucceed(
120+ "sudo -u ceph ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'",
121+ "sudo -u ceph ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'",
122+ "sudo -u ceph ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring",
123+ "monmaptool --create --add ${cfg.monA.name} ${cfg.monA.ip} --fsid ${cfg.clusterId} /tmp/monmap",
124+ "sudo -u ceph ceph-mon --mkfs -i ${cfg.monA.name} --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring",
125+ "sudo -u ceph mkdir -p /var/lib/ceph/mgr/ceph-${cfg.monA.name}/",
126+ "sudo -u ceph touch /var/lib/ceph/mon/ceph-${cfg.monA.name}/done",
127+ "systemctl start ceph-mon-${cfg.monA.name}"
128+ );
129+ $monA->waitForUnit("ceph-mon-${cfg.monA.name}");
130+ $monA->mustSucceed("ceph mon enable-msgr2");
131+
132+ # Can't check ceph status until a mon is up
133+ $monA->succeed("ceph -s | grep 'mon: 1 daemons'");
134+
135+ # Start the ceph-mgr daemon, it has no deps and hardly any setup
136+ $monA->mustSucceed(
137+ "ceph auth get-or-create mgr.${cfg.monA.name} mon 'allow profile mgr' osd 'allow *' mds 'allow *' > /var/lib/ceph/mgr/ceph-${cfg.monA.name}/keyring",
138+ "systemctl start ceph-mgr-${cfg.monA.name}"
139+ );
140+ $monA->waitForUnit("ceph-mgr-a");
141+ $monA->waitUntilSucceeds("ceph -s | grep 'quorum ${cfg.monA.name}'");
142+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
143+
144+ # Send the admin keyring to the OSD machines
145+ $monA->mustSucceed("cp /etc/ceph/ceph.client.admin.keyring /tmp/shared");
146+ $osd0->mustSucceed("cp /tmp/shared/ceph.client.admin.keyring /etc/ceph");
147+ $osd1->mustSucceed("cp /tmp/shared/ceph.client.admin.keyring /etc/ceph");
148+
149+ # Bootstrap both OSDs
150+ $osd0->mustSucceed(
151+ "mkfs.xfs /dev/vdb",
152+ "mkdir -p /var/lib/ceph/osd/ceph-${cfg.osd0.name}",
153+ "mount /dev/vdb /var/lib/ceph/osd/ceph-${cfg.osd0.name}",
154+ "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-${cfg.osd0.name}/keyring --name osd.${cfg.osd0.name} --add-key ${cfg.osd0.key}",
155+ "echo '{\"cephx_secret\": \"${cfg.osd0.key}\"}' | ceph osd new ${cfg.osd0.uuid} -i -",
156+ );
157+ $osd1->mustSucceed(
158+ "mkfs.xfs /dev/vdb",
159+ "mkdir -p /var/lib/ceph/osd/ceph-${cfg.osd1.name}",
160+ "mount /dev/vdb /var/lib/ceph/osd/ceph-${cfg.osd1.name}",
161+ "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-${cfg.osd1.name}/keyring --name osd.${cfg.osd1.name} --add-key ${cfg.osd1.key}",
162+ "echo '{\"cephx_secret\": \"${cfg.osd1.key}\"}' | ceph osd new ${cfg.osd1.uuid} -i -"
163+ );
164+
165+ # Initialize the OSDs with regular filestore
166+ $osd0->mustSucceed(
167+ "ceph-osd -i ${cfg.osd0.name} --mkfs --osd-uuid ${cfg.osd0.uuid}",
168+ "chown -R ceph:ceph /var/lib/ceph/osd",
169+ "systemctl start ceph-osd-${cfg.osd0.name}",
170+ );
171+ $osd1->mustSucceed(
172+ "ceph-osd -i ${cfg.osd1.name} --mkfs --osd-uuid ${cfg.osd1.uuid}",
173+ "chown -R ceph:ceph /var/lib/ceph/osd",
174+ "systemctl start ceph-osd-${cfg.osd1.name}"
175+ );
176+ $monA->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
177+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
178+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
179+
180+ $monA->mustSucceed(
181+ "ceph osd pool create multi-node-test 100 100",
182+ "ceph osd pool ls | grep 'multi-node-test'",
183+ "ceph osd pool rename multi-node-test multi-node-other-test",
184+ "ceph osd pool ls | grep 'multi-node-other-test'"
185+ );
186+ $monA->waitUntilSucceeds("ceph -s | grep '1 pools, 100 pgs'");
187+ $monA->mustSucceed("ceph osd pool set multi-node-other-test size 2");
188+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
189+ $monA->waitUntilSucceeds("ceph -s | grep '100 active+clean'");
190+ $monA->mustFail(
191+ "ceph osd pool ls | grep 'multi-node-test'",
192+ "ceph osd pool delete multi-node-other-test multi-node-other-test --yes-i-really-really-mean-it"
193+ );
194+
195+ # Shut down ceph on all machines in a very unpolite way
196+ $monA->crash;
197+ $osd0->crash;
198+ $osd1->crash;
199+
200+ # Start it up
201+ $osd0->start;
202+ $osd1->start;
203+ $monA->start;
204+
205+ # Ensure the cluster comes back up again
206+ $monA->succeed("ceph -s | grep 'mon: 1 daemons'");
207+ $monA->waitUntilSucceeds("ceph -s | grep 'quorum ${cfg.monA.name}'");
208+ $monA->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
209+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
210+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
211+ '';
212+in {
213+ name = "basic-multi-node-ceph-cluster";
214+ meta = with pkgs.stdenv.lib.maintainers; {
215+ maintainers = [ lejonet ];
216+ };
217+
218+ nodes = {
219+ monA = generateHost { pkgs = pkgs; cephConfig = cephConfigMonA; networkConfig = networkMonA; };
220+ osd0 = generateHost { pkgs = pkgs; cephConfig = cephConfigOsd0; networkConfig = networkOsd0; };
221+ osd1 = generateHost { pkgs = pkgs; cephConfig = cephConfigOsd1; networkConfig = networkOsd1; };
222+ };
223+
224+ testScript = testscript;
225+})
nixos/tests/ceph-single-node.nixnew file+183
@@ -0,0 +1,183 @@
1+import ./make-test.nix ({pkgs, lib, ...}:
2+
3+let
4+ cfg = {
5+ clusterId = "066ae264-2a5d-4729-8001-6ad265f50b03";
6+ monA = {
7+ name = "a";
8+ ip = "192.168.1.1";
9+ };
10+ osd0 = {
11+ name = "0";
12+ key = "AQBCEJNa3s8nHRAANvdsr93KqzBznuIWm2gOGg==";
13+ uuid = "55ba2294-3e24-478f-bee0-9dca4c231dd9";
14+ };
15+ osd1 = {
16+ name = "1";
17+ key = "AQBEEJNac00kExAAXEgy943BGyOpVH1LLlHafQ==";
18+ uuid = "5e97a838-85b6-43b0-8950-cb56d554d1e5";
19+ };
20+ };
21+ generateCephConfig = { daemonConfig }: {
22+ enable = true;
23+ global = {
24+ fsid = cfg.clusterId;
25+ monHost = cfg.monA.ip;
26+ monInitialMembers = cfg.monA.name;
27+ };
28+ } // daemonConfig;
29+
30+ generateHost = { pkgs, cephConfig, networkConfig, ... }: {
31+ virtualisation = {
32+ memorySize = 512;
33+ emptyDiskImages = [ 20480 20480 ];
34+ vlans = [ 1 ];
35+ };
36+
37+ networking = networkConfig;
38+
39+ environment.systemPackages = with pkgs; [
40+ bash
41+ sudo
42+ ceph
43+ xfsprogs
44+ ];
45+
46+ boot.kernelModules = [ "xfs" ];
47+
48+ services.ceph = cephConfig;
49+ };
50+
51+ networkMonA = {
52+ dhcpcd.enable = false;
53+ interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [
54+ { address = cfg.monA.ip; prefixLength = 24; }
55+ ];
56+ };
57+ cephConfigMonA = generateCephConfig { daemonConfig = {
58+ mon = {
59+ enable = true;
60+ daemons = [ cfg.monA.name ];
61+ };
62+ mgr = {
63+ enable = true;
64+ daemons = [ cfg.monA.name ];
65+ };
66+ osd = {
67+ enable = true;
68+ daemons = [ cfg.osd0.name cfg.osd1.name ];
69+ };
70+ }; };
71+
72+ # Following deployment is based on the manual deployment described here:
73+ # https://docs.ceph.com/docs/master/install/manual-deployment/
74+ # For other ways to deploy a ceph cluster, look at the documentation at
75+ # https://docs.ceph.com/docs/master/
76+ testscript = { ... }: ''
77+ startAll;
78+
79+ $monA->waitForUnit("network.target");
80+
81+ # Bootstrap ceph-mon daemon
82+ $monA->mustSucceed(
83+ "sudo -u ceph ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'",
84+ "sudo -u ceph ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'",
85+ "sudo -u ceph ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring",
86+ "monmaptool --create --add ${cfg.monA.name} ${cfg.monA.ip} --fsid ${cfg.clusterId} /tmp/monmap",
87+ "sudo -u ceph ceph-mon --mkfs -i ${cfg.monA.name} --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring",
88+ "sudo -u ceph touch /var/lib/ceph/mon/ceph-${cfg.monA.name}/done",
89+ "systemctl start ceph-mon-${cfg.monA.name}"
90+ );
91+ $monA->waitForUnit("ceph-mon-${cfg.monA.name}");
92+ $monA->mustSucceed("ceph mon enable-msgr2");
93+
94+ # Can't check ceph status until a mon is up
95+ $monA->succeed("ceph -s | grep 'mon: 1 daemons'");
96+
97+ # Start the ceph-mgr daemon, after copying in the keyring
98+ $monA->mustSucceed(
99+ "sudo -u ceph mkdir -p /var/lib/ceph/mgr/ceph-${cfg.monA.name}/",
100+ "ceph auth get-or-create mgr.${cfg.monA.name} mon 'allow profile mgr' osd 'allow *' mds 'allow *' > /var/lib/ceph/mgr/ceph-${cfg.monA.name}/keyring",
101+ "systemctl start ceph-mgr-${cfg.monA.name}"
102+ );
103+ $monA->waitForUnit("ceph-mgr-a");
104+ $monA->waitUntilSucceeds("ceph -s | grep 'quorum ${cfg.monA.name}'");
105+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
106+
107+ # Bootstrap both OSDs
108+ $monA->mustSucceed(
109+ "mkfs.xfs /dev/vdb",
110+ "mkfs.xfs /dev/vdc",
111+ "mkdir -p /var/lib/ceph/osd/ceph-${cfg.osd0.name}",
112+ "mount /dev/vdb /var/lib/ceph/osd/ceph-${cfg.osd0.name}",
113+ "mkdir -p /var/lib/ceph/osd/ceph-${cfg.osd1.name}",
114+ "mount /dev/vdc /var/lib/ceph/osd/ceph-${cfg.osd1.name}",
115+ "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-${cfg.osd0.name}/keyring --name osd.${cfg.osd0.name} --add-key ${cfg.osd0.key}",
116+ "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-${cfg.osd1.name}/keyring --name osd.${cfg.osd1.name} --add-key ${cfg.osd1.key}",
117+ "echo '{\"cephx_secret\": \"${cfg.osd0.key}\"}' | ceph osd new ${cfg.osd0.uuid} -i -",
118+ "echo '{\"cephx_secret\": \"${cfg.osd1.key}\"}' | ceph osd new ${cfg.osd1.uuid} -i -"
119+ );
120+
121+ # Initialize the OSDs with regular filestore
122+ $monA->mustSucceed(
123+ "ceph-osd -i ${cfg.osd0.name} --mkfs --osd-uuid ${cfg.osd0.uuid}",
124+ "ceph-osd -i ${cfg.osd1.name} --mkfs --osd-uuid ${cfg.osd1.uuid}",
125+ "chown -R ceph:ceph /var/lib/ceph/osd",
126+ "systemctl start ceph-osd-${cfg.osd0.name}",
127+ "systemctl start ceph-osd-${cfg.osd1.name}"
128+ );
129+ $monA->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
130+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
131+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
132+
133+ $monA->mustSucceed(
134+ "ceph osd pool create single-node-test 100 100",
135+ "ceph osd pool ls | grep 'single-node-test'",
136+ "ceph osd pool rename single-node-test single-node-other-test",
137+ "ceph osd pool ls | grep 'single-node-other-test'"
138+ );
139+ $monA->waitUntilSucceeds("ceph -s | grep '1 pools, 100 pgs'");
140+ $monA->mustSucceed(
141+ "ceph osd getcrushmap -o crush",
142+ "crushtool -d crush -o decrushed",
143+ "sed 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' decrushed > modcrush",
144+ "crushtool -c modcrush -o recrushed",
145+ "ceph osd setcrushmap -i recrushed",
146+ "ceph osd pool set single-node-other-test size 2"
147+ );
148+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
149+ $monA->waitUntilSucceeds("ceph -s | grep '100 active+clean'");
150+ $monA->mustFail(
151+ "ceph osd pool ls | grep 'multi-node-test'",
152+ "ceph osd pool delete single-node-other-test single-node-other-test --yes-i-really-really-mean-it"
153+ );
154+
155+ # Shut down ceph by stopping ceph.target.
156+ $monA->mustSucceed("systemctl stop ceph.target");
157+
158+ # Start it up
159+ $monA->succeed("systemctl start ceph.target");
160+ $monA->waitForUnit("ceph-mon-${cfg.monA.name}");
161+ $monA->waitForUnit("ceph-mgr-${cfg.monA.name}");
162+ $monA->waitForUnit("ceph-osd-${cfg.osd0.name}");
163+ $monA->waitForUnit("ceph-osd-${cfg.osd1.name}");
164+
165+ # Ensure the cluster comes back up again
166+ $monA->succeed("ceph -s | grep 'mon: 1 daemons'");
167+ $monA->waitUntilSucceeds("ceph -s | grep 'quorum ${cfg.monA.name}'");
168+ $monA->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
169+ $monA->waitUntilSucceeds("ceph -s | grep 'mgr: ${cfg.monA.name}(active,'");
170+ $monA->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
171+ '';
172+in {
173+ name = "basic-single-node-ceph-cluster";
174+ meta = with pkgs.stdenv.lib.maintainers; {
175+ maintainers = [ lejonet johanot ];
176+ };
177+
178+ nodes = {
179+ monA = generateHost { pkgs = pkgs; cephConfig = cephConfigMonA; networkConfig = networkMonA; };
180+ };
181+
182+ testScript = testscript;
183+})
nixos/tests/ceph.nixdeleted−161
@@ -1,161 +0,0 @@
1−import ./make-test.nix ({pkgs, lib, ...}: {
2− name = "All-in-one-basic-ceph-cluster";
3− meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ johanot lejonet ];
5− };
6−
7− nodes = {
8− aio = { pkgs, ... }: {
9− virtualisation = {
10− memorySize = 1536;
11− emptyDiskImages = [ 20480 20480 ];
12− vlans = [ 1 ];
13− };
14−
15− networking = {
16− useDHCP = false;
17− interfaces.eth1.ipv4.addresses = pkgs.lib.mkOverride 0 [
18− { address = "192.168.1.1"; prefixLength = 24; }
19− ];
20− };
21−
22− environment.systemPackages = with pkgs; [
23− bash
24− sudo
25− ceph
26− xfsprogs
27− ];
28−
29− boot.kernelModules = [ "xfs" ];
30−
31− services.ceph.enable = true;
32− services.ceph.global = {
33− fsid = "066ae264-2a5d-4729-8001-6ad265f50b03";
34− monInitialMembers = "aio";
35− monHost = "192.168.1.1";
36− };
37−
38− services.ceph.mon = {
39− enable = true;
40− daemons = [ "aio" ];
41− };
42−
43− services.ceph.mgr = {
44− enable = true;
45− daemons = [ "aio" ];
46− };
47−
48− services.ceph.osd = {
49− enable = true;
50− daemons = [ "0" "1" ];
51− };
52−
53− # So that we don't have to battle systemd when bootstraping
54− systemd.targets.ceph.wantedBy = lib.mkForce [];
55− };
56− };
57−
58− testScript = { ... }: ''
59− startAll;
60−
61− $aio->waitForUnit("network.target");
62−
63− # Create the ceph-related directories
64− $aio->mustSucceed(
65− "mkdir -p /var/lib/ceph/mgr/ceph-aio",
66− "mkdir -p /var/lib/ceph/mon/ceph-aio",
67− "mkdir -p /var/lib/ceph/osd/ceph-{0,1}",
68− "chown ceph:ceph -R /var/lib/ceph/",
69− "mkdir -p /etc/ceph",
70− "chown ceph:ceph -R /etc/ceph"
71− );
72−
73− # Bootstrap ceph-mon daemon
74− $aio->mustSucceed(
75− "sudo -u ceph ceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'",
76− "sudo -u ceph ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *'",
77− "sudo -u ceph ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring",
78− "monmaptool --create --add aio 192.168.1.1 --fsid 066ae264-2a5d-4729-8001-6ad265f50b03 /tmp/monmap",
79− "sudo -u ceph ceph-mon --mkfs -i aio --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring",
80− "sudo -u ceph touch /var/lib/ceph/mon/ceph-aio/done",
81− "systemctl start ceph-mon-aio"
82− );
83− $aio->waitForUnit("ceph-mon-aio");
84− $aio->mustSucceed("ceph mon enable-msgr2");
85−
86− # Can't check ceph status until a mon is up
87− $aio->succeed("ceph -s | grep 'mon: 1 daemons'");
88−
89− # Start the ceph-mgr daemon, it has no deps and hardly any setup
90− $aio->mustSucceed(
91− "ceph auth get-or-create mgr.aio mon 'allow profile mgr' osd 'allow *' mds 'allow *' > /var/lib/ceph/mgr/ceph-aio/keyring",
92− "systemctl start ceph-mgr-aio"
93− );
94− $aio->waitForUnit("ceph-mgr-aio");
95− $aio->waitUntilSucceeds("ceph -s | grep 'quorum aio'");
96− $aio->waitUntilSucceeds("ceph -s | grep 'mgr: aio(active,'");
97−
98− # Bootstrap both OSDs
99− $aio->mustSucceed(
100− "mkfs.xfs /dev/vdb",
101− "mkfs.xfs /dev/vdc",
102− "mount /dev/vdb /var/lib/ceph/osd/ceph-0",
103− "mount /dev/vdc /var/lib/ceph/osd/ceph-1",
104− "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-0/keyring --name osd.0 --add-key AQBCEJNa3s8nHRAANvdsr93KqzBznuIWm2gOGg==",
105− "ceph-authtool --create-keyring /var/lib/ceph/osd/ceph-1/keyring --name osd.1 --add-key AQBEEJNac00kExAAXEgy943BGyOpVH1LLlHafQ==",
106− "echo '{\"cephx_secret\": \"AQBCEJNa3s8nHRAANvdsr93KqzBznuIWm2gOGg==\"}' | ceph osd new 55ba2294-3e24-478f-bee0-9dca4c231dd9 -i -",
107− "echo '{\"cephx_secret\": \"AQBEEJNac00kExAAXEgy943BGyOpVH1LLlHafQ==\"}' | ceph osd new 5e97a838-85b6-43b0-8950-cb56d554d1e5 -i -"
108− );
109−
110− # Initialize the OSDs with regular filestore
111− $aio->mustSucceed(
112− "ceph-osd -i 0 --mkfs --osd-uuid 55ba2294-3e24-478f-bee0-9dca4c231dd9",
113− "ceph-osd -i 1 --mkfs --osd-uuid 5e97a838-85b6-43b0-8950-cb56d554d1e5",
114− "chown -R ceph:ceph /var/lib/ceph/osd",
115− "systemctl start ceph-osd-0",
116− "systemctl start ceph-osd-1"
117− );
118−
119− $aio->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
120− $aio->waitUntilSucceeds("ceph -s | grep 'mgr: aio(active,'");
121− $aio->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
122−
123− $aio->mustSucceed(
124− "ceph osd pool create aio-test 100 100",
125− "ceph osd pool ls | grep 'aio-test'",
126− "ceph osd pool rename aio-test aio-other-test",
127− "ceph osd pool ls | grep 'aio-other-test'",
128− "ceph -s | grep '1 pools, 100 pgs'",
129− "ceph osd getcrushmap -o crush",
130− "crushtool -d crush -o decrushed",
131− "sed 's/step chooseleaf firstn 0 type host/step chooseleaf firstn 0 type osd/' decrushed > modcrush",
132− "crushtool -c modcrush -o recrushed",
133− "ceph osd setcrushmap -i recrushed",
134− "ceph osd pool set aio-other-test size 2"
135− );
136− $aio->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
137− $aio->waitUntilSucceeds("ceph -s | grep '100 active+clean'");
138− $aio->mustFail(
139− "ceph osd pool ls | grep 'aio-test'",
140− "ceph osd pool delete aio-other-test aio-other-test --yes-i-really-really-mean-it"
141− );
142−
143− # As we disable the target in the config, we still want to test that it works as intended
144− $aio->mustSucceed(
145− "systemctl stop ceph-osd-0",
146− "systemctl stop ceph-osd-1",
147− "systemctl stop ceph-mgr-aio",
148− "systemctl stop ceph-mon-aio"
149− );
150− $aio->succeed("systemctl start ceph.target");
151− $aio->waitForUnit("ceph-mon-aio");
152− $aio->waitForUnit("ceph-mgr-aio");
153− $aio->waitForUnit("ceph-osd-0");
154− $aio->waitForUnit("ceph-osd-1");
155− $aio->succeed("ceph -s | grep 'mon: 1 daemons'");
156− $aio->waitUntilSucceeds("ceph -s | grep 'quorum aio'");
157− $aio->waitUntilSucceeds("ceph osd stat | grep -e '2 osds: 2 up[^,]*, 2 in'");
158− $aio->waitUntilSucceeds("ceph -s | grep 'mgr: aio(active,'");
159− $aio->waitUntilSucceeds("ceph -s | grep 'HEALTH_OK'");
160− '';
161−})
nixos/tests/certmgr.nix+14−14
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77let
88 mkSpec = { host, service ? null, action }: {
99 inherit action;
@@ -123,17 +123,17 @@ in
123123 )));
124124 };
125125 testScript = ''
126− $machine->waitForUnit('cfssl.service');
127− $machine->waitUntilSucceeds('ls /tmp/decl.example.org-ca.pem');
128− $machine->waitUntilSucceeds('ls /tmp/decl.example.org-key.pem');
129− $machine->waitUntilSucceeds('ls /tmp/decl.example.org-cert.pem');
130− $machine->waitUntilSucceeds('ls /tmp/imp.example.org-ca.pem');
131− $machine->waitUntilSucceeds('ls /tmp/imp.example.org-key.pem');
132− $machine->waitUntilSucceeds('ls /tmp/imp.example.org-cert.pem');
133− $machine->waitForUnit('nginx.service');
134− $machine->succeed('[ "1" -lt "$(journalctl -u nginx | grep "Starting Nginx" | wc -l)" ]');
135− $machine->succeed('curl --cacert /tmp/imp.example.org-ca.pem https://imp.example.org');
136− $machine->succeed('curl --cacert /tmp/decl.example.org-ca.pem https://decl.example.org');
126+ machine.wait_for_unit("cfssl.service")
127+ machine.wait_until_succeeds("ls /tmp/decl.example.org-ca.pem")
128+ machine.wait_until_succeeds("ls /tmp/decl.example.org-key.pem")
129+ machine.wait_until_succeeds("ls /tmp/decl.example.org-cert.pem")
130+ machine.wait_until_succeeds("ls /tmp/imp.example.org-ca.pem")
131+ machine.wait_until_succeeds("ls /tmp/imp.example.org-key.pem")
132+ machine.wait_until_succeeds("ls /tmp/imp.example.org-cert.pem")
133+ machine.wait_for_unit("nginx.service")
134+ assert 1 < int(machine.succeed('journalctl -u nginx | grep "Starting Nginx" | wc -l'))
135+ machine.succeed("curl --cacert /tmp/imp.example.org-ca.pem https://imp.example.org")
136+ machine.succeed("curl --cacert /tmp/decl.example.org-ca.pem https://decl.example.org")
137137 '';
138138 };
139139
@@ -143,8 +143,8 @@ in
143143 test = mkSpec { host = "command.example.org"; action = "touch /tmp/command.executed"; };
144144 };
145145 testScript = ''
146− $machine->waitForUnit('cfssl.service');
147− $machine->waitUntilSucceeds('stat /tmp/command.executed');
146+ machine.wait_for_unit("cfssl.service")
147+ machine.wait_until_succeeds("stat /tmp/command.executed")
148148 '';
149149 };
150150
nixos/tests/cfssl.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "cfssl";
33
44 machine = { config, lib, pkgs, ... }:
@@ -60,8 +60,8 @@ import ./make-test.nix ({ pkgs, ...} : {
6060 });
6161 in
6262 ''
63− $machine->waitForUnit('cfssl.service');
64− $machine->waitUntilSucceeds('${cfsslrequest}');
65− $machine->succeed('ls /tmp/certificate-key.pem');
63+ machine.wait_for_unit("cfssl.service")
64+ machine.wait_until_succeeds("${cfsslrequest}")
65+ machine.succeed("ls /tmp/certificate-key.pem")
6666 '';
6767})
nixos/tests/cjdns.nix+25−22
@@ -17,7 +17,7 @@ let
1717
1818in
1919
20−import ./make-test.nix ({ pkgs, ...} : {
20+import ./make-test-python.nix ({ pkgs, ...} : {
2121 name = "cjdns";
2222 meta = with pkgs.stdenv.lib.maintainers; {
2323 maintainers = [ ehmry ];
@@ -83,36 +83,39 @@ import ./make-test.nix ({ pkgs, ...} : {
8383
8484 testScript =
8585 ''
86− startAll;
86+ import re
8787
88− $alice->waitForUnit("cjdns.service");
89− $bob->waitForUnit("cjdns.service");
90− $carol->waitForUnit("cjdns.service");
88+ start_all()
9189
92− sub cjdnsIp {
93− my ($machine) = @_;
94− my $ip = (split /[ \/]+/, $machine->succeed("ip -o -6 addr show dev tun0"))[3];
95− $machine->log("has ip $ip");
96− return $ip;
97− }
90+ alice.wait_for_unit("cjdns.service")
91+ bob.wait_for_unit("cjdns.service")
92+ carol.wait_for_unit("cjdns.service")
9893
99− my $aliceIp6 = cjdnsIp $alice;
100− my $bobIp6 = cjdnsIp $bob;
101− my $carolIp6 = cjdnsIp $carol;
94+
95+ def cjdns_ip(machine):
96+ res = machine.succeed("ip -o -6 addr show dev tun0")
97+ ip = re.split("\s+|/", res)[3]
98+ machine.log("has ip {}".format(ip))
99+ return ip
100+
101+
102+ alice_ip6 = cjdns_ip(alice)
103+ bob_ip6 = cjdns_ip(bob)
104+ carol_ip6 = cjdns_ip(carol)
102105
103106 # ping a few times each to let the routing table establish itself
104107
105− $alice->succeed("ping -c 4 $carolIp6");
106− $bob->succeed("ping -c 4 $carolIp6");
108+ alice.succeed("ping -c 4 {}".format(carol_ip6))
109+ bob.succeed("ping -c 4 {}".format(carol_ip6))
107110
108− $carol->succeed("ping -c 4 $aliceIp6");
109− $carol->succeed("ping -c 4 $bobIp6");
111+ carol.succeed("ping -c 4 {}".format(alice_ip6))
112+ carol.succeed("ping -c 4 {}".format(bob_ip6))
110113
111− $alice->succeed("ping -c 4 $bobIp6");
112− $bob->succeed("ping -c 4 $aliceIp6");
114+ alice.succeed("ping -c 4 {}".format(bob_ip6))
115+ bob.succeed("ping -c 4 {}".format(alice_ip6))
113116
114− $alice->waitForUnit("httpd.service");
117+ alice.wait_for_unit("httpd.service")
115118
116− $bob->succeed("curl --fail -g http://[$aliceIp6]");
119+ bob.succeed("curl --fail -g http://[{}]".format(alice_ip6))
117120 '';
118121})
nixos/tests/cloud-init.nix+8−5
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77with pkgs.lib;
88
99let
@@ -30,6 +30,7 @@ let
3030 '';
3131 };
3232in makeTest {
33+ name = "cloud-init";
3334 meta = with pkgs.stdenv.lib.maintainers; {
3435 maintainers = [ lewo ];
3536 };
@@ -40,10 +41,12 @@ in makeTest {
4041 services.cloud-init.enable = true;
4142 };
4243 testScript = ''
43− $machine->start;
44− $machine->waitForUnit("cloud-init.service");
45− $machine->succeed("cat /tmp/cloudinit-write-file | grep -q 'cloudinit'");
44+ machine.start()
45+ machine.wait_for_unit("cloud-init.service")
46+ machine.succeed("cat /tmp/cloudinit-write-file | grep -q 'cloudinit'")
4647
47− $machine->waitUntilSucceeds("cat /root/.ssh/authorized_keys | grep -q 'should be a key!'");
48+ machine.wait_until_succeeds(
49+ "cat /root/.ssh/authorized_keys | grep -q 'should be a key!'"
50+ )
4851 '';
4952}
nixos/tests/colord.nixdeleted−18
@@ -1,18 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "colord";
6−
7− meta = {
8− maintainers = pkgs.colord.meta.maintainers;
9− };
10−
11− machine = { pkgs, ... }: {
12− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
13− };
14−
15− testScript = ''
16− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.colord.installedTests}/share'");
17− '';
18−})
nixos/tests/common/letsencrypt/common.nix+4−22
@@ -1,27 +1,9 @@
1−{ lib, nodes, ... }: {
1+{ lib, nodes, pkgs, ... }: let
2+ letsencrypt-ca = nodes.letsencrypt.config.test-support.letsencrypt.caCert;
3+in {
24 networking.nameservers = [
35 nodes.letsencrypt.config.networking.primaryIPAddress
46 ];
57
6− nixpkgs.overlays = lib.singleton (self: super: {
7− cacert = super.cacert.overrideDerivation (drv: {
8− installPhase = (drv.installPhase or "") + ''
9− cat "${nodes.letsencrypt.config.test-support.letsencrypt.caCert}" \
10− >> "$out/etc/ssl/certs/ca-bundle.crt"
11− '';
12− });
13−
14− # Override certifi so that it accepts fake certificate for Let's Encrypt
15− # Need to override the attribute used by simp_le, which is python3Packages
16− python3Packages = (super.python3.override {
17− packageOverrides = lib.const (pysuper: {
18− certifi = pysuper.certifi.overridePythonAttrs (attrs: {
19− postPatch = (attrs.postPatch or "") + ''
20− cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \
21− > certifi/cacert.pem
22− '';
23− });
24− });
25− }).pkgs;
26− });
8+ security.pki.certificateFiles = [ letsencrypt-ca ];
279}
nixos/tests/common/letsencrypt/default.nix+30−340
@@ -1,6 +1,3 @@
1−# Fully pluggable module to have Letsencrypt's Boulder ACME service running in
2−# a test environment.
3−#
41# The certificate for the ACME service is exported as:
52#
63# config.test-support.letsencrypt.caCert
@@ -54,277 +51,35 @@
5451# that it has to be started _before_ the ACME service.
5552{ config, pkgs, lib, ... }:
5653
57−let
58− softhsm = pkgs.stdenv.mkDerivation rec {
59− pname = "softhsm";
60− version = "1.3.8";
61−
62− src = pkgs.fetchurl {
63− url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
64− sha256 = "0flmnpkgp65ym7w3qyg78d3fbmvq3aznmi66rgd420n33shf7aif";
65− };
66−
67− configureFlags = [ "--with-botan=${pkgs.botan}" ];
68− buildInputs = [ pkgs.sqlite ];
69− };
70−
71− pkcs11-proxy = pkgs.stdenv.mkDerivation {
72− name = "pkcs11-proxy";
73−
74− src = pkgs.fetchFromGitHub {
75− owner = "SUNET";
76− repo = "pkcs11-proxy";
77− rev = "944684f78bca0c8da6cabe3fa273fed3db44a890";
78− sha256 = "1nxgd29y9wmifm11pjcdpd2y293p0dgi0x5ycis55miy97n0f5zy";
79− };
80−
81− postPatch = "patchShebangs mksyscalls.sh";
82−
83− nativeBuildInputs = [ pkgs.cmake ];
84− buildInputs = [ pkgs.openssl pkgs.libseccomp ];
85− };
86−
87− mkGoDep = { goPackagePath, url ? "https://${goPackagePath}", rev, sha256 }: {
88− inherit goPackagePath;
89− src = pkgs.fetchgit { inherit url rev sha256; };
90− };
91−
92− goose = let
93− owner = "liamstask";
94− repo = "goose";
95− rev = "8488cc47d90c8a502b1c41a462a6d9cc8ee0a895";
96− version = "20150116";
97−
98− in pkgs.buildGoPackage rec {
99− name = "${repo}-${version}";
100−
101− src = pkgs.fetchFromBitbucket {
102− name = "${name}-src";
103− inherit rev owner repo;
104− sha256 = "1jy0pscxjnxjdg3hj111w21g8079rq9ah2ix5ycxxhbbi3f0wdhs";
105− };
106−
107− goPackagePath = "bitbucket.org/${owner}/${repo}";
108− subPackages = [ "cmd/goose" ];
109− extraSrcs = map mkGoDep [
110− { goPackagePath = "github.com/go-sql-driver/mysql";
111− rev = "2e00b5cd70399450106cec6431c2e2ce3cae5034";
112− sha256 = "085g48jq9hzmlcxg122n0c4pi41sc1nn2qpx1vrl2jfa8crsppa5";
113− }
114− { goPackagePath = "github.com/kylelemons/go-gypsy";
115− rev = "08cad365cd28a7fba23bb1e57aa43c5e18ad8bb8";
116− sha256 = "1djv7nii3hy451n5jlslk0dblqzb1hia1cbqpdwhnps1g8hqjy8q";
117− }
118− { goPackagePath = "github.com/lib/pq";
119− rev = "ba5d4f7a35561e22fbdf7a39aa0070f4d460cfc0";
120− sha256 = "1mfbqw9g00bk24bfmf53wri5c2wqmgl0qh4sh1qv2da13a7cwwg3";
121− }
122− { goPackagePath = "github.com/mattn/go-sqlite3";
123− rev = "2acfafad5870400156f6fceb12852c281cbba4d5";
124− sha256 = "1rpgil3w4hh1cibidskv1js898hwz83ps06gh0hm3mym7ki8d5h7";
125− }
126− { goPackagePath = "github.com/ziutek/mymysql";
127− rev = "0582bcf675f52c0c2045c027fd135bd726048f45";
128− sha256 = "0bkc9x8sgqbzgdimsmsnhb0qrzlzfv33fgajmmjxl4hcb21qz3rf";
129− }
130− { goPackagePath = "golang.org/x/net";
131− url = "https://go.googlesource.com/net";
132− rev = "10c134ea0df15f7e34d789338c7a2d76cc7a3ab9";
133− sha256 = "14cbr2shl08gyg85n5gj7nbjhrhhgrd52h073qd14j97qcxsakcz";
134− }
135− ];
136− };
137−
138− boulder = let
139− owner = "letsencrypt";
140− repo = "boulder";
141− rev = "9c6a1f2adc4c26d925588f5ae366cfd4efb7813a";
142− version = "20180129";
143−
144− in pkgs.buildGoPackage rec {
145− name = "${repo}-${version}";
146−
147− src = pkgs.fetchFromGitHub {
148− name = "${name}-src";
149− inherit rev owner repo;
150− sha256 = "09kszswrifm9rc6idfaq0p1mz5w21as2qbc8gd5pphrq9cf9pn55";
151− };
152−
153− postPatch = ''
154− # compat for go < 1.8
155− sed -i -e 's/time\.Until(\([^)]\+\))/\1.Sub(time.Now())/' \
156− test/ocsp/helper/helper.go
157−
158− find test -type f -exec sed -i -e '/libpkcs11-proxy.so/ {
159− s,/usr/local,${pkcs11-proxy},
160− }' {} +
161−
162− sed -i -r \
163− -e '/^def +install/a \ return True' \
164− -e 's,exec \./bin/,,' \
165− test/startservers.py
166−
167− cat ${lib.escapeShellArg snakeOilCerts.ca.key} > test/test-ca.key
168− cat ${lib.escapeShellArg snakeOilCerts.ca.cert} > test/test-ca.pem
169− '';
170−
171− # Until vendored pkcs11 is go 1.9 compatible
172− preBuild = ''
173− rm -r go/src/github.com/letsencrypt/boulder/vendor/github.com/miekg/pkcs11
174− '';
175−
176− # XXX: Temporarily brought back putting the source code in the output,
177− # since e95f17e2720e67e2eabd59d7754c814d3e27a0b2 was removing that from
178− # buildGoPackage.
179− preInstall = ''
180− mkdir -p $out
181− pushd "$NIX_BUILD_TOP/go"
182− while read f; do
183− echo "$f" | grep -q '^./\(src\|pkg/[^/]*\)/${goPackagePath}' \
184− || continue
185− mkdir -p "$(dirname "$out/share/go/$f")"
186− cp "$NIX_BUILD_TOP/go/$f" "$out/share/go/$f"
187− done < <(find . -type f)
188− popd
189− '';
190−
191− extraSrcs = map mkGoDep [
192− { goPackagePath = "github.com/miekg/pkcs11";
193− rev = "6dbd569b952ec150d1425722dbbe80f2c6193f83";
194− sha256 = "1m8g6fx7df6hf6q6zsbyw1icjmm52dmsx28rgb0h930wagvngfwb";
195− }
196− ];
197−
198− goPackagePath = "github.com/${owner}/${repo}";
199− buildInputs = [ pkgs.libtool ];
200− };
201−
202− boulderSource = "${boulder.out}/share/go/src/${boulder.goPackagePath}";
203−
204− softHsmConf = pkgs.writeText "softhsm.conf" ''
205− 0:/var/lib/softhsm/slot0.db
206− 1:/var/lib/softhsm/slot1.db
207− '';
20854
55+let
20956 snakeOilCerts = import ./snakeoil-certs.nix;
21057
211− wfeDomain = "acme-v01.api.letsencrypt.org";
58+ wfeDomain = "acme-v02.api.letsencrypt.org";
21259 wfeCertFile = snakeOilCerts.${wfeDomain}.cert;
21360 wfeKeyFile = snakeOilCerts.${wfeDomain}.key;
21461
21562 siteDomain = "letsencrypt.org";
21663 siteCertFile = snakeOilCerts.${siteDomain}.cert;
21764 siteKeyFile = snakeOilCerts.${siteDomain}.key;
218−
219− # Retrieved via:
220− # curl -s -I https://acme-v01.api.letsencrypt.org/terms \
221− # | sed -ne 's/^[Ll]ocation: *//p'
222− tosUrl = "https://letsencrypt.org/documents/2017.11.15-LE-SA-v1.2.pdf";
223− tosPath = builtins.head (builtins.match "https?://[^/]+(.*)" tosUrl);
224−
225− tosFile = pkgs.fetchurl {
226− url = tosUrl;
227− sha256 = "0yvyckqzj0b1xi61sypcha82nanizzlm8yqy828h2jbza7cxi26c";
228− };
229−
65+ pebble = pkgs.pebble;
23066 resolver = let
23167 message = "You need to define a resolver for the letsencrypt test module.";
23268 firstNS = lib.head config.networking.nameservers;
23369 in if config.networking.nameservers == [] then throw message else firstNS;
23470
235− cfgDir = pkgs.stdenv.mkDerivation {
236− name = "boulder-config";
237− src = "${boulderSource}/test/config";
238− nativeBuildInputs = [ pkgs.jq ];
239− phases = [ "unpackPhase" "patchPhase" "installPhase" ];
240− postPatch = ''
241− sed -i -e 's/5002/80/' -e 's/5002/443/' va.json
242− sed -i -e '/listenAddress/s/:4000/:80/' wfe.json
243− sed -i -r \
244− -e ${lib.escapeShellArg "s,http://boulder:4000/terms/v1,${tosUrl},g"} \
245− -e 's,http://(boulder|127\.0\.0\.1):4000,https://${wfeDomain},g' \
246− -e '/dnsResolver/s/127\.0\.0\.1:8053/${resolver}:53/' \
247− *.json
248− if grep 4000 *.json; then exit 1; fi
249−
250− # Change all ports from 1909X to 909X, because the 1909X range of ports is
251− # allocated by startservers.py in order to intercept gRPC communication.
252− sed -i -e 's/\<1\(909[0-9]\)\>/\1/' *.json
253−
254− # Patch out all additional issuer certs
255− jq '. + {ca: (.ca + {Issuers:
256− [.ca.Issuers[] | select(.CertFile == "test/test-ca.pem")]
257− })}' ca.json > tmp
258− mv tmp ca.json
259− '';
260− installPhase = "cp -r . \"$out\"";
261− };
262−
263− components = {
264− gsb-test-srv.args = "-apikey my-voice-is-my-passport";
265− gsb-test-srv.waitForPort = 6000;
266− gsb-test-srv.first = true;
267− boulder-sa.args = "--config ${cfgDir}/sa.json";
268− boulder-wfe.args = "--config ${cfgDir}/wfe.json";
269− boulder-ra.args = "--config ${cfgDir}/ra.json";
270− boulder-ca.args = "--config ${cfgDir}/ca.json";
271− boulder-va.args = "--config ${cfgDir}/va.json";
272− boulder-publisher.args = "--config ${cfgDir}/publisher.json";
273− boulder-publisher.waitForPort = 9091;
274− ocsp-updater.args = "--config ${cfgDir}/ocsp-updater.json";
275− ocsp-updater.after = [ "boulder-publisher" ];
276− ocsp-responder.args = "--config ${cfgDir}/ocsp-responder.json";
277− ct-test-srv = {};
278− mail-test-srv.args = let
279− key = "${boulderSource}/test/mail-test-srv/minica-key.pem";
280− crt = "${boulderSource}/test/mail-test-srv/minica.pem";
281− in
282− "--closeFirst 5 --cert ${crt} --key ${key}";
71+ pebbleConf.pebble = {
72+ listenAddress = "0.0.0.0:443";
73+ managementListenAddress = "0.0.0.0:15000";
74+ certificate = snakeOilCerts.${wfeDomain}.cert;
75+ privateKey = snakeOilCerts.${wfeDomain}.key;
76+ httpPort = 80;
77+ tlsPort = 443;
78+ ocspResponderURL = "http://0.0.0.0:4002";
28379 };
28480
285− commonPath = [ softhsm pkgs.mariadb goose boulder ];
286−
287− mkServices = a: b: with lib; listToAttrs (concatLists (mapAttrsToList a b));
288−
289− componentServices = mkServices (name: attrs: let
290− mkSrvName = n: "boulder-${n}.service";
291− firsts = lib.filterAttrs (lib.const (c: c.first or false)) components;
292− firstServices = map mkSrvName (lib.attrNames firsts);
293− firstServicesNoSelf = lib.remove "boulder-${name}.service" firstServices;
294− additionalAfter = firstServicesNoSelf ++ map mkSrvName (attrs.after or []);
295− needsPort = attrs ? waitForPort;
296− inits = map (n: "boulder-init-${n}.service") [ "mysql" "softhsm" ];
297− portWaiter = {
298− name = "boulder-${name}";
299− value = {
300− description = "Wait For Port ${toString attrs.waitForPort} (${name})";
301− after = [ "boulder-real-${name}.service" "bind.service" ];
302− requires = [ "boulder-real-${name}.service" ];
303− requiredBy = [ "boulder.service" ];
304− serviceConfig.Type = "oneshot";
305− serviceConfig.RemainAfterExit = true;
306− script = let
307− netcat = "${pkgs.libressl.nc}/bin/nc";
308− portCheck = "${netcat} -z 127.0.0.1 ${toString attrs.waitForPort}";
309− in "while ! ${portCheck}; do :; done";
310− };
311− };
312− in lib.optional needsPort portWaiter ++ lib.singleton {
313− name = if needsPort then "boulder-real-${name}" else "boulder-${name}";
314− value = {
315− description = "Boulder ACME Component (${name})";
316− after = inits ++ additionalAfter;
317− requires = inits;
318− requiredBy = [ "boulder.service" ];
319− path = commonPath;
320− environment.GORACE = "halt_on_error=1";
321− environment.SOFTHSM_CONF = softHsmConf;
322− environment.PKCS11_PROXY_SOCKET = "tcp://127.0.0.1:5657";
323− serviceConfig.WorkingDirectory = boulderSource;
324− serviceConfig.ExecStart = "${boulder}/bin/${name} ${attrs.args or ""}";
325− serviceConfig.Restart = "on-failure";
326− };
327− }) components;
81+ pebbleConfFile = pkgs.writeText "pebble.conf" (builtins.toJSON pebbleConf);
82+ pebbleDataDir = "/root/pebble";
32883
32984in {
33085 imports = [ ../resolver.nix ];
@@ -352,94 +107,29 @@ in {
352107 networking.firewall.enable = false;
353108
354109 networking.extraHosts = ''
355− 127.0.0.1 ${toString [
356− "sa.boulder" "ra.boulder" "wfe.boulder" "ca.boulder" "va.boulder"
357− "publisher.boulder" "ocsp-updater.boulder" "admin-revoker.boulder"
358− "boulder" "boulder-mysql" wfeDomain
359− ]}
110+ 127.0.0.1 ${wfeDomain}
360111 ${config.networking.primaryIPAddress} ${wfeDomain} ${siteDomain}
361112 '';
362113
363− services.mysql.enable = true;
364− services.mysql.package = pkgs.mariadb;
365−
366− services.nginx.enable = true;
367− services.nginx.recommendedProxySettings = true;
368− # This fixes the test on i686
369− services.nginx.commonHttpConfig = ''
370− server_names_hash_bucket_size 64;
371− '';
372− services.nginx.virtualHosts.${wfeDomain} = {
373− onlySSL = true;
374− enableACME = false;
375− sslCertificate = wfeCertFile;
376− sslCertificateKey = wfeKeyFile;
377− locations."/".proxyPass = "http://127.0.0.1:80";
378− };
379− services.nginx.virtualHosts.${siteDomain} = {
380− onlySSL = true;
381− enableACME = false;
382− sslCertificate = siteCertFile;
383− sslCertificateKey = siteKeyFile;
384− locations."= ${tosPath}".alias = tosFile;
385− };
386−
387114 systemd.services = {
388− pkcs11-daemon = {
389− description = "PKCS11 Daemon";
390− after = [ "boulder-init-softhsm.service" ];
391− before = map (n: "${n}.service") (lib.attrNames componentServices);
392− wantedBy = [ "multi-user.target" ];
393− environment.SOFTHSM_CONF = softHsmConf;
394− environment.PKCS11_DAEMON_SOCKET = "tcp://127.0.0.1:5657";
395− serviceConfig.ExecStart = let
396− softhsmLib = "${softhsm}/lib/softhsm/libsofthsm.so";
397− in "${pkcs11-proxy}/bin/pkcs11-daemon ${softhsmLib}";
398− };
399−
400− boulder-init-mysql = {
401− description = "Boulder ACME Init (MySQL)";
402− after = [ "mysql.service" ];
403− serviceConfig.Type = "oneshot";
404− serviceConfig.RemainAfterExit = true;
405− serviceConfig.WorkingDirectory = boulderSource;
406− path = commonPath;
407− script = "${pkgs.bash}/bin/sh test/create_db.sh";
408− };
409−
410− boulder-init-softhsm = {
411− description = "Boulder ACME Init (SoftHSM)";
412− environment.SOFTHSM_CONF = softHsmConf;
413− serviceConfig.Type = "oneshot";
414− serviceConfig.RemainAfterExit = true;
415− serviceConfig.WorkingDirectory = boulderSource;
416− preStart = "mkdir -p /var/lib/softhsm";
417− path = commonPath;
115+ pebble = {
116+ enable = true;
117+ description = "Pebble ACME server";
118+ requires = [ ];
119+ wantedBy = [ "network.target" ];
120+ preStart = ''
121+ mkdir ${pebbleDataDir}
122+ '';
418123 script = ''
419− softhsm --slot 0 --init-token \
420− --label intermediate --pin 5678 --so-pin 1234
421− softhsm --slot 0 --import test/test-ca.key \
422− --label intermediate_key --pin 5678 --id FB
423− softhsm --slot 1 --init-token \
424− --label root --pin 5678 --so-pin 1234
425− softhsm --slot 1 --import test/test-root.key \
426− --label root_key --pin 5678 --id FA
124+ cd ${pebbleDataDir}
125+ ${pebble}/bin/pebble -config ${pebbleConfFile}
427126 '';
127+ serviceConfig = {
128+ # Required to bind on privileged ports.
129+ User = "root";
130+ Group = "root";
131+ };
428132 };
429−
430− boulder = {
431− description = "Boulder ACME Server";
432− after = map (n: "${n}.service") (lib.attrNames componentServices);
433− wantedBy = [ "multi-user.target" ];
434− serviceConfig.Type = "oneshot";
435− serviceConfig.RemainAfterExit = true;
436− script = let
437− ports = lib.range 8000 8005 ++ lib.singleton 80;
438− netcat = "${pkgs.libressl.nc}/bin/nc";
439− mkPortCheck = port: "${netcat} -z 127.0.0.1 ${toString port}";
440− checks = "(${lib.concatMapStringsSep " && " mkPortCheck ports})";
441− in "while ! ${checks}; do :; done";
442− };
443− } // componentServices;
133+ };
444134 };
445135}
nixos/tests/common/letsencrypt/mkcerts.nix+1−1
@@ -1,7 +1,7 @@
11{ pkgs ? import <nixpkgs> {}
22, lib ? pkgs.lib
33
4−, domains ? [ "acme-v01.api.letsencrypt.org" "letsencrypt.org" ]
4+, domains ? [ "acme-v02.api.letsencrypt.org" "letsencrypt.org" ]
55}:
66
77pkgs.runCommand "letsencrypt-snakeoil-ca" {
nixos/tests/common/letsencrypt/snakeoil-certs.nix+226−225
@@ -2,252 +2,253 @@
22{
33 ca.key = builtins.toFile "ca.key" ''
44 -----BEGIN PRIVATE KEY-----
5− MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDfdVxC/4HwhuzD
6− 9or9CDDu3TBQE5lirJI5KYmfMZtfgdzEjgOzmR9AVSkn2rQeCqzM5m+YCzPO+2y7
7− 0Fdk7vDORi1OdhYfUQIW6/TZ27xEjx4t82j9i705yUqTJZKjMbD830geXImJ6VGj
8− Nv/WisTHmwBspWKefYQPN68ZvYNCn0d5rYJg9uROZPJHSI0MYj9iERWIPN+xhZoS
9− xN74ILJ0rEOQfx2GHDhTr99vZYAFqbAIfh35fYulRWarUSekI+rDxa83FD8q9cMg
10− OP84KkLep2dRXXTbUWErGUOpHP55M9M7ws0RVNdl9PUSbDgChl7yYlHCde3261q/
11− zGp5dMV/t/jXXNUgRurvXc4gUKKjS4Sffvg0XVnPs3sMlZ4JNmycK9klgISVmbTK
12− VcjRRJv8Bva2NQVsJ9TIryV0QEk94DucgsC3LbhQfQdmnWVcEdzwrZHNpk9az5mn
13− w42RuvZW9L19T7xpIrdLSHaOis4VEquZjkWIhfIz0DVMeXtYEQmwqFG23Ww0utcp
14− mCW4FPvpyYs5GAPmGWfrlMxsLD/7eteot3AheC+56ZBoVBnI8FFvIX2qci+gfVDu
15− CjvDmbyS/0NvxLGqvSC1GUPmWP3TR5Fb1H8Rp+39zJHRmH+qYWlhcv6p7FlY2/6d
16− 9Rkw8WKRTSCB7yeUdNNPiPopk6N4NwIDAQABAoICAQCzV0ei5dntpvwjEp3eElLj
17− glYiDnjOPt5kTjgLsg6XCmyau7ewzrXMNgz/1YE1ky+4i0EI8AS2nAdafQ2HDlXp
18− 11zJWfDLVYKtztYGe1qQU6TPEEo1I4/M7waRLliP7XO0n6cL5wzjyIQi0CNolprz
19− 8CzZBasutGHmrLQ1nmnYcGk2+NBo7f2yBUaFe27of3mLRVbYrrKBkU5kveiNkABp
20− r0/SipKxbbivQbm7d+TVpqiHSGDaOa54CEksOcfs7n6efOvw8qj326KtG9GJzDE6
21− 7XP4U19UHe40XuR0t7Zso/FmRyO6QzNUutJt5LjXHezZ75razTcdMyr0QCU8MUHH
22− jXZxQCsbt+9AmdxUMBm1SMNVBdHYM8oiNHynlgsEj9eM6jxDEss/Uc3FeKoHl+XL
23− L6m28guIB8NivqjVzZcwhxvdiQCzYxjyqMC+/eX7aaK4NIlX2QRMoDL6mJ58Bz/8
24− V2Qxp2UNVwKJFWAmpgXC+sq6XV/TP3HkOvd0OK82Nid2QxEvfE/EmOhU63qAjgUR
25− QnteLEcJ3MkGGurs05pYBDE7ejKVz6uu2tHahFMOv+yanGP2gfivnT9a323/nTqH
26− oR5ffMEI1u/ufpWU7sWXZfL/mH1L47x87k+9wwXHCPeSigcy+hFI7t1+rYsdCmz9
27− V6QtmxZHMLanwzh5R0ipcQKCAQEA8kuZIz9JyYP6L+5qmIUxiWESihVlRCSKIqLB
28− fJ5sQ06aDBV2sqS4XnoWsHuJWUd39rulks8cg8WIQu8oJwVkFI9EpARt/+a1fRP0
29− Ncc9qiBdP6VctQGgKfe5KyOfMzIBUl3zj2cAmU6q+CW1OgdhnEl4QhgBe5XQGquZ
30− Alrd2P2jhJbMO3sNFgzTy7xPEr3KqUy+L4gtRnGOegKIh8EllmsyMRO4eIrZV2z3
31− XI+S2ZLyUn3WHYkaJqvUFrbfekgBBmbk5Ead6ImlsLsBla6MolKrVYV1kN6KT+Y+
32− plcxNpWY8bnWfw5058OWPLPa9LPfReu9rxAeGT2ZLmAhSkjGxQKCAQEA7BkBzT3m
33− SIzop9RKl5VzYbVysCYDjFU9KYMW5kBIw5ghSMnRmU7kXIZUkc6C1L/v9cTNFFLw
34− ZSF4vCHLdYLmDysW2d4DU8fS4qdlDlco5A00g8T1FS7nD9CzdkVN/oix6ujw7RuI
35− 7pE1K3JELUYFBc8AZ7mIGGbddeCwnM+NdPIlhWzk5s4x4/r31cdk0gzor0kE4e+d
36− 5m0s1T4O/Iak6rc0MGDeTejZQg04p1eAJFYQ6OY23tJhH/kO8CMYnQ4fidfCkf8v
37− 85v4EC1MCorFR7J65uSj8MiaL7LTXPvLAkgFls1c3ijQ2tJ8qXvqmfo0by33T1OF
38− ZGyaOP9/1WQSywKCAQB47m6CfyYO5EZNAgxGD8SHsuGT9dXTSwF/BAjacB/NAEA2
39− 48eYpko3LWyBrUcCPn+LsGCVg7XRtxepgMBjqXcoI9G4o1VbsgTHZtwus0D91qV0
40− DM7WsPcFu1S6SU8+OCkcuTPFUT2lRvRiYj+vtNttK+ZP5rdmvYFermLyH/Q2R3ID
41− zVgmH+aKKODVASneSsgJ8/nAs5EVZbwc/YKzbx2Zk+s7P4KE95g+4G4dzrMW0RcN
42− QS1LFJDu2DhFFgU4fRO15Ek9/lj2JS2DpfLGiJY8tlI5nyDsq4YRFvQSBdbUTZpG
43− m+CJDegffSlRJtuT4ur/dQf5hmvfYTVBRk2XS/eZAoIBAB143a22PWnvFRfmO02C
44− 3X1j/iYZCLZa6aCl+ZTSj4LDGdyRPPXrUDxwlFwDMHfIYfcHEyanV9T4Aa9SdKh9
45− p6RbF6YovbeWqS+b/9RzcupM77JHQuTbDwL9ZXmtGxhcDgGqBHFEz6ogPEfpIrOY
46− GwZnmcBY+7E4HgsZ+lII4rqng6GNP2HEeZvg91Eba+2AqQdAkTh3Bfn+xOr1rT8+
47− u5WFOyGS5g1JtN0280yIcrmWeNPp8Q2Nq4wnNgMqDmeEnNFDOsmo1l6NqMC0NtrW
48− CdxyXj82aXSkRgMQSqw/zk7BmNkDV8VvyOqX/fHWQynnfuYmEco4Pd2UZQgadOW5
49− cVMCggEBANGz1fC+QQaangUzsVNOJwg2+CsUFYlAKYA3pRKZPIyMob2CBXk3Oln/
50− YqOq6j373kG2AX74EZT07JFn28F27JF3r+zpyS/TYrfZyO1lz/5ZejPtDTmqBiVd
51− qa2coaPKwCOz64s77A9KSPyvpvyuTfRVa8UoArHcrQsPXMHgEhnFRsbxgmdP582A
52− kfYfoJBSse6dQtS9ZnREJtyWJlBNIBvsuKwzicuIgtE3oCBcIUZpEa6rBSN7Om2d
53− ex8ejCcS7qpHeULYspXbm5ZcwE4glKlQbJDTKaJ9mjiMdvuNFUZnv1BdMQ3Tb8zf
54− Gvfq54FbDuB10XP8JdLrsy9Z6GEsmoE=
5+ MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDQ0b23I1srJZwR
6+ 2MMdvSJK5pcwLfrXU+4gEZEnWNyT8yeVweya+8vmNNOlvK3zxf+ZiY/7aQ0RZJMO
7+ h2+VdlgHmr2QKhQTf1HwfZA/06FolD3/DcS+DMJMSTVr179/XLndeVVZUqU7tjvB
8+ AWKSIS8H2hSF1UOPi9gBDR8MwCP6Qgj8WYhbkt9q47/lO96qAmm6U1F+Q7RYM9ZQ
9+ IWI81N0Ms5wJocg7n6S19iV66ePh7APapZFYup61gFGWfahmA217ELIZd56n8yjO
10+ F0epb9sC0XpYCDRrYKBWLqPiv+6wvdZtZvALItyIv08ZwXlBkFg3LbAAhPnf0Vxz
11+ pYysQmyyyzkgy252n+Sie0kx+B4qm6fOkpfgYlPSVTb2dXx/be/SE08u0a9FO0fZ
12+ pkByWEZJUUwngsJgLUa7MorQf3avxozfC25XqvzbieZfSXlA7mOUclZbC/WUFpyj
13+ MlyJU2eCQ8wSwsPXl91oxcYlOkuVLgd41gr9pGXQSuKIkrgbfkftjg2tDC+7g7O8
14+ qrdF42FjbZjIx/74AasmsGh4GTQtiSkvEnTstioC6aCV44DlJWbBIMvkyawubjUl
15+ Ppij0H66Y9Q4tEc/ktc7oGQfqqluyLb43TeobTPHALsNeAYb39rMtBo5DDCUc81s
16+ fuDMhMr/oYXKrFstUsg5AY6mJaRG0QIDAQABAoICAF5ZVfmoPOoKzTB3GvmV2iez
17+ dj4rmDmwT1gn98iqasdiRtFwVGJWQHNcDQDGdmY9YNZThD2Y4nGoWpVm9jC2zuFo
18+ thusF3QTw8cARKvCCBzDVhumce1YwHVNYpi+W2TFValOyBRathN7rBXxdUMHQUOv
19+ 8jPh/uudyNP4xL2zFs5dBchW/7g4bT/TdYGyglGYU4L/YEPHfXWYvk1oOAW6O8Ig
20+ aPElKt5drEMW2yplATSzua4RvtEzSMBDIRn43pxxEgdXrNC67nF9+ULc2+Efi/oD
21+ Ad9CncSiXO9zlVK/W655p6e4qd6uOqyCm8/MTegkuub7eplRe8D3zGjoNN4kCQ4S
22+ rckVvIDDb6vZk7PKx9F7GWIqaG/YvFFFKO1MrAZg7SguFA6PtGOYAFocT03P6KXT
23+ l2SnZQWKyxUAlh4tOBGlRFgGCx/krRIKbgNYn/qk/ezcRl8c7GpOPh+b7Icoq7u3
24+ l4tIVBBHqS8uGgtyi+YwuJeht2MV1aEcSkykKLh2ipp8tb6spORJUkhjawDjvxeQ
25+ GztN30Xh2riTXYZ0HExVTtJa8jyvFyp/97ptPIJXaVt2A2KIS3sBFHKnpY+/OrQg
26+ uUauYgi13WFHsKOxZL9GYGk7Ujd8bw4CEcJFxKY7bhpGVI6Du7NRkUDWN0+0yusI
27+ 2szCJ7+ZqJkrc1+GrI/RAoIBAQDseAEggOLYZkpU2Pht15ZbxjM9ayT2ANq1+RTu
28+ LjJx4gv2/o/XJCfMZCL0b9TJqtYeH+N6G9oDRJ99VIhUPedhWSYdj9Qj+rPd++TS
29+ bp+MoSjmfUfxLTDrmFHL7ppquAE65aDy3B5c+OCb0I4X6CILUf0LynBzgl4kdrzN
30+ U6BG3Mt0RiGPojlPV82B9ZUF/09YAz7BIz9X3KMhze1Gps5OeGuUnc9O2IAJYkrj
31+ ur9H2YlNS4w+IjRLAXSXUqC8bqPZp6WTo1G/rlyAkIRXCGN90uk5JQvXoj9immFO
32+ WaylbdcNG3YcGutreYeZL/UIWF6zCdc6pYG0cCBJS6S/RN7FAoIBAQDiERrLuUbV
33+ 3fx/a8uMeZop6hXtQpF7jlFxqUmza7QSvBuwks4QVJF+qMSiSvKDkCKqZD4qVf4N
34+ TMxEj5vNR0PbnmDshyKJNGVjEauKJSb65CFDUcL1eR/A/oJvxiIdN1Z4cPrpnRux
35+ /zIfPuYfYHpdz52buxxmlD7bfwYmVKVpnzjB9z0I1CasZ5uqB0Z8H0OLyUu8S4ju
36+ RfkKBDMgVl2q96i8ZvX4C1b7XuimIUqv4WHq5+ejcYirgrYtUbBIaDU3/LORcJdy
37+ /K76L1/up70RTDUYYm/HKaRy+vMTpUsZJ7Qbh0hrvQkUvNQ1HXjprW2AePIYi33N
38+ h3mb1ulqw4idAoIBAQCsn0YjVjNDShkFK4bfmLv4rw2Ezoyi0SjYIsb2wN6uaBfX
39+ 7SlQIuKywH8L9f9eYMoCH8FNyLs0G4paUbVb2fzpAc1jUzXINiHL8TCvtXXfkV5s
40+ NBSqqRTHR+CegMZVFZJATpVZ9PptYHmHBY5VQW5o2SdizhudFxRmhg95zIx6boBP
41+ l0q0sfYoR66MKpzpTeG8HFJZZ8O7/iNQcCXAp9B/VEUkrrdBlaaSMyD8cb1lVBZ5
42+ SKdOTGXkQ2G7feQ86n/OSiYDSvxIc56vc9BIQKVwmuEKiFLGzXh8ILrcGXaBJVgS
43+ B3QHPFeTk5o7Z9j2iJxJEuv9sginkhrfpsrTnhEJAoIBACkrUkTtjd/e2F/gIqaH
44+ crLVZX7a06G7rktTuA9LuvR6e1Rxt8Mzk3eMhprDqVyaQCXlsYiGNoj3hm+p84az
45+ xsDVG/OXPIveFeSv0ByNXYbtSr12w1lu4ICGGP0ACTBm5oFymc83hFarEdas3r2y
46+ FTbGW36D2c04jCXvARCz85fDnlN8kgnskMpu5+NUBdsO2n83fmphGyPBbHQNhb4K
47+ 3G4JQhplab/tWL7YbufqQi67jdh4uS+Duo75c/HW4ZKeH6r9gzomVf5j0/3N6NuO
48+ gpkG1tiE/LQ5ejBSUTgvrvh6yYsF3QN53pB/PuoZXu63Xay62ePsa1GlrVjbD5EY
49+ 4OUCggEAJFr7F7AQLMJTAxHFLCsZZ0ZZ+tXYclBC4eHPkZ6sD5jvL3KIpW3Q7jXk
50+ oIoD/XEX4B+Qe5M3jQJ/Y5ZJETHcgfcHZbDpCKN2WHQgldQbAJiFd4GY1OegdVsr
51+ 7TC8jh3Q2eYjzL8u4z7LSNI6aQSv1eWE7S1Q5j/sX/YYDR4W3CBMeIUpqoDWpn87
52+ czbIRyA/4L0Y/HLpg/ZCbvtJZbsQwYXhyqfbjlm4BRQ6JiC5uEBKvuDRUXToBJta
53+ JU8XMm+Ae5Ogrw7P6hg68dWpagfjb7UZ7Zxv+VDsbrU6KsDcyGCAwrrRZou/6KUG
54+ Eq4OVTSu/s8gmY94tgbjeOaLUPEPmg==
5555 -----END PRIVATE KEY-----
5656 '';
5757 ca.cert = builtins.toFile "ca.cert" ''
5858 -----BEGIN CERTIFICATE-----
59− MIIFATCCAumgAwIBAgIJANydi4uFZr0LMA0GCSqGSIb3DQEBCwUAMBYxFDASBgNV
60− BAMMC1NuYWtlb2lsIENBMCAXDTE4MDcxMjAwMjIxNloYDzIxMTgwNjE4MDAyMjE2
61− WjAWMRQwEgYDVQQDDAtTbmFrZW9pbCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
62− ADCCAgoCggIBAN91XEL/gfCG7MP2iv0IMO7dMFATmWKskjkpiZ8xm1+B3MSOA7OZ
63− H0BVKSfatB4KrMzmb5gLM877bLvQV2Tu8M5GLU52Fh9RAhbr9NnbvESPHi3zaP2L
64− vTnJSpMlkqMxsPzfSB5ciYnpUaM2/9aKxMebAGylYp59hA83rxm9g0KfR3mtgmD2
65− 5E5k8kdIjQxiP2IRFYg837GFmhLE3vggsnSsQ5B/HYYcOFOv329lgAWpsAh+Hfl9
66− i6VFZqtRJ6Qj6sPFrzcUPyr1wyA4/zgqQt6nZ1FddNtRYSsZQ6kc/nkz0zvCzRFU
67− 12X09RJsOAKGXvJiUcJ17fbrWr/Manl0xX+3+Ndc1SBG6u9dziBQoqNLhJ9++DRd
68− Wc+zewyVngk2bJwr2SWAhJWZtMpVyNFEm/wG9rY1BWwn1MivJXRAST3gO5yCwLct
69− uFB9B2adZVwR3PCtkc2mT1rPmafDjZG69lb0vX1PvGkit0tIdo6KzhUSq5mORYiF
70− 8jPQNUx5e1gRCbCoUbbdbDS61ymYJbgU++nJizkYA+YZZ+uUzGwsP/t616i3cCF4
71− L7npkGhUGcjwUW8hfapyL6B9UO4KO8OZvJL/Q2/Esaq9ILUZQ+ZY/dNHkVvUfxGn
72− 7f3MkdGYf6phaWFy/qnsWVjb/p31GTDxYpFNIIHvJ5R000+I+imTo3g3AgMBAAGj
73− UDBOMB0GA1UdDgQWBBQ3vPWzjLmu5krbSpfhBAht9KL3czAfBgNVHSMEGDAWgBQ3
74− vPWzjLmu5krbSpfhBAht9KL3czAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUA
75− A4ICAQDF9HyC1ZFN3Ob+JA9Dj5+Rcobi7JIA5F8uW3Q92LfPoVaUGEkBrwJSiTFX
76− 47zvP/ySBJIpZ9rzHMbJ+1L+eJgczF1uQ91inthCKo1THTPo5TgBrpJj0YAIunsj
77− 9eH1tBnfWFYdVIDZoTSiwPtgIvglpyuK/eJXEe+FRzubhtdc9w1Hlzox1sd0TQuy
78− Pl9KFHg7BlFZfCPig1mkB8pfwjBDgVhv5DKJ9cJXh3R5zSoiyuS2b+qYSvw8YTHq
79− 0WNKWUthb7BVAYE3OmcbOHgUAUjtJ6EIGIB9z/SoLe90CofXLXFR5dppuVLKCMBA
80− kgL4luBIu7t8mcnN2yzobvcGHy8RVY6F5abCCy6gackLzjOzvH1SYOxP8yN74aKB
81− ANgcqdWspb8JYoU8lEbA8dhBVrsgBf7XeJlrZvMdcUENlJ2PI0JWr9WvlRAM9rYY
82− EY1alJqBCp6530Ggd6/f0V64cEqptejUdmN9L0zboxKjQf4LjpUNraGvg8tw/xkY
83− 4dT1U2HlVnhOyBVkx/tE6zIK/RU16oMqwpjCdfbK/TuWCNc/emJz5PMlp81zm83+
84− dExpWwuV4rt6OQbZ/GSatNLJXOw+pkLjaEhnHgrsgI+HqAUXg3ByKol+1e76wN51
85− k1ZKpB6mk4kejySGPYBHiJwED0IyXu9gUfalSczXFO4ySAvhCg==
59+ MIIFDzCCAvegAwIBAgIUU9rbCLTuvaI6gjSsFsJJjfLWIX8wDQYJKoZIhvcNAQEL
60+ BQAwFjEUMBIGA1UEAwwLU25ha2VvaWwgQ0EwIBcNMTkxMDE4MDc1NDEyWhgPMjEx
61+ OTA5MjQwNzU0MTJaMBYxFDASBgNVBAMMC1NuYWtlb2lsIENBMIICIjANBgkqhkiG
62+ 9w0BAQEFAAOCAg8AMIICCgKCAgEA0NG9tyNbKyWcEdjDHb0iSuaXMC3611PuIBGR
63+ J1jck/MnlcHsmvvL5jTTpbyt88X/mYmP+2kNEWSTDodvlXZYB5q9kCoUE39R8H2Q
64+ P9OhaJQ9/w3EvgzCTEk1a9e/f1y53XlVWVKlO7Y7wQFikiEvB9oUhdVDj4vYAQ0f
65+ DMAj+kII/FmIW5LfauO/5TveqgJpulNRfkO0WDPWUCFiPNTdDLOcCaHIO5+ktfYl
66+ eunj4ewD2qWRWLqetYBRln2oZgNtexCyGXeep/MozhdHqW/bAtF6WAg0a2CgVi6j
67+ 4r/usL3WbWbwCyLciL9PGcF5QZBYNy2wAIT539Fcc6WMrEJssss5IMtudp/kontJ
68+ MfgeKpunzpKX4GJT0lU29nV8f23v0hNPLtGvRTtH2aZAclhGSVFMJ4LCYC1GuzKK
69+ 0H92r8aM3wtuV6r824nmX0l5QO5jlHJWWwv1lBacozJciVNngkPMEsLD15fdaMXG
70+ JTpLlS4HeNYK/aRl0EriiJK4G35H7Y4NrQwvu4OzvKq3ReNhY22YyMf++AGrJrBo
71+ eBk0LYkpLxJ07LYqAumgleOA5SVmwSDL5MmsLm41JT6Yo9B+umPUOLRHP5LXO6Bk
72+ H6qpbsi2+N03qG0zxwC7DXgGG9/azLQaOQwwlHPNbH7gzITK/6GFyqxbLVLIOQGO
73+ piWkRtECAwEAAaNTMFEwHQYDVR0OBBYEFAZcEiVphGxBT4OWXbM6lKu96dvbMB8G
74+ A1UdIwQYMBaAFAZcEiVphGxBT4OWXbM6lKu96dvbMA8GA1UdEwEB/wQFMAMBAf8w
75+ DQYJKoZIhvcNAQELBQADggIBAGJ5Jnxq1IQ++IRYxCE7r7BqzzF+HTx0EWKkSOmt
76+ eSPqeOdhC26hJlclgGZXAF/Xosmn8vkSQMHhj/jr4HI0VF9IyvDUJm8AKsnOgu/7
77+ DUey3lEUdOtJpTG9NyTOcrzxToMJ+hWlFLZKxx2dk4FLIvTLjmo1VHM97Bat7XYW
78+ IrL9RRIZ25V+eCYtlR7XYjceGFQ0rCdp8SFIQwC6C/AH2tV3b1AJFsND9PcoLu7c
79+ //fH+WUQCcD/N0grdC/QCX7AFWzd4rKQ8gjfND4TSYFTSDwW10Mud4kAVhY2P1sY
80+ Y3ZpnxWrCHbIZMbszlbMyD+cjsCBnNvOtYGm7pDut/371rllVcB/uOWYWMCtKPoj
81+ 0elPrwNMrK+P+wceNBCRQO+9gwzB589F2morFTtsob/qtpAygW8Sfl8M+iLWXeYS
82+ c3LBLnj0TpgXKRWg7wgIWKSZx9v6pgy70U0qvkjNS1XseUCPf7hfAbxT3xF+37Dw
83+ zZRwF4WAWqdnJoOey21mgc+a2DQzqtykA6KfHgCqNFfDbQXPXvNy25DDThbk+paX
84+ G2M2EWtr+Nv9s/zm7Xv/pOXlgMFavaj+ikqZ4wfJf6c/sMOdZJtMA4TsYtAJgbc8
85+ ts+0eymTq4v5S8/fW51Lbjw6hc1Kcm8k7NbHSi9sEjBfxFLTZNQ5eb4NGr9Od3sU
86+ kgwJ
8687 -----END CERTIFICATE-----
8788 '';
88− "acme-v01.api.letsencrypt.org".key = builtins.toFile "acme-v01.api.letsencrypt.org.key" ''
89+ "acme-v02.api.letsencrypt.org".key = builtins.toFile "acme-v02.api.letsencrypt.org.key" ''
8990 -----BEGIN RSA PRIVATE KEY-----
90− MIIJKQIBAAKCAgEAvG+sL4q0VkgSClBTn4NkPiUrtXx5oLyZ+CCM1jrQx/xotUt5
91− X2S4/7vMnAK/yRLsR7R2PhXO8CZPqJ7B6OfAgaDTgvipJkZYPZQSMP3KOinM3WJL
92− ssqKh7/HOxZIf0iyUXewrnX5eTAo/CLsUnhBjBD7E99nmQz/leLWSl82sSYDkO3n
93− Uk3/1qJZA8iddb4uH0IEQWcNKev3WoQQzwiVrXBiftlRQOJy5JJXm5m8229MCpMA
94− 1AUWmpdu6sl3/gFFdsDhUFq/a7LFrVyaUCMRIHg9szAB7ZFkixr9umQs8jKwuo98
95− 3JHB11h2SirwgfIzHHmyhaWhCt22ucTwEXGhq63LtrzZvLsfP8Ql5S+AuqGTH0v8
96− meuc784leAjulBZjkpuIFwDnVv9+YeUEbqJeo1hSHrILddora3nkH4E2dJWmLpqp
97− iPr++GRi+BNgYKW/BQLTJ7C6v+vUs+kdPgYJH5z7oP6f0YZkT0Wkubp/UEz7UV2d
98− fjz57d77DYx5rFWGYzJriWR/xltgL1zDpjwjwG1FDpRqwlyYbBFpjQhxI+X0aT98
99− m6fCzBDQHDb/+JgvsjTHh6OZatahFAwzFIEfrceDv1BG8sBWIaZGhLzYiWQxafl8
100− oXbWv1T6I1jpsTlCdCSkWzaJb4ZjxI9Ga1ynVu8F16+GR2a71wKWu7UbZQsCAwEA
101− AQKCAgBYvrs4FLoD3KNqahRIDqhaQEVKjtn1Yn2dBy9tAXwsg2qI34fE7nnWLwsY
102− +o56U0gmKQ57BOhV36Uqg8JNP0BBjI2wpA19simCrsa2fgAMznzmUpHWHV+KuT5K
103− TJ9OGt2oUpdKQtOASLc0r/neiTZNkf29iTyQLzf7zj4f/qGSYpXRXsnP0F5KJmGH
104− z6agujWckQnSB4eCk9gFsCb+akubyE8K8Kw8w6lajrVl2czBB7SnUj5UnCTeH62k
105− M8goP08Is6QppON8BFDm6bLfRPSe9yIPzu9JhGz2unp+mwkz872Zz1P9yUOieM4U
106− 9g4ZFQkPQx1ZpfynUm3pJZ/uhzadBabnIvMe/1qwDAEDifh/WzEM76/2kBpQkHtS
107− qcjwjAElfWnP8aBr1Pj42/cVJy3dbDqb0OawFHx/8xSO2CkY4Gq2h3OYv1XpPv3g
108− S9qqKhvuaT+aD0YjKhP4FYc2vvQSJwdZL8vqOyma8JGmc+r7jakIPCyOx3oPVqnS
109− L2P7DuJ1FcGIZyYOU3UUSzKndDU9fVC8YoLWvHDlwm4RK9UPtdsBY8mEu6BlaAwL
110− zEQG+fbcFnEkHPiJeAohYUCHiqCihLt0pqGwZi+QrudPQE6C47YijGZWJu4VVLjB
111− B2L9iDQKsN4FnBJ9egJIwWBLX3XXQfjC43UGm1A5sBvD+ScsCQKCAQEA7GxU7/SW
112− 4YJ+wBXrp7Z3vzlc5mTT5U4L2muWZLhIjT/jmpHpZ4c9a5DY/K9OYcu8XJ+7kx2B
113− N40cU3ZkT2ZbB5/BUCEmi3Wzy3R/KZshHDzvvSZHcXJqVBtv+HGJgR5ssFqAw8c6
114− gJtDls+JE9Sz+nhLk0ZZ4658vbTQfG1lmtzrbC3Kz2xK8RPTdOU5Or7fayeaEKEW
115− ECBJPE41ME2UTdB/E85vyYoee0MBijjAs19QKqvoNbyrsZ5bihcIDYsrvjCmkdW1
116− 20IUrSF3ZYJ9bb+CxHeRyNqwvRxPYSkzdMjZHx+xEAvJgw51QqmIi2QQf/qB+ych
117− cSbE/0Jhx4QbDQKCAQEAzAoenEOgmZvUegFUu8C6gWeibMjl3Y9SikQ4CoQO/zWr
118− aoCr5BpbzbtOffwnPfgk9wCGvXf6smOdrLUP1K2QAhBr/vJh7ih2MonvpYr5HPP7
119− maVARR66IgtxXP2ER2I9+9p2OQdecGRP2fUn2KCDQIASHSSY/VjBb8LLJgryC/DS
120− r2b0+m1e2qXfNWt/BYTQZhD/8B/jl/2pl/jI2ne3rkeiwEm7lqZaDt3Q8gC+qoP5
121− /IdG1Gob7UTMCbICWy1aGuzRYUmbpg0Vq4DAV1RtgBySB5oNq5PMBHYpOxedM2nM
122− NxHvf0u6wsxVULwQ4IfWUqUTspjxDmIgogSzmOGadwKCAQEA558if4tynjBImUtg
123− egirvG4oc5doeQhDWJN63eYlPizPgUleD41RQSbBTp04/1qoiV38WJ7ZT2Ex1Rry
124− H0+58vgyXZx8tLh1kufpBQv0HkQc44SzDZP4U7olspMZEaSK+yNPb36p9AEo8IEW
125− XJVQVhywffK4cfUqRHj2oFBU8KlrA6rBPQFtUk4IJkfED6ecHtDHgW8vvFDFLw23
126− 0kDPAIU5WmAu6JYmUsBMq+v57kF8urF8Z9kVpIfuSpVR0GL+UfA74DgtWEefFhbp
127− cEutMm4jYPN7ofmOmVc49Yl13f4/qNxVjdDedUUe4FZTbax09cyotzOY8c/3w9R3
128− Ew57qQKCAQAa5jqi30eM+L5KV2KUXhQ4ezEupk2np/15vQSmXkKb4rd2kwAWUmNH
129− /Cmc8mE6CjzVU3xv/iFO41MmMbikkT0rCH80XUAL5cmvX//4ExpEduX0m5SdiC+B
130− zYBkggeuYYVKbsKnQhFxP8hHM8rNBFxJZJj+vpRs0gaudT/TBB5k9JrSBQDHAyQ+
131− Lx/+Ku3UDG5tBlC3l3ypzQdOwb25D49nqooKT64rbkLxMs0ZGoAIet26LRtpZZPI
132− 9AjyPkWRP6lhY1c3PD0I5zC0K4Uv/jFxclLOLcEfnZyH+gv1fmd7H7eMixDH93Pn
133− uoiE3EZdU4st2hV+tisRel5S/cuvnA6BAoIBAQDJISK8H0hwYp+J4/WUv/WLtrm4
134− Mhmn8ItdEPAyCljycU6oLHJy4fgmmfRHeoO1i3jb87ks2GghegFBbJNzugfoGxIM
135− dLWIV+uFXWs24fMJ/J6lqN1JtAj7HjvqkXp061X+MdIJ0DsACygzFfJOjv+Ij77Q
136− Q1OBTSPfb0EWFNOuIJr9i2TwdN9eW/2ZMo1bPuwe4ttPEIBssfIC02dn2KD1RTqM
137− 1l+L97vVFk7CoSJZf5rLeysLVyUeGdDcoEcRA6fKhfB/55h+iqrZNvySX1HrR6on
138− PQcxDRPJD7f9rMsTzVl3DOxzvXAU3lIcZtPZps97IwXceAAh2e1kZNNv/cxj
91+ MIIJKQIBAAKCAgEApny0WhfDwEXe6WDTCw8qBuMAPDr88pj6kbhQWfzAW2c0TggJ
92+ Etjs9dktENeTpSl14nnLVMiSYIJPYY3KbOIFQH1qDaOuQ7NaOhj9CdMTm5r9bl+C
93+ YAyqLIMQ9AAZDhUcQjOy3moiL7ClFHlkFYuEzZBO9DF7hJpfUFIs0Idg50mNoZh/
94+ K/fb4P2skNjfCjjomTRUmZHxT6G00ImSTtSaYbN/WHut1xXwJvOoT1nlEA/PghKm
95+ JJ9ZuRMSddUJmjL+sT09L8LVkK8CKeHi4r58DHM0D0u8owIFV9qsXd5UvZHaNgvQ
96+ 4OAWGukMX+TxRuqkUZkaj84vnNL+ttEMl4jedw0ImzNtCOYehDyTPRkfng5PLWMS
97+ vWbwyP8jDd2578mSbx5BF7ypYX366+vknjIFyZ5WezcC1pscIHxLoEwuhuf+knN+
98+ kFkLOHeYbqQrU6mxSnu9q0hnNvGUkTP0a/1aLOGRfQ5C/pxpE/Rebi8qfM/OJFd4
99+ mSxGL93JUTXWAItiIeBnQpIne65/Ska9dWynOEfIb0okdet3kfmNHz3zc17dZ5g4
100+ AdOSCgHAlQgFt/Qd8W6xXUe4C5Mfv2ctxRrfQhDwtB6rMByPwzImnciC2h3vCwD3
101+ vS/vjUyWICyhZyi2LZDUQz+sCKBXCYYcYh8ThFO40j5x1OnYMq7XQvyl8QkCAwEA
102+ AQKCAgBSAfdssWwRF9m3p6QNPIj9H3AMOxpB/azffqTFzsSJwYp4LWkayZPfffy+
103+ 4RGvN38D8e6ActP3ifjEGu3tOGBR5fUJhujeHEiDea+a2Ug9S9kuNwmnelWQ23bM
104+ Wgf9cdSbn4+qEymHyEFolmsAWdsuzri1fHJVXR06GWBNz4GiLA8B3HY4GD1M1Gfe
105+ aZVkGagpXyeVBdiR2xuP5VQWVI8/NQWzdiipW/sRlNABVkyI3uDeN4VzYLL3gTeE
106+ p021kQz4DSxIjHZacHpmWwhBnIbKMy0fo7TlrqcnIWXqTwv63Q9Zs/RN8NOyqb0Y
107+ t1NKFWafcwUsdOnrG9uv/cVwF1FNE8puydaOi8rL1zAeK89JH8NRQ02wohR9w8qy
108+ b2tB6DyGMtuqBt8Il6GA16ZoEuaXeayvlsvDEmG1cS9ZwBvfgrVPAmlm2AYdIf5B
109+ RHIJu4BJC6Nn2ehVLqxx1QDhog3SOnAsCmcfg5g/fCwxcVMLIhODFoiKYGeMitDG
110+ Q4e5JKcOg+RR8PT/n4eY4rUDBGtsR+Nw8S2DWgXmSufyfDtKCjZB4IuLWPS29tNh
111+ zF6iYfoiTWzrSs/yqPSKIFpv+PWZwkKSvjdxia6lSBYYEON4W2QICEtiEs+SvcG4
112+ 0eIqWM+rRmPnJyMfGqX6GCs3rHDQB2VNJPBCYPQalJ/KwZumAQKCAQEA0ezM6qPJ
113+ 1JM/fddgeQ50h0T9TRXVUTCISxXza+l4NuFt1NdqUOdHsGtbL1JR4GaQUG8qD1/P
114+ R39YgnQEQimxpmYLCZkobkwPxTZm9oiMXpcJrlN4PB5evaWShRSv3mgigpt3Wzml
115+ Td+2R9RoA/hvF/wEyIvaWznYOyugBC7GXs20dNnZDULhUapeQu7r6JvgmxBOby7S
116+ 0FbhGplBiSDETzZURqzH/GMJKaJtNgyyVf3Hbg4mZAQDWoBRr+8HxsNbDkxP6e91
117+ QrPHy2VZFiaTmJfoxRhyMTn7/JZaLJaUHDOniOsdMj/V7vMCgpfBqh5vR8bKzuPy
118+ ZINggpcFPp1IYQKCAQEAywc7AQoktMBCru/3vzBqUveXbR3RKzNyZCTH5CMm3UNH
119+ zmblFgqF2nxzNil21GqAXzSwZk5FyHbkeD3yvEZm+bXzsZTDNokAwoiTgyrr2tf8
120+ GLMlCHHl5euIh1xHuyg/oKajVGOoXUXK8piqiDpQKd3Zwc6u2oyQlh+gYTPKh+7i
121+ ilipkYawoE6teb6JUGpvU+d27INgNhB2oDEXY3pG2PbV+wv229ykSZxh1sJUdDwT
122+ a8eTg+3pCGXtOZiJoQTFwKUlD2WYTGqS4Gx6dIJco5k+ZikGNST1JGE64Jl4MZdI
123+ rtyvpcYblh5Q14sJGvp4kWYS9tjEM8pA+4Z9th3JqQKCAQEAkidH0+UM1A9gmQCm
124+ jiHeR39ky5Jz3f7oJT63J15479yrVxBTWNhtNQrJhXzOvGkr+JQsuF+ANMsYmFql
125+ zFqy8KMC9D/JwmD6adeif+o5sHF/r/s1LsYGOAtao4TvnOzrefs7ciwERt+GTSQ4
126+ 9uq0jgJMYkPcVr9DKI8K7V6ThdW52dECKRVzQiRXVEp7vIsqKUuFECuNYrfaKWai
127+ FhLWGkA9FKee5L0e1/naB1N3ph72Bk2btO6GVzAXr2HADEZe0umWiczJ2xLH+3go
128+ Oh/JiufYi8ClYFh6dDVJutlrbOcZsV3gCegfzikqijmWABcIavSgpsJVNF2zh7gV
129+ Uq62gQKCAQAdO2FHeQpn6/at8WceY/4rC/MFhvGC4tlpidIuCtGhsfo4wZ/iWImF
130+ N73u4nF1jBAHpTJwyHxLrLKgjWrRqOFSutvniZ/BzmAJolh63kcvL0Hg3IpMePm8
131+ 7PivZJ3/WIAwxU1m7SJkq5PY8ho7mwnHvWWI/hU26l42/z68QBS9FawQd0uS5G2x
132+ 5yIbEU/8ABcfYYhB7XiA0EYEMo1HiWeB/ag5iTN13ILbBmUf4sL+KVgygH3A1RRk
133+ XSiWzluij2lZn22ClgIjnoSfQ38uH0bvVzUgyG9YX4XcQxOTGwWvPjT82FGB8NAw
134+ ARVqs14QQFfzt1qrp/I38rsAfBDFk+xhAoIBAQCEKNk/oJcy9t/jMIbLcn6z3aCc
135+ Fn8GBPSXtFj0t6weN5lHof+cggw4owMFWQQyAXxo/K6NnKNydMPZ5qjtLsHNpbpQ
136+ aT1Or0/1YR1bJ8Lo82B4QM++7F761GWQPvE/tyrfPkfkWl92ITIpmnlw4wycRlkq
137+ 9anI2fnj1nIZwixzE2peb6PcsZU2HOs9uZ5RRd9wia696I7IpNibs4O4J2WTm4va
138+ +NeYif3V2g9qwgT0Va0c9/Jlg3b58R0vA8j/VCU5I0TyXpkB3Xapx+pvEdZ3viUL
139+ mXZaVotmWjgBXGDtd2VQg2ZiAMXHn3RzXSgV4Z+A/XacRs75h9bNw0ZJYrz1
139140 -----END RSA PRIVATE KEY-----
140141 '';
141− "acme-v01.api.letsencrypt.org".cert = builtins.toFile "acme-v01.api.letsencrypt.org.cert" ''
142+ "acme-v02.api.letsencrypt.org".cert = builtins.toFile "acme-v02.api.letsencrypt.org.cert" ''
142143 -----BEGIN CERTIFICATE-----
143144 MIIEtDCCApwCAgKaMA0GCSqGSIb3DQEBCwUAMBYxFDASBgNVBAMMC1NuYWtlb2ls
144− IENBMCAXDTE4MDcxMjAwMjIxN1oYDzIxMTgwNjE4MDAyMjE3WjAnMSUwIwYDVQQD
145− DBxhY21lLXYwMS5hcGkubGV0c2VuY3J5cHQub3JnMIICIjANBgkqhkiG9w0BAQEF
146− AAOCAg8AMIICCgKCAgEAvG+sL4q0VkgSClBTn4NkPiUrtXx5oLyZ+CCM1jrQx/xo
147− tUt5X2S4/7vMnAK/yRLsR7R2PhXO8CZPqJ7B6OfAgaDTgvipJkZYPZQSMP3KOinM
148− 3WJLssqKh7/HOxZIf0iyUXewrnX5eTAo/CLsUnhBjBD7E99nmQz/leLWSl82sSYD
149− kO3nUk3/1qJZA8iddb4uH0IEQWcNKev3WoQQzwiVrXBiftlRQOJy5JJXm5m8229M
150− CpMA1AUWmpdu6sl3/gFFdsDhUFq/a7LFrVyaUCMRIHg9szAB7ZFkixr9umQs8jKw
151− uo983JHB11h2SirwgfIzHHmyhaWhCt22ucTwEXGhq63LtrzZvLsfP8Ql5S+AuqGT
152− H0v8meuc784leAjulBZjkpuIFwDnVv9+YeUEbqJeo1hSHrILddora3nkH4E2dJWm
153− LpqpiPr++GRi+BNgYKW/BQLTJ7C6v+vUs+kdPgYJH5z7oP6f0YZkT0Wkubp/UEz7
154− UV2dfjz57d77DYx5rFWGYzJriWR/xltgL1zDpjwjwG1FDpRqwlyYbBFpjQhxI+X0
155− aT98m6fCzBDQHDb/+JgvsjTHh6OZatahFAwzFIEfrceDv1BG8sBWIaZGhLzYiWQx
156− afl8oXbWv1T6I1jpsTlCdCSkWzaJb4ZjxI9Ga1ynVu8F16+GR2a71wKWu7UbZQsC
157− AwEAATANBgkqhkiG9w0BAQsFAAOCAgEAzeGlFMz1Bo+bbpZDQ60HLdw7qDp3SPJi
158− x5LYG860yzbh9ghvyc59MIm5E6vB140LRJAs+Xo6VdVSTC4jUA2kI9k1BQsbZKds
159− XT0RqA7HkqcLS3t3JWFkkKbCshMGZTSZ//hpbaUG1qEAfUfmZw1lAxqSa0kqavbP
160− awf7k8qHbqcj7WORCdH7fjKAjntEQwIpl1GEkAdCSghOJz2/o9aWmiGZt27OM/sG
161− MLSrcmL3QBElCjOxg14P8rnsmZ+VEp6MO93otoJ4dJL7fN7vTIh5ThbS384at/4l
162− 4KK/y7XctUzAtWzhnodjk/NSgrrGX2kseOGOWEM1sZc9xtinHH2tpOMqtLVOkgHD
163− Lul+TArqgqeoOdEM/9OL64kgOrO/JzxBq+egLUi4wgAul2wmtecKZK1dkwYZHeqW
164− 74i55yeBp+TTomnPr0ZBns6xKFYldJVzC34OB+2YVDxe8y9XtWtuQOxFw0LQHhNb
165− zy5aBverWzZFwiIIjJoVHTQq848uKBJec0YILfMinS1Wjif4xqW/IMfi+GFS0oka
166− sKCGNE/8ur9u/Jm6cbto3f2dtV8/vkhiITQgwzM2jalyuVJ9jyPxG7EvbTvZORgw
167− pRvBRTd4/eE7I1L+UDe6x8EjR/MrqfF9FWVGOZo4vPTyNbrSWYBh6s9kYy56ds1l
168− IRxst1BXEfI=
145+ IENBMCAXDTE5MTAxODA3NTQxM1oYDzIxMTkwOTI0MDc1NDEzWjAnMSUwIwYDVQQD
146+ DBxhY21lLXYwMi5hcGkubGV0c2VuY3J5cHQub3JnMIICIjANBgkqhkiG9w0BAQEF
147+ AAOCAg8AMIICCgKCAgEApny0WhfDwEXe6WDTCw8qBuMAPDr88pj6kbhQWfzAW2c0
148+ TggJEtjs9dktENeTpSl14nnLVMiSYIJPYY3KbOIFQH1qDaOuQ7NaOhj9CdMTm5r9
149+ bl+CYAyqLIMQ9AAZDhUcQjOy3moiL7ClFHlkFYuEzZBO9DF7hJpfUFIs0Idg50mN
150+ oZh/K/fb4P2skNjfCjjomTRUmZHxT6G00ImSTtSaYbN/WHut1xXwJvOoT1nlEA/P
151+ ghKmJJ9ZuRMSddUJmjL+sT09L8LVkK8CKeHi4r58DHM0D0u8owIFV9qsXd5UvZHa
152+ NgvQ4OAWGukMX+TxRuqkUZkaj84vnNL+ttEMl4jedw0ImzNtCOYehDyTPRkfng5P
153+ LWMSvWbwyP8jDd2578mSbx5BF7ypYX366+vknjIFyZ5WezcC1pscIHxLoEwuhuf+
154+ knN+kFkLOHeYbqQrU6mxSnu9q0hnNvGUkTP0a/1aLOGRfQ5C/pxpE/Rebi8qfM/O
155+ JFd4mSxGL93JUTXWAItiIeBnQpIne65/Ska9dWynOEfIb0okdet3kfmNHz3zc17d
156+ Z5g4AdOSCgHAlQgFt/Qd8W6xXUe4C5Mfv2ctxRrfQhDwtB6rMByPwzImnciC2h3v
157+ CwD3vS/vjUyWICyhZyi2LZDUQz+sCKBXCYYcYh8ThFO40j5x1OnYMq7XQvyl8QkC
158+ AwEAATANBgkqhkiG9w0BAQsFAAOCAgEAkx0GLPuCvKSLTHxVLh5tP4jxSGG/zN37
159+ PeZLu3QJTdRdRc8bgeOGXAVEVFbqOLTNTsuY1mvpiv2V6wxR6nns+PIHeLY/UOdc
160+ mOreKPtMU2dWPp3ybec2Jwii6PhAXZJ26AKintmug1psMw7662crR3SCnn85/CvW
161+ 192vhr5gM1PqLBIlbsX0tAqxAwBe1YkxBb9vCq8NVghJlKme49xnwGULMTGs15MW
162+ hIPx6sW93zwrGiTsDImH49ILGF+NcX1AgAq90nG0j/l5zhDgXGJglX+K1xP99X1R
163+ de3I4uoufPa5q+Pjmhy7muL+o4Qt0D0Vm86RqqjTkNPsr7gAJtt66A7TJrYiIoKn
164+ GTIBsgM6egeFLLYQsT0ap/59HJismO2Pjx4Jk/jHOkC8TJsXQNRq1Km76VMBnuc0
165+ 2CMoD9pb38GjUUH94D4hJK4Ls/gJMF3ftKUyR8Sr/LjE6qU6Yj+ZpeEQP4kW9ANq
166+ Lv9KSNDQQpRTL4LwGLTGomksLTQEekge7/q4J2TQRZNYJ/mxnrBKRcv9EAMgBMXq
167+ Q+7GHtKDv9tJVlMfG/MRD3CMuuSRiT3OVbvMMkFzsPkqxYAP1CqE/JGvh67TzKI+
168+ MUfXKehA6TKuxrTVqCtoFIfGaqA9IWyoRTtugYq/xssB9ESeEYGeaM1A9Yueqz+h
169+ KkBZO00jHSE=
169170 -----END CERTIFICATE-----
170171 '';
171172 "letsencrypt.org".key = builtins.toFile "letsencrypt.org.key" ''
172173 -----BEGIN RSA PRIVATE KEY-----
173− MIIJKAIBAAKCAgEAwPvhlwemgPi6919sSD7Pz6l6CRfU1G/fDc0AvsMN/nTmiGND
174− pqn9ef1CA+RtLtOuPc1LLyEovcfu75/V+6KSgO4k19E2CrFCFwjEOWDGF4DgclT3
175− 751WGmFJgzPEfZfhbOrmQfQau86KxAtNZVp9FxcKbuLyQ/sNNxfNMB+7IHbVhwvz
176− VcndHpYZEP6kdnwvNLP22bouX5q3avxWStln01uZ0BfUm4XwxaUNIU7t0Dv56FK9
177− C9hW9AZae0do0BJBWRF7xSwLeDJqn9uZz+sX0X/tIaaSQSBuZySj0He5ZKzdUO0t
178− px2xTS2Brl3Y2BOJaOE98HubWvdKoslLt4X2rVrMxGa86SmFzcyDL1RSowcP/ruy
179− y555l7pepL5s4cmMgRBBXj5tXhqUTVOn5WO+JClLk+rtvtAT4rogJmMqEKmMw2t7
180− LNy1W9ri/378QG/i3AGaLIL/7GsPbuRO51Sdti4QMVe2zNFze72mzNmj1SXokWy7
181− +ZvjUMp55oEjRRsTPUZdNOEHJWy6Os2znuqL7ZpIHCxBG8FKnkCViXRJqAA8bzcE
182− hR+pLamLIOHlv4kdzJ6phHkSvK68qvbRReUmOjJgSupVBI9jhK+fHay/UWR4zfJQ
183− ed99H8ZOoiXlrLCVs+VPDynUUKrzF1nYyolNzi/NS4e4AbnfWgyC5JKRpjUCAwEA
184− AQKCAgB0fNYL+zM3MGxy+2d6KGf6GnuuV3NBlBGY3ACyJT0iNmAdPYXNaVi2tPeP
185− L+fz1xSa+3uBhEt6Wt/QRrO8g8JZDuawWvl69MpG6yS+2bpY35MbkExkl50sqULd
186− bncRtIb+3r+EWht099RtR8E9B6TwNhk3G8hO3pB4i+ZwQQcMLo7vSHhmdUYCu2mA
187− B6UwW/+GmYbMoARz8wj6DDzuS1LPksBCis/r3KqcMue9Dk6gXkOYR7ETIFBEVj1x
188− ooYS6qIFaHdEajS2JgCUY9LxXR/wdn6lzE0GANSDb+tt34bJzUp+Gdxvvo2SX4Ci
189− xsUokIpmA2gG7CW3gAPORSFuMu/VYZtvt+owNYlODXRPuGi/eLDknFRB/S4Nx0J0
190− WZZq5uTgJdQainyKYtDZALia5X4cc5I2hNetCorG9jNZIsSunbIAG+htx2FI3eqK
191− jwOUiHE8SCZ6YdXoDQjg2w+g8jeB23eqkPyzunpZphYiKay7VFeLwQEMC2a791ln
192− +MbHhhpRAc1uAoU2reB2fxKyaPlOfAWVMgUOGlgpVOuEVeMoc1CwjajaFztGG7fI
193− 8EHNoyAftCdXnTaLZk2KZnnIDHHzFXR62TE1GJFD1fdI1pHAloCbgA4h+Dtwm1Uu
194− iAEEfvVU/E5wbtAzv6pY32+OKX5kyHAbM5/e918B8ZxmHG1J9QKCAQEA6FwxsRG3
195− 526NnZak540yboht5kV12BNBChjmARv/XgZ7o1VsfwjaosErMvasUBcHDEYOC/oE
196− ZgPAyrMVsYm0xe/5FSIFLJVeYXTr0rmCNhVtBCHx3IS94BCXreNnz0qoEWnb5E09
197− Z1O42D0yGcLXklg6QaJfb7EdHh03F3dSVMHyDR3JlAQHRINeuP6LlQpbvRD3adH5
198− QWr2M3k+Stuq2OJdG7eUS1dreCxRShLuDjDhiZekdl/TB3LM0prOaWrKBrryN2g6
199− mjiasH6I5zRD3LQP5zg57Thb8afHqA4Fb85Frt6ltfFlPTIoxXZ5drVhmRWfXXnQ
200− POnj8T+w4zVjvwKCAQEA1J4ivyFkCL0JTSY3/PtwAQvBBj3GazzU6P+urWeH74Vh
201− WK17Ae40iOUHGyy80Db/fVY4VLQTpxvAeG91Gj5Nd/AucXJgOrisabcEz6N/xUs5
202− sjJNgXuNKTAgjYBu0bqLXxgZj43zT8JhA6KW7RuYU0PtHMRragz4RbK9NWDaVvJb
203− xSR5QoVLS00PerUa0SfupEYKCrlSTP6FOM5YNkCuSMt7X6/m9cR0WwVINKvUQBiT
204− ObrN+KeBmF9awpQQnQOq/GbCl3kf6VyPQqYFhdrWSg52w33c2tBVYrtHJpeXGcin
205− akw4KKcj4rdU2qxMuuRiD5paagshbLdGsYMTbSzjCwKCAQEAh89DGAyUIcfDLAWd
206− st0bSfGh0oJsw3NVg3JUFPfpRWqiny/Rr1pcd95RwoLc6h7bdrgHg8aJBZtR9ue/
207− WTp0l3CQdGKjBZD0TiAJqevViIjzZAP3Gn3XgPwRu4f75/Pp0eu+o2zl49vSYUk7
208− XEU+vIGm4y/leiHaM/y9c5DBZVrKgBIV/NZx7QCfv56/tMgOIK6m/YnFlw/OgP1v
209− hE9qR0PfSdD98x9QaDf290WjMFYvrL0eWjXd4S+fOcVTude55z8jTXE1N2i4OUpr
210− +D7bH0d7OBjr+pQDYXZAQyCW2ueEYRYvYu2Jz7/ehrOdgN25AsHZmMgXB1NpcFta
211− pyJQfwKCAQByoPMwworRH0GVg4Zp8RFYrwKZH9MK29gZ6kc9m/Sw0OND0PvhdZCD
212− QZ8MKpl9VDl4VHS4TgHOdWrWQ5kJ1g8kG6yeY0C4R/pEYHTKkWaAcucfSHl61qar
213− TxQt1dFpZz5evXqCZ9CG7tApCo5+NQNx2MxMVyVmHqn3wb66uYXdnHqXlet+Tqji
214− ZyByUpOrsfC6RjyBvZo+gnZGwxDR5xtPiczxML+/PvRQYk+kfgNHrzgoxqrnZT+8
215− a6ReBT/TtzeHLsu4qIfo44slLqcJnIstkBC9ouzgV7PBMCDTEKVZNFH2QDOCz2HM
216− iHTKFFyl4h1wNhKK24dguor1hyqBENMzAoIBAAQvQHwRWIVlfCMRI170Ls8AXB9Z
217− MMdZJ37bh6kmJpkV3+HB1ZkKwofHKR9h/3xLt5iYXzqT+/zA4EAsFFs1A93+tkzh
218− yPrN5iTSJicophZSlA4ObX1hMkgshvl7ZB1fRM5WyiszBOfm8W7eAxaK8nY2oAoP
219− tI7rioo6CFBNMCGbOl4gEX6YJ4OsVSm+efCRSDDw+3HW8H2YgqufBzAULk1Jcj5t
220− ZvraXpC5qZ92VtsH0cGA1ovNDAmoOV4AAvtZVpLQsXwaphad/Fbn/ItGrrluvvFC
221− HuldRzYtl/AQtoirK86LTY3aAmcwVFuiYvDQMzjzkJvVMmRCFZBcUIaz2oI=
174+ MIIJKgIBAAKCAgEA9dpdPEyzD3/BBds7tA/51s+WmLFyWuFrq4yMd2R+vi5gvK7n
175+ lLNVKhYgiTmK2Um+UEpGucJqZHcTSZA1Bz4S/8ND/AI9I6EmwvBinY5/PubxEALk
176+ 9YiDA+IzH8ZGFM8wXg7fMbbJAsyv+SHAtr2jmCsggrpuD5fgzs2p+F2q0+oVoeFw
177+ MAOUdAf2jNtNLEj2Q6MiR5Xq+wFOcRtXlNlXWIX3NrmubO/xOpDNpsyjyYC5Ld+W
178+ 06MS5bTHSdv56AkUg2PugMChj15TOddEJIK8zPXFTlMYye9SKwjhNUZovfe4xXCa
179+ Tj2nmzrcuMKLz+S3sKQeTWjiRcY3w4zTlAbhtGXDjXjhMObrHoWM8e3cTL4NJMvt
180+ tNStXficxbeTbIiYu+7dtF0q+iWaZqexc6PdAaIpFZ0XSw+i5iLdQZmBwzY7NLlH
181+ pQupfh6ze0qDUVZAMDubo4JKUTBzH6QTuhHx+uUm7Lc8YdNArn7o/vMZDQym1Eia
182+ xKxZuCGaqFvq8ZK4nBVsHfcXbhF/XD2HMid3t7ImbREVu9qnc+En+acU/SJaaL3r
183+ jMW6HLVMr6+vQrCzYkvLzKYpoUm9D1Kcn6d8Ofxl2iCaY9CkMr5/6J1p1wcTdcN7
184+ IVQ/DFBeTDauyWbyZkO/lPoZoakWyXOx9S9tgClzhFmNgRkZv9wN+QguNDcCAwEA
185+ AQKCAgEA0ndlacGfaJ1NeN39dmBW2XZMzdrassJXkjx34528gsLhPaXdyobbWXQn
186+ 1lHUc7+VlNaBRXUR73+gm1FAlDqnuRxIjuy7ukyzCh8PzSG3/PlnVPWlXCzJPAHh
187+ EkqCpD3agirpF34LBsKDwxsKB2bBLft9kWxX3DGA2olmAKDvJQs4CaUcjX4DEHHg
188+ tyTmJAsyByUYq3/D8a1koZ9ukpadF8NXpxm+ILQoJqLf6vM1I8N2w7atP/BStSLV
189+ mH0gq2tajEB4ZPCDXmC5jsKiKz9gsXWUu0CX8AdYqE6pvRnRgQ8Ytq1265QMb+8s
190+ FV82oXqDZkyZRFuNmX3fLyDX39kkTcVS37S56Gzk4EzDWE/u2RXCAPeWla2zUFYI
191+ hg8X4ZAwbZRODtK2cZTuCZEILM/iKmtSgHC+aQhp18EUAefa7WGrRD4AvbTxH4VF
192+ ek60bwISBk5Mhf39MwqIiQxGOFmfLsQReZvzH4jI5zfDXf/0yZ/1SdGeu6+Walt0
193+ V81Ua/DB6zshHpeSP74HMuJHZ4DOQfcV/ndyzvoP84pAjenSx6O034OwQTkpoMI/
194+ f/2rK8kdzYSL4f//kFMuRLqmAwOmAFYB2oMo0/YaIoQ4vgTHDKTSxj5mbno56GdT
195+ huMAVMKskaCSVbyMB/xyQG7senLItVv+HafVk6ChMUbkIjv9zgECggEBAP+ux1RG
196+ cETGjK2U3CRoHGxR7FwaX6hkSokG+aFdVLer+WUrZmR8Ccvh2ALpm8K1G6TTk/5X
197+ ZeVX4+1VFYDeTHMN8g20usS5mw3v2GF3fGxGLe4q56l4/4kKMZOrSBuWH4niiIKD
198+ 0QogdzWkpQJ93nMbZxZ5lk+lRZVf3qSm6nzyP468ndrfI57Ov5OUIWZ7KhTUH9IK
199+ 8/urUk+lEvyzQmNTlt5ZZXRz7cR01K8chx1zevVAyynzSuGjTysaBN7LTT0v3yVu
200+ 96yKNsxJvuIz2+4qSjhbnN4jH+feN0VsdF3+Qkru0lBmLVgJl4X67XFaAKMDU9yv
201+ 3alS53Pkol+Dy1cCggEBAPYodofHC1ydoOmCvUAq4oJNtyI4iIOY/ch3sxVhkNyi
202+ KBscQqbay/DiXFiNl+NsemzB1PrHzvCaqKcBKw537XzeKqUgYuVLkFGubf9bDhXi
203+ wSRcYbU/oNTgiTgXPW8wH60uIoLaiNi1/YjO2zh4GEY/kFqSuD54Y91iFmcC75bv
204+ OjCNugnRdpRjOFhaeNx75tdverR37w3APVZuBSv3bJlMPCtaf+fEAKxJxeqCs3Oq
205+ rtsw2TQ4TqfE8/w9qPCVv3bQbMbO48SwjxAz47qH2h3qGu3Ov8badeARe+Ou7nuI
206+ U13gPuPOhPXIQP/MYOyamPJdFyng1b8vyNsfjOcWMiECggEAEkMgl6NkV3U7DRbp
207+ 1mvdQ9tiH33+wR9Qt5LY966b43aUHKbJ7Hlzla1u6V5YMsMO02oNUwhZDdWGQShn
208+ ncnC+iDP3iy/flenfIpaETQgnfcxRqan31H2Joqk2eBNCTNi001r5K6XmrqQ6TL2
209+ WkQ1RFF7vn42vz+VxcKQO4B0lTIUWhSczcpMWAZ6ZocZD6HScqRoFW+U16/39Bpd
210+ TdFb944742vNNFEndXXGzy8hc3gRGz1ihX+MJKuuduyn1mX9AVbPAHR5mkhQ+6x0
211+ xuFfXxaEMJxSiwdFOyGDHyFM+n2zrHh8ayOxL22X9gjjNspv6zTMo6GoGnUCdSOq
212+ eVoHhwKCAQEAot5O3rOB/vuEljwcv7IgQJrvCsNg/8FgWR1p7kGpuXHJG3btWrz1
213+ pyH+e9DjqGQD9KWjJ3LAp02NPUJ2nJIZHj9Y8/yjspb2nDTPLt+uSCjKJibBt0ys
214+ O219HRGzYjfzHYCi8PVrCggQAk7rmUdMuF4iQutE4ICDgtz9eZbls3YBiFKdvxVK
215+ Yg/sHflucmPAbtah13prPyvs6ZzN6zNANYXNYdn1OwHieBwvyWRFG8jY/MorTHPd
216+ BwA3drPNbbGHBzQMZNZKub8gSVYr3SU52gUlYCclmIq+50xqLlF2FWIz1q8irVPd
217+ gUnIR/eQQbxgaivRwbGze1ZAjUsozVVQQQKCAQEA9uAKU3O06bEUGj+L0G+7R7r/
218+ bi2DNi2kLJ7jyq+n0OqcHEQ1zFK4LAPaXY0yMYXieUzhivMGLSNDiubGO2/KxkFF
219+ REXUFgYWZYMwrKsUuscybB64cQDwzD0oXrhvEa2PHecdG6AZ63iLcHaaDzyCPID/
220+ wtljekLO2jbJ5esXZd016lykFfUd/K4KP1DGyI2Dkq6q0gTc/Y36gDAcPhIWtzna
221+ UujYCe3a8DWCElH4geKXaB5ABbV1eJ8Lch599lXJ9Hszem6QNosFsPaHDCcqLS9H
222+ yy2WA6CY2LVU7kONN+O0kxs2fVbxIkI+d/LZyX/yIGlkXcAzL07llIlrTAYebQ==
222223 -----END RSA PRIVATE KEY-----
223224 '';
224225 "letsencrypt.org".cert = builtins.toFile "letsencrypt.org.cert" ''
225226 -----BEGIN CERTIFICATE-----
226227 MIIEpzCCAo8CAgKaMA0GCSqGSIb3DQEBCwUAMBYxFDASBgNVBAMMC1NuYWtlb2ls
227− IENBMCAXDTE4MDcxMjAwMjIxOVoYDzIxMTgwNjE4MDAyMjE5WjAaMRgwFgYDVQQD
228+ IENBMCAXDTE5MTAxODA3NTQxNVoYDzIxMTkwOTI0MDc1NDE1WjAaMRgwFgYDVQQD
228229 DA9sZXRzZW5jcnlwdC5vcmcwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC
229− AQDA++GXB6aA+Lr3X2xIPs/PqXoJF9TUb98NzQC+ww3+dOaIY0Omqf15/UID5G0u
230− 0649zUsvISi9x+7vn9X7opKA7iTX0TYKsUIXCMQ5YMYXgOByVPfvnVYaYUmDM8R9
231− l+Fs6uZB9Bq7zorEC01lWn0XFwpu4vJD+w03F80wH7sgdtWHC/NVyd0elhkQ/qR2
232− fC80s/bZui5fmrdq/FZK2WfTW5nQF9SbhfDFpQ0hTu3QO/noUr0L2Fb0Blp7R2jQ
233− EkFZEXvFLAt4Mmqf25nP6xfRf+0hppJBIG5nJKPQd7lkrN1Q7S2nHbFNLYGuXdjY
234− E4lo4T3we5ta90qiyUu3hfatWszEZrzpKYXNzIMvVFKjBw/+u7LLnnmXul6kvmzh
235− yYyBEEFePm1eGpRNU6flY74kKUuT6u2+0BPiuiAmYyoQqYzDa3ss3LVb2uL/fvxA
236− b+LcAZosgv/saw9u5E7nVJ22LhAxV7bM0XN7vabM2aPVJeiRbLv5m+NQynnmgSNF
237− GxM9Rl004QclbLo6zbOe6ovtmkgcLEEbwUqeQJWJdEmoADxvNwSFH6ktqYsg4eW/
238− iR3MnqmEeRK8rryq9tFF5SY6MmBK6lUEj2OEr58drL9RZHjN8lB5330fxk6iJeWs
239− sJWz5U8PKdRQqvMXWdjKiU3OL81Lh7gBud9aDILkkpGmNQIDAQABMA0GCSqGSIb3
240− DQEBCwUAA4ICAQAkx3jcryukAuYP7PQxMy3LElOl65ZFVqxDtTDlr7DvAkWJzVCb
241− g08L6Tu+K0rKh2RbG/PqS0+8/jBgc4IwSOPfDDAX+sinfj0kwXG34WMzB0G3fQzU
242− 2BMplJDOaBcNqHG8pLP1BG+9HAtR/RHe9p2Jw8LG2qmZs6uemPT/nCTNoyIL4oxh
243− UncjETV4ayCHDKD1XA7/icgddYsnfLQHWuIMuCrmQCHo0uQAd7qVHfUWZ+gcsZx0
244− jTNCcaI8OTS2S65Bjaq2HaM7GMcUYNUD2vSyNQeQbha4ZeyZ9bPyFzznPMmrPXQe
245− MJdkbJ009RQIG9As79En4m+l+/6zrdx4DNdROqaL6YNiSebWMnuFHpMW/rCnhrT/
246− HYadijHOiJJGj9tWSdC4XJs7fvZW3crMPUYxpOvl01xW2ZlgaekILi1FAjSMQVoV
247− NhWstdGCKJdthJqLL5MtNdfgihKcmgkJqKFXTkPv7sgAQCopu6X+S+srCgn856Lv
248− 21haRWZa8Ml+E0L/ticT8Fd8Luysc6K9TJ4mT8ENC5ywvgDlEkwBD3yvINXm5lg1
249− xOIxv/Ye5gFk1knuM7OzpUFBrXUHdVVxflCUqNAhFPbcXwjgEQ+A+S5B0vI6Ohue
250− ZnR/wuiou6Y+Yzh8XfqL/3H18mGDdjyMXI1B6l4Judk000UVyr46cnI7mw==
230+ AQD12l08TLMPf8EF2zu0D/nWz5aYsXJa4WurjIx3ZH6+LmC8rueUs1UqFiCJOYrZ
231+ Sb5QSka5wmpkdxNJkDUHPhL/w0P8Aj0joSbC8GKdjn8+5vEQAuT1iIMD4jMfxkYU
232+ zzBeDt8xtskCzK/5IcC2vaOYKyCCum4Pl+DOzan4XarT6hWh4XAwA5R0B/aM200s
233+ SPZDoyJHler7AU5xG1eU2VdYhfc2ua5s7/E6kM2mzKPJgLkt35bToxLltMdJ2/no
234+ CRSDY+6AwKGPXlM510QkgrzM9cVOUxjJ71IrCOE1Rmi997jFcJpOPaebOty4wovP
235+ 5LewpB5NaOJFxjfDjNOUBuG0ZcONeOEw5usehYzx7dxMvg0ky+201K1d+JzFt5Ns
236+ iJi77t20XSr6JZpmp7Fzo90BoikVnRdLD6LmIt1BmYHDNjs0uUelC6l+HrN7SoNR
237+ VkAwO5ujgkpRMHMfpBO6EfH65Sbstzxh00Cufuj+8xkNDKbUSJrErFm4IZqoW+rx
238+ kricFWwd9xduEX9cPYcyJ3e3siZtERW72qdz4Sf5pxT9IlpoveuMxboctUyvr69C
239+ sLNiS8vMpimhSb0PUpyfp3w5/GXaIJpj0KQyvn/onWnXBxN1w3shVD8MUF5MNq7J
240+ ZvJmQ7+U+hmhqRbJc7H1L22AKXOEWY2BGRm/3A35CC40NwIDAQABMA0GCSqGSIb3
241+ DQEBCwUAA4ICAQBbJwE+qc0j6JGHWe0TGjv1viJU3WuyJkMRi+ejx0p/k7Ntp5An
242+ 2wLC7b/lVP/Nh+PKY/iXWn/BErv2MUo4POc1g8svgxsmMMh5KGGieIfGs7xT+JMH
243+ dzZZM+pUpIB5fEO5JfjiOEOKDdAvRSs0mTAVYZEokGkXSNWyylvEaA16mHtMgPjo
244+ Lm75d0O66RfJDdd/hTl8umGpF7kEGW1qYk2QmuPr7AqOa8na7olL5fMPh6Q7yRqx
245+ GIS9JKQ0fWl8Ngk09WfwUN/kEMcp9Jl5iunNRkbpUJIM/lHFkSA7yOFFL+dVWzd4
246+ 2r+ddJXTFzW8Rwt65l8SV2MEhijEamKva3mqKLIRWxDsfFVT1T04LWFtnzMW4Z29
247+ UHF9Pi7XSyKz0Y/Lz31mNTkjJYbOvbnwok8lc3wFWHc+lummZk8IkCq8xfqzwmwX
248+ Ow6EV+Q6VaQpOHumQZ12pBBLtL8DyDhWaRUgVy2vYpwYsMYa5BFMcKCynjlSewo9
249+ G2hNoW45cQZP1qHltRR9Xad7SaP7iTETDCiR7AWOqSpDipSh9eMfVW97ZbSfz+vl
250+ xl8PZEZMTRIIRVXsPP+E8gtDUhUQp2+Vcz8r6q71qslXM09xl/501uaNjCc3hH2R
251+ iw2N77Lho1F3FrBbHdML3RYHZI55eC9iQw6R4S+R4b+iWLJoHzHrW61itg==
251252 -----END CERTIFICATE-----
252253 '';
253254}
nixos/tests/couchdb.nix+38−18
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ...}:
1+import ./make-test-python.nix ({ pkgs, lib, ...}:
22
33with lib;
44
@@ -35,22 +35,42 @@ with lib;
3535 fi
3636 '';
3737 in ''
38− startAll;
39−
40− $couchdb1->waitForUnit("couchdb.service");
41− $couchdb1->waitUntilSucceeds("${curlJqCheck "GET" "" ".couchdb" "Welcome"}");
42− $couchdb1->waitUntilSucceeds("${curlJqCheck "GET" "_all_dbs" ". | length" "2"}");
43− $couchdb1->succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}");
44− $couchdb1->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "3"}");
45− $couchdb1->succeed("${curlJqCheck "DELETE" "foo" ".ok" "true"}");
46− $couchdb1->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "2"}");
47−
48− $couchdb2->waitForUnit("couchdb.service");
49− $couchdb2->waitUntilSucceeds("${curlJqCheck "GET" "" ".couchdb" "Welcome"}");
50− $couchdb2->waitUntilSucceeds("${curlJqCheck "GET" "_all_dbs" ". | length" "0"}");
51− $couchdb2->succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}");
52− $couchdb2->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "1"}");
53− $couchdb2->succeed("${curlJqCheck "DELETE" "foo" ".ok" "true"}");
54− $couchdb2->succeed("${curlJqCheck "GET" "_all_dbs" ". | length" "0"}");
38+ start_all()
39+
40+ couchdb1.wait_for_unit("couchdb.service")
41+ couchdb1.wait_until_succeeds(
42+ "${curlJqCheck "GET" "" ".couchdb" "Welcome"}"
43+ )
44+ couchdb1.wait_until_succeeds(
45+ "${curlJqCheck "GET" "_all_dbs" ". | length" "2"}"
46+ )
47+ couchdb1.succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}")
48+ couchdb1.succeed(
49+ "${curlJqCheck "GET" "_all_dbs" ". | length" "3"}"
50+ )
51+ couchdb1.succeed(
52+ "${curlJqCheck "DELETE" "foo" ".ok" "true"}"
53+ )
54+ couchdb1.succeed(
55+ "${curlJqCheck "GET" "_all_dbs" ". | length" "2"}"
56+ )
57+
58+ couchdb2.wait_for_unit("couchdb.service")
59+ couchdb2.wait_until_succeeds(
60+ "${curlJqCheck "GET" "" ".couchdb" "Welcome"}"
61+ )
62+ couchdb2.wait_until_succeeds(
63+ "${curlJqCheck "GET" "_all_dbs" ". | length" "0"}"
64+ )
65+ couchdb2.succeed("${curlJqCheck "PUT" "foo" ".ok" "true"}")
66+ couchdb2.succeed(
67+ "${curlJqCheck "GET" "_all_dbs" ". | length" "1"}"
68+ )
69+ couchdb2.succeed(
70+ "${curlJqCheck "DELETE" "foo" ".ok" "true"}"
71+ )
72+ couchdb2.succeed(
73+ "${curlJqCheck "GET" "_all_dbs" ". | length" "0"}"
74+ )
5575 '';
5676})
nixos/tests/dnscrypt-proxy.nix+7−5
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "dnscrypt-proxy";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ joachifm ];
@@ -23,11 +23,13 @@ import ./make-test.nix ({ pkgs, ... }: {
2323 };
2424
2525 testScript = ''
26− $client->waitForUnit("dnsmasq");
26+ client.wait_for_unit("dnsmasq")
2727
2828 # The daemon is socket activated; sending a single ping should activate it.
29− $client->fail("systemctl is-active dnscrypt-proxy");
30− $client->execute("${pkgs.iputils}/bin/ping -c1 example.com");
31− $client->waitUntilSucceeds("systemctl is-active dnscrypt-proxy");
29+ client.fail("systemctl is-active dnscrypt-proxy")
30+ client.execute(
31+ "${pkgs.iputils}/bin/ping -c1 example.com"
32+ )
33+ client.wait_until_succeeds("systemctl is-active dnscrypt-proxy")
3234 '';
3335})
nixos/tests/docker-edge.nix+12−10
@@ -1,6 +1,6 @@
11# This test runs docker and checks if simple container starts
22
3−import ./make-test.nix ({ pkgs, ...} : {
3+import ./make-test-python.nix ({ pkgs, ...} : {
44 name = "docker";
55 meta = with pkgs.stdenv.lib.maintainers; {
66 maintainers = [ nequissimus offline ];
@@ -31,17 +31,19 @@ import ./make-test.nix ({ pkgs, ...} : {
3131 };
3232
3333 testScript = ''
34− startAll;
34+ start_all()
3535
36− $docker->waitForUnit("sockets.target");
37− $docker->succeed("tar cv --files-from /dev/null | docker import - scratchimg");
38− $docker->succeed("docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10");
39− $docker->succeed("docker ps | grep sleeping");
40− $docker->succeed("sudo -u hasprivs docker ps");
41− $docker->fail("sudo -u noprivs docker ps");
42− $docker->succeed("docker stop sleeping");
36+ docker.wait_for_unit("sockets.target")
37+ docker.succeed("tar cv --files-from /dev/null | docker import - scratchimg")
38+ docker.succeed(
39+ "docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10"
40+ )
41+ docker.succeed("docker ps | grep sleeping")
42+ docker.succeed("sudo -u hasprivs docker ps")
43+ docker.fail("sudo -u noprivs docker ps")
44+ docker.succeed("docker stop sleeping")
4345
4446 # Must match version twice to ensure client and server versions are correct
45− $docker->succeed('[ $(docker version | grep ${pkgs.docker-edge.version} | wc -l) = "2" ]');
47+ docker.succeed('[ $(docker version | grep ${pkgs.docker-edge.version} | wc -l) = "2" ]')
4648 '';
4749})
nixos/tests/docker.nix+12−10
@@ -1,6 +1,6 @@
11# This test runs docker and checks if simple container starts
22
3−import ./make-test.nix ({ pkgs, ...} : {
3+import ./make-test-python.nix ({ pkgs, ...} : {
44 name = "docker";
55 meta = with pkgs.stdenv.lib.maintainers; {
66 maintainers = [ nequissimus offline ];
@@ -31,17 +31,19 @@ import ./make-test.nix ({ pkgs, ...} : {
3131 };
3232
3333 testScript = ''
34− startAll;
34+ start_all()
3535
36− $docker->waitForUnit("sockets.target");
37− $docker->succeed("tar cv --files-from /dev/null | docker import - scratchimg");
38− $docker->succeed("docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10");
39− $docker->succeed("docker ps | grep sleeping");
40− $docker->succeed("sudo -u hasprivs docker ps");
41− $docker->fail("sudo -u noprivs docker ps");
42− $docker->succeed("docker stop sleeping");
36+ docker.wait_for_unit("sockets.target")
37+ docker.succeed("tar cv --files-from /dev/null | docker import - scratchimg")
38+ docker.succeed(
39+ "docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10"
40+ )
41+ docker.succeed("docker ps | grep sleeping")
42+ docker.succeed("sudo -u hasprivs docker ps")
43+ docker.fail("sudo -u noprivs docker ps")
44+ docker.succeed("docker stop sleeping")
4345
4446 # Must match version twice to ensure client and server versions are correct
45− $docker->succeed('[ $(docker version | grep ${pkgs.docker.version} | wc -l) = "2" ]');
47+ docker.succeed('[ $(docker version | grep ${pkgs.docker.version} | wc -l) = "2" ]')
4648 '';
4749})
nixos/tests/documize.nix+30−26
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ...} : {
1+import ./make-test-python.nix ({ pkgs, lib, ...} : {
22 name = "documize";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ ma27 ];
@@ -29,30 +29,34 @@ import ./make-test.nix ({ pkgs, lib, ...} : {
2929 };
3030
3131 testScript = ''
32− startAll;
33−
34− $machine->waitForUnit("documize-server.service");
35− $machine->waitForOpenPort(3000);
36−
37− my $dbhash = $machine->succeed("curl -f localhost:3000 "
38− . " | grep 'property=\"dbhash' "
39− . " | grep -Po 'content=\"\\K[^\"]*'"
40− );
41−
42− chomp($dbhash);
43−
44− $machine->succeed("curl -X POST "
45− . "--data 'dbname=documize' "
46− . "--data 'dbhash=$dbhash' "
47− . "--data 'title=NixOS' "
48− . "--data 'message=Docs' "
49− . "--data 'firstname=John' "
50− . "--data 'lastname=Doe' "
51− . "--data 'email=john.doe\@nixos.org' "
52− . "--data 'password=verysafe' "
53− . "-f localhost:3000/api/setup"
54− );
55−
56− $machine->succeed('test "$(curl -f localhost:3000/api/public/meta | jq ".title" | xargs echo)" = "NixOS"');
32+ start_all()
33+
34+ machine.wait_for_unit("documize-server.service")
35+ machine.wait_for_open_port(3000)
36+
37+ dbhash = machine.succeed(
38+ "curl -f localhost:3000 | grep 'property=\"dbhash' | grep -Po 'content=\"\\K[^\"]*'"
39+ )
40+
41+ dbhash = dbhash.strip()
42+
43+ machine.succeed(
44+ (
45+ "curl -X POST"
46+ " --data 'dbname=documize'"
47+ " --data 'dbhash={}'"
48+ " --data 'title=NixOS'"
49+ " --data 'message=Docs'"
50+ " --data 'firstname=John'"
51+ " --data 'lastname=Doe'"
52+ " --data 'email=john.doe@nixos.org'"
53+ " --data 'password=verysafe'"
54+ " -f localhost:3000/api/setup"
55+ ).format(dbhash)
56+ )
57+
58+ machine.succeed(
59+ 'test "$(curl -f localhost:3000/api/public/meta | jq ".title" | xargs echo)" = "NixOS"'
60+ )
5761 '';
5862})
nixos/tests/emacs-daemon.nix+13−10
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "emacs-daemon";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ ];
@@ -21,25 +21,28 @@ import ./make-test.nix ({ pkgs, ...} : {
2121 environment.variables.TEST_SYSTEM_VARIABLE = "system variable";
2222 };
2323
24− testScript =
25− ''
26− $machine->waitForUnit("multi-user.target");
24+ testScript = ''
25+ machine.wait_for_unit("multi-user.target")
2726
2827 # checks that the EDITOR environment variable is set
29− $machine->succeed("test \$(basename \"\$EDITOR\") = emacseditor");
28+ machine.succeed('test $(basename "$EDITOR") = emacseditor')
3029
3130 # waits for the emacs service to be ready
32− $machine->waitUntilSucceeds("systemctl --user status emacs.service | grep 'Active: active'");
31+ machine.wait_until_succeeds(
32+ "systemctl --user status emacs.service | grep 'Active: active'"
33+ )
3334
3435 # connects to the daemon
35− $machine->succeed("emacsclient --create-frame \$EDITOR &");
36+ machine.succeed("emacsclient --create-frame $EDITOR &")
3637
3738 # checks that Emacs shows the edited filename
38− $machine->waitForText("emacseditor");
39+ machine.wait_for_text("emacseditor")
3940
4041 # makes sure environment variables are accessible from Emacs
41− $machine->succeed("emacsclient --eval '(getenv \"TEST_SYSTEM_VARIABLE\")'") =~ /system variable/ or die;
42+ machine.succeed(
43+ "emacsclient --eval '(getenv \"TEST_SYSTEM_VARIABLE\")' | grep -q 'system variable'"
44+ )
4245
43− $machine->screenshot("emacsclient");
46+ machine.screenshot("emacsclient")
4447 '';
4548})
nixos/tests/fancontrol.nixnew file+25
@@ -0,0 +1,25 @@
1+import ./make-test.nix ({ pkgs, ... } : {
2+ name = "fancontrol";
3+
4+ machine =
5+ { ... }:
6+ { hardware.fancontrol.enable = true;
7+ hardware.fancontrol.config = ''
8+ INTERVAL=42
9+ DEVPATH=hwmon1=devices/platform/dummy
10+ DEVNAME=hwmon1=dummy
11+ FCTEMPS=hwmon1/device/pwm1=hwmon1/device/temp1_input
12+ FCFANS=hwmon1/device/pwm1=hwmon1/device/fan1_input
13+ MINTEMP=hwmon1/device/pwm1=25
14+ MAXTEMP=hwmon1/device/pwm1=65
15+ MINSTART=hwmon1/device/pwm1=150
16+ MINSTOP=hwmon1/device/pwm1=0
17+ '';
18+ };
19+
20+ # This configuration cannot be valid for the test VM, so it's expected to get an 'outdated' error.
21+ testScript = ''
22+ $machine->waitForUnit("fancontrol.service");
23+ $machine->waitUntilSucceeds("journalctl -eu fancontrol | grep 'Configuration appears to be outdated'");
24+ '';
25+})
nixos/tests/firefox.nix+22−14
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "firefox";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ eelco shlevy ];
@@ -11,19 +11,27 @@ import ./make-test.nix ({ pkgs, ... }: {
1111 environment.systemPackages = [ pkgs.firefox pkgs.xdotool ];
1212 };
1313
14− testScript =
15− ''
16− $machine->waitForX;
17− $machine->execute("xterm -e 'firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' &");
18− $machine->waitForWindow(qr/Valgrind/);
19− $machine->sleep(40); # wait until Firefox has finished loading the page
20− $machine->execute("xdotool key space"); # do I want to make Firefox the
21− # default browser? I just want to close the dialog
22− $machine->sleep(2); # wait until Firefox hides the default browser window
23− $machine->execute("xdotool key F12");
24− $machine->sleep(10); # wait until Firefox draws the developer tool panel
25− $machine->succeed("xwininfo -root -tree | grep Valgrind");
26− $machine->screenshot("screen");
14+ testScript = ''
15+ machine.wait_for_x()
16+
17+ with subtest("wait until Firefox has finished loading the Valgrind docs page"):
18+ machine.execute(
19+ "xterm -e 'firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' &"
20+ )
21+ machine.wait_for_window("Valgrind")
22+ machine.sleep(40)
23+
24+ with subtest("Close default browser prompt"):
25+ machine.execute("xdotool key space")
26+
27+ with subtest("Hide default browser window"):
28+ machine.sleep(2)
29+ machine.execute("xdotool key F12")
30+
31+ with subtest("wait until Firefox draws the developer tool panel"):
32+ machine.sleep(10)
33+ machine.succeed("xwininfo -root -tree | grep Valgrind")
34+ machine.screenshot("screen")
2735 '';
2836
2937})
nixos/tests/flatpak-builder.nixdeleted−20
@@ -1,20 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "flatpak-builder";
6− meta = {
7− maintainers = pkgs.flatpak-builder.meta.maintainers;
8− };
9−
10− machine = { pkgs, ... }: {
11− services.flatpak.enable = true;
12− xdg.portal.enable = true;
13− environment.systemPackages = with pkgs; [ gnome-desktop-testing flatpak-builder ] ++ flatpak-builder.installedTestsDependencies;
14− virtualisation.diskSize = 2048;
15− };
16−
17− testScript = ''
18− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.flatpak-builder.installedTests}/share' --timeout 3600");
19− '';
20−})
nixos/tests/flatpak.nixdeleted−26
@@ -1,26 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "flatpak";
6− meta = {
7− maintainers = pkgs.flatpak.meta.maintainers;
8− };
9−
10− machine = { pkgs, ... }: {
11− imports = [ ./common/x11.nix ];
12− services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
13− # common/x11.nix enables the auto display manager (lightdm)
14− services.xserver.displayManager.gdm.enable = false;
15− environment.gnome3.excludePackages = pkgs.gnome3.optionalPackages;
16− services.flatpak.enable = true;
17− environment.systemPackages = with pkgs; [ gnupg gnome-desktop-testing ostree python2 ];
18− virtualisation.memorySize = 2047;
19− virtualisation.diskSize = 1024;
20− };
21−
22− testScript = ''
23− $machine->waitForX();
24− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.flatpak.installedTests}/share' --timeout 3600");
25− '';
26−})
nixos/tests/fontconfig-default-fonts.nix+10−5
@@ -1,7 +1,12 @@
1−import ./make-test.nix ({ lib, ... }:
1+import ./make-test-python.nix ({ lib, ... }:
22{
33 name = "fontconfig-default-fonts";
44
5+ meta.maintainers = with lib.maintainers; [
6+ jtojnar
7+ worldofpeace
8+ ];
9+
510 machine = { config, pkgs, ... }: {
611 fonts.enableDefaultFonts = true; # Background fonts
712 fonts.fonts = with pkgs; [
@@ -20,9 +25,9 @@ import ./make-test.nix ({ lib, ... }:
2025 };
2126
2227 testScript = ''
23− $machine->succeed("fc-match serif | grep '\"Gentium Plus\"'");
24− $machine->succeed("fc-match sans-serif | grep '\"Cantarell\"'");
25− $machine->succeed("fc-match monospace | grep '\"Source Code Pro\"'");
26− $machine->succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'");
28+ machine.succeed("fc-match serif | grep '\"Gentium Plus\"'")
29+ machine.succeed("fc-match sans-serif | grep '\"Cantarell\"'")
30+ machine.succeed("fc-match monospace | grep '\"Source Code Pro\"'")
31+ machine.succeed("fc-match emoji | grep '\"Twitter Color Emoji\"'")
2732 '';
2833})
nixos/tests/fsck.nix+12−10
@@ -1,4 +1,4 @@
1−import ./make-test.nix {
1+import ./make-test-python.nix {
22 name = "fsck";
33
44 machine = { lib, ... }: {
@@ -14,16 +14,18 @@ import ./make-test.nix {
1414 };
1515
1616 testScript = ''
17− $machine->waitForUnit('default.target');
17+ machine.wait_for_unit("default.target")
1818
19− subtest "root fs is fsckd", sub {
20− $machine->succeed('journalctl -b | grep "fsck.ext4.*/dev/vda"');
21− };
19+ with subtest("root fs is fsckd"):
20+ machine.succeed("journalctl -b | grep 'fsck.ext4.*/dev/vda'")
2221
23− subtest "mnt fs is fsckd", sub {
24− $machine->succeed('journalctl -b | grep "fsck.*/dev/vdb.*clean"');
25− $machine->succeed('grep "Requires=systemd-fsck@dev-vdb.service" /run/systemd/generator/mnt.mount');
26− $machine->succeed('grep "After=systemd-fsck@dev-vdb.service" /run/systemd/generator/mnt.mount');
27− };
22+ with subtest("mnt fs is fsckd"):
23+ machine.succeed("journalctl -b | grep 'fsck.*/dev/vdb.*clean'")
24+ machine.succeed(
25+ "grep 'Requires=systemd-fsck@dev-vdb.service' /run/systemd/generator/mnt.mount"
26+ )
27+ machine.succeed(
28+ "grep 'After=systemd-fsck@dev-vdb.service' /run/systemd/generator/mnt.mount"
29+ )
2830 '';
2931}
nixos/tests/fwupd.nixdeleted−21
@@ -1,21 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }: {
3− name = "fwupd";
4−
5− meta = {
6− maintainers = pkgs.fwupd.meta.maintainers;
7− };
8−
9− machine = { pkgs, ... }: {
10− services.fwupd.enable = true;
11− services.fwupd.blacklistPlugins = []; # don't blacklist test plugin
12− services.fwupd.enableTestRemote = true;
13− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
14− environment.variables.XDG_DATA_DIRS = [ "${pkgs.fwupd.installedTests}/share" ];
15− virtualisation.memorySize = 768;
16− };
17−
18− testScript = ''
19− $machine->succeed("gnome-desktop-testing-runner");
20− '';
21−})
nixos/tests/gdk-pixbuf.nixdeleted−21
@@ -1,21 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }: {
3− name = "gdk-pixbuf";
4−
5− meta = {
6− maintainers = pkgs.gdk-pixbuf.meta.maintainers;
7− };
8−
9− machine = { pkgs, ... }: {
10− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
11− environment.variables.XDG_DATA_DIRS = [ "${pkgs.gdk-pixbuf.installedTests}/share" ];
12−
13− # Tests allocate a lot of memory trying to exploit a CVE
14− # but qemu-system-i386 has a 2047M memory limit
15− virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096;
16− };
17−
18− testScript = ''
19− $machine->succeed("gnome-desktop-testing-runner -t 1800"); # increase timeout to 1800s
20− '';
21−})
nixos/tests/gitea.nix+16−14
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77with pkgs.lib;
88
99{
@@ -18,11 +18,11 @@ with pkgs.lib;
1818 };
1919
2020 testScript = ''
21− startAll;
21+ start_all()
2222
23− $machine->waitForUnit('gitea.service');
24− $machine->waitForOpenPort('3000');
25− $machine->succeed("curl --fail http://localhost:3000/");
23+ machine.wait_for_unit("gitea.service")
24+ machine.wait_for_open_port(3000)
25+ machine.succeed("curl --fail http://localhost:3000/")
2626 '';
2727 };
2828
@@ -37,11 +37,11 @@ with pkgs.lib;
3737 };
3838
3939 testScript = ''
40− startAll;
40+ start_all()
4141
42− $machine->waitForUnit('gitea.service');
43− $machine->waitForOpenPort('3000');
44− $machine->succeed("curl --fail http://localhost:3000/");
42+ machine.wait_for_unit("gitea.service")
43+ machine.wait_for_open_port(3000)
44+ machine.succeed("curl --fail http://localhost:3000/")
4545 '';
4646 };
4747
@@ -56,12 +56,14 @@ with pkgs.lib;
5656 };
5757
5858 testScript = ''
59− startAll;
59+ start_all()
6060
61− $machine->waitForUnit('gitea.service');
62− $machine->waitForOpenPort('3000');
63− $machine->succeed("curl --fail http://localhost:3000/");
64− $machine->succeed("curl --fail http://localhost:3000/user/sign_up | grep 'Registration is disabled. Please contact your site administrator.'");
61+ machine.wait_for_unit("gitea.service")
62+ machine.wait_for_open_port(3000)
63+ machine.succeed("curl --fail http://localhost:3000/")
64+ machine.succeed(
65+ "curl --fail http://localhost:3000/user/sign_up | grep 'Registration is disabled. Please contact your site administrator.'"
66+ )
6567 '';
6668 };
6769}
nixos/tests/gjs.nixdeleted−19
@@ -1,19 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }: {
3− name = "gjs";
4−
5− meta = {
6− maintainers = pkgs.gnome3.gjs.meta.maintainers;
7− };
8−
9− machine = { pkgs, ... }: {
10− imports = [ ./common/x11.nix ];
11− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
12− environment.variables.XDG_DATA_DIRS = [ "${pkgs.gnome3.gjs.installedTests}/share" ];
13− };
14−
15− testScript = ''
16− $machine->waitForX;
17− $machine->succeed("gnome-desktop-testing-runner");
18− '';
19−})
nixos/tests/glib-networking.nixdeleted−17
@@ -1,17 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "glib-networking";
6− meta = {
7− maintainers = pkgs.glib-networking.meta.maintainers;
8− };
9−
10− machine = { pkgs, ... }: {
11− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
12− };
13−
14− testScript = ''
15− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.glib-networking.installedTests}/share'");
16− '';
17−})
nixos/tests/gnome-photos.nixdeleted−42
@@ -1,42 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, lib, ... }:
3−
4−let
5−
6− # gsettings tool with access to gsettings-desktop-schemas
7− desktop-gsettings = with pkgs; stdenv.mkDerivation {
8− name = "desktop-gsettings";
9− dontUnpack = true;
10− nativeBuildInputs = [ glib wrapGAppsHook ];
11− buildInputs = [ gsettings-desktop-schemas ];
12− installPhase = ''
13− runHook preInstall
14− mkdir -p $out/bin
15− ln -s ${glib.bin}/bin/gsettings $out/bin/desktop-gsettings
16− runHook postInstall
17− '';
18− };
19−
20−in
21−
22−{
23− name = "gnome-photos";
24− meta = {
25− maintainers = pkgs.gnome-photos.meta.maintainers;
26− };
27−
28− machine = { pkgs, ... }: {
29− imports = [ ./common/x11.nix ];
30− programs.dconf.enable = true;
31− services.gnome3.at-spi2-core.enable = true; # needed for dogtail
32− environment.systemPackages = with pkgs; [ gnome-desktop-testing desktop-gsettings ];
33− services.dbus.packages = with pkgs; [ gnome-photos ];
34− };
35−
36− testScript = ''
37− $machine->waitForX;
38− # dogtail needs accessibility enabled
39− $machine->succeed("desktop-gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1");
40− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.gnome-photos.installedTests}/share' 2>&1");
41− '';
42−})
nixos/tests/gotify-server.nixnew file+45
@@ -0,0 +1,45 @@
1+import ./make-test.nix ({ pkgs, lib, ...} : {
2+ name = "gotify-server";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ ma27 ];
5+ };
6+
7+ machine = { pkgs, ... }: {
8+ environment.systemPackages = [ pkgs.jq ];
9+
10+ services.gotify = {
11+ enable = true;
12+ port = 3000;
13+ };
14+ };
15+
16+ testScript = ''
17+ startAll;
18+
19+ $machine->waitForUnit("gotify-server");
20+ $machine->waitForOpenPort(3000);
21+
22+ my $token = $machine->succeed(
23+ "curl --fail -sS -X POST localhost:3000/application -F name=nixos " .
24+ '-H "Authorization: Basic $(echo -ne "admin:admin" | base64 --wrap 0)" ' .
25+ '| jq .token | xargs echo -n'
26+ );
27+
28+ my $usertoken = $machine->succeed(
29+ "curl --fail -sS -X POST localhost:3000/client -F name=nixos " .
30+ '-H "Authorization: Basic $(echo -ne "admin:admin" | base64 --wrap 0)" ' .
31+ '| jq .token | xargs echo -n'
32+ );
33+
34+ $machine->succeed(
35+ "curl --fail -sS -X POST 'localhost:3000/message?token=$token' -H 'Accept: application/json' " .
36+ '-F title=Gotify -F message=Works'
37+ );
38+
39+ my $title = $machine->succeed(
40+ "curl --fail -sS 'localhost:3000/message?since=0&token=$usertoken' | jq '.messages|.[0]|.title' | xargs echo -n"
41+ );
42+
43+ $title eq "Gotify" or die "Wrong title ($title), expected 'Gotify'!";
44+ '';
45+})
nixos/tests/grafana.nix+27−21
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, pkgs, ... }:
1+import ./make-test-python.nix ({ lib, pkgs, ... }:
22
33let
44 inherit (lib) mkMerge nameValuePair maintainers;
@@ -64,28 +64,34 @@ in {
6464 inherit nodes;
6565
6666 testScript = ''
67− startAll();
67+ start_all()
6868
69− subtest "Grafana sqlite", sub {
70− $sqlite->waitForUnit("grafana.service");
71− $sqlite->waitForOpenPort(3000);
72− $sqlite->succeed("curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost");
73− };
69+ with subtest("Successful API query as admin user with sqlite db"):
70+ sqlite.wait_for_unit("grafana.service")
71+ sqlite.wait_for_open_port(3000)
72+ sqlite.succeed(
73+ "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost"
74+ )
75+ sqlite.shutdown()
7476
75− subtest "Grafana postgresql", sub {
76− $postgresql->waitForUnit("grafana.service");
77− $postgresql->waitForUnit("postgresql.service");
78− $postgresql->waitForOpenPort(3000);
79− $postgresql->waitForOpenPort(5432);
80− $postgresql->succeed("curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost");
81− };
77+ with subtest("Successful API query as admin user with postgresql db"):
78+ postgresql.wait_for_unit("grafana.service")
79+ postgresql.wait_for_unit("postgresql.service")
80+ postgresql.wait_for_open_port(3000)
81+ postgresql.wait_for_open_port(5432)
82+ postgresql.succeed(
83+ "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost"
84+ )
85+ postgresql.shutdown()
8286
83− subtest "Grafana mysql", sub {
84− $mysql->waitForUnit("grafana.service");
85− $mysql->waitForUnit("mysql.service");
86− $mysql->waitForOpenPort(3000);
87− $mysql->waitForOpenPort(3306);
88− $mysql->succeed("curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost");
89− };
87+ with subtest("Successful API query as admin user with mysql db"):
88+ mysql.wait_for_unit("grafana.service")
89+ mysql.wait_for_unit("mysql.service")
90+ mysql.wait_for_open_port(3000)
91+ mysql.wait_for_open_port(3306)
92+ mysql.succeed(
93+ "curl -sSfN -u testadmin:snakeoilpwd http://127.0.0.1:3000/api/org/users | grep -q testadmin\@localhost"
94+ )
95+ mysql.shutdown()
9096 '';
9197})
nixos/tests/graphene.nixdeleted−18
@@ -1,18 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "graphene";
6−
7− meta = {
8− maintainers = pkgs.graphene.meta.maintainers;
9− };
10−
11− machine = { pkgs, ... }: {
12− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
13− };
14−
15− testScript = ''
16− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.graphene.installedTests}/share'");
17− '';
18−})
nixos/tests/haproxy.nix+3−1
@@ -16,6 +16,8 @@ import ./make-test.nix ({ pkgs, ...}: {
1616 frontend http
1717 bind *:80
1818 mode http
19+ option http-use-htx
20+ http-request use-service prometheus-exporter if { path /metrics }
1921 use_backend http_server
2022 '';
2123 };
@@ -36,6 +38,6 @@ import ./make-test.nix ({ pkgs, ...}: {
3638 $machine->waitForUnit('haproxy.service');
3739 $machine->waitForUnit('httpd.service');
3840 $machine->succeed('curl -k http://localhost:80/index.txt | grep "We are all good!"');
39−
41+ $machine->succeed('curl -k http://localhost:80/metrics | grep haproxy_process_pool_allocated_bytes');
4042 '';
4143})
nixos/tests/initrd-network-ssh/default.nix+22−16
@@ -1,4 +1,4 @@
1−import ../make-test.nix ({ lib, ... }:
1+import ../make-test-python.nix ({ lib, ... }:
22
33{
44 name = "initrd-network-ssh";
@@ -35,25 +35,31 @@ import ../make-test.nix ({ lib, ... }:
3535 client =
3636 { config, ... }:
3737 {
38− environment.etc.knownHosts = {
39− text = concatStrings [
40− "server,"
41− "${toString (head (splitString " " (
42− toString (elemAt (splitString "\n" config.networking.extraHosts) 2)
43− )))} "
44− "${readFile ./dropbear.pub}"
45− ];
38+ environment.etc = {
39+ knownHosts = {
40+ text = concatStrings [
41+ "server,"
42+ "${toString (head (splitString " " (
43+ toString (elemAt (splitString "\n" config.networking.extraHosts) 2)
44+ )))} "
45+ "${readFile ./dropbear.pub}"
46+ ];
47+ };
48+ sshKey = {
49+ source = ./openssh.priv; # dont use this anywhere else
50+ mode = "0600";
51+ };
4652 };
4753 };
4854 };
4955
5056 testScript = ''
51− startAll;
52− $client->waitForUnit("network.target");
53− $client->copyFileFromHost("${./openssh.priv}","/etc/sshKey");
54− $client->succeed("chmod 0600 /etc/sshKey");
55− $client->waitUntilSucceeds("ping -c 1 server");
56− $client->succeed("ssh -i /etc/sshKey -o UserKnownHostsFile=/etc/knownHosts server 'touch /fnord'");
57− $client->shutdown;
57+ start_all()
58+ client.wait_for_unit("network.target")
59+ client.wait_until_succeeds("ping -c 1 server")
60+ client.succeed(
61+ "ssh -i /etc/sshKey -o UserKnownHostsFile=/etc/knownHosts server 'touch /fnord'"
62+ )
63+ client.shutdown()
5864 '';
5965})
nixos/tests/installed-tests/colord.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.colord;
5+}
nixos/tests/installed-tests/default.nixnew file+80
@@ -0,0 +1,80 @@
1+# NixOS tests for gnome-desktop-testing-runner using software
2+# See https://wiki.gnome.org/Initiatives/GnomeGoals/InstalledTests
3+
4+{ system ? builtins.currentSystem,
5+ config ? {},
6+ pkgs ? import ../../.. { inherit system config; }
7+}:
8+
9+with import ../../lib/testing-python.nix { inherit system pkgs; };
10+with pkgs.lib;
11+
12+let
13+
14+ callInstalledTest = pkgs.newScope { inherit makeInstalledTest; };
15+
16+ makeInstalledTest =
17+ { # Package to test. Needs to have an installedTests output
18+ tested
19+
20+ # Config to inject into machine
21+ , testConfig ? {}
22+
23+ # Test script snippet to inject before gnome-desktop-testing-runner begins.
24+ # This is useful for extra setup the environment may need before the runner begins.
25+ , preTestScript ? ""
26+
27+ # Does test need X11?
28+ , withX11 ? false
29+
30+ # Extra flags to pass to gnome-desktop-testing-runner.
31+ , testRunnerFlags ? ""
32+ }:
33+ makeTest rec {
34+ name = tested.name;
35+
36+ meta = {
37+ maintainers = tested.meta.maintainers;
38+ };
39+
40+ machine = { ... }: {
41+ imports = [
42+ testConfig
43+ ] ++ optional withX11 ../common/x11.nix;
44+
45+ environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
46+
47+ };
48+
49+ testScript =
50+ optionalString withX11 ''
51+ machine.wait_for_x()
52+ '' +
53+ optionalString (preTestScript != "") ''
54+ ${preTestScript}
55+ '' +
56+ ''
57+ machine.succeed(
58+ "gnome-desktop-testing-runner ${testRunnerFlags} -d '${tested.installedTests}/share'"
59+ )
60+ '';
61+ };
62+
63+in
64+
65+{
66+ colord = callInstalledTest ./colord.nix {};
67+ flatpak = callInstalledTest ./flatpak.nix {};
68+ flatpak-builder = callInstalledTest ./flatpak-builder.nix {};
69+ fwupd = callInstalledTest ./fwupd.nix {};
70+ gcab = callInstalledTest ./gcab.nix {};
71+ gdk-pixbuf = callInstalledTest ./gdk-pixbuf.nix {};
72+ gjs = callInstalledTest ./gjs.nix {};
73+ glib-networking = callInstalledTest ./glib-networking.nix {};
74+ gnome-photos = callInstalledTest ./gnome-photos.nix {};
75+ graphene = callInstalledTest ./graphene.nix {};
76+ libgdata = callInstalledTest ./libgdata.nix {};
77+ libxmlb = callInstalledTest ./libxmlb.nix {};
78+ ostree = callInstalledTest ./ostree.nix {};
79+ xdg-desktop-portal = callInstalledTest ./xdg-desktop-portal.nix {};
80+}
nixos/tests/installed-tests/flatpak-builder.nixnew file+14
@@ -0,0 +1,14 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.flatpak-builder;
5+
6+ testConfig = {
7+ services.flatpak.enable = true;
8+ xdg.portal.enable = true;
9+ environment.systemPackages = with pkgs; [ flatpak-builder ] ++ flatpak-builder.installedTestsDependencies;
10+ virtualisation.diskSize = 2048;
11+ };
12+
13+ testRunnerFlags = "--timeout 3600";
14+}
nixos/tests/installed-tests/flatpak.nixnew file+19
@@ -0,0 +1,19 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.flatpak;
5+ withX11 = true;
6+
7+ testConfig = {
8+ services.xserver.desktopManager.gnome3.enable = true; # TODO: figure out minimal environment where the tests work
9+ # common/x11.nix enables the auto display manager (lightdm)
10+ services.xserver.displayManager.gdm.enable = false;
11+ services.gnome3.core-utilities.enable = false;
12+ services.flatpak.enable = true;
13+ environment.systemPackages = with pkgs; [ gnupg ostree python2 ];
14+ virtualisation.memorySize = 2047;
15+ virtualisation.diskSize = 1024;
16+ };
17+
18+ testRunnerFlags = "--timeout 3600";
19+}
nixos/tests/installed-tests/fwupd.nixnew file+12
@@ -0,0 +1,12 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.fwupd;
5+
6+ testConfig = {
7+ services.fwupd.enable = true;
8+ services.fwupd.blacklistPlugins = []; # don't blacklist test plugin
9+ services.fwupd.enableTestRemote = true;
10+ virtualisation.memorySize = 768;
11+ };
12+}
nixos/tests/installed-tests/gcab.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.gcab;
5+}
nixos/tests/installed-tests/gdk-pixbuf.nixnew file+13
@@ -0,0 +1,13 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.gdk-pixbuf;
5+
6+ testConfig = {
7+ # Tests allocate a lot of memory trying to exploit a CVE
8+ # but qemu-system-i386 has a 2047M memory limit
9+ virtualisation.memorySize = if pkgs.stdenv.isi686 then 2047 else 4096;
10+ };
11+
12+ testRunnerFlags = "--timeout 1800";
13+}
nixos/tests/installed-tests/gjs.nixnew file+6
@@ -0,0 +1,6 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.gjs;
5+ withX11 = true;
6+}
nixos/tests/installed-tests/glib-networking.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.glib-networking;
5+}
nixos/tests/installed-tests/gnome-photos.nixnew file+35
@@ -0,0 +1,35 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.gnome-photos;
5+
6+ withX11 = true;
7+
8+ testConfig = {
9+ programs.dconf.enable = true;
10+ services.gnome3.at-spi2-core.enable = true; # needed for dogtail
11+ environment.systemPackages = with pkgs; [
12+ # gsettings tool with access to gsettings-desktop-schemas
13+ (stdenv.mkDerivation {
14+ name = "desktop-gsettings";
15+ dontUnpack = true;
16+ nativeBuildInputs = [ glib wrapGAppsHook ];
17+ buildInputs = [ gsettings-desktop-schemas ];
18+ installPhase = ''
19+ runHook preInstall
20+ mkdir -p $out/bin
21+ ln -s ${glib.bin}/bin/gsettings $out/bin/desktop-gsettings
22+ runHook postInstall
23+ '';
24+ })
25+ ];
26+ services.dbus.packages = with pkgs; [ gnome-photos ];
27+ };
28+
29+ preTestScript = ''
30+ # dogtail needs accessibility enabled
31+ machine.succeed(
32+ "desktop-gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1"
33+ )
34+ '';
35+}
nixos/tests/installed-tests/graphene.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.graphene;
5+}
nixos/tests/installed-tests/libgdata.nixnew file+11
@@ -0,0 +1,11 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.libgdata;
5+
6+ testConfig = {
7+ # # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyTlsBackend) for ‘gio-tls-backend’
8+ # Bail out! libgdata:ERROR:../gdata/tests/common.c:134:gdata_test_init: assertion failed (child_error == NULL): TLS support is not available (g-tls-error-quark, 0)
9+ services.gnome3.glib-networking.enable = true;
10+ };
11+}
nixos/tests/installed-tests/libxmlb.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.libxmlb;
5+}
nixos/tests/installed-tests/ostree.nixnew file+23
@@ -0,0 +1,23 @@
1+{ pkgs, lib, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.ostree;
5+
6+ # TODO: Wrap/patch the tests directly in the package
7+ testConfig = {
8+ environment.systemPackages = with pkgs; [
9+ (python3.withPackages (p: with p; [ pyyaml ]))
10+ gnupg
11+ ostree
12+ ];
13+
14+ # for GJS tests
15+ environment.variables.GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" (with pkgs; [
16+ gtk3
17+ pango.out
18+ ostree
19+ gdk-pixbuf
20+ atk
21+ ]);
22+ };
23+}
nixos/tests/installed-tests/xdg-desktop-portal.nixnew file+5
@@ -0,0 +1,5 @@
1+{ pkgs, makeInstalledTest, ... }:
2+
3+makeInstalledTest {
4+ tested = pkgs.xdg-desktop-portal;
5+}
nixos/tests/installer.nix−4
@@ -54,8 +54,6 @@ let
5454
5555 hardware.enableAllFirmware = lib.mkForce false;
5656
57− services.udisks2.enable = lib.mkDefault false;
58−
5957 ${replaceChars ["\n"] ["\n "] extraConfig}
6058 }
6159 '';
@@ -295,8 +293,6 @@ let
295293 ++ optional (bootLoader == "grub" && grubVersion == 1) pkgs.grub
296294 ++ optionals (bootLoader == "grub" && grubVersion == 2) [ pkgs.grub2 pkgs.grub2_efi ];
297295
298− services.udisks2.enable = mkDefault false;
299−
300296 nix.binaryCaches = mkForce [ ];
301297 nix.extraOptions =
302298 ''
nixos/tests/jellyfin.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ...}:
1+import ./make-test-python.nix ({ lib, ...}:
22
33{
44 name = "jellyfin";
@@ -9,8 +9,8 @@ import ./make-test.nix ({ lib, ...}:
99 { services.jellyfin.enable = true; };
1010
1111 testScript = ''
12− $machine->waitForUnit('jellyfin.service');
13− $machine->waitForOpenPort('8096');
14− $machine->succeed("curl --fail http://localhost:8096/");
12+ machine.wait_for_unit("jellyfin.service")
13+ machine.wait_for_open_port(8096)
14+ machine.succeed("curl --fail http://localhost:8096/")
1515 '';
1616})
nixos/tests/jormungandr.nixdeleted−77
@@ -1,77 +0,0 @@
1−import ./make-test.nix ({ pkgs, ... }: {
2− name = "jormungandr";
3− meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ mmahut ];
5− };
6−
7− nodes = {
8− # Testing the Byzantine Fault Tolerant protocol
9− bft = { ... }: {
10− environment.systemPackages = [ pkgs.jormungandr ];
11− services.jormungandr.enable = true;
12− services.jormungandr.genesisBlockFile = "/var/lib/jormungandr/block-0.bin";
13− services.jormungandr.secretFile = "/etc/secrets/jormungandr.yaml";
14− };
15−
16− # Testing the Ouroboros Genesis Praos protocol
17− genesis = { ... }: {
18− environment.systemPackages = [ pkgs.jormungandr ];
19− services.jormungandr.enable = true;
20− services.jormungandr.genesisBlockFile = "/var/lib/jormungandr/block-0.bin";
21− services.jormungandr.secretFile = "/etc/secrets/jormungandr.yaml";
22− };
23− };
24−
25− testScript = ''
26− startAll;
27−
28− ## Testing BFT
29− # Let's wait for the StateDirectory
30− $bft->waitForFile("/var/lib/jormungandr/");
31−
32− # First, we generate the genesis file for our new blockchain
33− $bft->succeed("jcli genesis init > /root/genesis.yaml");
34−
35− # We need to generate our secret key
36− $bft->succeed("jcli key generate --type=Ed25519 > /root/key.prv");
37−
38− # We include the secret key into our services.jormungandr.secretFile
39− $bft->succeed("mkdir -p /etc/secrets");
40− $bft->succeed("echo -e \"bft:\\n signing_key:\" \$(cat /root/key.prv) > /etc/secrets/jormungandr.yaml");
41−
42− # After that, we generate our public key from it
43− $bft->succeed("cat /root/key.prv | jcli key to-public > /root/key.pub");
44−
45− # We add our public key as a consensus leader in the genesis configration file
46− $bft->succeed("sed -ie \"s/ed25519_pk1vvwp2s0n5jl5f4xcjurp2e92sj2awehkrydrlas4vgqr7xzt33jsadha32/\$(cat /root/key.pub)/\" /root/genesis.yaml");
47−
48− # Now we can generate the genesis block from it
49− $bft->succeed("jcli genesis encode --input /root/genesis.yaml --output /var/lib/jormungandr/block-0.bin");
50−
51− # We should have everything to start the service now
52− $bft->succeed("systemctl restart jormungandr");
53− $bft->waitForUnit("jormungandr.service");
54−
55− # Now we can test if we are able to reach the REST API
56− $bft->waitUntilSucceeds("curl -L http://localhost:8607/api/v0/node/stats | grep uptime");
57−
58− ## Testing Genesis
59− # Let's wait for the StateDirectory
60− $genesis->waitForFile("/var/lib/jormungandr/");
61−
62− # Bootstraping the configuration
63− $genesis->succeed("jormungandr-bootstrap -g -p 8607 -s 1");
64−
65− # Moving generated files in place
66− $genesis->succeed("mkdir -p /etc/secrets");
67− $genesis->succeed("mv pool-secret1.yaml /etc/secrets/jormungandr.yaml");
68− $genesis->succeed("mv block-0.bin /var/lib/jormungandr/");
69−
70− # We should have everything to start the service now
71− $genesis->succeed("systemctl restart jormungandr");
72− $genesis->waitForUnit("jormungandr.service");
73−
74− # Now we can create and delegate an account
75− $genesis->succeed("./create-account-and-delegate.sh | tee -a /tmp/delegate.log");
76− '';
77−})
nixos/tests/knot.nix+35−33
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ...} :
1+import ./make-test-python.nix ({ pkgs, lib, ...} :
22let
33 common = {
44 networking.firewall.enable = false;
@@ -30,6 +30,10 @@ let
3030 };
3131in {
3232 name = "knot";
33+ meta = with pkgs.stdenv.lib.maintainers; {
34+ maintainers = [ hexa ];
35+ };
36+
3337
3438 nodes = {
3539 master = { lib, ... }: {
@@ -161,37 +165,35 @@ in {
161165 slave4 = (lib.head nodes.slave.config.networking.interfaces.eth1.ipv4.addresses).address;
162166 slave6 = (lib.head nodes.slave.config.networking.interfaces.eth1.ipv6.addresses).address;
163167 in ''
164− startAll;
165−
166− $client->waitForUnit("network.target");
167− $master->waitForUnit("knot.service");
168− $slave->waitForUnit("knot.service");
169−
170− sub assertResponse {
171− my ($knot, $query_type, $query, $expected) = @_;
172− my $out = $client->succeed("khost -t $query_type $query $knot");
173− $client->log("$knot replies with: $out");
174− chomp $out;
175− die "DNS query for $query ($query_type) against $knot gave '$out' instead of '$expected'"
176− if ($out !~ $expected);
177− }
178−
179− foreach ("${master4}", "${master6}", "${slave4}", "${slave6}") {
180− subtest $_, sub {
181− assertResponse($_, "SOA", "example.com", qr/start of authority.*?noc\.example\.com/);
182− assertResponse($_, "A", "example.com", qr/has no [^ ]+ record/);
183− assertResponse($_, "AAAA", "example.com", qr/has no [^ ]+ record/);
184−
185− assertResponse($_, "A", "www.example.com", qr/address 192.0.2.1$/);
186− assertResponse($_, "AAAA", "www.example.com", qr/address 2001:db8::1$/);
187−
188− assertResponse($_, "NS", "sub.example.com", qr/nameserver is ns\d\.example\.com.$/);
189− assertResponse($_, "A", "sub.example.com", qr/address 192.0.2.2$/);
190− assertResponse($_, "AAAA", "sub.example.com", qr/address 2001:db8::2$/);
191−
192− assertResponse($_, "RRSIG", "www.example.com", qr/RR set signature is/);
193− assertResponse($_, "DNSKEY", "example.com", qr/DNSSEC key is/);
194− };
195− }
168+ import re
169+
170+ start_all()
171+
172+ client.wait_for_unit("network.target")
173+ master.wait_for_unit("knot.service")
174+ slave.wait_for_unit("knot.service")
175+
176+
177+ def test(host, query_type, query, pattern):
178+ out = client.succeed(f"khost -t {query_type} {query} {host}").strip()
179+ client.log(f"{host} replied with: {out}")
180+ assert re.search(pattern, out), f'Did not match "{pattern}"'
181+
182+
183+ for host in ("${master4}", "${master6}", "${slave4}", "${slave6}"):
184+ with subtest(f"Interrogate {host}"):
185+ test(host, "SOA", "example.com", r"start of authority.*noc\.example\.com\.")
186+ test(host, "A", "example.com", r"has no [^ ]+ record")
187+ test(host, "AAAA", "example.com", r"has no [^ ]+ record")
188+
189+ test(host, "A", "www.example.com", r"address 192.0.2.1$")
190+ test(host, "AAAA", "www.example.com", r"address 2001:db8::1$")
191+
192+ test(host, "NS", "sub.example.com", r"nameserver is ns\d\.example\.com.$")
193+ test(host, "A", "sub.example.com", r"address 192.0.2.2$")
194+ test(host, "AAAA", "sub.example.com", r"address 2001:db8::2$")
195+
196+ test(host, "RRSIG", "www.example.com", r"RR set signature is")
197+ test(host, "DNSKEY", "example.com", r"DNSSEC key is")
196198 '';
197199})
nixos/tests/kubernetes/base.nix+1
@@ -53,6 +53,7 @@ let
5353 services.flannel.iface = "eth1";
5454 services.kubernetes = {
5555 addons.dashboard.enable = true;
56+ proxy.hostname = "${masterName}.${domain}";
5657
5758 easyCerts = true;
5859 inherit (machine) roles;
nixos/tests/libgdata.nixdeleted−21
@@ -1,21 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "libgdata";
6−
7− meta = {
8− maintainers = pkgs.libgdata.meta.maintainers;
9− };
10−
11− machine = { pkgs, ... }: {
12− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
13− # # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyTlsBackend) for ‘gio-tls-backend’
14− # Bail out! libgdata:ERROR:../gdata/tests/common.c:134:gdata_test_init: assertion failed (child_error == NULL): TLS support is not available (g-tls-error-quark, 0)
15− services.gnome3.glib-networking.enable = true;
16− };
17−
18− testScript = ''
19− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.libgdata.installedTests}/share'");
20− '';
21−})
nixos/tests/libxmlb.nixdeleted−17
@@ -1,17 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "libxmlb";
6− meta = {
7− maintainers = pkgs.libxmlb.meta.maintainers;
8− };
9−
10− machine = { pkgs, ... }: {
11− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
12− };
13−
14− testScript = ''
15− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.libxmlb.installedTests}/share'");
16− '';
17−})
nixos/tests/lightdm.nix+8−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "lightdm";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ aszlig worldofpeace ];
@@ -18,12 +18,12 @@ import ./make-test.nix ({ pkgs, ...} : {
1818 testScript = { nodes, ... }: let
1919 user = nodes.machine.config.users.users.alice;
2020 in ''
21− startAll;
22− $machine->waitForText(qr/${user.description}/);
23− $machine->screenshot("lightdm");
24− $machine->sendChars("${user.password}\n");
25− $machine->waitForFile("/home/alice/.Xauthority");
26− $machine->succeed("xauth merge ~alice/.Xauthority");
27− $machine->waitForWindow("^IceWM ");
21+ start_all()
22+ machine.wait_for_text("${user.description}")
23+ machine.screenshot("lightdm")
24+ machine.send_chars("${user.password}\n")
25+ machine.wait_for_file("${user.home}/.Xauthority")
26+ machine.succeed("xauth merge ${user.home}/.Xauthority")
27+ machine.wait_for_window("^IceWM ")
2828 '';
2929})
nixos/tests/login.nix+45−59
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, latestKernel ? false, ... }:
1+import ./make-test-python.nix ({ pkgs, latestKernel ? false, ... }:
22
33{
44 name = "login";
@@ -12,62 +12,48 @@ import ./make-test.nix ({ pkgs, latestKernel ? false, ... }:
1212 sound.enable = true; # needed for the factl test, /dev/snd/* exists without them but udev doesn't care then
1313 };
1414
15− testScript =
16− ''
17− $machine->waitForUnit('multi-user.target');
18− $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty1'");
19− $machine->screenshot("postboot");
20−
21− subtest "create user", sub {
22− $machine->succeed("useradd -m alice");
23− $machine->succeed("(echo foobar; echo foobar) | passwd alice");
24− };
25−
26− # Check whether switching VTs works.
27− subtest "virtual console switching", sub {
28− $machine->fail("pgrep -f 'agetty.*tty2'");
29− $machine->sendKeys("alt-f2");
30− $machine->waitUntilSucceeds("[ \$(fgconsole) = 2 ]");
31− $machine->waitForUnit('getty@tty2.service');
32− $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty2'");
33− };
34−
35− # Log in as alice on a virtual console.
36− subtest "virtual console login", sub {
37− $machine->waitUntilTTYMatches(2, "login: ");
38− $machine->sendChars("alice\n");
39− $machine->waitUntilTTYMatches(2, "login: alice");
40− $machine->waitUntilSucceeds("pgrep login");
41− $machine->waitUntilTTYMatches(2, "Password: ");
42− $machine->sendChars("foobar\n");
43− $machine->waitUntilSucceeds("pgrep -u alice bash");
44− $machine->sendChars("touch done\n");
45− $machine->waitForFile("/home/alice/done");
46− };
47−
48− # Check whether systemd gives and removes device ownership as
49− # needed.
50− subtest "device permissions", sub {
51− $machine->succeed("getfacl -p /dev/snd/timer | grep -q alice");
52− $machine->sendKeys("alt-f1");
53− $machine->waitUntilSucceeds("[ \$(fgconsole) = 1 ]");
54− $machine->fail("getfacl -p /dev/snd/timer | grep -q alice");
55− $machine->succeed("chvt 2");
56− $machine->waitUntilSucceeds("getfacl -p /dev/snd/timer | grep -q alice");
57− };
58−
59− # Log out.
60− subtest "virtual console logout", sub {
61− $machine->sendChars("exit\n");
62− $machine->waitUntilFails("pgrep -u alice bash");
63− $machine->screenshot("mingetty");
64− };
65−
66− # Check whether ctrl-alt-delete works.
67− subtest "ctrl-alt-delete", sub {
68− $machine->sendKeys("ctrl-alt-delete");
69− $machine->waitForShutdown;
70− };
71− '';
72−
15+ testScript = ''
16+ machine.wait_for_unit("multi-user.target")
17+ machine.wait_until_succeeds("pgrep -f 'agetty.*tty1'")
18+ machine.screenshot("postboot")
19+
20+ with subtest("create user"):
21+ machine.succeed("useradd -m alice")
22+ machine.succeed("(echo foobar; echo foobar) | passwd alice")
23+
24+ with subtest("Check whether switching VTs works"):
25+ machine.fail("pgrep -f 'agetty.*tty2'")
26+ machine.send_key("alt-f2")
27+ machine.wait_until_succeeds("[ $(fgconsole) = 2 ]")
28+ machine.wait_for_unit("getty@tty2.service")
29+ machine.wait_until_succeeds("pgrep -f 'agetty.*tty2'")
30+
31+ with subtest("Log in as alice on a virtual console"):
32+ machine.wait_until_tty_matches(2, "login: ")
33+ machine.send_chars("alice\n")
34+ machine.wait_until_tty_matches(2, "login: alice")
35+ machine.wait_until_succeeds("pgrep login")
36+ machine.wait_until_tty_matches(2, "Password: ")
37+ machine.send_chars("foobar\n")
38+ machine.wait_until_succeeds("pgrep -u alice bash")
39+ machine.send_chars("touch done\n")
40+ machine.wait_for_file("/home/alice/done")
41+
42+ with subtest("Systemd gives and removes device ownership as needed"):
43+ machine.succeed("getfacl /dev/snd/timer | grep -q alice")
44+ machine.send_key("alt-f1")
45+ machine.wait_until_succeeds("[ $(fgconsole) = 1 ]")
46+ machine.fail("getfacl /dev/snd/timer | grep -q alice")
47+ machine.succeed("chvt 2")
48+ machine.wait_until_succeeds("getfacl /dev/snd/timer | grep -q alice")
49+
50+ with subtest("Virtual console logout"):
51+ machine.send_chars("exit\n")
52+ machine.wait_until_fails("pgrep -u alice bash")
53+ machine.screenshot("mingetty")
54+
55+ with subtest("Check whether ctrl-alt-delete works"):
56+ machine.send_key("ctrl-alt-delete")
57+ machine.wait_for_shutdown()
58+ '';
7359})
nixos/tests/loki.nix+10−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, pkgs, ... }:
1+import ./make-test-python.nix ({ lib, pkgs, ... }:
22
33{
44 name = "loki";
@@ -26,12 +26,14 @@ import ./make-test.nix ({ lib, pkgs, ... }:
2626 };
2727
2828 testScript = ''
29− $machine->start;
30− $machine->waitForUnit("loki.service");
31− $machine->waitForUnit("promtail.service");
32− $machine->waitForOpenPort(3100);
33− $machine->waitForOpenPort(9080);
34− $machine->succeed("echo 'Loki Ingestion Test' > /var/log/testlog");
35− $machine->waitUntilSucceeds("${pkgs.grafana-loki}/bin/logcli --addr='http://localhost:3100' query --no-labels '{job=\"varlogs\",filename=\"/var/log/testlog\"}' | grep -q 'Loki Ingestion Test'");
29+ machine.start
30+ machine.wait_for_unit("loki.service")
31+ machine.wait_for_unit("promtail.service")
32+ machine.wait_for_open_port(3100)
33+ machine.wait_for_open_port(9080)
34+ machine.succeed("echo 'Loki Ingestion Test' > /var/log/testlog")
35+ machine.wait_until_succeeds(
36+ "${pkgs.grafana-loki}/bin/logcli --addr='http://localhost:3100' query --no-labels '{job=\"varlogs\",filename=\"/var/log/testlog\"}' | grep -q 'Loki Ingestion Test'"
37+ )
3638 '';
3739})
nixos/tests/lorri/builder.shnew file+3
@@ -0,0 +1,3 @@
1+#!/bin/sh
2+
3+printf "%s" "${name:?}" > "${out:?}"
nixos/tests/lorri/default.nixnew file+26
@@ -0,0 +1,26 @@
1+import ../make-test-python.nix {
2+ machine = { pkgs, ... }: {
3+ imports = [ ../../modules/profiles/minimal.nix ];
4+ environment.systemPackages = [ pkgs.lorri ];
5+ };
6+
7+ testScript = ''
8+ # Copy files over
9+ machine.succeed(
10+ "cp '${./fake-shell.nix}' shell.nix"
11+ )
12+ machine.succeed(
13+ "cp '${./builder.sh}' builder.sh"
14+ )
15+
16+ # Start the daemon and wait until it is ready
17+ machine.execute("lorri daemon > lorri.stdout 2> lorri.stderr &")
18+ machine.wait_until_succeeds("grep --fixed-strings 'lorri: ready' lorri.stdout")
19+
20+ # Ping the daemon
21+ machine.execute("lorri ping_ $(readlink -f shell.nix)")
22+
23+ # Wait for the daemon to finish the build
24+ machine.wait_until_succeeds("grep --fixed-strings 'OutputPaths' lorri.stdout")
25+ '';
26+}
nixos/tests/lorri/fake-shell.nixnew file+5
@@ -0,0 +1,5 @@
1+derivation {
2+ system = builtins.currentSystem;
3+ name = "fake-shell";
4+ builder = ./builder.sh;
5+}
nixos/tests/magnetico.nix+19−7
@@ -1,4 +1,9 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} :
2+
3+let
4+ port = 8081;
5+in
6+{
27 name = "magnetico";
38 meta = with pkgs.stdenv.lib.maintainers; {
49 maintainers = [ rnhmjoj ];
@@ -12,17 +17,24 @@ import ./make-test.nix ({ pkgs, ...} : {
1217 services.magnetico = {
1318 enable = true;
1419 crawler.port = 9000;
20+ web.port = port;
1521 web.credentials.user = "$2y$12$P88ZF6soFthiiAeXnz64aOWDsY3Dw7Yw8fZ6GtiqFNjknD70zDmNe";
1622 };
1723 };
1824
1925 testScript =
2026 ''
21− startAll;
22− $machine->waitForUnit("magneticod");
23− $machine->waitForUnit("magneticow");
24− $machine->succeed("${pkgs.curl}/bin/curl -u user:password http://localhost:8080");
25− $machine->succeed("${pkgs.curl}/bin/curl -u user:wrongpwd http://localhost:8080") =~ "Unauthorised." or die;
26− $machine->shutdown();
27+ start_all()
28+ machine.wait_for_unit("magneticod")
29+ machine.wait_for_unit("magneticow")
30+ machine.succeed(
31+ "${pkgs.curl}/bin/curl "
32+ + "-u user:password http://localhost:${toString port}"
33+ )
34+ assert "Unauthorised." in machine.succeed(
35+ "${pkgs.curl}/bin/curl "
36+ + "-u user:wrongpwd http://localhost:${toString port}"
37+ )
38+ machine.shutdown()
2739 '';
2840})
nixos/tests/make-test-python.nixnew file+9
@@ -0,0 +1,9 @@
1+f: {
2+ system ? builtins.currentSystem,
3+ pkgs ? import ../.. { inherit system; config = {}; },
4+ ...
5+} @ args:
6+
7+with import ../lib/testing-python.nix { inherit system pkgs; };
8+
9+makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)
nixos/tests/matomo.nixnew file+43
@@ -0,0 +1,43 @@
1+{ system ? builtins.currentSystem, config ? { }
2+, pkgs ? import ../.. { inherit system config; } }:
3+
4+with import ../lib/testing.nix { inherit system pkgs; };
5+with pkgs.lib;
6+
7+let
8+ matomoTest = package:
9+ makeTest {
10+ machine = { config, pkgs, ... }: {
11+ services.matomo = {
12+ package = package;
13+ enable = true;
14+ nginx = {
15+ forceSSL = false;
16+ enableACME = false;
17+ };
18+ };
19+ services.mysql = {
20+ enable = true;
21+ package = pkgs.mysql;
22+ };
23+ services.nginx.enable = true;
24+ };
25+
26+ testScript = ''
27+ startAll;
28+ $machine->waitForUnit("mysql.service");
29+ $machine->waitForUnit("phpfpm-matomo.service");
30+ $machine->waitForUnit("nginx.service");
31+ $machine->succeed("curl -sSfL http://localhost/ | grep '<title>Matomo[^<]*Installation'");
32+ '';
33+ };
34+in {
35+ matomo = matomoTest pkgs.matomo // {
36+ name = "matomo";
37+ meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];
38+ };
39+ matomo-beta = matomoTest pkgs.matomo-beta // {
40+ name = "matomo-beta";
41+ meta.maintainers = with maintainers; [ florianjacob kiwi mmilata ];
42+ };
43+}
nixos/tests/matrix-synapse.nix+12−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... } : let
1+import ./make-test-python.nix ({ pkgs, ... } : let
22
33
44 runWithOpenSSL = file: cmd: pkgs.runCommand file {
@@ -55,13 +55,17 @@ in {
5555 };
5656
5757 testScript = ''
58− startAll;
59− $serverpostgres->waitForUnit("matrix-synapse.service");
60− $serverpostgres->waitUntilSucceeds("curl -L --cacert ${ca_pem} https://localhost:8448/");
61− $serverpostgres->requireActiveUnit("postgresql.service");
62− $serversqlite->waitForUnit("matrix-synapse.service");
63− $serversqlite->waitUntilSucceeds("curl -L --cacert ${ca_pem} https://localhost:8448/");
64− $serversqlite->mustSucceed("[ -e /var/lib/matrix-synapse/homeserver.db ]");
58+ start_all()
59+ serverpostgres.wait_for_unit("matrix-synapse.service")
60+ serverpostgres.wait_until_succeeds(
61+ "curl -L --cacert ${ca_pem} https://localhost:8448/"
62+ )
63+ serverpostgres.require_unit_state("postgresql.service")
64+ serversqlite.wait_for_unit("matrix-synapse.service")
65+ serversqlite.wait_until_succeeds(
66+ "curl -L --cacert ${ca_pem} https://localhost:8448/"
67+ )
68+ serversqlite.succeed("[ -e /var/lib/matrix-synapse/homeserver.db ]")
6569 '';
6670
6771})
nixos/tests/metabase.nix+5−5
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "metabase";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ mmahut ];
@@ -12,9 +12,9 @@ import ./make-test.nix ({ pkgs, ... }: {
1212 };
1313
1414 testScript = ''
15− startAll;
16− $machine->waitForUnit("metabase.service");
17− $machine->waitForOpenPort(3000);
18− $machine->waitUntilSucceeds("curl -L http://localhost:3000/setup | grep Metabase");
15+ start_all()
16+ machine.wait_for_unit("metabase.service")
17+ machine.wait_for_open_port(3000)
18+ machine.wait_until_succeeds("curl -L http://localhost:3000/setup | grep Metabase")
1919 '';
2020})
nixos/tests/moinmoin.nixnew file+24
@@ -0,0 +1,24 @@
1+import ./make-test.nix ({ pkgs, lib, ... }: {
2+ name = "moinmoin";
3+ meta.maintainers = [ ]; # waiting for https://github.com/NixOS/nixpkgs/pull/65397
4+
5+ machine =
6+ { ... }:
7+ { services.moinmoin.enable = true;
8+ services.moinmoin.wikis.ExampleWiki.superUsers = [ "admin" ];
9+ services.moinmoin.wikis.ExampleWiki.webHost = "localhost";
10+
11+ services.nginx.virtualHosts.localhost.enableACME = false;
12+ services.nginx.virtualHosts.localhost.forceSSL = false;
13+ };
14+
15+ testScript = ''
16+ startAll;
17+
18+ $machine->waitForUnit('moin-ExampleWiki.service');
19+ $machine->waitForUnit('nginx.service');
20+ $machine->waitForFile('/run/moin/ExampleWiki/gunicorn.sock');
21+ $machine->succeed('curl -L http://localhost/') =~ /If you have just installed/ or die;
22+ $machine->succeed('moin-ExampleWiki account create --name=admin --email=admin@example.com --password=foo 2>&1') =~ /status success/ or die;
23+ '';
24+})
nixos/tests/moodle.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }: {
1+import ./make-test-python.nix ({ pkgs, lib, ... }: {
22 name = "moodle";
33 meta.maintainers = [ lib.maintainers.aanderse ];
44
@@ -15,8 +15,8 @@ import ./make-test.nix ({ pkgs, lib, ... }: {
1515 };
1616
1717 testScript = ''
18− startAll;
19− $machine->waitForUnit('phpfpm-moodle.service');
20− $machine->succeed('curl http://localhost/') =~ /You are not logged in/ or die;
18+ start_all()
19+ machine.wait_for_unit("phpfpm-moodle.service")
20+ machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'")
2121 '';
2222})
nixos/tests/morty.nix+4−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33{
44 name = "morty";
@@ -22,11 +22,9 @@ import ./make-test.nix ({ pkgs, ... }:
2222 testScript =
2323 { ... }:
2424 ''
25− $mortyProxyWithKey->waitForUnit("default.target");
26−
27− $mortyProxyWithKey->waitForOpenPort(3001);
28− $mortyProxyWithKey->succeed("curl -L 127.0.0.1:3001 | grep MortyProxy");
29−
25+ mortyProxyWithKey.wait_for_unit("default.target")
26+ mortyProxyWithKey.wait_for_open_port(3001)
27+ mortyProxyWithKey.succeed("curl -L 127.0.0.1:3001 | grep MortyProxy")
3028 '';
3129
3230})
nixos/tests/mpd.nix+42−28
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test.nix ({ pkgs, lib, ... }:
22 let
33 track = pkgs.fetchurl {
44 # Sourced from http://freemusicarchive.org/music/Blue_Wave_Theory/Surf_Music_Month_Challenge/Skyhawk_Beach_fade_in
@@ -46,38 +46,51 @@ import ./make-test.nix ({ pkgs, ... }:
4646 };
4747
4848 nodes =
49− { client =
49+ { client =
5050 { ... }: { };
5151
5252 serverALSA =
53− { ... }: (mkServer {
54− mpd = defaultMpdCfg // {
55− network.listenAddress = "any";
56− extraConfig = ''
57− audio_output {
58− type "alsa"
59− name "ALSA"
60− mixer_type "null"
61− }
62− '';
63− };
64−
65− musicService = with defaultMpdCfg; musicService { inherit user group musicDirectory; };
66− }) // { networking.firewall.allowedTCPPorts = [ 6600 ]; };
53+ { ... }: lib.mkMerge [
54+ (mkServer {
55+ mpd = defaultMpdCfg // {
56+ network.listenAddress = "any";
57+ extraConfig = ''
58+ audio_output {
59+ type "alsa"
60+ name "ALSA"
61+ mixer_type "null"
62+ }
63+ '';
64+ };
65+ musicService = with defaultMpdCfg; musicService { inherit user group musicDirectory; };
66+ })
67+ { networking.firewall.allowedTCPPorts = [ 6600 ]; }
68+ ];
6769
6870 serverPulseAudio =
69− { ... }: (mkServer {
70− mpd = defaultMpdCfg // {
71− extraConfig = ''
72− audio_output {
73− type "pulse"
74− name "The Pulse"
75− }
76− '';
77− };
78−
79− musicService = with defaultCfg; musicService { inherit user group musicDirectory; };
80− }) // { hardware.pulseaudio.enable = true; };
71+ { ... }: lib.mkMerge [
72+ (mkServer {
73+ mpd = defaultMpdCfg // {
74+ extraConfig = ''
75+ audio_output {
76+ type "pulse"
77+ name "The Pulse"
78+ }
79+ '';
80+ };
81+
82+ musicService = with defaultCfg; musicService { inherit user group musicDirectory; };
83+ })
84+ {
85+ hardware.pulseaudio = {
86+ enable = true;
87+ systemWide = true;
88+ tcp.enable = true;
89+ tcp.anonymousClients.allowAll = true;
90+ };
91+ systemd.services.mpd.environment.PULSE_SERVER = "localhost";
92+ }
93+ ];
8194 };
8295
8396 testScript = ''
@@ -110,6 +123,7 @@ import ./make-test.nix ({ pkgs, ... }:
110123 play_some_music($serverALSA);
111124 play_some_music($serverPulseAudio);
112125
126+ $client->waitForUnit("multi-user.target");
113127 $client->succeed("$mpc -h serverALSA status");
114128
115129 # The PulseAudio-based server is configured not to accept external client connections
nixos/tests/nixos-generate-config.nix+8−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ... } : {
1+import ./make-test-python.nix ({ lib, ... } : {
22 name = "nixos-generate-config";
33 meta.maintainers = with lib.maintainers; [ basvandijk ];
44 machine = {
@@ -11,14 +11,16 @@ import ./make-test.nix ({ lib, ... } : {
1111 '';
1212 };
1313 testScript = ''
14− startAll;
15− $machine->waitForUnit("multi-user.target");
16− $machine->succeed("nixos-generate-config");
14+ start_all()
15+ machine.wait_for_unit("multi-user.target")
16+ machine.succeed("nixos-generate-config")
1717
1818 # Test if the configuration really is overridden
19− $machine->succeed("grep 'OVERRIDDEN' /etc/nixos/configuration.nix");
19+ machine.succeed("grep 'OVERRIDDEN' /etc/nixos/configuration.nix")
2020
2121 # Test of if the Perl variable $bootLoaderConfig is spliced correctly:
22− $machine->succeed("grep 'boot\\.loader\\.grub\\.enable = true;' /etc/nixos/configuration.nix");
22+ machine.succeed(
23+ "grep 'boot\\.loader\\.grub\\.enable = true;' /etc/nixos/configuration.nix"
24+ )
2325 '';
2426})
nixos/tests/openarena.nixnew file+36
@@ -0,0 +1,36 @@
1+import ./make-test.nix ({ pkgs, ...} : {
2+ name = "openarena";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ tomfitzhenry ];
5+ };
6+
7+ machine =
8+ { pkgs, ... }:
9+
10+ { imports = [];
11+ environment.systemPackages = with pkgs; [
12+ socat
13+ ];
14+ services.openarena = {
15+ enable = true;
16+ extraFlags = [
17+ "+set dedicated 2"
18+ "+set sv_hostname 'My NixOS server'"
19+ "+map oa_dm1"
20+ ];
21+ };
22+ };
23+
24+ testScript =
25+ ''
26+ $machine->waitForUnit("openarena.service");
27+ $machine->waitUntilSucceeds("ss --numeric --udp --listening | grep -q 27960");
28+
29+ # The log line containing 'resolve address' is last and only message that occurs after
30+ # the server starts accepting clients.
31+ $machine->waitUntilSucceeds("journalctl -u openarena.service | grep 'resolve address: dpmaster.deathmask.net'");
32+
33+ # Check it's possible to join the server.
34+ $machine->succeed("echo -n -e '\\xff\\xff\\xff\\xffgetchallenge' | socat - UDP4-DATAGRAM:127.0.0.1:27960 | grep -q challengeResponse");
35+ '';
36+})
nixos/tests/opensmtpd.nix+13−13
@@ -1,4 +1,4 @@
1−import ./make-test.nix {
1+import ./make-test-python.nix {
22 name = "opensmtpd";
33
44 nodes = {
@@ -102,23 +102,23 @@ import ./make-test.nix {
102102 };
103103
104104 testScript = ''
105− startAll;
105+ start_all()
106106
107− $client->waitForUnit("network-online.target");
108− $smtp1->waitForUnit('opensmtpd');
109− $smtp2->waitForUnit('opensmtpd');
110− $smtp2->waitForUnit('dovecot2');
107+ client.wait_for_unit("network-online.target")
108+ smtp1.wait_for_unit("opensmtpd")
109+ smtp2.wait_for_unit("opensmtpd")
110+ smtp2.wait_for_unit("dovecot2")
111111
112112 # To prevent sporadic failures during daemon startup, make sure
113113 # services are listening on their ports before sending requests
114− $smtp1->waitForOpenPort(25);
115− $smtp2->waitForOpenPort(25);
116− $smtp2->waitForOpenPort(143);
114+ smtp1.wait_for_open_port(25)
115+ smtp2.wait_for_open_port(25)
116+ smtp2.wait_for_open_port(143)
117117
118− $client->succeed('send-a-test-mail');
119− $smtp1->waitUntilFails('smtpctl show queue | egrep .');
120− $smtp2->waitUntilFails('smtpctl show queue | egrep .');
121− $client->succeed('check-mail-landed >&2');
118+ client.succeed("send-a-test-mail")
119+ smtp1.wait_until_fails("smtpctl show queue | egrep .")
120+ smtp2.wait_until_fails("smtpctl show queue | egrep .")
121+ client.succeed("check-mail-landed >&2")
122122 '';
123123
124124 meta.timeout = 30;
nixos/tests/openssh.nix+51−43
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33let inherit (import ./ssh-keys.nix pkgs)
44 snakeOilPrivateKey snakeOilPublicKey;
@@ -58,47 +58,55 @@ in {
5858 };
5959
6060 testScript = ''
61− startAll;
62−
63− my $key=`${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f key -N ""`;
64−
65− $server->waitForUnit("sshd");
66−
67− subtest "manual-authkey", sub {
68− $server->succeed("mkdir -m 700 /root/.ssh");
69− $server->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys");
70− $server_lazy->succeed("mkdir -m 700 /root/.ssh");
71− $server_lazy->copyFileFromHost("key.pub", "/root/.ssh/authorized_keys");
72−
73− $client->succeed("mkdir -m 700 /root/.ssh");
74− $client->copyFileFromHost("key", "/root/.ssh/id_ed25519");
75− $client->succeed("chmod 600 /root/.ssh/id_ed25519");
76−
77− $client->waitForUnit("network.target");
78− $client->succeed("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server 'echo hello world' >&2");
79− $client->succeed("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server 'ulimit -l' | grep 1024");
80−
81− $client->succeed("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server_lazy 'echo hello world' >&2");
82− $client->succeed("ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server_lazy 'ulimit -l' | grep 1024");
83−
84− };
85−
86− subtest "configured-authkey", sub {
87− $client->succeed("cat ${snakeOilPrivateKey} > privkey.snakeoil");
88− $client->succeed("chmod 600 privkey.snakeoil");
89− $client->succeed("ssh -o UserKnownHostsFile=/dev/null" .
90− " -o StrictHostKeyChecking=no -i privkey.snakeoil" .
91− " server true");
92−
93− $client->succeed("ssh -o UserKnownHostsFile=/dev/null" .
94− " -o StrictHostKeyChecking=no -i privkey.snakeoil" .
95− " server_lazy true");
96−
97− };
98−
99− subtest "localhost-only", sub {
100− $server_localhost_only->succeed("ss -nlt | grep '127.0.0.1:22'");
101− $server_localhost_only_lazy->succeed("ss -nlt | grep '127.0.0.1:22'");
102− }
61+ start_all()
62+
63+ server.wait_for_unit("sshd")
64+
65+ with subtest("manual-authkey"):
66+ client.succeed("mkdir -m 700 /root/.ssh")
67+ client.succeed(
68+ '${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ""'
69+ )
70+ public_key = client.succeed(
71+ "${pkgs.openssh}/bin/ssh-keygen -y -f /root/.ssh/id_ed25519"
72+ )
73+ public_key = public_key.strip()
74+ client.succeed("chmod 600 /root/.ssh/id_ed25519")
75+
76+ server.succeed("mkdir -m 700 /root/.ssh")
77+ server.succeed("echo '{}' > /root/.ssh/authorized_keys".format(public_key))
78+ server_lazy.succeed("mkdir -m 700 /root/.ssh")
79+ server_lazy.succeed("echo '{}' > /root/.ssh/authorized_keys".format(public_key))
80+
81+ client.wait_for_unit("network.target")
82+ client.succeed(
83+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server 'echo hello world' >&2"
84+ )
85+ client.succeed(
86+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server 'ulimit -l' | grep 1024"
87+ )
88+
89+ client.succeed(
90+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server_lazy 'echo hello world' >&2"
91+ )
92+ client.succeed(
93+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no server_lazy 'ulimit -l' | grep 1024"
94+ )
95+
96+ with subtest("configured-authkey"):
97+ client.succeed(
98+ "cat ${snakeOilPrivateKey} > privkey.snakeoil"
99+ )
100+ client.succeed("chmod 600 privkey.snakeoil")
101+ client.succeed(
102+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i privkey.snakeoil server true"
103+ )
104+ client.succeed(
105+ "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i privkey.snakeoil server_lazy true"
106+ )
107+
108+ with subtest("localhost-only"):
109+ server_localhost_only.succeed("ss -nlt | grep '127.0.0.1:22'")
110+ server_localhost_only_lazy.succeed("ss -nlt | grep '127.0.0.1:22'")
103111 '';
104112})
nixos/tests/orangefs.nixnew file+88
@@ -0,0 +1,88 @@
1+import ./make-test.nix ({ ... } :
2+
3+let
4+ server = { pkgs, ... } : {
5+ networking.firewall.allowedTCPPorts = [ 3334 ];
6+ boot.initrd.postDeviceCommands = ''
7+ ${pkgs.e2fsprogs}/bin/mkfs.ext4 -L data /dev/vdb
8+ '';
9+
10+ virtualisation.emptyDiskImages = [ 4096 ];
11+
12+ fileSystems = pkgs.lib.mkVMOverride
13+ [ { mountPoint = "/data";
14+ device = "/dev/disk/by-label/data";
15+ fsType = "ext4";
16+ }
17+ ];
18+
19+ services.orangefs.server = {
20+ enable = true;
21+ dataStorageSpace = "/data/storage";
22+ metadataStorageSpace = "/data/meta";
23+ servers = {
24+ server1 = "tcp://server1:3334";
25+ server2 = "tcp://server2:3334";
26+ };
27+ };
28+ };
29+
30+ client = { lib, ... } : {
31+ networking.firewall.enable = true;
32+
33+ services.orangefs.client = {
34+ enable = true;
35+ fileSystems = [{
36+ target = "tcp://server1:3334/orangefs";
37+ mountPoint = "/orangefs";
38+ }];
39+ };
40+ };
41+
42+in {
43+ name = "orangefs";
44+
45+ nodes = {
46+ server1 = server;
47+ server2 = server;
48+
49+ client1 = client;
50+ client2 = client;
51+ };
52+
53+ testScript = ''
54+ # format storage
55+ foreach my $server (($server1,$server2))
56+ {
57+ $server->start();
58+ $server->waitForUnit("multi-user.target");
59+ $server->succeed("mkdir -p /data/storage /data/meta");
60+ $server->succeed("chown orangefs:orangefs /data/storage /data/meta");
61+ $server->succeed("chmod 0770 /data/storage /data/meta");
62+ $server->succeed("sudo -g orangefs -u orangefs pvfs2-server -f /etc/orangefs/server.conf");
63+ }
64+
65+ # start services after storage is formated on all machines
66+ foreach my $server (($server1,$server2))
67+ {
68+ $server->succeed("systemctl start orangefs-server.service");
69+ }
70+
71+ # Check if clients can reach and mount the FS
72+ foreach my $client (($client1,$client2))
73+ {
74+ $client->start();
75+ $client->waitForUnit("orangefs-client.service");
76+ # Both servers need to be reachable
77+ $client->succeed("pvfs2-check-server -h server1 -f orangefs -n tcp -p 3334");
78+ $client->succeed("pvfs2-check-server -h server2 -f orangefs -n tcp -p 3334");
79+ $client->waitForUnit("orangefs.mount");
80+
81+ }
82+
83+ # R/W test between clients
84+ $client1->succeed("echo test > /orangefs/file1");
85+ $client2->succeed("grep test /orangefs/file1");
86+
87+ '';
88+})
nixos/tests/os-prober.nix+1−2
@@ -51,12 +51,11 @@ let
5151 hashed-mirrors =
5252 connect-timeout = 1
5353 '';
54− services.udisks2.enable = lib.mkForce false;
5554 };
5655 # /etc/nixos/configuration.nix for the vm
5756 configFile = pkgs.writeText "configuration.nix" ''
5857 {config, pkgs, ...}: ({
59− imports =
58+ imports =
6059 [ ./hardware-configuration.nix
6160 <nixpkgs/nixos/modules/testing/test-instrumentation.nix>
6261 ];
nixos/tests/ostree.nixdeleted−21
@@ -1,21 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, lib, ... }: {
3− name = "ostree";
4−
5− meta = {
6− maintainers = pkgs.ostree.meta.maintainers;
7− };
8−
9− # TODO: Wrap/patch the tests directly in the package
10− machine = { pkgs, ... }: {
11− environment.systemPackages = with pkgs; [
12− gnome-desktop-testing ostree gnupg (python3.withPackages (p: with p; [ pyyaml ]))
13− ];
14−
15− environment.variables.GI_TYPELIB_PATH = lib.makeSearchPath "lib/girepository-1.0" (with pkgs; [ gtk3 pango.out ostree gdk-pixbuf atk ]); # for GJS tests
16− };
17−
18− testScript = ''
19− $machine->succeed("gnome-desktop-testing-runner -d ${pkgs.ostree.installedTests}/share");
20− '';
21−})
nixos/tests/packagekit.nix+6−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "packagekit";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ peterhoeg ];
@@ -13,12 +13,14 @@ import ./make-test.nix ({ pkgs, ... }: {
1313 };
1414
1515 testScript = ''
16− startAll;
16+ start_all()
1717
1818 # send a dbus message to activate the service
19− $machine->succeed("dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect");
19+ machine.succeed(
20+ "dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect"
21+ )
2022
2123 # so now it should be running
22− $machine->succeed("systemctl is-active packagekit.service");
24+ machine.wait_for_unit("packagekit.service")
2325 '';
2426})
nixos/tests/pgjwt.nix+10−13
@@ -1,12 +1,5 @@
1−import ./make-test.nix ({ pkgs, lib, ...}:
2−let
3− test = with pkgs; runCommand "patch-test" {
4− nativeBuildInputs = [ pgjwt ];
5− }
6− ''
7− sed -e '12 i CREATE EXTENSION pgcrypto;\nCREATE EXTENSION pgtap;\nSET search_path TO tap,public;' ${pgjwt.src}/test.sql > $out;
8− '';
9−in
1+import ./make-test-python.nix ({ pkgs, lib, ...}:
2+
103with pkgs; {
114 name = "pgjwt";
125 meta = with lib.maintainers; {
@@ -29,9 +22,13 @@ with pkgs; {
2922 pgProve = "${pkgs.perlPackages.TAPParserSourceHandlerpgTAP}";
3023 in
3124 ''
32− startAll;
33− $master->waitForUnit("postgresql");
34− $master->copyFileFromHost("${test}","/tmp/test.sql");
35− $master->succeed("${pkgs.sudo}/bin/sudo -u ${sqlSU} PGOPTIONS=--search_path=tap,public ${pgProve}/bin/pg_prove -d postgres -v -f /tmp/test.sql");
25+ start_all()
26+ master.wait_for_unit("postgresql")
27+ master.succeed(
28+ "${pkgs.gnused}/bin/sed -e '12 i CREATE EXTENSION pgcrypto;\\nCREATE EXTENSION pgtap;\\nSET search_path TO tap,public;' ${pgjwt.src}/test.sql > /tmp/test.sql"
29+ )
30+ master.succeed(
31+ "${pkgs.sudo}/bin/sudo -u ${sqlSU} PGOPTIONS=--search_path=tap,public ${pgProve}/bin/pg_prove -d postgres -v -f /tmp/test.sql"
32+ )
3633 '';
3734})
nixos/tests/postgresql.nix+24−20
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77with pkgs.lib;
88
99let
@@ -40,29 +40,33 @@ let
4040 backupName = if backup-all then "all" else "postgres";
4141 backupService = if backup-all then "postgresqlBackup" else "postgresqlBackup-postgres";
4242 in ''
43− sub check_count {
44− my ($select, $nlines) = @_;
45− return 'test $(sudo -u postgres psql postgres -tAc "' . $select . '"|wc -l) -eq ' . $nlines;
46− }
43+ def check_count(statement, lines):
44+ return 'test $(sudo -u postgres psql postgres -tAc "{}"|wc -l) -eq {}'.format(
45+ statement, lines
46+ )
47+
48+
49+ machine.start()
50+ machine.wait_for_unit("postgresql")
4751
48− $machine->start;
49− $machine->waitForUnit("postgresql");
5052 # postgresql should be available just after unit start
51− $machine->succeed("cat ${test-sql} | sudo -u postgres psql");
52− $machine->shutdown; # make sure that postgresql survive restart (bug #1735)
53− sleep(2);
54− $machine->start;
55− $machine->waitForUnit("postgresql");
56− $machine->fail(check_count("SELECT * FROM sth;", 3));
57− $machine->succeed(check_count("SELECT * FROM sth;", 5));
58− $machine->fail(check_count("SELECT * FROM sth;", 4));
59− $machine->succeed(check_count("SELECT xpath(\'/test/text()\', doc) FROM xmltest;", 1));
53+ machine.succeed(
54+ "cat ${test-sql} | sudo -u postgres psql"
55+ )
56+ machine.shutdown() # make sure that postgresql survive restart (bug #1735)
57+ time.sleep(2)
58+ machine.start()
59+ machine.wait_for_unit("postgresql")
60+ machine.fail(check_count("SELECT * FROM sth;", 3))
61+ machine.succeed(check_count("SELECT * FROM sth;", 5))
62+ machine.fail(check_count("SELECT * FROM sth;", 4))
63+ machine.succeed(check_count("SELECT xpath('/test/text()', doc) FROM xmltest;", 1))
6064
6165 # Check backup service
62− $machine->succeed("systemctl start ${backupService}.service");
63− $machine->succeed("zcat /var/backup/postgresql/${backupName}.sql.gz | grep '<test>ok</test>'");
64− $machine->succeed("stat -c '%a' /var/backup/postgresql/${backupName}.sql.gz | grep 600");
65− $machine->shutdown;
66+ machine.succeed("systemctl start ${backupService}.service")
67+ machine.succeed("zcat /var/backup/postgresql/${backupName}.sql.gz | grep '<test>ok</test>'")
68+ machine.succeed("stat -c '%a' /var/backup/postgresql/${backupName}.sql.gz | grep 600")
69+ machine.shutdown()
6670 '';
6771
6872 };
nixos/tests/powerdns.nix+4−3
@@ -1,12 +1,13 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "powerdns";
33
44 nodes.server = { ... }: {
55 services.powerdns.enable = true;
6+ environment.systemPackages = [ pkgs.dnsutils ];
67 };
78
89 testScript = ''
9− $server->waitForUnit("pdns");
10− $server->succeed("${pkgs.dnsutils}/bin/dig version.bind txt chaos \@127.0.0.1");
10+ server.wait_for_unit("pdns")
11+ server.succeed("dig version.bind txt chaos \@127.0.0.1")
1112 '';
1213})
nixos/tests/pppd.nix+6−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix (
1+import ./make-test-python.nix (
22 let
33 chap-secrets = {
44 text = ''"flynn" * "reindeerflotilla" *'';
@@ -53,10 +53,10 @@ import ./make-test.nix (
5353 environment.etc."ppp/chap-secrets" = chap-secrets;
5454 };
5555 };
56−
56+
5757 testScript = ''
58− startAll;
59− $client->waitUntilSucceeds("ping -c1 -W1 192.0.2.1");
60− $server->waitUntilSucceeds("ping -c1 -W1 192.0.2.2");
58+ start_all()
59+ client.wait_until_succeeds("ping -c1 -W1 192.0.2.1")
60+ server.wait_until_succeeds("ping -c1 -W1 192.0.2.2")
6161 '';
62− })
62+ })
nixos/tests/prometheus-exporters.nix+127−95
@@ -4,12 +4,10 @@
44}:
55
66let
7− inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest;
7+ inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
88 inherit (pkgs.lib) concatStringsSep maintainers mapAttrs mkMerge
99 removeSuffix replaceChars singleton splitString;
1010
11− escape' = str: replaceChars [''"'' "$" "\n"] [''\\\"'' "\\$" ""] str;
12−
1311/*
1412 * The attrset `exporterTests` contains one attribute
1513 * for each exporter test. Each of these attributes
@@ -33,9 +31,9 @@ let
3331 * services.<metricProvider>.enable = true;
3432 * };
3533 * exporterTest = ''
36− * waitForUnit("prometheus-<exporterName>-exporter.service");
37− * waitForOpenPort("1234");
38− * succeed("curl -sSf 'localhost:1234/metrics'");
34+ * wait_for_unit("prometheus-<exporterName>-exporter.service")
35+ * wait_for_open_port("1234")
36+ * succeed("curl -sSf 'localhost:1234/metrics'")
3937 * '';
4038 * };
4139 *
@@ -49,11 +47,11 @@ let
4947 * };
5048 *
5149 * testScript = ''
52− * $<exporterName>->start();
53− * $<exporterName>->waitForUnit("prometheus-<exporterName>-exporter.service");
54− * $<exporterName>->waitForOpenPort("1234");
55− * $<exporterName>->succeed("curl -sSf 'localhost:1234/metrics'");
56− * $<exporterName>->shutdown();
50+ * <exporterName>.start()
51+ * <exporterName>.wait_for_unit("prometheus-<exporterName>-exporter.service")
52+ * <exporterName>.wait_for_open_port("1234")
53+ * <exporterName>.succeed("curl -sSf 'localhost:1234/metrics'")
54+ * <exporterName>.shutdown()
5755 * '';
5856 */
5957
@@ -72,9 +70,11 @@ let
7270 '';
7371 };
7472 exporterTest = ''
75− waitForUnit("prometheus-bind-exporter.service");
76− waitForOpenPort(9119);
77− succeed("curl -sSf http://localhost:9119/metrics | grep -q 'bind_query_recursions_total 0'");
73+ wait_for_unit("prometheus-bind-exporter.service")
74+ wait_for_open_port(9119)
75+ succeed(
76+ "curl -sSf http://localhost:9119/metrics | grep -q 'bind_query_recursions_total 0'"
77+ )
7878 '';
7979 };
8080
@@ -89,9 +89,11 @@ let
8989 });
9090 };
9191 exporterTest = ''
92− waitForUnit("prometheus-blackbox-exporter.service");
93− waitForOpenPort(9115);
94− succeed("curl -sSf 'http://localhost:9115/probe?target=localhost&module=icmp_v6' | grep -q 'probe_success 1'");
92+ wait_for_unit("prometheus-blackbox-exporter.service")
93+ wait_for_open_port(9115)
94+ succeed(
95+ "curl -sSf 'http://localhost:9115/probe?target=localhost&module=icmp_v6' | grep -q 'probe_success 1'"
96+ )
9597 '';
9698 };
9799
@@ -100,7 +102,7 @@ let
100102 enable = true;
101103 extraFlags = [ "--web.collectd-push-path /collectd" ];
102104 };
103− exporterTest =let postData = escape' ''
105+ exporterTest = let postData = replaceChars [ "\n" ] [ "" ] ''
104106 [{
105107 "values":[23],
106108 "dstypes":["gauge"],
@@ -108,13 +110,21 @@ let
108110 "interval":1000,
109111 "host":"testhost",
110112 "plugin":"testplugin",
111− "time":$(date +%s)
113+ "time":DATE
112114 }]
113115 ''; in ''
114− waitForUnit("prometheus-collectd-exporter.service");
115− waitForOpenPort(9103);
116− succeed("curl -sSfH 'Content-Type: application/json' -X POST --data \"${postData}\" localhost:9103/collectd");
117− succeed("curl -sSf localhost:9103/metrics | grep -q 'collectd_testplugin_gauge{instance=\"testhost\"} 23'");
116+ wait_for_unit("prometheus-collectd-exporter.service")
117+ wait_for_open_port(9103)
118+ succeed(
119+ 'echo \'${postData}\'> /tmp/data.json'
120+ )
121+ succeed('sed -ie "s DATE $(date +%s) " /tmp/data.json')
122+ succeed(
123+ "curl -sSfH 'Content-Type: application/json' -X POST --data @/tmp/data.json localhost:9103/collectd"
124+ )
125+ succeed(
126+ "curl -sSf localhost:9103/metrics | grep -q 'collectd_testplugin_gauge{instance=\"testhost\"} 23'"
127+ )
118128 '';
119129 };
120130
@@ -127,9 +137,9 @@ let
127137 services.dnsmasq.enable = true;
128138 };
129139 exporterTest = ''
130− waitForUnit("prometheus-dnsmasq-exporter.service");
131− waitForOpenPort(9153);
132− succeed("curl -sSf http://localhost:9153/metrics | grep -q 'dnsmasq_leases 0'");
140+ wait_for_unit("prometheus-dnsmasq-exporter.service")
141+ wait_for_open_port(9153)
142+ succeed("curl -sSf http://localhost:9153/metrics | grep -q 'dnsmasq_leases 0'")
133143 '';
134144 };
135145
@@ -144,9 +154,11 @@ let
144154 services.dovecot2.enable = true;
145155 };
146156 exporterTest = ''
147− waitForUnit("prometheus-dovecot-exporter.service");
148− waitForOpenPort(9166);
149− succeed("curl -sSf http://localhost:9166/metrics | grep -q 'dovecot_up{scope=\"global\"} 1'");
157+ wait_for_unit("prometheus-dovecot-exporter.service")
158+ wait_for_open_port(9166)
159+ succeed(
160+ "curl -sSf http://localhost:9166/metrics | grep -q 'dovecot_up{scope=\"global\"} 1'"
161+ )
150162 '';
151163 };
152164
@@ -155,9 +167,11 @@ let
155167 enable = true;
156168 };
157169 exporterTest = ''
158− waitForUnit("prometheus-fritzbox-exporter.service");
159− waitForOpenPort(9133);
160− succeed("curl -sSf http://localhost:9133/metrics | grep -q 'fritzbox_exporter_collect_errors 0'");
170+ wait_for_unit("prometheus-fritzbox-exporter.service")
171+ wait_for_open_port(9133)
172+ succeed(
173+ "curl -sSf http://localhost:9133/metrics | grep -q 'fritzbox_exporter_collect_errors 0'"
174+ )
161175 '';
162176 };
163177
@@ -180,11 +194,11 @@ let
180194 };
181195 };
182196 exporterTest = ''
183− waitForUnit("nginx.service");
184− waitForOpenPort(80);
185− waitForUnit("prometheus-json-exporter.service");
186− waitForOpenPort(7979);
187− succeed("curl -sSf localhost:7979/metrics | grep -q 'json_test_metric 1'");
197+ wait_for_unit("nginx.service")
198+ wait_for_open_port(80)
199+ wait_for_unit("prometheus-json-exporter.service")
200+ wait_for_open_port(7979)
201+ succeed("curl -sSf localhost:7979/metrics | grep -q 'json_test_metric 1'")
188202 '';
189203 };
190204
@@ -222,10 +236,12 @@ let
222236 users.users.mailexporter.isSystemUser = true;
223237 };
224238 exporterTest = ''
225− waitForUnit("postfix.service")
226− waitForUnit("prometheus-mail-exporter.service")
227− waitForOpenPort(9225)
228− waitUntilSucceeds("curl -sSf http://localhost:9225/metrics | grep -q 'mail_deliver_success{configname=\"testserver\"} 1'")
239+ wait_for_unit("postfix.service")
240+ wait_for_unit("prometheus-mail-exporter.service")
241+ wait_for_open_port(9225)
242+ wait_until_succeeds(
243+ "curl -sSf http://localhost:9225/metrics | grep -q 'mail_deliver_success{configname=\"testserver\"} 1'"
244+ )
229245 '';
230246 };
231247
@@ -256,9 +272,9 @@ let
256272 };
257273 };
258274 exporterTest = ''
259− waitForUnit("nginx.service")
260− waitForUnit("prometheus-nextcloud-exporter.service")
261− waitForOpenPort(9205)
275+ wait_for_unit("nginx.service")
276+ wait_for_unit("prometheus-nextcloud-exporter.service")
277+ wait_for_open_port(9205)
262278 succeed("curl -sSf http://localhost:9205/metrics | grep -q 'nextcloud_up 1'")
263279 '';
264280 };
@@ -275,9 +291,9 @@ let
275291 };
276292 };
277293 exporterTest = ''
278− waitForUnit("nginx.service")
279− waitForUnit("prometheus-nginx-exporter.service")
280− waitForOpenPort(9113)
294+ wait_for_unit("nginx.service")
295+ wait_for_unit("prometheus-nginx-exporter.service")
296+ wait_for_open_port(9113)
281297 succeed("curl -sSf http://localhost:9113/metrics | grep -q 'nginx_up 1'")
282298 '';
283299 };
@@ -287,9 +303,11 @@ let
287303 enable = true;
288304 };
289305 exporterTest = ''
290− waitForUnit("prometheus-node-exporter.service");
291− waitForOpenPort(9100);
292− succeed("curl -sSf http://localhost:9100/metrics | grep -q 'node_exporter_build_info{.\\+} 1'");
306+ wait_for_unit("prometheus-node-exporter.service")
307+ wait_for_open_port(9100)
308+ succeed(
309+ "curl -sSf http://localhost:9100/metrics | grep -q 'node_exporter_build_info{.\\+} 1'"
310+ )
293311 '';
294312 };
295313
@@ -301,9 +319,11 @@ let
301319 services.postfix.enable = true;
302320 };
303321 exporterTest = ''
304− waitForUnit("prometheus-postfix-exporter.service");
305− waitForOpenPort(9154);
306− succeed("curl -sSf http://localhost:9154/metrics | grep -q 'postfix_smtpd_connects_total 0'");
322+ wait_for_unit("prometheus-postfix-exporter.service")
323+ wait_for_open_port(9154)
324+ succeed(
325+ "curl -sSf http://localhost:9154/metrics | grep -q 'postfix_smtpd_connects_total 0'"
326+ )
307327 '';
308328 };
309329
@@ -316,18 +336,24 @@ let
316336 services.postgresql.enable = true;
317337 };
318338 exporterTest = ''
319− waitForUnit("prometheus-postgres-exporter.service");
320− waitForOpenPort(9187);
321− waitForUnit("postgresql.service");
322− succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_exporter_last_scrape_error 0'");
323− succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 1'");
324− systemctl("stop postgresql.service");
325− succeed("curl -sSf http://localhost:9187/metrics | grep -qv 'pg_exporter_last_scrape_error 0'");
326− succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 0'");
327− systemctl("start postgresql.service");
328− waitForUnit("postgresql.service");
329− succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_exporter_last_scrape_error 0'");
330− succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 1'");
339+ wait_for_unit("prometheus-postgres-exporter.service")
340+ wait_for_open_port(9187)
341+ wait_for_unit("postgresql.service")
342+ succeed(
343+ "curl -sSf http://localhost:9187/metrics | grep -q 'pg_exporter_last_scrape_error 0'"
344+ )
345+ succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 1'")
346+ systemctl("stop postgresql.service")
347+ succeed(
348+ "curl -sSf http://localhost:9187/metrics | grep -qv 'pg_exporter_last_scrape_error 0'"
349+ )
350+ succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 0'")
351+ systemctl("start postgresql.service")
352+ wait_for_unit("postgresql.service")
353+ succeed(
354+ "curl -sSf http://localhost:9187/metrics | grep -q 'pg_exporter_last_scrape_error 0'"
355+ )
356+ succeed("curl -sSf http://localhost:9187/metrics | grep -q 'pg_up 1'")
331357 '';
332358 };
333359
@@ -339,11 +365,13 @@ let
339365 services.rspamd.enable = true;
340366 };
341367 exporterTest = ''
342− waitForUnit("rspamd.service");
343− waitForUnit("prometheus-rspamd-exporter.service");
344− waitForOpenPort(11334);
345− waitForOpenPort(7980);
346− waitUntilSucceeds("curl -sSf localhost:7980/metrics | grep -q 'rspamd_scanned{host=\"rspamd\"} 0'");
368+ wait_for_unit("rspamd.service")
369+ wait_for_unit("prometheus-rspamd-exporter.service")
370+ wait_for_open_port(11334)
371+ wait_for_open_port(7980)
372+ wait_until_succeeds(
373+ "curl -sSf localhost:7980/metrics | grep -q 'rspamd_scanned{host=\"rspamd\"} 0'"
374+ )
347375 '';
348376 };
349377
@@ -356,9 +384,9 @@ let
356384 };
357385 };
358386 exporterTest = ''
359− waitForUnit("prometheus-snmp-exporter.service");
360− waitForOpenPort(9116);
361− succeed("curl -sSf localhost:9116/metrics | grep -q 'snmp_request_errors_total 0'");
387+ wait_for_unit("prometheus-snmp-exporter.service")
388+ wait_for_open_port(9116)
389+ succeed("curl -sSf localhost:9116/metrics | grep -q 'snmp_request_errors_total 0'")
362390 '';
363391 };
364392
@@ -377,11 +405,11 @@ let
377405 };
378406 };
379407 exporterTest = ''
380− waitForUnit("nginx.service");
381− waitForOpenPort(80);
382− waitForUnit("prometheus-surfboard-exporter.service");
383− waitForOpenPort(9239);
384− succeed("curl -sSf localhost:9239/metrics | grep -q 'surfboard_up 1'");
408+ wait_for_unit("nginx.service")
409+ wait_for_open_port(80)
410+ wait_for_unit("prometheus-surfboard-exporter.service")
411+ wait_for_open_port(9239)
412+ succeed("curl -sSf localhost:9239/metrics | grep -q 'surfboard_up 1'")
385413 '';
386414 };
387415
@@ -396,11 +424,11 @@ let
396424 services.tor.controlPort = 9051;
397425 };
398426 exporterTest = ''
399− waitForUnit("tor.service");
400− waitForOpenPort(9051);
401− waitForUnit("prometheus-tor-exporter.service");
402− waitForOpenPort(9130);
403− succeed("curl -sSf localhost:9130/metrics | grep -q 'tor_version{.\\+} 1'");
427+ wait_for_unit("tor.service")
428+ wait_for_open_port(9051)
429+ wait_for_unit("prometheus-tor-exporter.service")
430+ wait_for_open_port(9130)
431+ succeed("curl -sSf localhost:9130/metrics | grep -q 'tor_version{.\\+} 1'")
404432 '';
405433 };
406434
@@ -426,10 +454,10 @@ let
426454 };
427455 };
428456 exporterTest = ''
429− waitForUnit("prometheus-varnish-exporter.service");
430− waitForOpenPort(6081);
431− waitForOpenPort(9131);
432− succeed("curl -sSf http://localhost:9131/metrics | grep -q 'varnish_up 1'");
457+ wait_for_unit("prometheus-varnish-exporter.service")
458+ wait_for_open_port(6081)
459+ wait_for_open_port(9131)
460+ succeed("curl -sSf http://localhost:9131/metrics | grep -q 'varnish_up 1'")
433461 '';
434462 };
435463
@@ -451,9 +479,11 @@ let
451479 systemd.services.prometheus-wireguard-exporter.after = [ "wireguard-wg0.service" ];
452480 };
453481 exporterTest = ''
454− waitForUnit("prometheus-wireguard-exporter.service");
455− waitForOpenPort(9586);
456− waitUntilSucceeds("curl -sSf http://localhost:9586/metrics | grep '${snakeoil.peer1.publicKey}'");
482+ wait_for_unit("prometheus-wireguard-exporter.service")
483+ wait_for_open_port(9586)
484+ wait_until_succeeds(
485+ "curl -sSf http://localhost:9586/metrics | grep '${snakeoil.peer1.publicKey}'"
486+ )
457487 '';
458488 };
459489 };
@@ -466,11 +496,13 @@ mapAttrs (exporter: testConfig: (makeTest {
466496 } testConfig.metricProvider or {}];
467497
468498 testScript = ''
469− ${"$"+exporter}->start();
470− ${concatStringsSep " " (map (line: ''
471− ${"$"+exporter}->${line};
472− '') (splitString "\n" (removeSuffix "\n" testConfig.exporterTest)))}
473− ${"$"+exporter}->shutdown();
499+ ${exporter}.start()
500+ ${concatStringsSep "\n" (map (line:
501+ if (builtins.substring 0 1 line == " " || builtins.substring 0 1 line == ")")
502+ then line
503+ else "${exporter}.${line}"
504+ ) (splitString "\n" (removeSuffix "\n" testConfig.exporterTest)))}
505+ ${exporter}.shutdown()
474506 '';
475507
476508 meta = with maintainers; {
nixos/tests/quake3.nixdeleted−95
@@ -1,95 +0,0 @@
1−import ./make-test.nix ({ pkgs, ...} :
2−
3−let
4−
5− # Build Quake with coverage instrumentation.
6− overrides = pkgs:
7− {
8− quake3game = pkgs.quake3game.override (args: {
9− stdenv = pkgs.stdenvAdapters.addCoverageInstrumentation args.stdenv;
10− });
11− };
12−
13− # Only allow the demo data to be used (only if it's unfreeRedistributable).
14− unfreePredicate = pkg: with pkgs.lib; let
15− allowPackageNames = [ "quake3-demodata" "quake3-pointrelease" ];
16− allowLicenses = [ pkgs.lib.licenses.unfreeRedistributable ];
17− in elem pkg.pname allowPackageNames &&
18− elem (pkg.meta.license or null) allowLicenses;
19−
20−in
21−
22−rec {
23− name = "quake3";
24− meta = with pkgs.stdenv.lib.maintainers; {
25− maintainers = [ domenkozar eelco ];
26− };
27−
28− # TODO: lcov doesn't work atm
29− #makeCoverageReport = true;
30−
31− client =
32− { pkgs, ... }:
33−
34− { imports = [ ./common/x11.nix ];
35− hardware.opengl.driSupport = true;
36− environment.systemPackages = [ pkgs.quake3demo ];
37− nixpkgs.config.packageOverrides = overrides;
38− nixpkgs.config.allowUnfreePredicate = unfreePredicate;
39− };
40−
41− nodes =
42− { server =
43− { pkgs, ... }:
44−
45− { systemd.services.quake3-server =
46− { wantedBy = [ "multi-user.target" ];
47− script =
48− "${pkgs.quake3demo}/bin/quake3-server +set g_gametype 0 " +
49− "+map q3dm7 +addbot grunt +addbot daemia 2> /tmp/log";
50− };
51− nixpkgs.config.packageOverrides = overrides;
52− nixpkgs.config.allowUnfreePredicate = unfreePredicate;
53− networking.firewall.allowedUDPPorts = [ 27960 ];
54− };
55−
56− client1 = client;
57− client2 = client;
58− };
59−
60− testScript =
61− ''
62− startAll;
63−
64− $server->waitForUnit("quake3-server");
65− $client1->waitForX;
66− $client2->waitForX;
67−
68− $client1->execute("quake3 +set r_fullscreen 0 +set name Foo +connect server &");
69− $client2->execute("quake3 +set r_fullscreen 0 +set name Bar +connect server &");
70−
71− $server->waitUntilSucceeds("grep -q 'Foo.*entered the game' /tmp/log");
72− $server->waitUntilSucceeds("grep -q 'Bar.*entered the game' /tmp/log");
73−
74− $server->sleep(10); # wait for a while to get a nice screenshot
75−
76− $client1->block();
77−
78− $server->sleep(20);
79−
80− $client1->screenshot("screen1");
81− $client2->screenshot("screen2");
82−
83− $client1->unblock();
84−
85− $server->sleep(10);
86−
87− $client1->screenshot("screen3");
88− $client2->screenshot("screen4");
89−
90− $client1->shutdown();
91− $client2->shutdown();
92− $server->stopJob("quake3-server");
93− '';
94−
95−})
nixos/tests/radarr.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ... }:
1+import ./make-test-python.nix ({ lib, ... }:
22
33with lib;
44
@@ -11,8 +11,8 @@ with lib;
1111 { services.radarr.enable = true; };
1212
1313 testScript = ''
14− $machine->waitForUnit('radarr.service');
15− $machine->waitForOpenPort('7878');
16− $machine->succeed("curl --fail http://localhost:7878/");
14+ machine.wait_for_unit("radarr.service")
15+ machine.wait_for_open_port("7878")
16+ machine.succeed("curl --fail http://localhost:7878/")
1717 '';
1818})
nixos/tests/redis.nix+6−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "redis";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ flokli ];
@@ -15,12 +15,10 @@ import ./make-test.nix ({ pkgs, ...} : {
1515 };
1616
1717 testScript = ''
18− startAll;
19−
20− $machine->waitForUnit("redis");
21− $machine->waitForOpenPort("6379");
22−
23− $machine->succeed("redis-cli ping | grep PONG");
24− $machine->succeed("redis-cli -s /run/redis/redis.sock ping | grep PONG");
18+ start_all()
19+ machine.wait_for_unit("redis")
20+ machine.wait_for_open_port("6379")
21+ machine.succeed("redis-cli ping | grep PONG")
22+ machine.succeed("redis-cli -s /run/redis/redis.sock ping | grep PONG")
2523 '';
2624})
nixos/tests/redmine.nix+4−9
@@ -64,18 +64,13 @@ let
6464 };
6565in
6666{
67− v3-mysql = mysqlTest pkgs.redmine // {
68− name = "v3-mysql";
67+ mysql = mysqlTest pkgs.redmine // {
68+ name = "mysql";
6969 meta.maintainers = [ maintainers.aanderse ];
7070 };
7171
72− v4-mysql = mysqlTest pkgs.redmine_4 // {
73− name = "v4-mysql";
74− meta.maintainers = [ maintainers.aanderse ];
75− };
76−
77− v4-pgsql = pgsqlTest pkgs.redmine_4 // {
78− name = "v4-pgsql";
72+ pgsql = pgsqlTest pkgs.redmine // {
73+ name = "pgsql";
7974 meta.maintainers = [ maintainers.aanderse ];
8075 };
8176}
nixos/tests/roundcube.nix+1−1
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "roundcube";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ globin ];
nixos/tests/rss2email.nix+8−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix {
1+import ./make-test-python.nix {
22 name = "opensmtpd";
33
44 nodes = {
@@ -53,14 +53,14 @@ import ./make-test.nix {
5353 };
5454
5555 testScript = ''
56− startAll;
56+ start_all()
5757
58− $server->waitForUnit("network-online.target");
59− $server->waitForUnit("opensmtpd");
60− $server->waitForUnit("dovecot2");
61− $server->waitForUnit("nginx");
62− $server->waitForUnit("rss2email");
58+ server.wait_for_unit("network-online.target")
59+ server.wait_for_unit("opensmtpd")
60+ server.wait_for_unit("dovecot2")
61+ server.wait_for_unit("nginx")
62+ server.wait_for_unit("rss2email")
6363
64− $server->waitUntilSucceeds('check-mail-landed >&2');
64+ server.wait_until_succeeds("check-mail-landed >&2")
6565 '';
6666}
nixos/tests/samba.nix+7−7
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33{
44 name = "samba";
@@ -36,12 +36,12 @@ import ./make-test.nix ({ pkgs, ... }:
3636
3737 testScript =
3838 ''
39− $server->start;
40− $server->waitForUnit("samba.target");
41− $server->succeed("mkdir -p /public; echo bar > /public/foo");
39+ server.start()
40+ server.wait_for_unit("samba.target")
41+ server.succeed("mkdir -p /public; echo bar > /public/foo")
4242
43− $client->start;
44− $client->waitForUnit("remote-fs.target");
45− $client->succeed("[[ \$(cat /public/foo) = bar ]]");
43+ client.start()
44+ client.wait_for_unit("remote-fs.target")
45+ client.succeed("[[ $(cat /public/foo) = bar ]]")
4646 '';
4747})
nixos/tests/sddm.nix+15−13
@@ -3,7 +3,7 @@
33 pkgs ? import ../.. { inherit system config; }
44}:
55
6−with import ../lib/testing.nix { inherit system pkgs; };
6+with import ../lib/testing-python.nix { inherit system pkgs; };
77
88let
99 inherit (pkgs) lib;
@@ -26,13 +26,13 @@ let
2626 testScript = { nodes, ... }: let
2727 user = nodes.machine.config.users.users.alice;
2828 in ''
29− startAll;
30− $machine->waitForText(qr/select your user/i);
31− $machine->screenshot("sddm");
32− $machine->sendChars("${user.password}\n");
33− $machine->waitForFile("/home/alice/.Xauthority");
34− $machine->succeed("xauth merge ~alice/.Xauthority");
35− $machine->waitForWindow("^IceWM ");
29+ start_all()
30+ machine.wait_for_text("(?i)select your user")
31+ machine.screenshot("sddm")
32+ machine.send_chars("${user.password}\n")
33+ machine.wait_for_file("${user.home}/.Xauthority")
34+ machine.succeed("xauth merge ${user.home}/.Xauthority")
35+ machine.wait_for_window("^IceWM ")
3636 '';
3737 };
3838
@@ -57,11 +57,13 @@ let
5757 services.xserver.desktopManager.default = "none";
5858 };
5959
60− testScript = { ... }: ''
61− startAll;
62− $machine->waitForFile("/home/alice/.Xauthority");
63− $machine->succeed("xauth merge ~alice/.Xauthority");
64− $machine->waitForWindow("^IceWM ");
60+ testScript = { nodes, ... }: let
61+ user = nodes.machine.config.users.users.alice;
62+ in ''
63+ start_all()
64+ machine.wait_for_file("${user.home}/.Xauthority")
65+ machine.succeed("xauth merge ${user.home}/.Xauthority")
66+ machine.wait_for_window("^IceWM ")
6567 '';
6668 };
6769 };
nixos/tests/shiori.nix+70−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ...}:
1+import ./make-test-python.nix ({ pkgs, lib, ...}:
22
33{
44 name = "shiori";
@@ -8,10 +8,74 @@ import ./make-test.nix ({ lib, ...}:
88 { ... }:
99 { services.shiori.enable = true; };
1010
11− testScript = ''
12− $machine->waitForUnit('shiori.service');
13− $machine->waitForOpenPort('8080');
14− $machine->succeed("curl --fail http://localhost:8080/");
15− $machine->succeed("curl --fail --location http://localhost:8080/ | grep -qi shiori");
11+ testScript = let
12+ authJSON = pkgs.writeText "auth.json" (builtins.toJSON {
13+ username = "shiori";
14+ password = "gopher";
15+ remember = 1; # hour
16+ owner = true;
17+ });
18+
19+ insertBookmark = {
20+ url = "http://example.org";
21+ title = "Example Bookmark";
22+ };
23+
24+ insertBookmarkJSON = pkgs.writeText "insertBookmark.json" (builtins.toJSON insertBookmark);
25+ in ''
26+ import json
27+
28+ machine.wait_for_unit("shiori.service")
29+ machine.wait_for_open_port(8080)
30+ machine.succeed("curl --fail http://localhost:8080/")
31+ machine.succeed("curl --fail --location http://localhost:8080/ | grep -qi shiori")
32+
33+ with subtest("login"):
34+ auth_json = machine.succeed(
35+ "curl --fail --location http://localhost:8080/api/login "
36+ "-X POST -H 'Content-Type:application/json' -d @${authJSON}"
37+ )
38+ auth_ret = json.loads(auth_json)
39+ session_id = auth_ret["session"]
40+
41+ with subtest("bookmarks"):
42+ with subtest("first use no bookmarks"):
43+ bookmarks_json = machine.succeed(
44+ (
45+ "curl --fail --location http://localhost:8080/api/bookmarks "
46+ "-H 'X-Session-Id:{}'"
47+ ).format(session_id)
48+ )
49+
50+ if json.loads(bookmarks_json)["bookmarks"] != []:
51+ raise Exception("Shiori have a bookmark on first use")
52+
53+ with subtest("insert bookmark"):
54+ machine.succeed(
55+ (
56+ "curl --fail --location http://localhost:8080/api/bookmarks "
57+ "-X POST -H 'X-Session-Id:{}' "
58+ "-H 'Content-Type:application/json' -d @${insertBookmarkJSON}"
59+ ).format(session_id)
60+ )
61+
62+ with subtest("get inserted bookmark"):
63+ bookmarks_json = machine.succeed(
64+ (
65+ "curl --fail --location http://localhost:8080/api/bookmarks "
66+ "-H 'X-Session-Id:{}'"
67+ ).format(session_id)
68+ )
69+
70+ bookmarks = json.loads(bookmarks_json)["bookmarks"]
71+ if len(bookmarks) != 1:
72+ raise Exception("Shiori didn't save the bookmark")
73+
74+ bookmark = bookmarks[0]
75+ if (
76+ bookmark["url"] != "${insertBookmark.url}"
77+ or bookmark["title"] != "${insertBookmark.title}"
78+ ):
79+ raise Exception("Inserted bookmark doesn't have same URL or title")
1680 '';
1781})
nixos/tests/signal-desktop.nix+6−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} :
1+import ./make-test-python.nix ({ pkgs, ...} :
22
33{
44 name = "signal-desktop";
@@ -24,14 +24,14 @@ import ./make-test.nix ({ pkgs, ...} :
2424 testScript = { nodes, ... }: let
2525 user = nodes.machine.config.users.users.alice;
2626 in ''
27− startAll;
28− $machine->waitForX;
27+ start_all()
28+ machine.wait_for_x()
2929
3030 # start signal desktop
31− $machine->execute("su - alice -c signal-desktop &");
31+ machine.execute("su - alice -c signal-desktop &")
3232
3333 # wait for the "Link your phone to Signal Desktop" message
34− $machine->waitForText(qr/Link your phone to Signal Desktop/);
35− $machine->screenshot("signal_desktop");
34+ machine.wait_for_text("Link your phone to Signal Desktop")
35+ machine.screenshot("signal_desktop")
3636 '';
3737})
nixos/tests/simple.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "simple";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ eelco ];
@@ -10,8 +10,8 @@ import ./make-test.nix ({ pkgs, ...} : {
1010
1111 testScript =
1212 ''
13− startAll;
14− $machine->waitForUnit("multi-user.target");
15− $machine->shutdown;
13+ start_all()
14+ machine.wait_for_unit("multi-user.target")
15+ machine.shutdown()
1616 '';
1717})
nixos/tests/slim.nixdeleted−66
@@ -1,66 +0,0 @@
1−import ./make-test.nix ({ pkgs, ...} : {
2− name = "slim";
3−
4− meta = with pkgs.stdenv.lib.maintainers; {
5− maintainers = [ aszlig ];
6− };
7−
8− machine = { pkgs, ... }: {
9− imports = [ ./common/user-account.nix ];
10− services.xserver.enable = true;
11− services.xserver.windowManager.default = "icewm";
12− services.xserver.windowManager.icewm.enable = true;
13− services.xserver.desktopManager.default = "none";
14− services.xserver.displayManager.slim = {
15− enable = true;
16−
17− # Use a custom theme in order to get best OCR results
18− theme = pkgs.runCommand "slim-theme-ocr" {
19− nativeBuildInputs = [ pkgs.imagemagick ];
20− } ''
21− mkdir "$out"
22− convert -size 1x1 xc:white "$out/background.jpg"
23− convert -size 200x100 xc:white "$out/panel.jpg"
24− cat > "$out/slim.theme" <<EOF
25− background_color #ffffff
26− background_style tile
27−
28− input_fgcolor #000000
29− msg_color #000000
30−
31− session_color #000000
32− session_font Verdana:size=16:bold
33−
34− username_msg Username:
35− username_font Verdana:size=16:bold
36− username_color #000000
37− username_x 50%
38− username_y 40%
39−
40− password_msg Password:
41− password_x 50%
42− password_y 40%
43− EOF
44− '';
45− };
46− };
47−
48− enableOCR = true;
49−
50− testScript = { nodes, ... }: let
51− user = nodes.machine.config.users.users.alice;
52− in ''
53− startAll;
54− $machine->waitForText(qr/Username:/);
55− $machine->sendChars("${user.name}\n");
56− $machine->waitForText(qr/Password:/);
57− $machine->sendChars("${user.password}\n");
58−
59− $machine->waitForFile('${user.home}/.Xauthority');
60− $machine->succeed('xauth merge ${user.home}/.Xauthority');
61− $machine->waitForWindow('^IceWM ');
62−
63− # Make sure SLiM doesn't create a log file
64− $machine->fail('test -e /var/log/slim.log');
65− '';
66−})
nixos/tests/slurm.nix+43−44
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ... }:
1+import ./make-test-python.nix ({ lib, ... }:
22let
33 mungekey = "mungeverryweakkeybuteasytointegratoinatest";
44
@@ -54,10 +54,15 @@ in {
5454 networking.firewall.enable = false;
5555 services.slurm.dbdserver = {
5656 enable = true;
57+ storagePass = "password123";
5758 };
5859 services.mysql = {
5960 enable = true;
60− package = pkgs.mysql;
61+ package = pkgs.mariadb;
62+ initialScript = pkgs.writeText "mysql-init.sql" ''
63+ CREATE USER 'slurm'@'localhost' IDENTIFIED BY 'password123';
64+ GRANT ALL PRIVILEGES ON slurm_acct_db.* TO 'slurm'@'localhost';
65+ '';
6166 ensureDatabases = [ "slurm_acct_db" ];
6267 ensureUsers = [{
6368 ensurePermissions = { "slurm_acct_db.*" = "ALL PRIVILEGES"; };
@@ -80,63 +85,57 @@ in {
8085
8186 testScript =
8287 ''
83− startAll;
88+ start_all()
8489
8590 # Set up authentification across the cluster
86− foreach my $node (($submit,$control,$dbd,$node1,$node2,$node3))
87− {
88− $node->waitForUnit("default.target");
91+ for node in [submit, control, dbd, node1, node2, node3]:
8992
90− $node->succeed("mkdir /etc/munge");
91− $node->succeed("echo '${mungekey}' > /etc/munge/munge.key");
92− $node->succeed("chmod 0400 /etc/munge/munge.key");
93− $node->succeed("chown munge:munge /etc/munge/munge.key");
94− $node->succeed("systemctl restart munged");
93+ node.wait_for_unit("default.target")
94+
95+ node.succeed("mkdir /etc/munge")
96+ node.succeed(
97+ "echo '${mungekey}' > /etc/munge/munge.key"
98+ )
99+ node.succeed("chmod 0400 /etc/munge/munge.key")
100+ node.succeed("chown munge:munge /etc/munge/munge.key")
101+ node.succeed("systemctl restart munged")
102+
103+ node.wait_for_unit("munged")
95104
96− $node->waitForUnit("munged");
97− };
98105
99106 # Restart the services since they have probably failed due to the munge init
100107 # failure
101− subtest "can_start_slurmdbd", sub {
102− $dbd->succeed("systemctl restart slurmdbd");
103− $dbd->waitForUnit("slurmdbd.service");
104− $dbd->waitForOpenPort(6819);
105− };
108+ with subtest("can_start_slurmdbd"):
109+ dbd.succeed("systemctl restart slurmdbd")
110+ dbd.wait_for_unit("slurmdbd.service")
111+ dbd.wait_for_open_port(6819)
106112
107113 # there needs to be an entry for the current
108114 # cluster in the database before slurmctld is restarted
109− subtest "add_account", sub {
110− $control->succeed("sacctmgr -i add cluster default");
111− # check for cluster entry
112− $control->succeed("sacctmgr list cluster | awk '{ print \$1 }' | grep default");
113− };
115+ with subtest("add_account"):
116+ control.succeed("sacctmgr -i add cluster default")
117+ # check for cluster entry
118+ control.succeed("sacctmgr list cluster | awk '{ print $1 }' | grep default")
114119
115− subtest "can_start_slurmctld", sub {
116− $control->succeed("systemctl restart slurmctld");
117− $control->waitForUnit("slurmctld.service");
118− };
120+ with subtest("can_start_slurmctld"):
121+ control.succeed("systemctl restart slurmctld")
122+ control.waitForUnit("slurmctld.service")
119123
120− subtest "can_start_slurmd", sub {
121− foreach my $node (($node1,$node2,$node3))
122− {
123− $node->succeed("systemctl restart slurmd.service");
124− $node->waitForUnit("slurmd");
125− }
126− };
124+ with subtest("can_start_slurmd"):
125+ for node in [node1, node2, node3]:
126+ node.succeed("systemctl restart slurmd.service")
127+ node.wait_for_unit("slurmd")
127128
128129 # Test that the cluster works and can distribute jobs;
129130
130− subtest "run_distributed_command", sub {
131− # Run `hostname` on 3 nodes of the partition (so on all the 3 nodes).
132− # The output must contain the 3 different names
133− $submit->succeed("srun -N 3 hostname | sort | uniq | wc -l | xargs test 3 -eq");
134− };
131+ with subtest("run_distributed_command"):
132+ # Run `hostname` on 3 nodes of the partition (so on all the 3 nodes).
133+ # The output must contain the 3 different names
134+ submit.succeed("srun -N 3 hostname | sort | uniq | wc -l | xargs test 3 -eq")
135135
136− subtest "check_slurm_dbd", sub {
137− # find the srun job from above in the database
138− sleep 5;
139− $control->succeed("sacct | grep hostname");
140− };
136+ with subtest("check_slurm_dbd"):
137+ # find the srun job from above in the database
138+ control.succeed("sleep 5")
139+ control.succeed("sacct | grep hostname")
141140 '';
142141})
nixos/tests/smokeping.nix+8−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "smokeping";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ cransom ];
@@ -22,12 +22,12 @@ import ./make-test.nix ({ pkgs, ...} : {
2222 };
2323
2424 testScript = ''
25− startAll;
26− $sm->waitForUnit("smokeping");
27− $sm->waitForUnit("thttpd");
28− $sm->waitForFile("/var/lib/smokeping/data/Local/LocalMachine.rrd");
29− $sm->succeed("curl -s -f localhost:8081/smokeping.fcgi?target=Local");
30− $sm->succeed("ls /var/lib/smokeping/cache/Local/LocalMachine_mini.png");
31− $sm->succeed("ls /var/lib/smokeping/cache/index.html");
25+ start_all()
26+ sm.wait_for_unit("smokeping")
27+ sm.wait_for_unit("thttpd")
28+ sm.wait_for_file("/var/lib/smokeping/data/Local/LocalMachine.rrd")
29+ sm.succeed("curl -s -f localhost:8081/smokeping.fcgi?target=Local")
30+ sm.succeed("ls /var/lib/smokeping/cache/Local/LocalMachine_mini.png")
31+ sm.succeed("ls /var/lib/smokeping/cache/index.html")
3232 '';
3333})
nixos/tests/snapper.nix+12−20
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ ... }:
1+import ./make-test-python.nix ({ ... }:
22{
33 name = "snapper";
44
@@ -20,24 +20,16 @@ import ./make-test.nix ({ ... }:
2020 };
2121
2222 testScript = ''
23− $machine->succeed("btrfs subvolume create /home/.snapshots");
24−
25− $machine->succeed("snapper -c home list");
26−
27− $machine->succeed("snapper -c home create --description empty");
28−
29− $machine->succeed("echo test > /home/file");
30− $machine->succeed("snapper -c home create --description file");
31−
32− $machine->succeed("snapper -c home status 1..2");
33−
34− $machine->succeed("snapper -c home undochange 1..2");
35− $machine->fail("ls /home/file");
36−
37− $machine->succeed("snapper -c home delete 2");
38−
39− $machine->succeed("systemctl --wait start snapper-timeline.service");
40−
41− $machine->succeed("systemctl --wait start snapper-cleanup.service");
23+ machine.succeed("btrfs subvolume create /home/.snapshots")
24+ machine.succeed("snapper -c home list")
25+ machine.succeed("snapper -c home create --description empty")
26+ machine.succeed("echo test > /home/file")
27+ machine.succeed("snapper -c home create --description file")
28+ machine.succeed("snapper -c home status 1..2")
29+ machine.succeed("snapper -c home undochange 1..2")
30+ machine.fail("ls /home/file")
31+ machine.succeed("snapper -c home delete 2")
32+ machine.succeed("systemctl --wait start snapper-timeline.service")
33+ machine.succeed("systemctl --wait start snapper-cleanup.service")
4234 '';
4335})
nixos/tests/spike.nixnew file+22
@@ -0,0 +1,22 @@
1+import ./make-test-python.nix ({ pkgs, ... }:
2+
3+let
4+ riscvPkgs = import ../.. { crossSystem = pkgs.stdenv.lib.systems.examples.riscv64-embedded; };
5+in
6+{
7+ name = "spike";
8+ meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ blitz ]; };
9+
10+ machine = { pkgs, lib, ... }: {
11+ environment.systemPackages = [ pkgs.spike riscvPkgs.riscv-pk riscvPkgs.hello ];
12+ };
13+
14+ # Run the RISC-V hello applications using the proxy kernel on the
15+ # Spike emulator and see whether we get the expected output.
16+ testScript =
17+ ''
18+ machine.wait_for_unit("multi-user.target")
19+ output = machine.succeed("spike -m64 $(which pk) $(which hello)")
20+ assert output == "Hello, world!\n"
21+ '';
22+})
nixos/tests/strongswan-swanctl.nix+3−3
@@ -16,7 +16,7 @@
1616# See the NixOS manual for how to run this test:
1717# https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests-interactively
1818
19−import ./make-test.nix ({ pkgs, ...} :
19+import ./make-test-python.nix ({ pkgs, ...} :
2020
2121let
2222 allowESP = "iptables --insert INPUT --protocol ESP --jump ACCEPT";
@@ -142,7 +142,7 @@ in {
142142
143143 };
144144 testScript = ''
145− startAll();
146− $carol->waitUntilSucceeds("ping -c 1 alice");
145+ start_all()
146+ carol.wait_until_succeeds("ping -c 1 alice")
147147 '';
148148})
nixos/tests/telegraf.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "telegraf";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ mic92 ];
@@ -22,9 +22,9 @@ import ./make-test.nix ({ pkgs, ...} : {
2222 };
2323
2424 testScript = ''
25− startAll;
25+ start_all()
2626
27− $machine->waitForUnit("telegraf.service");
28− $machine->waitUntilSucceeds("grep -q example /tmp/metrics.out");
27+ machine.wait_for_unit("telegraf.service")
28+ machine.wait_until_succeeds("grep -q example /tmp/metrics.out")
2929 '';
3030})
nixos/tests/tinydns.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ...} : {
1+import ./make-test-python.nix ({ lib, ...} : {
22 name = "tinydns";
33 meta = {
44 maintainers = with lib.maintainers; [ basvandijk ];
@@ -19,8 +19,8 @@ import ./make-test.nix ({ lib, ...} : {
1919 };
2020 };
2121 testScript = ''
22− $nameserver->start;
23− $nameserver->waitForUnit("tinydns.service");
24− $nameserver->succeed("host bla.foo.bar | grep '1\.2\.3\.4'");
22+ nameserver.start()
23+ nameserver.wait_for_unit("tinydns.service")
24+ nameserver.succeed("host bla.foo.bar | grep '1\.2\.3\.4'")
2525 '';
2626})
nixos/tests/tor.nix+6−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ lib, ... }: with lib;
1+import ./make-test-python.nix ({ lib, ... }: with lib;
22
33rec {
44 name = "tor";
@@ -21,8 +21,10 @@ rec {
2121 };
2222
2323 testScript = ''
24− $client->waitForUnit("tor.service");
25− $client->waitForOpenPort(9051);
26− $client->succeed("echo GETINFO version | nc 127.0.0.1 9051") =~ /514 Authentication required./ or die;
24+ client.wait_for_unit("tor.service")
25+ client.wait_for_open_port(9051)
26+ assert "514 Authentication required." in client.succeed(
27+ "echo GETINFO version | nc 127.0.0.1 9051"
28+ )
2729 '';
2830})
nixos/tests/trac.nixnew file+19
@@ -0,0 +1,19 @@
1+import ./make-test-python.nix ({ pkgs, ... }: {
2+ name = "trac";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ mmahut ];
5+ };
6+
7+ nodes = {
8+ machine = { ... }: {
9+ services.trac.enable = true;
10+ };
11+ };
12+
13+ testScript = ''
14+ start_all()
15+ machine.wait_for_unit("trac.service")
16+ machine.wait_for_open_port(8000)
17+ machine.wait_until_succeeds("curl -L http://localhost:8000/ | grep 'Trac Powered'")
18+ '';
19+})
nixos/tests/transmission.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "transmission";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ coconnor ];
@@ -14,8 +14,8 @@ import ./make-test.nix ({ pkgs, ...} : {
1414
1515 testScript =
1616 ''
17− startAll;
18− $machine->waitForUnit("transmission");
19− $machine->shutdown;
17+ start_all()
18+ machine.wait_for_unit("transmission")
19+ machine.shutdown()
2020 '';
2121})
nixos/tests/trezord.nix+6−6
@@ -1,7 +1,7 @@
1−import ./make-test.nix ({ pkgs, ... }: {
1+import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "trezord";
33 meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ mmahut ];
4+ maintainers = [ mmahut "1000101" ];
55 };
66
77 nodes = {
@@ -12,9 +12,9 @@ import ./make-test.nix ({ pkgs, ... }: {
1212 };
1313
1414 testScript = ''
15− startAll;
16− $machine->waitForUnit("trezord.service");
17− $machine->waitForOpenPort(21325);
18− $machine->waitUntilSucceeds("curl -L http://localhost:21325/status/ | grep Version");
15+ start_all()
16+ machine.wait_for_unit("trezord.service")
17+ machine.wait_for_open_port(21325)
18+ machine.wait_until_succeeds("curl -L http://localhost:21325/status/ | grep Version")
1919 '';
2020})
nixos/tests/trickster.nixnew file+37
@@ -0,0 +1,37 @@
1+import ./make-test-python.nix ({ pkgs, ... }: {
2+ name = "trickster";
3+ meta = with pkgs.stdenv.lib.maintainers; {
4+ maintainers = [ "1000101" ];
5+ };
6+
7+ nodes = {
8+ prometheus = { ... }: {
9+ services.prometheus.enable = true;
10+ networking.firewall.allowedTCPPorts = [ 9090 ];
11+ };
12+ trickster = { ... }: {
13+ services.trickster.enable = true;
14+ };
15+ };
16+
17+ testScript = ''
18+ start_all()
19+ prometheus.wait_for_unit("prometheus.service")
20+ prometheus.wait_for_open_port(9090)
21+ prometheus.wait_until_succeeds(
22+ "curl -L http://localhost:9090/metrics | grep 'promhttp_metric_handler_requests_total{code=\"500\"} 0'"
23+ )
24+ trickster.wait_for_unit("trickster.service")
25+ trickster.wait_for_open_port(8082)
26+ trickster.wait_for_open_port(9090)
27+ trickster.wait_until_succeeds(
28+ "curl -L http://localhost:8082/metrics | grep 'promhttp_metric_handler_requests_total{code=\"500\"} 0'"
29+ )
30+ trickster.wait_until_succeeds(
31+ "curl -L http://prometheus:9090/metrics | grep 'promhttp_metric_handler_requests_total{code=\"500\"} 0'"
32+ )
33+ trickster.wait_until_succeeds(
34+ "curl -L http://localhost:9090/metrics | grep 'promhttp_metric_handler_requests_total{code=\"500\"} 0'"
35+ )
36+ '';
37+})
nixos/tests/udisks2.nix+26−18
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22
33let
44
@@ -30,32 +30,40 @@ in
3030
3131 testScript =
3232 ''
33− my $stick = $machine->stateDir . "/usbstick.img";
34− system("xz -d < ${stick} > $stick") == 0 or die;
33+ import lzma
3534
36− $machine->succeed("udisksctl info -b /dev/vda >&2");
37− $machine->fail("udisksctl info -b /dev/sda1");
35+ with lzma.open(
36+ "${stick}"
37+ ) as data, open(machine.state_dir + "/usbstick.img", "wb") as stick:
38+ stick.write(data.read())
39+
40+ machine.succeed("udisksctl info -b /dev/vda >&2")
41+ machine.fail("udisksctl info -b /dev/sda1")
3842
3943 # Attach a USB stick and wait for it to show up.
40− $machine->sendMonitorCommand("drive_add 0 id=stick,if=none,file=$stick,format=raw");
41− $machine->sendMonitorCommand("device_add usb-storage,id=stick,drive=stick");
42− $machine->waitUntilSucceeds("udisksctl info -b /dev/sda1");
43− $machine->succeed("udisksctl info -b /dev/sda1 | grep 'IdLabel:.*USBSTICK'");
44+ machine.send_monitor_command(
45+ f"drive_add 0 id=stick,if=none,file={stick.name},format=raw"
46+ )
47+ machine.send_monitor_command("device_add usb-storage,id=stick,drive=stick")
48+ machine.wait_until_succeeds("udisksctl info -b /dev/sda1")
49+ machine.succeed("udisksctl info -b /dev/sda1 | grep 'IdLabel:.*USBSTICK'")
4450
4551 # Mount the stick as a non-root user and do some stuff with it.
46− $machine->succeed("su - alice -c 'udisksctl info -b /dev/sda1'");
47− $machine->succeed("su - alice -c 'udisksctl mount -b /dev/sda1'");
48− $machine->succeed("su - alice -c 'cat /run/media/alice/USBSTICK/test.txt'") =~ /Hello World/ or die;
49− $machine->succeed("su - alice -c 'echo foo > /run/media/alice/USBSTICK/bar.txt'");
52+ machine.succeed("su - alice -c 'udisksctl info -b /dev/sda1'")
53+ machine.succeed("su - alice -c 'udisksctl mount -b /dev/sda1'")
54+ machine.succeed(
55+ "su - alice -c 'cat /run/media/alice/USBSTICK/test.txt' | grep -q 'Hello World'"
56+ )
57+ machine.succeed("su - alice -c 'echo foo > /run/media/alice/USBSTICK/bar.txt'")
5058
5159 # Unmounting the stick should make the mountpoint disappear.
52− $machine->succeed("su - alice -c 'udisksctl unmount -b /dev/sda1'");
53− $machine->fail("[ -d /run/media/alice/USBSTICK ]");
60+ machine.succeed("su - alice -c 'udisksctl unmount -b /dev/sda1'")
61+ machine.fail("[ -d /run/media/alice/USBSTICK ]")
5462
5563 # Remove the USB stick.
56− $machine->sendMonitorCommand("device_del stick");
57− $machine->waitUntilFails("udisksctl info -b /dev/sda1");
58− $machine->fail("[ -e /dev/sda ]");
64+ machine.send_monitor_command("device_del stick")
65+ machine.wait_until_fails("udisksctl info -b /dev/sda1")
66+ machine.fail("[ -e /dev/sda ]")
5967 '';
6068
6169})
nixos/tests/upnp.nix+10−10
@@ -5,7 +5,7 @@
55# this succeeds an external client will try to connect to the port
66# mapping.
77
8−import ./make-test.nix ({ pkgs, ... }:
8+import ./make-test-python.nix ({ pkgs, ... }:
99
1010let
1111 internalRouterAddress = "192.168.3.1";
@@ -75,20 +75,20 @@ in
7575 testScript =
7676 { nodes, ... }:
7777 ''
78− startAll;
78+ start_all()
7979
8080 # Wait for network and miniupnpd.
81− $router->waitForUnit("network-online.target");
82− # $router->waitForUnit("nat");
83− $router->waitForUnit("firewall.service");
84− $router->waitForUnit("miniupnpd");
81+ router.wait_for_unit("network-online.target")
82+ # $router.wait_for_unit("nat")
83+ router.wait_for_unit("firewall.service")
84+ router.wait_for_unit("miniupnpd")
8585
86− $client1->waitForUnit("network-online.target");
86+ client1.wait_for_unit("network-online.target")
8787
88− $client1->succeed("upnpc -a ${internalClient1Address} 9000 9000 TCP");
88+ client1.succeed("upnpc -a ${internalClient1Address} 9000 9000 TCP")
8989
90− $client1->waitForUnit("httpd");
91− $client2->waitUntilSucceeds("curl http://${externalRouterAddress}:9000/");
90+ client1.wait_for_unit("httpd")
91+ client2.wait_until_succeeds("curl http://${externalRouterAddress}:9000/")
9292 '';
9393
9494})
nixos/tests/vault.nix+7−7
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ... }:
1+import ./make-test-python.nix ({ pkgs, ... }:
22{
33 name = "vault";
44 meta = with pkgs.stdenv.lib.maintainers; {
@@ -12,12 +12,12 @@ import ./make-test.nix ({ pkgs, ... }:
1212
1313 testScript =
1414 ''
15− startAll;
15+ start_all()
1616
17− $machine->waitForUnit('multi-user.target');
18− $machine->waitForUnit('vault.service');
19− $machine->waitForOpenPort(8200);
20− $machine->succeed('vault operator init');
21− $machine->succeed('vault status | grep Sealed | grep true');
17+ machine.wait_for_unit("multi-user.target")
18+ machine.wait_for_unit("vault.service")
19+ machine.wait_for_open_port(8200)
20+ machine.succeed("vault operator init")
21+ machine.succeed("vault status | grep Sealed | grep true")
2222 '';
2323})
nixos/tests/wireguard/default.nix+6−6
@@ -2,7 +2,7 @@ let
22 wg-snakeoil-keys = import ./snakeoil-keys.nix;
33in
44
5−import ../make-test.nix ({ pkgs, ...} : {
5+import ../make-test-python.nix ({ pkgs, ...} : {
66 name = "wireguard";
77 meta = with pkgs.stdenv.lib.maintainers; {
88 maintainers = [ ma27 ];
@@ -86,12 +86,12 @@ import ../make-test.nix ({ pkgs, ...} : {
8686 };
8787
8888 testScript = ''
89− startAll;
89+ start_all()
9090
91− $peer0->waitForUnit("wireguard-wg0.service");
92− $peer1->waitForUnit("wireguard-wg0.service");
91+ peer0.wait_for_unit("wireguard-wg0.service")
92+ peer1.wait_for_unit("wireguard-wg0.service")
9393
94− $peer1->succeed("ping -c5 fc00::1");
95− $peer1->succeed("ping -c5 10.23.42.1")
94+ peer1.succeed("ping -c5 fc00::1")
95+ peer1.succeed("ping -c5 10.23.42.1")
9696 '';
9797})
nixos/tests/wireguard/generated.nix+30−26
@@ -1,4 +1,4 @@
1−import ../make-test.nix ({ pkgs, ...} : {
1+import ../make-test-python.nix ({ pkgs, ...} : {
22 name = "wireguard-generated";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ ma27 grahamc ];
@@ -28,30 +28,34 @@ import ../make-test.nix ({ pkgs, ...} : {
2828 };
2929
3030 testScript = ''
31− startAll;
32−
33− $peer1->waitForUnit("wireguard-wg0.service");
34− $peer2->waitForUnit("wireguard-wg0.service");
35−
36− my ($retcode, $peer1pubkey) = $peer1->execute("wg pubkey < /etc/wireguard/private");
37− $peer1pubkey =~ s/\s+$//;
38− if ($retcode != 0) {
39− die "Could not read public key from peer1";
40− }
41−
42− my ($retcode, $peer2pubkey) = $peer2->execute("wg pubkey < /etc/wireguard/private");
43− $peer2pubkey =~ s/\s+$//;
44− if ($retcode != 0) {
45− die "Could not read public key from peer2";
46− }
47−
48− $peer1->succeed("wg set wg0 peer $peer2pubkey allowed-ips 10.10.10.2/32 endpoint 192.168.1.2:12345 persistent-keepalive 1");
49− $peer1->succeed("ip route replace 10.10.10.2/32 dev wg0 table main");
50−
51− $peer2->succeed("wg set wg0 peer $peer1pubkey allowed-ips 10.10.10.1/32 endpoint 192.168.1.1:12345 persistent-keepalive 1");
52− $peer2->succeed("ip route replace 10.10.10.1/32 dev wg0 table main");
53−
54− $peer1->succeed("ping -c1 10.10.10.2");
55− $peer2->succeed("ping -c1 10.10.10.1");
31+ start_all()
32+
33+ peer1.wait_for_unit("wireguard-wg0.service")
34+ peer2.wait_for_unit("wireguard-wg0.service")
35+
36+ retcode, peer1pubkey = peer1.execute("wg pubkey < /etc/wireguard/private")
37+ if retcode != 0:
38+ raise Exception("Could not read public key from peer1")
39+
40+ retcode, peer2pubkey = peer2.execute("wg pubkey < /etc/wireguard/private")
41+ if retcode != 0:
42+ raise Exception("Could not read public key from peer2")
43+
44+ peer1.succeed(
45+ "wg set wg0 peer {} allowed-ips 10.10.10.2/32 endpoint 192.168.1.2:12345 persistent-keepalive 1".format(
46+ peer2pubkey.strip()
47+ )
48+ )
49+ peer1.succeed("ip route replace 10.10.10.2/32 dev wg0 table main")
50+
51+ peer2.succeed(
52+ "wg set wg0 peer {} allowed-ips 10.10.10.1/32 endpoint 192.168.1.1:12345 persistent-keepalive 1".format(
53+ peer1pubkey.strip()
54+ )
55+ )
56+ peer2.succeed("ip route replace 10.10.10.1/32 dev wg0 table main")
57+
58+ peer1.succeed("ping -c1 10.10.10.2")
59+ peer2.succeed("ping -c1 10.10.10.1")
5660 '';
5761})
nixos/tests/wireguard/namespaces.nixnew file+80
@@ -0,0 +1,80 @@
1+let
2+ listenPort = 12345;
3+ socketNamespace = "foo";
4+ interfaceNamespace = "bar";
5+ node = {
6+ networking.wireguard.interfaces.wg0 = {
7+ listenPort = listenPort;
8+ ips = [ "10.10.10.1/24" ];
9+ privateKeyFile = "/etc/wireguard/private";
10+ generatePrivateKeyFile = true;
11+ };
12+ };
13+
14+in
15+
16+import ../make-test.nix ({ pkgs, ...} : {
17+ name = "wireguard-with-namespaces";
18+ meta = with pkgs.stdenv.lib.maintainers; {
19+ maintainers = [ asymmetric ];
20+ };
21+
22+ nodes = {
23+ # interface should be created in the socketNamespace
24+ # and not moved from there
25+ peer0 = pkgs.lib.attrsets.recursiveUpdate node {
26+ networking.wireguard.interfaces.wg0 = {
27+ preSetup = ''
28+ ip netns add ${socketNamespace}
29+ '';
30+ inherit socketNamespace;
31+ };
32+ };
33+ # interface should be created in the init namespace
34+ # and moved to the interfaceNamespace
35+ peer1 = pkgs.lib.attrsets.recursiveUpdate node {
36+ networking.wireguard.interfaces.wg0 = {
37+ preSetup = ''
38+ ip netns add ${interfaceNamespace}
39+ '';
40+ inherit interfaceNamespace;
41+ };
42+ };
43+ # interface should be created in the socketNamespace
44+ # and moved to the interfaceNamespace
45+ peer2 = pkgs.lib.attrsets.recursiveUpdate node {
46+ networking.wireguard.interfaces.wg0 = {
47+ preSetup = ''
48+ ip netns add ${socketNamespace}
49+ ip netns add ${interfaceNamespace}
50+ '';
51+ inherit socketNamespace interfaceNamespace;
52+ };
53+ };
54+ # interface should be created in the socketNamespace
55+ # and moved to the init namespace
56+ peer3 = pkgs.lib.attrsets.recursiveUpdate node {
57+ networking.wireguard.interfaces.wg0 = {
58+ preSetup = ''
59+ ip netns add ${socketNamespace}
60+ '';
61+ inherit socketNamespace;
62+ interfaceNamespace = "init";
63+ };
64+ };
65+ };
66+
67+ testScript = ''
68+ startAll();
69+
70+ $peer0->waitForUnit("wireguard-wg0.service");
71+ $peer1->waitForUnit("wireguard-wg0.service");
72+ $peer2->waitForUnit("wireguard-wg0.service");
73+ $peer3->waitForUnit("wireguard-wg0.service");
74+
75+ $peer0->succeed("ip -n ${socketNamespace} link show wg0");
76+ $peer1->succeed("ip -n ${interfaceNamespace} link show wg0");
77+ $peer2->succeed("ip -n ${interfaceNamespace} link show wg0");
78+ $peer3->succeed("ip link show wg0");
79+ '';
80+})
nixos/tests/xautolock.nix+6−6
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
1+import ./make-test-python.nix ({ pkgs, lib, ... }:
22
33with lib;
44
@@ -15,10 +15,10 @@ with lib;
1515 };
1616
1717 testScript = ''
18− $machine->start;
19− $machine->waitForX;
20− $machine->mustFail("pgrep xlock");
21− $machine->sleep(120);
22− $machine->mustSucceed("pgrep xlock");
18+ machine.start()
19+ machine.wait_for_x()
20+ machine.fail("pgrep xlock")
21+ machine.sleep(120)
22+ machine.succeed("pgrep xlock")
2323 '';
2424})
nixos/tests/xdg-desktop-portal.nixdeleted−17
@@ -1,17 +0,0 @@
1−# run installed tests
2−import ./make-test.nix ({ pkgs, ... }:
3−
4−{
5− name = "xdg-desktop-portal";
6− meta = {
7− maintainers = pkgs.xdg-desktop-portal.meta.maintainers;
8− };
9−
10− machine = { pkgs, ... }: {
11− environment.systemPackages = with pkgs; [ gnome-desktop-testing ];
12− };
13−
14− testScript = ''
15− $machine->succeed("gnome-desktop-testing-runner -d '${pkgs.xdg-desktop-portal.installedTests}/share'");
16− '';
17−})
nixos/tests/xmonad.nix+17−15
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "xmonad";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ nequissimus ];
@@ -21,19 +21,21 @@ import ./make-test.nix ({ pkgs, ...} : {
2121 };
2222 };
2323
24− testScript = { ... }: ''
25− $machine->waitForX;
26− $machine->waitForFile("/home/alice/.Xauthority");
27− $machine->succeed("xauth merge ~alice/.Xauthority");
28− $machine->sendKeys("alt-ctrl-x");
29− $machine->waitForWindow(qr/alice.*machine/);
30− $machine->sleep(1);
31− $machine->screenshot("terminal");
32− $machine->waitUntilSucceeds("xmonad --restart");
33− $machine->sleep(3);
34− $machine->sendKeys("alt-shift-ret");
35− $machine->waitForWindow(qr/alice.*machine/);
36− $machine->sleep(1);
37− $machine->screenshot("terminal");
24+ testScript = { nodes, ... }: let
25+ user = nodes.machine.config.users.users.alice;
26+ in ''
27+ machine.wait_for_x()
28+ machine.wait_for_file("${user.home}/.Xauthority")
29+ machine.succeed("xauth merge ${user.home}/.Xauthority")
30+ machine.send_chars("alt-ctrl-x")
31+ machine.wait_for_window("${user.name}.*machine")
32+ machine.sleep(1)
33+ machine.screenshot("terminal")
34+ machine.wait_until_succeeds("xmonad --restart")
35+ machine.sleep(3)
36+ machine.send_chars("alt-shift-ret")
37+ machine.wait_for_window("${user.name}.*machine")
38+ machine.sleep(1)
39+ machine.screenshot("terminal")
3840 '';
3941})
nixos/tests/yabar.nix+7−7
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, lib, ... }:
1+import ./make-test-python.nix ({ pkgs, lib, ... }:
22
33with lib;
44
@@ -20,14 +20,14 @@ with lib;
2020 };
2121
2222 testScript = ''
23− $machine->start;
24− $machine->waitForX;
23+ machine.start()
24+ machine.wait_for_x()
2525
2626 # confirm proper startup
27− $machine->waitForUnit("yabar.service", "bob");
28− $machine->sleep(10);
29− $machine->waitForUnit("yabar.service", "bob");
27+ machine.wait_for_unit("yabar.service", "bob")
28+ machine.sleep(10)
29+ machine.wait_for_unit("yabar.service", "bob")
3030
31− $machine->screenshot("top_bar");
31+ machine.screenshot("top_bar")
3232 '';
3333})
nixos/tests/yggdrasil.nixnew file+123
@@ -0,0 +1,123 @@
1+let
2+ aliceIp6 = "200:3b91:b2d8:e708:fbf3:f06:fdd5:90d0";
3+ aliceKeys = {
4+ EncryptionPublicKey = "13e23986fe76bc3966b42453f479bc563348b7ff76633b7efcb76e185ec7652f";
5+ EncryptionPrivateKey = "9f86947b15e86f9badac095517a1982e39a2db37ca726357f95987b898d82208";
6+ SigningPublicKey = "e2c43349083bc1e998e4ec4535b4c6a8f44ca9a5a8e07336561267253b2be5f4";
7+ SigningPrivateKey = "fe3add8da35316c05f6d90d3ca79bd2801e6ccab6d37e5339fef4152589398abe2c43349083bc1e998e4ec4535b4c6a8f44ca9a5a8e07336561267253b2be5f4";
8+ };
9+ bobIp6 = "201:ebbd:bde9:f138:c302:4afa:1fb6:a19a";
10+ bobConfig = {
11+ InterfacePeers = {
12+ eth1 = [ "tcp://192.168.1.200:12345" ];
13+ };
14+ MulticastInterfaces = [ "eth1" ];
15+ LinkLocalTCPPort = 54321;
16+ EncryptionPublicKey = "c99d6830111e12d1b004c52fe9e5a2eef0f6aefca167aca14589a370b7373279";
17+ EncryptionPrivateKey = "2e698a53d3fdce5962d2ff37de0fe77742a5c8b56cd8259f5da6aa792f6e8ba3";
18+ SigningPublicKey = "de111da0ec781e45bf6c63ecb45a78c24d7d4655abfaeea83b26c36eb5c0fd5b";
19+ SigningPrivateKey = "2a6c21550f3fca0331df50668ffab66b6dce8237bcd5728e571e8033b363e247de111da0ec781e45bf6c63ecb45a78c24d7d4655abfaeea83b26c36eb5c0fd5b";
20+ };
21+
22+in import ./make-test.nix ({ pkgs, ...} : {
23+ name = "yggdrasil";
24+ meta = with pkgs.stdenv.lib.maintainers; {
25+ maintainers = [ gazally ];
26+ };
27+
28+ nodes = rec {
29+ # Alice is listening for peerings on a specified port,
30+ # but has multicast peering disabled. Alice has part of her
31+ # yggdrasil config in Nix and part of it in a file.
32+ alice =
33+ { ... }:
34+ {
35+ networking = {
36+ interfaces.eth1.ipv4.addresses = [{
37+ address = "192.168.1.200";
38+ prefixLength = 24;
39+ }];
40+ firewall.allowedTCPPorts = [ 80 12345 ];
41+ };
42+ services.httpd.enable = true;
43+ services.httpd.adminAddr = "foo@example.org";
44+
45+ services.yggdrasil = {
46+ enable = true;
47+ config = {
48+ Listen = ["tcp://0.0.0.0:12345"];
49+ MulticastInterfaces = [ ];
50+ };
51+ configFile = toString (pkgs.writeTextFile {
52+ name = "yggdrasil-alice-conf";
53+ text = builtins.toJSON aliceKeys;
54+ });
55+ };
56+ };
57+
58+ # Bob is set up to peer with Alice, and also to do local multicast
59+ # peering. Bob's yggdrasil config is in a file.
60+ bob =
61+ { ... }:
62+ {
63+ networking.firewall.allowedTCPPorts = [ 54321 ];
64+ services.yggdrasil = {
65+ enable = true;
66+ openMulticastPort = true;
67+ configFile = toString (pkgs.writeTextFile {
68+ name = "yggdrasil-bob-conf";
69+ text = builtins.toJSON bobConfig;
70+ });
71+ };
72+ };
73+
74+ # Carol only does local peering. Carol's yggdrasil config is all Nix.
75+ carol =
76+ { ... }:
77+ {
78+ networking.firewall.allowedTCPPorts = [ 43210 ];
79+ services.yggdrasil = {
80+ enable = true;
81+ denyDhcpcdInterfaces = [ "ygg0" ];
82+ config = {
83+ IfTAPMode = true;
84+ IfName = "ygg0";
85+ MulticastInterfaces = [ "eth1" ];
86+ LinkLocalTCPPort = 43210;
87+ };
88+ };
89+ };
90+ };
91+
92+ testScript =
93+ ''
94+ # Give Alice a head start so she is ready when Bob calls.
95+ $alice->start;
96+ $alice->waitForUnit("yggdrasil.service");
97+
98+ $bob->start;
99+ $carol->start;
100+ $bob->waitForUnit("yggdrasil.service");
101+ $carol->waitForUnit("yggdrasil.service");
102+
103+ $carol->waitUntilSucceeds("[ `ip -o -6 addr show dev ygg0 scope global | grep -v tentative | wc -l` -ge 1 ]");
104+ my $carolIp6 = (split /[ \/]+/, $carol->succeed("ip -o -6 addr show dev ygg0 scope global"))[3];
105+
106+ # If Alice can talk to Carol, then Bob's outbound peering and Carol's
107+ # local peering have succeeded and everybody is connected.
108+ $alice->waitUntilSucceeds("ping -c 1 $carolIp6");
109+ $alice->succeed("ping -c 1 ${bobIp6}");
110+
111+ $bob->succeed("ping -c 1 ${aliceIp6}");
112+ $bob->succeed("ping -c 1 $carolIp6");
113+
114+ $carol->succeed("ping -c 1 ${aliceIp6}");
115+ $carol->succeed("ping -c 1 ${bobIp6}");
116+
117+ $carol->fail("journalctl -u dhcpcd | grep ygg0");
118+
119+ $alice->waitForUnit("httpd.service");
120+ $carol->succeed("curl --fail -g http://[${aliceIp6}]");
121+
122+ '';
123+})
nixos/tests/zfs.nix+9−11
@@ -7,7 +7,7 @@ with import ../lib/testing.nix { inherit system pkgs; };
77
88let
99
10− makeTest = import ./make-test.nix;
10+ makeTest = import ./make-test-python.nix;
1111
1212 makeZfsTest = name:
1313 { kernelPackage ? pkgs.linuxPackages_latest
@@ -34,12 +34,12 @@ let
3434 };
3535
3636 testScript = ''
37− $machine->succeed("modprobe zfs");
38− $machine->succeed("zpool status");
37+ machine.succeed("modprobe zfs")
38+ machine.succeed("zpool status")
3939
40− $machine->succeed("ls /dev");
40+ machine.succeed("ls /dev")
4141
42− $machine->succeed(
42+ machine.succeed(
4343 "mkdir /tmp/mnt",
4444
4545 "udevadm settle",
@@ -55,9 +55,7 @@ let
5555 "umount /tmp/mnt",
5656 "zpool destroy rpool",
5757 "udevadm settle"
58−
59− );
60−
58+ )
6159 '' + extraTest;
6260
6361 };
@@ -70,8 +68,8 @@ in {
7068 unstable = makeZfsTest "unstable" {
7169 enableUnstable = true;
7270 extraTest = ''
73− $machine->succeed(
74− "echo password | zpool create -o altroot='/tmp/mnt' -O encryption=aes-256-gcm -O keyformat=passphrase rpool /dev/vdb1",
71+ machine.succeed(
72+ "echo password | zpool create -o altroot=\"/tmp/mnt\" -O encryption=aes-256-gcm -O keyformat=passphrase rpool /dev/vdb1",
7573 "zfs create -o mountpoint=legacy rpool/root",
7674 "mount -t zfs rpool/root /tmp/mnt",
7775 "udevadm settle",
@@ -79,7 +77,7 @@ in {
7977 "umount /tmp/mnt",
8078 "zpool destroy rpool",
8179 "udevadm settle"
82− );
80+ )
8381 '';
8482 };
8583
nixos/tests/zookeeper.nix+14−8
@@ -1,4 +1,4 @@
1−import ./make-test.nix ({ pkgs, ...} : {
1+import ./make-test-python.nix ({ pkgs, ...} : {
22 name = "zookeeper";
33 meta = with pkgs.stdenv.lib.maintainers; {
44 maintainers = [ nequissimus ];
@@ -15,14 +15,20 @@ import ./make-test.nix ({ pkgs, ...} : {
1515 };
1616
1717 testScript = ''
18− startAll;
18+ start_all()
1919
20− $server->waitForUnit("zookeeper");
21− $server->waitForUnit("network.target");
22− $server->waitForOpenPort(2181);
20+ server.wait_for_unit("zookeeper")
21+ server.wait_for_unit("network.target")
22+ server.wait_for_open_port(2181)
2323
24− $server->waitUntilSucceeds("${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 create /foo bar");
25− $server->waitUntilSucceeds("${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 set /foo hello");
26− $server->waitUntilSucceeds("${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 get /foo | grep hello");
24+ server.wait_until_succeeds(
25+ "${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 create /foo bar"
26+ )
27+ server.wait_until_succeeds(
28+ "${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 set /foo hello"
29+ )
30+ server.wait_until_succeeds(
31+ "${pkgs.zookeeper}/bin/zkCli.sh -server localhost:2181 get /foo | grep hello"
32+ )
2733 '';
2834})
pkgs/applications/accessibility/contrast/default.nixnew file+71
@@ -0,0 +1,71 @@
1+{ stdenv
2+, fetchFromGitLab
3+, cairo
4+, dbus
5+, desktop-file-utils
6+, gettext
7+, glib
8+, gtk3
9+, libhandy
10+, meson
11+, ninja
12+, pango
13+, pkgconfig
14+, python3
15+, rustc
16+, rustPlatform
17+, wrapGAppsHook
18+}:
19+
20+rustPlatform.buildRustPackage rec {
21+ pname = "contrast";
22+ version = "0.0.2";
23+
24+ src = fetchFromGitLab {
25+ domain = "gitlab.gnome.org";
26+ group = "World";
27+ owner = "design";
28+ repo = "contrast";
29+ rev = version;
30+ sha256 = "0rm705zrk9rfv31pwbqxrswi5v6vhnghxa8dgxjmcrh00l8dm6j9";
31+ };
32+
33+ cargoSha256 = "06vgc89d93fhjcyy9d1v6lf8kr34pl5bbpwbv2jpfahpj9y84bgj";
34+
35+ nativeBuildInputs = [
36+ desktop-file-utils
37+ gettext
38+ meson
39+ ninja
40+ pkgconfig
41+ python3
42+ wrapGAppsHook
43+ ];
44+
45+ buildInputs = [
46+ cairo
47+ dbus
48+ glib
49+ gtk3
50+ libhandy
51+ pango
52+ ];
53+
54+ postPatch = ''
55+ patchShebangs build-aux/meson_post_install.py
56+ '';
57+
58+ # Don't use buildRustPackage phases, only use it for rust deps setup
59+ configurePhase = null;
60+ buildPhase = null;
61+ checkPhase = null;
62+ installPhase = null;
63+
64+ meta = with stdenv.lib; {
65+ description = "Checks whether the contrast between two colors meet the WCAG requirements";
66+ homepage = https://gitlab.gnome.org/World/design/contrast;
67+ license = licenses.gpl3;
68+ maintainers = with maintainers; [ jtojnar ];
69+ };
70+}
71+
pkgs/applications/audio/amarok/default.nix+2
@@ -33,6 +33,8 @@ mkDerivation rec {
3333 enableParallelBuilding = true;
3434
3535 meta = with lib; {
36+ homepage = "https://amarok.kde.org";
37+ description = "A powerful music player with an intuitive interface";
3638 license = licenses.gpl2;
3739 maintainers = with maintainers; [ peterhoeg ];
3840 };
pkgs/applications/audio/asunder/default.nix+4−4
@@ -12,15 +12,15 @@
1212with stdenv.lib;
1313
1414stdenv.mkDerivation rec {
15− version = "2.9.4";
15+ version = "2.9.5";
1616 pname = "asunder";
1717 src = fetchurl {
1818 url = "http://littlesvr.ca/asunder/releases/${pname}-${version}.tar.bz2";
19− sha256 = "1bwc9v9l1f3kqjd7wis6g2sv6ibc618ybh0gsb8mkkfhadp68w30";
19+ sha256 = "069x6az2r3wlb2hd07iz0hxpxwknw7s9h7pyhnkmzv1pw9ci3kk4";
2020 };
2121
22− nativeBuildInputs = [ pkgconfig ];
23− buildInputs = [ gtk2 libcddb intltool makeWrapper ];
22+ nativeBuildInputs = [ intltool makeWrapper pkgconfig ];
23+ buildInputs = [ gtk2 libcddb ];
2424
2525 runtimeDeps =
2626 optional mp3Support lame ++
pkgs/applications/audio/audacity/default.nix+6−7
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, wxGTK30, pkgconfig, file, gettext, gtk2,
1+{ stdenv, fetchzip, wxGTK30, pkgconfig, file, gettext,
22 libvorbis, libmad, libjack2, lv2, lilv, serd, sord, sratom, suil, alsaLib, libsndfile, soxr, flac, lame,
33 expat, libid3tag, ffmpeg, soundtouch, /*, portaudio - given up fighting their portaudio.patch */
44 autoconf, automake, libtool
@@ -10,9 +10,9 @@ stdenv.mkDerivation rec {
1010 version = "2.3.2";
1111 pname = "audacity";
1212
13− src = fetchurl {
13+ src = fetchzip {
1414 url = "https://github.com/audacity/audacity/archive/Audacity-${version}.tar.gz";
15− sha256 = "0cf7fr1qhyyylj8g9ax1rq5sb887bcv5b8d7hwlcfwamzxqpliyc";
15+ sha256 = "08w96124vv8k4myd4vifq73ningq6404x889wvg2sk016kc4dfv1";
1616 };
1717
1818 preConfigure = /* we prefer system-wide libs */ ''
@@ -43,12 +43,11 @@ stdenv.mkDerivation rec {
4343 "-lswscale"
4444 ];
4545
46− nativeBuildInputs = [ pkgconfig ];
46+ nativeBuildInputs = [ pkgconfig autoconf automake libtool ];
4747 buildInputs = [
4848 file gettext wxGTK30 expat alsaLib
49− libsndfile soxr libid3tag libjack2 lv2 lilv serd sord sratom suil gtk2
49+ libsndfile soxr libid3tag libjack2 lv2 lilv serd sord sratom suil wxGTK30.gtk
5050 ffmpeg libmad lame libvorbis flac soundtouch
51− autoconf automake libtool # for the preConfigure phase
5251 ]; #ToDo: detach sbsms
5352
5453 enableParallelBuilding = true;
@@ -60,7 +59,7 @@ stdenv.mkDerivation rec {
6059 description = "Sound editor with graphical UI";
6160 homepage = http://audacityteam.org/;
6261 license = licenses.gpl2Plus;
63− platforms = with platforms; linux;
62+ platforms = intersectLists platforms.linux platforms.x86; # fails on ARM
6463 maintainers = with maintainers; [ the-kenny ];
6564 };
6665}
pkgs/applications/audio/avldrums-lv2/default.nix+2−2
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 pname = "avldrums.lv2";
5− version = "0.3.5";
5+ version = "0.4.0";
66
77 src = fetchFromGitHub {
88 owner = "x42";
99 repo = pname;
1010 rev = "v${version}";
11− sha256 = "00n2varc7iwp0xbfi45hpq4vlpxxb2kbrdzvrc20qp2265994bqf";
11+ sha256 = "1z70rcq6z3gkb4fm8dm9hs31bslwr97zdh2n012fzki9b9rdj5qv";
1212 fetchSubmodules = true;
1313 };
1414
pkgs/applications/audio/bitwig-studio/bitwig-studio3.nix+2−2
@@ -3,11 +3,11 @@
33
44bitwig-studio1.overrideAttrs (oldAttrs: rec {
55 name = "bitwig-studio-${version}";
6− version = "3.0.1";
6+ version = "3.0.3";
77
88 src = fetchurl {
99 url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
10− sha256 = "0k25p1j4kgnhm7p90qp1cz79xddgi6nh1nx1y5wz42x8qrpxya0s";
10+ sha256 = "162l95imq2fb4blfkianlkymm690by9ri73xf9zigknqf0gacgsa";
1111 };
1212
1313 runtimeDependencies = [
pkgs/applications/audio/bsequencer/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, xorg, cairo, lv2, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "BSEQuencer";
5+ version = "0.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "sjaehn";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0c3bm2z6z2bjjv1cy50383zr81h99rcb2frmxad0r7lhi27mjyqn";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [
16+ xorg.libX11 cairo lv2
17+ ];
18+
19+ installFlags = [ "PREFIX=$(out)" ];
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/sjaehn/BSEQuencer;
23+ description = "Multi channel MIDI step sequencer LV2 plugin";
24+ maintainers = [ maintainers.magnetophon ];
25+ platforms = platforms.linux;
26+ license = licenses.gpl3;
27+ };
28+}
pkgs/applications/audio/bshapr/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, xorg, cairo, lv2, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "BShapr";
5+ version = "0.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "sjaehn";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "02b4wdfhr9y7z2k6ls086gv3vz4sjf7b1k8ryh573bzd8nr4896v";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [
16+ xorg.libX11 cairo lv2
17+ ];
18+
19+ installFlags = [ "PREFIX=$(out)" ];
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/sjaehn/BShapr;
23+ description = "Beat / envelope shaper LV2 plugin";
24+ maintainers = [ maintainers.magnetophon ];
25+ platforms = platforms.linux;
26+ license = licenses.gpl3;
27+ };
28+}
pkgs/applications/audio/bslizr/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, xorg, cairo, lv2, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "BSlizr";
5+ version = "1.2.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "sjaehn";
9+ repo = pname;
10+ rev = "${version}";
11+ sha256 = "1xqhpppfj47nzmyksbqgfvvi5j807g96hqla544w2f752zz4yi0s";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [
16+ xorg.libX11 cairo lv2
17+ ];
18+
19+ installFlags = [ "PREFIX=$(out)" ];
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/sjaehn/BSlizr;
23+ description = "Sequenced audio slicing effect LV2 plugin (step sequencer effect)";
24+ maintainers = [ maintainers.magnetophon ];
25+ platforms = platforms.linux;
26+ license = licenses.gpl3;
27+ };
28+}
pkgs/applications/audio/cadence/default.nix+45−52
@@ -1,4 +1,6 @@
11{ stdenv
2+, mkDerivation
3+, lib
24, fetchzip
35, pkgconfig
46, qtbase
@@ -6,7 +8,7 @@
68, python3Packages
79}:
810
9− stdenv.mkDerivation rec {
11+ mkDerivation rec {
1012 version = "0.9.0";
1113 pname = "cadence";
1214
@@ -15,65 +17,56 @@
1517 sha256 = "08vcggypkdfr70v49innahs5s11hi222dhhnm5wcqzdgksphqzwx";
1618 };
1719
18− nativeBuildInputs = [ makeWrapper pkgconfig ];
19− buildInputs = [ qtbase ];
20+ nativeBuildInputs = [
21+ pkgconfig
22+ ];
2023
21− makeFlags = ''
22− PREFIX=""
23− DESTDIR=$(out)
24− '';
24+ buildInputs = [
25+ qtbase
26+ ];
2527
26− propagatedBuildInputs = with python3Packages; [ pyqt5_with_qtwebkit ];
28+ makeFlags = [
29+ "PREFIX=''"
30+ "DESTDIR=${placeholder "out"}"
31+ ];
2732
28− postInstall = ''
29− # replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise
30− rm $out/bin/cadence
31− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence \
32− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
33− --add-flags "-O $out/share/cadence/src/cadence.py"
34− rm $out/bin/claudia
35− makeWrapper ${python3Packages.python.interpreter} $out/bin/claudia \
36− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
37− --add-flags "-O $out/share/cadence/src/claudia.py"
38− rm $out/bin/catarina
39− makeWrapper ${python3Packages.python.interpreter} $out/bin/catarina \
40− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
41− --add-flags "-O $out/share/cadence/src/catarina.py"
42− rm $out/bin/catia
43− makeWrapper ${python3Packages.python.interpreter} $out/bin/catia \
44− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
45− --add-flags "-O $out/share/cadence/src/catia.py"
46− rm $out/bin/cadence-jacksettings
47− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-jacksettings \
48− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
49− --add-flags "-O $out/share/cadence/src/jacksettings.py"
50− rm $out/bin/cadence-aloop-daemon
51− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-aloop-daemon \
52− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
53− --add-flags "-O $out/share/cadence/src/cadence_aloop_daemon.py"
54− rm $out/bin/cadence-logs
55− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-logs \
56− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
57− --add-flags "-O $out/share/cadence/src/logs.py"
58− rm $out/bin/cadence-render
59− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-render \
60− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
61− --add-flags "-O $out/share/cadence/src/render.py"
62− rm $out/bin/claudia-launcher
63− makeWrapper ${python3Packages.python.interpreter} $out/bin/claudia-launcher \
64− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
65− --add-flags "-O $out/share/cadence/src/claudia_launcher.py"
66− rm $out/bin/cadence-session-start
67− makeWrapper ${python3Packages.python.interpreter} $out/bin/cadence-session-start \
68− --set PYTHONPATH "$PYTHONPATH:$out/share/cadence" \
69− --add-flags "-O $out/share/cadence/src/cadence_session_start.py"
70− '';
33+ propagatedBuildInputs = with python3Packages; [
34+ pyqt5_with_qtwebkit
35+ ];
36+
37+ dontWrapQtApps = true;
38+
39+ # Replace with our own wrappers. They need to be changed manually since it wouldn't work otherwise.
40+ preFixup = let
41+ outRef = placeholder "out";
42+ prefix = "${outRef}/share/cadence/src";
43+ scriptAndSource = lib.mapAttrs' (script: source:
44+ lib.nameValuePair ("${outRef}/bin/" + script) ("${prefix}/" + source)
45+ ) {
46+ "cadence" = "cadence.py";
47+ "claudia" = "claudia.py";
48+ "catarina" = "catarina.py";
49+ "catia" = "catia.py";
50+ "cadence-jacksettings" = "jacksettings.py";
51+ "cadence-aloop-daemon" = "cadence_aloop_daemon.py";
52+ "cadence-logs" = "logs.py";
53+ "cadence-render" = "render.py";
54+ "claudia-launcher" = "claudia_launcher.py";
55+ "cadence-session-start" = "cadence_session_start.py";
56+ };
57+ in lib.mapAttrsToList (script: source: ''
58+ rm -f ${script}
59+ makeWrapper ${python3Packages.python.interpreter} ${script} \
60+ --set PYTHONPATH "$PYTHONPATH:${outRef}/share/cadence" \
61+ ''${qtWrapperArgs[@]} \
62+ --add-flags "-O ${source}"
63+ '') scriptAndSource;
7164
7265 meta = {
7366 homepage = https://github.com/falkTX/Cadence/;
7467 description = "Collection of tools useful for audio production";
7568 license = stdenv.lib.licenses.gpl2Plus;
76− maintainers = with stdenv.lib.maintainers; [ genesis ];
69+ maintainers = with stdenv.lib.maintainers; [ genesis worldofpeace ];
7770 platforms = [ "x86_64-linux" ];
7871 };
7972}
pkgs/applications/audio/denemo/default.nix+9−5
@@ -2,7 +2,7 @@
22, libjack2, gettext, intltool, guile_2_0, lilypond
33, glib, libxml2, librsvg, libsndfile, aubio
44, gtk3, gtksourceview, evince, fluidsynth, rubberband
5−, portaudio, portmidi, fftw, makeWrapper }:
5+, portaudio, portmidi, fftw, wrapGAppsHook }:
66
77stdenv.mkDerivation rec {
88 pname = "denemo";
@@ -14,17 +14,21 @@ stdenv.mkDerivation rec {
1414 };
1515
1616 buildInputs = [
17− libjack2 gettext guile_2_0 lilypond pkgconfig glib libxml2 librsvg libsndfile
17+ libjack2 guile_2_0 lilypond glib libxml2 librsvg libsndfile
1818 aubio gtk3 gtksourceview evince fluidsynth rubberband portaudio fftw portmidi
19− makeWrapper
2019 ];
2120
22− postInstall = ''
23− wrapProgram $out/bin/denemo --prefix PATH : ${lilypond}/bin
21+ preFixup = ''
22+ gappsWrapperArgs+=(
23+ --prefix PATH : "${lilypond}/bin"
24+ )
2425 '';
2526
2627 nativeBuildInputs = [
28+ wrapGAppsHook
2729 intltool
30+ gettext
31+ pkgconfig
2832 ];
2933
3034 meta = with stdenv.lib; {
pkgs/applications/audio/drumgizmo/default.nix+2−2
@@ -3,12 +3,12 @@
33}:
44
55stdenv.mkDerivation rec {
6− version = "0.9.17";
6+ version = "0.9.18.1";
77 pname = "drumgizmo";
88
99 src = fetchurl {
1010 url = "https://www.drumgizmo.org/releases/${pname}-${version}/${pname}-${version}.tar.gz";
11− sha256 = "177c27kz9srds7a659zz9yhp58z0zsk0ydwww7l3jkjlylm1p8x1";
11+ sha256 = "0bpbkzcr3znbwfdk79c14n5k5hh80iqlk2nc03q95vhimbadk8k7";
1212 };
1313
1414 configureFlags = [ "--enable-lv2" ];
pkgs/applications/audio/drumkv1/default.nix+5−5
@@ -1,19 +1,19 @@
1−{ stdenv, fetchurl, pkgconfig, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:
1+{ mkDerivation, lib, fetchurl, pkgconfig, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:
22
3−stdenv.mkDerivation rec {
3+mkDerivation rec {
44 pname = "drumkv1";
5− version = "0.9.10";
5+ version = "0.9.11";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/drumkv1/${pname}-${version}.tar.gz";
9− sha256 = "0h08r6vq23dlnag67fcfcpx83wampx4fag82v4bgkqg2sdh64p3n";
9+ sha256 = "1wnjn175l0mz51k9pjf3pdzv54c4jlh63saavld9lm6zfgfs13d7";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools ];
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515
16− meta = with stdenv.lib; {
16+ meta = with lib; {
1717 description = "An old-school drum-kit sampler synthesizer with stereo fx";
1818 homepage = http://drumkv1.sourceforge.net/;
1919 license = licenses.gpl2Plus;
pkgs/applications/audio/ensemble-chorus/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, fltk, alsaLib, freetype, libXrandr, libXinerama, libXcursor, lv2, libjack2, cmake, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "ensemble-chorus";
5+ version = "unstable-15-02-2019";
6+
7+ src = fetchFromGitHub {
8+ owner = "jpcima";
9+ repo = pname;
10+ rev = "59baeb86b8851f521bc8162e22e3f15061662cc3";
11+ sha256 = "0c1y10vyhrihcjvxqpqf6b52yk5yhwh813cfp6nla5ax2w88dbhr";
12+ fetchSubmodules = true;
13+ };
14+
15+ nativeBuildInputs = [ cmake pkgconfig ];
16+
17+ buildInputs = [
18+ fltk alsaLib freetype libXrandr libXinerama libXcursor lv2 libjack2
19+ ];
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/jpcima/ensemble-chorus;
23+ description = "Digital model of electronic string ensemble chorus";
24+ maintainers = [ maintainers.magnetophon ];
25+ platforms = platforms.linux;
26+ license = licenses.boost;
27+ };
28+}
pkgs/applications/audio/fmsynth/default.nix+1−1
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
1515 buildPhase = ''
1616 cd lv2
1717 substituteInPlace GNUmakefile --replace "/usr/lib/lv2" "$out/lib/lv2"
18− make
18+ make SIMD=0
1919 '';
2020
2121 preInstall = "mkdir -p $out/lib/lv2";
pkgs/applications/audio/friture/default.nix+5−4
@@ -4,13 +4,13 @@ let
44 py = python3Packages;
55in py.buildPythonApplication rec {
66 pname = "friture";
7− version = "0.36";
7+ version = "0.37";
88
99 src = fetchFromGitHub {
1010 owner = "tlecomte";
11− repo = "friture";
11+ repo = pname;
1212 rev = "v${version}";
13− sha256 = "1pz8v0qbzqq3ig9w33cp027s6c8rj316x5sy8pqs5nsiny9ddnk6";
13+ sha256 = "1ivy5qfd90w1s1icsphvvdnnqz563v3fhg5pws2zn4483cgnzc2y";
1414 };
1515
1616 # module imports scipy.misc.factorial, but it has been removed since scipy
@@ -37,8 +37,9 @@ in py.buildPythonApplication rec {
3737
3838 meta = with lib; {
3939 description = "A real-time audio analyzer";
40− homepage = http://friture.org/;
40+ homepage = "http://friture.org/";
4141 license = licenses.gpl3;
42+ platforms = platforms.linux; # fails on Darwin
4243 maintainers = [ maintainers.laikq ];
4344 };
4445}
pkgs/applications/audio/giada/default.nixnew file+43
@@ -0,0 +1,43 @@
1+{ lib, stdenv, fetchFromGitHub, autoreconfHook,
2+ fltk, jansson, rtmidi, libsamplerate, libsndfile,
3+ jack2, alsaLib, libpulseaudio,
4+ libXpm, libXinerama, libXcursor }:
5+
6+stdenv.mkDerivation rec {
7+ pname = "giada";
8+ version = "0.15.4";
9+
10+ src = fetchFromGitHub {
11+ owner = "monocasual";
12+ repo = pname;
13+ rev = "v${version}";
14+ sha256 = "0a5lqzxs417alpjr42q5197v6dwgrc74434znszk4lfhivr88p8v";
15+ };
16+
17+ configureFlags = [ "--target=linux" ];
18+ nativeBuildInputs = [
19+ autoreconfHook
20+ ];
21+ buildInputs = [
22+ fltk
23+ libsndfile
24+ libsamplerate
25+ jansson
26+ rtmidi
27+ libXpm
28+ jack2
29+ alsaLib
30+ libpulseaudio
31+ libXinerama
32+ libXcursor
33+ ];
34+
35+ meta = with lib; {
36+ description = "A free, minimal, hardcore audio tool for DJs, live performers and electronic musicians";
37+ homepage = "https://giadamusic.com/";
38+ license = licenses.gpl3;
39+ maintainers = with maintainers; [ petabyteboy ];
40+ platforms = platforms.all;
41+ broken = stdenv.hostPlatform.isAarch64; # produces build failure on aarch64-linux
42+ };
43+}
pkgs/applications/audio/gpodder/default.nix+2−2
@@ -5,14 +5,14 @@
55
66python3Packages.buildPythonApplication rec {
77 pname = "gpodder";
8− version = "3.10.9";
8+ version = "3.10.11";
99 format = "other";
1010
1111 src = fetchFromGitHub {
1212 owner = pname;
1313 repo = pname;
1414 rev = version;
15− sha256 = "1sdmr1sq1d4p492zp9kq3npl7p56yr0pr470z9r6xxcylax5mhfq";
15+ sha256 = "15f5z3cnch9lpzbz73l4wjykv9n74y8djz5db53la2ql4ihaxfz9";
1616 };
1717
1818 patches = [
pkgs/applications/audio/gxmatcheq-lv2/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, xorg, xorgproto, cairo, lv2, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "GxMatchEQ.lv2";
5+ version = "0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "brummer10";
9+ repo = pname;
10+ rev = "V${version}";
11+ sha256 = "0azdmgzqwjn26nx38iw13666a1i4y2bv39wk89pf6ihdi46klf72";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [
16+ xorg.libX11 xorgproto cairo lv2
17+ ];
18+
19+ # error: format not a string literal and no format arguments [-Werror=format-security]
20+ hardeningDisable = [ "format" ];
21+
22+ installFlags = [ "INSTALL_DIR=$(out)/lib/lv2" ];
23+
24+ meta = with stdenv.lib; {
25+ homepage = https://github.com/brummer10/GxMatchEQ.lv2;
26+ description = "Matching Equalizer to apply EQ curve from one source to another source";
27+ maintainers = [ maintainers.magnetophon ];
28+ license = licenses.gpl3;
29+ };
30+}
pkgs/applications/audio/lollypop/default.nix+4−3
@@ -19,7 +19,7 @@
1919
2020python3.pkgs.buildPythonApplication rec {
2121 pname = "lollypop";
22− version = "1.1.4.16";
22+ version = "1.2.5";
2323
2424 format = "other";
2525 doCheck = false;
@@ -28,7 +28,7 @@ python3.pkgs.buildPythonApplication rec {
2828 url = "https://gitlab.gnome.org/World/lollypop";
2929 rev = "refs/tags/${version}";
3030 fetchSubmodules = true;
31− sha256 = "1azfxc1vc1j4ph0zrfsgz2gac1vwmbj65j6wjlxx3nr8kia4mccl";
31+ sha256 = "148p3ab7nnfz13hgjkx1cf2ahq9mgl72csrl35xy6d0nkfqbfr8r";
3232 };
3333
3434 nativeBuildInputs = [
@@ -42,7 +42,6 @@ python3.pkgs.buildPythonApplication rec {
4242 ];
4343
4444 buildInputs = with gst_all_1; [
45− gobject-introspection
4645 gst-libav
4746 gst-plugins-bad
4847 gst-plugins-base
@@ -73,6 +72,8 @@ python3.pkgs.buildPythonApplication rec {
7372 wrapPythonProgramsIn $out/libexec "$out $propagatedBuildInputs"
7473 '';
7574
75+ strictDeps = false;
76+
7677 # Produce only one wrapper using wrap-python passing
7778 # gappsWrapperArgs to wrap-python additional wrapper
7879 # argument
pkgs/applications/audio/lsp-plugins/default.nix+3−3
@@ -5,13 +5,13 @@
55
66stdenv.mkDerivation rec {
77 pname = "lsp-plugins";
8− version = "1.1.9";
8+ version = "1.1.10";
99
1010 src = fetchFromGitHub {
1111 owner = "sadko4u";
1212 repo = pname;
1313 rev = "${pname}-${version}";
14− sha256 = "1dzpl7f354rwp37bkr9h2yyafykcdn6m1qqfshqg77fj0pcsw8r2";
14+ sha256 = "09gmwzh1gq1q2lxn8fc1bpdh02h8vr7r0i040c1nx256wgfsarqb";
1515 };
1616
1717 nativeBuildInputs = [ pkgconfig php expat ];
@@ -154,6 +154,6 @@ stdenv.mkDerivation rec {
154154 homepage = https://lsp-plug.in;
155155 maintainers = with maintainers; [ magnetophon ];
156156 license = licenses.gpl2;
157− platforms = platforms.linux;
157+ platforms = [ "x86_64-linux" ];
158158 };
159159}
pkgs/applications/audio/mopidy/default.nix+2−2
@@ -4,13 +4,13 @@
44
55pythonPackages.buildPythonApplication rec {
66 pname = "mopidy";
7− version = "2.2.3";
7+ version = "2.3.1";
88
99 src = fetchFromGitHub {
1010 owner = "mopidy";
1111 repo = "mopidy";
1212 rev = "v${version}";
13− sha256 = "0i9rpnlmgrnkgmr9hyx9sky9gzj2cjhay84a0yaijwcb9nmr8nnc";
13+ sha256 = "1qdflxr0an6l2m3j90h55bzyj7rjlkkwmxx945hwv8xi472rcgdj";
1414 };
1515
1616 nativeBuildInputs = [ wrapGAppsHook ];
pkgs/applications/audio/mopidy/iris.nix+2−2
@@ -2,11 +2,11 @@
22
33pythonPackages.buildPythonApplication rec {
44 pname = "Mopidy-Iris";
5− version = "3.41.1";
5+ version = "3.42.2";
66
77 src = pythonPackages.fetchPypi {
88 inherit pname version;
9− sha256 = "1bdcxsvb756rchyp9cj1y5x1w0w6p2hp7grgar5c4cyh3kshc2kj";
9+ sha256 = "1v1dy857kxxn1si0x7p3qz63l1af5pln1jji1f7fis6id8iy7wfm";
1010 };
1111
1212 propagatedBuildInputs = [
pkgs/applications/audio/mpc/default.nix+4−6
@@ -1,21 +1,19 @@
1−{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, mpd_clientlib }:
1+{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, mpd_clientlib, sphinx }:
22
33stdenv.mkDerivation rec {
44 pname = "mpc";
5− version = "0.28";
5+ version = "0.31";
66
77 src = fetchFromGitHub {
88 owner = "MusicPlayerDaemon";
99 repo = "mpc";
1010 rev = "v${version}";
11− sha256 = "1g8i4q5xsqdhidyjpvj6hzbhxacv27cb47ndv9k68whd80c5f9n9";
11+ sha256 = "06wn5f24bgkqmhh2p8rbizmqibzqr4x1q7c6zl0pfq7mdy49g5ds";
1212 };
1313
1414 buildInputs = [ mpd_clientlib ];
1515
16− nativeBuildInputs = [ autoreconfHook pkgconfig ];
17−
18− enableParallelBuilding = true;
16+ nativeBuildInputs = [ meson ninja pkgconfig sphinx ];
1917
2018 meta = with stdenv.lib; {
2119 description = "A minimalist command line interface to MPD";
pkgs/applications/audio/mpg123/default.nix+2−2
@@ -3,11 +3,11 @@
33}:
44
55stdenv.mkDerivation rec {
6− name = "mpg123-1.25.11";
6+ name = "mpg123-1.25.12";
77
88 src = fetchurl {
99 url = "mirror://sourceforge/mpg123/${name}.tar.bz2";
10− sha256 = "1cpal2zsm3zgi6f48vvwpg6wgkv42ndi7lk3zsg7sz52z83k61nz";
10+ sha256 = "1l9iwwgqzw6yg5zk9pqmlbfyq6d8dqysbmj0j3m8dyrxd34wgzhz";
1111 };
1212
1313 buildInputs = stdenv.lib.optional (!stdenv.isDarwin) alsaLib;
pkgs/applications/audio/ncmpc/default.nix+13−6
@@ -1,25 +1,32 @@
11{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig, glib, ncurses
2−, mpd_clientlib, gettext, boost }:
2+, mpd_clientlib, gettext, boost
3+, pcreSupport ? false
4+, pcre ? null
5+}:
6+
7+with stdenv.lib;
8+
9+assert pcreSupport -> pcre != null;
310
411stdenv.mkDerivation rec {
512 pname = "ncmpc";
6− version = "0.35";
13+ version = "0.36";
714
815 src = fetchFromGitHub {
916 owner = "MusicPlayerDaemon";
1017 repo = "ncmpc";
1118 rev = "v${version}";
12− sha256 = "0hhc5snxy5fbg47ynz4b7fkmzdy974zxqr0cqc6kh15yvbr25ikh";
19+ sha256 = "1ssmk1p43gjhcqi86sh6b7csqpwwpf3hs32cmnylv6pmbcwbs69h";
1320 };
1421
15− buildInputs = [ glib ncurses mpd_clientlib boost ];
22+ buildInputs = [ glib ncurses mpd_clientlib boost ]
23+ ++ optional pcreSupport pcre;
1624 nativeBuildInputs = [ meson ninja pkgconfig gettext ];
1725
1826 mesonFlags = [
1927 "-Dlirc=disabled"
20− "-Dregex=disabled"
2128 "-Ddocumentation=disabled"
22− ];
29+ ] ++ optional (!pcreSupport) "-Dregex=disabled";
2330
2431 meta = with stdenv.lib; {
2532 description = "Curses-based interface for MPD (music player daemon)";
pkgs/applications/audio/openmpt123/default.nix+2−2
@@ -2,14 +2,14 @@
22, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
33
44let
5− version = "0.4.1";
5+ version = "0.4.9";
66in stdenv.mkDerivation {
77 pname = "openmpt123";
88 inherit version;
99
1010 src = fetchurl {
1111 url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
12− sha256 = "1k1m1adjh4s2q9lxgkf836k5243akxrzq1hsdjhrkg4idd3pxzp4";
12+ sha256 = "02kjwwh9d9i4rnfzqzr18pvcklc46yrs9mvdmjqx7kxg3c28hkqm";
1313 };
1414
1515 enableParallelBuilding = true;
pkgs/applications/audio/padthv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33mkDerivation rec {
44 pname = "padthv1";
5− version = "0.9.10";
5+ version = "0.9.11";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/padthv1/${pname}-${version}.tar.gz";
9− sha256 = "07gpq31a9iwk79yzndqzmw7snap7s4ifnsc4mfwkdga2zx13z0rx";
9+ sha256 = "02yfwyirjqxa075yqdnci9b9k57kdmkjvn9gnpdbnjp887pds76g";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools fftw ];
pkgs/applications/audio/picard/default.nix+2−2
@@ -4,13 +4,13 @@ let
44 pythonPackages = python3Packages;
55in pythonPackages.buildPythonApplication rec {
66 pname = "picard";
7− version = "2.2.1";
7+ version = "2.2.2";
88
99 src = fetchFromGitHub {
1010 owner = "metabrainz";
1111 repo = pname;
1212 rev = "release-${version}";
13− sha256 = "1g7pbicf65hswbqmhrwlba9jm4r2vnggy7vy75z4256y7qcpwdfd";
13+ sha256 = "1iibkvwpj862wcrl0fmyi6qhcgx4q5ay63yr0zyg0bkqgcka0gpr";
1414 };
1515
1616 nativeBuildInputs = [ gettext qt5.wrapQtAppsHook qt5.qtbase ];
pkgs/applications/audio/pithos/default.nix+2−2
@@ -4,13 +4,13 @@
44
55pythonPackages.buildPythonApplication rec {
66 pname = "pithos";
7− version = "1.4.1";
7+ version = "1.5.0";
88
99 src = fetchFromGitHub {
1010 owner = pname;
1111 repo = pname;
1212 rev = version;
13− sha256 = "0vaw0rfcdh4bsp9b8la9bs36kw0iwia54y5x060byxhff9av6nj4";
13+ sha256 = "10nnm55ql86x1qfmq6dx9a1igf7myjxibmvyhd7fyv06vdhfifgy";
1414 };
1515
1616 format = "other";
pkgs/applications/audio/qjackctl/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, mkDerivation, fetchurl, pkgconfig, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras }:
22
33mkDerivation rec {
4− version = "0.5.9";
4+ version = "0.6.0";
55 pname = "qjackctl";
66
77 # some dependencies such as killall have to be installed additionally
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/qjackctl/${pname}-${version}.tar.gz";
11− sha256 = "1saywsda9m124rmjp7i3n0llryaliabjxhqhvqr6dm983qy7pypk";
11+ sha256 = "1kddvxxhwvw1ps1c1drr08hxqci7jw4jwr8h1d9isb8agydfxmcx";
1212 };
1313
1414 buildInputs = [
pkgs/applications/audio/qmidinet/default.nix+2−2
@@ -1,12 +1,12 @@
11{ stdenv, fetchurl, pkgconfig, qt5, alsaLib, libjack2 }:
22
33stdenv.mkDerivation rec {
4− version = "0.5.5";
4+ version = "0.6.0";
55 pname = "qmidinet";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/qmidinet/${pname}-${version}.tar.gz";
9− sha256 = "0az20hh14g7k6h779dk1b6fshxnfj2664sj6ypgllzriwv430x9y";
9+ sha256 = "07hgk3a8crx262rm1fzggqarz8f1ml910vwgd32mbvlarws5cv0n";
1010 };
1111
1212 hardeningDisable = [ "format" ];
pkgs/applications/audio/qsampler/default.nix+4−4
@@ -1,13 +1,13 @@
11{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, qttools
2−, liblscp, libgig, qtbase }:
2+, liblscp, libgig, qtbase, mkDerivation }:
33
4−stdenv.mkDerivation rec {
4+mkDerivation rec {
55 pname = "qsampler";
6− version = "0.5.6";
6+ version = "0.6.0";
77
88 src = fetchurl {
99 url = "mirror://sourceforge/qsampler/${pname}-${version}.tar.gz";
10− sha256 = "0lx2mzyajmjckwfvgf8p8bahzpj0n0lflyip41jk32nwd2hzjhbs";
10+ sha256 = "1krhjyd67hvnv6sgndwq81lfvnb4qkhc7da1119fn2lzl7hx9wh3";
1111 };
1212
1313 nativeBuildInputs = [ autoconf automake libtool pkgconfig qttools ];
pkgs/applications/audio/qsynth/default.nix+2−2
@@ -4,11 +4,11 @@
44
55mkDerivation rec {
66 pname = "qsynth";
7− version = "0.5.7";
7+ version = "0.6.0";
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/qsynth/${pname}-${version}.tar.gz";
11− sha256 = "18im4w8agj60nkppwbkxqnhpp13z5li3w30kklv4lgs20rvgbvl6";
11+ sha256 = "173v0jqybi5szxxvj4n6wyg9sj54rmm6pxwhynx8wkm7nsbh0aij";
1212 };
1313
1414 nativeBuildInputs = [ autoconf pkgconfig ];
pkgs/applications/audio/qtractor/default.nix+2−2
@@ -5,11 +5,11 @@
55
66stdenv.mkDerivation rec {
77 pname = "qtractor";
8− version = "0.9.9";
8+ version = "0.9.10";
99
1010 src = fetchurl {
1111 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
12− sha256 = "0qlbccdxyfy0f09y6qg1xkg12fm67bf2f2c27c22cg8lzk9ang5j";
12+ sha256 = "00fj762qdna4bm8hshdhkwfa48s01bi5sk4f030rfk77mivl09jk";
1313 };
1414
1515 nativeBuildInputs = [
pkgs/applications/audio/radiotray-ng/default.nix+5−5
@@ -21,7 +21,7 @@
2121# User-agent info
2222, lsb-release
2323# rt2rtng
24−, python2
24+, python3
2525# Testing
2626, gtest
2727# Fixup
@@ -36,17 +36,17 @@ let
3636 gst-libav
3737 ];
3838 # For the rt2rtng utility for converting bookmark file to -ng format
39− pythonInputs = with python2.pkgs; [ python2 lxml ];
39+ pythonInputs = with python3.pkgs; [ python lxml ];
4040in
4141stdenv.mkDerivation rec {
4242 pname = "radiotray-ng";
43− version = "0.2.6";
43+ version = "0.2.7";
4444
4545 src = fetchFromGitHub {
4646 owner = "ebruck";
47− repo = "radiotray-ng";
47+ repo = pname;
4848 rev = "v${version}";
49− sha256 = "0khrfxjas2ldh0kksq7l811srqy16ahjxchvz0hhykx5hykymxlb";
49+ sha256 = "1v2nsz7s0jj0wmqabzk6akcf1353rachm1lfq77hxbq9z5pw8pgb";
5050 };
5151
5252 nativeBuildInputs = [ cmake pkgconfig wrapGAppsHook makeWrapper ];
pkgs/applications/audio/reaper/default.nix+2−2
@@ -6,11 +6,11 @@
66
77stdenv.mkDerivation rec {
88 pname = "reaper";
9− version = "5.983";
9+ version = "5.984";
1010
1111 src = fetchurl {
1212 url = "https://www.reaper.fm/files/${stdenv.lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_x86_64.tar.xz";
13− sha256 = "16xw3gsxgjfdxd1ldm8zxd48qh6lgxacnj9yjryy0brhw51dw1q4";
13+ sha256 = "01yy0s9b9mkl6v66vgdfxl2zhr36abridih1d4ajbrdn60vppykw";
1414 };
1515
1616 nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
pkgs/applications/audio/samplv1/default.nix+2−2
@@ -2,11 +2,11 @@
22
33stdenv.mkDerivation rec {
44 pname = "samplv1";
5− version = "0.9.10";
5+ version = "0.9.11";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/samplv1/${pname}-${version}.tar.gz";
9− sha256 = "04p5jkighmc8rf7fzzy8ch6knqbxv03vhjzdfh9dva2mlzw9rvjj";
9+ sha256 = "17zs8kvvwqv00bm4lxpn09a5hxjlbz7k5mkl3k7jspw7rqn3djf2";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib liblo libsndfile lv2 qt5.qtbase qt5.qttools];
pkgs/applications/audio/setbfree/default.nix+2−2
@@ -4,11 +4,11 @@
44
55stdenv.mkDerivation rec {
66 pname = "setbfree";
7− version = "0.8.9";
7+ version = "0.8.10";
88
99 src = fetchzip {
1010 url = "https://github.com/pantherb/setBfree/archive/v${version}.tar.gz";
11− sha256 = "097bby2da47zlkaqy2jl8j6q0h5pxaq67lz473ygadqs5ic3nhc1";
11+ sha256 = "1hpj8qb5mhkqm4yy8mzzrrq0ljw22y807qly90vjkg61ascyina4";
1212 };
1313
1414 postPatch = ''
pkgs/applications/audio/snd/default.nix+2−2
@@ -4,11 +4,11 @@
44}:
55
66stdenv.mkDerivation rec {
7− name = "snd-19.7";
7+ name = "snd-19.8";
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/snd/${name}.tar.gz";
11− sha256 = "1pr3l9iadvwinmxfl9a2lsm67yi7w3rhxglidpd41m2ni8jf2rlm";
11+ sha256 = "0cdf3940cjvf5kls5l1zjll9wgg152xzlxs0jmpsq1kml12qa67b";
1212 };
1313
1414 nativeBuildInputs = [ pkgconfig ];
pkgs/applications/audio/sonic-pi/default.nix+6−2
@@ -14,6 +14,7 @@
1414, supercollider
1515, qscintilla
1616, qwt
17+, osmid
1718}:
1819
1920let
@@ -59,6 +60,10 @@ mkDerivation rec {
5960 buildPhase = ''
6061 export SONIC_PI_HOME=$TMPDIR
6162 export AUBIO_LIB=${aubio}/lib/libaubio.so
63+ export OSMID_DIR=app/server/native/osmid
64+
65+ mkdir -p $OSMID_DIR
66+ cp ${osmid}/bin/{m2o,o2m} $OSMID_DIR
6267
6368 pushd app/server/ruby/bin
6469 ./compile-extensions.rb
@@ -95,11 +100,10 @@ mkDerivation rec {
95100 '';
96101
97102 meta = {
98− homepage = http://sonic-pi.net/;
103+ homepage = "https://sonic-pi.net/";
99104 description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
100105 license = lib.licenses.mit;
101106 maintainers = with lib.maintainers; [ Phlogistique kamilchm ];
102107 platforms = lib.platforms.linux;
103− broken = true;
104108 };
105109}
pkgs/applications/audio/spotify-tui/default.nix+3−3
@@ -2,16 +2,16 @@
22
33rustPlatform.buildRustPackage rec {
44 pname = "spotify-tui";
5− version = "0.6.2";
5+ version = "0.9.0";
66
77 src = fetchFromGitHub {
88 owner = "Rigellute";
99 repo = "spotify-tui";
1010 rev = "v${version}";
11− sha256 = "0ksrdavnvjpph7h0lcc2hvxhygfbn0dmsabq2ilslvpa80ph2c53";
11+ sha256 = "1bbh9df4gfgb5pqavgvmy8fqnr2j5rbqbanv0y31j4i0kv2wrh6a";
1212 };
1313
14− cargoSha256 = "029g80mcqvmckszpbzm4hxs5w63n41ah4rc1b93i9c1nzvncd811";
14+ cargoSha256 = "1rb4dl9zn3xx2yrapx5cfsli93ggmdq8w9fqi8cy8giyja1mnqfl";
1515
1616 nativeBuildInputs = [ pkgconfig ];
1717 buildInputs = [ openssl ]
pkgs/applications/audio/spotify/default.nix+6−4
@@ -1,7 +1,7 @@
11{ fetchurl, stdenv, squashfsTools, xorg, alsaLib, makeWrapper, openssl, freetype
22, glib, pango, cairo, atk, gdk-pixbuf, gtk2, cups, nspr, nss, libpng, libnotify
33, libgcrypt, systemd, fontconfig, dbus, expat, ffmpeg_3, curl, zlib, gnome3
4−, at-spi2-atk
4+, at-spi2-atk, at-spi2-core, libpulseaudio
55}:
66
77let
@@ -10,20 +10,21 @@ let
1010 # If an update breaks things, one of those might have valuable info:
1111 # https://aur.archlinux.org/packages/spotify/
1212 # https://community.spotify.com/t5/Desktop-Linux
13− version = "1.0.96.181.gf6bc1b6b-12";
13+ version = "1.1.10.546.ge08ef575-19";
1414 # To get the latest stable revision:
1515 # curl -H 'X-Ubuntu-Series: 16' 'https://api.snapcraft.io/api/v1/snaps/details/spotify?channel=stable' | jq '.download_url,.version,.last_updated'
1616 # To get general information:
1717 # curl -H 'Snap-Device-Series: 16' 'https://api.snapcraft.io/v2/snaps/info/spotify' | jq '.'
1818 # More examples of api usage:
1919 # https://github.com/canonical-websites/snapcraft.io/blob/master/webapp/publisher/snaps/views.py
20− rev = "30";
20+ rev = "36";
2121
2222
2323 deps = [
2424 alsaLib
2525 atk
2626 at-spi2-atk
27+ at-spi2-core
2728 cairo
2829 cups
2930 curl
@@ -38,6 +39,7 @@ let
3839 libgcrypt
3940 libnotify
4041 libpng
42+ libpulseaudio
4143 nss
4244 pango
4345 stdenv.cc.cc
@@ -73,7 +75,7 @@ stdenv.mkDerivation {
7375 # https://community.spotify.com/t5/Desktop-Linux/Redistribute-Spotify-on-Linux-Distributions/td-p/1695334
7476 src = fetchurl {
7577 url = "https://api.snapcraft.io/api/v1/snaps/download/pOBIoZ2LrCB3rDohMxoYGnbN14EHOgD7_${rev}.snap";
76− sha512 = "859730fbc80067f0828f7e13eee9a21b13b749f897a50e17c2da4ee672785cfd79e1af6336e609529d105e040dc40f61b6189524783ac93d49f991c4ea8b3c56";
78+ sha512 = "c49f1a86a9b737e64a475bbe62754a36f607669e908eb725a2395f0a0a6b95968e0c8ce27ab2c8b6c92fe8cbacb1ef58de11c79b92dc0f58c2c6d3a140706a1f";
7779 };
7880
7981 buildInputs = [ squashfsTools makeWrapper ];
pkgs/applications/audio/stone-phaser/default.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, fetchFromGitHub, xorg, cairo, lv2, libjack2, mesa, pkgconfig }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "stone-phaser";
5+ version = "0.1.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "jpcima";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "180b32z8h9zi8p0q55r1dzxfckamnngm52zjypjjvvy7qdj3mfcd";
12+ fetchSubmodules = true;
13+ };
14+
15+ nativeBuildInputs = [ pkgconfig ];
16+ buildInputs = [
17+ xorg.libX11 cairo lv2 libjack2 mesa
18+ ];
19+
20+ postPatch = ''
21+ patch -d dpf -p 1 -i "$src/resources/patch/DPF-bypass.patch"
22+ patchShebangs ./dpf/utils/generate-ttl.sh
23+ '';
24+
25+ installFlags = [ "PREFIX=$(out)" ];
26+
27+ meta = with stdenv.lib; {
28+ homepage = https://github.com/jpcima/stone-phaser;
29+ description = "A classic analog phaser effect, made with DPF and Faust";
30+ maintainers = [ maintainers.magnetophon ];
31+ platforms = platforms.linux;
32+ license = licenses.boost;
33+ };
34+}
pkgs/applications/audio/strawberry/default.nix+6−4
@@ -35,13 +35,13 @@
3535
3636mkDerivation rec {
3737 pname = "strawberry";
38− version = "0.6.3";
38+ version = "0.6.5";
3939
4040 src = fetchFromGitHub {
4141 owner = "jonaski";
4242 repo = pname;
4343 rev = version;
44− sha256 = "01j5jzzicy895kg9sjy46lbcm5kvf3642d3q5wwb2fyvyq1fbcv0";
44+ sha256 = "1kqx0q99n1p5pm6skvqjihz11byhxdid1qw6gqp67dh2na62z1lm";
4545 };
4646
4747 buildInputs = [
@@ -89,9 +89,11 @@ mkDerivation rec {
8989
9090 meta = with lib; {
9191 description = "Music player and music collection organizer";
92− license = licenses.gpl2;
92+ homepage = "https://www.strawberrymusicplayer.org/";
93+ changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
94+ license = licenses.gpl3;
9395 maintainers = with maintainers; [ peterhoeg ];
94− # upstream says darwin should work but they lack maintainers as of 0.6.3
96+ # upstream says darwin should work but they lack maintainers as of 0.6.5
9597 platforms = platforms.linux;
9698 };
9799}
pkgs/applications/audio/synthv1/default.nix+5−5
@@ -1,15 +1,15 @@
1−{ stdenv, fetchurl, pkgconfig, qt5, libjack2, alsaLib, liblo, lv2 }:
1+{ mkDerivation, stdenv, fetchurl, pkgconfig, qtbase, qttools, libjack2, alsaLib, liblo, lv2 }:
22
3−stdenv.mkDerivation rec {
3+mkDerivation rec {
44 pname = "synthv1";
5− version = "0.9.10";
5+ version = "0.9.11";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/synthv1/${pname}-${version}.tar.gz";
9− sha256 = "1ssdm7aiaz908ydqwdx9khxnnd0yfacjgvbxg5p9s9xhkbqqc2f2";
9+ sha256 = "116k2vca9dygvsd684wvxm61p0l1xrrgdph4qrrprlsr6vj0llgm";
1010 };
1111
12− buildInputs = [ qt5.qtbase qt5.qttools libjack2 alsaLib liblo lv2 ];
12+ buildInputs = [ qtbase qttools libjack2 alsaLib liblo lv2 ];
1313
1414 nativeBuildInputs = [ pkgconfig ];
1515
pkgs/applications/audio/tomahawk/default.nixdeleted−56
@@ -1,56 +0,0 @@
1−{ stdenv, fetchurl, cmake, pkgconfig, attica, boost, gnutls, libechonest
2−, liblastfm, lucenepp, phonon, phonon-backend-vlc, qca2, qjson, qt4
3−, qtkeychain, quazip, sparsehash, taglib, websocketpp, makeWrapper
4−
5−, enableXMPP ? true, libjreen ? null
6−, enableKDE ? false, kdelibs4 ? null
7−, enableTelepathy ? false, telepathy-qt ? null
8−}:
9−
10−assert enableXMPP -> libjreen != null;
11−assert enableKDE -> kdelibs4 != null;
12−assert enableTelepathy -> telepathy-qt != null;
13−
14−stdenv.mkDerivation rec {
15− pname = "tomahawk";
16− version = "0.8.4";
17−
18− src = fetchurl {
19− url = "http://download.tomahawk-player.org/${pname}-${version}.tar.bz2";
20− sha256 = "0j84h36wkjfjbsd7ybyji7rcc9wpjdbl0f1xdcc1g7h0nz34pc0g";
21− };
22−
23− cmakeFlags = [
24− "-DLUCENEPP_INCLUDE_DIR=${lucenepp}/include"
25− "-DLUCENEPP_LIBRARY_DIR=${lucenepp}/lib"
26− ];
27−
28− nativeBuildInputs = [ pkgconfig ];
29− buildInputs = [
30− cmake attica boost gnutls libechonest liblastfm lucenepp phonon
31− qca2 qjson qt4 qtkeychain quazip sparsehash taglib websocketpp
32− makeWrapper
33− ] ++ stdenv.lib.optional enableXMPP libjreen
34− ++ stdenv.lib.optional enableKDE kdelibs4
35− ++ stdenv.lib.optional enableTelepathy telepathy-qt;
36−
37− postInstall = let
38− pluginPath = stdenv.lib.concatStringsSep ":" [
39− "${phonon-backend-vlc}/lib/kde4/plugins"
40− ];
41− in ''
42− for i in "$out"/bin/*; do
43− wrapProgram "$i" --prefix QT_PLUGIN_PATH : "${pluginPath}"
44− done
45− '';
46−
47− enableParallelBuilding = true;
48−
49− meta = with stdenv.lib; {
50− description = "A multi-source music player (unmaintained)";
51− homepage = http://tomahawk-player.org/;
52− license = licenses.gpl3Plus;
53− platforms = platforms.all;
54− broken = true; # 2018-06-25
55− };
56−}
pkgs/applications/audio/vcv-rack/default.nix+42−23
@@ -3,48 +3,67 @@
33, libzip, rtaudio, rtmidi, speex, libsamplerate }:
44
55let
6− glfw-git = glfw.overrideAttrs (oldAttrs: rec {
7− name = "glfw-git-${version}";
8− version = "2019-06-30";
9− src = fetchFromGitHub {
10− owner = "AndrewBelt";
11− repo = "glfw";
12− rev = "d9ab59efc781c392128a449361a381fcc93cf6f3";
13− sha256 = "1ykkq6qq8y6j5hlfj2zp1p87kr33vwhywziprz20v5avx1q7rjm8";
14− };
15− # We patch the source to export a function that was added to the glfw fork
16− # for Rack so it is present when we build glfw as a shared library.
17− # See https://github.com/AndrewBelt/glfw/pull/1 for discussion of this issue
18− # with upstream.
19− patches = [ ./glfw.patch ];
20− buildInputs = oldAttrs.buildInputs ++ [ libXext libXi ];
21− });
6+ # The package repo vendors some of the package dependencies as submodules.
7+ # Others are downloaded with `make deps`. Due to previous issues with the
8+ # `glfw` submodule (see above) and because we can not access the network when
9+ # building in a sandbox, we fetch the dependency source manually.
2210 pfft-source = fetchFromBitbucket {
2311 owner = "jpommier";
2412 repo = "pffft";
2513 rev = "29e4f76ac53bef048938754f32231d7836401f79";
2614 sha256 = "084csgqa6f1a270bhybjayrh3mpyi2jimc87qkdgsqcp8ycsx1l1";
2715 };
16+ nanovg-source = fetchFromGitHub {
17+ owner = "memononen";
18+ repo = "nanovg";
19+ rev = "1f9c8864fc556a1be4d4bf1d6bfe20cde25734b4";
20+ sha256 = "08r15zrr6p1kxigxzxrg5rgya7wwbdx7d078r362qbkmws83wk27";
21+ };
22+ nanosvg-source = fetchFromGitHub {
23+ owner = "memononen";
24+ repo = "nanosvg";
25+ rev = "25241c5a8f8451d41ab1b02ab2d865b01600d949";
26+ sha256 = "114qgfmazsdl53rm4pgqif3gv8msdmfwi91lyc2jfadgzfd83xkg";
27+ };
28+ osdialog-source = fetchFromGitHub {
29+ owner = "AndrewBelt";
30+ repo = "osdialog";
31+ rev = "e5db5de6444f4b2c4e1390c67b3efd718080c3da";
32+ sha256 = "0iqxn1md053nl19hbjk8rqsdcmjwa5l5z0ci4fara77q43rc323i";
33+ };
34+ oui-blendish-source = fetchFromGitHub {
35+ owner = "AndrewBelt";
36+ repo = "oui-blendish";
37+ rev = "79ec59e6bc7201017fc13a20c6e33380adca1660";
38+ sha256 = "17kd0lh2x3x12bxkyhq6z8sg6vxln8m9qirf0basvcsmylr6rb64";
39+ };
2840in
2941with stdenv.lib; stdenv.mkDerivation rec {
3042 pname = "VCV-Rack";
31− version = "1.1.5";
43+ version = "1.1.6";
3244
3345 src = fetchFromGitHub {
3446 owner = "VCVRack";
3547 repo = "Rack";
3648 rev = "v${version}";
37− sha256 = "172v66v2vb6l9dpsq6fb6xn035igwhpjci8w3kz2na3rvmz1bc5w";
38− fetchSubmodules = true;
49+ sha256 = "0ji64prr74qzxf5bx1sw022kbslx9nzll16lmk5in78hbl137b3i";
3950 };
4051
41− patches = [ ./rack-minimize-vendoring.patch ];
52+ patches = [
53+ ./rack-minimize-vendoring.patch
54+ ];
4255
4356 prePatch = ''
44− cp -r ${pfft-source} dep/jpommier-pffft-source
45−
57+ # As we can't use `make dep` to set up the dependencies (as explained
58+ # above), we do it here manually
4659 mkdir -p dep/include
4760
61+ cp -r ${pfft-source} dep/jpommier-pffft-source
62+ cp -r ${nanovg-source}/* dep/nanovg
63+ cp -r ${nanosvg-source}/* dep/nanosvg
64+ cp -r ${osdialog-source}/* dep/osdialog
65+ cp -r ${oui-blendish-source}/* dep/oui-blendish
66+
4867 cp dep/jpommier-pffft-source/*.h dep/include
4968 cp dep/nanosvg/**/*.h dep/include
5069 cp dep/nanovg/src/*.h dep/include
@@ -58,7 +77,7 @@ with stdenv.lib; stdenv.mkDerivation rec {
5877 enableParallelBuilding = true;
5978
6079 nativeBuildInputs = [ makeWrapper pkgconfig ];
61− buildInputs = [ glfw-git alsaLib curl glew gtk2-x11 jansson libjack2 libzip rtaudio rtmidi speex libsamplerate ];
80+ buildInputs = [ alsaLib curl glew glfw gtk2-x11 jansson libjack2 libsamplerate libzip rtaudio rtmidi speex ];
6281
6382 buildFlags = "Rack";
6483
pkgs/applications/audio/vcv-rack/glfw.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff --git a/src/init.c b/src/init.c
2−index af4a579e..317e25b8 100644
3−--- a/src/init.c
4−+++ b/src/init.c
5−@@ -339,7 +339,7 @@ GLFWAPI GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun cbfun)
6−
7− char glfwOpenedFilename[1024];
8−
9−-const char *glfwGetOpenedFilename()
10−+GLFWAPI const char *glfwGetOpenedFilename()
11− {
12− if (glfwOpenedFilename[0])
13− {
pkgs/applications/audio/waon/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchFromGitHub, fftw, gtk2, libao, libsamplerate
2+, libsndfile, ncurses, pkgconfig
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "waon";
7+ version = "0.11";
8+
9+ src = fetchFromGitHub {
10+ owner = "kichiki";
11+ repo = pname;
12+ rev = "v${version}";
13+ sha256 = "1xmq8d2rj58xbp4rnyav95y1vnz3r9s9db7xxfa2rd0ilq0ps4y7";
14+ };
15+
16+ nativeBuildInputs = [ pkgconfig ];
17+ buildInputs = [ fftw gtk2 libao libsamplerate libsndfile ncurses ];
18+
19+ installPhase = ''
20+ install -Dt $out/bin waon pv gwaon
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "A Wave-to-Notes transcriber";
25+ homepage = https://kichiki.github.io/WaoN/;
26+ license = licenses.gpl2;
27+ maintainers = [ maintainers.puckipedia ];
28+ platforms = platforms.all;
29+ };
30+}
pkgs/applications/audio/x42-plugins/default.nix+2−2
@@ -3,12 +3,12 @@
33, libGLU, lv2, gtk2, cairo, pango, fftwFloat, zita-convolver }:
44
55stdenv.mkDerivation rec {
6− version = "20190820";
6+ version = "20191013";
77 pname = "x42-plugins";
88
99 src = fetchurl {
1010 url = "https://gareus.org/misc/x42-plugins/${pname}-${version}.tar.xz";
11− sha256 = "0dqsa5yxm3nx50j9k28iillj4sx2mjndzyspymxx0ghir1qmi4vh";
11+ sha256 = "18kn1bmc0s6dp834kc51ibifzzn3bxwya4p8s8yq9f4mpmkghi24";
1212 };
1313
1414 nativeBuildInputs = [ pkgconfig ];
pkgs/applications/audio/yoshimi/default.nix+2−2
@@ -6,11 +6,11 @@ assert stdenv ? glibc;
66
77stdenv.mkDerivation rec {
88 pname = "yoshimi";
9− version = "1.6.0.1";
9+ version = "1.6.0.2";
1010
1111 src = fetchurl {
1212 url = "mirror://sourceforge/yoshimi/${pname}-${version}.tar.bz2";
13− sha256 = "140f2k4akj39pny8c7i794q125415gyvmy4rday0il5ncp3glik4";
13+ sha256 = "0q2cw168r53r50zghkdqcxba2cybn44axbdkwacvkm7ag2z0j2l8";
1414 };
1515
1616 buildInputs = [
pkgs/applications/blockchains/bitcoin-abc.nix+2−2
This diff is too big to show here.
pkgs/applications/blockchains/clightning.nix+6−5
This diff is too big to show here.
pkgs/applications/blockchains/go-ethereum.nix+2−5
This diff is too big to show here.
pkgs/applications/blockchains/jormungandr/default.nixdeleted−56
This diff is too big to show here.
pkgs/applications/blockchains/ledger-live-desktop/default.nix+2−2
This diff is too big to show here.
pkgs/applications/blockchains/lnd.nix+3−3
This diff is too big to show here.
pkgs/applications/blockchains/monero-gui/default.nix+8−8
This diff is too big to show here.
pkgs/applications/blockchains/monero/default.nix+16−18
This diff is too big to show here.
pkgs/applications/blockchains/wasabiwallet/default.nix+2−2
This diff is too big to show here.
pkgs/applications/blockchains/wownero.nix+15−14
This diff is too big to show here.
pkgs/applications/display-managers/slim/default.nixdeleted−55
This diff is too big to show here.
pkgs/applications/display-managers/slim/no-logfile.patchdeleted−80
This diff is too big to show here.
pkgs/applications/display-managers/slim/run-once.patchdeleted−12
This diff is too big to show here.
pkgs/applications/display-managers/slim/runtime-paths.patchdeleted−70
This diff is too big to show here.
pkgs/applications/display-managers/slim/sort-sessions.patchdeleted−40
This diff is too big to show here.
pkgs/applications/display-managers/slim/themes.nixdeleted−183
This diff is too big to show here.
pkgs/applications/editors/android-studio/common.nix+11−1
This diff is too big to show here.
pkgs/applications/editors/android-studio/default.nix+11−7
This diff is too big to show here.
pkgs/applications/editors/bvi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/color-theme-solarized/default.nix+5−9
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/manual-packages.nix+1−18
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-packages.nix+46−71
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/org-generated.nix+6−6
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/recipes-archive-melpa.json+2237−2116
This diff is too big to show here.
pkgs/applications/editors/emacs/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/hexdino/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/editors/jetbrains/default.nix+22−22
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/default.nix+1
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-auto-pairs.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-buffers.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-fzf.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-plumb.nixnew file+31
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-powerline.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/kakoune/plugins/kak-vertical-selection.nix+1−1
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdev-php.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdev-python.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdevelop.nix+3−2
This diff is too big to show here.
pkgs/applications/editors/mle/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/editors/music/tuxguitar/default.nix+9−8
This diff is too big to show here.
pkgs/applications/editors/neovim/neovim-remote.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/netbeans/default.nix+6−6
This diff is too big to show here.
pkgs/applications/editors/quilter/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/retext/default.nix+6−6
This diff is too big to show here.
pkgs/applications/editors/texmacs/default.nix+31−4
This diff is too big to show here.
pkgs/applications/editors/texmaker/default.nix+8−7
This diff is too big to show here.
pkgs/applications/editors/texstudio/default.nix+6−5
This diff is too big to show here.
pkgs/applications/editors/tiled/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/vim/common.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/vim/configurable.nix+6−5
This diff is too big to show here.
pkgs/applications/editors/vim/macvim.nix+5−6
This diff is too big to show here.
pkgs/applications/editors/vim/macvim.patch+10−38
This diff is too big to show here.
pkgs/applications/editors/vscode/vscode.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/vscode/vscodium.nix+4−4
This diff is too big to show here.
pkgs/applications/gis/openorienteering-mapper/default.nix+3−6
This diff is too big to show here.
pkgs/applications/gis/qgis/unwrapped.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/ImageMagick/7.0.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/ImageMagick/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/antimony/default.nix+7−6
This diff is too big to show here.
pkgs/applications/graphics/avocode/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/darktable/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/displaycal/default.nix+15−4
This diff is too big to show here.
pkgs/applications/graphics/dosage/default.nix+5−5
This diff is too big to show here.
pkgs/applications/graphics/drawio/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/drawpile/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/fbida/default.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/feh/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/freecad/default.nix+7−5
This diff is too big to show here.
pkgs/applications/graphics/gimp/default.nix+110−23
This diff is too big to show here.
pkgs/applications/graphics/gimp/plugins/default.nix+14−9
This diff is too big to show here.
pkgs/applications/graphics/gimp/wrapper.nix+2−1
This diff is too big to show here.
pkgs/applications/graphics/inkscape/default.nix+12−6
This diff is too big to show here.
pkgs/applications/graphics/ipe/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/kodelife/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/meshlab/default.nix+84−19
This diff is too big to show here.
pkgs/applications/graphics/meshlab/fix-20180627-beta.patchdeleted−25
This diff is too big to show here.
pkgs/applications/graphics/paraview/default.nix+4−3
This diff is too big to show here.
pkgs/applications/graphics/potrace/default.nix+5−2
This diff is too big to show here.
pkgs/applications/graphics/rawtherapee/default.nix+5−5
This diff is too big to show here.
pkgs/applications/graphics/renderdoc/default.nix+21−15
This diff is too big to show here.
pkgs/applications/graphics/rx/default.nixnew file+58
This diff is too big to show here.
pkgs/applications/graphics/sane/backends/default.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/sane/backends/git.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/sane/frontends.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/tev/default.nixnew file+53
This diff is too big to show here.
pkgs/applications/graphics/write_stylus/default.nix+9−11
This diff is too big to show here.
pkgs/applications/graphics/yacreader/default.nix+12−9
This diff is too big to show here.
pkgs/applications/graphics/yed/default.nix+3−3
This diff is too big to show here.
pkgs/applications/kde/print-manager.nix+6
This diff is too big to show here.
pkgs/applications/misc/1password/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/appeditor/default.nix+5
This diff is too big to show here.
pkgs/applications/misc/appeditor/fix-build-vala-0.46.patchnew file+22
This diff is too big to show here.
pkgs/applications/misc/birdtray/default.nixnew file+40
This diff is too big to show here.
pkgs/applications/misc/bleachbit/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/blugon/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/misc/buku/default.nix+3−1
This diff is too big to show here.
pkgs/applications/misc/calcurse/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/calibre/default.nix+23−15
This diff is too big to show here.
pkgs/applications/misc/cdrtools/fix-paths.patchdeleted−32
This diff is too big to show here.
pkgs/applications/misc/cheat/default.nix+8−20
This diff is too big to show here.
pkgs/applications/misc/cherrytree/default.nix+7−21
This diff is too big to show here.
pkgs/applications/misc/cmatrix/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/cointop/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/curaengine.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/default.nix+20−16
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/libarcus.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/libsavitar.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/uranium-qt512-support.patchdeleted−16
This diff is too big to show here.
pkgs/applications/misc/cura/lulzbot/uranium.nix+3−6
This diff is too big to show here.
pkgs/applications/misc/cura/plugins.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/dbeaver/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/eaglemode/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/electrum/dash.nix+1
This diff is too big to show here.
pkgs/applications/misc/elogind/default.nixnew file+82
This diff is too big to show here.
pkgs/applications/misc/epr/default.nixnew file+21
This diff is too big to show here.
pkgs/applications/misc/exercism/default.nix+7−7
This diff is too big to show here.
pkgs/applications/misc/exercism/deps.nixdeleted−201
This diff is too big to show here.
pkgs/applications/misc/fetchmail/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/firestarter/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/gallery-dl/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/geoipupdate/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/misc/gollum/Gemfile.lock+6−6
This diff is too big to show here.
pkgs/applications/misc/gollum/gemset.nix+10−10
This diff is too big to show here.
pkgs/applications/misc/gpscorrelate/default.nix+4−7
This diff is too big to show here.
pkgs/applications/misc/gpscorrelate/fix-localedir.diffdeleted−27
This diff is too big to show here.
pkgs/applications/misc/gpxsee/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/grip/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/guake/default.nix+40−13
This diff is too big to show here.
pkgs/applications/misc/hubstaff/revision.json+3−3
This diff is too big to show here.
pkgs/applications/misc/jekyll/basic/Gemfile.lock+18−20
This diff is too big to show here.
pkgs/applications/misc/jekyll/basic/gemset.nix+27−37
This diff is too big to show here.
pkgs/applications/misc/jekyll/full/Gemfile.lock+24−26
This diff is too big to show here.
pkgs/applications/misc/jekyll/full/gemset.nix+39−49
This diff is too big to show here.
pkgs/applications/misc/jgmenu/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/josm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/kanboard/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/keepass-plugins/otpkeyprov/default.nixnew file+32
This diff is too big to show here.
pkgs/applications/misc/keepassx/community.nix+6−2
This diff is too big to show here.
pkgs/applications/misc/khal/default.nix+1
This diff is too big to show here.
pkgs/applications/misc/khard/default.nix+7−31
This diff is too big to show here.
pkgs/applications/misc/kitty/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/lsd2dsl/default.nixnew file+36
This diff is too big to show here.
pkgs/applications/misc/lutris/chrootenv.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/masterpdfeditor/default.nix+4−7
This diff is too big to show here.
pkgs/applications/misc/mu-repo/default.nixnew file+26
This diff is too big to show here.
pkgs/applications/misc/multibootusb/default.nix+50−28
This diff is too big to show here.
pkgs/applications/misc/mupdf/default.nix+1
This diff is too big to show here.
pkgs/applications/misc/netsurf/buildsystem/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/netsurf/libnsgif/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/notable/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/octoprint/default.nix+5−4
This diff is too big to show here.
pkgs/applications/misc/octoprint/plugins.nix+7−7
This diff is too big to show here.
pkgs/applications/misc/pdfarranger/default.nixnew file+44
This diff is too big to show here.
pkgs/applications/misc/pdfsam-basic/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/plover/default.nix+10−4
This diff is too big to show here.
pkgs/development/python-modules/cerberus11/default.nix → pkgs/applications/misc/pyditz/cerberus.nixrenamed
The content is the same.
pkgs/applications/misc/pyditz/default.nix+9−5
This diff is too big to show here.
pkgs/applications/misc/pytrainer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/qdirstat/default.nix+3−4
This diff is too big to show here.
pkgs/applications/misc/qmapshack/default.nix+3−6
This diff is too big to show here.
pkgs/applications/misc/qpdfview/default.nix+5−1
This diff is too big to show here.
pkgs/applications/misc/qtbitcointrader/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/qtpass/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/redshift/default.nix+101−75
This diff is too big to show here.
pkgs/applications/misc/rxvt_unicode-plugins/urxvt-bidi/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/misc/sidequest/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/simplenote/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/syncthingtray/default.nix+3−2
This diff is too big to show here.
pkgs/applications/misc/twmn/default.nix+5−5
This diff is too big to show here.
pkgs/applications/misc/variety/default.nixnew file+73
This diff is too big to show here.
pkgs/applications/misc/veracrypt/default.nix+21−6
This diff is too big to show here.
pkgs/applications/misc/verbiste/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/wego/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/wofi/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/misc/wtf/default.nix+5−7
This diff is too big to show here.
pkgs/applications/misc/xmrig/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xmrig/proxy.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/apache-directory-studio/default.nix+7−6
This diff is too big to show here.
pkgs/applications/networking/browsers/brave/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/common.nix+2−11
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/default.nix+8−8
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/plugins.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/upstream-info.nix+9−9
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix+403−373
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix+403−373
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/release_sources.nix+373−373
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/packages.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/browsers/links2/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/luakit/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/browsers/midori/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix+5−5
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/browsers/opera/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/palemoon/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix+15−13
This diff is too big to show here.
pkgs/applications/networking/browsers/vivaldi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/calls/default.nixnew file+83
This diff is too big to show here.
pkgs/applications/networking/cawbird/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/atlantis/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/networking/cluster/cni/plugins.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/fluxctl/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/cluster/helm/default.nix+8−31
This diff is too big to show here.
pkgs/applications/networking/cluster/helm/deps.nixdeleted−1182
This diff is too big to show here.
pkgs/applications/networking/cluster/kops/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/kubernetes/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/kubeseal/default.nixnew file+24
This diff is too big to show here.
pkgs/applications/networking/cluster/nomad/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-landscape/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-providers/data.nix+235−124
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-providers/default.nix+2−3
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-providers/providers.txt+4−11
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform-providers/update-all+3−1
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform/default.nix+61−46
This diff is too big to show here.
pkgs/applications/networking/datovka/default.nixnew file+32
This diff is too big to show here.
pkgs/applications/networking/davmail/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/dropbox/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/feedreaders/castget/default.nix+19−11
This diff is too big to show here.
pkgs/applications/networking/feedreaders/rss2email/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/flexget/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/ftp/filezilla/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/gns3/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/gns3/gui.nix+14−5
This diff is too big to show here.
pkgs/applications/networking/gns3/server.nix+11−2
This diff is too big to show here.
pkgs/applications/networking/ids/suricata/bpf_stubs_workaround.patchnew file+19
This diff is too big to show here.
pkgs/applications/networking/ids/suricata/default.nix+40−9
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/bitlbee/default.nix+9−1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/dino/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/discord/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/mattermost-desktop/default.nix+14−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-opensteamworks/default.nix+15−7
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-matrix/default.nix+14−14
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix+3−6
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/profanity/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/riot/riot-desktop-package.json+1−1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/riot/riot-desktop.nix+3−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/riot/riot-web.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/signal-cli/default.nix+13−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/signal-desktop/default.nix+5−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix+6−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/slack/default.nix+15−9
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telepathy/mission-control/default.nix+29−7
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/vk-messenger/default.nix+5−6
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/wavebox/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/zoom-us/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/zulip/default.nixnew file+40
This diff is too big to show here.
pkgs/applications/networking/ipfs-cluster/default.nix+5−21
This diff is too big to show here.
pkgs/applications/networking/irc/glowing-bear/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/irc/weechat/scripts/default.nix+3−1
This diff is too big to show here.
pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nixnew file+58
This diff is too big to show here.
pkgs/applications/networking/maestral/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/aerc/default.nix+4
This diff is too big to show here.
pkgs/applications/networking/mailreaders/aerc/runtime-sharedir.patchnew file+43
This diff is too big to show here.
pkgs/applications/networking/mailreaders/afew/default.nix+8−8
This diff is too big to show here.
pkgs/applications/networking/mailreaders/imapfilter.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/mlarchive2maildir/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/neomutt/default.nix+6−5
This diff is too big to show here.
pkgs/applications/networking/mailreaders/notmuch/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix+5−1
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird-bin/release_sources.nix+245−245
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird/default.nix+5−7
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig.patch+12
This diff is too big to show here.
pkgs/applications/networking/mailreaders/trojita/default.nix+7
This diff is too big to show here.
pkgs/applications/networking/mullvad-vpn/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/mumble/default.nix+2−1
This diff is too big to show here.
pkgs/applications/networking/newsreaders/quiterss/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/nextcloud-client/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/p2p/ktorrent/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/p2p/qbittorrent/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/p2p/soulseekqt/default.nix+23−35
This diff is too big to show here.
pkgs/applications/networking/p2p/tixati/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/p2p/torrential/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/p2p/transgui/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/protocol/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/remote/anydesk/default.nix+7−6
This diff is too big to show here.
pkgs/applications/networking/remote/putty/default.nix+4−7
This diff is too big to show here.
pkgs/applications/networking/remote/teamviewer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/sync/onedrive/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/sync/rclone/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/syncthing/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/transporter/default.nixdeleted−72
This diff is too big to show here.
pkgs/applications/networking/trebleshot/default.nixnew file+29
This diff is too big to show here.
pkgs/applications/office/atlassian-cli/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/fava/default.nix+1
This diff is too big to show here.
pkgs/applications/office/flexibee/default.nix+12−3
This diff is too big to show here.
pkgs/applications/office/gnumeric/default.nix+4−13
This diff is too big to show here.
pkgs/applications/office/kmymoney/default.nix+6−8
This diff is too big to show here.
pkgs/applications/office/libreoffice/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/libreoffice/still.nix+2−2
This diff is too big to show here.
pkgs/applications/office/mendeley/default.nix+5−3
This diff is too big to show here.
pkgs/applications/office/paperwork/default.nix+1−1
This diff is too big to show here.
pkgs/applications/office/pympress/default.nixnew file+48
This diff is too big to show here.
pkgs/applications/office/qownnotes/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/skrooge/default.nix+9−2
This diff is too big to show here.
pkgs/applications/office/softmaker/generic.nix+26−4
This diff is too big to show here.
pkgs/applications/office/softmaker/softmaker_office.nix+2−2
This diff is too big to show here.
pkgs/applications/office/todoman/default.nix+2−2
This diff is too big to show here.
pkgs/applications/radio/chirp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/radio/sdrangel/default.nix+1−1
This diff is too big to show here.
pkgs/applications/radio/uhd/default.nix+7−2
This diff is too big to show here.
pkgs/applications/radio/urh/default.nix+9−3
This diff is too big to show here.
pkgs/applications/radio/welle-io/default.nix+9−7
This diff is too big to show here.
pkgs/applications/science/biology/EZminc/default.nix+7−7
This diff is too big to show here.
pkgs/applications/science/biology/dcm2niix/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/deeptools/default.nixnew file+42
This diff is too big to show here.
pkgs/applications/science/biology/niftyseg/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/biology/picard-tools/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/star/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/biology/truvari/default.nixnew file+43
This diff is too big to show here.
pkgs/applications/science/chemistry/jmol/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/chemistry/octopus/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/electronics/eagle/eagle.nix+2−2
This diff is too big to show here.
pkgs/applications/science/electronics/verilator/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/aspino/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/logic/coq/default.nix+2−1
This diff is too big to show here.
pkgs/applications/science/logic/eprover/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/hol_light/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/logic/ott/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/logic/why3/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/machine-learning/streamlit/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/science/math/R/default.nix+8−6
This diff is too big to show here.
pkgs/applications/science/math/ginac/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/glsurf/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/mathematica/default.nix+4−1
This diff is too big to show here.
pkgs/applications/science/math/nauty/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/qalculate-gtk/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/math/sage/patches/ignore-cmp-deprecation.patchnew file+24
This diff is too big to show here.
pkgs/applications/science/math/sage/patches/ignore-werkzeug-immutable-dict-deprecation.patchnew file+12
This diff is too big to show here.
pkgs/applications/science/math/sage/patches/sagenb-cmp-deprecation.patchnew file+13
This diff is too big to show here.
pkgs/applications/science/math/sage/sage-env.nix+19−6
This diff is too big to show here.
pkgs/applications/science/math/sage/sage-src.nix+14
This diff is too big to show here.
pkgs/applications/science/math/sage/sagenb.nix+5
This diff is too big to show here.
pkgs/applications/science/math/yacas/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/medicine/aliza/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/medicine/dcmtk/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/science/misc/golly/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/misc/snakemake/default.nix+7−9
This diff is too big to show here.
pkgs/applications/science/robotics/betaflight-configurator/default.nix+12−13
This diff is too big to show here.
pkgs/applications/science/robotics/qgroundcontrol/default.nix+12−13
This diff is too big to show here.
pkgs/applications/version-management/bcompare/default.nix+2−3
This diff is too big to show here.
pkgs/applications/version-management/dvc/default.nixnew file+65
This diff is too big to show here.
pkgs/applications/version-management/dvc/dvc-daemon.patchnew file+21
This diff is too big to show here.
pkgs/applications/version-management/fossil/default.nix+1−1
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/delta/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-extras/default.nix+12−5
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-secret/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/hub/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/stgit/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-backup/default.nixnew file+26
This diff is too big to show here.
pkgs/applications/version-management/git-repo/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/git-sizer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitea/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitkraken/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitlab/data.json+7−7
This diff is too big to show here.
pkgs/applications/version-management/gitlab/default.nix+9−2
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitaly/default.nix+3−3
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitaly/deps.nix+2−29
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/Gemfiledeleted−12
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/Gemfile.lockdeleted−109
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/default.nix+13−53
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/deps.nix+262−64
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/gemset.nixdeleted−451
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations-go.patchdeleted−42
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations-ruby.patchdeleted−27
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patchnew file+57
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix+4−5
This diff is too big to show here.
pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch+11
This diff is too big to show here.
pkgs/applications/version-management/gitlab/rubyEnv/Gemfile+8−8
This diff is too big to show here.
pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock+29−29
This diff is too big to show here.
pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix+40−40
This diff is too big to show here.
pkgs/applications/version-management/gitlab/update.py−5
This diff is too big to show here.
pkgs/applications/version-management/gitlab/yarnPkgs.nix+784−848
This diff is too big to show here.
pkgs/applications/version-management/monotone-viz/default.nix+3−1
This diff is too big to show here.
pkgs/applications/version-management/p4v/default.nix+3−3
This diff is too big to show here.
pkgs/applications/version-management/redmine/4.x/Gemfiledeleted−72
This diff is too big to show here.
pkgs/applications/version-management/redmine/4.x/Gemfile.lockdeleted−203
This diff is too big to show here.
pkgs/applications/version-management/redmine/4.x/default.nixdeleted−44
This diff is too big to show here.
pkgs/applications/version-management/redmine/4.x/gemset.nixdeleted−614
This diff is too big to show here.
pkgs/applications/version-management/redmine/Gemfile+18−28
This diff is too big to show here.
pkgs/applications/version-management/redmine/Gemfile.lock+125−127
This diff is too big to show here.
pkgs/applications/version-management/redmine/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/redmine/gemset.nix+155−157
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/builds.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/core.nix+4−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/dispatch.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/git.nix+12−3
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/hg.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/lists.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/meta.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/paste.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/scm.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/sourcehut/todo.nix+2−2
This diff is too big to show here.
pkgs/applications/video/catt/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/video/celluloid/default.nix+3−3
This diff is too big to show here.
pkgs/applications/video/handbrake/default.nix+8−1
This diff is too big to show here.
pkgs/applications/video/mkvtoolnix/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/mpv/default.nix+32−20
This diff is too big to show here.
pkgs/applications/video/mythtv/default.nix+15−15
This diff is too big to show here.
pkgs/applications/video/mythtv/disable-os-detection.patchnew file+51
This diff is too big to show here.
pkgs/applications/video/mythtv/exiv2.patchnew file+19
This diff is too big to show here.
pkgs/applications/video/obs-studio/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/obs-studio/fix-search-path.patchnew file+13
This diff is too big to show here.
pkgs/applications/video/obs-studio/hardcode-ndi-path.patchnew file+17
This diff is too big to show here.
pkgs/applications/video/obs-studio/linuxbrowser.nix+5−5
This diff is too big to show here.
pkgs/applications/video/obs-studio/obs-ndi.nixnew file+41
This diff is too big to show here.
pkgs/applications/video/smplayer/default.nix+7−7
This diff is too big to show here.
pkgs/applications/virtualization/arion/default.nixnew file+83
This diff is too big to show here.
pkgs/applications/virtualization/conmon/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/containerd/default.nix−2
This diff is too big to show here.
pkgs/applications/virtualization/cri-o/default.nix+14−8
This diff is too big to show here.
pkgs/applications/virtualization/docker/default.nix+11−16
This diff is too big to show here.
pkgs/applications/virtualization/dumb-init/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/virtualization/firecracker/default.nix+38−12
This diff is too big to show here.
pkgs/applications/virtualization/firectl/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/virtualization/open-vm-tools/default.nix+4
This diff is too big to show here.
pkgs/applications/virtualization/podman/default.nix+2−4
This diff is too big to show here.
pkgs/applications/virtualization/qemu/default.nix+4−5
This diff is too big to show here.
pkgs/applications/virtualization/spike/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/virtualization/umoci/default.nixnew file+23
This diff is too big to show here.
pkgs/applications/virtualization/virt-top/default.nix+5−5
This diff is too big to show here.
pkgs/applications/virtualization/x11docker/default.nix+7−10
This diff is too big to show here.
pkgs/applications/virtualization/xhyve/default.nix+7−5
This diff is too big to show here.
pkgs/applications/window-managers/awesome/default.nix+9−3
This diff is too big to show here.
pkgs/build-support/fetchgit/private.nixdeleted−26
This diff is too big to show here.
pkgs/build-support/fetchurl/default.nix+2−2
This diff is too big to show here.
pkgs/build-support/kernel/make-initrd.nix+9−10
This diff is too big to show here.
pkgs/build-support/nix-prefetch-github/default.nixdeleted−29
This diff is too big to show here.
pkgs/build-support/nuke-references/default.nix+3−2
This diff is too big to show here.
pkgs/build-support/rust/default.nix+7−5
This diff is too big to show here.
pkgs/build-support/setup-hooks/make-wrapper.sh+1−8
This diff is too big to show here.
pkgs/build-support/writers/default.nix+3−1
This diff is too big to show here.
pkgs/build-support/writers/test.nix+28−2
This diff is too big to show here.
pkgs/data/documentation/man-pages/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/babelstone-han/default.nix+3−3
This diff is too big to show here.
pkgs/data/fonts/comic-neue/default.nix+8−8
This diff is too big to show here.
pkgs/data/fonts/gohufont/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/ibm-plex/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/input-fonts/default.nix+1−1
This diff is too big to show here.
pkgs/data/fonts/inter/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/iosevka/bin.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/iosevka/default.nix+25−19
This diff is too big to show here.
pkgs/data/fonts/iosevka/package.json+1−1
This diff is too big to show here.
pkgs/data/fonts/liberation-sans-narrow/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/noto-fonts/default.nix+7−5
This diff is too big to show here.
pkgs/data/fonts/noto-fonts/tools.nix+25−8
This diff is too big to show here.
pkgs/data/fonts/public-sans/default.nix+8−4
This diff is too big to show here.
pkgs/data/fonts/recursive/default.nixnew file+39
This diff is too big to show here.
pkgs/data/fonts/ricty/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/rictydiminished-with-firacode/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/stix-two/default.nix+11−7
This diff is too big to show here.
pkgs/data/fonts/twitter-color-emoji/default.nix+18−20
This diff is too big to show here.
pkgs/data/fonts/victor-mono/default.nix+3−3
This diff is too big to show here.
pkgs/data/fonts/xits-math/default.nix+5−5
This diff is too big to show here.
pkgs/data/icons/bibata-cursors/default.nix+3−3
This diff is too big to show here.
pkgs/data/icons/bibata-cursors/extra.nixnew file+41
This diff is too big to show here.
pkgs/data/icons/bibata-cursors/translucent.nixnew file+41
This diff is too big to show here.
pkgs/data/icons/iconpack-obsidian/default.nix+3−3
This diff is too big to show here.
pkgs/data/icons/numix-icon-theme-circle/default.nix+4
This diff is too big to show here.
pkgs/data/icons/numix-icon-theme-square/default.nix+4
This diff is too big to show here.
pkgs/data/icons/papirus-icon-theme/default.nix+3−5
This diff is too big to show here.
pkgs/data/misc/hackage/default.nix+2−2
This diff is too big to show here.
pkgs/misc/themes/jade1/default.nix → pkgs/data/themes/jade1/default.nixrenamed+3−3
This diff is too big to show here.
pkgs/data/themes/lounge/default.nixnew file+35
This diff is too big to show here.
pkgs/data/themes/matcha/default.nix+2−2
This diff is too big to show here.
pkgs/data/themes/plata/default.nix+2−2
This diff is too big to show here.
pkgs/data/themes/qogir/default.nix+3−3
This diff is too big to show here.
pkgs/data/themes/yaru/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-api/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-api/deps.nix+12−12
This diff is too big to show here.
pkgs/desktops/deepin/dde-calendar/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-control-center/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-daemon/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-daemon/deps.nix+10−10
This diff is too big to show here.
pkgs/desktops/deepin/dde-dock/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-file-manager/default.nix+13−11
This diff is too big to show here.
pkgs/desktops/deepin/dde-kwin/0001-dde-kwin.pc-make-paths-relative.patchnew file+56
This diff is too big to show here.
pkgs/desktops/deepin/dde-kwin/default.nixnew file+140
This diff is too big to show here.
pkgs/desktops/deepin/dde-kwin/fix-paths.patchnew file+16
This diff is too big to show here.
pkgs/desktops/deepin/dde-launcher/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-network-utils/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-polkit-agent/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-qt-dbus-factory/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dde-session-ui/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/deepin/deepin-anything/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/deepin/deepin-calculator/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/deepin-desktop-base/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/deepin-desktop-schemas/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/deepin-image-viewer/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/deepin-metacity/default.nixdeleted−65
This diff is too big to show here.
pkgs/desktops/deepin/deepin-movie-reborn/default.nix+18−4
This diff is too big to show here.
pkgs/desktops/deepin/deepin-mutter/deepin-mutter.plugins-dir.patchdeleted−41
This diff is too big to show here.
pkgs/desktops/deepin/deepin-mutter/default.nixdeleted−79
This diff is too big to show here.
pkgs/desktops/deepin/deepin-screenshot/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/deepin-shortcut-viewer/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/deepin/deepin-terminal/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/deepin/deepin-wm/default.nixdeleted−75
This diff is too big to show here.
pkgs/desktops/deepin/default.nix+2−5
This diff is too big to show here.
pkgs/desktops/deepin/disomaster/default.nixnew file+41
This diff is too big to show here.
pkgs/desktops/deepin/dpa-ext-gnomekeyring/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/deepin/dtkcore/default.nix+6−5
This diff is too big to show here.
pkgs/desktops/deepin/dtkwidget/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/dtkwm/default.nix+11−4
This diff is too big to show here.
pkgs/desktops/deepin/go-dbus-generator/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/deepin/go-lib/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/deepin/qcef/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/deepin/qt5dxcb-plugin/default.nix+20−7
This diff is too big to show here.
pkgs/desktops/deepin/qt5integration/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/deepin/udisks2-qt5/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/enlightenment/econnman.nix+2−2
This diff is too big to show here.
pkgs/desktops/enlightenment/efl.nix+40−37
This diff is too big to show here.
pkgs/desktops/enlightenment/enlightenment.nix+1−1
This diff is too big to show here.
pkgs/desktops/enlightenment/ephoto.nix+2−2
This diff is too big to show here.
pkgs/desktops/enlightenment/rage.nix+1−1
This diff is too big to show here.
pkgs/desktops/enlightenment/terminology.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix+100−19
This diff is too big to show here.
pkgs/desktops/gnome-3/apps/gnome-getting-started-docs/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/empathy/default.nix+110−27
This diff is too big to show here.
pkgs/desktops/gnome-3/core/mutter/default.nix+8−2
This diff is too big to show here.
pkgs/desktops/gnome-3/core/mutter/drop-inheritable.patchnew file+132
This diff is too big to show here.
pkgs/desktops/gnome-3/core/sushi/default.nix+56−9
This diff is too big to show here.
pkgs/desktops/gnome-3/default.nix+10−8
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/anjuta/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/devtools/devhelp/default.nix+47−8
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/dash-to-panel/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/drop-down-terminal/default.nix+2−3
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/gsconnect/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/night-theme-switcher/default.nixnew file+21
This diff is too big to show here.
pkgs/desktops/gnome-3/extensions/system-monitor/default.nix+1−2
This diff is too big to show here.
pkgs/desktops/gnome-3/games/swell-foop/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/geary/default.nix+9−1
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gnome-flashback/default.nix+8
This diff is too big to show here.
pkgs/desktops/gnome-3/misc/gpaste/default.nix+60−16
This diff is too big to show here.
pkgs/desktops/gnustep/make/builder.sh+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/liblxqt/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/libqtxdg/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-about/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-admin/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-config/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-globalkeys/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-notificationd/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-openssh-askpass/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-panel/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-policykit/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-powermanagement/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-qtplugin/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-runner/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-session/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-sudo/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/lxqt-themes/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/lxqt/qps/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/lxqt/screengrab/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/mate/mate-settings-daemon/default.nix+3−2
This diff is too big to show here.
pkgs/desktops/pantheon/apps/appcenter/default.nixnew file+92
This diff is too big to show here.
pkgs/desktops/pantheon/apps/elementary-calendar/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/pantheon/apps/elementary-camera/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/apps/elementary-feedback/default.nixnew file+70
This diff is too big to show here.
pkgs/desktops/pantheon/apps/elementary-files/default.nix+13−3
This diff is too big to show here.
pkgs/desktops/pantheon/apps/sideload/default.nixnew file+73
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/about/default.nix+6−7
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/about/fix-paths.patchnew file+26
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/about/lspci-path.patchdeleted−13
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/about/remove-update-button.patchdeleted−55
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/bluetooth/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/datetime/clock-format.patchdeleted−12
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/datetime/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/display/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/security-privacy/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard-plugs/security-privacy/hardcode-gsettings.patch+6−9
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard/default.nix+2−4
This diff is too big to show here.
pkgs/desktops/pantheon/apps/switchboard/plugs-path-env.patch+3−7
This diff is too big to show here.
pkgs/desktops/pantheon/artwork/elementary-gtk-theme/default.nix+4−2
This diff is too big to show here.
pkgs/desktops/pantheon/artwork/elementary-icon-theme/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/artwork/elementary-wallpapers/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/default.nix+12−2
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/elementary-greeter/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/elementary-greeter/hardcode-fallback-background.patch+5−5
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/elementary-onboarding/default.nixnew file+79
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/gala/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/applications-menu/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/bluetooth/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/datetime/default.nix+2−26
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/keyboard/default.nix+2−6
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/network/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/nightlight/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/notifications/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/power/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/session/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel-indicators/sound/default.nix−4
This diff is too big to show here.
pkgs/desktops/pantheon/desktop/wingpanel/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/pantheon/granite/default.nix+2−18
This diff is too big to show here.
pkgs/desktops/pantheon/update.sh+1−7
This diff is too big to show here.
pkgs/desktops/xfce/core/exo.nix+1−1
This diff is too big to show here.
pkgs/development/beam-modules/build-mix.nix+2−2
This diff is too big to show here.
pkgs/development/beam-modules/default.nix+1−9
This diff is too big to show here.
pkgs/development/beam-modules/hex-packages.nixdeleted−37751
This diff is too big to show here.
pkgs/development/beam-modules/hex-registry-snapshot.nixdeleted−27
This diff is too big to show here.
pkgs/development/beam-modules/mix-bootstrap+2−4
This diff is too big to show here.
pkgs/development/chez-modules/chez-mit/default.nixnew file+33
This diff is too big to show here.
pkgs/development/chez-modules/chez-scmutils/default.nixnew file+33
This diff is too big to show here.
pkgs/development/chez-modules/chez-srfi/default.nixnew file+32
This diff is too big to show here.
pkgs/development/compilers/crystal/default.nix+8−1
This diff is too big to show here.
pkgs/development/compilers/cudatoolkit/default.nix+35−13
This diff is too big to show here.
pkgs/development/compilers/elm/default.nix+26−13
This diff is too big to show here.
pkgs/development/compilers/elm/fetchElmDeps.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/elm/makeDotElm.nix+5−5
This diff is too big to show here.
pkgs/development/compilers/elm/packages/elm-srcs.nix+24−14
This diff is too big to show here.
pkgs/development/compilers/elm/packages/elm.nix+12−12
This diff is too big to show here.
pkgs/development/compilers/elm/packages/elmi-to-json.nix+11−11
This diff is too big to show here.
pkgs/development/compilers/elm/packages/node-packages.json+1−1
This diff is too big to show here.
pkgs/development/compilers/elm/packages/node-packages.nix+344−850
This diff is too big to show here.
pkgs/development/compilers/elm/registry.datnew file
Binary file not shown.
pkgs/development/compilers/elm/update.sh+4−3
This diff is too big to show here.
pkgs/development/compilers/elm/versions.datdeleted
Binary file not shown.
pkgs/development/compilers/factor-lang/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/gcc/4.8/default.nix+46−163
This diff is too big to show here.
pkgs/development/compilers/gcc/4.9/default.nix+46−170
This diff is too big to show here.
pkgs/development/compilers/gcc/5/default.nix+49−167
This diff is too big to show here.
pkgs/development/compilers/gcc/6/default.nix+50−174
This diff is too big to show here.
pkgs/development/compilers/gcc/7/default.nix+49−158
This diff is too big to show here.
pkgs/development/compilers/gcc/8/default.nix+50−158
This diff is too big to show here.
pkgs/development/compilers/gcc/9/default.nix+50−158
This diff is too big to show here.
pkgs/development/compilers/gcc/common/configure-flags.nixnew file+174
This diff is too big to show here.
pkgs/development/compilers/gcc/common/extra-target-flags.nixnew file+30
This diff is too big to show here.
pkgs/development/compilers/gcc/common/mfcgthreads-patches-repo.nixnew file+1
This diff is too big to show here.
pkgs/development/compilers/gcc/common/pre-configure.nixnew file+12
This diff is too big to show here.
pkgs/development/compilers/gcc/snapshot/default.nix+52−153
This diff is too big to show here.
pkgs/development/compilers/go/1.12.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/go/1.13.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/graalvm/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/haxe/default.nix+3−1
This diff is too big to show here.
pkgs/development/compilers/intel-graphics-compiler/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/ispc/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/jasmin/default.nixnew file+44
This diff is too big to show here.
pkgs/development/compilers/jasmin/test-assemble-hello-world/HelloWorld.jnew file+31
This diff is too big to show here.
pkgs/development/compilers/jasmin/test-assemble-hello-world/default.nixnew file+12
This diff is too big to show here.
pkgs/development/compilers/ldc/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/llvm/7/llvm.nix+3
This diff is too big to show here.
pkgs/development/compilers/llvm/9/llvm.nix+9
This diff is too big to show here.
pkgs/development/compilers/nim/default.nix+7−54
This diff is too big to show here.
pkgs/development/compilers/openjdk/darwin/8.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/oraclejdk/jdk-linux-base.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/osl/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/pakcs/curry-base.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/pakcs/curry-frontend.nix+10−8
This diff is too big to show here.
pkgs/development/compilers/pakcs/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/polyml/5.6.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/polyml/5.7.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/polyml/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/purescript/purescript/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/reason/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/rust/1_38_0.nixnew file+20
This diff is too big to show here.
pkgs/development/compilers/rust/1_39_0.nixnew file+20
This diff is too big to show here.
pkgs/development/compilers/rust/bootstrap.nix+1−15
This diff is too big to show here.
pkgs/development/compilers/rust/default.nix+15−3
This diff is too big to show here.
pkgs/development/compilers/rust/rust-src.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/rust/rustc.nix+4−2
This diff is too big to show here.
pkgs/development/compilers/swi-prolog/default.nix+16−39
This diff is too big to show here.
pkgs/development/compilers/unison/default.nix+5−5
This diff is too big to show here.
pkgs/development/compilers/vala/default.nix+6−6
This diff is too big to show here.
pkgs/development/coq-modules/coq-bits/default.nixnew file+38
This diff is too big to show here.
pkgs/development/coq-modules/coq-ext-lib/default.nix+3−3
This diff is too big to show here.
pkgs/development/coq-modules/coq-extensible-records/default.nix+32−6
This diff is too big to show here.
pkgs/development/coq-modules/ltac2/default.nix+12−4
This diff is too big to show here.
pkgs/development/coq-modules/paco/default.nix+31−8
This diff is too big to show here.
pkgs/development/go-modules/generic/default.nix+2
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-common.nix+59−10
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix+10−5
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-hackage2nix.yaml+136−98
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-nix.nix+21−10
This diff is too big to show here.
pkgs/development/haskell-modules/generic-builder.nix+1−1
This diff is too big to show here.
pkgs/development/haskell-modules/generic-stack-builder.nix+4
This diff is too big to show here.
pkgs/development/haskell-modules/hackage-packages.nix+4240−1621
This diff is too big to show here.
pkgs/development/haskell-modules/patches/ghc-paths-nix-ghcjs.patch+4−4
This diff is too big to show here.
pkgs/development/haskell-modules/patches/servant-client-core-redact-auth-header.patchnew file+75
This diff is too big to show here.
pkgs/development/haskell-modules/patches/servant-client-core-streamBody.patchdeleted−82
This diff is too big to show here.
pkgs/development/interpreters/elixir/1.9.nix+4−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/R22.nix+4−2
This diff is too big to show here.
pkgs/development/interpreters/hy/default.nix+4−4
This diff is too big to show here.
pkgs/development/interpreters/io/default.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/janet/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/joker/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/jruby/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/love/11.1.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.1.0004-Fix-stack-overflow-in-vararg-functions.patch → pkgs/development/interpreters/lua-5/CVE-2014-5461.patchrenamed
The content is the same.
pkgs/development/interpreters/lua-5/default.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/php/default.nix+4−4
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/default.nix−6
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/python-2.7-distutils-C++.patch+3−4
This diff is too big to show here.
pkgs/development/interpreters/python/default.nix+11−6
This diff is too big to show here.
pkgs/development/interpreters/python/graalpython/default.nixnew file+21
This diff is too big to show here.
pkgs/development/interpreters/python/hooks/setuptools-build-hook.sh+1−1
This diff is too big to show here.
pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py+40−5
This diff is too big to show here.
pkgs/development/interpreters/quickjs/default.nixnew file+42
This diff is too big to show here.
pkgs/development/interpreters/racket/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/racket/minimal.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/renpy/default.nix+4−4
This diff is too big to show here.
pkgs/development/interpreters/spidermonkey/52.nixdeleted−82
This diff is too big to show here.
pkgs/development/interpreters/spidermonkey/60.nix+11−4
This diff is too big to show here.
pkgs/development/interpreters/wasmtime/cargo-lock.patch+1211−638
This diff is too big to show here.
pkgs/development/interpreters/wasmtime/default.nix+7−7
This diff is too big to show here.
pkgs/development/libraries/SDL/find-headers.patch+15−5
This diff is too big to show here.
pkgs/development/libraries/SDL/setup-hook.sh+1
This diff is too big to show here.
pkgs/development/libraries/SDL2/default.nix+7
This diff is too big to show here.
pkgs/development/libraries/SDL_Pango/default.nixnew file+32
This diff is too big to show here.
pkgs/development/libraries/SDL_Pango/fixes.patchnew file+148
This diff is too big to show here.
pkgs/development/libraries/accountsservice/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/accountsservice/drop-prefix-check-extensions.patchnew file+22
This diff is too big to show here.
pkgs/development/libraries/alembic/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/apr/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/arb/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/argp-standalone/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/armadillo/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/arrayfire/default.nixnew file+70
This diff is too big to show here.
pkgs/development/libraries/arrayfire/no-download.patchnew file+28
This diff is too big to show here.
pkgs/development/libraries/arrow-cpp/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/at-spi2-atk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/audio/libmysofa/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/avro-c/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/bamf/default.nix+36−13
This diff is too big to show here.
pkgs/development/libraries/bamf/gtester2xunit-python3.patchnew file+53
This diff is too big to show here.
pkgs/development/libraries/boehm-gc/7.6.6.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/boehm-gc/default.nix+10−4
This diff is too big to show here.
pkgs/development/libraries/boehm-gc/mcfgthread.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/boost/1.71.nixnew file+15
This diff is too big to show here.
pkgs/development/libraries/boxfort/default.nixnew file+47
This diff is too big to show here.
pkgs/development/libraries/c-blosc/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/catch2/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/check/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cimg/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/clfft/default.nixnew file+34
This diff is too big to show here.
pkgs/development/libraries/clipper/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/codec2/default.nix+7−5
This diff is too big to show here.
pkgs/development/libraries/coredumper/default.nixdeleted−18
This diff is too big to show here.
pkgs/development/libraries/criterion/default.nixnew file+49
This diff is too big to show here.
pkgs/development/libraries/crypto++/GNUmakefile-darwin.patchdeleted−15
This diff is too big to show here.
pkgs/development/libraries/crypto++/default.nix+26−28
This diff is too big to show here.
pkgs/development/libraries/crypto++/dll.patchdeleted−28
This diff is too big to show here.
pkgs/development/libraries/cutelyst/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/dav1d/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/dbus/default.nix+10−5
This diff is too big to show here.
pkgs/development/libraries/exempi/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/faudio/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fdk-aac/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpeg-full/default.nix+4−1
This diff is too big to show here.
pkgs/development/libraries/ffmpeg/2.8.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpeg/3.4.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpeg/4.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpegthumbnailer/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/flatpak/default.nix+7−1
This diff is too big to show here.
pkgs/development/libraries/fltk/1.4.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fltk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/folly/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/fontconfig-ultimate/default.nixdeleted−49
This diff is too big to show here.
pkgs/development/libraries/fontconfig/make-fonts-cache.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/forge/default.nixnew file+51
This diff is too big to show here.
pkgs/development/libraries/freetds/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/fribidi/default.nix+3−10
This diff is too big to show here.
pkgs/development/libraries/fstrm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gaia/default.nixnew file+85
This diff is too big to show here.
pkgs/development/libraries/garmintools/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/gcab/default.nix+57−12
This diff is too big to show here.
pkgs/development/libraries/gcab/installed-tests-path.patchnew file+21
This diff is too big to show here.
pkgs/development/libraries/gcr/default.nix+1−5
This diff is too big to show here.
pkgs/development/libraries/gdal/2.4.0.nix+9
This diff is too big to show here.
pkgs/development/libraries/gdal/default.nix+9−1
This diff is too big to show here.
pkgs/development/libraries/gdcm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gdk-pixbuf/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/gegl/4.0.nix+104−12
This diff is too big to show here.
pkgs/development/libraries/geoclue/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/geoip/default.nix+25−17
This diff is too big to show here.
pkgs/desktops/gnome-3/core/gjs/default.nix → pkgs/development/libraries/gjs/default.nixrenamed+42−11
This diff is too big to show here.
pkgs/development/libraries/glfw/3.x.nix+6−5
This diff is too big to show here.
pkgs/development/libraries/glib-networking/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/glib/default.nix+5−9
This diff is too big to show here.
pkgs/development/libraries/glibc/CVE-2018-11236.patchnew file+146
This diff is too big to show here.
pkgs/development/libraries/glibc/CVE-2018-11237.patchnew file+55
This diff is too big to show here.
pkgs/development/libraries/glibc/common.nix+6−1
This diff is too big to show here.
pkgs/development/libraries/glibc/default.nix+15−1
This diff is too big to show here.
pkgs/development/libraries/gnome-online-accounts/default.nix+79−24
This diff is too big to show here.
pkgs/development/libraries/gnu-efi/default.nix+8−11
This diff is too big to show here.
pkgs/development/libraries/gnutls-kdh/generic.nix+1
This diff is too big to show here.
pkgs/development/libraries/gnutls/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/goffice/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gom/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/graphene/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/grpc/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/gsound/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix+10−3
This diff is too big to show here.
pkgs/development/libraries/gtest/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gtk/2.x.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/gtk/3.x.nix+20−9
This diff is too big to show here.
pkgs/development/libraries/gtk/drop-icon-theme-cache.sh → pkgs/development/libraries/gtk/hooks/drop-icon-theme-cache.shrenamed
The content is the same.
pkgs/development/libraries/gtk/gtk2-clean-immodules-cache.sh → pkgs/development/libraries/gtk/hooks/gtk2-clean-immodules-cache.shrenamed
The content is the same.
pkgs/development/libraries/gtk/gtk3-clean-immodules-cache.sh → pkgs/development/libraries/gtk/hooks/gtk3-clean-immodules-cache.shrenamed
The content is the same.
pkgs/development/libraries/gtk/01-build-Fix-path-handling-in-pkgconfig.patch → pkgs/development/libraries/gtk/patches/01-build-Fix-path-handling-in-pkgconfig.patchrenamed
The content is the same.
pkgs/development/libraries/gtk/2.0-darwin-x11.patch → pkgs/development/libraries/gtk/patches/2.0-darwin-x11.patchrenamed
The content is the same.
pkgs/development/libraries/gtk/2.0-immodules.cache.patch → pkgs/development/libraries/gtk/patches/2.0-immodules.cache.patchrenamed
The content is the same.
pkgs/development/libraries/gtk/3.0-darwin-x11.patch → pkgs/development/libraries/gtk/patches/3.0-darwin-x11.patchrenamed
The content is the same.
pkgs/development/libraries/gtk/3.0-immodules.cache.patch → pkgs/development/libraries/gtk/patches/3.0-immodules.cache.patchrenamed
The content is the same.
pkgs/development/libraries/gtk/gtk2-theme-paths.patch → pkgs/development/libraries/gtk/patches/gtk2-theme-paths.patchrenamed
The content is the same.
pkgs/development/libraries/gtkmm/3.x.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/harfbuzz/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/hunspell/dictionaries.nix+10
This diff is too big to show here.
pkgs/development/libraries/hwloc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/hyperscan/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ilmbase/default.nix+14−2
This diff is too big to show here.
pkgs/development/libraries/intel-media-driver/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/intel-media-sdk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/iso-codes/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/java/hsqldb/builder.shdeleted−6
This diff is too big to show here.
pkgs/development/libraries/java/hsqldb/default.nix+27−9
This diff is too big to show here.
pkgs/development/libraries/java/smack/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/jbig2dec/default.nix+7−5
This diff is too big to show here.
pkgs/development/libraries/jitterentropy/default.nix+3
This diff is too big to show here.
pkgs/development/libraries/jsonrpc-glib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kf5gpgmepp/default.nixnew file+24
This diff is too big to show here.
pkgs/development/libraries/khronos-ocl-icd-loader/default.nixnew file+26
This diff is too big to show here.
pkgs/development/libraries/khronos-ocl-icd-loader/tracing.patchnew file+13
This diff is too big to show here.
pkgs/development/libraries/kmsxx/default.nix+7−7
This diff is too big to show here.
pkgs/development/libraries/leatherman/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libabigail/default.nixnew file+59
This diff is too big to show here.
pkgs/development/libraries/libabw/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libburn/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libcdaudio/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/libcec/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/libcef/default.nix+10−6
This diff is too big to show here.
pkgs/development/libraries/libchamplain/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libck/default.nixnew file+26
This diff is too big to show here.
pkgs/development/libraries/libco-canonical/default.nix+13−2
This diff is too big to show here.
pkgs/development/libraries/libcutl/default.nix+17−11
This diff is too big to show here.
pkgs/development/libraries/libdrm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libechonest/default.nix+23−7
This diff is too big to show here.
pkgs/development/libraries/libedit/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libevdev/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/libevdevplus/default.nixnew file+23
This diff is too big to show here.
pkgs/development/libraries/libexif/default.nix+18−7
This diff is too big to show here.
pkgs/development/libraries/libextractor/default.nix+6
This diff is too big to show here.
pkgs/development/libraries/libfsm/default.nix+10−6
This diff is too big to show here.
pkgs/development/libraries/libgdata/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libgdiplus/default.nix+4−2
This diff is too big to show here.
pkgs/development/libraries/libglvnd/default.nix+4−13
This diff is too big to show here.
pkgs/development/libraries/libgpod/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libgudev/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/libguestfs/appliance.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libguestfs/default.nix+12−8
This diff is too big to show here.
pkgs/development/libraries/libical/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libindicate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libinjection/default.nixnew file+37
This diff is too big to show here.
pkgs/development/libraries/libinput/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libisds/default.nixnew file+34
This diff is too big to show here.
pkgs/development/libraries/libisofs/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libjpeg-turbo/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libksi/default.nix+6−5
This diff is too big to show here.
pkgs/development/libraries/liblockfile/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmanette/default.nix+29−11
This diff is too big to show here.
pkgs/development/libraries/libmaxminddb/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmesode/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmicrohttpd/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libnats-c/default.nixnew file+31
This diff is too big to show here.
pkgs/development/libraries/libogg/default.nix+11−3
This diff is too big to show here.
pkgs/development/libraries/libowfat/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/libpcap/default.nix+5−13
This diff is too big to show here.
pkgs/development/libraries/libplacebo/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libpwquality/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libqalculate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libqmi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libraspberrypi/default.nixnew file+25
This diff is too big to show here.
pkgs/development/libraries/libre/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/librem/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/libressl/default.nix+2−7
This diff is too big to show here.
pkgs/development/libraries/librsvg/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/librsync/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsearpc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsecret/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsolv/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libsoup/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libstrophe/default.nix+8−8
This diff is too big to show here.
pkgs/development/libraries/libtiff/CVE-2019-14973.patchnew file+384
This diff is too big to show here.
pkgs/development/libraries/libtiff/default.nix+10
This diff is too big to show here.
pkgs/development/libraries/libtommath/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libuinputplus/default.nixnew file+23
This diff is too big to show here.
pkgs/development/libraries/liburing/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/libusb1/default.nix+18−3
This diff is too big to show here.
pkgs/development/libraries/libuv/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libvmaf/default.nixnew file+33
This diff is too big to show here.
pkgs/development/libraries/libvorbis/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/libwhereami/default.nix+3−4
This diff is too big to show here.
pkgs/development/libraries/libxls/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libxml2/default.nix+16−5
This diff is too big to show here.
pkgs/development/libraries/libxml2/utf8-xmlErrorFuncHandler.patchnew file+30
This diff is too big to show here.
pkgs/development/libraries/libxmlb/default.nix+3−11
This diff is too big to show here.
pkgs/development/libraries/libxslt/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/libzip/default.nix+9−15
This diff is too big to show here.
pkgs/development/libraries/lightstep-tracer-cpp/default.nix+15−24
This diff is too big to show here.
pkgs/development/libraries/linbox/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/live555/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/mapnik/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/mbedtls/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/mesa/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/mimalloc/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/minizip/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/mm-common/default.nix+16−4
This diff is too big to show here.
pkgs/development/libraries/mpich/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/muparser/default.nix+5−3
This diff is too big to show here.
pkgs/development/libraries/ndi/default.nixnew file+60
This diff is too big to show here.
pkgs/development/libraries/netcdf/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/nettle/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nghttp2/default.nix+7−2
This diff is too big to show here.
pkgs/development/libraries/nlohmann_json/default.nix+8−3
This diff is too big to show here.
pkgs/development/libraries/nspr/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nss/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nsss/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ntl/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nvidia-texture-tools/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/olm/default.nix+10−10
This diff is too big to show here.
pkgs/development/libraries/onnxruntime/default.nix+7−2
This diff is too big to show here.
pkgs/development/libraries/openal-soft/default.nix+8
This diff is too big to show here.
pkgs/development/libraries/openal-soft/search-out.patchnew file+12
This diff is too big to show here.
pkgs/development/libraries/openbabel/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/openbsm/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/opencolorio/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/opencv/3.x.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/opencv/4.x.nix+6−14
This diff is too big to show here.
pkgs/development/libraries/openexr/default.nix+10−2
This diff is too big to show here.
pkgs/development/libraries/openfst/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/openmpi/default.nix+20−2
This diff is too big to show here.
pkgs/development/libraries/openssl/default.nix+8−3
This diff is too big to show here.
pkgs/development/libraries/openvdb/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/openxr-loader/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/packr/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/pango/default.nix+5
This diff is too big to show here.
pkgs/development/libraries/pcre/default.nix−2
This diff is too big to show here.
pkgs/development/libraries/physics/apfel/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/physics/fastjet-contrib/default.nixnew file+40
This diff is too big to show here.
pkgs/development/libraries/physics/qcdnum/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/polkit/default.nix+25−9
This diff is too big to show here.
pkgs/development/libraries/poly2tri-c/default.nixnew file+42
This diff is too big to show here.
pkgs/development/libraries/poppler/default.nix+3−11
This diff is too big to show here.
pkgs/development/libraries/protobuf/3.10.nixnew file+6
This diff is too big to show here.
pkgs/development/libraries/protobuf/3.9.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/pstreams/default.nixnew file+40
This diff is too big to show here.
pkgs/development/libraries/qpdf/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qscintilla/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qscintilla/fix-qt4-build.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/default.nix+10
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/fetch.sh+1−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0001-qtbase-mkspecs-mac.patch+17−12
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0002-qtbase-mac.patch+1−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0003-qtbase-mkspecs.patch+17−17
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0004-qtbase-replace-libdir.patch+9−9
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0005-qtbase-cmake.patch+11−11
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0006-qtbase-gtk3.patch+4−4
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0007-qtbase-xcursor.patch+4−4
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0008-qtbase-xcompose.patch+4−4
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0009-qtbase-tzdir.patch+6−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0010-qtbase-qtpluginpath.patch+5−5
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0011-qtbase-assert.patch+4−4
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/qtbase.patch.d/0012-fix-header_module.patchnew file+25
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.12/srcs.nix+160−160
This diff is too big to show here.
pkgs/development/libraries/qt-5/modules/qtbase.nix−6
This diff is too big to show here.
pkgs/development/libraries/qtkeychain/0002-Fix-install-name-Darwin.patchnew file+10
This diff is too big to show here.
pkgs/development/libraries/qtkeychain/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qtpbfimageplugin/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/qtutilities/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/randomx/default.nixnew file+24
This diff is too big to show here.
pkgs/development/libraries/rdkafka/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/rnnoise/default.nixnew file+23
This diff is too big to show here.
pkgs/development/libraries/rocksdb/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/schroedinger/default.nix+3−5
This diff is too big to show here.
pkgs/development/libraries/science/biology/elastix/default.nix+7−8
This diff is too big to show here.
pkgs/development/libraries/science/biology/nifticlib/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/science/math/cudnn/default.nix+9−2
This diff is too big to show here.
pkgs/development/libraries/science/math/magma/default.nix+4
This diff is too big to show here.
pkgs/development/libraries/science/math/mkl/default.nix+37−24
This diff is too big to show here.
pkgs/development/libraries/serialdv/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/simpleitk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/skalibs/default.nix+5−2
This diff is too big to show here.
pkgs/development/libraries/spandsp/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/spdlog/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/spirv-headers/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/sqlite/analyzer.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/sqlite/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/srt/default.nix+4
This diff is too big to show here.
pkgs/development/libraries/taglib/1.9.nixdeleted−22
This diff is too big to show here.
pkgs/development/libraries/taglib/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/tbb/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/template-glib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/thrift/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/tre/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/trompeloeil/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/unixODBCDrivers/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/utmps/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/v8/3.14.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/v8/3.16.14.nixdeleted−81
This diff is too big to show here.
pkgs/development/libraries/vapoursynth/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/vapoursynth/editor.nix+7−5
This diff is too big to show here.
pkgs/development/libraries/vte/default.nix+14−1
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wolfssl/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wt/default.nix+12−8
This diff is too big to show here.
pkgs/development/libraries/x265/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/xapian/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/xapian/skip-flaky-darwin-test.patch+3−3
This diff is too big to show here.
pkgs/development/libraries/xdg-dbus-proxy/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/xdg-desktop-portal/default.nix+7−1
This diff is too big to show here.
pkgs/development/libraries/xxHash/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/yajl/default.nix+1−1
This diff is too big to show here.
pkgs/development/lua-modules/generated-packages.nix+36
This diff is too big to show here.
pkgs/development/lua-modules/overrides.nix+1−1
This diff is too big to show here.
pkgs/development/mobile/androidenv/deploy-androidpackage.nix+1
This diff is too big to show here.
pkgs/development/mobile/cocoapods/Gemfile-beta.lock+5−5
This diff is too big to show here.
pkgs/development/mobile/cocoapods/Gemfile.lock+5−5
This diff is too big to show here.
pkgs/development/mobile/cocoapods/gemset-beta.nix+8−8
This diff is too big to show here.
pkgs/development/mobile/cocoapods/gemset.nix+8−8
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/default.nix+2−2
This diff is too big to show here.
pkgs/development/mobile/titaniumenv/titaniumsdk-7.1.nix → pkgs/development/mobile/titaniumenv/titaniumsdk-8.2.nixrenamed+13−6
This diff is too big to show here.
pkgs/development/mobile/xcodeenv/build-app.nix+1−1
This diff is too big to show here.
pkgs/development/mobile/xcodeenv/compose-xcodewrapper.nix+1−1
This diff is too big to show here.
pkgs/development/node-packages/composition-v13.nixnew file+17
This diff is too big to show here.
pkgs/development/node-packages/default-v13.nixnew file+16
This diff is too big to show here.
pkgs/development/node-packages/generate.sh+1
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v10.json+2
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v10.nix+6919−5465
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v12.nix+45−45
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v13.jsonnew file+3
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v13.nixnew file+1451
This diff is too big to show here.
pkgs/development/ocaml-modules/angstrom-async/default.nixnew file+19
This diff is too big to show here.
pkgs/development/ocaml-modules/angstrom-lwt-unix/default.nixnew file+19
This diff is too big to show here.
pkgs/development/ocaml-modules/angstrom-unix/default.nixnew file+19
This diff is too big to show here.
pkgs/development/ocaml-modules/angstrom/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/batteries/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/camlzip/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/camomile/0.8.2.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/camomile/0.8.5.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/checkseum/default.nix+16−27
This diff is too big to show here.
pkgs/development/ocaml-modules/cryptgps/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/cryptokit/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ctypes/default.nix+12−10
This diff is too big to show here.
pkgs/development/ocaml-modules/decompress/default.nix+16−20
This diff is too big to show here.
pkgs/development/ocaml-modules/duff/default.nixnew file+26
This diff is too big to show here.
pkgs/development/ocaml-modules/earlybird/default.nixnew file+24
This diff is too big to show here.
pkgs/development/ocaml-modules/easy-format/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/eliom/camlp4.patchdeleted−12
This diff is too big to show here.
pkgs/development/ocaml-modules/eliom/default.nix+10−8
This diff is too big to show here.
pkgs/development/ocaml-modules/encore/default.nixnew file+20
This diff is too big to show here.
pkgs/development/ocaml-modules/facile/default.nix+8−27
This diff is too big to show here.
pkgs/development/ocaml-modules/git/default.nix+10−9
This diff is too big to show here.
pkgs/development/ocaml-modules/imagelib/default.nix+13−12
This diff is too big to show here.
pkgs/development/ocaml-modules/imagelib/unix.nixnew file+8
This diff is too big to show here.
pkgs/development/ocaml-modules/integers/default.nix+9−13
This diff is too big to show here.
pkgs/development/ocaml-modules/iso8601/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/0.12.nix+7
This diff is too big to show here.
pkgs/development/ocaml-modules/ke/default.nixnew file+28
This diff is too big to show here.
pkgs/development/ocaml-modules/lablgtk/2.14.0.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/lablgtk/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/3.x.nixdeleted−39
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/legacy.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/lwt/ppx.nix+1−2
This diff is too big to show here.
pkgs/development/ocaml-modules/menhir/generic.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/mlgmpidl/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/ocamlnat/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ocamlnet/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-start/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/odn/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ounit/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/pcre/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_tools/default.nix+3
This diff is too big to show here.
pkgs/development/ocaml-modules/react/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/sawja/default.nix+5−5
This diff is too big to show here.
pkgs/development/ocaml-modules/sqlite3/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/ssl/default.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/type_conv/108.08.00.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/type_conv/109.60.01.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/type_conv/112.01.01.nix+1−1
This diff is too big to show here.
pkgs/development/ocaml-modules/yojson/default.nix+1−1
This diff is too big to show here.
pkgs/development/perl-modules/BerkeleyDB/default.nixdeleted−16
This diff is too big to show here.
pkgs/development/perl-modules/Compress-Raw-Zlib/default.nixdeleted−27
This diff is too big to show here.
pkgs/development/perl-modules/DBD-Oracle/default.nixdeleted−20
This diff is too big to show here.
pkgs/development/perl-modules/DBD-Pg/default.nixdeleted−25
This diff is too big to show here.
pkgs/development/perl-modules/DBD-SQLite/default.nixdeleted−32
This diff is too big to show here.
pkgs/development/perl-modules/DBD-mysql/default.nixdeleted−18
This diff is too big to show here.
pkgs/development/perl-modules/DBD-sybase/default.nixdeleted−18
This diff is too big to show here.
pkgs/development/perl-modules/DB_File/default.nixdeleted−20
This diff is too big to show here.
pkgs/development/perl-modules/Mozilla-LDAP/default.nixnew file+17
This diff is too big to show here.
pkgs/development/perl-modules/Percona-Toolkit/default.nixnew file+20
This diff is too big to show here.
pkgs/development/perl-modules/Po4a/default.nixnew file+37
This diff is too big to show here.
pkgs/development/perl-modules/WWW-YoutubeViewer/default.nixnew file+31
This diff is too big to show here.
pkgs/development/perl-modules/alien-sdl.patchnew file+30
This diff is too big to show here.
pkgs/development/perl-modules/generic/builder.sh−11
This diff is too big to show here.
pkgs/development/perl-modules/generic/default.nix−3
This diff is too big to show here.
pkgs/development/perl-modules/ham/default.nixnew file+42
This diff is too big to show here.
pkgs/development/perl-modules/net-amazon-ec2-ipv6.patchdeleted−51
This diff is too big to show here.
pkgs/development/perl-modules/net-amazon-ec2-nova-compat.patchdeleted−21
This diff is too big to show here.
pkgs/development/perl-modules/strip-nondeterminism/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/Babel/default.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/GitPython/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/JPype1/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/Logbook/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/Mako/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/ROPGadget/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/WazeRouteCalculator/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/absl-py/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/accupy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/acoustics/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/adal/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aenum/default.nix+4−2
This diff is too big to show here.
pkgs/development/python-modules/aioamqp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aioesphomeapi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aiohttp-jinja2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aiohttp/default.nix+16−4
This diff is too big to show here.
pkgs/development/python-modules/aiohue/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aioredis/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aioresponses/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aiounifi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/alembic/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/alerta-server/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/alerta/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/allpairspy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/alot/default.nix+6−2
This diff is too big to show here.
pkgs/development/python-modules/amqp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aniso8601/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/annoy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ansi2html/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/ansible-runner/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ansible/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/apache-airflow/default.nixnew file+188
This diff is too big to show here.
pkgs/development/python-modules/apispec/default.nixnew file+36
This diff is too big to show here.
pkgs/development/python-modules/apprise/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/approvaltests/default.nix+2−12
This diff is too big to show here.
pkgs/development/python-modules/apsw/default.nix+11−3
This diff is too big to show here.
pkgs/development/python-modules/arpeggio/default.nix+12−2
This diff is too big to show here.
pkgs/development/python-modules/arrow/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/ase/3.17.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/asn1crypto/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/astor/default.nix+15−2
This diff is too big to show here.
pkgs/development/python-modules/astroid/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/astropy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/astroquery/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/atomman/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/attrs/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/audio-metadata/default.nix+4−2
This diff is too big to show here.
pkgs/development/python-modules/authlib/default.nixnew file+35
This diff is too big to show here.
pkgs/development/python-modules/autobahn/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/autologging/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/automat/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/awkward/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aws-adfs/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aws-lambda-builders/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/aws-sam-translator/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/aws-xray-sdk/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/azure-applicationinsights/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-batch/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-cli-core/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/azure-cli-telemetry/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/azure-common/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-cosmos/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-cosmosdb-nspkg/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-cosmosdb-table/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-datalake-store/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-eventgrid/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-graphrbac/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-keyvault/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-loganalytics/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-advisor/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-authorization/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-batch/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-batchai/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-billing/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-cdn/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-commerce/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-common/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-compute/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-consumption/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-containerservice/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-cosmosdb/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-datafactory/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-datamigration/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-devspaces/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-dns/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-eventgrid/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-eventhub/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-iothub/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-keyvault/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-logic/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-managementgroups/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-maps/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-media/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-monitor/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-msi/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-network/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-nspkg/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-policyinsights/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-powerbiembedded/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-rdbms/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-recoveryservices/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-recoveryservicesbackup/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-redis/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-relay/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-reservations/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-resource/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-scheduler/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-search/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-servicebus/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-signalr/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-sql/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-storage/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-subscription/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-mgmt-web/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-nspkg/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-servicebus/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-servicefabric/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-storage-blob/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-storage-common/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-storage-file/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-storage-nspkg/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/azure-storage-queue/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/azure-storage/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/backports_lzma/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/backports_unittest-mock/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/beautifulsoup4/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bidict/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/billiard/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/bitarray/0001-Buffer-Protocol-Py3.patchdeleted−106
This diff is too big to show here.
pkgs/development/python-modules/bitarray/default.nix+2−5
This diff is too big to show here.
pkgs/development/python-modules/bitstruct/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/black/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/blis/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/blivet/default.nix+1−2
This diff is too big to show here.
pkgs/development/python-modules/boolean-py/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bootstrapped-pip/default.nix+36−39
This diff is too big to show here.
pkgs/development/python-modules/boto/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/boto3/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/botocore/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bottle/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bpython/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/breathe/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/broadlink/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/buildbot/default.nix+15−6
This diff is too big to show here.
pkgs/development/python-modules/buildbot/pkg.nix+6−4
This diff is too big to show here.
pkgs/development/python-modules/buildbot/plugins.nix+34−16
This diff is too big to show here.
pkgs/development/python-modules/buildbot/worker.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/buildout-nix/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/bumps/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/can/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cerberus/default.nix+6−2
This diff is too big to show here.
pkgs/development/python-modules/certifi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cffi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cfn-lint/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cftime/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/chainer/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/chalice/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/channels/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/check-manifest/default.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/cheroot/default.nix+2−4
This diff is too big to show here.
pkgs/development/python-modules/cheroot/tests.patchdeleted−45
This diff is too big to show here.
pkgs/development/python-modules/cherrypy/default.nix+7−12
This diff is too big to show here.
pkgs/development/python-modules/click-completion/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/click-plugins/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cliff/default.nix+17−6
This diff is too big to show here.
pkgs/development/python-modules/clize/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cloudpickle/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cmd2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cocotb/default.nixnew file+46
This diff is too big to show here.
pkgs/development/python-modules/cogapp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/colored/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/coloredlogs/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/commonmark/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/configargparse/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/configparser/default.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/contextlib2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cornice/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/coverage/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/coveralls/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/crayons/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/croniter/default.nixnew file+37
This diff is too big to show here.
pkgs/development/python-modules/cryptacular/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cryptography/default.nix+2−11
This diff is too big to show here.
pkgs/development/python-modules/cryptography/vectors.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/cssmin/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/cssselect/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cupy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/cytoolz/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dask-jobqueue/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dask-ml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dask-mpi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dask-xgboost/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dask/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dataclasses/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/datadog/default.nix+9−6
This diff is too big to show here.
pkgs/development/python-modules/datamodeldict/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/datasette/default.nix+8−4
This diff is too big to show here.
pkgs/development/python-modules/datashader/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dateparser/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dbus/default.nix+9−7
This diff is too big to show here.
pkgs/development/python-modules/debian/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/deeptoolsintervals/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/deform/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/defusedxml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dependency-injector/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dftfit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/diff_cover/default.nix+24−14
This diff is too big to show here.
pkgs/development/python-modules/dill/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/discordpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/diskcache/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/distributed/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dj-email-url/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-cors-headers/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-extensions/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-multiselectfield/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-pglocks/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-q/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-raster/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django-sesame/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django/2_1.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django/2_2.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/django_guardian/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/djangoql/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dkimpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dmenu/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/docker/default.nix+7−6
This diff is too big to show here.
pkgs/development/python-modules/docutils/default.nix+10−5
This diff is too big to show here.
pkgs/development/python-modules/dogpile.cache/default.nix+7−2
This diff is too big to show here.
pkgs/development/python-modules/drms/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/dulwich/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/easysnmp/default.nixnew file+56
This diff is too big to show here.
pkgs/development/python-modules/ecdsa/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/elasticsearch-dsl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/elasticsearch/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/elementpath/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/emcee/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/enum-compat/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/evdev/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/eve/default.nix+7−2
This diff is too big to show here.
pkgs/development/python-modules/eventlet/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/execnet/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/eyed3/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/face/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/factory_boy/default.nix+5−7
This diff is too big to show here.
pkgs/development/python-modules/faker/default.nix+6−12
This diff is too big to show here.
pkgs/development/python-modules/fastapi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/favicon/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/filebytes/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fiona/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flake8-debugger/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flake8/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-admin/default.nixnew file+71
This diff is too big to show here.
pkgs/development/python-modules/flask-appbuilder/default.nixnew file+80
This diff is too big to show here.
pkgs/development/python-modules/flask-babelex/default.nixnew file+47
This diff is too big to show here.
pkgs/development/python-modules/flask-bcrypt/default.nixnew file+35
This diff is too big to show here.
pkgs/development/python-modules/flask-cors/default.nix+7−1
This diff is too big to show here.
pkgs/development/python-modules/flask-jwt-extended/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-limiter/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-mongoengine/default.nixnew file+47
This diff is too big to show here.
pkgs/development/python-modules/flask-openid/default.nixnew file+34
This diff is too big to show here.
pkgs/development/python-modules/flask-paginate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-socketio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask-sqlalchemy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flask/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/flowlogs_reader/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fluent-logger/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fonttools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fritzconnection/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fs-s3fs/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/fs/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/fsspec/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/fuse-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/future/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/futures/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gast/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/genanki/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gensim/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/geoip2/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/geopy/2.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/geopy/default.nix+15−16
This diff is too big to show here.
pkgs/development/python-modules/gin-config/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/git-revise/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gitdb2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/glom/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/goocalendar/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google-auth-oauthlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google-music-proto/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google-music/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_api_core/default.nix+14−8
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_asset/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_automl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_bigquery/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_bigquery_datatransfer/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_bigtable/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_container/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_core/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_dataproc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_datastore/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_dlp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_dns/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_error_reporting/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_firestore/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_iot/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_kms/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_language/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_logging/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_monitoring/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_pubsub/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_redis/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_resource_manager/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_runtimeconfig/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_securitycenter/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_spanner/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_speech/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_storage/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_tasks/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_texttospeech/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_trace/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_translate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_videointelligence/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_vision/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/google_cloud_websecurityscanner/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/google_resumable_media/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/googleapis_common_protos/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gpyopt/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/green/default.nix+17−4
This diff is too big to show here.
pkgs/development/python-modules/grequests/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/grpc_google_iam_v1/default.nix+8−2
This diff is too big to show here.
pkgs/development/python-modules/grpcio-tools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/grpcio/default.nix+2−10
This diff is too big to show here.
pkgs/development/python-modules/gsd/1.7.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/guessit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/gym/default.nix+9−4
This diff is too big to show here.
pkgs/development/python-modules/ha-ffmpeg/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/handout/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hdbscan/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/heapdict/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hiro/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/holidays/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/holoviews/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hopcroftkarp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/howdoi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/html2text/2018.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/html2text/default.nix+16−9
This diff is too big to show here.
pkgs/development/python-modules/httplib2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/httpretty/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hupper/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hvac/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hvplot/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hyperlink/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/hypothesis/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/ics/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/ijson/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/imageio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/imbalanced-learn/0.4.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/imgaug/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/immutables/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/impacket/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/importlib-metadata/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/imutils/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/intreehooks/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/ipaddress/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ipykernel/4.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ipykernel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ipython/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ipywidgets/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/irc/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/isbnlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/islpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/isort/default.nix+18−5
This diff is too big to show here.
pkgs/development/python-modules/itanium_demangler/default.nixnew file+30
This diff is too big to show here.
pkgs/development/python-modules/jaraco_collections/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jaraco_text/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jdatetime/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jedi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jeepney/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jenkinsapi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jinja2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/joblib/default.nix+2−20
This diff is too big to show here.
pkgs/development/python-modules/jsbeautifier/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/json-merge-patch/default.nixnew file+32
This diff is too big to show here.
pkgs/development/python-modules/jsonlines/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/jsonmerge/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jsonpatch/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jsonrpclib-pelix/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/jsonschema/default.nix+20−12
This diff is too big to show here.
pkgs/development/python-modules/junos-eznc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jupyter-repo2docker/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jupyter_client/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/jupyter_core/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/jupyterlab/default.nix+2−11
This diff is too big to show here.
pkgs/development/python-modules/jupyterlab_server/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/jupytext/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/kafka-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/kajiki/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/kconfiglib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/keepkey_agent/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/keras-applications/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/keras-preprocessing/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/keras/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/kiwisolver/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/koji/default.nix+7−5
This diff is too big to show here.
pkgs/development/python-modules/kombu/default.nix+20−6
This diff is too big to show here.
pkgs/development/python-modules/labelbox/default.nixnew file+31
This diff is too big to show here.
pkgs/development/python-modules/lark-parser/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/lazy-object-proxy/default.nix+6−3
This diff is too big to show here.
pkgs/development/python-modules/ldaptor/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ledger_agent/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/libarchive-c/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/librosa/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/license-expression/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/lightgbm/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/llvmlite/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/lxml/default.nix+19−13
This diff is too big to show here.
pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mailmanclient/default.nix+8−4
This diff is too big to show here.
pkgs/development/python-modules/managesieve/default.nixnew file+26
This diff is too big to show here.
pkgs/development/python-modules/manuel/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/mapsplotlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/marionette_driver.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozcrash.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozdevice.nix+4−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozfile.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozinfo.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozlog.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozprocess.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozprofile.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozrunner.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marionette-harness/mozversion.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/marshmallow-enum/default.nixnew file+42
This diff is too big to show here.
pkgs/development/python-modules/marshmallow/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/matplotlib/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/matrix-nio/default.nixnew file+49
This diff is too big to show here.
pkgs/development/python-modules/mautrix-appservice/0001-Remove-coding-annotations.patchnew file+53
This diff is too big to show here.
pkgs/development/python-modules/mautrix-appservice/default.nix+4
This diff is too big to show here.
pkgs/development/python-modules/measurement/default.nixnew file+20
This diff is too big to show here.
pkgs/development/python-modules/meinheld/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mesa/default.nixnew file+34
This diff is too big to show here.
pkgs/development/python-modules/mesonpep517/default.nixnew file+42
This diff is too big to show here.
pkgs/development/python-modules/micawber/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/minio/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/mnemonic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mock/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/moderngl_window/default.nixnew file+38
This diff is too big to show here.
pkgs/development/python-modules/mongoengine/default.nixnew file+49
This diff is too big to show here.
pkgs/development/python-modules/monkeyhex/default.nixnew file+30
This diff is too big to show here.
pkgs/development/python-modules/more-itertools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/moretools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/moto/default.nix+5
This diff is too big to show here.
pkgs/development/python-modules/msgpack/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mt-940/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/multidict/default.nix+3
This diff is too big to show here.
pkgs/development/python-modules/multiprocess/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mwoauth/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/myfitnesspal/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/mypy-protobuf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/mypy/default.nix+6−4
This diff is too big to show here.
pkgs/development/python-modules/mypy/extensions.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/mysql-connector/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nbconvert/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nbdime/default.nixnew file+69
This diff is too big to show here.
pkgs/development/python-modules/nest-asyncio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/netcdf4/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/networkx/2.2.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/networkx/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/neurotools/default.nixdeleted−35
This diff is too big to show here.
pkgs/development/python-modules/nibabel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nimfa/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nipype/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/nix-prefetch-github/default.nixnew file+32
This diff is too big to show here.
pkgs/development/python-modules/notebook/2.nixnew file+76
This diff is too big to show here.
pkgs/development/python-modules/notebook/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/numba/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/numexpr/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/numpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/numpydoc/default.nix+7−8
This diff is too big to show here.
pkgs/development/python-modules/nvchecker/default.nix+6−8
This diff is too big to show here.
pkgs/development/python-modules/oauthenticator/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/oauthlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ofxtools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/onkyo-eiscp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/openpyxl/default.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/opentracing/default.nixnew file+34
This diff is too big to show here.
pkgs/development/python-modules/opt-einsum/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/optuna/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/outcome/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/packaging/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/packet-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/paho-mqtt/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/palettable/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pandas/2.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pandas/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/panel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/paperspace/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/papis/default.nix+12−6
This diff is too big to show here.
pkgs/development/python-modules/param/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/parameterized/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/parse/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/parsley/default.nixnew file+22
This diff is too big to show here.
pkgs/development/python-modules/parsy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/partd/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/paste/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pastescript/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/path.py/default.nix+8−6
This diff is too big to show here.
pkgs/development/python-modules/pathlib2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pathos/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pbr/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pdftotext/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/peewee/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pefile/default.nixnew file+30
This diff is too big to show here.
pkgs/development/python-modules/pelican/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/pendulum/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/persim/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pex/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pexpect/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pg8000/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pglast/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/phik/default.nixnew file+54
This diff is too big to show here.
pkgs/development/python-modules/phonenumbers/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/phonopy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pid/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pikepdf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pillow/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pip-tools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pip/default.nix+9−6
This diff is too big to show here.
pkgs/development/python-modules/pip2nix/default.nix+5−1
This diff is too big to show here.
pkgs/development/python-modules/pkgconfig/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plac/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/plaid-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plone-testing/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plotly/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pluggy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plumbum/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/plyfile/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/poetry/default.nix+6−4
This diff is too big to show here.
pkgs/development/python-modules/poetry/jsonschema.nixdeleted−37
This diff is too big to show here.
pkgs/development/python-modules/portend/black-19.10b0.patchnew file+13
This diff is too big to show here.
pkgs/development/python-modules/portend/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/poster3/default.nixnew file+36
This diff is too big to show here.
pkgs/development/python-modules/pox/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ppft/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/prance/default.nixnew file+57
This diff is too big to show here.
pkgs/development/python-modules/praw/6.3.nixnew file+53
This diff is too big to show here.
pkgs/development/python-modules/praw/default.nix+2−3
This diff is too big to show here.
pkgs/development/python-modules/prawcore/default.nix+6−1
This diff is too big to show here.
pkgs/development/python-modules/pre-commit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/prison/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/progressbar2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/prometheus_client/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/prompt_toolkit/1.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/protobuf/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/psd-tools/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/psycopg2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ptpython/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pwntools/default.nix+2−12
This diff is too big to show here.
pkgs/development/python-modules/py-vapid/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/py2bit/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/py3buddy/default.nixnew file+38
This diff is too big to show here.
pkgs/development/python-modules/py3status/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/pyGithub/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyaml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyannotate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyasn1-modules/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyasn1/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyatmo/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/pyatv/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyaxmlparser/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybase64/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybids/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybigwig/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/pybind11/default.nix+9−15
This diff is too big to show here.
pkgs/development/python-modules/pybindgen/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybotvac/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybtex-docutils/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pybullet/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pychromecast/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycryptodome/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycryptodomex/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycryptopp/default.nix+13−2
This diff is too big to show here.
pkgs/development/python-modules/pycuda/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pycurl/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/pydantic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pydocumentdb/default.nix+7−2
This diff is too big to show here.
pkgs/development/python-modules/pyezminc/default.nix−1
This diff is too big to show here.
pkgs/development/python-modules/pyfakefs/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyfma/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyfribidi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyftdi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyfxa/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyglet/default.nix+8
This diff is too big to show here.
pkgs/development/python-modules/pyhocon/default.nix+7−5
This diff is too big to show here.
pkgs/development/python-modules/pyhomematic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyjet/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyjson5/default.nixnew file+26
This diff is too big to show here.
pkgs/development/python-modules/pyjwkest/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyjwt/default.nix+5
This diff is too big to show here.
pkgs/development/python-modules/pykde4/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/pylint/1.9.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pylint/default.nix+13−15
This diff is too big to show here.
pkgs/development/python-modules/pymatgen/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pymbolic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pymongo/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pymupdf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pynamodb/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pynvim/default.nix+6−7
This diff is too big to show here.
pkgs/development/python-modules/pyobjc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyparsing/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pypillowfight/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyramid_mako/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyro-ppl/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyro4/default.nix+12−5
This diff is too big to show here.
pkgs/development/python-modules/pyroute2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pysmbc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pysnmp/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/pysnmp/setup.py-Fix-the-setuptools-version-check.patchnew file+27
This diff is too big to show here.
pkgs/development/python-modules/pysonos/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyspark/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyspf/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-annotate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-black/black-version.patchnew file+13
This diff is too big to show here.
pkgs/development/python-modules/pytest-black/default.nixnew file+28
This diff is too big to show here.
pkgs/development/python-modules/pytest-cov/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-django/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-doctestplus/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-faulthandler/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-forked/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-mock/default.nix+3−13
This diff is too big to show here.
pkgs/development/python-modules/pytest-mypy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-openfiles/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-relaxed/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/pytest-remotedata/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-sanic/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-testmon/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-xdist/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest/4.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytest/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytestrunner/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-binance/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-dbusmock/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/python-doi/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/python-efl/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/python-gitlab/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-jenkins/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-language-server/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/python-logstash/default.nixnew file+21
This diff is too big to show here.
pkgs/development/python-modules/python-nomad/default.nixnew file+23
This diff is too big to show here.
pkgs/development/python-modules/python-oauth2/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-olm/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/python-ptrace/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/python-slugify/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-socketio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-telegram-bot/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/python-vlc/default.nixnew file+37
This diff is too big to show here.
pkgs/development/python-modules/python-vlc/vlc-paths.patchnew file+13
This diff is too big to show here.
pkgs/development/python-modules/pythondialog/default.nixnew file+27
This diff is too big to show here.
pkgs/development/python-modules/pytorch/default.nix+155−28
This diff is too big to show here.
pkgs/development/python-modules/pytrends/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytz/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pytzdata/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyunifi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyupdate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyutil/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyvcf/default.nixnew file+32
This diff is too big to show here.
pkgs/development/python-modules/pywavelets/default.nix+17−5
This diff is too big to show here.
pkgs/development/python-modules/pywbem/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pywebpush/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyx/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyxl3/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyyaml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/pyzmq/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/qiskit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/qrcode/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/qscintilla-qt5/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/r2pipe/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rasterio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rbtools/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rebulk/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/recommonmark/default.nix+11−7
This diff is too big to show here.
pkgs/development/python-modules/redis/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/regex/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/reportlab/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/requests-cache/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/requests-oauthlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/requests-unixsocket/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rethinkdb/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rfc-bibtex/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/ripser/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rl-coach/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/robomachine/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/robotframework-requests/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ropper/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/rpyc/default.nix+15−6
This diff is too big to show here.
pkgs/development/python-modules/ruamel_ordereddict/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ruamel_yaml/default.nix+16−6
This diff is too big to show here.
pkgs/development/python-modules/ruamel_yaml_clib/default.nixnew file+29
This diff is too big to show here.
pkgs/development/python-modules/runway-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/s3fs/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/s3transfer/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/schema/default.nix+12−4
This diff is too big to show here.
pkgs/development/python-modules/scikit-build/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/scikit-image/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/scikitlearn/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/scrapy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/seekpath/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/semantic-version/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sentinel/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sentry-sdk/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/serpent/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/serverlessrepo/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/setuptools/default.nix+43−17
This diff is too big to show here.
pkgs/development/python-modules/sharedmem/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/shodan/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/slicedimage/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/slicerator/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/snakebite/default.nixnew file+41
This diff is too big to show here.
pkgs/development/python-modules/snowballstemmer/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/snuggs/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/soco/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/solo-python/default.nix+20−5
This diff is too big to show here.
pkgs/development/python-modules/sounddevice/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/soupsieve/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/spacy/default.nix+2−7
This diff is too big to show here.
pkgs/development/python-modules/spacy/models.json+12
This diff is too big to show here.
pkgs/development/python-modules/sparse/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sphinx/2.nixnew file+75
This diff is too big to show here.
pkgs/development/python-modules/sphinx/default.nix+14−2
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-applehelp/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-devhelp/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-jsmath/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-openapi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-qthelp/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nixnew file+25
This diff is too big to show here.
pkgs/development/python-modules/sphinxcontrib-spelling/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/spyder-kernels/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/spyder/default.nix+7
This diff is too big to show here.
pkgs/development/python-modules/sqlalchemy-citext/default.nixnew file+31
This diff is too big to show here.
pkgs/development/python-modules/sqlalchemy-utils/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/sqlalchemy/default.nix+22−9
This diff is too big to show here.
pkgs/development/python-modules/sqlmap/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/srsly/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ssdeep/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/starfish/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/starlette/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/strictyaml/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/stripe/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/structlog/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/supervisor/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/svgwrite/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tables/3.5.nixnew file+58
This diff is too big to show here.
pkgs/development/python-modules/tables/default.nix+16−5
This diff is too big to show here.
pkgs/development/python-modules/tabulate/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tatsu/default.nixnew file+40
This diff is too big to show here.
pkgs/development/python-modules/tblib/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tbm-utils/default.nixnew file+37
This diff is too big to show here.
pkgs/development/python-modules/telethon/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tenacity/default.nix+5−7
This diff is too big to show here.
pkgs/development/python-modules/tensorflow-estimator/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/tensorflow-tensorboard/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/default.nix+54−15
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/lift-gast-restriction.patchnew file+13
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/tf-1.15-bazel-1.0.patchnew file+213
This diff is too big to show here.
pkgs/development/python-modules/testfixtures/default.nix+6−13
This diff is too big to show here.
pkgs/development/python-modules/text-unidecode/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/thinc/default.nix+2−7
This diff is too big to show here.
pkgs/development/python-modules/tifffile/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tldextract/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/todoist/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tomlkit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tox/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tqdm/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/traitlets/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/transitions/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/trezor/default.nix+2−1
This diff is too big to show here.
pkgs/development/python-modules/trezor_agent/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/trio/default.nix+11−4
This diff is too big to show here.
pkgs/development/python-modules/twilio/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/twine/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/twisted/default.nix+5−3
This diff is too big to show here.
pkgs/development/python-modules/typeguard/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/typing/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/tzlocal/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/u-msgpack-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/uamqp/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/uarray/default.nix+5−10
This diff is too big to show here.
pkgs/development/python-modules/uncompyle6/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/unidecode/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/uproot-methods/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/uproot/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/urlgrabber/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/urllib3/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/uvicorn/default.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/uvloop/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vcrpy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vega/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vidstab/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/virtualenv/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/virtualenv/virtualenv-change-prefix.patch+4−4
This diff is too big to show here.
pkgs/development/python-modules/vmprof/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/vowpalwabbit/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/waitress/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/wasabi/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/web/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/webcolors/default.nix+6−3
This diff is too big to show here.
pkgs/development/python-modules/weboob/default.nix+7−9
This diff is too big to show here.
pkgs/development/python-modules/websockets/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/webtest/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/werkzeug/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/wheel/default.nix+7−4
This diff is too big to show here.
pkgs/development/python-modules/whitenoise/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/widgetsnbextension/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/willow/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/word2vec/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/worldengine/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/wrapt/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/wrf-python/default.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/wsproto/0.14.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/wtf-peewee/default.nixnew file+33
This diff is too big to show here.
pkgs/development/python-modules/wurlitzer/default.nix+7−3
This diff is too big to show here.
pkgs/development/python-modules/wxPython/4.0.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xarray/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xdis/default.nix+4−3
This diff is too big to show here.
pkgs/development/python-modules/xml2rfc/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xstatic-bootstrap/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/xxhash/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/yamllint/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/yubico-client/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zc_lockfile/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zeroc-ice/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zetup/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zipp/default.nix+5−2
This diff is too big to show here.
pkgs/development/python-modules/zope-deferredimport/default.nix+2
This diff is too big to show here.
pkgs/development/python-modules/zope_i18n/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zope_proxy/default.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/zope_testrunner/default.nix+3−3
This diff is too big to show here.
pkgs/development/r-modules/default.nix+7
This diff is too big to show here.
pkgs/development/ruby-modules/gem-config/default.nix+1−11
This diff is too big to show here.
pkgs/development/ruby-modules/solargraph/Gemfile.lock+8−9
This diff is too big to show here.
pkgs/development/ruby-modules/solargraph/gemset.nix+16−26
This diff is too big to show here.
pkgs/development/ruby-modules/with-packages/Gemfile−1
This diff is too big to show here.
pkgs/development/ruby-modules/with-packages/default.nix+2
This diff is too big to show here.
pkgs/development/tools/ammonite/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/analysis/brakeman/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/checkstyle/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/cpplint/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/flow/default.nix+11−3
This diff is too big to show here.
pkgs/development/tools/analysis/frama-c/default.nix+2−3
This diff is too big to show here.
pkgs/development/tools/analysis/hotspot/default.nix+2−1
This diff is too big to show here.
pkgs/development/tools/analysis/include-what-you-use/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/radare2/default.nix+6−6
This diff is too big to show here.
pkgs/development/tools/analysis/tflint/default.nix+5−5
This diff is too big to show here.
pkgs/development/tools/async/default.nixnew file+29
This diff is too big to show here.
pkgs/development/tools/avro-tools/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/aws-sam-cli/default.nix+15−8
This diff is too big to show here.
pkgs/development/tools/bazelisk/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/boomerang/default.nix+11−29
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/default.nix+9−7
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/src-deps.json+16−16
This diff is too big to show here.
pkgs/development/tools/build-managers/buck/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/setup-hook.sh+8
This diff is too big to show here.
pkgs/development/tools/build-managers/conan/default.nix+17−12
This diff is too big to show here.
pkgs/development/tools/build-managers/meson/default.nix+17−2
This diff is too big to show here.
pkgs/development/tools/build-managers/mill/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/qbs/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/build-managers/rebar3/default.nix+1−9
This diff is too big to show here.
pkgs/development/tools/build-managers/rebar3/rebar3-nix-bootstrap+6−39
This diff is too big to show here.
pkgs/development/tools/build-managers/sbt-extras/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/buildah/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/buildpack/default.nixnew file+26
This diff is too big to show here.
pkgs/development/tools/chit/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/clang-tools/default.nix+8−3
This diff is too big to show here.
pkgs/development/tools/clang-tools/wrappernew file+20
This diff is too big to show here.
pkgs/development/tools/clj-kondo/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/cloudflare-wrangler/default.nixnew file+31
This diff is too big to show here.
pkgs/development/tools/cmake-format/default.nixnew file+32
This diff is too big to show here.
pkgs/development/tools/conftest/default.nix−9
This diff is too big to show here.
pkgs/development/tools/continuous-integration/gitlab-runner/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/continuous-integration/jenkins/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/devpi-server/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/dive/default.nix+9−5
This diff is too big to show here.
pkgs/development/tools/documentation/gnome-doc-utils/default.nix+5
This diff is too big to show here.
pkgs/development/tools/documentation/gtk-doc/0001-highlight-fix-permission-on-file-style.patchdeleted−24
This diff is too big to show here.
pkgs/development/tools/documentation/gtk-doc/default.nix+4−5
This diff is too big to show here.
pkgs/development/tools/flatpak-builder/default.nix+11−1
This diff is too big to show here.
pkgs/development/tools/gir/default.nixnew file+23
This diff is too big to show here.
pkgs/development/tools/git-quick-stats/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/java/cfr/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/jazzy/Gemfile.lock+10−10
This diff is too big to show here.
pkgs/development/tools/jazzy/gemset.nix+14−14
This diff is too big to show here.
pkgs/development/tools/jo/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/just/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/ktlint/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/kustomize/default.nix+13−13
This diff is too big to show here.
pkgs/development/tools/micronaut/default.nix+8−7
This diff is too big to show here.
pkgs/development/tools/misc/argbash/default.nixnew file+27
This diff is too big to show here.
pkgs/development/tools/misc/automake/automake-1.15.x.nix+2
This diff is too big to show here.
pkgs/development/tools/misc/automake/help2man-SOURCE_DATE_EPOCH-support.patchnew file+41
This diff is too big to show here.
pkgs/development/tools/misc/ccls/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/ccls/wrapper+1−1
This diff is too big to show here.
pkgs/development/tools/misc/chrpath/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/cquery/wrapper+1−1
This diff is too big to show here.
pkgs/development/tools/misc/editorconfig-checker/default.nixnew file+22
This diff is too big to show here.
pkgs/development/tools/misc/fsatrace/default.nix+10−7
This diff is too big to show here.
pkgs/development/tools/misc/gputils/default.nix+2−1
This diff is too big to show here.
pkgs/development/tools/misc/itstool/default.nix+4−14
This diff is too big to show here.
pkgs/development/tools/misc/lttng-tools/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/scc/default.nixnew file+26
This diff is too big to show here.
pkgs/development/tools/misc/sccache/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/stm32cubemx/default.nixnew file+78
This diff is too big to show here.
pkgs/development/tools/misc/sysbench/default.nix+13−8
This diff is too big to show here.
pkgs/development/tools/misc/terracognita/default.nix+5−3
This diff is too big to show here.
pkgs/development/tools/misc/texlab/citeproc/package.jsonnew file+31
This diff is too big to show here.
pkgs/development/tools/misc/texlab/citeproc/update-package.json.shnew file+14
This diff is too big to show here.
pkgs/development/tools/misc/texlab/default.nixnew file+39
This diff is too big to show here.
pkgs/development/tools/misc/tokei/Cargo.lock.patchdeleted−13
This diff is too big to show here.
pkgs/development/tools/misc/tokei/default.nix+3−6
This diff is too big to show here.
pkgs/development/tools/ocaml/camlp4/default.nix+4
This diff is too big to show here.
pkgs/development/tools/ocaml/camlp5/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/cppo/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/findlib/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/oasis/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlify/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlmod/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/ocaml/ocp-indent/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/ocaml/utop/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/open-policy-agent/default.nixnew file+23
This diff is too big to show here.
pkgs/development/tools/open-policy-agent/deps.nixnew file+408
This diff is too big to show here.
pkgs/development/tools/parsing/re2c/default.nix+5−4
This diff is too big to show here.
pkgs/development/tools/pipenv/default.nix+32−24
This diff is too big to show here.
pkgs/development/tools/profiling/sysprof/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/prototool/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/pypi2nix/default.nix+19−101
This diff is too big to show here.
pkgs/development/tools/qtcreator/0001-Fix-clang-libcpp-regexp.patch+2−2
This diff is too big to show here.
pkgs/development/tools/qtcreator/0002-Dont-remove-clang-header-paths.patchnew file+13
This diff is too big to show here.
pkgs/development/tools/qtcreator/default.nix+16−24
This diff is too big to show here.
pkgs/development/tools/repository-managers/nexus/default.nix+4−2
This diff is too big to show here.
pkgs/development/tools/rubocop/Gemfile.lock+4−4
This diff is too big to show here.
pkgs/development/tools/rubocop/gemset.nix+6−6
This diff is too big to show here.
pkgs/development/tools/rucksack/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/rust/bindgen/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/rust/cargo-bloat/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/rust/cargo-fuzz/default.nix+8−20
This diff is too big to show here.
pkgs/development/tools/rust/cargo-geiger/default.nixnew file+48
This diff is too big to show here.
pkgs/development/tools/rust/cargo-generate/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/rust/cargo-udeps/default.nixnew file+28
This diff is too big to show here.
pkgs/development/tools/rust/cargo-watch/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/rust/cargo-xbuild/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/rust/cbindgen/default.nix+7−5
This diff is too big to show here.
pkgs/development/tools/rust/racerd/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/scalafmt/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/selenium/chromedriver/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/spirv-tools/default.nix+3−6
This diff is too big to show here.
pkgs/development/tools/vala-lint/default.nixnew file+51
This diff is too big to show here.
pkgs/development/tools/valadoc/default.nixdeleted−27
This diff is too big to show here.
pkgs/development/tools/vim-vint/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/wiiload/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/yarn/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/yq/default.nix+2−2
This diff is too big to show here.
pkgs/development/web/cypress/default.nix+7−3
This diff is too big to show here.
pkgs/development/web/grails/default.nix+2−2
This diff is too big to show here.
pkgs/development/web/insomnia/default.nix+12−17
This diff is too big to show here.
pkgs/development/web/nodejs/disable-libatomic-darwin.patch+2−2
This diff is too big to show here.
pkgs/development/web/nodejs/nodejs.nix+22−4
This diff is too big to show here.
pkgs/development/web/nodejs/v10.nix+2−2
This diff is too big to show here.
pkgs/development/web/nodejs/v12.nix+2−2
This diff is too big to show here.
pkgs/development/web/nodejs/v13.nixnew file+12
This diff is too big to show here.
pkgs/development/web/postman/default.nix+2−2
This diff is too big to show here.
pkgs/games/arx-libertatis/default.nix+14−11
This diff is too big to show here.
pkgs/games/crawl/default.nix+4−9
This diff is too big to show here.
pkgs/games/devilutionx/default.nix+10−7
This diff is too big to show here.
pkgs/games/eidolon/cargo-lock.patchnew file+19
This diff is too big to show here.
pkgs/games/eidolon/default.nixnew file+26
This diff is too big to show here.
pkgs/games/endless-sky/default.nix+2−2
This diff is too big to show here.
pkgs/games/endless-sky/fixes.patch−9
This diff is too big to show here.
pkgs/games/frozen-bubble/default.nixnew file+25
This diff is too big to show here.
pkgs/games/frozen-bubble/fix-compilation.patchnew file+33
This diff is too big to show here.
pkgs/games/gcs/default.nix+4−4
This diff is too big to show here.
pkgs/games/gzdoom/default.nix+3−3
This diff is too big to show here.
pkgs/games/hedgewars/default.nix+5−8
This diff is too big to show here.
pkgs/games/minecraft/default.nix+4−2
This diff is too big to show here.
pkgs/games/minetest/default.nix+3−3
This diff is too big to show here.
pkgs/games/openarena/default.nix+11−10
This diff is too big to show here.
pkgs/games/openjk/default.nix+3−3
This diff is too big to show here.
pkgs/games/openmw/tes3mp.nix+6−6
This diff is too big to show here.
pkgs/games/openrct2/default.nix+11−8
This diff is too big to show here.
pkgs/games/openrw/default.nix+8−6
This diff is too big to show here.
pkgs/games/openxcom/default.nix+4−4
This diff is too big to show here.
pkgs/games/openxray/default.nix+2−2
This diff is too big to show here.
pkgs/games/pioneer/default.nix+2−2
This diff is too big to show here.
pkgs/games/quakespasm/vulkan.nix+2−3
This diff is too big to show here.
pkgs/games/redeclipse/default.nix+1−1
This diff is too big to show here.
pkgs/games/sdlmame/default.nixdeleted−42
This diff is too big to show here.
pkgs/games/shattered-pixel-dungeon/default.nixnew file+78
This diff is too big to show here.
pkgs/games/simutrans/default.nix+1−1
This diff is too big to show here.
pkgs/games/steam/chrootenv.nix+2−1
This diff is too big to show here.
pkgs/games/tintin/default.nix+2−2
This diff is too big to show here.
pkgs/games/tome4/default.nix+2−2
This diff is too big to show here.
pkgs/games/widelands/default.nix+3−3
This diff is too big to show here.
pkgs/misc/cups/default.nix+27−6
This diff is too big to show here.
pkgs/misc/cups/filters.nix+2−2
This diff is too big to show here.
pkgs/misc/drivers/hplip/3.16.11.nix+3−3
This diff is too big to show here.
pkgs/misc/drivers/hplip/3.18.5.nix+3−3
This diff is too big to show here.
pkgs/misc/drivers/hplip/default.nix+3−3
This diff is too big to show here.
pkgs/misc/emulators/dolphin-emu/master.nix+3−3
This diff is too big to show here.
pkgs/misc/emulators/epsxe/default.nix+3−7
This diff is too big to show here.
pkgs/misc/emulators/mame/default.nixnew file+59
This diff is too big to show here.
pkgs/misc/emulators/mess/default.nixdeleted−49
This diff is too big to show here.
pkgs/misc/emulators/ppsspp/default.nix+2−2
This diff is too big to show here.
pkgs/misc/emulators/retroarch/cores.nix+566−94
This diff is too big to show here.
pkgs/misc/emulators/retroarch/default.nix+8−4
This diff is too big to show here.
pkgs/misc/emulators/vbam/default.nix+6−5
This diff is too big to show here.
pkgs/misc/ghostscript/default.nix+2−17
This diff is too big to show here.
pkgs/misc/jackaudio/default.nix+5−11
This diff is too big to show here.
pkgs/misc/jackaudio/jack1.nix+3−3
This diff is too big to show here.
pkgs/misc/screensavers/xlockmore/default.nix+2−2
This diff is too big to show here.
pkgs/misc/sndio/default.nix+8−1
This diff is too big to show here.
pkgs/misc/themes/numix-solarized/default.nix+2−2
This diff is too big to show here.
pkgs/misc/tmux-plugins/default.nix+23
This diff is too big to show here.
pkgs/misc/vim-plugins/generated.nix+663−399
This diff is too big to show here.
pkgs/misc/vim-plugins/overrides.nix+10−16
This diff is too big to show here.
pkgs/misc/vim-plugins/update.py+64−21
This diff is too big to show here.
pkgs/misc/vim-plugins/vim-plugin-names+24
This diff is too big to show here.
pkgs/misc/vscode-extensions/cpptools/default.nix+2−2
This diff is too big to show here.
pkgs/misc/vscode-extensions/default.nix+52−3
This diff is too big to show here.
pkgs/misc/vscode-extensions/python/default.nix+5−5
This diff is too big to show here.
pkgs/misc/vscode-extensions/wakatime/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/bsd/netbsd/default.nix+7−2
This diff is too big to show here.
pkgs/os-specific/darwin/osxsnarf/default.nixnew file+24
This diff is too big to show here.
pkgs/os-specific/linux/android-udev-rules/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/apparmor/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/brillo/default.nixnew file+34
This diff is too big to show here.
pkgs/os-specific/linux/brillo/udev-rule.patchnew file+13
This diff is too big to show here.
pkgs/os-specific/linux/busybox/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/digimend/default.nixnew file+45
This diff is too big to show here.
pkgs/os-specific/linux/displaylink/default.nix+7−6
This diff is too big to show here.
pkgs/os-specific/linux/displaylink/udev-installer.patch+2−2
This diff is too big to show here.
pkgs/os-specific/linux/dpdk/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/dropwatch/default.nix+5−6
This diff is too big to show here.
pkgs/os-specific/linux/ell/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/eudev/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/evdi/default.nix+9−6
This diff is too big to show here.
pkgs/os-specific/linux/fbterm/default.nix+3−1
This diff is too big to show here.
pkgs/os-specific/linux/fbterm/select.patchnew file+12
This diff is too big to show here.
pkgs/os-specific/linux/firmware/facetimehd-firmware/default.nix+5−5
This diff is too big to show here.
pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix+5−5
This diff is too big to show here.
pkgs/os-specific/linux/firmware/fwupd/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/firmware/raspberrypi/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/fuse/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/fwts/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/health-check/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/hostapd/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/iwd/default.nix+6−3
This diff is too big to show here.
pkgs/os-specific/linux/kernel/common-config.nix+2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-4.14.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-4.19.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-4.4.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-4.9.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-5.2.nixdeleted−18
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-5.3.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-rpi.nix+5−5
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-testing.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kmod/aggregator.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/ledger-udev-rules/default.nix+3−3
This diff is too big to show here.
pkgs/os-specific/linux/libnl/default.nix+3−9
This diff is too big to show here.
pkgs/os-specific/linux/lm-sensors/default.nix+9−9
This diff is too big to show here.
pkgs/os-specific/linux/lvm2/default.nix+3−1
This diff is too big to show here.
pkgs/os-specific/linux/mbpfan/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/mcelog/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/microcode/intel.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/musl/default.nix+6−6
This diff is too big to show here.
pkgs/os-specific/linux/nftables/default.nix+22−9
This diff is too big to show here.
pkgs/os-specific/linux/odp-dpdk/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/pam_ccreds/default.nix+3−3
This diff is too big to show here.
pkgs/os-specific/linux/pam_ldap/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/s6-linux-utils/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/shadow/default.nix+8−9
This diff is too big to show here.
pkgs/os-specific/linux/sysstat/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/systemd/default.nix+16−5
This diff is too big to show here.
pkgs/os-specific/linux/trace-cmd/default.nix+3−7
This diff is too big to show here.
pkgs/os-specific/linux/trace-cmd/fix-Makefiles.patch+21−38
This diff is too big to show here.
pkgs/os-specific/linux/trace-cmd/kernelshark.nix+9−8
This diff is too big to show here.
pkgs/os-specific/linux/trace-cmd/src.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/trezor-udev-rules/default.nixnew file+33
This diff is too big to show here.
pkgs/os-specific/linux/uclibc/default.nix+3−3
This diff is too big to show here.
pkgs/os-specific/linux/v4l2loopback/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/wpa_supplicant/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/wpa_supplicant/gui.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/xf86-input-cmt/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/windows/default.nix+34−18
This diff is too big to show here.
pkgs/os-specific/windows/mcfgthreads/default.nixnew file+24
This diff is too big to show here.
pkgs/os-specific/windows/mingw-w64/default.nix+4
This diff is too big to show here.
pkgs/servers/amqp/rabbitmq-server/default.nix+2−2
This diff is too big to show here.
pkgs/servers/atlassian/jira.nix+2−2
This diff is too big to show here.
pkgs/servers/bird/default.nix+4−4
This diff is too big to show here.
pkgs/servers/caddy/default.nix+9−3
This diff is too big to show here.
pkgs/servers/clickhouse/default.nix+2−2
This diff is too big to show here.
pkgs/servers/computing/slurm/default.nix+4−3
This diff is too big to show here.
pkgs/servers/couchpotato/default.nix+2−2
This diff is too big to show here.
pkgs/servers/dns/bind/default.nix+2−2
This diff is too big to show here.
pkgs/servers/dns/knot-dns/default.nix+2−2
This diff is too big to show here.
pkgs/servers/documize-community/default.nix+2−2
This diff is too big to show here.
pkgs/servers/foundationdb/cmake.nix+1−1
This diff is too big to show here.
pkgs/servers/foundationdb/default.nix+5−5
This diff is too big to show here.
pkgs/servers/gortr/default.nixnew file+22
This diff is too big to show here.
pkgs/servers/gotify/default.nixnew file+55
This diff is too big to show here.
pkgs/servers/gotify/package.jsonnew file+80
This diff is too big to show here.
pkgs/servers/gotify/ui.nixnew file+25
This diff is too big to show here.
pkgs/servers/gotify/update-yarn-deps.shnew file+20
This diff is too big to show here.
pkgs/servers/gotify/yarndeps.nixnew file+11845
This diff is too big to show here.
pkgs/servers/home-assistant/appdaemon.nix+1−1
This diff is too big to show here.
pkgs/servers/home-assistant/component-packages.nix+14−12
This diff is too big to show here.
pkgs/servers/home-assistant/default.nix+54−33
This diff is too big to show here.
pkgs/servers/home-assistant/esphome.nix+13−10
This diff is too big to show here.
pkgs/servers/home-assistant/frontend.nix+4−2
This diff is too big to show here.
pkgs/servers/http/apache-modules/mod_tile/default.nixnew file+35
This diff is too big to show here.
pkgs/servers/http/apache-modules/mod_wsgi/default.nix+2−2
This diff is too big to show here.
pkgs/servers/http/jetty/default.nix+2−2
This diff is too big to show here.
pkgs/servers/hylafaxplus/default.nix+2−2
This diff is too big to show here.
pkgs/servers/icingaweb2/default.nix+2−2
This diff is too big to show here.
pkgs/servers/irc/charybdis/default.nix+1−1
This diff is too big to show here.
pkgs/servers/jellyfin/default.nix+2−2
This diff is too big to show here.
pkgs/servers/lidarr/default.nix+3−4
This diff is too big to show here.
pkgs/servers/livepeer/default.nix−5
This diff is too big to show here.
pkgs/servers/mail/opensmtpd/default.nix+2−4
This diff is too big to show here.
pkgs/servers/matrix-synapse/default.nix+5−2
This diff is too big to show here.
pkgs/servers/mautrix-telegram/default.nix+10−1
This diff is too big to show here.
pkgs/servers/memcached/default.nix+2−2
This diff is too big to show here.
pkgs/servers/minio/default.nix+5−5
This diff is too big to show here.
pkgs/servers/misc/airsonic/default.nix+2−2
This diff is too big to show here.
pkgs/servers/misc/qremotecontrol-server/default.nixnew file+46
This diff is too big to show here.
pkgs/servers/monitoring/consul-alerts/default.nix+2−2
This diff is too big to show here.
pkgs/servers/monitoring/grafana/default.nix+3−3
This diff is too big to show here.
pkgs/servers/monitoring/loki/default.nix+2−2
This diff is too big to show here.
pkgs/servers/monitoring/plugins/labs_consol_de.nix+1−1
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/blackbox-exporter.nix+4−3
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/default.nix+8−2
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/dnsmasq-exporter-deps.nixdeleted−138
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/dnsmasq-exporter.nix+6−8
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/postgres-exporter.nix+7−7
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/wireguard-exporter.nix+3−3
This diff is too big to show here.
pkgs/servers/monitoring/riemann/default.nix+2−2
This diff is too big to show here.
pkgs/servers/monitoring/sensu-go/default.nix+8−6
This diff is too big to show here.
pkgs/servers/monitoring/zabbix/versions.nix+9−4
This diff is too big to show here.
pkgs/servers/mpd/default.nix+148−134
This diff is too big to show here.
pkgs/servers/mqtt/mosquitto/default.nix+2−2
This diff is too big to show here.
pkgs/servers/mtprotoproxy/default.nix+2−2
This diff is too big to show here.
pkgs/servers/gnatsd/default.nix → pkgs/servers/nats-server/default.nixrenamed+7−8
This diff is too big to show here.
pkgs/servers/nats-streaming-server/default.nix+7−9
This diff is too big to show here.
pkgs/servers/nosql/apache-jena/fuseki-binary.nix+2−2
This diff is too big to show here.
pkgs/servers/nosql/arangodb/default.nix+12−3
This diff is too big to show here.
pkgs/servers/nosql/neo4j/default.nix+2−2
This diff is too big to show here.
pkgs/servers/openafs/1.6/default.nix+1−1
This diff is too big to show here.
pkgs/servers/openafs/1.6/module.nix+1−1
This diff is too big to show here.
pkgs/servers/openafs/1.8/default.nix+1−1
This diff is too big to show here.
pkgs/servers/openafs/1.8/module.nix+1−1
This diff is too big to show here.
pkgs/servers/plex/raw.nix+2−2
This diff is too big to show here.
pkgs/servers/roundcube/0001-Don-t-resolve-symlinks-when-trying-to-find-INSTALL_P.patch+1−1
This diff is too big to show here.
pkgs/servers/roundcube/default.nix+2−2
This diff is too big to show here.
pkgs/servers/rt/default.nix+1−1
This diff is too big to show here.
pkgs/servers/samba/4.x.nix+2−2
This diff is too big to show here.
pkgs/servers/search/elasticsearch/plugins.nix+44−35
This diff is too big to show here.
pkgs/servers/search/groonga/default.nix+2−2
This diff is too big to show here.
pkgs/servers/search/solr/8.x.nix+2−2
This diff is too big to show here.
pkgs/servers/shairport-sync/default.nix+2−2
This diff is too big to show here.
pkgs/servers/shellinabox/default.nix+11−4
This diff is too big to show here.
pkgs/servers/sonarr/default.nix+1−3
This diff is too big to show here.
pkgs/servers/sql/mariadb/cmake-libmariadb-includedir.patchdeleted−21
This diff is too big to show here.
pkgs/servers/sql/mariadb/connector-c/3_1.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/mariadb/connector-c/default.nix+11−6
This diff is too big to show here.
pkgs/servers/sql/mariadb/default.nix+30−46
This diff is too big to show here.
pkgs/servers/sql/mariadb/galera/default.nix+1−1
This diff is too big to show here.
pkgs/servers/sql/pgbouncer/default.nix+6−4
This diff is too big to show here.
pkgs/servers/sql/postgresql/default.nix+21−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/pg_auto_failover.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/pg_hll.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/pg_partman.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/pg_topn.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/pgroonga.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/postgis.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/ext/timescaledb.nix+3−3
This diff is too big to show here.
pkgs/servers/tautulli/default.nix+2−2
This diff is too big to show here.
pkgs/servers/tmate-ssh-server/default.nixnew file+29
This diff is too big to show here.
pkgs/servers/trezord/default.nix+3−4
This diff is too big to show here.
pkgs/servers/trickster/trickster.nixnew file+27
This diff is too big to show here.
pkgs/servers/trickster/trickster_deps.nixnew file+237
This diff is too big to show here.
pkgs/servers/varnish/default.nix+14−18
This diff is too big to show here.
pkgs/servers/varnish/digest.nix+2
This diff is too big to show here.
pkgs/servers/varnish/dynamic.nix+3−3
This diff is too big to show here.
pkgs/servers/varnish/geoip.nixdeleted−31
This diff is too big to show here.
pkgs/servers/varnish/modules.nix+2−2
This diff is too big to show here.
pkgs/servers/varnish/packages.nix+9−16
This diff is too big to show here.
pkgs/servers/varnish/rtstatus.nixdeleted−21
This diff is too big to show here.
pkgs/servers/web-apps/dokuwiki/default.nixnew file+26
This diff is too big to show here.
pkgs/servers/web-apps/fileshelter/default.nix+6−6
This diff is too big to show here.
pkgs/servers/web-apps/matomo/default.nix+24−5
This diff is too big to show here.
pkgs/servers/web-apps/mediawiki/default.nix+2−2
This diff is too big to show here.
pkgs/servers/web-apps/moodle/default.nix+2−2
This diff is too big to show here.
pkgs/servers/web-apps/shiori/default.nix+1−1
This diff is too big to show here.
pkgs/servers/web-apps/wordpress/default.nix+2−2
This diff is too big to show here.
pkgs/servers/x11/xorg/default.nix+15−15
This diff is too big to show here.
pkgs/servers/x11/xorg/tarballs.list+5−5
This diff is too big to show here.
pkgs/servers/zoneminder/default.nix+3−3
This diff is too big to show here.
pkgs/shells/bash/bash-completion/0001-Revert-build-Do-cmake-pc-and-profile-variable-replac.patchnew file+86
This diff is too big to show here.
pkgs/shells/bash/bash-completion/default.nix+31−6
This diff is too big to show here.
pkgs/shells/fish/default.nix+6−6
This diff is too big to show here.
pkgs/shells/nushell/default.nixnew file+51
This diff is too big to show here.
pkgs/shells/oh/default.nix+7−1
This diff is too big to show here.
pkgs/shells/oil/default.nix+3−12
This diff is too big to show here.
pkgs/shells/xonsh/default.nix+2−2
This diff is too big to show here.
pkgs/shells/zsh/antibody/default.nix+4−4
This diff is too big to show here.
pkgs/shells/zsh/fzf-zsh/default.nixnew file+37
This diff is too big to show here.
pkgs/shells/zsh/grml-zsh-config/default.nix+2−2
This diff is too big to show here.
pkgs/shells/zsh/oh-my-zsh/default.nix+3−3
This diff is too big to show here.
pkgs/shells/zsh/zsh-history-substring-search/default.nix+2−2
This diff is too big to show here.
pkgs/stdenv/generic/check-meta.nix+3−3
This diff is too big to show here.
pkgs/stdenv/linux/make-bootstrap-tools.nix+19−10
This diff is too big to show here.
pkgs/tools/X11/caffeine-ng/default.nix+6−1
This diff is too big to show here.
pkgs/tools/X11/dragon-drop/default.nix+3−4
This diff is too big to show here.
pkgs/tools/X11/wpgtk/default.nix+2−2
This diff is too big to show here.
pkgs/tools/X11/x11spice/default.nixnew file+36
This diff is too big to show here.
pkgs/tools/X11/xdg-utils/default.nix+1
This diff is too big to show here.
pkgs/tools/X11/xob/default.nixnew file+35
This diff is too big to show here.
pkgs/tools/X11/xzoom/default.nix+3−3
This diff is too big to show here.
pkgs/tools/admin/aws_shell/default.nix+5−8
This diff is too big to show here.
pkgs/tools/admin/awscli/default.nix+8−14
This diff is too big to show here.
pkgs/tools/admin/awslogs/default.nix+1−1
This diff is too big to show here.
pkgs/tools/admin/berglas/default.nix+4−4
This diff is too big to show here.
pkgs/tools/admin/boulder/default.nixnew file+33
This diff is too big to show here.
pkgs/tools/admin/certbot/0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patchnew file+60
This diff is too big to show here.
pkgs/tools/admin/certbot/0001-pebble_artifacts-hardcode-pebble-location.patchnew file+24
This diff is too big to show here.
pkgs/tools/admin/certbot/default.nix+31−8
This diff is too big to show here.
pkgs/tools/admin/eksctl/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/elasticsearch-curator/default.nix → pkgs/tools/admin/elasticsearch-curator/default.nixrenamed+32−24
This diff is too big to show here.
pkgs/tools/admin/google-cloud-sdk/default.nix+4−4
This diff is too big to show here.
pkgs/tools/admin/pebble/default.nixnew file+26
This diff is too big to show here.
pkgs/tools/admin/procs/default.nix+3−3
This diff is too big to show here.
pkgs/tools/admin/pulumi/data.nixnew file+51
This diff is too big to show here.
pkgs/tools/admin/pulumi/default.nix+9−18
This diff is too big to show here.
pkgs/tools/admin/pulumi/update.shnew file+55
This diff is too big to show here.
pkgs/tools/admin/simp_le/default.nix+2−4
This diff is too big to show here.
pkgs/tools/archivers/innoextract/default.nix+2−2
This diff is too big to show here.
pkgs/tools/archivers/snzip/default.nixnew file+31
This diff is too big to show here.
pkgs/tools/archivers/unrar/default.nix+2−2
This diff is too big to show here.
pkgs/tools/audio/abcmidi/default.nix+2−2
This diff is too big to show here.
pkgs/tools/audio/essentia-extractor/default.nixnew file+41
This diff is too big to show here.
pkgs/tools/audio/video2midi/default.nix+2−2
This diff is too big to show here.
pkgs/tools/backup/btrbk/default.nix+6−6
This diff is too big to show here.
pkgs/tools/backup/bup/default.nix+2−2
This diff is too big to show here.
pkgs/tools/backup/lvmsync/default.nix+1−1
This diff is too big to show here.
pkgs/tools/backup/s3ql/default.nix+2−2
This diff is too big to show here.
pkgs/tools/backup/zfsbackup/default.nixnew file+25
This diff is too big to show here.
pkgs/tools/backup/zfsbackup/deps.nixnew file+273
This diff is too big to show here.
pkgs/applications/misc/cdrtools/default.nix → pkgs/tools/cd-dvd/cdrtools/default.nixrenamed+9−9
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/default.nix+30−27
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/dvd+rw-tools-7.0-dvddl.patchdeleted−13
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/dvd+rw-tools-7.0-glibc2.6.90.patchdeleted−11
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/dvd+rw-tools-7.0-wctomb.patchdeleted−11
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/dvd+rw-tools-7.0-wexit.patchdeleted−11
This diff is too big to show here.
pkgs/tools/cd-dvd/dvd+rw-tools/dvd+rw-tools-7.1-layerbreaksetup.patchdeleted−93
This diff is too big to show here.
pkgs/tools/cd-dvd/isomd5sum/default.nixnew file+38
This diff is too big to show here.
pkgs/tools/cd-dvd/srt-to-vtt-cl/default.nixnew file+32
This diff is too big to show here.
pkgs/tools/cd-dvd/srt-to-vtt-cl/fix-validation.patchnew file+13
This diff is too big to show here.
pkgs/tools/cd-dvd/xorriso/default.nix+3−2
This diff is too big to show here.
pkgs/tools/compression/gzrt/default.nix+3−3
This diff is too big to show here.
pkgs/tools/compression/zstd/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/btrfs-progs/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/ceph/default.nix+17−18
This diff is too big to show here.
pkgs/tools/filesystems/e2fsprogs/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/gitfs/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/glusterfs/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/gocryptfs/default.nix+2−6
This diff is too big to show here.
pkgs/tools/filesystems/gocryptfs/deps.nix+15−6
This diff is too big to show here.
pkgs/tools/filesystems/gocryptfs/fix-unix2syscall_darwin.go-build-failure.patchdeleted−14
This diff is too big to show here.
pkgs/tools/filesystems/lizardfs/default.nix+17−28
This diff is too big to show here.
pkgs/tools/filesystems/lizardfs/remove-download-external.patchdeleted−25
This diff is too big to show here.
pkgs/tools/filesystems/mergerfs/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/mtdutils/default.nix+13−11
This diff is too big to show here.
pkgs/tools/filesystems/nixpart/0.4/pykickstart.nix−1
This diff is too big to show here.
pkgs/tools/filesystems/nixpart/default.nix−1
This diff is too big to show here.
pkgs/tools/filesystems/orangefs/default.nixnew file+61
This diff is too big to show here.
pkgs/tools/filesystems/s3backer/default.nix+2−2
This diff is too big to show here.
pkgs/tools/filesystems/squashfs-tools-ng/0001-Fix-build-on-BSD-systems.patchnew file+103
This diff is too big to show here.
pkgs/tools/filesystems/squashfs-tools-ng/default.nixnew file+26
This diff is too big to show here.
pkgs/tools/filesystems/sshfs-fuse/default.nix+8−3
This diff is too big to show here.
pkgs/tools/graphics/gmic/default.nix+2−2
This diff is too big to show here.
pkgs/tools/graphics/jhead/default.nix+14−1
This diff is too big to show here.
pkgs/tools/graphics/jpegexiforient/default.nixnew file+27
This diff is too big to show here.
pkgs/tools/graphics/pfstools/default.nix+19−6
This diff is too big to show here.
pkgs/tools/graphics/pfstools/pfsalign.patchnew file+12
This diff is too big to show here.
pkgs/tools/graphics/shotgun/default.nixnew file+28
This diff is too big to show here.
pkgs/tools/graphics/wallutils/default.nix+2−2
This diff is too big to show here.
pkgs/tools/graphics/wallutils/lscollection-Add-NixOS-paths-to-DefaultWallpaperDirectories.patch+15−14
This diff is too big to show here.
pkgs/tools/graphics/wdisplays/default.nixnew file+24
This diff is too big to show here.
pkgs/tools/inputmethods/fcitx/fcitx-configtool.nix+8
This diff is too big to show here.
pkgs/tools/inputmethods/ibus-engines/ibus-typing-booster/default.nix+2−2
This diff is too big to show here.
pkgs/tools/inputmethods/libinput-gestures/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/birdfont/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/broot/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/calamares/default.nix+5−5
This diff is too big to show here.
pkgs/tools/misc/chezmoi/default.nix+16−8
This diff is too big to show here.
pkgs/tools/misc/chezmoi/deps.nixdeleted−507
This diff is too big to show here.
pkgs/tools/misc/clipman/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/colord-gtk/default.nix+49−10
This diff is too big to show here.
pkgs/tools/misc/colord/default.nix+7
This diff is too big to show here.
pkgs/tools/misc/cutecom/default.nix+18−14
This diff is too big to show here.
pkgs/tools/misc/diffoscope/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/dust/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/ethtool/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/eva/Cargo.lock.patchnew file+454
This diff is too big to show here.
pkgs/tools/misc/eva/default.nixnew file+24
This diff is too big to show here.
pkgs/tools/misc/execline/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/fdupes/default.nix+1−1
This diff is too big to show here.
pkgs/tools/misc/ffsend/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/file/default.nix+9−1
This diff is too big to show here.
pkgs/tools/misc/fluent-bit/default.nix+6−6
This diff is too big to show here.
pkgs/tools/misc/fselect/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/misc/geekbench/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/graylog/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/hdf5/default.nix+4−1
This diff is too big to show here.
pkgs/tools/misc/html-proofer/Gemfile.lock+5−5
This diff is too big to show here.
pkgs/tools/misc/html-proofer/gemset.nix+8−8
This diff is too big to show here.
pkgs/tools/misc/latex2html/default.nix+7−8
This diff is too big to show here.
pkgs/tools/misc/licensor/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/misc/lorri/default.nixnew file+56
This diff is too big to show here.
pkgs/tools/misc/lorri/runtime-closure.nix.templatenew file+37
This diff is too big to show here.
pkgs/tools/misc/lorri/runtime.nixnew file+33
This diff is too big to show here.
pkgs/tools/misc/man-db/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/marlin-calc/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/mbuffer/default.nix+4−3
This diff is too big to show here.
pkgs/tools/misc/ostree/default.nix+8−2
This diff is too big to show here.
pkgs/tools/misc/parallel/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/pazi/cargo-lock.patchdeleted−13
This diff is too big to show here.
pkgs/tools/misc/pazi/default.nix+3−5
This diff is too big to show here.
pkgs/tools/misc/peruse/default.nix+2
This diff is too big to show here.
pkgs/tools/misc/pg_flame/default.nixnew file+22
This diff is too big to show here.
pkgs/tools/misc/pgmetrics/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/phoronix-test-suite/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/pkgdiff/default.nixnew file+32
This diff is too big to show here.
pkgs/tools/misc/pspg/default.nix+5−7
This diff is too big to show here.
pkgs/tools/misc/q-text-as-data/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/qt5ct/default.nix+3−6
This diff is too big to show here.
pkgs/tools/misc/s6-portable-utils/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/scfbuild/default.nix+13−3
This diff is too big to show here.
pkgs/tools/misc/scfbuild/python-3.patchnew file+46
This diff is too big to show here.
pkgs/tools/misc/shadowenv/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/snapper/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/starship/default.nix+3−3
This diff is too big to show here.
pkgs/tools/misc/svtplay-dl/default.nix−1
This diff is too big to show here.
pkgs/tools/misc/system-config-printer/default.nix+26−23
This diff is too big to show here.
pkgs/tools/misc/tealdeer/default.nix+8−5
This diff is too big to show here.
pkgs/tools/misc/tmate/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/topgrade/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/misc/toybox/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/trac/default.nixnew file+53
This diff is too big to show here.
pkgs/tools/misc/ttygif/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/misc/units/default.nix+26−2
This diff is too big to show here.
pkgs/tools/misc/vector/default.nixnew file+41
This diff is too big to show here.
pkgs/tools/misc/venus/default.nix+9−11
This diff is too big to show here.
pkgs/tools/misc/vimpager/build.nix+1−1
This diff is too big to show here.
pkgs/tools/misc/vimwiki-markdown/default.nixnew file+28
This diff is too big to show here.
pkgs/tools/misc/wagyu/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/misc/wakatime/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/watchexec/default.nix+11−4
This diff is too big to show here.
pkgs/tools/misc/wob/default.nixnew file+32
This diff is too big to show here.
pkgs/tools/misc/yad/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/you-get/default.nix+2−2
This diff is too big to show here.
pkgs/tools/misc/youtube-dl/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/acme-client/default.nix+13−15
This diff is too big to show here.
pkgs/tools/networking/aria2/default.nix+3−11
This diff is too big to show here.
pkgs/tools/networking/bgpdump/default.nix+8−7
This diff is too big to show here.
pkgs/tools/networking/cadaver/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/circus/default.nix → pkgs/tools/networking/circus/default.nixrenamed+8−6
This diff is too big to show here.
pkgs/tools/networking/cloud-custodian/default.nixnew file+48
This diff is too big to show here.
pkgs/tools/networking/croc/default.nix+3−3
This diff is too big to show here.
pkgs/tools/networking/dhcpcd/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/dnsmasq/default.nix+10−1
This diff is too big to show here.
pkgs/tools/networking/dnsproxy/default.nixnew file+23
This diff is too big to show here.
pkgs/tools/networking/eternal-terminal/default.nix+13−7
This diff is too big to show here.
pkgs/tools/networking/flannel/default.nix−2
This diff is too big to show here.
pkgs/tools/networking/gandi-cli/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/gmrender-resurrect/default.nix+38−38
This diff is too big to show here.
pkgs/tools/networking/go-shadowsocks2/default.nixnew file+24
This diff is too big to show here.
pkgs/tools/networking/go-shadowsocks2/deps.nixnew file+30
This diff is too big to show here.
pkgs/tools/networking/haproxy/default.nix+26−16
This diff is too big to show here.
pkgs/tools/networking/http-prompt/default.nix+4−5
This diff is too big to show here.
pkgs/tools/networking/i2pd/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/ipv6calc/default.nix+17−14
This diff is too big to show here.
pkgs/tools/networking/keepalived/default.nix+11−3
This diff is too big to show here.
pkgs/tools/networking/mitmproxy/default.nix+3−1
This diff is too big to show here.
pkgs/tools/networking/modem-manager/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/mtr/default.nix+9−1
This diff is too big to show here.
pkgs/tools/networking/mu/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/network-manager/default.nix+3−11
This diff is too big to show here.
pkgs/tools/networking/network-manager/fix-paths.patch+24−2
This diff is too big to show here.
pkgs/tools/networking/network-manager/openconnect/default.nix+39−9
This diff is too big to show here.
pkgs/tools/networking/nfstrace/default.nixnew file+37
This diff is too big to show here.
pkgs/tools/networking/ngrok-2/default.nix−3
This diff is too big to show here.
pkgs/tools/networking/ngrok-2/versions.json+15−15
This diff is too big to show here.
pkgs/tools/networking/nss-pam-ldapd/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/offlineimap/default.nix+4−4
This diff is too big to show here.
pkgs/tools/networking/openapi-generator-cli/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/openconnect/default.nix+16−9
This diff is too big to show here.
pkgs/tools/networking/openssh/default.nix+9−7
This diff is too big to show here.
pkgs/tools/networking/openvpn/update-systemd-resolved.nixnew file+34
This diff is too big to show here.
pkgs/tools/networking/p2p/amule/default.nix+5
This diff is too big to show here.
pkgs/tools/networking/phodav/default.nix+9−5
This diff is too big to show here.
pkgs/tools/networking/s6-dns/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/s6-networking/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/slirp4netns/default.nix+5−5
This diff is too big to show here.
pkgs/tools/networking/smokeping/default.nix+1
This diff is too big to show here.
pkgs/tools/networking/sshoogr/default.nixnew file+36
This diff is too big to show here.
pkgs/tools/networking/sshping/default.nixnew file+31
This diff is too big to show here.
pkgs/tools/networking/strongswan/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/surfraw/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/swaks/default.nix+4−6
This diff is too big to show here.
pkgs/tools/networking/tcpdump/default.nix+4−11
This diff is too big to show here.
pkgs/tools/networking/tdns-cli/default.nixnew file+22
This diff is too big to show here.
pkgs/tools/networking/tinyfecvpn/default.nixnew file+37
This diff is too big to show here.
pkgs/tools/networking/tridactyl-native/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/twa/default.nix+16−4
This diff is too big to show here.
pkgs/tools/networking/unbound/default.nix+9−2
This diff is too big to show here.
pkgs/tools/networking/wifite2/default.nixnew file+40
This diff is too big to show here.
pkgs/tools/networking/wireguard-tools/default.nix+3−3
This diff is too big to show here.
pkgs/tools/networking/xl2tpd/default.nix+2−2
This diff is too big to show here.
pkgs/tools/networking/yggdrasil/change-runtime-dir.patchnew file+12
This diff is too big to show here.
pkgs/tools/networking/yggdrasil/default.nixnew file+37
This diff is too big to show here.
pkgs/tools/nix/nixpkgs-fmt/default.nix+3−3
This diff is too big to show here.
pkgs/tools/package-management/apt/default.nix+18−19
This diff is too big to show here.
pkgs/tools/package-management/cargo-audit/default.nix+3−3
This diff is too big to show here.
pkgs/tools/package-management/cargo-deb/default.nixnew file+25
This diff is too big to show here.
pkgs/tools/package-management/home-manager/default.nix+3−3
This diff is too big to show here.
pkgs/tools/package-management/nfpm/default.nix+5−3
This diff is too big to show here.
pkgs/tools/package-management/nix-review/default.nix+2−2
This diff is too big to show here.
pkgs/tools/package-management/nix-serve/default.nix+1−1
This diff is too big to show here.
pkgs/tools/package-management/nix/default.nix+5−5
This diff is too big to show here.
pkgs/tools/package-management/protontricks/default.nix+2−2
This diff is too big to show here.