Merge branch 'master' into postgresql-tests
commite57cf5efd110e33fcce675b24d3f06f7739c5940
authorTomasz Czyż <tomasz.czyz@gmail.com>
dateFri 7 Apr 2017, 10:28 (10 years ago)
parentab22a0878adf18
3308 files changed+100274−61566
308 more files changed are not listed.
.mention-bot+2−1
@@ -2,7 +2,8 @@
22 "userBlacklist": [
33 "civodul",
44 "jhasse",
5− "shlevy"
5+ "shlevy",
6+ "bbenoist"
67 ],
78 "alwaysNotifyForPaths": [
89 { "name": "FRidh", "files": ["pkgs/top-level/python-packages.nix", "pkgs/development/interpreters/python/*", "pkgs/development/python-modules/*" ] },
.travis.yml+12−1
@@ -1,8 +1,14 @@
11language: nix
2+sudo: true
3+# 'sudo: false' == containers that start fast, but only get 4G ram;
4+# 'sudo: true' == VMs that start slow, but with 8G
5+# ..as per: https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments
6+# Nixpkgs PR tests OOM with 4G: https://github.com/NixOS/nixpkgs/issues/24200
7+
28matrix:
39 include:
410 - os: linux
5− sudo: false
11+ sudo: required
612 script:
713 - ./maintainers/scripts/travis-nox-review-pr.sh nixpkgs-verify nixpkgs-manual nixpkgs-tarball nixpkgs-unstable
814 - ./maintainers/scripts/travis-nox-review-pr.sh nixos-options nixos-manual
@@ -18,3 +24,8 @@ matrix:
1824env:
1925 global:
2026 - GITHUB_TOKEN=5edaaf1017f691ed34e7f80878f8f5fbd071603f
27+
28+notifications:
29+ email:
30+ on_success: never
31+ on_failure: change
.version+1−1
@@ -1 +1 @@
1−17.03
1+17.09
README.md+4−4
@@ -13,12 +13,12 @@ build daemon as so-called channels. To get channel information via git, add
1313```
1414
1515For stability and maximum binary package support, it is recommended to maintain
16−custom changes on top of one of the channels, e.g. `nixos-16.09` for the latest
16+custom changes on top of one of the channels, e.g. `nixos-17.03` for the latest
1717release and `nixos-unstable` for the latest successful build of master:
1818
1919```
2020% git remote update channels
21−% git rebase channels/nixos-16.09
21+% git rebase channels/nixos-17.03
2222```
2323
2424For pull-requests, please rebase onto nixpkgs `master`.
@@ -32,9 +32,9 @@ For pull-requests, please rebase onto nixpkgs `master`.
3232* [Manual (NixOS)](https://nixos.org/nixos/manual/)
3333* [Nix Wiki](https://nixos.org/wiki/) (deprecated, see milestone ["Move the Wiki!"](https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22Move+the+wiki%21%22))
3434* [Continuous package builds for unstable/master](https://hydra.nixos.org/jobset/nixos/trunk-combined)
35−* [Continuous package builds for 16.09 release](https://hydra.nixos.org/jobset/nixos/release-16.09)
35+* [Continuous package builds for 17.03 release](https://hydra.nixos.org/jobset/nixos/release-17.03)
3636* [Tests for unstable/master](https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents)
37−* [Tests for 16.09 release](https://hydra.nixos.org/job/nixos/release-16.09/tested#tabs-constituents)
37+* [Tests for 17.03 release](https://hydra.nixos.org/job/nixos/release-17.03/tested#tabs-constituents)
3838
3939Communication:
4040
default.nix+11−1
@@ -2,7 +2,17 @@ let requiredVersion = import ./lib/minver.nix; in
22
33if ! builtins ? nixVersion || builtins.compareVersions requiredVersion builtins.nixVersion == 1 then
44
5− abort "This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade! See https://nixos.org/wiki/How_to_update_when_Nix_is_too_old_to_evaluate_Nixpkgs"
5+ abort ''
6+
7+ This version of Nixpkgs requires Nix >= ${requiredVersion}, please upgrade:
8+
9+ - If you are running NixOS, use `nixos-rebuild' to upgrade your system.
10+
11+ - If you installed Nix using the install script (https://nixos.org/nix/install),
12+ it is safe to upgrade by running it again:
13+
14+ curl https://nixos.org/nix/install | sh
15+ ''
616
717else
818
doc/configuration.xml+179−41
@@ -4,83 +4,221 @@
44
55<title>Global configuration</title>
66
7−<para>Nix packages can be configured to allow or deny certain options.</para>
7+<para>Nix comes with certain defaults about what packages can and
8+cannot be installed, based on a package's metadata. By default, Nix
9+will prevent installation if any of the following criteria are
10+true:</para>
811
9−<para>To apply the configuration edit
10−<filename>~/.config/nixpkgs/config.nix</filename> and set it like
12+<itemizedlist>
13+ <listitem><para>The package is thought to be broken, and has had
14+ its <literal>meta.broken</literal> set to
15+ <literal>true</literal>.</para></listitem>
16+
17+ <listitem><para>The package's <literal>meta.license</literal> is set
18+ to a license which is considered to be unfree.</para></listitem>
19+
20+ <listitem><para>The package has known security vulnerabilities but
21+ has not or can not be updated for some reason, and a list of issues
22+ has been entered in to the package's
23+ <literal>meta.knownVulnerabilities</literal>.</para></listitem>
24+</itemizedlist>
25+
26+<para>Note that all this is checked during evaluation already,
27+and the check includes any package that is evaluated.
28+In particular, all build-time dependencies are checked.
29+<literal>nix-env -qa</literal> will (attempt to) hide any packages
30+that would be refused.
31+</para>
32+
33+<para>Each of these criteria can be altered in the nixpkgs
34+configuration.</para>
35+
36+<para>The nixpkgs configuration for a NixOS system is set in the
37+<literal>configuration.nix</literal>, as in the following example:
38+<programlisting>
39+{
40+ nixpkgs.config = {
41+ allowUnfree = true;
42+ };
43+}
44+</programlisting>
45+However, this does not allow unfree software for individual users.
46+Their configurations are managed separately.</para>
1147
48+<para>A user's of nixpkgs configuration is stored in a user-specific
49+configuration file located at
50+<filename>~/.config/nixpkgs/config.nix</filename>. For example:
1251<programlisting>
1352{
1453 allowUnfree = true;
1554}
1655</programlisting>
56+</para>
1757
18−and will allow the Nix package manager to install unfree licensed packages.</para>
58+<section xml:id="sec-allow-broken">
59+ <title>Installing broken packages</title>
1960
20−<para>The configuration as listed also applies to NixOS under
21−<option>nixpkgs.config</option> set.</para>
2261
23−<itemizedlist>
62+ <para>There are two ways to try compiling a package which has been
63+ marked as broken.</para>
2464
25− <listitem>
26− <para>Allow installing of packages that are distributed under
27− unfree license by setting <programlisting>allowUnfree =
28− true;</programlisting> or deny them by setting it to
29− <literal>false</literal>.</para>
65+ <itemizedlist>
66+ <listitem><para>
67+ For allowing the build of a broken package once, you can use an
68+ environment variable for a single invocation of the nix tools:
3069
31− <para>Same can be achieved by setting the environment variable:
70+ <programlisting>$ export NIXPKGS_ALLOW_BROKEN=1</programlisting>
71+ </para></listitem>
72+
73+ <listitem><para>
74+ For permanently allowing broken packages to be built, you may
75+ add <literal>allowBroken = true;</literal> to your user's
76+ configuration file, like this:
3277
3378<programlisting>
34−$ export NIXPKGS_ALLOW_UNFREE=1
79+{
80+ allowBroken = true;
81+}
3582</programlisting>
83+ </para></listitem>
84+ </itemizedlist>
85+</section>
86+
87+<section xml:id="sec-allow-unfree">
88+ <title>Installing unfree packages</title>
3689
37− </para>
38− </listitem>
90+ <para>There are several ways to tweak how Nix handles a package
91+ which has been marked as unfree.</para>
3992
40− <listitem>
41− <para>Whenever unfree packages are not allowed, single packages
42− can still be allowed by a predicate function that accepts package
43− as an argument and should return a boolean:
93+ <itemizedlist>
94+ <listitem><para>
95+ To temporarily allow all unfree packages, you can use an
96+ environment variable for a single invocation of the nix tools:
4497
98+ <programlisting>$ export NIXPKGS_ALLOW_UNFREE=1</programlisting>
99+ </para></listitem>
100+
101+ <listitem><para>
102+ It is possible to permanently allow individual unfree packages,
103+ while still blocking unfree packages by default using the
104+ <literal>allowUnfreePredicate</literal> configuration
105+ option in the user configuration file.</para>
106+
107+ <para>This option is a function which accepts a package as a
108+ parameter, and returns a boolean. The following example
109+ configuration accepts a package and always returns false:
45110<programlisting>
46−allowUnfreePredicate = (pkg: ...);
111+{
112+ allowUnfreePredicate = (pkg: false);
113+}
47114</programlisting>
115+ </para>
48116
49− Example to allow flash player and visual studio code only:
117+ <para>A more useful example, the following configuration allows
118+ only allows flash player and visual studio code:
50119
51120<programlisting>
52−allowUnfreePredicate = with builtins; (pkg: elem (parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);
121+{
122+ allowUnfreePredicate = (pkg: elem (builtins.parseDrvName pkg.name).name [ "flashplayer" "vscode" ]);
123+}
53124</programlisting>
125+ </para></listitem>
54126
55− </para>
56− </listitem>
127+ <listitem>
128+ <para>It is also possible to whitelist and blacklist licenses
129+ that are specifically acceptable or not acceptable, using
130+ <literal>whitelistedLicenses</literal> and
131+ <literal>blacklistedLicenses</literal>, respectively.
132+ </para>
57133
58− <listitem>
59− <para>Whenever unfree packages are not allowed, packages can still
60− be whitelisted by their license:
134+ <para>The following example configuration whitelists the
135+ licenses <literal>amd</literal> and <literal>wtfpl</literal>:
61136
62137<programlisting>
63−whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
138+{
139+ whitelistedLicenses = with stdenv.lib.licenses; [ amd wtfpl ];
140+}
64141</programlisting>
65− </para>
66− </listitem>
142+ </para>
67143
68− <listitem>
69− <para>In addition to whitelisting licenses which are denied by the
70− <literal>allowUnfree</literal> setting, you can also explicitely
71− deny installation of packages which have a certain license:
144+ <para>The following example configuration blacklists the
145+ <literal>gpl3</literal> and <literal>agpl3</literal> licenses:
72146
73147<programlisting>
74−blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ];
148+{
149+ blacklistedLicenses = with stdenv.lib.licenses; [ agpl3 gpl3 ];
150+}
75151</programlisting>
76− </para>
77− </listitem>
152+ </para>
153+ </listitem>
154+ </itemizedlist>
155+
156+ <para>A complete list of licenses can be found in the file
157+ <filename>lib/licenses.nix</filename> of the nixpkgs tree.</para>
158+</section>
78159
79−</itemizedlist>
80160
81−<para>A complete list of licenses can be found in the file
82−<filename>lib/licenses.nix</filename> of the nix package tree.</para>
161+<section xml:id="sec-allow-insecure">
162+ <title>
163+ Installing insecure packages
164+ </title>
83165
166+ <para>There are several ways to tweak how Nix handles a package
167+ which has been marked as insecure.</para>
168+
169+ <itemizedlist>
170+ <listitem><para>
171+ To temporarily allow all insecure packages, you can use an
172+ environment variable for a single invocation of the nix tools:
173+
174+ <programlisting>$ export NIXPKGS_ALLOW_INSECURE=1</programlisting>
175+ </para></listitem>
176+
177+ <listitem><para>
178+ It is possible to permanently allow individual insecure
179+ packages, while still blocking other insecure packages by
180+ default using the <literal>permittedInsecurePackages</literal>
181+ configuration option in the user configuration file.</para>
182+
183+ <para>The following example configuration permits the
184+ installation of the hypothetically insecure package
185+ <literal>hello</literal>, version <literal>1.2.3</literal>:
186+<programlisting>
187+{
188+ permittedInsecurePackages = [
189+ "hello-1.2.3"
190+ ];
191+}
192+</programlisting>
193+ </para>
194+ </listitem>
195+
196+ <listitem><para>
197+ It is also possible to create a custom policy around which
198+ insecure packages to allow and deny, by overriding the
199+ <literal>allowInsecurePredicate</literal> configuration
200+ option.</para>
201+
202+ <para>The <literal>allowInsecurePredicate</literal> option is a
203+ function which accepts a package and returns a boolean, much
204+ like <literal>allowUnfreePredicate</literal>.</para>
205+
206+ <para>The following configuration example only allows insecure
207+ packages with very short names:
208+
209+<programlisting>
210+{
211+ allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) <= 5);
212+}
213+</programlisting>
214+ </para>
215+
216+ <para>Note that <literal>permittedInsecurePackages</literal> is
217+ only checked if <literal>allowInsecurePredicate</literal> is not
218+ specified.
219+ </para></listitem>
220+ </itemizedlist>
221+</section>
84222
85223<!--============================================================-->
86224
doc/default.nix+4
@@ -68,6 +68,10 @@ pkgs.stdenv.mkDerivation {
6868 inputFile = ../pkgs/development/r-modules/README.md;
6969 outputFile = "languages-frameworks/r.xml";
7070 }
71+ + toDocbook {
72+ inputFile = ./languages-frameworks/rust.md;
73+ outputFile = "./languages-frameworks/rust.xml";
74+ }
7175 + toDocbook {
7276 inputFile = ./languages-frameworks/vim.md;
7377 outputFile = "./languages-frameworks/vim.xml";
doc/functions.xml+18−2
@@ -133,7 +133,7 @@
133133 <varname>stdenv.mkDerivation</varname>, are defined using this
134134 function, which means most packages in the nixpkgs expression,
135135 <varname>pkgs</varname>, have this function.
136− </para>
136+ </para>
137137
138138 <para>
139139 Example usage:
@@ -228,7 +228,7 @@
228228 ] name)</code> from the <literal>INI</literal> generator. It gets the name
229229 of a section and returns a sanitized name. The default
230230 <literal>mkSectionName</literal> escapes <literal>[</literal> and
231− <literal>]</literal> with a backslash.
231+ <literal>]</literal> with a backslash.
232232 </para>
233233
234234 <note><para>Nix store paths can be converted to strings by enclosing a
@@ -524,6 +524,22 @@
524524 using its <varname>buildArgs</varname> attribute.
525525 </para>
526526
527+
528+
529+ <note>
530+ <para>
531+ If you see errors similar to <literal>getProtocolByName: does not exist (no such protocol name: tcp)</literal>
532+ you may need to add <literal>pkgs.iana-etc</literal> to <varname>contents</varname>.
533+ </para>
534+ </note>
535+
536+ <note>
537+ <para>
538+ If you see errors similar to <literal>Error_Protocol ("certificate has unknown CA",True,UnknownCa)</literal>
539+ you may need to add <literal>pkgs.cacert</literal> to <varname>contents</varname>.
540+ </para>
541+ </note>
542+
527543</section>
528544
529545<section xml:id="ssec-pkgs-dockerTools-fetchFromRegistry">
doc/languages-frameworks/haskell.md+4−5
@@ -823,10 +823,10 @@ alternative implemention for Integer called
823823[integer-simple](http://hackage.haskell.org/package/integer-simple).
824824
825825To get a GHC compiler build with `integer-simple` instead of `integer-gmp` use
826−the attribute: `pkgs.haskell.compiler.integer-simple."${ghcVersion}"`.
826+the attribute: `haskell.compiler.integer-simple."${ghcVersion}"`.
827827For example:
828828
829− $ nix-build -E '(import <nixpkgs> {}).pkgs.haskell.compiler.integer-simple.ghc802'
829+ $ nix-build -E '(import <nixpkgs> {}).haskell.compiler.integer-simple.ghc802'
830830 ...
831831 $ result/bin/ghc-pkg list | grep integer
832832 integer-simple-0.1.1.1
@@ -838,7 +838,6 @@ The following command displays the complete list of GHC compilers build with `in
838838 haskell.compiler.integer-simple.ghc7103 ghc-7.10.3
839839 haskell.compiler.integer-simple.ghc722 ghc-7.2.2
840840 haskell.compiler.integer-simple.ghc742 ghc-7.4.2
841− haskell.compiler.integer-simple.ghc763 ghc-7.6.3
842841 haskell.compiler.integer-simple.ghc783 ghc-7.8.3
843842 haskell.compiler.integer-simple.ghc784 ghc-7.8.4
844843 haskell.compiler.integer-simple.ghc801 ghc-8.0.1
@@ -846,10 +845,10 @@ The following command displays the complete list of GHC compilers build with `in
846845 haskell.compiler.integer-simple.ghcHEAD ghc-8.1.20170106
847846
848847To get a package set supporting `integer-simple` use the attribute:
849−`pkgs.haskell.packages.integer-simple."${ghcVersion}"`. For example
848+`haskell.packages.integer-simple."${ghcVersion}"`. For example
850849use the following to get the `scientific` package build with `integer-simple`:
851850
852− $ nix-build -A pkgs.haskell.packages.integer-simple.ghc802.scientific
851+ $ nix-build -A haskell.packages.integer-simple.ghc802.scientific
853852
854853
855854## Other resources
doc/languages-frameworks/index.xml+1
@@ -27,6 +27,7 @@ such as Perl or Haskell. These are described in this chapter.</para>
2727<xi:include href="qt.xml" />
2828<xi:include href="r.xml" /> <!-- generated from ../../pkgs/development/r-modules/README.md -->
2929<xi:include href="ruby.xml" />
30+<xi:include href="rust.xml" />
3031<xi:include href="texlive.xml" />
3132<xi:include href="vim.xml" />
3233
doc/languages-frameworks/python.md+223−156
@@ -3,7 +3,7 @@
33## User Guide
44
55Several versions of Python are available on Nix as well as a high amount of
6−packages. The default interpreter is CPython 3.5.
6+packages. The default interpreter is CPython 2.7.
77
88### Using Python
99
@@ -74,7 +74,6 @@ can do is write a simple Nix expression which sets up an environment for you,
7474requiring you only to type `nix-shell`. Say we want to have Python 3.5, `numpy`
7575and `toolz`, like before, in an environment. With a `shell.nix` file
7676containing
77−
7877```nix
7978with import <nixpkgs> {};
8079
@@ -101,22 +100,25 @@ On Nix all packages are built by functions. The main function in Nix for buildin
101100Let's see how we would build the `toolz` package. According to [`python-packages.nix`](https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/python-packages.nix) `toolz` is build using
102101
103102```nix
104−toolz = buildPythonPackage rec{
105− name = "toolz-${version}";
106− version = "0.7.4";
103+{ # ...
107104
108− src = pkgs.fetchurl{
109− url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
110− sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
111− };
105+ toolz = buildPythonPackage rec {
106+ name = "toolz-${version}";
107+ version = "0.7.4";
112108
113− meta = {
114− homepage = "http://github.com/pytoolz/toolz/";
115− description = "List processing tools and functional utilities";
116− license = licenses.bsd3;
117− maintainers = with maintainers; [ fridh ];
109+ src = pkgs.fetchurl {
110+ url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
111+ sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
112+ };
113+
114+ meta = {
115+ homepage = "http://github.com/pytoolz/toolz/";
116+ description = "List processing tools and functional utilities";
117+ license = licenses.bsd3;
118+ maintainers = with maintainers; [ fridh ];
119+ };
118120 };
119−};
121+}
120122```
121123
122124What happens here? The function `buildPythonPackage` is called and as argument
@@ -129,7 +131,7 @@ specify some (optional) [meta information](http://nixos.org/nixpkgs/manual/#chap
129131
130132The output of the function is a derivation, which is an attribute with the name
131133`toolz` of the set `pythonPackages`. Actually, sets are created for all interpreter versions,
132−so `python27Packages`, `python34Packages`, `python35Packages` and `pypyPackages`.
134+so e.g. `python27Packages`, `python35Packages` and `pypyPackages`.
133135
134136The above example works when you're directly working on
135137`pkgs/top-level/python-packages.nix` in the Nixpkgs repository. Often though,
@@ -143,7 +145,7 @@ pkgs.python35Packages.buildPythonPackage rec {
143145 name = "toolz-${version}";
144146 version = "0.8.0";
145147
146− src = pkgs.fetchurl{
148+ src = pkgs.fetchurl {
147149 url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
148150 sha256 = "e8451af61face57b7c5d09e71c0d27b8005f001ead56e9fdf470417e5cc6d479";
149151 };
@@ -174,7 +176,7 @@ with import <nixpkgs> {};
174176 name = "toolz-${version}";
175177 version = "0.8.0";
176178
177− src = pkgs.fetchurl{
179+ src = pkgs.fetchurl {
178180 url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
179181 sha256 = "e8451af61face57b7c5d09e71c0d27b8005f001ead56e9fdf470417e5cc6d479";
180182 };
@@ -215,25 +217,28 @@ The following example shows which arguments are given to `buildPythonPackage` in
215217order to build [`datashape`](https://github.com/blaze/datashape).
216218
217219```nix
218−datashape = buildPythonPackage rec {
219− name = "datashape-${version}";
220− version = "0.4.7";
220+{ # ...
221221
222− src = pkgs.fetchurl {
223− url = "mirror://pypi/D/DataShape/${name}.tar.gz";
224− sha256 = "14b2ef766d4c9652ab813182e866f493475e65e558bed0822e38bf07bba1a278";
225− };
222+ datashape = buildPythonPackage rec {
223+ name = "datashape-${version}";
224+ version = "0.4.7";
225+
226+ src = pkgs.fetchurl {
227+ url = "mirror://pypi/D/DataShape/${name}.tar.gz";
228+ sha256 = "14b2ef766d4c9652ab813182e866f493475e65e558bed0822e38bf07bba1a278";
229+ };
226230
227− buildInputs = with self; [ pytest ];
228− propagatedBuildInputs = with self; [ numpy multipledispatch dateutil ];
231+ buildInputs = with self; [ pytest ];
232+ propagatedBuildInputs = with self; [ numpy multipledispatch dateutil ];
229233
230− meta = {
231− homepage = https://github.com/ContinuumIO/datashape;
232− description = "A data description language";
233− license = licenses.bsd2;
234− maintainers = with maintainers; [ fridh ];
234+ meta = {
235+ homepage = https://github.com/ContinuumIO/datashape;
236+ description = "A data description language";
237+ license = licenses.bsd2;
238+ maintainers = with maintainers; [ fridh ];
239+ };
235240 };
236−};
241+}
237242```
238243
239244We can see several runtime dependencies, `numpy`, `multipledispatch`, and
@@ -247,23 +252,26 @@ Python bindings to `libxml2` and `libxslt`. These libraries are only required
247252when building the bindings and are therefore added as `buildInputs`.
248253
249254```nix
250−lxml = buildPythonPackage rec {
251− name = "lxml-3.4.4";
255+{ # ...
252256
253− src = pkgs.fetchurl {
254− url = "mirror://pypi/l/lxml/${name}.tar.gz";
255− sha256 = "16a0fa97hym9ysdk3rmqz32xdjqmy4w34ld3rm3jf5viqjx65lxk";
256− };
257+ lxml = buildPythonPackage rec {
258+ name = "lxml-3.4.4";
259+
260+ src = pkgs.fetchurl {
261+ url = "mirror://pypi/l/lxml/${name}.tar.gz";
262+ sha256 = "16a0fa97hym9ysdk3rmqz32xdjqmy4w34ld3rm3jf5viqjx65lxk";
263+ };
257264
258− buildInputs = with self; [ pkgs.libxml2 pkgs.libxslt ];
265+ buildInputs = with self; [ pkgs.libxml2 pkgs.libxslt ];
259266
260− meta = {
261− description = "Pythonic binding for the libxml2 and libxslt libraries";
262− homepage = http://lxml.de;
263− license = licenses.bsd3;
264− maintainers = with maintainers; [ sjourdois ];
267+ meta = {
268+ description = "Pythonic binding for the libxml2 and libxslt libraries";
269+ homepage = http://lxml.de;
270+ license = licenses.bsd3;
271+ maintainers = with maintainers; [ sjourdois ];
272+ };
265273 };
266−};
274+}
267275```
268276
269277In this example `lxml` and Nix are able to work out exactly where the relevant
@@ -277,33 +285,37 @@ find each of them in a different folder, and therefore we have to set `LDFLAGS`
277285and `CFLAGS`.
278286
279287```nix
280−pyfftw = buildPythonPackage rec {
281− name = "pyfftw-${version}";
282− version = "0.9.2";
288+{ # ...
283289
284− src = pkgs.fetchurl {
285− url = "mirror://pypi/p/pyFFTW/pyFFTW-${version}.tar.gz";
286− sha256 = "f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074";
287− };
290+ pyfftw = buildPythonPackage rec {
291+ name = "pyfftw-${version}";
292+ version = "0.9.2";
293+
294+ src = pkgs.fetchurl {
295+ url = "mirror://pypi/p/pyFFTW/pyFFTW-${version}.tar.gz";
296+ sha256 = "f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074";
297+ };
288298
289− buildInputs = [ pkgs.fftw pkgs.fftwFloat pkgs.fftwLongDouble];
299+ buildInputs = [ pkgs.fftw pkgs.fftwFloat pkgs.fftwLongDouble];
290300
291− propagatedBuildInputs = with self; [ numpy scipy ];
301+ propagatedBuildInputs = with self; [ numpy scipy ];
292302
293− # Tests cannot import pyfftw. pyfftw works fine though.
294− doCheck = false;
303+ # Tests cannot import pyfftw. pyfftw works fine though.
304+ doCheck = false;
295305
296− LDFLAGS="-L${pkgs.fftw.dev}/lib -L${pkgs.fftwFloat.out}/lib -L${pkgs.fftwLongDouble.out}/lib"
297− CFLAGS="-I${pkgs.fftw.dev}/include -I${pkgs.fftwFloat.dev}/include -I${pkgs.fftwLongDouble.dev}/include"
298− '';
306+ preConfigure = ''
307+ export LDFLAGS="-L${pkgs.fftw.dev}/lib -L${pkgs.fftwFloat.out}/lib -L${pkgs.fftwLongDouble.out}/lib"
308+ export CFLAGS="-I${pkgs.fftw.dev}/include -I${pkgs.fftwFloat.dev}/include -I${pkgs.fftwLongDouble.dev}/include"
309+ '';
299310
300− meta = {
301− description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
302− homepage = http://hgomersall.github.com/pyFFTW/;
303− license = with licenses; [ bsd2 bsd3 ];
304− maintainer = with maintainers; [ fridh ];
311+ meta = {
312+ description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
313+ homepage = http://hgomersall.github.com/pyFFTW/;
314+ license = with licenses; [ bsd2 bsd3 ];
315+ maintainer = with maintainers; [ fridh ];
316+ };
305317 };
306−};
318+}
307319```
308320Note also the line `doCheck = false;`, we explicitly disabled running the test-suite.
309321
@@ -316,10 +328,7 @@ That way, you can run updated code without having to reinstall after each and ev
316328Development mode is also available. Let's see how you can use it.
317329
318330In the previous Nix expression the source was fetched from an url. We can also refer to a local source instead using
319−
320−```nix
321−src = ./path/to/source/tree;
322−```
331+`src = ./path/to/source/tree;`
323332
324333If we create a `shell.nix` file which calls `buildPythonPackage`, and if `src`
325334is a local source, and if the local source has a `setup.py`, then development
@@ -338,7 +347,7 @@ buildPythonPackage rec {
338347 name = "mypackage";
339348 src = ./path/to/package/source;
340349 propagatedBuildInputs = [ pytest numpy pkgs.libsndfile ];
341−};
350+}
342351```
343352
344353It is important to note that due to how development mode is implemented on Nix it is not possible to have multiple packages simultaneously in development mode.
@@ -371,7 +380,7 @@ buildPythonPackage rec {
371380 name = "toolz-${version}";
372381 version = "0.7.4";
373382
374− src = pkgs.fetchurl{
383+ src = pkgs.fetchurl {
375384 url = "mirror://pypi/t/toolz/toolz-${version}.tar.gz";
376385 sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
377386 };
@@ -382,7 +391,7 @@ buildPythonPackage rec {
382391 license = licenses.bsd3;
383392 maintainers = with maintainers; [ fridh ];
384393 };
385−};
394+}
386395```
387396
388397It takes two arguments, `pkgs` and `buildPythonPackage`.
@@ -392,7 +401,10 @@ We now call this function using `callPackage` in the definition of our environme
392401with import <nixpkgs> {};
393402
394403( let
395− toolz = pkgs.callPackage ~/path/to/toolz/release.nix { pkgs=pkgs; buildPythonPackage=pkgs.python35Packages.buildPythonPackage; };
404+ toolz = pkgs.callPackage /path/to/toolz/release.nix {
405+ pkgs = pkgs;
406+ buildPythonPackage = pkgs.python35Packages.buildPythonPackage;
407+ };
396408 in pkgs.python35.withPackages (ps: [ ps.numpy toolz ])
397409).env
398410```
@@ -410,8 +422,8 @@ and in this case the `python35` interpreter is automatically used.
410422
411423### Interpreters
412424
413−Versions 2.6, 2.7, 3.3, 3.4 and 3.5 of the CPython interpreter are available as respectively
414−`python26`, `python27`, `python33`, `python34` and `python35`. The PyPy interpreter
425+Versions 2.7, 3.3, 3.4, 3.5 and 3.6 of the CPython interpreter are available as
426+respectively `python27`, `python33`, `python34`, `python35` and `python36`. The PyPy interpreter
415427is available as `pypy`. The aliases `python2` and `python3` correspond to respectively `python27` and
416428`python35`. The default interpreter, `python`, maps to `python2`.
417429The Nix expressions for the interpreters can be found in
@@ -460,6 +472,7 @@ sets are
460472* `pkgs.python33Packages`
461473* `pkgs.python34Packages`
462474* `pkgs.python35Packages`
475+* `pkgs.python36Packages`
463476* `pkgs.pypyPackages`
464477
465478and the aliases
@@ -474,22 +487,27 @@ The `buildPythonPackage` function is implemented in
474487`pkgs/development/interpreters/python/build-python-package.nix`
475488
476489The following is an example:
490+```nix
491+{ # ...
477492
478− twisted = buildPythonPackage {
479− name = "twisted-8.1.0";
493+ twisted = buildPythonPackage {
494+ name = "twisted-8.1.0";
480495
481− src = pkgs.fetchurl {
482− url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
483− sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
484− };
496+ src = pkgs.fetchurl {
497+ url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
498+ sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
499+ };
485500
486− propagatedBuildInputs = [ self.ZopeInterface ];
501+ propagatedBuildInputs = [ self.ZopeInterface ];
487502
488− meta = {
489− homepage = http://twistedmatrix.com/;
490− description = "Twisted, an event-driven networking engine written in Python";
491− license = stdenv.lib.licenses.mit; };
492− };
503+ meta = {
504+ homepage = http://twistedmatrix.com/;
505+ description = "Twisted, an event-driven networking engine written in Python";
506+ license = stdenv.lib.licenses.mit;
507+ };
508+ };
509+}
510+```
493511
494512The `buildPythonPackage` mainly does four things:
495513
@@ -539,29 +557,32 @@ Because with an application we're not interested in multiple version the prefix
539557Python environments can be created using the low-level `pkgs.buildEnv` function.
540558This example shows how to create an environment that has the Pyramid Web Framework.
541559Saving the following as `default.nix`
560+```nix
561+with import <nixpkgs> {};
542562
543− with import <nixpkgs> {};
544−
545− python.buildEnv.override {
546− extraLibs = [ pkgs.pythonPackages.pyramid ];
547− ignoreCollisions = true;
548− }
563+python.buildEnv.override {
564+ extraLibs = [ pkgs.pythonPackages.pyramid ];
565+ ignoreCollisions = true;
566+}
567+```
549568
550569and running `nix-build` will create
551−
552− /nix/store/cf1xhjwzmdki7fasgr4kz6di72ykicl5-python-2.7.8-env
570+```
571+/nix/store/cf1xhjwzmdki7fasgr4kz6di72ykicl5-python-2.7.8-env
572+```
553573
554574with wrapped binaries in `bin/`.
555575
556576You can also use the `env` attribute to create local environments with needed
557577packages installed. This is somewhat comparable to `virtualenv`. For example,
558578running `nix-shell` with the following `shell.nix`
579+```nix
580+with import <nixpkgs> {};
559581
560− with import <nixpkgs> {};
561−
562− (python3.buildEnv.override {
563− extraLibs = with python3Packages; [ numpy requests2 ];
564− }).env
582+(python3.buildEnv.override {
583+ extraLibs = with python3Packages; [ numpy requests2 ];
584+}).env
585+```
565586
566587will drop you into a shell where Python will have the
567588specified packages in its path.
@@ -576,30 +597,33 @@ specified packages in its path.
576597#### python.withPackages function
577598
578599The `python.withPackages` function provides a simpler interface to the `python.buildEnv` functionality.
579−It takes a function as an argument that is passed the set of python packages and returns the list
600+It takes a function as an argument that is passed the set of python packages and returns the list
580601of the packages to be included in the environment. Using the `withPackages` function, the previous
581602example for the Pyramid Web Framework environment can be written like this:
603+```nix
604+with import <nixpkgs> {};
582605
583− with import <nixpkgs> {};
584−
585− python.withPackages (ps: [ps.pyramid])
606+python.withPackages (ps: [ps.pyramid])
607+```
586608
587−`withPackages` passes the correct package set for the specific interpreter version as an
609+`withPackages` passes the correct package set for the specific interpreter version as an
588610argument to the function. In the above example, `ps` equals `pythonPackages`.
589611But you can also easily switch to using python3:
590−
591− with import <nixpkgs> {};
612+```nix
613+with import <nixpkgs> {};
592614
593− python3.withPackages (ps: [ps.pyramid])
615+python3.withPackages (ps: [ps.pyramid])
616+```
594617
595618Now, `ps` is set to `python3Packages`, matching the version of the interpreter.
596619
597620As `python.withPackages` simply uses `python.buildEnv` under the hood, it also supports the `env`
598621attribute. The `shell.nix` file from the previous section can thus be also written like this:
622+```nix
623+with import <nixpkgs> {};
599624
600− with import <nixpkgs> {};
601−
602− (python33.withPackages (ps: [ps.numpy ps.requests2])).env
625+(python33.withPackages (ps: [ps.numpy ps.requests2])).env
626+```
603627
604628In contrast to `python.buildEnv`, `python.withPackages` does not support the more advanced options
605629such as `ignoreCollisions = true` or `postBuild`. If you need them, you have to use `python.buildEnv`.
@@ -613,22 +637,24 @@ install -e . --prefix $TMPDIR/`for the package.
613637Warning: `shellPhase` is executed only if `setup.py` exists.
614638
615639Given a `default.nix`:
640+```nix
641+with import <nixpkgs> {};
616642
617− with import <nixpkgs> {};
618−
619− buildPythonPackage { name = "myproject";
643+buildPythonPackage { name = "myproject";
620644
621− buildInputs = with pkgs.pythonPackages; [ pyramid ];
645+buildInputs = with pkgs.pythonPackages; [ pyramid ];
622646
623− src = ./.; }
647+src = ./.; }
648+```
624649
625650Running `nix-shell` with no arguments should give you
626651the environment in which the package would be built with
627652`nix-build`.
628653
629654Shortcut to setup environments with C headers/libraries and python packages:
630−
631− $ nix-shell -p pythonPackages.pyramid zlib libjpeg git
655+```shell
656+nix-shell -p pythonPackages.pyramid zlib libjpeg git
657+```
632658
633659Note: There is a boolean value `lib.inNixShell` set to `true` if nix-shell is invoked.
634660
@@ -641,6 +667,19 @@ community to help save time. No tool is preferred at the moment.
641667- [pypi2nix](https://github.com/garbas/pypi2nix) by Rok Garbas
642668- [pypi2nix](https://github.com/offlinehacker/pypi2nix) by Jaka Hudoklin
643669
670+### Deterministic builds
671+
672+Python 2.7, 3.5 and 3.6 are now built deterministically and 3.4 mostly.
673+Minor modifications had to be made to the interpreters in order to generate
674+deterministic bytecode. This has security implications and is relevant for
675+those using Python in a `nix-shell`.
676+
677+When the environment variable `DETERMINISTIC_BUILD` is set, all bytecode will have timestamp 1.
678+The `buildPythonPackage` function sets `DETERMINISTIC_BUILD=1` and
679+[PYTHONHASHSEED=0](https://docs.python.org/3.5/using/cmdline.html#envvar-PYTHONHASHSEED).
680+Both are also exported in `nix-shell`.
681+
682+
644683## FAQ
645684
646685### How can I install a working Python environment?
@@ -663,7 +702,7 @@ with import <nixpkgs> {};
663702pkgs.python35.withPackages (ps: with ps; [ numpy ipython ])
664703```
665704and install it in your profile with
666−```
705+```shell
667706nix-env -if build.nix
668707```
669708Now you can use the Python interpreter, as well as the extra packages that you added to the environment.
@@ -671,15 +710,19 @@ Now you can use the Python interpreter, as well as the extra packages that you a
671710#### Environment defined in `~/.nixpkgs/config.nix`
672711
673712If you prefer to, you could also add the environment as a package override to the Nixpkgs set.
674−```
713+```nix
714+{ # ...
715+
675716 packageOverrides = pkgs: with pkgs; {
676717 myEnv = python35.withPackages (ps: with ps; [ numpy ipython ]);
677718 };
719+}
678720```
679721and install it in your profile with
680−```
722+```shell
681723nix-env -iA nixpkgs.myEnv
682724```
725+
683726We're installing using the attribute path and assume the channels is named `nixpkgs`.
684727Note that I'm using the attribute path here.
685728
@@ -688,9 +731,12 @@ Note that I'm using the attribute path here.
688731For the sake of completeness, here's another example how to install the environment system-wide.
689732
690733```nix
691−environment.systemPackages = with pkgs; [
692− (python35.withPackages(ps: with ps; [ numpy ipython ]))
693−];
734+{ # ...
735+
736+ environment.systemPackages = with pkgs; [
737+ (python35.withPackages(ps: with ps; [ numpy ipython ]))
738+ ];
739+}
694740```
695741
696742### How to solve circular dependencies?
@@ -727,19 +773,18 @@ All packages in the Python package set will now use the updated `scipy` version.
727773```nix
728774with import <nixpkgs> {};
729775
730−(
731−let
732− packageOverrides = self: super: {
733− scipy = super.scipy_0_17;
734− };
735−in (pkgs.python35.override {inherit packageOverrides;}).withPackages (ps: [ps.blaze])
776+( let
777+ packageOverrides = self: super: {
778+ scipy = super.scipy_0_17;
779+ };
780+ in (pkgs.python35.override {inherit packageOverrides;}).withPackages (ps: [ps.blaze])
736781).env
737782```
738783The requested package `blaze` depends on `pandas` which itself depends on `scipy`.
739784
740785If you want the whole of Nixpkgs to use your modifications, then you can use `overlays`
741786as explained in this manual. In the following example we build a `inkscape` using a different version of `numpy`.
742−```
787+```nix
743788let
744789 pkgs = import <nixpkgs> {};
745790 newpkgs = import pkgs.path { overlays = [ (pkgsself: pkgssuper: {
@@ -762,32 +807,32 @@ This is because files are included that depend on items in the Nix store which h
762807The command `bdist_wheel` takes into account `SOURCE_DATE_EPOCH`, and `nix-shell` sets this to 1. By setting it to a value corresponding to 1980 or later, or by unsetting it, it is possible to build wheels.
763808
764809Use 1980 as timestamp:
765−```
810+```shell
766811nix-shell --run "SOURCE_DATE_EPOCH=315532800 python3 setup.py bdist_wheel"
767812```
768813or the current time:
769−```
814+```shell
770815nix-shell --run "SOURCE_DATE_EPOCH=$(date +%s) python3 setup.py bdist_wheel"
771816```
772817or unset:
773−```
818+```shell
774819nix-shell --run "unset SOURCE_DATE_EPOCH; python3 setup.py bdist_wheel"
775820```
776821
777822### `install_data` / `data_files` problems
778823
779824If you get the following error:
780−
781− could not create '/nix/store/6l1bvljpy8gazlsw2aw9skwwp4pmvyxw-python-2.7.8/etc':
782− Permission denied
783−
784−This is a [known bug](https://github.com/pypa/setuptools/issues/130) in setuptools.
825+```
826+could not create '/nix/store/6l1bvljpy8gazlsw2aw9skwwp4pmvyxw-python-2.7.8/etc':
827+Permission denied
828+```
829+This is a [known bug](https://github.com/pypa/setuptools/issues/130) in `setuptools`.
785830Setuptools `install_data` does not respect `--prefix`. An example of such package using the feature is `pkgs/tools/X11/xpra/default.nix`.
786831As workaround install it as an extra `preInstall` step:
787−
788− ${python.interpreter} setup.py install_data --install-dir=$out --root=$out
789− sed -i '/ = data\_files/d' setup.py
790−
832+```shell
833+${python.interpreter} setup.py install_data --install-dir=$out --root=$out
834+sed -i '/ = data\_files/d' setup.py
835+```
791836
792837### Rationale of non-existent global site-packages
793838
@@ -811,11 +856,11 @@ and install python modules through `pip` the traditional way.
811856
812857Create this `default.nix` file, together with a `requirements.txt` and simply execute `nix-shell`.
813858
814−```
859+```nix
815860with import <nixpkgs> {};
816861with pkgs.python27Packages;
817862
818−stdenv.mkDerivation {
863+stdenv.mkDerivation {
819864 name = "impurePythonEnv";
820865 buildInputs = [
821866 # these packages are required for virtualenv and pip to work:
@@ -823,10 +868,10 @@ stdenv.mkDerivation {
823868 python27Full
824869 python27Packages.virtualenv
825870 python27Packages.pip
826− # the following packages are related to the dependencies of your python
827− # project.
828− # In this particular example the python modules listed in the
829− # requirements.tx require the following packages to be installed locally
871+ # the following packages are related to the dependencies of your python
872+ # project.
873+ # In this particular example the python modules listed in the
874+ # requirements.tx require the following packages to be installed locally
830875 # in order to compile any binary extensions they may require.
831876 #
832877 taglib
@@ -841,7 +886,7 @@ stdenv.mkDerivation {
841886 shellHook = ''
842887 # set SOURCE_DATE_EPOCH so that we can use python wheels
843888 SOURCE_DATE_EPOCH=$(date +%s)
844− virtualenv --no-setuptools venv
889+ virtualenv --no-setuptools venv
845890 export PATH=$PWD/venv/bin:$PATH
846891 pip install -r requirements.txt
847892 '';
@@ -849,10 +894,31 @@ stdenv.mkDerivation {
849894```
850895
851896Note that the `pip install` is an imperative action. So every time `nix-shell`
852−is executed it will attempt to download the python modules listed in
897+is executed it will attempt to download the python modules listed in
853898requirements.txt. However these will be cached locally within the `virtualenv`
854899folder and not downloaded again.
855900
901+### How to override a Python package from `configuration.nix`?
902+
903+If you need to change a package's attribute(s) from `configuration.nix` you could do:
904+
905+```nix
906+ nixpkgs.config.packageOverrides = superP: {
907+ pythonPackages = superP.pythonPackages.override {
908+ overrides = self: super: {
909+ bepasty-server = super.bepasty-server.overrideAttrs ( oldAttrs: {
910+ src = pkgs.fetchgit {
911+ url = "https://github.com/bepasty/bepasty-server";
912+ sha256 = "9ziqshmsf0rjvdhhca55sm0x8jz76fsf2q4rwh4m6lpcf8wr0nps";
913+ rev = "e2516e8cf4f2afb5185337073607eb9e84a61d2d";
914+ };
915+ });
916+ };
917+ };
918+ };
919+```
920+
921+If you are using the `bepasty-server` package somewhere, for example in `systemPackages` or indirectly from `services.bepasty`, then a `nixos-rebuild switch` will rebuild the system but with the `bepasty-server` package using a different `src` attribute. This way one can modify `python` based software/libraries easily. Using `self` and `super` one can also alter dependencies (`buildInputs`) between the old state (`self`) and new state (`super`).
856922
857923## Contributing
858924
@@ -860,7 +926,8 @@ folder and not downloaded again.
860926
861927Following rules are desired to be respected:
862928
863−* Make sure package builds for all python interpreters. Use `disabled` argument to `buildPythonPackage` to set unsupported interpreters.
864−* If tests need to be disabled for a package, make sure you leave a comment about reasoning.
865−* Packages in `pkgs/top-level/python-packages.nix` are sorted quasi-alphabetically to avoid merge conflicts.
866−* Python libraries are supposed to be in `python-packages.nix` and packaged with `buildPythonPackage`. Python applications live outside of `python-packages.nix` and are packaged with `buildPythonApplication`.
929+* Python libraries are supposed to be called from `python-packages.nix` and packaged with `buildPythonPackage`. The expression of a library should be in `pkgs/development/python-modules/<name>/default.nix`. Libraries in `pkgs/top-level/python-packages.nix` are sorted quasi-alphabetically to avoid merge conflicts.
930+* Python applications live outside of `python-packages.nix` and are packaged with `buildPythonApplication`.
931+* Make sure libraries build for all Python interpreters.
932+* By default we enable tests. Make sure the tests are found and, in the case of libraries, are passing for all interpreters. If certain tests fail they can be disabled individually. Try to avoid disabling the tests altogether. In any case, when you disable tests, leave a comment explaining why.
933+* Commit names of Python libraries should include `pythonPackages`, for example `pythonPackages.numpy: 1.11 -> 1.12`.
doc/languages-frameworks/qt.xml+13−49
@@ -2,67 +2,31 @@
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="sec-language-qt">
44
5−<title>Qt</title>
5+<title>Qt and KDE</title>
66
7−<para>The information in this section applies to Qt 5.5 and later.</para>
8−
9−<para>Qt is an application development toolkit for C++. Although it is
10−not a distinct programming language, there are special considerations
11−for packaging Qt-based programs and libraries. A small set of tools
12−and conventions has grown out of these considerations.</para>
7+<para>Qt is a comprehensive desktop and mobile application development toolkit for C++. Legacy support is available for Qt 3 and Qt 4, but all current development uses Qt 5. The Qt 5 packages in Nixpkgs are updated frequently to take advantage of new features, but older versions are typically retained to support packages that may not be compatible with the latest version. When packaging applications and libraries for Nixpkgs, it is important to ensure that compatible versions of Qt 5 are used throughout; this consideration motivates the tools described below.</para>
138
149<section xml:id="ssec-qt-libraries"><title>Libraries</title>
1510
16−<para>Packages that provide libraries should be listed in
17−<varname>qt5LibsFun</varname> so that the library is built with each
18−Qt version. A set of packages is provided for each version of Qt; for
19−example, <varname>qt5Libs</varname> always provides libraries built
20−with the latest version, <varname>qt55Libs</varname> provides
21−libraries built with Qt 5.5, and so on. To avoid version conflicts, no
22−top-level attributes are created for these packages.</para>
11+<para>Libraries that depend on Qt 5 should be built with each available version to avoid linking a dependent package against incompatible versions of Qt 5. (Although Qt 5 maintains backward ABI compatibility, linking against multiple versions at once is generally not possible; at best it will lead to runtime faults.) Packages that provide libraries should be added to the top-level function <varname>mkLibsForQt5</varname>, which is used to build a set of libraries for every Qt 5 version. The <varname>callPackage</varname> provided in this scope will ensure that only one Qt version will be used throughout the dependency tree. Dependencies should be imported unqualified, i.e. <literal>qtbase</literal> not <literal>qt5.qtbase</literal>, so that <varname>callPackage</varname> can do its work. <emphasis>Do not</emphasis> import a package set such as <literal>qt5</literal> or <literal>libsForQt5</literal> into your package; although it may work fine in the moment, it could well break at the next Qt update.</para>
12+
13+<para>If a library does not support a particular version of Qt 5, it is best to mark it as broken by setting its <literal>meta.broken</literal> attribute. A package may be marked broken for certain versions by testing the <literal>qtbase.version</literal> attribute, which will always give the current Qt 5 version.</para>
2314
2415</section>
2516
26−<section xml:id="ssec-qt-programs"><title>Programs</title>
27−
28−<para>Application packages do not need to be built with every Qt
29−version. To ensure consistency between the package's dependencies,
30−call the package with <literal>qt5Libs.callPackage</literal> instead
31−of the usual <literal>callPackage</literal>. An older version may be
32−selected in case of incompatibility. For example, to build with Qt
33−5.5, call the package with
34−<literal>qt55Libs.callPackage</literal>.</para>
35−
36−<para>Several environment variables must be set at runtime for Qt
37−applications to function correctly, including:</para>
38−
39−<itemizedlist>
40− <listitem><para><envar>QT_PLUGIN_PATH</envar></para></listitem>
41− <listitem><para><envar>QML_IMPORT_PATH</envar></para></listitem>
42− <listitem><para><envar>QML2_IMPORT_PATH</envar></para></listitem>
43− <listitem><para><envar>XDG_DATA_DIRS</envar></para></listitem>
44−</itemizedlist>
45−
46−<para>To ensure that these are set correctly, the program must be wrapped by
47−invoking <literal>wrapQtProgram <replaceable>program</replaceable></literal>
48−during installation (for example, during
49−<literal>fixupPhase</literal>). <literal>wrapQtProgram</literal>
50−accepts the same options as <literal>makeWrapper</literal>.
51−</para>
17+<section xml:id="ssec-qt-applications"><title>Applications</title>
18+
19+<para>Applications generally do not need to be built with every Qt version because they do not provide any libraries for dependent packages to link against. The primary consideration is merely ensuring that the application itself and its dependencies are linked against only one version of Qt. To call your application expression, use <literal>libsForQt5.callPackage</literal> instead of <literal>callPackage</literal>. Dependencies should be imported unqualified, i.e. <literal>qtbase</literal> not <literal>qt5.qtbase</literal>. <emphasis>Do not</emphasis> import a package set such as <literal>qt5</literal> or <literal>libsForQt5</literal> into your package; although it may work fine in the moment, it could well break at the next Qt update.</para>
20+
21+<para>It is generally best to build an application package against the <varname>libsForQt5</varname> library set. In case a package does not build with the latest Qt version, it is possible to pick a set pinned to a particular version, e.g. <varname>libsForQt55</varname> for Qt 5.5, if that is the latest version the package supports.</para>
22+
23+<para>Qt-based applications require that several paths be set at runtime. This is accomplished by wrapping the provided executables in a package with <literal>wrapQtProgram</literal> or <literal>makeQtWrapper</literal> during the <literal>postFixup</literal> phase. To use the wrapper generators, add <literal>makeQtWrapper</literal> to <literal>nativeBuildInputs</literal>. The wrapper generators support the same options as <literal>wrapProgram</literal> and <literal>makeWrapper</literal> respectively. It is usually only necessary to generate wrappers for programs intended to be invoked by the user.</para>
5224
5325</section>
5426
5527<section xml:id="ssec-qt-kde"><title>KDE</title>
5628
57−<para>Many of the considerations above also apply to KDE packages,
58−especially the need to set the correct environment variables at
59−runtime. To ensure that this is done, invoke <literal>wrapKDEProgram
60−<replaceable>program</replaceable></literal> during
61−installation. <literal>wrapKDEProgram</literal> also generates a
62−<literal>ksycoca</literal> database so that required data and services
63−can be found. Like its Qt counterpart,
64−<literal>wrapKDEProgram</literal> accepts the same options as
65−<literal>makeWrapper</literal>.</para>
29+<para>The KDE Frameworks are a set of libraries for Qt 5 which form the basis of the Plasma desktop environment and the KDE Applications suite. Packaging a Frameworks-based library does not require any steps beyond those described above for general Qt-based libraries. Frameworks-based applications should not use <literal>makeQtWrapper</literal>; instead, use <literal>kdeWrapper</literal> to create the necessary wrappers: <literal>kdeWrapper { unwrapped = <replaceable>expr</replaceable>; targets = <replaceable>exes</replaceable>; }</literal>, where <replaceable>expr</replaceable> is the un-wrapped package expression and <replaceable>exes</replaceable> is a list of strings giving the relative paths to programs in the package which should be wrapped.</para>
6630
6731</section>
6832
doc/languages-frameworks/rust.mdnew file+91
@@ -0,0 +1,91 @@
1+---
2+title: Rust
3+author: Matthias Beyer
4+date: 2017-03-05
5+---
6+
7+# User's Guide to the Rust Infrastructure
8+
9+To install the rust compiler and cargo put
10+
11+```
12+rustStable.rustc
13+rustStable.cargo
14+```
15+
16+into the `environment.systemPackages` or bring them into scope with
17+`nix-shell -p rustStable.rustc -p rustStable.cargo`.
18+
19+There are also `rustBeta` and `rustNightly` package sets available.
20+These are not updated very regulary. For daily builds see
21+[Using the Rust nightlies overlay](#using-the-rust-nightlies-overlay)
22+
23+## Packaging Rust applications
24+
25+Rust applications are packaged by using the `buildRustPackage` helper from `rustPlatform`:
26+
27+```
28+with rustPlatform;
29+
30+buildRustPackage rec {
31+ name = "ripgrep-${version}";
32+ version = "0.4.0";
33+
34+ src = fetchFromGitHub {
35+ owner = "BurntSushi";
36+ repo = "ripgrep";
37+ rev = "${version}";
38+ sha256 = "0y5d1n6hkw85jb3rblcxqas2fp82h3nghssa4xqrhqnz25l799pj";
39+ };
40+
41+ depsSha256 = "0q68qyl2h6i0qsz82z840myxlnjay8p1w5z7hfyr8fqp7wgwa9cx";
42+
43+ meta = with stdenv.lib; {
44+ description = "A utility that combines the usability of The Silver Searcher with the raw speed of grep";
45+ homepage = https://github.com/BurntSushi/ripgrep;
46+ license = with licenses; [ unlicense ];
47+ maintainers = [ maintainers.tailhook ];
48+ platforms = platforms.all;
49+ };
50+}
51+```
52+
53+`buildRustPackage` requires a `depsSha256` attribute which is computed over
54+all crate sources of this package. Currently it is obtained by inserting a
55+fake checksum into the expression and building the package once. The correct
56+checksum can be then take from the failed build.
57+
58+To install crates with nix there is also an experimental project called
59+[nixcrates](https://github.com/fractalide/nixcrates).
60+
61+## Using the Rust nightlies overlay
62+
63+Mozilla provides an overlay for nixpkgs to bring a nightly version of Rust into scope.
64+This overlay can _also_ be used to install recent unstable or stable versions
65+of Rust, if desired.
66+
67+To use this overlay, clone
68+[nixpkgs-mozilla](https://github.com/mozilla/nixpkgs-mozilla),
69+and create a symbolic link to the file
70+[rust-overlay.nix](https://github.com/mozilla/nixpkgs-mozilla/blob/master/rust-overlay.nix)
71+in the `~/.config/nixpkgs/overlays` directory.
72+
73+ $ git clone https://github.com/mozilla/nixpkgs-mozilla.git
74+ $ mkdir -p ~/.config/nixpkgs/overlays
75+ $ ln -s $(pwd)/nixpkgs-mozilla/rust-overlay.nix ~/.config/nixpkgs/overlays/rust-overlay.nix
76+
77+The latest version can be installed with the following command:
78+
79+ $ nix-env -Ai nixos.rustChannels.stable.rust
80+
81+Or using the attribute with nix-shell:
82+
83+ $ nix-shell -p nixos.rustChannels.stable.rust
84+
85+To install the beta or nightly channel, "stable" should be substituted by
86+"nightly" or "beta", or
87+use the function provided by this overlay to pull a version based on a
88+build date.
89+
90+The overlay automatically updates itself as it uses the same source as
91+[rustup](https://www.rustup.rs/).
doc/overlays.xml+2−2
@@ -34,7 +34,7 @@ first one present is considered, and all the rest are ignored:
3434
3535 <listitem>
3636
37− <para>In the directory <filename>~/.nixpkgs/overlays/</filename>.</para>
37+ <para>In the directory <filename>~/.config/nixpkgs/overlays/</filename>.</para>
3838 </listitem>
3939
4040</orderedlist>
@@ -50,7 +50,7 @@ the same recipe. In the case where overlays are loaded from a directory, they ar
5050alphabetical order.</para>
5151
5252<para>To install an overlay using the last option, you can clone the overlay's repository and add
53−a symbolic link to it in <filename>~/.nixpkgs/overlays/</filename> directory.</para>
53+a symbolic link to it in <filename>~/.config/nixpkgs/overlays/</filename> directory.</para>
5454
5555</section>
5656
lib/attrsets.nix+2−2
@@ -1,12 +1,12 @@
11# Operations on attribute sets.
22
3−with {
3+let
44 inherit (builtins) head tail length;
55 inherit (import ./trivial.nix) or;
66 inherit (import ./default.nix) fold;
77 inherit (import ./strings.nix) concatStringsSep;
88 inherit (import ./lists.nix) concatMap concatLists all deepSeqList;
9−};
9+in
1010
1111rec {
1212 inherit (builtins) attrNames listToAttrs hasAttr isAttrs getAttr;
lib/composable-derivation.nix+3−3
@@ -1,4 +1,4 @@
1−{lib, pkgs} :
1+{lib, pkgs}:
22let inherit (lib) nv nvs; in
33{
44
@@ -19,7 +19,7 @@ let inherit (lib) nv nvs; in
1919 # * vim_configurable
2020 #
2121 # A minimal example illustrating most features would look like this:
22− # let base = composableDerivation { (fixed : let inherit (fixed.fixed) name in {
22+ # let base = composableDerivation { (fixed: let inherit (fixed.fixed) name in {
2323 # src = fetchurl {
2424 # }
2525 # buildInputs = [A];
@@ -79,7 +79,7 @@ let inherit (lib) nv nvs; in
7979 # consider adding addtional elements by derivation.merge { removeAttrs = ["elem"]; };
8080 removeAttrs ? ["cfg" "flags"]
8181
82− }: (lib.defaultOverridableDelayableArgs ( a: mkDerivation a)
82+ }: (lib.defaultOverridableDelayableArgs ( a: mkDerivation a)
8383 {
8484 inherit applyPreTidy removeAttrs;
8585 }).merge;
lib/customisation.nix+7−8
@@ -106,11 +106,9 @@ rec {
106106 let
107107 f = if builtins.isFunction fn then fn else import fn;
108108 auto = builtins.intersectAttrs (builtins.functionArgs f) autoArgs;
109− finalArgs = auto // args;
110− pkgs = f finalArgs;
111− mkAttrOverridable = name: pkg: pkg // {
112− override = newArgs: mkAttrOverridable name (f (finalArgs // newArgs)).${name};
113− };
109+ origArgs = auto // args;
110+ pkgs = f origArgs;
111+ mkAttrOverridable = name: pkg: makeOverridable (newArgs: (f newArgs).${name}) origArgs;
114112 in lib.mapAttrs mkAttrOverridable pkgs;
115113
116114
@@ -179,9 +177,10 @@ rec {
179177 let self = f self // {
180178 newScope = scope: newScope (self // scope);
181179 callPackage = self.newScope {};
182− override = g: makeScope newScope (self_:
183− let super = f self_;
184− in super // g super self_);
180+ override = g:
181+ makeScope newScope
182+ (self_: let super = f self_; in super // g super self_);
183+ packages = f;
185184 };
186185 in self;
187186
lib/debug.nix+7−7
@@ -24,10 +24,10 @@ rec {
2424 traceValSeq = v: traceVal (builtins.deepSeq v v);
2525
2626 # this can help debug your code as well - designed to not produce thousands of lines
27− traceShowVal = x : trace (showVal x) x;
27+ traceShowVal = x: trace (showVal x) x;
2828 traceShowValMarked = str: x: trace (str + showVal x) x;
29− attrNamesToStr = a : lib.concatStringsSep "; " (map (x : "${x}=") (attrNames a));
30− showVal = x :
29+ attrNamesToStr = a: lib.concatStringsSep "; " (map (x: "${x}=") (attrNames a));
30+ showVal = x:
3131 if isAttrs x then
3232 if x ? outPath then "x is a derivation, name ${if x ? name then x.name else "<no name>"}, { ${attrNamesToStr x} }"
3333 else "x is attr set { ${attrNamesToStr x} }"
@@ -43,9 +43,9 @@ rec {
4343
4444 # trace the arguments passed to function and its result
4545 # maybe rewrite these functions in a traceCallXml like style. Then one function is enough
46− traceCall = n : f : a : let t = n2 : x : traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a));
47− traceCall2 = n : f : a : b : let t = n2 : x : traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b));
48− traceCall3 = n : f : a : b : c : let t = n2 : x : traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b) (t "arg 3" c));
46+ traceCall = n: f: a: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a));
47+ traceCall2 = n: f: a: b: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b));
48+ traceCall3 = n: f: a: b: c: let t = n2: x: traceShowValMarked "${n} ${n2}:" x; in t "result" (f (t "arg 1" a) (t "arg 2" b) (t "arg 3" c));
4949
5050 # FIXME: rename this?
5151 traceValIfNot = c: x:
@@ -71,7 +71,7 @@ rec {
7171
7272 # create a test assuming that list elements are true
7373 # usage: { testX = allTrue [ true ]; }
74− testAllTrue = expr : { inherit expr; expected = map (x: true) expr; };
74+ testAllTrue = expr: { inherit expr; expected = map (x: true) expr; };
7575
7676 strict = v:
7777 trace "Warning: strict is deprecated and will be removed in the next release"
lib/default.nix+4−1
@@ -34,6 +34,9 @@ let
3434 sandbox = import ./sandbox.nix;
3535 fetchers = import ./fetchers.nix;
3636
37+ # Eval-time filesystem handling
38+ filesystem = import ./filesystem.nix;
39+
3740in
3841 { inherit trivial
3942 attrsets lists strings stringsWithDeps
@@ -41,7 +44,7 @@ in
4144 modules options types
4245 licenses platforms systems
4346 debug generators misc
44− sandbox fetchers;
47+ sandbox fetchers filesystem;
4548 }
4649 # !!! don't include everything at top-level; perhaps only the most
4750 # commonly used functions.
lib/deprecated.nix+91−88
@@ -16,23 +16,23 @@ rec {
1616
1717 defaultMergeArg = x : y: if builtins.isAttrs y then
1818 y
19− else
19+ else
2020 (y x);
2121 defaultMerge = x: y: x // (defaultMergeArg x y);
22− foldArgs = merger: f: init: x:
23− let arg=(merger init (defaultMergeArg init x));
24− # now add the function with composed args already applied to the final attrs
25− base = (setAttrMerge "passthru" {} (f arg)
26− ( z : z // rec {
27− function = foldArgs merger f arg;
28− args = (lib.attrByPath ["passthru" "args"] {} z) // x;
22+ foldArgs = merger: f: init: x:
23+ let arg = (merger init (defaultMergeArg init x));
24+ # now add the function with composed args already applied to the final attrs
25+ base = (setAttrMerge "passthru" {} (f arg)
26+ ( z: z // rec {
27+ function = foldArgs merger f arg;
28+ args = (lib.attrByPath ["passthru" "args"] {} z) // x;
2929 } ));
30− withStdOverrides = base // {
31− override = base.passthru.function;
32− } ;
30+ withStdOverrides = base // {
31+ override = base.passthru.function;
32+ };
3333 in
34− withStdOverrides;
35−
34+ withStdOverrides;
35+
3636
3737 # predecessors: proposed replacement for applyAndFun (which has a bug cause it merges twice)
3838 # the naming "overridableDelayableArgs" tries to express that you can
@@ -49,35 +49,35 @@ rec {
4949 #
5050 # examples: see test cases "res" below;
5151 overridableDelayableArgs =
52− f : # the function applied to the arguments
53− initial : # you pass attrs, the functions below are passing a function taking the fix argument
52+ f: # the function applied to the arguments
53+ initial: # you pass attrs, the functions below are passing a function taking the fix argument
5454 let
5555 takeFixed = if isFunction initial then initial else (fixed : initial); # transform initial to an expression always taking the fixed argument
56− tidy = args :
56+ tidy = args:
5757 let # apply all functions given in "applyPreTidy" in sequence
58− applyPreTidyFun = fold ( n : a : x : n ( a x ) ) lib.id (maybeAttr "applyPreTidy" [] args);
58+ applyPreTidyFun = fold ( n: a: x: n ( a x ) ) lib.id (maybeAttr "applyPreTidy" [] args);
5959 in removeAttrs (applyPreTidyFun args) ( ["applyPreTidy"] ++ (maybeAttr "removeAttrs" [] args) ); # tidy up args before applying them
60− fun = n : x :
61− let newArgs = fixed :
62− let args = takeFixed fixed;
63− mergeFun = args.${n};
64− in if isAttrs x then (mergeFun args x)
65− else assert isFunction x;
66− mergeFun args (x ( args // { inherit fixed; }));
67− in overridableDelayableArgs f newArgs;
60+ fun = n: x:
61+ let newArgs = fixed:
62+ let args = takeFixed fixed;
63+ mergeFun = args.${n};
64+ in if isAttrs x then (mergeFun args x)
65+ else assert isFunction x;
66+ mergeFun args (x ( args // { inherit fixed; }));
67+ in overridableDelayableArgs f newArgs;
6868 in
6969 (f (tidy (lib.fix takeFixed))) // {
7070 merge = fun "mergeFun";
7171 replace = fun "keepFun";
7272 };
73− defaultOverridableDelayableArgs = f :
73+ defaultOverridableDelayableArgs = f:
7474 let defaults = {
7575 mergeFun = mergeAttrByFunc; # default merge function. merge strategie (concatenate lists, strings) is given by mergeAttrBy
76− keepFun = a : b : { inherit (a) removeAttrs mergeFun keepFun mergeAttrBy; } // b; # even when using replace preserve these values
76+ keepFun = a: b: { inherit (a) removeAttrs mergeFun keepFun mergeAttrBy; } // b; # even when using replace preserve these values
7777 applyPreTidy = []; # list of functions applied to args before args are tidied up (usage case : prepareDerivationArgs)
7878 mergeAttrBy = mergeAttrBy // {
79− applyPreTidy = a : b : a ++ b;
80− removeAttrs = a : b: a ++ b;
79+ applyPreTidy = a: b: a ++ b;
80+ removeAttrs = a: b: a ++ b;
8181 };
8282 removeAttrs = ["mergeFun" "keepFun" "mergeAttrBy" "removeAttrs" "fixed" ]; # before applying the arguments to the function make sure these names are gone
8383 };
@@ -86,7 +86,7 @@ rec {
8686
8787
8888 # rec { # an example of how composedArgsAndFun can be used
89− # a = composedArgsAndFun (x : x) { a = ["2"]; meta = { d = "bar";}; };
89+ # a = composedArgsAndFun (x: x) { a = ["2"]; meta = { d = "bar";}; };
9090 # # meta.d will be lost ! It's your task to preserve it (eg using a merge function)
9191 # b = a.passthru.function { a = [ "3" ]; meta = { d2 = "bar2";}; };
9292 # # instead of passing/ overriding values you can use a merge function:
@@ -119,7 +119,7 @@ rec {
119119 else if val == true || val == false then false
120120 else null;
121121
122−
122+
123123 # Return true only if there is an attribute and it is true.
124124 checkFlag = attrSet: name:
125125 if name == "true" then true else
@@ -134,29 +134,29 @@ rec {
134134 ( attrByPath [name] (if checkFlag attrSet name then true else
135135 if argList == [] then null else
136136 let x = builtins.head argList; in
137− if (head x) == name then
137+ if (head x) == name then
138138 (head (tail x))
139− else (getValue attrSet
139+ else (getValue attrSet
140140 (tail argList) name)) attrSet );
141141
142−
142+
143143 # Input : attrSet, [[name default] ...], [ [flagname reqs..] ... ]
144144 # Output : are reqs satisfied? It's asserted.
145− checkReqs = attrSet : argList : condList :
145+ checkReqs = attrSet: argList: condList:
146146 (
147− fold lib.and true
148− (map (x: let name = (head x) ; in
149−
150− ((checkFlag attrSet name) ->
147+ fold lib.and true
148+ (map (x: let name = (head x); in
149+
150+ ((checkFlag attrSet name) ->
151151 (fold lib.and true
152152 (map (y: let val=(getValue attrSet argList y); in
153− (val!=null) && (val!=false))
154− (tail x))))) condList)) ;
155−
153+ (val!=null) && (val!=false))
154+ (tail x))))) condList));
155+
156156
157157 # This function has O(n^2) performance.
158− uniqList = {inputList, acc ? []} :
159− let go = xs : acc :
158+ uniqList = { inputList, acc ? [] }:
159+ let go = xs: acc:
160160 if xs == []
161161 then []
162162 else let x = head xs;
@@ -164,26 +164,26 @@ rec {
164164 in y ++ go (tail xs) (y ++ acc);
165165 in go inputList acc;
166166
167− uniqListExt = {inputList, outputList ? [],
168− getter ? (x : x), compare ? (x: y: x==y)}:
167+ uniqListExt = { inputList,
168+ outputList ? [],
169+ getter ? (x: x),
170+ compare ? (x: y: x==y) }:
169171 if inputList == [] then outputList else
170− let x=head inputList;
171− isX = y: (compare (getter y) (getter x));
172− newOutputList = outputList ++
173− (if any isX outputList then [] else [x]);
174− in uniqListExt {outputList=newOutputList;
175− inputList = (tail inputList);
176− inherit getter compare;
177− };
178−
172+ let x = head inputList;
173+ isX = y: (compare (getter y) (getter x));
174+ newOutputList = outputList ++
175+ (if any isX outputList then [] else [x]);
176+ in uniqListExt { outputList = newOutputList;
177+ inputList = (tail inputList);
178+ inherit getter compare;
179+ };
179180
180−
181181 condConcat = name: list: checker:
182182 if list == [] then name else
183− if checker (head list) then
184− condConcat
185− (name + (head (tail list)))
186− (tail (tail list))
183+ if checker (head list) then
184+ condConcat
185+ (name + (head (tail list)))
186+ (tail (tail list))
187187 checker
188188 else condConcat
189189 name (tail (tail list)) checker;
@@ -202,12 +202,12 @@ rec {
202202 in
203203 work startSet [] [];
204204
205− innerModifySumArgs = f: x: a: b: if b == null then (f a b) // x else
205+ innerModifySumArgs = f: x: a: b: if b == null then (f a b) // x else
206206 innerModifySumArgs f x (a // b);
207207 modifySumArgs = f: x: innerModifySumArgs f x {};
208208
209209
210− innerClosePropagation = acc : xs :
210+ innerClosePropagation = acc: xs:
211211 if xs == []
212212 then acc
213213 else let y = head xs;
@@ -227,31 +227,31 @@ rec {
227227 closePropagation = list: (uniqList {inputList = (innerClosePropagation [] list);});
228228
229229 # calls a function (f attr value ) for each record item. returns a list
230− mapAttrsFlatten = f : r : map (attr: f attr r.${attr}) (attrNames r);
230+ mapAttrsFlatten = f: r: map (attr: f attr r.${attr}) (attrNames r);
231231
232232 # attribute set containing one attribute
233− nvs = name : value : listToAttrs [ (nameValuePair name value) ];
233+ nvs = name: value: listToAttrs [ (nameValuePair name value) ];
234234 # adds / replaces an attribute of an attribute set
235− setAttr = set : name : v : set // (nvs name v);
235+ setAttr = set: name: v: set // (nvs name v);
236236
237237 # setAttrMerge (similar to mergeAttrsWithFunc but only merges the values of a particular name)
238− # setAttrMerge "a" [] { a = [2];} (x : x ++ [3]) -> { a = [2 3]; }
239− # setAttrMerge "a" [] { } (x : x ++ [3]) -> { a = [ 3]; }
240− setAttrMerge = name : default : attrs : f :
238+ # setAttrMerge "a" [] { a = [2];} (x: x ++ [3]) -> { a = [2 3]; }
239+ # setAttrMerge "a" [] { } (x: x ++ [3]) -> { a = [ 3]; }
240+ setAttrMerge = name: default: attrs: f:
241241 setAttr attrs name (f (maybeAttr name default attrs));
242242
243− # Using f = a : b = b the result is similar to //
243+ # Using f = a: b = b the result is similar to //
244244 # merge attributes with custom function handling the case that the attribute
245245 # exists in both sets
246− mergeAttrsWithFunc = f : set1 : set2 :
247− fold (n: set : if set ? ${n}
246+ mergeAttrsWithFunc = f: set1: set2:
247+ fold (n: set: if set ? ${n}
248248 then setAttr set n (f set.${n} set2.${n})
249249 else set )
250250 (set2 // set1) (attrNames set2);
251251
252252 # merging two attribute set concatenating the values of same attribute names
253253 # eg { a = 7; } { a = [ 2 3 ]; } becomes { a = [ 7 2 3 ]; }
254− mergeAttrsConcatenateValues = mergeAttrsWithFunc ( a : b : (toList a) ++ (toList b) );
254+ mergeAttrsConcatenateValues = mergeAttrsWithFunc ( a: b: (toList a) ++ (toList b) );
255255
256256 # merges attributes using //, if a name exisits in both attributes
257257 # an error will be triggered unless its listed in mergeLists
@@ -262,10 +262,10 @@ rec {
262262 # ! deprecated, use mergeAttrByFunc instead
263263 mergeAttrsNoOverride = { mergeLists ? ["buildInputs" "propagatedBuildInputs"],
264264 overrideSnd ? [ "buildPhase" ]
265− } : attrs1 : attrs2 :
266− fold (n: set :
265+ }: attrs1: attrs2:
266+ fold (n: set:
267267 setAttr set n ( if set ? ${n}
268− then # merge
268+ then # merge
269269 if elem n mergeLists # attribute contains list, merge them by concatenating
270270 then attrs2.${n} ++ attrs1.${n}
271271 else if elem n overrideSnd
@@ -286,14 +286,14 @@ rec {
286286 # { mergeAttrsBy = [...]; buildInputs = [ a b c d ]; }
287287 # is used by prepareDerivationArgs, defaultOverridableDelayableArgs and can be used when composing using
288288 # foldArgs, composedArgsAndFun or applyAndFun. Example: composableDerivation in all-packages.nix
289− mergeAttrByFunc = x : y :
289+ mergeAttrByFunc = x: y:
290290 let
291− mergeAttrBy2 = { mergeAttrBy=lib.mergeAttrs; }
291+ mergeAttrBy2 = { mergeAttrBy = lib.mergeAttrs; }
292292 // (maybeAttr "mergeAttrBy" {} x)
293293 // (maybeAttr "mergeAttrBy" {} y); in
294294 fold lib.mergeAttrs {} [
295295 x y
296− (mapAttrs ( a : v : # merge special names using given functions
296+ (mapAttrs ( a: v: # merge special names using given functions
297297 if x ? ${a}
298298 then if y ? ${a}
299299 then v x.${a} y.${a} # both have attr, use merge func
@@ -313,9 +313,9 @@ rec {
313313 #
314314 # This function is best explained by an example:
315315 #
316− # {version ? "2.x"} :
316+ # {version ? "2.x"}:
317317 #
318− # mkDerivation (mergeAttrsByVersion "package-name" version
318+ # mkDerivation (mergeAttrsByVersion "package-name" version
319319 # { # version specific settings
320320 # "git" = { src = ..; preConfigre = "autogen.sh"; buildInputs = [automake autoconf libtool]; };
321321 # "2.x" = { src = ..; };
@@ -346,21 +346,24 @@ rec {
346346 # See misc.nix -> versionedDerivation
347347 # discussion: nixpkgs: pull/310
348348 mergeAttrsByVersion = name: version: attrsByVersion: base:
349− mergeAttrsByFuncDefaultsClean [ { name = "${name}-${version}"; } base (maybeAttr version (throw "bad version ${version} for ${name}") attrsByVersion)];
349+ mergeAttrsByFuncDefaultsClean [ { name = "${name}-${version}"; }
350+ base
351+ (maybeAttr version (throw "bad version ${version} for ${name}") attrsByVersion)
352+ ];
350353
351354 # sane defaults (same name as attr name so that inherit can be used)
352355 mergeAttrBy = # { buildInputs = concatList; [...]; passthru = mergeAttr; [..]; }
353− listToAttrs (map (n : nameValuePair n lib.concat)
356+ listToAttrs (map (n: nameValuePair n lib.concat)
354357 [ "nativeBuildInputs" "buildInputs" "propagatedBuildInputs" "configureFlags" "prePhases" "postAll" "patches" ])
355− // listToAttrs (map (n : nameValuePair n lib.mergeAttrs) [ "passthru" "meta" "cfg" "flags" ])
356− // listToAttrs (map (n : nameValuePair n (a: b: "${a}\n${b}") ) [ "preConfigure" "postInstall" ])
358+ // listToAttrs (map (n: nameValuePair n lib.mergeAttrs) [ "passthru" "meta" "cfg" "flags" ])
359+ // listToAttrs (map (n: nameValuePair n (a: b: "${a}\n${b}") ) [ "preConfigure" "postInstall" ])
357360 ;
358361
359362 # prepareDerivationArgs tries to make writing configurable derivations easier
360363 # example:
361364 # prepareDerivationArgs {
362365 # mergeAttrBy = {
363− # myScript = x : y : x ++ "\n" ++ y;
366+ # myScript = x: y: x ++ "\n" ++ y;
364367 # };
365368 # cfg = {
366369 # readlineSupport = true;
@@ -392,10 +395,10 @@ rec {
392395 # TODO use args.mergeFun here as well?
393396 prepareDerivationArgs = args:
394397 let args2 = { cfg = {}; flags = {}; } // args;
395− flagName = name : "${name}Support";
396− cfgWithDefaults = (listToAttrs (map (n : nameValuePair (flagName n) false) (attrNames args2.flags)))
398+ flagName = name: "${name}Support";
399+ cfgWithDefaults = (listToAttrs (map (n: nameValuePair (flagName n) false) (attrNames args2.flags)))
397400 // args2.cfg;
398− opts = attrValues (mapAttrs (a : v :
401+ opts = attrValues (mapAttrs (a: v:
399402 let v2 = if v ? set || v ? unset then v else { set = v; };
400403 n = if cfgWithDefaults.${flagName a} then "set" else "unset";
401404 attr = maybeAttr n {} v2; in
lib/filesystem.nixnew file+26
@@ -0,0 +1,26 @@
1+{ # locateDominatingFile : RegExp
2+ # -> Path
3+ # -> Nullable { path : Path;
4+ # matches : [ MatchResults ];
5+ # }
6+ # Find the first directory containing a file matching 'pattern'
7+ # upward from a given 'file'.
8+ # Returns 'null' if no directories contain a file matching 'pattern'.
9+ locateDominatingFile = pattern: file:
10+ let go = path:
11+ let files = builtins.attrNames (builtins.readDir path);
12+ matches = builtins.filter (match: match != null)
13+ (map (builtins.match pattern) files);
14+ in
15+ if builtins.length matches != 0
16+ then { inherit path matches; }
17+ else if path == /.
18+ then null
19+ else go (dirOf path);
20+ parent = dirOf file;
21+ isDir =
22+ let base = baseNameOf file;
23+ type = (builtins.readDir parent).${base} or null;
24+ in file == /. || type == "directory";
25+ in go (if isDir then file else parent);
26+}
lib/lists.nix+29−12
@@ -16,17 +16,22 @@ rec {
1616 */
1717 singleton = x: [x];
1818
19− /* "Fold" a binary function `op' between successive elements of
20− `list' with `nul' as the starting value, i.e., `fold op nul [x_1
21− x_2 ... x_n] == op x_1 (op x_2 ... (op x_n nul))'. (This is
22− Haskell's foldr).
19+ /* “right fold” a binary function `op' between successive elements of
20+ `list' with `nul' as the starting value, i.e.,
21+ `foldr op nul [x_1 x_2 ... x_n] == op x_1 (op x_2 ... (op x_n nul))'.
22+ Type:
23+ foldr :: (a -> b -> b) -> b -> [a] -> b
2324
2425 Example:
25− concat = fold (a: b: a + b) "z"
26+ concat = foldr (a: b: a + b) "z"
2627 concat [ "a" "b" "c" ]
2728 => "abcz"
29+ # different types
30+ strange = foldr (int: str: toString (int + 1) + str) "a"
31+ strange [ 1 2 3 4 ]
32+ => "2345a"
2833 */
29− fold = op: nul: list:
34+ foldr = op: nul: list:
3035 let
3136 len = length list;
3237 fold' = n:
@@ -35,13 +40,25 @@ rec {
3540 else op (elemAt list n) (fold' (n + 1));
3641 in fold' 0;
3742
38− /* Left fold: `fold op nul [x_1 x_2 ... x_n] == op (... (op (op nul
39− x_1) x_2) ... x_n)'.
43+ /* `fold' is an alias of `foldr' for historic reasons */
44+ # FIXME(Profpatsch): deprecate?
45+ fold = foldr;
46+
47+
48+ /* “left fold”, like `foldr', but from the left:
49+ `foldl op nul [x_1 x_2 ... x_n] == op (... (op (op nul x_1) x_2) ... x_n)`.
50+
51+ Type:
52+ foldl :: (b -> a -> b) -> b -> [a] -> b
4053
4154 Example:
4255 lconcat = foldl (a: b: a + b) "z"
4356 lconcat [ "a" "b" "c" ]
4457 => "zabc"
58+ # different types
59+ lstrange = foldl (str: int: str + toString (int + 1)) ""
60+ strange [ 1 2 3 4 ]
61+ => "a2345"
4562 */
4663 foldl = op: nul: list:
4764 let
@@ -52,7 +69,7 @@ rec {
5269 else op (foldl' (n - 1)) (elemAt list n);
5370 in foldl' (length list - 1);
5471
55− /* Strict version of foldl.
72+ /* Strict version of `foldl'.
5673
5774 The difference is that evaluation is forced upon access. Usually used
5875 with small whole results (in contract with lazily-generated list or large
@@ -140,7 +157,7 @@ rec {
140157 any isString [ 1 { } ]
141158 => false
142159 */
143− any = builtins.any or (pred: fold (x: y: if pred x then true else y) false);
160+ any = builtins.any or (pred: foldr (x: y: if pred x then true else y) false);
144161
145162 /* Return true iff function `pred' returns true for all elements of
146163 `list'.
@@ -151,7 +168,7 @@ rec {
151168 all (x: x < 3) [ 1 2 3 ]
152169 => false
153170 */
154− all = builtins.all or (pred: fold (x: y: if pred x then y else false) true);
171+ all = builtins.all or (pred: foldr (x: y: if pred x then y else false) true);
155172
156173 /* Count how many times function `pred' returns true for the elements
157174 of `list'.
@@ -219,7 +236,7 @@ rec {
219236 => { right = [ 5 3 4 ]; wrong = [ 1 2 ]; }
220237 */
221238 partition = builtins.partition or (pred:
222− fold (h: t:
239+ foldr (h: t:
223240 if pred h
224241 then { right = [h] ++ t.right; wrong = t.wrong; }
225242 else { right = t.right; wrong = [h] ++ t.wrong; }
lib/maintainers.nix+38−4
@@ -14,15 +14,18 @@
1414 aboseley = "Adam Boseley <adam.boseley@gmail.com>";
1515 abuibrahim = "Ruslan Babayev <ruslan@babayev.com>";
1616 acowley = "Anthony Cowley <acowley@gmail.com>";
17+ adelbertc = "Adelbert Chang <adelbertc@gmail.com>";
1718 adev = "Adrien Devresse <adev@adev.name>";
1819 Adjective-Object = "Maxwell Huang-Hobbs <mhuan13@gmail.com>";
1920 adnelson = "Allen Nelson <ithinkican@gmail.com>";
2021 adolfogc = "Adolfo E. García Castro <adolfo.garcia.cr@gmail.com>";
2122 aespinosa = "Allan Espinosa <allan.espinosa@outlook.com>";
2223 aflatter = "Alexander Flatter <flatter@fastmail.fm>";
24+ afldcr = "James Alexander Feldman-Crough <alex@fldcr.com>";
2325 aforemny = "Alexander Foremny <alexanderforemny@googlemail.com>";
2426 afranchuk = "Alex Franchuk <alex.franchuk@gmail.com>";
2527 aherrmann = "Andreas Herrmann <andreash87@gmx.ch>";
28+ ahmedtd = "Taahir Ahmed <ahmed.taahir@gmail.com>";
2629 ak = "Alexander Kjeldaas <ak@formalprivacy.com>";
2730 akaWolf = "Artjom Vejsel <akawolf0@gmail.com>";
2831 akc = "Anders Claesson <akc@akc.is>";
@@ -58,7 +61,6 @@
5861 badi = "Badi' Abdul-Wahid <abdulwahidc@gmail.com>";
5962 balajisivaraman = "Balaji Sivaraman<sivaraman.balaji@gmail.com>";
6063 Baughn = "Svein Ove Aas <sveina@gmail.com>";
61− bbenoist = "Baptist BENOIST <return_0@live.com>";
6264 bcarrell = "Brandon Carrell <brandoncarrell@gmail.com>";
6365 bcdarwin = "Ben Darwin <bcdarwin@gmail.com>";
6466 bdimcheff = "Brandon Dimcheff <brandon@dimcheff.com>";
@@ -70,6 +72,7 @@
7072 bjg = "Brian Gough <bjg@gnu.org>";
7173 bjornfor = "Bjørn Forsman <bjorn.forsman@gmail.com>";
7274 bluescreen303 = "Mathijs Kwik <mathijs@bluescreen303.nl>";
75+ bobakker = "Bo Bakker <bobakk3r@gmail.com>";
7376 bobvanderlinden = "Bob van der Linden <bobvanderlinden@gmail.com>";
7477 bodil = "Bodil Stokke <nix@bodil.org>";
7578 boothead = "Ben Ford <ben@perurbis.com>";
@@ -80,11 +83,13 @@
8083 bzizou = "Bruno Bzeznik <Bruno@bzizou.net>";
8184 c0dehero = "CodeHero <codehero@nerdpol.ch>";
8285 calrama = "Moritz Maxeiner <moritz@ucworks.org>";
86+ calvertvl = "Victor Calvert <calvertvl@gmail.com>";
8387 campadrenalin = "Philip Horger <campadrenalin@gmail.com>";
8488 canndrew = "Andrew Cann <shum@canndrew.org>";
8589 carlsverre = "Carl Sverre <accounts@carlsverre.com>";
8690 cdepillabout = "Dennis Gosnell <cdep.illabout@gmail.com>";
8791 cfouche = "Chaddaï Fouché <chaddai.fouche@gmail.com>";
92+ changlinli = "Changlin Li <mail@changlinli.com>";
8893 chaoflow = "Florian Friesdorf <flo@chaoflow.net>";
8994 chattered = "Phil Scott <me@philscotted.com>";
9095 choochootrain = "Hurshal Patel <hurshal@imap.cc>";
@@ -131,12 +136,15 @@
131136 dgonyeo = "Derek Gonyeo <derek@gonyeo.com>";
132137 dipinhora = "Dipin Hora <dipinhora+github@gmail.com>";
133138 dmalikov = "Dmitry Malikov <malikov.d.y@gmail.com>";
139+ DmitryTsygankov = "Dmitry Tsygankov <dmitry.tsygankov@gmail.com>";
140+ dmjio = "David Johnson <djohnson.m@gmail.com>";
134141 dochang = "Desmond O. Chang <dochang@gmail.com>";
135142 domenkozar = "Domen Kozar <domen@dev.si>";
136143 doublec = "Chris Double <chris.double@double.co.nz>";
137144 dpaetzel = "David Pätzel <david.a.paetzel@gmail.com>";
138145 drets = "Dmytro Rets <dmitryrets@gmail.com>";
139146 drewkett = "Andrew Burkett <burkett.andrew@gmail.com>";
147+ dsferruzza = "David Sferruzza <david.sferruzza@gmail.com>";
140148 dtzWill = "Will Dietz <nix@wdtz.org>";
141149 e-user = "Alexander Kahl <nixos@sodosopa.io>";
142150 ebzzry = "Rommel Martinez <ebzzry@gmail.com>";
@@ -176,6 +184,7 @@
176184 ftrvxmtrx = "Siarhei Zirukin <ftrvxmtrx@gmail.com>";
177185 funfunctor = "Edward O'Callaghan <eocallaghan@alterapraxis.com>";
178186 fuuzetsu = "Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>";
187+ fuzzy-id = "Thomas Bach <hacking+nixos@babibo.de>";
179188 fxfactorial = "Edgar Aroutiounian <edgar.factorial@gmail.com>";
180189 gal_bolle = "Florent Becker <florent.becker@ens-lyon.org>";
181190 garbas = "Rok Garbas <rok@garbas.si>";
@@ -200,6 +209,7 @@
200209 havvy = "Ryan Scheel <ryan.havvy@gmail.com>";
201210 hbunke = "Hendrik Bunke <bunke.hendrik@gmail.com>";
202211 hce = "Hans-Christian Esperer <hc@hcesperer.org>";
212+ heel = "Sergii Paryzhskyi <parizhskiy@gmail.com>";
203213 henrytill = "Henry Till <henrytill@gmail.com>";
204214 hinton = "Tom Hinton <t@larkery.com>";
205215 hrdinka = "Christoph Hrdinka <c.nix@hrdinka.at>";
@@ -210,6 +220,7 @@
210220 ivan-tkatchev = "Ivan Tkatchev <tkatchev@gmail.com>";
211221 j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>";
212222 jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";
223+ jansol = "Jan Solanti <jan.solanti@paivola.fi>";
213224 javaguirre = "Javier Aguirre <contacto@javaguirre.net>";
214225 jb55 = "William Casarin <bill@casarin.me>";
215226 jbedo = "Justin Bedő <cu@cua0.org>";
@@ -221,6 +232,7 @@
221232 jgeerds = "Jascha Geerds <jascha@jgeerds.name>";
222233 jgertm = "Tim Jaeger <jger.tm@gmail.com>";
223234 jgillich = "Jakob Gillich <jakob@gillich.me>";
235+ jhhuh = "Ji-Haeng Huh <jhhuh.note@gmail.com>";
224236 jirkamarsik = "Jirka Marsik <jiri.marsik89@gmail.com>";
225237 joachifm = "Joachim Fasting <joachifm@fastmail.fm>";
226238 joamaki = "Jussi Maki <joamaki@gmail.com>";
@@ -231,6 +243,7 @@
231243 jonafato = "Jon Banafato <jon@jonafato.com>";
232244 jpbernardy = "Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>";
233245 jpierre03 = "Jean-Pierre PRUNARET <nix@prunetwork.fr>";
246+ jpotier = "Martin Potier <jpo.contributes.to.nixos@marvid.fr>";
234247 jraygauthier = "Raymond Gauthier <jraygauthier@gmail.com>";
235248 juliendehos = "Julien Dehos <dehos@lisic.univ-littoral.fr>";
236249 jwiegley = "John Wiegley <johnw@newartisans.com>";
@@ -248,6 +261,7 @@
248261 koral = "Koral <koral@mailoo.org>";
249262 kovirobi = "Kovacsics Robert <kovirobi@gmail.com>";
250263 kragniz = "Louis Taylor <louis@kragniz.eu>";
264+ kristoff3r = "Kristoffer Søholm <k.soeholm@gmail.com>";
251265 ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";
252266 lassulus = "Lassulus <lassulus@gmail.com>";
253267 layus = "Guillaume Maudoux <layus.on@gmail.com>";
@@ -274,6 +288,7 @@
274288 luispedro = "Luis Pedro Coelho <luis@luispedro.org>";
275289 lukego = "Luke Gorrie <luke@snabb.co>";
276290 lw = "Sergey Sofeychuk <lw@fmap.me>";
291+ ma27 = "Maximilian Bosch <maximilian@mbosch.me>";
277292 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
278293 magnetophon = "Bart Brouns <bart@magnetophon.nl>";
279294 mahe = "Matthias Herrmann <matthias.mh.herrmann@gmail.com>";
@@ -301,11 +316,12 @@
301316 meisternu = "Matt Miemiec <meister@krutt.org>";
302317 metabar = "Celine Mercier <softs@metabarcoding.org>";
303318 mguentner = "Maximilian Güntner <code@klandest.in>";
304− mic92 = "Jörg Thalheim <joerg@higgsboson.tk>";
319+ mic92 = "Jörg Thalheim <joerg@thalheim.io>";
305320 michaelpj = "Michael Peyton Jones <michaelpj@gmail.com>";
306321 michalrus = "Michal Rus <m@michalrus.com>";
307322 michelk = "Michel Kuhlmann <michel@kuhlmanns.info>";
308323 mikefaille = "Michaël Faille <michael@faille.io>";
324+ miltador = "Vasiliy Solovey <miltador@yandex.ua>";
309325 mimadrid = "Miguel Madrid <mimadrid@ucm.es>";
310326 mingchuan = "Ming Chuan <ming@culpring.com>";
311327 mirdhyn = "Merlin Gaillard <mirdhyn@gmail.com>";
@@ -335,16 +351,21 @@
335351 Nate-Devv = "Nathan Moore <natedevv@gmail.com>";
336352 nathan-gs = "Nathan Bijnens <nathan@nathan.gs>";
337353 nckx = "Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>";
354+ ndowens = "Nathan Owens <ndowens04@gmail.com>";
355+ neeasade = "Nathan Isom <nathanisom27@gmail.com>";
338356 nequissimus = "Tim Steinbach <tim@nequissimus.com>";
339357 nfjinjing = "Jinjing Wang <nfjinjing@gmail.com>";
340358 nhooyr = "Anmol Sethi <anmol@aubble.com>";
359+ nickhu = "Nick Hu <me@nickhu.co.uk>";
341360 nicknovitski = "Nick Novitski <nixpkgs@nicknovitski.com>";
342361 nico202 = "Nicolò Balzarotti <anothersms@gmail.com>";
343362 NikolaMandic = "Ratko Mladic <nikola@mandic.email>";
344363 nixy = "Andrew R. M. <andrewmiller237@gmail.com>";
364+ nocoolnametom = "Tom Doggett <nocoolnametom@gmail.com>";
345365 notthemessiah = "Brian Cohen <brian.cohen.88@gmail.com>";
346366 np = "Nicolas Pouillard <np.nix@nicolaspouillard.fr>";
347367 nslqqq = "Nikita Mikhailov <nslqqq@gmail.com>";
368+ nthorne = "Niklas Thörne <notrupertthorne@gmail.com>";
348369 obadz = "obadz <obadz-nixos@obadz.com>";
349370 ocharles = "Oliver Charles <ollie@ocharles.org.uk>";
350371 odi = "Oliver Dunkl <oliver.dunkl@gmail.com>";
@@ -364,7 +385,9 @@
364385 palo = "Ingolf Wanger <palipalo9@googlemail.com>";
365386 paperdigits = "Mica Semrick <mica@silentumbrella.com>";
366387 pashev = "Igor Pashev <pashev.igor@gmail.com>";
388+ patternspandemic = "Brad Christensen <patternspandemic@live.com>";
367389 pawelpacana = "Paweł Pacana <pawel.pacana@gmail.com>";
390+ pbogdan = "Piotr Bogdan <ppbogdan@gmail.com>";
368391 periklis = "theopompos@gmail.com";
369392 pesterhazy = "Paulus Esterhazy <pesterhazy@gmail.com>";
370393 peterhoeg = "Peter Hoeg <peter@hoeg.com>";
@@ -374,12 +397,14 @@
374397 Phlogistique = "Noé Rubinstein <noe.rubinstein@gmail.com>";
375398 phreedom = "Evgeny Egorochkin <phreedom@yandex.ru>";
376399 phunehehe = "Hoang Xuan Phu <phunehehe@gmail.com>";
400+ pierrer = "Pierre Radermecker <pierrer@pi3r.be>";
377401 pierron = "Nicolas B. Pierron <nixos@nbp.name>";
378402 piotr = "Piotr Pietraszkiewicz <ppietrasa@gmail.com>";
379403 pjbarnoy = "Perry Barnoy <pjbarnoy@gmail.com>";
380404 pjones = "Peter Jones <pjones@devalot.com>";
381405 pkmx = "Chih-Mao Chen <pkmx.tw@gmail.com>";
382406 plcplc = "Philip Lykke Carlsen <plcplc@gmail.com>";
407+ plumps = "Maksim Bronsky <maks.bronsky@web.de";
383408 pmahoney = "Patrick Mahoney <pat@polycrystal.org>";
384409 pmiddend = "Philipp Middendorf <pmidden@secure.mailbox.org>";
385410 polyrod = "Maurizio Di Pietro <dc1mdp@gmail.com>";
@@ -423,6 +448,7 @@
423448 rongcuid = "Rongcui Dong <rongcuid@outlook.com>";
424449 ronny = "Ronny Pfannschmidt <nixos@ronnypfannschmidt.de>";
425450 rszibele = "Richard Szibele <richard_szibele@hotmail.com>";
451+ rtreffer = "Rene Treffer <treffer+nixos@measite.de>";
426452 rushmorem = "Rushmore Mushambi <rushmore@webenchanter.com>";
427453 rvl = "Rodney Lorrimar <dev+nix@rodney.id.au>";
428454 rvlander = "Gaëtan André <rvlander@gaetanandre.eu>";
@@ -440,6 +466,8 @@
440466 scolobb = "Sergiu Ivanov <sivanov@colimite.fr>";
441467 sepi = "Raffael Mancini <raffael@mancini.lu>";
442468 seppeljordan = "Sebastian Jordan <sebastian.jordan.mail@googlemail.com>";
469+ shanemikel = "Shane Pearlman <shanemikel1@gmail.com>";
470+ shawndellysse = "Shawn Dellysse <sdellysse@gmail.com>";
443471 sheenobu = "Sheena Artrip <sheena.artrip@gmail.com>";
444472 sheganinans = "Aistis Raulinaitis <sheganinans@gmail.com>";
445473 shell = "Shell Turner <cam.turn@gmail.com>";
@@ -471,7 +499,9 @@
471499 sztupi = "Attila Sztupak <attila.sztupak@gmail.com>";
472500 taeer = "Taeer Bar-Yam <taeer@necsi.edu>";
473501 tailhook = "Paul Colomiets <paul@colomiets.name>";
502+ takikawa = "Asumu Takikawa <asumu@igalia.com>";
474503 taktoa = "Remy Goldschmidt <taktoa@gmail.com>";
504+ taku0 = "Takuo Yonezawa <mxxouy6x3m_github@tatapa.org>";
475505 tavyc = "Octavian Cerna <octavian.cerna@gmail.com>";
476506 teh = "Tom Hunger <tehunger@gmail.com>";
477507 telotortium = "Robert Irelan <rirelan@gmail.com>";
@@ -488,13 +518,14 @@
488518 travisbhartwell = "Travis B. Hartwell <nafai@travishartwell.net>";
489519 trino = "Hubert Mühlhans <muehlhans.hubert@ekodia.de>";
490520 tstrobel = "Thomas Strobel <4ZKTUB6TEP74PYJOPWIR013S2AV29YUBW5F9ZH2F4D5UMJUJ6S@hash.domains>";
491− ttuegel = "Thomas Tuegel <ttuegel@gmail.com>";
521+ ttuegel = "Thomas Tuegel <ttuegel@mailbox.org>";
492522 tv = "Tomislav Viljetić <tv@shackspace.de>";
493523 tvestelind = "Tomas Vestelind <tomas.vestelind@fripost.org>";
494524 tvorog = "Marsel Zaripov <marszaripov@gmail.com>";
495525 twey = "James ‘Twey’ Kay <twey@twey.co.uk>";
496526 uralbash = "Svintsov Dmitry <root@uralbash.ru>";
497− urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>";
527+ utdemir = "Utku Demir <me@utdemir.com>";
528+ #urkud = "Yury G. Kudryashov <urkud+nix@ya.ru>"; inactive since 2012
498529 uwap = "uwap <me@uwap.name>";
499530 vandenoever = "Jos van den Oever <jos@vandenoever.info>";
500531 vanzef = "Ivan Solyankin <vanzef@gmail.com>";
@@ -523,6 +554,9 @@
523554 womfoo = "Kranium Gikos Mendoza <kranium@gikos.net>";
524555 wscott = "Wayne Scott <wsc9tt@gmail.com>";
525556 wyvie = "Elijah Rum <elijahrum@gmail.com>";
557+ xnwdd = "Guillermo NWDD <nwdd+nixos@no.team>";
558+ xvapx = "Marti Serra <marti.serra.coscollano@gmail.com>";
559+ xwvvvvwx = "David Terry <davidterry@posteo.de>";
526560 yarr = "Dmitry V. <savraz@gmail.com>";
527561 yochai = "Yochai <yochai@titat.info>";
528562 yorickvp = "Yorick van Pelt <yorickvanpelt@gmail.com>";
lib/modules.nix+21−11
@@ -20,7 +20,8 @@ rec {
2020 , prefix ? []
2121 , # This should only be used for special arguments that need to be evaluated
2222 # when resolving module structure (like in imports). For everything else,
23− # there's _module.args.
23+ # there's _module.args. If specialArgs.modulesPath is defined it will be
24+ # used as the base path for disabledModules.
2425 specialArgs ? {}
2526 , # This would be remove in the future, Prefer _module.args option instead.
2627 args ? {}
@@ -58,10 +59,7 @@ rec {
5859
5960 closed = closeModules (modules ++ [ internalModule ]) ({ inherit config options; lib = import ./.; } // specialArgs);
6061
61− # Note: the list of modules is reversed to maintain backward
62− # compatibility with the old module system. Not sure if this is
63− # the most sensible policy.
64− options = mergeModules prefix (reverseList closed);
62+ options = mergeModules prefix (reverseList (filterModules (specialArgs.modulesPath or "") closed));
6563
6664 # Traverse options and extract the option values into the final
6765 # config set. At the same time, check whether all option
@@ -87,6 +85,16 @@ rec {
8785 result = { inherit options config; };
8886 in result;
8987
88+
89+ # Filter disabled modules. Modules can be disabled allowing
90+ # their implementation to be replaced.
91+ filterModules = modulesPath: modules:
92+ let
93+ moduleKey = m: if isString m then toString modulesPath + "/" + m else toString m;
94+ disabledKeys = map moduleKey (concatMap (m: m.disabledModules) modules);
95+ in
96+ filter (m: !(elem m.key disabledKeys)) modules;
97+
9098 /* Close a set of modules under the ‘imports’ relation. */
9199 closeModules = modules: args:
92100 let
@@ -106,17 +114,18 @@ rec {
106114 /* Massage a module into canonical form, that is, a set consisting
107115 of ‘options’, ‘config’ and ‘imports’ attributes. */
108116 unifyModuleSyntax = file: key: m:
109− let metaSet = if m ? meta
117+ let metaSet = if m ? meta
110118 then { meta = m.meta; }
111119 else {};
112120 in
113121 if m ? config || m ? options then
114− let badAttrs = removeAttrs m ["imports" "options" "config" "key" "_file" "meta"]; in
122+ let badAttrs = removeAttrs m ["_file" "key" "disabledModules" "imports" "options" "config" "meta"]; in
115123 if badAttrs != {} then
116124 throw "Module `${key}' has an unsupported attribute `${head (attrNames badAttrs)}'. This is caused by assignments to the top-level attributes `config' or `options'."
117125 else
118126 { file = m._file or file;
119127 key = toString m.key or key;
128+ disabledModules = m.disabledModules or [];
120129 imports = m.imports or [];
121130 options = m.options or {};
122131 config = mkMerge [ (m.config or {}) metaSet ];
@@ -124,9 +133,10 @@ rec {
124133 else
125134 { file = m._file or file;
126135 key = toString m.key or key;
136+ disabledModules = m.disabledModules or [];
127137 imports = m.require or [] ++ m.imports or [];
128138 options = {};
129− config = mkMerge [ (removeAttrs m ["key" "_file" "require" "imports"]) metaSet ];
139+ config = mkMerge [ (removeAttrs m ["_file" "key" "disabledModules" "require" "imports"]) metaSet ];
130140 };
131141
132142 applyIfFunction = key: f: args@{ config, options, lib, ... }: if isFunction f then
@@ -585,7 +595,7 @@ rec {
585595 functionality
586596
587597 This show a warning if any a.b.c or d.e.f is set, and set the value of
588− x.y.z to the result of the merge function
598+ x.y.z to the result of the merge function
589599 */
590600 mkMergedOptionModule = from: to: mergeFn:
591601 { config, options, ... }:
@@ -601,12 +611,12 @@ rec {
601611 let val = getAttrFromPath f config;
602612 opt = getAttrFromPath f options;
603613 in
604− optionalString
614+ optionalString
605615 (val != "_mkMergedOptionModule")
606616 "The option `${showOption f}' defined in ${showFiles opt.files} has been changed to `${showOption to}' that has a different type. Please read `${showOption to}' documentation and update your configuration accordingly."
607617 ) from);
608618 } // setAttrByPath to (mkMerge
609− (optional
619+ (optional
610620 (any (f: (getAttrFromPath f config) != "_mkMergedOptionModule") from)
611621 (mergeFn config)));
612622 };
lib/sources.nix+6
@@ -26,6 +26,12 @@ rec {
2626
2727 cleanSource = builtins.filterSource cleanSourceFilter;
2828
29+ # Filter sources by a list of regular expressions.
30+ #
31+ # E.g. `src = sourceByRegex ./my-subproject [".*\.py$" "^database.sql$"]`
32+ sourceByRegex = src: regexes: builtins.filterSource (path: type:
33+ let relPath = lib.removePrefix (toString src + "/") (toString path);
34+ in lib.any (re: builtins.match re relPath != null) regexes) src;
2935
3036 # Get all files ending with the specified suffices from the given
3137 # directory or its descendants. E.g. `sourceFilesBySuffices ./dir
lib/strings.nix+3−5
@@ -291,7 +291,7 @@ rec {
291291
292292 recurse = index: startAt:
293293 let cutUntil = i: [(substring startAt (i - startAt) s)]; in
294− if index < lastSearch then
294+ if index <= lastSearch then
295295 if startWithSep index then
296296 let restartAt = index + sepLen; in
297297 cutUntil index ++ recurse restartAt restartAt
@@ -476,10 +476,8 @@ rec {
476476 readPathsFromFile = rootPath: file:
477477 let
478478 root = toString rootPath;
479− lines =
480− builtins.map (lib.removeSuffix "\n")
481− (lib.splitString "\n" (builtins.readFile file));
482− removeComments = lib.filter (line: !(lib.hasPrefix "#" line));
479+ lines = lib.splitString "\n" (builtins.readFile file);
480+ removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line));
483481 relativePaths = removeComments lines;
484482 absolutePaths = builtins.map (path: builtins.toPath (root + "/" + path)) relativePaths;
485483 in
lib/tests.nix+65−8
@@ -1,3 +1,6 @@
1+# to run these tests:
2+# nix-instantiate --eval --strict nixpkgs/lib/tests.nix
3+# if the resulting list is empty, all tests passed
14let inherit (builtins) add; in
25with import ./default.nix;
36
@@ -45,10 +48,34 @@ runTests {
4548 expected = ["b" "c"];
4649 };
4750
48− testFold = {
49− expr = fold (builtins.add) 0 (range 0 100);
50− expected = 5050;
51− };
51+ testFold =
52+ let
53+ f = op: fold: fold op 0 (range 0 100);
54+ # fold with associative operator
55+ assoc = f builtins.add;
56+ # fold with non-associative operator
57+ nonAssoc = f builtins.sub;
58+ in {
59+ expr = {
60+ assocRight = assoc foldr;
61+ # right fold with assoc operator is same as left fold
62+ assocRightIsLeft = assoc foldr == assoc foldl;
63+ nonAssocRight = nonAssoc foldr;
64+ nonAssocLeft = nonAssoc foldl;
65+ # with non-assoc operator the fold results are not the same
66+ nonAssocRightIsNotLeft = nonAssoc foldl != nonAssoc foldr;
67+ # fold is an alias for foldr
68+ foldIsRight = nonAssoc fold == nonAssoc foldr;
69+ };
70+ expected = {
71+ assocRight = 5050;
72+ assocRightIsLeft = true;
73+ nonAssocRight = 50;
74+ nonAssocLeft = (-5050);
75+ nonAssocRightIsNotLeft = true;
76+ foldIsRight = true;
77+ };
78+ };
5279
5380 testTake = testAllTrue [
5481 ([] == (take 0 [ 1 2 3 ]))
@@ -80,7 +107,7 @@ runTests {
80107 y = x.merge {};
81108 in (y.merge) { a = 10; };
82109
83− resRem7 = res6.replace (a : removeAttrs a ["a"]);
110+ resRem7 = res6.replace (a: removeAttrs a ["a"]);
84111
85112 resReplace6 = let x = defaultOverridableDelayableArgs id { a = 7; mergeAttrBy = { a = add; }; };
86113 x2 = x.merge { a = 20; }; # now we have 27
@@ -88,10 +115,10 @@ runTests {
88115
89116 # fixed tests (delayed args): (when using them add some comments, please)
90117 resFixed1 =
91− let x = defaultOverridableDelayableArgs id ( x : { a = 7; c = x.fixed.b; });
92− y = x.merge (x : { name = "name-${builtins.toString x.fixed.c}"; });
118+ let x = defaultOverridableDelayableArgs id ( x: { a = 7; c = x.fixed.b; });
119+ y = x.merge (x: { name = "name-${builtins.toString x.fixed.c}"; });
93120 in (y.merge) { b = 10; };
94− strip = attrs : removeAttrs attrs ["merge" "replace"];
121+ strip = attrs: removeAttrs attrs ["merge" "replace"];
95122 in all id
96123 [ ((strip res1) == { })
97124 ((strip res2) == { a = 7; })
@@ -220,4 +247,34 @@ runTests {
220247 expected = builtins.toJSON val;
221248 };
222249
250+ testSplitStringsSimple = {
251+ expr = strings.splitString "." "a.b.c.d";
252+ expected = [ "a" "b" "c" "d" ];
253+ };
254+
255+ testSplitStringsEmpty = {
256+ expr = strings.splitString "." "a..b";
257+ expected = [ "a" "" "b" ];
258+ };
259+
260+ testSplitStringsOne = {
261+ expr = strings.splitString ":" "a.b";
262+ expected = [ "a.b" ];
263+ };
264+
265+ testSplitStringsNone = {
266+ expr = strings.splitString "." "";
267+ expected = [ "" ];
268+ };
269+
270+ testSplitStringsFirstEmpty = {
271+ expr = strings.splitString "/" "/a/b/c";
272+ expected = [ "" "a" "b" "c" ];
273+ };
274+
275+ testSplitStringsLastEmpty = {
276+ expr = strings.splitString ":" "2001:db8:0:0042::8a2e:370:";
277+ expected = [ "2001" "db8" "0" "0042" "" "8a2e" "370" "" ];
278+ };
279+
223280}
lib/tests/modules.sh+8
@@ -99,6 +99,14 @@ checkConfigOutput 'true' "$@" ./define-enable.nix ./define-loaOfSub-if-foo-enabl
9999checkConfigOutput 'true' "$@" ./define-enable.nix ./define-loaOfSub-foo-if-enable.nix
100100checkConfigOutput 'true' "$@" ./define-enable.nix ./define-loaOfSub-foo-enable-if.nix
101101
102+# Check disabledModules with config definitions and option declarations.
103+set -- config.enable ./define-enable.nix ./declare-enable.nix
104+checkConfigOutput "true" "$@"
105+checkConfigOutput "false" "$@" ./disable-define-enable.nix
106+checkConfigError "The option .*enable.* defined in .* does not exist" "$@" ./disable-declare-enable.nix
107+checkConfigError "attribute .*enable.* in selection path .*config.enable.* not found" "$@" ./disable-define-enable.nix ./disable-declare-enable.nix
108+checkConfigError "attribute .*enable.* in selection path .*config.enable.* not found" "$@" ./disable-enable-modules.nix
109+
102110# Check _module.args.
103111set -- config.enable ./declare-enable.nix ./define-enable-with-custom-arg.nix
104112checkConfigError 'while evaluating the module argument .*custom.* in .*define-enable-with-custom-arg.nix.*:' "$@"
lib/tests/modules/default.nix+2−1
@@ -1,7 +1,8 @@
1−{ lib ? import <nixpkgs/lib>, modules ? [] }:
1+{ lib ? import ../.., modules ? [] }:
22
33{
44 inherit (lib.evalModules {
55 inherit modules;
6+ specialArgs.modulesPath = ./.;
67 }) config options;
78}
lib/tests/modules/disable-declare-enable.nixnew file+5
@@ -0,0 +1,5 @@
1+{ lib, ... }:
2+
3+{
4+ disabledModules = [ ./declare-enable.nix ];
5+}
lib/tests/modules/disable-define-enable.nixnew file+5
@@ -0,0 +1,5 @@
1+{ lib, ... }:
2+
3+{
4+ disabledModules = [ ./define-enable.nix ];
5+}
lib/tests/modules/disable-enable-modules.nixnew file+5
@@ -0,0 +1,5 @@
1+{ lib, ... }:
2+
3+{
4+ disabledModules = [ "define-enable.nix" "declare-enable.nix" ];
5+}
lib/trivial.nix+30−3
@@ -1,17 +1,44 @@
11rec {
22
3− # Identity function.
3+ /* The identity function
4+ For when you need a function that does “nothing”.
5+
6+ Type: id :: a -> a
7+ */
48 id = x: x;
59
6− # Constant function.
10+ /* The constant function
11+ Ignores the second argument.
12+ Or: Construct a function that always returns a static value.
13+
14+ Type: const :: a -> b -> a
15+ Example:
16+ let f = const 5; in f 10
17+ => 5
18+ */
719 const = x: y: x;
820
9− # Named versions corresponding to some builtin operators.
21+
22+ ## Named versions corresponding to some builtin operators.
23+
24+ /* Concat two strings */
1025 concat = x: y: x ++ y;
26+
27+ /* boolean “or” */
1128 or = x: y: x || y;
29+
30+ /* boolean “and” */
1231 and = x: y: x && y;
32+
33+ /* Merge two attribute sets shallowly, right side trumps left
34+
35+ Example:
36+ mergeAttrs { a = 1; b = 2; } // { b = 3; c = 4; }
37+ => { a = 1; b = 3; c = 4; }
38+ */
1339 mergeAttrs = x: y: x // y;
1440
41+
1542 # Compute the fixed point of the given function `f`, which is usually an
1643 # attribute set that expects its final, non-recursive representation as an
1744 # argument:
lib/types.nix+2−2
@@ -6,7 +6,7 @@ with import ./attrsets.nix;
66with import ./options.nix;
77with import ./trivial.nix;
88with import ./strings.nix;
9−with {inherit (import ./modules.nix) mergeDefinitions filterOverrides; };
9+let inherit (import ./modules.nix) mergeDefinitions filterOverrides; in
1010
1111rec {
1212
@@ -81,7 +81,7 @@ rec {
8181 # name: name of the type
8282 # type: type function.
8383 # wrapped: the type wrapped in case of compound types.
84− # payload: values of the type, two payloads of the same type must be
84+ # payload: values of the type, two payloads of the same type must be
8585 # combinable with the binOp binary operation.
8686 # binOp: binary operation that merge two payloads of the same type.
8787 functor ? defaultFunctor name
maintainers/docker/.dockerignoredeleted−14
@@ -1,14 +0,0 @@
1−*~
2−,*
3−.*.swp
4−.*.swo
5−result
6−result-*
7−/doc/NEWS.html
8−/doc/NEWS.txt
9−/doc/manual.html
10−/doc/manual.pdf
11−.version-suffix
12−
13−.DS_Store
14−.git
maintainers/docker/Dockerfiledeleted−12
@@ -1,12 +0,0 @@
1−FROM busybox
2−
3−RUN dir=`mktemp -d` && trap 'rm -rf "$dir"' EXIT && \
4− wget -O- https://nixos.org/releases/nix/nix-1.7/nix-1.7-x86_64-linux.tar.bz2 | bzcat | tar x -C $dir && \
5− mkdir -m 0755 /nix && USER=root sh $dir/*/install && \
6− echo ". /root/.nix-profile/etc/profile.d/nix.sh" >> /etc/profile
7−
8−ADD . /root/nix/nixpkgs
9−ONBUILD ENV NIX_PATH nixpkgs=/root/nix/nixpkgs:nixos=/root/nix/nixpkgs/nixos
10−ONBUILD ENV PATH /root/.nix-profile/bin:/root/.nix-profile/sbin:/bin:/sbin:/usr/bin:/usr/sbin
11−ONBUILD ENV ENV /etc/profile
12−ENV ENV /etc/profile
maintainers/scripts/hydra-eval-failures.py+9−4
@@ -5,6 +5,7 @@
55
66import subprocess
77import json
8+import sys
89
910import click
1011import requests
@@ -47,8 +48,8 @@ def get_maintainers(attr_name):
4748@click.command()
4849@click.option(
4950 '--jobset',
50− default="nixos/release-16.09",
51− help='Hydra project like nixos/release-16.09')
51+ default="nixos/release-17.03",
52+ help='Hydra project like nixos/release-17.03')
5253def cli(jobset):
5354 """
5455 Given a Hydra project, inspect latest evaluation
@@ -73,14 +74,18 @@ def cli(jobset):
7374 # TODO: dependency failed without propagated builds
7475 for tr in d('img[alt="Failed"]').parents('tr'):
7576 a = pq(tr)('a')[1]
76− print "- [ ] [{}]({})".format(a.text, a.get('href'))
77+ print("- [ ] [{}]({})".format(a.text, a.get('href')))
78+
79+ sys.stdout.flush()
7780
7881 maintainers = get_maintainers(a.text)
7982 if maintainers:
80− print " - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers)))
83+ print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
8184 # TODO: print last three persons that touched this file
8285 # TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
8386
87+ sys.stdout.flush()
88+
8489
8590if __name__ == "__main__":
8691 try:
maintainers/scripts/nix-diff.shnew file+277
@@ -0,0 +1,277 @@
1+#!/usr/bin/env nix-shell
2+#! nix-shell -i bash -p coreutils gnugrep gnused
3+
4+################################################################################
5+# nix-diff.sh #
6+################################################################################
7+# This script "diffs" Nix profile generations. #
8+# #
9+# Example: #
10+################################################################################
11+# > nix-diff.sh 90 92 #
12+# + gnumake-4.2.1 #
13+# + gnumake-4.2.1-doc #
14+# - htmldoc-1.8.29 #
15+################################################################################
16+# The example shows that as of generation 92 and since generation 90, #
17+# gnumake-4.2.1 and gnumake-4.2.1-doc have been installed, while #
18+# htmldoc-1.8.29 has been removed. #
19+# #
20+# The example above shows the default, minimal output mode of this script. #
21+# For more features, run `nix-diff.sh -h` for usage instructions. #
22+################################################################################
23+
24+usage() {
25+ cat <<EOF
26+usage: nix-diff.sh [-h | [-p profile | -s] [-q] [-l] [range]]
27+-h: print this message before exiting
28+-q: list the derivations installed in the parent generation
29+-l: diff every available intermediate generation between parent and
30+ child
31+-p profile: specify the Nix profile to use
32+ * defaults to ~/.nix-profile
33+-s: use the system profile
34+ * equivalent to: -p /nix/var/nix/profiles/system
35+profile: * should be something like /nix/var/nix/profiles/default, not a
36+ generation link like /nix/var/nix/profiles/default-2-link
37+range: the range of generations to diff
38+ * the following patterns are allowed, where A, B, and N are positive
39+ integers, and G is the currently active generation:
40+ A..B => diffs from generation A to generation B
41+ ~N => diffs from the Nth newest generation (older than G) to G
42+ A => diffs from generation A to G
43+ * defaults to ~1
44+EOF
45+}
46+
47+usage_tip() {
48+ echo 'run `nix-diff.sh -h` for usage instructions' >&2
49+ exit 1
50+}
51+
52+while getopts :hqlp:s opt; do
53+ case $opt in
54+ h)
55+ usage
56+ exit
57+ ;;
58+ q)
59+ opt_query=1
60+ ;;
61+ l)
62+ opt_log=1
63+ ;;
64+ p)
65+ opt_profile=$OPTARG
66+ ;;
67+ s)
68+ opt_profile=/nix/var/nix/profiles/system
69+ ;;
70+ \?)
71+ echo "error: invalid option -$OPTARG" >&2
72+ usage_tip
73+ ;;
74+ esac
75+done
76+shift $((OPTIND-1))
77+
78+if [ -n "$opt_profile" ]; then
79+ if ! [ -L "$opt_profile" ]; then
80+ echo "error: expecting \`$opt_profile\` to be a symbolic link" >&2
81+ usage_tip
82+ fi
83+else
84+ opt_profile=$(readlink ~/.nix-profile)
85+ if (( $? != 0 )); then
86+ echo 'error: unable to dereference `~/.nix-profile`' >&2
87+ echo 'specify the profile manually with the `-p` flag' >&2
88+ usage_tip
89+ fi
90+fi
91+
92+list_gens() {
93+ nix-env -p "$opt_profile" --list-generations \
94+ | sed -r 's:^\s*::' \
95+ | cut -d' ' -f1
96+}
97+
98+current_gen() {
99+ nix-env -p "$opt_profile" --list-generations \
100+ | grep -E '\(current\)\s*$' \
101+ | sed -r 's:^\s*::' \
102+ | cut -d' ' -f1
103+}
104+
105+neg_gen() {
106+ local i=0 from=$1 n=$2 tmp
107+ for gen in $(list_gens | sort -rn); do
108+ if ((gen < from)); then
109+ tmp=$gen
110+ ((i++))
111+ ((i == n)) && break
112+ fi
113+ done
114+ if ((i < n)); then
115+ echo -n "error: there aren't $n generation(s) older than" >&2
116+ echo " generation $from" >&2
117+ return 1
118+ fi
119+ echo $tmp
120+}
121+
122+match() {
123+ argv=("$@")
124+ for i in $(seq $(($#-1))); do
125+ if grep -E "^${argv[$i]}\$" <(echo "$1") >/dev/null; then
126+ echo $i
127+ return
128+ fi
129+ done
130+ echo 0
131+}
132+
133+case $(match "$1" '' '[0-9]+' '[0-9]+\.\.[0-9]+' '~[0-9]+') in
134+ 1)
135+ diffTo=$(current_gen)
136+ diffFrom=$(neg_gen $diffTo 1)
137+ (($? == 1)) && usage_tip
138+ ;;
139+ 2)
140+ diffFrom=$1
141+ diffTo=$(current_gen)
142+ ;;
143+ 3)
144+ diffFrom=${1%%.*}
145+ diffTo=${1##*.}
146+ ;;
147+ 4)
148+ diffTo=$(current_gen)
149+ diffFrom=$(neg_gen $diffTo ${1#*~})
150+ (($? == 1)) && usage_tip
151+ ;;
152+ 0)
153+ echo 'error: invalid invocation' >&2
154+ usage_tip
155+ ;;
156+esac
157+
158+dirA="${opt_profile}-${diffFrom}-link"
159+dirB="${opt_profile}-${diffTo}-link"
160+
161+declare -a temp_files
162+temp_length() {
163+ echo -n ${#temp_files[@]}
164+}
165+temp_make() {
166+ temp_files[$(temp_length)]=$(mktemp)
167+}
168+temp_clean() {
169+ rm -f ${temp_files[@]}
170+}
171+temp_name() {
172+ echo -n "${temp_files[$(($(temp_length)-1))]}"
173+}
174+trap 'temp_clean' EXIT
175+
176+temp_make
177+versA=$(temp_name)
178+refs=$(nix-store -q --references "$dirA")
179+(( $? != 0 )) && exit 1
180+echo "$refs" \
181+ | grep -v env-manifest.nix \
182+ | sort \
183+ > "$versA"
184+
185+print_tag() {
186+ local gen=$1
187+ nix-env -p "$opt_profile" --list-generations \
188+ | grep -E "^\s*${gen}" \
189+ | sed -r 's:^\s*::' \
190+ | sed -r 's:\s*$::'
191+}
192+
193+if [ -n "$opt_query" ]; then
194+ print_tag $diffFrom
195+ cat "$versA" \
196+ | sed -r 's:^[^-]+-(.*)$: \1:'
197+
198+ print_line=1
199+fi
200+
201+if [ -n "$opt_log" ]; then
202+ gens=$(for gen in $(list_gens); do
203+ ((diffFrom < gen && gen < diffTo)) && echo $gen
204+ done)
205+ # Force the $diffTo generation to be included in this list, instead of using
206+ # `gen <= diffTo` in the preceding loop, so we encounter an error upon the
207+ # event of its nonexistence.
208+ gens=$(echo "$gens"
209+ echo $diffTo)
210+else
211+ gens=$diffTo
212+fi
213+
214+temp_make
215+add=$(temp_name)
216+temp_make
217+rem=$(temp_name)
218+temp_make
219+out=$(temp_name)
220+
221+for gen in $gens; do
222+
223+ [ -n "$print_line" ] && echo
224+
225+ temp_make
226+ versB=$(temp_name)
227+
228+ dirB="${opt_profile}-${gen}-link"
229+ refs=$(nix-store -q --references "$dirB")
230+ (( $? != 0 )) && exit 1
231+ echo "$refs" \
232+ | grep -v env-manifest.nix \
233+ | sort \
234+ > "$versB"
235+
236+ in=$(comm -3 -1 "$versA" "$versB")
237+ sed -r 's:^[^-]*-(.*)$:\1+:' <(echo "$in") \
238+ | sort -f \
239+ > "$add"
240+
241+ un=$(comm -3 -2 "$versA" "$versB")
242+ sed -r 's:^[^-]*-(.*)$:\1-:' <(echo "$un") \
243+ | sort -f \
244+ > "$rem"
245+
246+ cat "$rem" "$add" \
247+ | sort -f \
248+ | sed -r 's:(.*)-$:- \1:' \
249+ | sed -r 's:(.*)\+$:\+ \1:' \
250+ | grep -v '^$' \
251+ > "$out"
252+
253+ if [ -n "$opt_query" -o -n "$opt_log" ]; then
254+
255+ lines=$(wc -l "$out" | cut -d' ' -f1)
256+ tag=$(print_tag "$gen")
257+ (( $? != 0 )) && exit 1
258+ if [ $lines -eq 0 ]; then
259+ echo "$tag (no change)"
260+ else
261+ echo "$tag"
262+ fi
263+ cat "$out" \
264+ | sed 's:^: :'
265+
266+ print_line=1
267+
268+ else
269+ echo "diffing from generation $diffFrom to $diffTo"
270+ cat "$out"
271+ fi
272+
273+ versA=$versB
274+
275+done
276+
277+exit 0
nixos/default.nix−3
@@ -37,7 +37,4 @@ in
3737 vm = vmConfig.system.build.vm;
3838
3939 vmWithBootLoader = vmWithBootLoaderConfig.system.build.vm;
40−
41− # The following are used by nixos-rebuild.
42− nixFallback = pkgs.nixUnstable.out;
4340}
nixos/doc/manual/configuration/luks-file-systems.xml+4
@@ -37,6 +37,10 @@ boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/3f6b0024-3a44-4fde-
3737fileSystems."/".device = "/dev/mapper/crypted";
3838</programlisting>
3939
40+Should grub be used as bootloader, and <filename>/boot</filename> is located
41+on an encrypted partition, it is necessary to add the following grub option:
42+<programlisting>boot.loader.grub.enableCryptodisk = true;</programlisting>
43+
4044</para>
4145
4246</section>
nixos/doc/manual/configuration/modularity.xml+1−1
@@ -37,7 +37,7 @@ latter might look like this:
3737
3838{ services.xserver.enable = true;
3939 services.xserver.displayManager.sddm.enable = true;
40− services.xserver.desktopManager.kde5.enable = true;
40+ services.xserver.desktopManager.plasma5.enable = true;
4141}
4242</programlisting>
4343
nixos/doc/manual/configuration/network-manager.xml+5−1
@@ -27,7 +27,11 @@ users.extraUsers.youruser.extraGroups = [ "networkmanager" ];
2727<para>NetworkManager is controlled using either <command>nmcli</command> or
2828<command>nmtui</command> (curses-based terminal user interface). See their
2929manual pages for details on their usage. Some desktop environments (GNOME, KDE)
30−have their own configuration tools for NetworkManager.</para>
30+have their own configuration tools for NetworkManager. On XFCE, there is no
31+configuration tool for NetworkManager by default: by adding
32+<code>networkmanagerapplet</code> to the list of system packages, the graphical
33+applet will be installed and will launch automatically when XFCE is starting
34+(and will show in the status tray).</para>
3135
3236<note><para><code>networking.networkmanager</code> and
3337<code>networking.wireless</code> (WPA Supplicant) cannot be enabled at the same
nixos/doc/manual/configuration/user-mgmt.xml+4−1
@@ -36,7 +36,10 @@ to set a password, which is retained across invocations of
3636and /etc/group will be congruent to your NixOS configuration. For instance,
3737if you remove a user from users.extraUsers and run nixos-rebuild, the user
3838account will cease to exist. Also, imperative commands for managing users
39−and groups, such as useradd, are no longer available.</para>
39+and groups, such as useradd, are no longer available. Passwords may still be
40+assigned by setting the user's <literal>hashedPassword</literal> option. A
41+hashed password can be generated using <command>mkpasswd -m sha-512</command>
42+after installing the <literal>mkpasswd</literal> package.</para>
4043
4144<para>A user ID (uid) is assigned automatically. You can also specify
4245a uid manually by adding
nixos/doc/manual/configuration/x-windows.xml+6−2
@@ -25,19 +25,23 @@ Otherwise, you can only log into a plain undecorated
2525<command>xterm</command> window. Thus you should pick one or more of
2626the following lines:
2727<programlisting>
28−services.xserver.desktopManager.kde5.enable = true;
28+services.xserver.desktopManager.plasma5.enable = true;
2929services.xserver.desktopManager.xfce.enable = true;
30+services.xserver.desktopManager.gnome3.enable = true;
3031services.xserver.windowManager.xmonad.enable = true;
3132services.xserver.windowManager.twm.enable = true;
3233services.xserver.windowManager.icewm.enable = true;
34+services.xserver.windowManager.i3.enable = true;
3335</programlisting>
3436</para>
3537
3638<para>NixOS’s default <emphasis>display manager</emphasis> (the
3739program that provides a graphical login prompt and manages the X
38−server) is SLiM. You can select KDE’s <command>sddm</command> instead:
40+server) is SLiM. You can select an alternative one by picking one
41+of the following lines:
3942<programlisting>
4043services.xserver.displayManager.sddm.enable = true;
44+services.xserver.displayManager.lightdm.enable = true;
4145</programlisting>
4246</para>
4347
nixos/doc/manual/configuration/xfce.xml+21−21
@@ -9,10 +9,10 @@
99 <para>
1010 To enable the Xfce Desktop Environment, set
1111 <programlisting>
12− services.xserver.desktopManager = {
13− xfce.enable = true;
14− default = "xfce";
15− };
12+services.xserver.desktopManager = {
13+ xfce.enable = true;
14+ default = "xfce";
15+};
1616 </programlisting>
1717 </para>
1818
@@ -20,13 +20,13 @@
2020 Optionally, <emphasis>compton</emphasis>
2121 can be enabled for nice graphical effects, some example settings:
2222 <programlisting>
23− services.compton = {
24− enable = true;
25− fade = true;
26− inactiveOpacity = "0.9";
27− shadow = true;
28− fadeDelta = 4;
29− };
23+services.compton = {
24+ enable = true;
25+ fade = true;
26+ inactiveOpacity = "0.9";
27+ shadow = true;
28+ fadeDelta = 4;
29+};
3030 </programlisting>
3131 </para>
3232
@@ -34,16 +34,16 @@
3434 Some Xfce programs are not installed automatically.
3535 To install them manually (system wide), put them into your
3636 <literal>environment.systemPackages</literal>.
37− </para>
37+ </para>
3838
3939 <para>
40− NixOS’s default <emphasis>display manager</emphasis>is SLiM.
41− (DM is the program that provides a graphical login prompt
42− and manages the X server.)
43− You can, for example, select KDE’s
40+ NixOS’s default <emphasis>display manager</emphasis> is SLiM.
41+ (DM is the program that provides a graphical login prompt
42+ and manages the X server.)
43+ You can, for example, select KDE’s
4444 <command>sddm</command> instead:
4545 <programlisting>
46− services.xserver.displayManager.sddm.enable = true;
46+services.xserver.displayManager.sddm.enable = true;
4747 </programlisting>
4848 </para>
4949
@@ -55,7 +55,7 @@
5555 <emphasis>Thunar</emphasis>
5656 volume support, put
5757 <programlisting>
58− services.xserver.desktopManager.xfce.enable = true;
58+services.xserver.desktopManager.xfce.enable = true;
5959 </programlisting>
6060 into your <emphasis>configuration.nix</emphasis>.
6161 </para>
@@ -84,10 +84,10 @@
8484 Thunar and/or the desktop takes time to show up.
8585
8686 Thunar will spit out this kind of message on start
87− (look at journalctl --user -b).
87+ (look at <command>journalctl --user -b</command>).
8888
8989 <programlisting>
90− Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
90+Thunar:2410): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported
9191 </programlisting>
9292
9393 This is caused by some needed GNOME services not running.
@@ -95,7 +95,7 @@
9595 the Advanced tab of the Session and Startup settings panel.
9696 Alternatively, you can run this command to do the same thing.
9797 <programlisting>
98− $ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
98+$ xfconf-query -c xfce4-session -p /compat/LaunchGNOME -s true
9999 </programlisting>
100100 A log-out and re-log will be needed for this to take effect.
101101 </para>
nixos/doc/manual/development/option-declarations.xml+2−2
@@ -135,8 +135,8 @@ services.xserver.displayManager.enable = mkOption {
135135 type = with types; nullOr (enum [ "slim" ]);
136136};</screen></example>
137137
138−<example xml:id='ex-option-declaration-eot-backend-sdm'><title>Extending
139− <literal>services.foo.backend</literal> in the <literal>sdm</literal>
138+<example xml:id='ex-option-declaration-eot-backend-sddm'><title>Extending
139+ <literal>services.foo.backend</literal> in the <literal>sddm</literal>
140140 module</title>
141141<screen>
142142services.xserver.displayManager.enable = mkOption {
nixos/doc/manual/development/replace-modules.xmlnew file+75
@@ -0,0 +1,75 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="sec-replace-modules">
6+
7+<title>Replace Modules</title>
8+
9+<para>Modules that are imported can also be disabled. The option
10+ declarations and config implementation of a disabled module will be
11+ ignored, allowing another to take it's place. This can be used to
12+ import a set of modules from another channel while keeping the rest
13+ of the system on a stable release.</para>
14+<para><literal>disabledModules</literal> is a top level attribute like
15+ <literal>imports</literal>, <literal>options</literal> and
16+ <literal>config</literal>. It contains a list of modules that will
17+ be disabled. This can either be the full path to the module or a
18+ string with the filename relative to the modules path
19+ (eg. <nixpkgs/nixos/modules> for nixos).
20+ </para>
21+
22+<para>This example will replace the existing postgresql module with
23+ the version defined in the nixos-unstable channel while keeping the
24+ rest of the modules and packages from the original nixos channel.
25+ This only overrides the module definition, this won't use postgresql
26+ from nixos-unstable unless explicitly configured to do so.</para>
27+
28+<programlisting>
29+{ config, lib, pkgs, ... }:
30+
31+{
32+ disabledModules = [ "services/databases/postgresql.nix" ];
33+
34+ imports =
35+ [ # Use postgresql service from nixos-unstable channel.
36+ # sudo nix-channel --add http://nixos.org/channels/nixos-unstable nixos-unstable
37+ <nixos-unstable/nixos/modules/services/databases/postgresql.nix>
38+ ];
39+
40+ services.postgresql.enable = true;
41+}
42+</programlisting>
43+
44+<para>This example shows how to define a custom module as a
45+ replacement for an existing module. Importing this module will
46+ disable the original module without having to know it's
47+ implementation details.</para>
48+
49+<programlisting>
50+{ config, lib, pkgs, ... }:
51+
52+with lib;
53+
54+let
55+ cfg = config.programs.man;
56+in
57+
58+{
59+ disabledModules = [ "services/programs/man.nix" ];
60+
61+ options = {
62+ programs.man.enable = mkOption {
63+ type = types.bool;
64+ default = true;
65+ description = "Whether to enable manual pages.";
66+ };
67+ };
68+
69+ config = mkIf cfg.enabled {
70+ warnings = [ "disabled manpages for production deployments." ];
71+ };
72+}
73+</programlisting>
74+
75+</section>
nixos/doc/manual/development/sources.xml+13−9
@@ -8,7 +8,7 @@
88
99<para>By default, NixOS’s <command>nixos-rebuild</command> command
1010uses the NixOS and Nixpkgs sources provided by the
11−<literal>nixos-unstable</literal> channel (kept in
11+<literal>nixos</literal> channel (kept in
1212<filename>/nix/var/nix/profiles/per-user/root/channels/nixos</filename>).
1313To modify NixOS, however, you should check out the latest sources from
1414Git. This is as follows:
@@ -27,8 +27,8 @@ a subdirectory of the Nixpkgs repository.) The remote
2727<literal>channels</literal> refers to a read-only repository that
2828tracks the Nixpkgs/NixOS channels (see <xref linkend="sec-upgrading"/>
2929for more information about channels). Thus, the Git branch
30−<literal>channels/nixos-14.12</literal> will contain the latest built
31−and tested version available in the <literal>nixos-14.12</literal>
30+<literal>channels/nixos-17.03</literal> will contain the latest built
31+and tested version available in the <literal>nixos-17.03</literal>
3232channel.</para>
3333
3434<para>It’s often inconvenient to develop directly on the master
@@ -39,9 +39,9 @@ branch based on your current NixOS version:
3939
4040<screen>
4141$ nixos-version
42−14.04.273.ea1952b (Baboon)
42+17.09pre104379.6e0b727 (Hummingbird)
4343
44−$ git checkout -b local ea1952b
44+$ git checkout -b local 6e0b727
4545</screen>
4646
4747Or, to base your local branch on the latest version available in a
@@ -49,17 +49,17 @@ NixOS channel:
4949
5050<screen>
5151$ git remote update channels
52−$ git checkout -b local channels/nixos-14.12
52+$ git checkout -b local channels/nixos-17.03
5353</screen>
5454
55−(Replace <literal>nixos-14.12</literal> with the name of the channel
55+(Replace <literal>nixos-17.03</literal> with the name of the channel
5656you want to use.) You can use <command>git merge</command> or
5757<command>git rebase</command> to keep your local branch in sync with
5858the channel, e.g.
5959
6060<screen>
6161$ git remote update channels
62−$ git merge channels/nixos-14.12
62+$ git merge channels/nixos-17.03
6363</screen>
6464
6565You can use <command>git cherry-pick</command> to copy commits from
@@ -87,7 +87,11 @@ $ ln -s <replaceable>/my/sources</replaceable>/nixpkgs ~/.nix-defexpr/nixpkgs
8787
8888You may want to delete the symlink
8989<filename>~/.nix-defexpr/channels_root</filename> to prevent root’s
90−NixOS channel from clashing with your own tree.</para>
90+NixOS channel from clashing with your own tree (this may break the
91+command-not-found utility though). If you want to go back to the default
92+state, you may just remove the <filename>~/.nix-defexpr</filename>
93+directory completely, log out and log in again and it should have been
94+recreated with a link to the root channels.</para>
9195
9296<!-- FIXME: not sure what this means.
9397<para>You should not pass the base directory
nixos/doc/manual/development/writing-modules.xml+1
@@ -179,5 +179,6 @@ in {
179179<xi:include href="option-types.xml" />
180180<xi:include href="option-def.xml" />
181181<xi:include href="meta-attributes.xml" />
182+<xi:include href="replace-modules.xml" />
182183
183184</chapter>
nixos/doc/manual/installation/changing-config.xml+1−1
@@ -7,7 +7,7 @@
77
88<para>The file <filename>/etc/nixos/configuration.nix</filename>
99contains the current configuration of your machine. Whenever you’ve
10−changed something to that file, you should do
10+<link linkend="ch-configuration">changed something</link> in that file, you should do
1111
1212<screen>
1313# nixos-rebuild switch</screen>
nixos/doc/manual/installation/installing-uefi.xml+2−1
@@ -26,7 +26,8 @@ changes:
2626 <literal>vfat</literal> filesystem.</para>
2727 </listitem>
2828 <listitem>
29− <para>You must set <option>boot.loader.systemd-boot.enable</option> to
29+ <para>Instead of <option>boot.loader.grub.device</option>,
30+ you must set <option>boot.loader.systemd-boot.enable</option> to
3031 <literal>true</literal>. <command>nixos-generate-config</command>
3132 should do this automatically for new configurations when booted in
3233 UEFI mode.</para>
nixos/doc/manual/installation/installing-usb.xml+3−1
@@ -11,7 +11,9 @@ a USB stick. You can use the <command>dd</command> utility to write the image:
1111<command>dd if=<replaceable>path-to-image</replaceable>
1212of=<replaceable>/dev/sdb</replaceable></command>. Be careful about specifying the
1313correct drive; you can use the <command>lsblk</command> command to get a list of
14−block devices.</para>
14+block devices. If you're on OS X you can run <command>diskutil list</command>
15+to see the list of devices; the device you'll use for the USB must be ejected
16+before writing the image.</para>
1517
1618<para>The <command>dd</command> utility will write the image verbatim to the drive,
1719making it the recommended option for both UEFI and non-UEFI installations. For
nixos/doc/manual/installation/upgrading.xml+11−11
@@ -15,12 +15,12 @@ been built. These channels are:
1515<itemizedlist>
1616 <listitem>
1717 <para><emphasis>Stable channels</emphasis>, such as <literal
18− xlink:href="https://nixos.org/channels/nixos-14.12">nixos-14.12</literal>.
18+ xlink:href="https://nixos.org/channels/nixos-17.03">nixos-17.03</literal>.
1919 These only get conservative bug fixes and package upgrades. For
2020 instance, a channel update may cause the Linux kernel on your
21− system to be upgraded from 3.4.66 to 3.4.67 (a minor bug fix), but
22− not from 3.4.<replaceable>x</replaceable> to
23− 3.11.<replaceable>x</replaceable> (a major change that has the
21+ system to be upgraded from 4.9.16 to 4.9.17 (a minor bug fix), but
22+ not from 4.9.<replaceable>x</replaceable> to
23+ 4.11.<replaceable>x</replaceable> (a major change that has the
2424 potential to break things). Stable channels are generally
2525 maintained until the next stable branch is created.</para>
2626 <para></para>
@@ -34,7 +34,7 @@ been built. These channels are:
3434 </listitem>
3535 <listitem>
3636 <para><emphasis>Small channels</emphasis>, such as <literal
37− xlink:href="https://nixos.org/channels/nixos-14.12-small">nixos-14.12-small</literal>
37+ xlink:href="https://nixos.org/channels/nixos-17.03-small">nixos-17.03-small</literal>
3838 or <literal
3939 xlink:href="https://nixos.org/channels/nixos-unstable-small">nixos-unstable-small</literal>. These
4040 are identical to the stable and unstable channels described above,
@@ -55,8 +55,8 @@ appliances.)</para>
5555
5656<para>When you first install NixOS, you’re automatically subscribed to
5757the NixOS channel that corresponds to your installation source. For
58−instance, if you installed from a 14.12 ISO, you will be subscribed to
59−the <literal>nixos-14.12</literal> channel. To see which NixOS
58+instance, if you installed from a 17.03 ISO, you will be subscribed to
59+the <literal>nixos-17.03</literal> channel. To see which NixOS
6060channel you’re subscribed to, run the following as root:
6161
6262<screen>
@@ -71,16 +71,16 @@ To switch to a different NixOS channel, do
7171</screen>
7272
7373(Be sure to include the <literal>nixos</literal> parameter at the
74−end.) For instance, to use the NixOS 14.12 stable channel:
74+end.) For instance, to use the NixOS 17.03 stable channel:
7575
7676<screen>
77−# nix-channel --add https://nixos.org/channels/nixos-14.12 nixos
77+# nix-channel --add https://nixos.org/channels/nixos-17.03 nixos
7878</screen>
7979
8080If you have a server, you may want to use the “small” channel instead:
8181
8282<screen>
83−# nix-channel --add https://nixos.org/channels/nixos-14.12-small nixos
83+# nix-channel --add https://nixos.org/channels/nixos-17.03-small nixos
8484</screen>
8585
8686And if you want to live on the bleeding edge:
@@ -130,7 +130,7 @@ runs, see <command>systemctl list-timers</command>.) You can also
130130specify a channel explicitly, e.g.
131131
132132<programlisting>
133−system.autoUpgrade.channel = https://nixos.org/channels/nixos-15.09;
133+system.autoUpgrade.channel = https://nixos.org/channels/nixos-17.03;
134134</programlisting>
135135
136136</para>
nixos/doc/manual/release-notes/release-notes.xml+1
@@ -9,6 +9,7 @@
99<para>This section lists the release notes for each stable version of NixOS
1010and current unstable revision.</para>
1111
12+<xi:include href="rl-1709.xml" />
1213<xi:include href="rl-1703.xml" />
1314<xi:include href="rl-1609.xml" />
1415<xi:include href="rl-1603.xml" />
nixos/doc/manual/release-notes/rl-1703.xml+302−20
@@ -4,7 +4,15 @@
44 version="5.0"
55 xml:id="sec-release-17.03">
66
7−<title>Release 17.03 (“XXX”, 2017/03/??)</title>
7+<title>Release 17.03 (“Gorilla”, 2017/03/31)</title>
8+
9+<section xmlns="http://docbook.org/ns/docbook"
10+ xmlns:xlink="http://www.w3.org/1999/xlink"
11+ xmlns:xi="http://www.w3.org/2001/XInclude"
12+ version="5.0"
13+ xml:id="sec-release-17.03-highlights">
14+
15+<title>Highlights</title>
816
917<para>In addition to numerous new and upgraded packages, this release
1018has the following highlights: </para>
@@ -15,16 +23,159 @@ has the following highlights: </para>
1523 xlink:href="https://nixos.org/nixpkgs/manual/#sec-overlays-install">Nixpkgs
1624 manual</link> for more information.</para>
1725 </listitem>
26+
27+ <listitem>
28+ <para>This release is based on Glibc 2.25, GCC 5.4.0 and systemd
29+ 232. The default Linux kernel is 4.9 and Nix is at 1.11.8.</para>
30+ </listitem>
31+
32+ <listitem>
33+ <para>The default desktop environment now is KDE's Plasma 5. KDE 4 has been removed</para>
34+ </listitem>
35+
36+ <listitem>
37+ <para>The setuid wrapper functionality now supports setting
38+ capabilities.</para>
39+ </listitem>
40+
41+ <listitem>
42+ <para>X.org server uses branch 1.19. Due to ABI incompatibilities,
43+ <literal>ati_unfree</literal> keeps forcing 1.17
44+ and <literal>amdgpu-pro</literal> starts forcing 1.18.</para>
45+ </listitem>
46+
47+ <listitem>
48+ <para>
49+ Cross compilation has been rewritten. See the nixpkgs manual for
50+ details. The most obvious breaking change is that in derivations there is no
51+ <literal>.nativeDrv</literal> nor <literal>.crossDrv</literal> are now
52+ cross by default, not native.
53+ </para>
54+ </listitem>
55+
56+ <listitem>
57+ <para>The <literal>overridePackages</literal> function has been rewritten
58+ to be replaced by <link
59+ xlink:href="https://nixos.org/nixpkgs/manual/#sec-overlays-install">
60+ overlays</link></para>
61+ </listitem>
62+
63+ <listitem>
64+ <para>Packages in nixpkgs can be marked as insecure through listed
65+ vulnerabilities. See the <link
66+ xlink:href="https://nixos.org/nixpkgs/manual/#sec-allow-insecure">Nixpkgs
67+ manual</link> for more information.</para>
68+ </listitem>
69+
70+ <listitem>
71+ <para>PHP now defaults to PHP 7.1</para>
72+ </listitem>
73+
1874</itemizedlist>
1975
76+</section>
77+<section xmlns="http://docbook.org/ns/docbook"
78+ xmlns:xlink="http://www.w3.org/1999/xlink"
79+ xmlns:xi="http://www.w3.org/2001/XInclude"
80+ version="5.0"
81+ xml:id="sec-release-17.03-new-services">
82+
83+<title>New Services</title>
84+
2085<para>The following new services were added since the last release:</para>
2186
2287<itemizedlist>
23− <listitem>
24− <para></para>
25− </listitem>
88+ <listitem><para><literal>hardware/ckb.nix</literal></para></listitem>
89+ <listitem><para><literal>hardware/mcelog.nix</literal></para></listitem>
90+ <listitem><para><literal>hardware/usb-wwan.nix</literal></para></listitem>
91+ <listitem><para><literal>hardware/video/capture/mwprocapture.nix</literal></para></listitem>
92+ <listitem><para><literal>programs/adb.nix</literal></para></listitem>
93+ <listitem><para><literal>programs/chromium.nix</literal></para></listitem>
94+ <listitem><para><literal>programs/gphoto2.nix</literal></para></listitem>
95+ <listitem><para><literal>programs/java.nix</literal></para></listitem>
96+ <listitem><para><literal>programs/mtr.nix</literal></para></listitem>
97+ <listitem><para><literal>programs/oblogout.nix</literal></para></listitem>
98+ <listitem><para><literal>programs/vim.nix</literal></para></listitem>
99+ <listitem><para><literal>programs/wireshark.nix</literal></para></listitem>
100+ <listitem><para><literal>security/dhparams.nix</literal></para></listitem>
101+ <listitem><para><literal>services/audio/ympd.nix</literal></para></listitem>
102+ <listitem><para><literal>services/computing/boinc/client.nix</literal></para></listitem>
103+ <listitem><para><literal>services/continuous-integration/buildbot/master.nix</literal></para></listitem>
104+ <listitem><para><literal>services/continuous-integration/buildbot/worker.nix</literal></para></listitem>
105+ <listitem><para><literal>services/continuous-integration/gitlab-runner.nix</literal></para></listitem>
106+ <listitem><para><literal>services/databases/riak-cs.nix</literal></para></listitem>
107+ <listitem><para><literal>services/databases/stanchion.nix</literal></para></listitem>
108+ <listitem><para><literal>services/desktops/gnome3/gnome-terminal-server.nix</literal></para></listitem>
109+ <listitem><para><literal>services/editors/infinoted.nix</literal></para></listitem>
110+ <listitem><para><literal>services/hardware/illum.nix</literal></para></listitem>
111+ <listitem><para><literal>services/hardware/trezord.nix</literal></para></listitem>
112+ <listitem><para><literal>services/logging/journalbeat.nix</literal></para></listitem>
113+ <listitem><para><literal>services/mail/offlineimap.nix</literal></para></listitem>
114+ <listitem><para><literal>services/mail/postgrey.nix</literal></para></listitem>
115+ <listitem><para><literal>services/misc/couchpotato.nix</literal></para></listitem>
116+ <listitem><para><literal>services/misc/docker-registry.nix</literal></para></listitem>
117+ <listitem><para><literal>services/misc/errbot.nix</literal></para></listitem>
118+ <listitem><para><literal>services/misc/geoip-updater.nix</literal></para></listitem>
119+ <listitem><para><literal>services/misc/gogs.nix</literal></para></listitem>
120+ <listitem><para><literal>services/misc/leaps.nix</literal></para></listitem>
121+ <listitem><para><literal>services/misc/nix-optimise.nix</literal></para></listitem>
122+ <listitem><para><literal>services/misc/ssm-agent.nix</literal></para></listitem>
123+ <listitem><para><literal>services/misc/sssd.nix</literal></para></listitem>
124+ <listitem><para><literal>services/monitoring/arbtt.nix</literal></para></listitem>
125+ <listitem><para><literal>services/monitoring/netdata.nix</literal></para></listitem>
126+ <listitem><para><literal>services/monitoring/prometheus/default.nix</literal></para></listitem>
127+ <listitem><para><literal>services/monitoring/prometheus/alertmanager.nix</literal></para></listitem>
128+ <listitem><para><literal>services/monitoring/prometheus/blackbox-exporter.nix</literal></para></listitem>
129+ <listitem><para><literal>services/monitoring/prometheus/json-exporter.nix</literal></para></listitem>
130+ <listitem><para><literal>services/monitoring/prometheus/nginx-exporter.nix</literal></para></listitem>
131+ <listitem><para><literal>services/monitoring/prometheus/node-exporter.nix</literal></para></listitem>
132+ <listitem><para><literal>services/monitoring/prometheus/snmp-exporter.nix</literal></para></listitem>
133+ <listitem><para><literal>services/monitoring/prometheus/unifi-exporter.nix</literal></para></listitem>
134+ <listitem><para><literal>services/monitoring/prometheus/varnish-exporter.nix</literal></para></listitem>
135+ <listitem><para><literal>services/monitoring/sysstat.nix</literal></para></listitem>
136+ <listitem><para><literal>services/monitoring/telegraf.nix</literal></para></listitem>
137+ <listitem><para><literal>services/monitoring/vnstat.nix</literal></para></listitem>
138+ <listitem><para><literal>services/network-filesystems/cachefilesd.nix</literal></para></listitem>
139+ <listitem><para><literal>services/network-filesystems/glusterfs.nix</literal></para></listitem>
140+ <listitem><para><literal>services/network-filesystems/ipfs.nix</literal></para></listitem>
141+ <listitem><para><literal>services/networking/dante.nix</literal></para></listitem>
142+ <listitem><para><literal>services/networking/dnscrypt-wrapper.nix</literal></para></listitem>
143+ <listitem><para><literal>services/networking/fakeroute.nix</literal></para></listitem>
144+ <listitem><para><literal>services/networking/flannel.nix</literal></para></listitem>
145+ <listitem><para><literal>services/networking/htpdate.nix</literal></para></listitem>
146+ <listitem><para><literal>services/networking/miredo.nix</literal></para></listitem>
147+ <listitem><para><literal>services/networking/nftables.nix</literal></para></listitem>
148+ <listitem><para><literal>services/networking/powerdns.nix</literal></para></listitem>
149+ <listitem><para><literal>services/networking/pdns-recursor.nix</literal></para></listitem>
150+ <listitem><para><literal>services/networking/quagga.nix</literal></para></listitem>
151+ <listitem><para><literal>services/networking/redsocks.nix</literal></para></listitem>
152+ <listitem><para><literal>services/networking/wireguard.nix</literal></para></listitem>
153+ <listitem><para><literal>services/system/cgmanager.nix</literal></para></listitem>
154+ <listitem><para><literal>services/torrent/opentracker.nix</literal></para></listitem>
155+ <listitem><para><literal>services/web-apps/atlassian/confluence.nix</literal></para></listitem>
156+ <listitem><para><literal>services/web-apps/atlassian/crowd.nix</literal></para></listitem>
157+ <listitem><para><literal>services/web-apps/atlassian/jira.nix</literal></para></listitem>
158+ <listitem><para><literal>services/web-apps/frab.nix</literal></para></listitem>
159+ <listitem><para><literal>services/web-apps/nixbot.nix</literal></para></listitem>
160+ <listitem><para><literal>services/web-apps/selfoss.nix</literal></para></listitem>
161+ <listitem><para><literal>services/web-apps/quassel-webserver.nix</literal></para></listitem>
162+ <listitem><para><literal>services/x11/unclutter-xfixes.nix</literal></para></listitem>
163+ <listitem><para><literal>services/x11/urxvtd.nix</literal></para></listitem>
164+ <listitem><para><literal>system/boot/systemd-nspawn.nix</literal></para></listitem>
165+ <listitem><para><literal>virtualisation/ecs-agent.nix</literal></para></listitem>
166+ <listitem><para><literal>virtualisation/lxcfs.nix</literal></para></listitem>
167+ <listitem><para><literal>virtualisation/openstack/keystone.nix</literal></para></listitem>
168+ <listitem><para><literal>virtualisation/openstack/glance.nix</literal></para></listitem>
26169</itemizedlist>
27170
171+</section>
172+<section xmlns="http://docbook.org/ns/docbook"
173+ xmlns:xlink="http://www.w3.org/1999/xlink"
174+ xmlns:xi="http://www.w3.org/2001/XInclude"
175+ version="5.0"
176+ xml:id="sec-release-17.03-incompatibilities">
177+
178+<title>Backward Incompatibilities</title>
28179
29180<para>When upgrading from a previous release, please be aware of the
30181following incompatible changes:</para>
@@ -32,10 +183,8 @@ following incompatible changes:</para>
32183<itemizedlist>
33184 <listitem>
34185 <para>
35− Cross compilation has been rewritten. See the nixpkgs manual for
36− details. The most obvious breaking change is that derivations absent a
37− <literal>.nativeDrv</literal> or <literal>.crossDrv</literal> are now
38− cross by default, not native.
186+ Derivations have no <literal>.nativeDrv</literal> nor <literal>.crossDrv</literal>
187+ and are now cross by default, not native.
39188 </para>
40189 </listitem>
41190
@@ -72,15 +221,6 @@ following incompatible changes:</para>
72221 </para>
73222 </listitem>
74223
75− <listitem>
76− <para>
77− The Yama LSM is now enabled by default in the kernel,
78− which prevents ptracing non-child processes.
79− This means you will not be able to attach gdb to an existing process,
80− but will need to start that process from gdb (so it is a child).
81− </para>
82− </listitem>
83−
84224 <listitem>
85225 <para>
86226 The <literal>stripHash</literal> bash function in <literal>stdenv</literal>
@@ -160,7 +300,7 @@ following incompatible changes:</para>
160300 <para><literal>overridePackages</literal> function no longer exists.
161301 It is replaced by <link
162302 xlink:href="https://nixos.org/nixpkgs/manual/#sec-overlays-install">
163− overlays</link>. For example, the following code:
303+ overlays</link>. For example, the following code:
164304
165305<programlisting>
166306 let
@@ -202,10 +342,72 @@ following incompatible changes:</para>
202342 </para>
203343 </listitem>
204344
345+ <listitem>
346+ <para>
347+ Iputils no longer provide ping6 and traceroute6. The functionality of
348+ these tools has been integrated into ping and traceroute respectively. To
349+ enforce an address family the new flags <literal>-4</literal> and
350+ <literal>-6</literal> have been added. One notable incompatibility is that
351+ specifying an interface (for link-local IPv6 for instance) is no longer done
352+ with the <literal>-I</literal> flag, but by encoding the interface into the
353+ address (<literal>ping fe80::1%eth0</literal>).
354+ </para>
355+ </listitem>
356+
357+ <listitem>
358+ <para>
359+ The socket handling of the <literal>services.rmilter</literal> module
360+ has been fixed and refactored. As rmilter doesn't support binding to
361+ more than one socket, the options <literal>bindUnixSockets</literal>
362+ and <literal>bindInetSockets</literal> have been replaced by
363+ <literal>services.rmilter.bindSocket.*</literal>. The default is still
364+ a unix socket in <literal>/run/rmilter/rmilter.sock</literal>. Refer to
365+ the options documentation for more information.
366+ </para>
367+ </listitem>
368+
369+ <listitem>
370+ <para>
371+ The <literal>fetch*</literal> functions no longer support md5,
372+ please use sha256 instead.
373+ </para>
374+ </listitem>
375+
376+ <listitem>
377+ <para>
378+ The dnscrypt-proxy module interface has been streamlined around the
379+ <option>extraArgs</option> option. Where possible, legacy option
380+ declarations are mapped to <option>extraArgs</option> but will emit
381+ warnings. The <option>resolverList</option> has been outright
382+ removed: to use an unlisted resolver, use the
383+ <option>customResolver</option> option.
384+ </para>
385+ </listitem>
386+
387+ <listitem>
388+ <para>
389+ torbrowser now stores local state under
390+ <filename>~/.local/share/tor-browser</filename> by default. Any
391+ browser profile data from the old location,
392+ <filename>~/.torbrowser4</filename>, must be migrated manually.
393+ </para>
394+ </listitem>
395+
396+ <listitem>
397+ <para>
398+ The ihaskell, monetdb, offlineimap and sitecopy services have been removed.
399+ </para>
400+ </listitem>
205401</itemizedlist>
206402
403+</section>
404+<section xmlns="http://docbook.org/ns/docbook"
405+ xmlns:xlink="http://www.w3.org/1999/xlink"
406+ xmlns:xi="http://www.w3.org/2001/XInclude"
407+ version="5.0"
408+ xml:id="sec-release-17.03-notable-changes">
207409
208−<para>Other notable improvements:</para>
410+<title>Other Notable Changes</title>
209411
210412<itemizedlist>
211413
@@ -226,7 +428,87 @@ following incompatible changes:</para>
226428 </para>
227429 </listitem>
228430
229−</itemizedlist>
431+ <listitem>
432+ <para>Python 2.6 interpreter and package set have been removed.</para>
433+ </listitem>
434+
435+ <listitem>
436+ <para>
437+ The Python 2.7 interpreter does not use modules anymore. Instead, all
438+ CPython interpreters now include the whole standard library except for `tkinter`,
439+ which is available in the Python package set.
440+ </para>
441+ </listitem>
230442
443+ <listitem>
444+ <para>
445+ Python 2.7, 3.5 and 3.6 are now built deterministically and 3.4 mostly.
446+ Minor modifications had to be made to the interpreters in order to generate
447+ deterministic bytecode. This has security implications and is relevant for
448+ those using Python in a <literal>nix-shell</literal>. See the Nixpkgs manual
449+ for details.
450+ </para>
451+ </listitem>
452+
453+ <listitem>
454+ <para>
455+ The Python package sets now use a fixed-point combinator and the sets are
456+ available as attributes of the interpreters.
457+ </para>
458+ </listitem>
231459
460+ <listitem>
461+ <para>
462+ The Python function <literal>buildPythonPackage</literal> has been improved and can be
463+ used to build from Setuptools source, Flit source, and precompiled Wheels.
464+ </para>
465+ </listitem>
466+
467+ <listitem>
468+ <para>
469+ When adding new or updating current Python libraries, the expressions should be put
470+ in separate files in <literal>pkgs/development/python-modules</literal> and
471+ called from <literal>python-packages.nix</literal>.
472+ </para>
473+ </listitem>
474+
475+ <listitem>
476+ <para>
477+ The dnscrypt-proxy service supports synchronizing the list of public
478+ resolvers without working DNS resolution. This fixes issues caused by the
479+ resolver list becoming outdated. It also improves the viability of
480+ DNSCrypt only configurations.
481+ </para>
482+ </listitem>
483+
484+ <listitem>
485+ <para>
486+ Containers using bridged networking no longer lose their connection after
487+ changes to the host networking.
488+ </para>
489+ </listitem>
490+
491+ <listitem>
492+ <para>
493+ ZFS supports pool auto scrubbing.
494+ </para>
495+ </listitem>
496+
497+ <listitem>
498+ <para>
499+ The bind DNS utilities (e.g. dig) have been split into their own output and
500+ are now also available in <literal>pkgs.dnsutils</literal> and it is no longer
501+ necessary to pull in all of <literal>bind</literal> to use them.
502+ </para>
503+ </listitem>
504+
505+ <listitem>
506+ <para>
507+ Per-user configuration was moved from <filename>~/.nixpkgs</filename> to
508+ <filename>~/.config/nixpkgs</filename>. The former is still valid for
509+ <filename>config.nix</filename> for backwards compatibility.
510+ </para>
511+ </listitem>
512+</itemizedlist>
513+</section>
232514</section>
nixos/doc/manual/release-notes/rl-1709.xmlnew file+71
@@ -0,0 +1,71 @@
1+<section xmlns="http://docbook.org/ns/docbook"
2+ xmlns:xlink="http://www.w3.org/1999/xlink"
3+ xmlns:xi="http://www.w3.org/2001/XInclude"
4+ version="5.0"
5+ xml:id="sec-release-17.09">
6+
7+<title>Release 17.09 (“Hummingbird”, 2017/09/??)</title>
8+
9+<para>In addition to numerous new and upgraded packages, this release
10+has the following highlights: </para>
11+
12+<itemizedlist>
13+ <listitem>
14+ <para>
15+ The user handling now keeps track of deallocated UIDs/GIDs. When a user
16+ or group is revived, this allows it to be allocated the UID/GID it had before.
17+ A consequence is that UIDs and GIDs are no longer reused.
18+ </para>
19+ </listitem>
20+
21+</itemizedlist>
22+
23+<para>The following new services were added since the last release:</para>
24+
25+<itemizedlist>
26+ <listitem>
27+ <para></para>
28+ </listitem>
29+</itemizedlist>
30+
31+
32+<para>When upgrading from a previous release, please be aware of the
33+following incompatible changes:</para>
34+
35+<itemizedlist>
36+ <listitem>
37+ <para>
38+ </para>
39+ </listitem>
40+</itemizedlist>
41+
42+
43+<para>Other notable improvements:</para>
44+
45+<itemizedlist>
46+
47+ <listitem>
48+ <para>
49+ Modules can now be disabled by using <link
50+ xlink:href="https://nixos.org/nixpkgs/manual/#sec-replace-modules">
51+ disabledModules</link>, allowing another to take it's place. This can be
52+ used to import a set of modules from another channel while keeping the
53+ rest of the system on a stable release.
54+ </para>
55+ </listitem>
56+ <listitem>
57+ <para>
58+ Updated to FreeType 2.7.1, including a new TrueType engine.
59+ The new engine replaces the Infinality engine which was the default in
60+ NixOS. The default font rendering settings are now provided by
61+ fontconfig-penultimate, replacing fontconfig-ultimate; the new defaults
62+ are less invasive and provide rendering that is more consistent with
63+ other systems and hopefully with each font designer's intent. Some
64+ system-wide configuration has been removed from the Fontconfig NixOS
65+ module where user Fontconfig settings are available.
66+ </para>
67+ </listitem>
68+
69+</itemizedlist>
70+
71+</section>
nixos/lib/make-disk-image.nix+50−3
@@ -7,6 +7,12 @@
77, # The size of the disk, in megabytes.
88 diskSize
99
10+ # The files and directories to be placed in the target file system.
11+ # This is a list of attribute sets {source, target} where `source'
12+ # is the file system object (regular file or directory) to be
13+ # grafted in the file system at path `target'.
14+, contents ? []
15+
1016, # Whether the disk should be partitioned (with a single partition
1117 # containing the root filesystem) or contain the root filesystem
1218 # directly.
@@ -45,7 +51,14 @@ pkgs.vmTools.runInLinuxVM (
4551 ${pkgs.vmTools.qemu}/bin/qemu-img create -f ${format} $diskImage "${toString diskSize}M"
4652 mv closure xchg/
4753 '';
48− buildInputs = [ pkgs.utillinux pkgs.perl pkgs.e2fsprogs pkgs.parted ];
54+ buildInputs = with pkgs; [ utillinux perl e2fsprogs parted rsync ];
55+
56+ # I'm preserving the line below because I'm going to search for it across nixpkgs to consolidate
57+ # image building logic. The comment right below this now appears in 4 different places in nixpkgs :)
58+ # !!! should use XML.
59+ sources = map (x: x.source) contents;
60+ targets = map (x: x.target) contents;
61+
4962 exportReferencesGraph =
5063 [ "closure" config.system.build.toplevel ];
5164 inherit postVM;
@@ -98,11 +111,45 @@ pkgs.vmTools.runInLinuxVM (
98111 # Remove /etc/machine-id so that each machine cloning this image will get its own id
99112 rm -f /mnt/etc/machine-id
100113
114+ # Copy arbitrary other files into the image
115+ # Semi-shamelessly copied from make-etc.sh. I (@copumpkin) shall factor this stuff out as part of
116+ # https://github.com/NixOS/nixpkgs/issues/23052.
117+ set -f
118+ sources_=($sources)
119+ targets_=($targets)
120+ set +f
121+
122+ for ((i = 0; i < ''${#targets_[@]}; i++)); do
123+ source="''${sources_[$i]}"
124+ target="''${targets_[$i]}"
125+
126+ if [[ "$source" =~ '*' ]]; then
127+
128+ # If the source name contains '*', perform globbing.
129+ mkdir -p /mnt/$target
130+ for fn in $source; do
131+ rsync -a --no-o --no-g "$fn" /mnt/$target/
132+ done
133+
134+ else
135+
136+ mkdir -p /mnt/$(dirname $target)
137+ if ! [ -e /mnt/$target ]; then
138+ rsync -a --no-o --no-g $source /mnt/$target
139+ else
140+ echo "duplicate entry $target -> $source"
141+ exit 1
142+ fi
143+ fi
144+ done
145+
101146 umount /mnt
102147
103− # Make sure resize2fs works
148+ # Make sure resize2fs works. Note that resize2fs has stricter criteria for resizing than a normal
149+ # mount, so the `-c 0` and `-i 0` don't affect it. Setting it to `now` doesn't produce deterministic
150+ # output, of course, but we can fix that when/if we start making images deterministic.
104151 ${optionalString (fsType == "ext4") ''
105− tune2fs -c 0 -i 0 $rootDisk
152+ tune2fs -T now -c 0 -i 0 $rootDisk
106153 ''}
107154 ''
108155)
nixos/lib/test-driver/Machine.pm+3−2
@@ -508,7 +508,7 @@ sub screenshot {
508508sub getTTYText {
509509 my ($self, $tty) = @_;
510510
511− my ($status, $out) = $self->execute("fold -w 80 /dev/vcs${tty}");
511+ my ($status, $out) = $self->execute("fold -w\$(stty -F /dev/tty${tty} size | awk '{print \$2}') /dev/vcs${tty}");
512512 return $out;
513513}
514514
@@ -607,7 +607,8 @@ sub waitForWindow {
607607sub copyFileFromHost {
608608 my ($self, $from, $to) = @_;
609609 my $s = `cat $from` or die;
610− $self->mustSucceed("echo '$s' > $to"); # !!! escaping
610+ $s =~ s/'/'\\''/g;
611+ $self->mustSucceed("echo '$s' > $to");
611612}
612613
613614
nixos/lib/testing.nix+3−3
@@ -108,16 +108,16 @@ rec {
108108 mkdir -p $out/bin
109109 echo "$testScript" > $out/test-script
110110 ln -s ${testDriver}/bin/nixos-test-driver $out/bin/
111− vms="$(for i in ${toString vms}; do echo $i/bin/run-*-vm; done)"
111+ vms=($(for i in ${toString vms}; do echo $i/bin/run-*-vm; done))
112112 wrapProgram $out/bin/nixos-test-driver \
113− --add-flags "$vms" \
113+ --add-flags "''${vms[*]}" \
114114 ${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \
115115 --run "testScript=\"\$(cat $out/test-script)\"" \
116116 --set testScript '$testScript' \
117117 --set VLANS '${toString vlans}'
118118 ln -s ${testDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms
119119 wrapProgram $out/bin/nixos-run-vms \
120− --add-flags "$vms" \
120+ --add-flags "''${vms[*]}" \
121121 ${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \
122122 --set tests 'startAll; joinAll;' \
123123 --set VLANS '${toString vlans}' \
nixos/maintainers/scripts/ec2/amazon-image.nix+21−2
@@ -2,15 +2,34 @@
22
33with lib;
44
5−{
5+let
6+ cfg = config.amazonImage;
7+in {
68
79 imports =
810 [ ../../../modules/installer/cd-dvd/channel.nix
911 ../../../modules/virtualisation/amazon-image.nix
1012 ];
1113
12− system.build.amazonImage = import ../../../lib/make-disk-image.nix {
14+ options.amazonImage = {
15+ contents = mkOption {
16+ example = literalExample ''
17+ [ { source = pkgs.memtest86 + "/memtest.bin";
18+ target = "boot/memtest.bin";
19+ }
20+ ]
21+ '';
22+ default = [];
23+ description = ''
24+ This option lists files to be copied to fixed locations in the
25+ generated image. Glob patterns work.
26+ '';
27+ };
28+ };
29+
30+ config.system.build.amazonImage = import ../../../lib/make-disk-image.nix {
1331 inherit lib config;
32+ inherit (cfg) contents;
1433 pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
1534 partitioned = config.ec2.hvm;
1635 diskSize = if config.ec2.hvm then 2048 else 8192;
nixos/maintainers/scripts/ec2/create-amis.sh+8−9
@@ -3,23 +3,22 @@
33
44# To start with do: nix-shell -p awscli --run "aws configure"
55
6−
6+set -e
77set -o pipefail
8−#set -x
9−
10−stateDir=${TMPDIR:-/tmp}/ec2-image
11−echo "keeping state in $stateDir"
12−mkdir -p $stateDir
138
149version=$(nix-instantiate --eval --strict '<nixpkgs>' -A lib.nixpkgsVersion | sed s/'"'//g)
1510major=${version:0:5}
1611echo "NixOS version is $version ($major)"
1712
13+stateDir=/var/tmp/ec2-image-$version
14+echo "keeping state in $stateDir"
15+mkdir -p $stateDir
16+
1817rm -f ec2-amis.nix
1918
20−types="hvm pv"
19+types="hvm"
2120stores="ebs s3"
22−regions="eu-west-1 eu-west-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2 sa-east-1 ap-south-1"
21+regions="eu-west-1 eu-west-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2 ca-central-1 ap-southeast-1 ap-southeast-2 ap-northeast-1 ap-northeast-2 sa-east-1 ap-south-1"
2322
2423for type in $types; do
2524 link=$stateDir/$type
@@ -206,7 +205,7 @@ for type in $types; do
206205
207206 # Register the AMI.
208207 if [ $type = pv ]; then
209− kernel=$(aws ec2 describe-images --owner amazon --filters "Name=name,Values=pv-grub-hd0_1.04-$arch.gz" | jq -r .Images[0].ImageId)
208+ kernel=$(aws ec2 describe-images --owner amazon --filters "Name=name,Values=pv-grub-hd0_1.05-$arch.gz" | jq -r .Images[0].ImageId)
210209 if [ "$kernel" = null ]; then break; fi
211210 echo "using PV-GRUB kernel $kernel"
212211 extraFlags+=" --virtualization-type paravirtual --kernel $kernel"
nixos/maintainers/scripts/openstack/nova-image.nixnew file+24
@@ -0,0 +1,24 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ imports =
7+ [ ../../../modules/installer/cd-dvd/channel.nix
8+ ../../../modules/virtualisation/nova-config.nix
9+ ];
10+
11+ system.build.novaImage = import ../../../lib/make-disk-image.nix {
12+ inherit lib config;
13+ pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
14+ diskSize = 8192;
15+ format = "qcow2";
16+ configFile = pkgs.writeText "configuration.nix"
17+ ''
18+ {
19+ imports = [ <nixpkgs/nixos/modules/virtualisation/nova-config.nix> ];
20+ }
21+ '';
22+ };
23+
24+}
nixos/modules/config/fonts/fontconfig-penultimate.nixnew file+270
@@ -0,0 +1,270 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.fonts.fontconfig;
7+
8+ fcBool = x: "<bool>" + (if x then "true" else "false") + "</bool>";
9+
10+ # back-supported fontconfig version and package
11+ # version is used for font cache generation
12+ supportVersion = "210";
13+ supportPkg = pkgs."fontconfig_${supportVersion}";
14+
15+ # latest fontconfig version and package
16+ # version is used for configuration folder name, /etc/fonts/VERSION/
17+ # note: format differs from supportVersion and can not be used with makeCacheConf
18+ latestVersion = pkgs.fontconfig.configVersion;
19+ latestPkg = pkgs.fontconfig;
20+
21+ # supported version fonts.conf
22+ supportFontsConf = pkgs.makeFontsConf { fontconfig = supportPkg; fontDirectories = config.fonts.fonts; };
23+
24+ # configuration file to read fontconfig cache
25+ # version dependent
26+ # priority 0
27+ cacheConfSupport = makeCacheConf { version = supportVersion; };
28+ cacheConfLatest = makeCacheConf {};
29+
30+ # generate the font cache setting file for a fontconfig version
31+ # use latest when no version is passed
32+ makeCacheConf = { version ? null }:
33+ let
34+ fcPackage = if builtins.isNull version
35+ then "fontconfig"
36+ else "fontconfig_${version}";
37+ makeCache = fontconfig: pkgs.makeFontsCache { inherit fontconfig; fontDirectories = config.fonts.fonts; };
38+ cache = makeCache pkgs."${fcPackage}";
39+ cache32 = makeCache pkgs.pkgsi686Linux."${fcPackage}";
40+ in
41+ pkgs.writeText "fc-00-nixos-cache.conf" ''
42+ <?xml version='1.0'?>
43+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
44+ <fontconfig>
45+ <!-- Font directories -->
46+ ${concatStringsSep "\n" (map (font: "<dir>${font}</dir>") config.fonts.fonts)}
47+ <!-- Pre-generated font caches -->
48+ <cachedir>${cache}</cachedir>
49+ ${optionalString (pkgs.stdenv.isx86_64 && cfg.cache32Bit) ''
50+ <cachedir>${cache32}</cachedir>
51+ ''}
52+ </fontconfig>
53+ '';
54+
55+ # The configuration to be included in /etc/font/
56+ penultimateConf = pkgs.runCommand "font-penultimate-conf" {} ''
57+ support_folder=$out/etc/fonts/conf.d
58+ latest_folder=$out/etc/fonts/${latestVersion}/conf.d
59+
60+ mkdir -p $support_folder
61+ mkdir -p $latest_folder
62+
63+ ln -s ${supportFontsConf} $support_folder/../fonts.conf
64+ ln -s ${latestPkg.out}/etc/fonts/fonts.conf \
65+ $latest_folder/../fonts.conf
66+
67+ # fontconfig-penultimate various configuration files
68+ ln -s ${pkgs.fontconfig-penultimate}/etc/fonts/conf.d/*.conf \
69+ $support_folder
70+ ln -s ${pkgs.fontconfig-penultimate}/etc/fonts/conf.d/*.conf \
71+ $latest_folder
72+
73+ ln -s ${cacheConfSupport} $support_folder/00-nixos-cache.conf
74+ ln -s ${cacheConfLatest} $latest_folder/00-nixos-cache.conf
75+
76+ rm $support_folder/10-antialias.conf $latest_folder/10-antialias.conf
77+ ln -s ${antialiasConf} $support_folder/10-antialias.conf
78+ ln -s ${antialiasConf} $latest_folder/10-antialias.conf
79+
80+ rm $support_folder/10-hinting.conf $latest_folder/10-hinting.conf
81+ ln -s ${hintingConf} $support_folder/10-hinting.conf
82+ ln -s ${hintingConf} $latest_folder/10-hinting.conf
83+
84+ ${optionalString cfg.useEmbeddedBitmaps ''
85+ rm $support_folder/10-no-embedded-bitmaps.conf
86+ rm $latest_folder/10-no-embedded-bitmaps.conf
87+ ''}
88+
89+ rm $support_folder/10-subpixel.conf $latest_folder/10-subpixel.conf
90+ ln -s ${subpixelConf} $support_folder/10-subpixel.conf
91+ ln -s ${subpixelConf} $latest_folder/10-subpixel.conf
92+
93+ ${optionalString (cfg.dpi != 0) ''
94+ ln -s ${dpiConf} $support_folder/11-dpi.conf
95+ ln -s ${dpiConf} $latest_folder/11-dpi.conf
96+ ''}
97+
98+ ${optionalString (!cfg.includeUserConf) ''
99+ rm $support_folder/50-user.conf
100+ rm $latest_folder/50-user.conf
101+ ''}
102+
103+ # 51-local.conf
104+ rm $latest_folder/51-local.conf
105+ substitute \
106+ ${pkgs.fontconfig-penultimate}/etc/fonts/conf.d/51-local.conf \
107+ $latest_folder/51-local.conf \
108+ --replace local.conf /etc/fonts/${latestVersion}/local.conf
109+
110+ ln -s ${defaultFontsConf} $support_folder/52-default-fonts.conf
111+ ln -s ${defaultFontsConf} $latest_folder/52-default-fonts.conf
112+
113+ ${optionalString cfg.allowBitmaps ''
114+ rm $support_folder/53-no-bitmaps.conf
115+ rm $latest_folder/53-no-bitmaps.conf
116+ ''}
117+
118+ ${optionalString (!cfg.allowType1) ''
119+ ln -s ${rejectType1} $support_folder/53-no-type1.conf
120+ ln -s ${rejectType1} $latest_folder/53-no-type1.conf
121+ ''}
122+ '';
123+
124+ hintingConf = pkgs.writeText "fc-10-hinting.conf" ''
125+ <?xml version='1.0'?>
126+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
127+ <fontconfig>
128+
129+ <!-- Default rendering settings -->
130+ <match target="pattern">
131+ <edit mode="append" name="hinting">
132+ ${fcBool cfg.hinting.enable}
133+ </edit>
134+ <edit mode="append" name="autohint">
135+ ${fcBool cfg.hinting.autohint}
136+ </edit>
137+ <edit mode="append" name="hintstyle">
138+ <const>hintslight</const>
139+ </edit>
140+ </match>
141+
142+ </fontconfig>
143+ '';
144+
145+ antialiasConf = pkgs.writeText "fc-10-antialias.conf" ''
146+ <?xml version='1.0'?>
147+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
148+ <fontconfig>
149+
150+ <!-- Default rendering settings -->
151+ <match target="pattern">
152+ <edit mode="append" name="antialias">
153+ ${fcBool cfg.antialias}
154+ </edit>
155+ </match>
156+
157+ </fontconfig>
158+ '';
159+
160+ subpixelConf = pkgs.writeText "fc-10-subpixel.conf" ''
161+ <?xml version='1.0'?>
162+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
163+ <fontconfig>
164+
165+ <!-- Default rendering settings -->
166+ <match target="pattern">
167+ <edit mode="append" name="rgba">
168+ <const>${cfg.subpixel.rgba}</const>
169+ </edit>
170+ <edit mode="append" name="lcdfilter">
171+ <const>lcd${cfg.subpixel.lcdfilter}</const>
172+ </edit>
173+ </match>
174+
175+ </fontconfig>
176+ '';
177+
178+ dpiConf = pkgs.writeText "fc-11-dpi.conf" ''
179+ <?xml version='1.0'?>
180+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
181+ <fontconfig>
182+
183+ <match target="pattern">
184+ <edit name="dpi" mode="assign">
185+ <double>${toString cfg.dpi}</double>
186+ </edit>
187+ </match>
188+
189+ </fontconfig>
190+ '';
191+
192+ defaultFontsConf =
193+ let genDefault = fonts: name:
194+ optionalString (fonts != []) ''
195+ <alias>
196+ <family>${name}</family>
197+ <prefer>
198+ ${concatStringsSep ""
199+ (map (font: ''
200+ <family>${font}</family>
201+ '') fonts)}
202+ </prefer>
203+ </alias>
204+ '';
205+ in
206+ pkgs.writeText "fc-52-nixos-default-fonts.conf" ''
207+ <?xml version='1.0'?>
208+ <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
209+ <fontconfig>
210+
211+ <!-- Default fonts -->
212+ ${genDefault cfg.defaultFonts.sansSerif "sans-serif"}
213+
214+ ${genDefault cfg.defaultFonts.serif "serif"}
215+
216+ ${genDefault cfg.defaultFonts.monospace "monospace"}
217+
218+ </fontconfig>
219+ '';
220+
221+ rejectType1 = pkgs.writeText "fc-53-no-type1.conf" ''
222+ <?xml version="1.0"?>
223+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
224+ <fontconfig>
225+
226+ <!-- Reject Type 1 fonts -->
227+ <selectfont>
228+ <rejectfont>
229+ <pattern>
230+ <patelt name="fontformat"><string>Type 1</string></patelt>
231+ </pattern>
232+ </rejectfont>
233+ </selectfont>
234+
235+ </fontconfig>
236+ '';
237+
238+in
239+{
240+
241+ options = {
242+
243+ fonts = {
244+
245+ fontconfig = {
246+
247+ penultimate = {
248+ enable = mkOption {
249+ type = types.bool;
250+ default = true;
251+ description = ''
252+ Enable fontconfig-penultimate settings to supplement the
253+ NixOS defaults by providing per-font rendering defaults and
254+ metric aliases.
255+ '';
256+ };
257+ };
258+
259+ };
260+ };
261+
262+ };
263+
264+ config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
265+
266+ fonts.fontconfig.confPackages = [ penultimateConf ];
267+
268+ };
269+
270+}
nixos/modules/config/fonts/fontconfig-ultimate.nix+1−111
@@ -8,61 +8,6 @@ let fcBool = x: if x then "<bool>true</bool>" else "<bool>false</bool>";
88
99 latestVersion = pkgs.fontconfig.configVersion;
1010
11− # fontconfig ultimate main configuration file
12− # priority 52
13− fontconfigUltimateConf = pkgs.writeText "fc-52-fontconfig-ultimate.conf" ''
14− <?xml version="1.0"?>
15− <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
16− <fontconfig>
17−
18− ${optionalString (!cfg.allowBitmaps) ''
19− <!-- Reject bitmap fonts -->
20− <selectfont>
21− <rejectfont>
22− <pattern>
23− <patelt name="scalable"><bool>false</bool></patelt>
24− </pattern>
25− </rejectfont>
26− </selectfont>
27− ''}
28−
29− ${optionalString cfg.allowType1 ''
30− <!-- Reject Type 1 fonts -->
31− <selectfont>
32− <rejectfont>
33− <pattern>
34− <patelt name="fontformat">
35− <string>Type 1</string>
36− </patelt>
37− </pattern>
38− </rejectfont>
39− </selectfont>
40− ''}
41−
42− <!-- Use embedded bitmaps in fonts like Calibri? -->
43− <match target="font">
44− <edit name="embeddedbitmap" mode="assign">
45− ${fcBool cfg.useEmbeddedBitmaps}
46− </edit>
47− </match>
48−
49− <!-- Force autohint always -->
50− <match target="font">
51− <edit name="force_autohint" mode="assign">
52− ${fcBool cfg.forceAutohint}
53− </edit>
54− </match>
55−
56− <!-- Render some monospace TTF fonts as bitmaps -->
57− <match target="pattern">
58− <edit name="bitmap_monospace" mode="assign">
59− ${fcBool cfg.renderMonoTTFAsBitmap}
60− </edit>
61− </match>
62−
63− </fontconfig>
64− '';
65−
6611 # The configuration to be included in /etc/font/
6712 confPkg = pkgs.runCommand "font-ultimate-conf" {} ''
6813 support_folder=$out/etc/fonts/conf.d
@@ -71,12 +16,6 @@ let fcBool = x: if x then "<bool>true</bool>" else "<bool>false</bool>";
7116 mkdir -p $support_folder
7217 mkdir -p $latest_folder
7318
74− # 52-fontconfig-ultimate.conf
75− ln -s ${fontconfigUltimateConf} \
76− $support_folder/52-fontconfig-ultimate.conf
77− ln -s ${fontconfigUltimateConf} \
78− $latest_folder/52-fontconfig-ultimate.conf
79−
8019 # fontconfig ultimate substitutions
8120 ${optionalString (cfg.substitutions != "none") ''
8221 ln -s ${pkgs.fontconfig-ultimate}/etc/fonts/presets/${cfg.substitutions}/*.conf \
@@ -104,7 +43,7 @@ in
10443 ultimate = {
10544 enable = mkOption {
10645 type = types.bool;
107− default = true;
46+ default = false;
10847 description = ''
10948 Enable fontconfig-ultimate settings (formerly known as
11049 Infinality). Besides the customizable settings in this NixOS
@@ -113,45 +52,6 @@ in
11352 '';
11453 };
11554
116− allowBitmaps = mkOption {
117− type = types.bool;
118− default = true;
119− description = ''
120− Allow bitmap fonts. Set to <literal>false</literal> to ban all
121− bitmap fonts.
122− '';
123− };
124−
125− allowType1 = mkOption {
126− type = types.bool;
127− default = false;
128− description = ''
129− Allow Type-1 fonts. Default is <literal>false</literal> because of
130− poor rendering.
131− '';
132− };
133−
134− useEmbeddedBitmaps = mkOption {
135− type = types.bool;
136− default = false;
137− description = ''Use embedded bitmaps in fonts like Calibri.'';
138− };
139−
140− forceAutohint = mkOption {
141− type = types.bool;
142− default = false;
143− description = ''
144− Force use of the TrueType Autohinter. Useful for debugging or
145− free-software purists.
146− '';
147− };
148−
149− renderMonoTTFAsBitmap = mkOption {
150− type = types.bool;
151− default = false;
152− description = ''Render some monospace TTF fonts as bitmaps.'';
153− };
154−
15555 substitutions = mkOption {
15656 type = types.nullOr (types.enum ["free" "combi" "ms"]);
15757 default = "free";
@@ -163,15 +63,6 @@ in
16363 <literal>none</literal> disables the substitutions.
16464 '';
16565 };
166−
167− preset = mkOption {
168− type = types.enum ["ultimate1" "ultimate2" "ultimate3" "ultimate4" "ultimate5" "osx" "windowsxp"];
169− default = "ultimate3";
170− description = ''
171− FreeType rendering settings preset. Any of the presets may be
172− customized by setting environment variables.
173− '';
174− };
17566 };
17667 };
17768 };
@@ -181,7 +72,6 @@ in
18172 config = mkIf (config.fonts.fontconfig.enable && cfg.enable) {
18273
18374 fonts.fontconfig.confPackages = [ confPkg ];
184− environment.variables."INFINALITY_FT" = cfg.preset;
18575
18676 };
18777
nixos/modules/config/fonts/fontconfig.nix+131−38
@@ -41,11 +41,11 @@ let cfg = config.fonts.fontconfig;
4141 # priority 0
4242 cacheConfSupport = makeCacheConf { version = supportVersion; };
4343 cacheConfLatest = makeCacheConf {};
44−
44+
4545 # generate the font cache setting file for a fontconfig version
4646 # use latest when no version is passed
4747 makeCacheConf = { version ? null }:
48− let
48+ let
4949 fcPackage = if builtins.isNull version
5050 then "fontconfig"
5151 else "fontconfig_${version}";
@@ -75,23 +75,23 @@ let cfg = config.fonts.fontconfig;
7575 <fontconfig>
7676
7777 <!-- Default rendering settings -->
78− <match target="font">
79− <edit mode="assign" name="hinting">
78+ <match target="pattern">
79+ <edit mode="append" name="hinting">
8080 ${fcBool cfg.hinting.enable}
8181 </edit>
82− <edit mode="assign" name="autohint">
82+ <edit mode="append" name="autohint">
8383 ${fcBool cfg.hinting.autohint}
8484 </edit>
85− <edit mode="assign" name="hintstyle">
86− <const>hint${cfg.hinting.style}</const>
85+ <edit mode="append" name="hintstyle">
86+ <const>hintslight</const>
8787 </edit>
88− <edit mode="assign" name="antialias">
88+ <edit mode="append" name="antialias">
8989 ${fcBool cfg.antialias}
9090 </edit>
91− <edit mode="assign" name="rgba">
91+ <edit mode="append" name="rgba">
9292 <const>${cfg.subpixel.rgba}</const>
9393 </edit>
94− <edit mode="assign" name="lcdfilter">
94+ <edit mode="append" name="lcdfilter">
9595 <const>lcd${cfg.subpixel.lcdfilter}</const>
9696 </edit>
9797 </match>
@@ -113,7 +113,7 @@ let cfg = config.fonts.fontconfig;
113113
114114 # default fonts configuration file
115115 # priority 52
116− defaultFontsConf =
116+ defaultFontsConf =
117117 let genDefault = fonts: name:
118118 optionalString (fonts != []) ''
119119 <alias>
@@ -142,7 +142,54 @@ let cfg = config.fonts.fontconfig;
142142 </fontconfig>
143143 '';
144144
145− # fontconfig configuration package
145+ # bitmap font options
146+ # priority 53
147+ rejectBitmaps = pkgs.writeText "fc-53-nixos-bitmaps.conf" ''
148+ <?xml version="1.0"?>
149+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
150+ <fontconfig>
151+
152+ ${optionalString (!cfg.allowBitmaps) ''
153+ <!-- Reject bitmap fonts -->
154+ <selectfont>
155+ <rejectfont>
156+ <pattern>
157+ <patelt name="scalable"><bool>false</bool></patelt>
158+ </pattern>
159+ </rejectfont>
160+ </selectfont>
161+ ''}
162+
163+ <!-- Use embedded bitmaps in fonts like Calibri? -->
164+ <match target="font">
165+ <edit name="embeddedbitmap" mode="assign">
166+ ${fcBool cfg.useEmbeddedBitmaps}
167+ </edit>
168+ </match>
169+
170+ </fontconfig>
171+ '';
172+
173+ # reject Type 1 fonts
174+ # priority 53
175+ rejectType1 = pkgs.writeText "fc-53-nixos-reject-type1.conf" ''
176+ <?xml version="1.0"?>
177+ <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
178+ <fontconfig>
179+
180+ <!-- Reject Type 1 fonts -->
181+ <selectfont>
182+ <rejectfont>
183+ <pattern>
184+ <patelt name="fontformat"><string>Type 1</string></patelt>
185+ </pattern>
186+ </rejectfont>
187+ </selectfont>
188+
189+ </fontconfig>
190+ '';
191+
192+ # fontconfig configuration package
146193 confPkg = pkgs.runCommand "fontconfig-conf" {} ''
147194 support_folder=$out/etc/fonts
148195 latest_folder=$out/etc/fonts/${latestVersion}
@@ -166,7 +213,7 @@ let cfg = config.fonts.fontconfig;
166213
167214 substitute ${latestPkg.out}/etc/fonts/conf.d/51-local.conf \
168215 $latest_folder/conf.d/51-local.conf \
169− --replace local.conf /etc/fonts/${latestVersion}/local.conf
216+ --replace local.conf /etc/fonts/${latestVersion}/local.conf
170217
171218 # 00-nixos-cache.conf
172219 ln -s ${cacheConfSupport} \
@@ -192,6 +239,16 @@ let cfg = config.fonts.fontconfig;
192239 # 52-nixos-default-fonts.conf
193240 ln -s ${defaultFontsConf} $support_folder/conf.d/52-nixos-default-fonts.conf
194241 ln -s ${defaultFontsConf} $latest_folder/conf.d/52-nixos-default-fonts.conf
242+
243+ # 53-nixos-bitmaps.conf
244+ ln -s ${rejectBitmaps} $support_folder/conf.d/53-nixos-bitmaps.conf
245+ ln -s ${rejectBitmaps} $latest_folder/conf.d/53-nixos-bitmaps.conf
246+
247+ ${optionalString (! cfg.allowType1) ''
248+ # 53-nixos-reject-type1.conf
249+ ln -s ${rejectType1} $support_folder/conf.d/53-nixos-reject-type1.conf
250+ ln -s ${rejectType1} $latest_folder/conf.d/53-nixos-reject-type1.conf
251+ ''}
195252 '';
196253
197254 # Package with configuration files
@@ -233,7 +290,11 @@ in
233290 antialias = mkOption {
234291 type = types.bool;
235292 default = true;
236− description = "Enable font antialiasing.";
293+ description = ''
294+ Enable font antialiasing. At high resolution (> 200 DPI),
295+ antialiasing has no visible effect; users of such displays may want
296+ to disable this option.
297+ '';
237298 };
238299
239300 dpi = mkOption {
@@ -249,7 +310,7 @@ in
249310 type = types.lines;
250311 default = "";
251312 description = ''
252− System-wide customization file contents, has higher priority than
313+ System-wide customization file contents, has higher priority than
253314 <literal>defaultFonts</literal> settings.
254315 '';
255316 };
@@ -285,28 +346,23 @@ in
285346
286347 hinting = {
287348 enable = mkOption {
288− type = types.bool;
289− default = true;
290− description = "Enable TrueType hinting.";
291− };
292−
293− autohint = mkOption {
294349 type = types.bool;
295350 default = true;
296351 description = ''
297− Enable the autohinter, which provides hinting for otherwise
298− un-hinted fonts. The results are usually lower quality than
299− correctly-hinted fonts.
352+ Enable font hinting. Hinting aligns glyphs to pixel boundaries to
353+ improve rendering sharpness at low resolution. At high resolution
354+ (> 200 dpi) hinting will do nothing (at best); users of such
355+ displays may want to disable this option.
300356 '';
301357 };
302358
303− style = mkOption {
304− type = types.enum ["none" "slight" "medium" "full"];
305− default = "full";
359+ autohint = mkOption {
360+ type = types.bool;
361+ default = false;
306362 description = ''
307− TrueType hinting style, one of <literal>none</literal>,
308− <literal>slight</literal>, <literal>medium</literal>, or
309− <literal>full</literal>.
363+ Enable the autohinter in place of the default interpreter.
364+ The results are usually lower quality than correctly-hinted
365+ fonts, but better than unhinted fonts.
310366 '';
311367 };
312368 };
@@ -327,7 +383,15 @@ in
327383 default = "rgb";
328384 type = types.enum ["rgb" "bgr" "vrgb" "vbgr" "none"];
329385 description = ''
330− Subpixel order.
386+ Subpixel order. The overwhelming majority of displays are
387+ <literal>rgb</literal> in their normal orientation. Select
388+ <literal>vrgb</literal> for mounting such a display 90 degrees
389+ clockwise from its normal orientation or <literal>vbgr</literal>
390+ for mounting 90 degrees counter-clockwise. Select
391+ <literal>bgr</literal> in the unlikely event of mounting 180
392+ degrees from the normal orientation. Reverse these directions in
393+ the improbable event that the display's native subpixel order is
394+ <literal>bgr</literal>.
331395 '';
332396 };
333397
@@ -335,7 +399,9 @@ in
335399 default = "default";
336400 type = types.enum ["none" "default" "light" "legacy"];
337401 description = ''
338− FreeType LCD filter.
402+ FreeType LCD filter. At high resolution (> 200 DPI), LCD filtering
403+ has no visible effect; users of such displays may want to select
404+ <literal>none</literal>.
339405 '';
340406 };
341407
@@ -349,16 +415,43 @@ in
349415 '';
350416 };
351417
418+ allowBitmaps = mkOption {
419+ type = types.bool;
420+ default = true;
421+ description = ''
422+ Allow bitmap fonts. Set to <literal>false</literal> to ban all
423+ bitmap fonts.
424+ '';
425+ };
426+
427+ allowType1 = mkOption {
428+ type = types.bool;
429+ default = false;
430+ description = ''
431+ Allow Type-1 fonts. Default is <literal>false</literal> because of
432+ poor rendering.
433+ '';
434+ };
435+
436+ useEmbeddedBitmaps = mkOption {
437+ type = types.bool;
438+ default = false;
439+ description = ''Use embedded bitmaps in fonts like Calibri.'';
440+ };
441+
352442 };
353443
354444 };
355445
356446 };
357− config = mkIf cfg.enable {
358− fonts.fontconfig.confPackages = [ confPkg ];
359−
360− environment.systemPackages = [ pkgs.fontconfig ];
361− environment.etc.fonts.source = "${fontconfigEtc}/etc/fonts/";
362− };
447+ config = mkMerge [
448+ (mkIf cfg.enable {
449+ environment.systemPackages = [ pkgs.fontconfig ];
450+ environment.etc.fonts.source = "${fontconfigEtc}/etc/fonts/";
451+ })
452+ (mkIf (cfg.enable && !cfg.penultimate.enable) {
453+ fonts.fontconfig.confPackages = [ confPkg ];
454+ })
455+ ];
363456
364457}
nixos/modules/config/networking.nix+2−7
@@ -178,10 +178,10 @@ in
178178
179179 environment.etc =
180180 { # /etc/services: TCP/UDP port assignments.
181− "services".source = pkgs.iana_etc + "/etc/services";
181+ "services".source = pkgs.iana-etc + "/etc/services";
182182
183183 # /etc/protocols: IP protocol numbers.
184− "protocols".source = pkgs.iana_etc + "/etc/protocols";
184+ "protocols".source = pkgs.iana-etc + "/etc/protocols";
185185
186186 # /etc/rpc: RPC program numbers.
187187 "rpc".source = pkgs.glibc.out + "/etc/rpc";
@@ -251,11 +251,6 @@ in
251251 # Install the proxy environment variables
252252 environment.sessionVariables = cfg.proxy.envVars;
253253
254− # The ‘ip-up’ target is kept for backwards compatibility.
255− # New services should use systemd upstream targets:
256− # See https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
257− systemd.targets.ip-up.description = "Services Requiring IP Connectivity (deprecated)";
258−
259254 # This is needed when /etc/resolv.conf is being overriden by networkd
260255 # and other configurations. If the file is destroyed by an environment
261256 # activation then it must be rebuilt so that applications which interface
nixos/modules/config/pulseaudio.nix+2
@@ -274,6 +274,8 @@ in {
274274 RestartSec = "500ms";
275275 };
276276 };
277+
278+ environment.variables.PULSE_COOKIE = "${stateDir}/.config/pulse/cookie";
277279 })
278280 ];
279281
nixos/modules/config/shells-environment.nix+1−1
@@ -168,7 +168,7 @@ in
168168
169169 ${cfg.extraInit}
170170
171− # The setuid wrappers override other bin directories.
171+ # The setuid/setcap wrappers override other bin directories.
172172 export PATH="${config.security.wrapperDir}:$PATH"
173173
174174 # ~/bin if it exists overrides other bin directories.
nixos/modules/config/sysctl.nix+4
@@ -64,5 +64,9 @@ in
6464 # Removed under grsecurity.
6565 boot.kernel.sysctl."kernel.kptr_restrict" =
6666 if (config.boot.kernelPackages.kernel.features.grsecurity or false) then null else 1;
67+
68+ # Disable YAMA by default to allow easy debugging.
69+ boot.kernel.sysctl."kernel.yama.ptrace_scope" = mkDefault 0;
70+
6771 };
6872}
nixos/modules/config/update-users-groups.pl+54−18
@@ -6,6 +6,21 @@ use JSON;
66make_path("/var/lib/nixos", { mode => 0755 });
77
88
9+# Keep track of deleted uids and gids.
10+my $uidMapFile = "/var/lib/nixos/uid-map";
11+my $uidMap = -e $uidMapFile ? decode_json(read_file($uidMapFile)) : {};
12+
13+my $gidMapFile = "/var/lib/nixos/gid-map";
14+my $gidMap = -e $gidMapFile ? decode_json(read_file($gidMapFile)) : {};
15+
16+
17+sub updateFile {
18+ my ($path, $contents, $perms) = @_;
19+ write_file("$path.tmp", { binmode => ':utf8', perms => $perms // 0644 }, $contents);
20+ rename("$path.tmp", $path) or die;
21+}
22+
23+
924sub hashPassword {
1025 my ($password) = @_;
1126 my $salt = "";
@@ -18,10 +33,10 @@ sub hashPassword {
1833# Functions for allocating free GIDs/UIDs. FIXME: respect ID ranges in
1934# /etc/login.defs.
2035sub allocId {
21− my ($used, $idMin, $idMax, $up, $getid) = @_;
36+ my ($used, $prevUsed, $idMin, $idMax, $up, $getid) = @_;
2237 my $id = $up ? $idMin : $idMax;
2338 while ($id >= $idMin && $id <= $idMax) {
24− if (!$used->{$id} && !defined &$getid($id)) {
39+ if (!$used->{$id} && !$prevUsed->{$id} && !defined &$getid($id)) {
2540 $used->{$id} = 1;
2641 return $id;
2742 }
@@ -31,23 +46,36 @@ sub allocId {
3146 die "$0: out of free UIDs or GIDs\n";
3247}
3348
34−my (%gidsUsed, %uidsUsed);
49+my (%gidsUsed, %uidsUsed, %gidsPrevUsed, %uidsPrevUsed);
3550
3651sub allocGid {
37− return allocId(\%gidsUsed, 400, 499, 0, sub { my ($gid) = @_; getgrgid($gid) });
52+ my ($name) = @_;
53+ my $prevGid = $gidMap->{$name};
54+ if (defined $prevGid && !defined $gidsUsed{$prevGid}) {
55+ print STDERR "reviving group '$name' with GID $prevGid\n";
56+ $gidsUsed{$prevGid} = 1;
57+ return $prevGid;
58+ }
59+ return allocId(\%gidsUsed, \%gidsPrevUsed, 400, 499, 0, sub { my ($gid) = @_; getgrgid($gid) });
3860}
3961
4062sub allocUid {
41− my ($isSystemUser) = @_;
63+ my ($name, $isSystemUser) = @_;
4264 my ($min, $max, $up) = $isSystemUser ? (400, 499, 0) : (1000, 29999, 1);
43− return allocId(\%uidsUsed, $min, $max, $up, sub { my ($uid) = @_; getpwuid($uid) });
65+ my $prevUid = $uidMap->{$name};
66+ if (defined $prevUid && $prevUid >= $min && $prevUid <= $max && !defined $uidsUsed{$prevUid}) {
67+ print STDERR "reviving user '$name' with UID $prevUid\n";
68+ $uidsUsed{$prevUid} = 1;
69+ return $prevUid;
70+ }
71+ return allocId(\%uidsUsed, \%uidsPrevUsed, $min, $max, $up, sub { my ($uid) = @_; getpwuid($uid) });
4472}
4573
4674
4775# Read the declared users/groups.
4876my $spec = decode_json(read_file($ARGV[0]));
4977
50−# Don't allocate UIDs/GIDs that are already in use.
78+# Don't allocate UIDs/GIDs that are manually assigned.
5179foreach my $g (@{$spec->{groups}}) {
5280 $gidsUsed{$g->{gid}} = 1 if defined $g->{gid};
5381}
@@ -56,6 +84,11 @@ foreach my $u (@{$spec->{users}}) {
5684 $uidsUsed{$u->{uid}} = 1 if defined $u->{uid};
5785}
5886
87+# Likewise for previously used but deleted UIDs/GIDs.
88+$uidsPrevUsed{$_} = 1 foreach values %{$uidMap};
89+$gidsPrevUsed{$_} = 1 foreach values %{$gidMap};
90+
91+
5992# Read the current /etc/group.
6093sub parseGroup {
6194 chomp;
@@ -114,16 +147,18 @@ foreach my $g (@{$spec->{groups}}) {
114147 }
115148 }
116149 } else {
117− $g->{gid} = allocGid if !defined $g->{gid};
150+ $g->{gid} = allocGid($name) if !defined $g->{gid};
118151 $g->{password} = "x";
119152 }
120153
121154 $g->{members} = join ",", sort(keys(%members));
122155 $groupsOut{$name} = $g;
156+
157+ $gidMap->{$name} = $g->{gid};
123158}
124159
125160# Update the persistent list of declarative groups.
126−write_file($declGroupsFile, { binmode => ':utf8' }, join(" ", sort(keys %groupsOut)));
161+updateFile($declGroupsFile, join(" ", sort(keys %groupsOut)));
127162
128163# Merge in the existing /etc/group.
129164foreach my $name (keys %groupsCur) {
@@ -140,8 +175,8 @@ foreach my $name (keys %groupsCur) {
140175# Rewrite /etc/group. FIXME: acquire lock.
141176my @lines = map { join(":", $_->{name}, $_->{password}, $_->{gid}, $_->{members}) . "\n" }
142177 (sort { $a->{gid} <=> $b->{gid} } values(%groupsOut));
143−write_file("/etc/group.tmp", { binmode => ':utf8' }, @lines);
144−rename("/etc/group.tmp", "/etc/group") or die;
178+updateFile($gidMapFile, encode_json($gidMap));
179+updateFile("/etc/group", \@lines);
145180system("nscd --invalidate group");
146181
147182# Generate a new /etc/passwd containing the declared users.
@@ -167,7 +202,7 @@ foreach my $u (@{$spec->{users}}) {
167202 $u->{uid} = $existing->{uid};
168203 }
169204 } else {
170− $u->{uid} = allocUid($u->{isSystemUser}) if !defined $u->{uid};
205+ $u->{uid} = allocUid($name, $u->{isSystemUser}) if !defined $u->{uid};
171206
172207 if (defined $u->{initialPassword}) {
173208 $u->{hashedPassword} = hashPassword($u->{initialPassword});
@@ -177,7 +212,7 @@ foreach my $u (@{$spec->{users}}) {
177212 }
178213
179214 # Create a home directory.
180− if ($u->{createHome} && ! -e $u->{home}) {
215+ if ($u->{createHome}) {
181216 make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home};
182217 chown $u->{uid}, $u->{gid}, $u->{home};
183218 }
@@ -195,10 +230,12 @@ foreach my $u (@{$spec->{users}}) {
195230
196231 $u->{fakePassword} = $existing->{fakePassword} // "x";
197232 $usersOut{$name} = $u;
233+
234+ $uidMap->{$name} = $u->{uid};
198235}
199236
200237# Update the persistent list of declarative users.
201−write_file($declUsersFile, { binmode => ':utf8' }, join(" ", sort(keys %usersOut)));
238+updateFile($declUsersFile, join(" ", sort(keys %usersOut)));
202239
203240# Merge in the existing /etc/passwd.
204241foreach my $name (keys %usersCur) {
@@ -214,8 +251,8 @@ foreach my $name (keys %usersCur) {
214251# Rewrite /etc/passwd. FIXME: acquire lock.
215252@lines = map { join(":", $_->{name}, $_->{fakePassword}, $_->{uid}, $_->{gid}, $_->{description}, $_->{home}, $_->{shell}) . "\n" }
216253 (sort { $a->{uid} <=> $b->{uid} } (values %usersOut));
217−write_file("/etc/passwd.tmp", { binmode => ':utf8' }, @lines);
218−rename("/etc/passwd.tmp", "/etc/passwd") or die;
254+updateFile($uidMapFile, encode_json($uidMap));
255+updateFile("/etc/passwd", \@lines);
219256system("nscd --invalidate passwd");
220257
221258
@@ -242,5 +279,4 @@ foreach my $u (values %usersOut) {
242279 push @shadowNew, join(":", $u->{name}, $hashedPassword, "1::::::") . "\n";
243280}
244281
245−write_file("/etc/shadow.tmp", { binmode => ':utf8', perms => 0600 }, @shadowNew);
246−rename("/etc/shadow.tmp", "/etc/shadow") or die;
282+updateFile("/etc/shadow", \@shadowNew, 0600);
nixos/modules/hardware/all-firmware.nix+1
@@ -26,6 +26,7 @@ with lib;
2626 firmwareLinuxNonfree
2727 intel2200BGFirmware
2828 rtl8723bs-firmware
29+ rtl8192su-firmware
2930 ];
3031 };
3132
nixos/modules/hardware/cpu/amd-microcode.nix+2−1
@@ -22,7 +22,8 @@ with lib;
2222 ###### implementation
2323
2424 config = mkIf config.hardware.cpu.amd.updateMicrocode {
25− boot.initrd.prepend = [ "${pkgs.microcodeAmd}/amd-ucode.img" ];
25+ # Microcode updates must be the first item prepended in the initrd
26+ boot.initrd.prepend = mkOrder 1 [ "${pkgs.microcodeAmd}/amd-ucode.img" ];
2627 };
2728
2829}
nixos/modules/hardware/cpu/intel-microcode.nix+2−1
@@ -22,7 +22,8 @@ with lib;
2222 ###### implementation
2323
2424 config = mkIf config.hardware.cpu.intel.updateMicrocode {
25− boot.initrd.prepend = [ "${pkgs.microcodeIntel}/intel-ucode.img" ];
25+ # Microcode updates must be the first item prepended in the initrd
26+ boot.initrd.prepend = mkOrder 1 [ "${pkgs.microcodeIntel}/intel-ucode.img" ];
2627 };
2728
2829}
nixos/modules/hardware/mcelog.nixnew file+37
@@ -0,0 +1,37 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ meta.maintainers = [ maintainers.grahamc ];
7+ options = {
8+
9+ hardware.mcelog = {
10+ enable = mkOption {
11+ type = types.bool;
12+ default = false;
13+ description = ''
14+ Enable the Machine Check Exception logger.
15+ '';
16+ };
17+ };
18+
19+ };
20+
21+ config = mkIf config.hardware.mcelog.enable {
22+ systemd.services.mcelog = {
23+ description = "Machine Check Exception Logging Daemon";
24+ wantedBy = [ "multi-user.target" ];
25+
26+ serviceConfig = {
27+ ExecStart = "${pkgs.mcelog}/bin/mcelog --daemon --foreground";
28+ SuccessExitStatus = [ 0 15 ];
29+
30+ ProtectHome = true;
31+ PrivateNetwork = true;
32+ PrivateTmp = true;
33+ };
34+ };
35+ };
36+
37+}
nixos/modules/hardware/sensor/iio.nixnew file+30
@@ -0,0 +1,30 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ ###### interface
7+
8+ options = {
9+ hardware.sensor.iio = {
10+ enable = mkOption {
11+ description = "Enable this option to support IIO sensors.";
12+ type = types.bool;
13+ default = false;
14+ };
15+ };
16+ };
17+
18+ ###### implementation
19+
20+ config = mkIf config.hardware.sensor.iio.enable {
21+
22+ boot.initrd.availableKernelModules = [ "hid-sensor-hub" ];
23+
24+ environment.systemPackages = with pkgs; [ iio-sensor-proxy ];
25+
26+ services.dbus.packages = with pkgs; [ iio-sensor-proxy ];
27+ services.udev.packages = with pkgs; [ iio-sensor-proxy ];
28+ systemd.packages = with pkgs; [ iio-sensor-proxy ];
29+ };
30+}
nixos/modules/hardware/usb-wwan.nixnew file+26
@@ -0,0 +1,26 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ ###### interface
7+
8+ options = {
9+
10+ hardware.usbWwan = {
11+ enable = mkOption {
12+ type = types.bool;
13+ default = false;
14+ description = ''
15+ Enable this option to support USB WWAN adapters.
16+ '';
17+ };
18+ };
19+ };
20+
21+ ###### implementation
22+
23+ config = mkIf config.hardware.usbWwan.enable {
24+ services.udev.packages = with pkgs; [ usb-modeswitch-data ];
25+ };
26+}
nixos/modules/hardware/video/bumblebee.nix+2−2
@@ -13,7 +13,7 @@ let
1313 useDisplayDevice = cfg.connectDisplay;
1414 };
1515
16− useBbswitch = cfg.pmMethod == "bbswitch";
16+ useBbswitch = cfg.pmMethod == "bbswitch" || cfg.pmMethod == "auto" && useNvidia;
1717
1818 primus = pkgs.primus.override {
1919 inherit useNvidia;
@@ -65,7 +65,7 @@ in
6565
6666 pmMethod = mkOption {
6767 default = "auto";
68− type = types.enum [ "auto" "bbswitch" "nouveau" "switcheroo" "none" ];
68+ type = types.enum [ "auto" "bbswitch" "switcheroo" "none" ];
6969 description = ''
7070 Set preferred power management method for unused card.
7171 '';
nixos/modules/hardware/video/capture/mwprocapture.nixnew file+61
@@ -0,0 +1,61 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.hardware.mwProCapture;
8+
9+ kernelPackages = config.boot.kernelPackages;
10+
11+in
12+
13+{
14+
15+ options.hardware.mwProCapture.enable = mkEnableOption "Magewell Pro Capture family kernel module";
16+
17+ config = mkIf cfg.enable {
18+
19+ assertions = singleton {
20+ assertion = versionAtLeast kernelPackages.kernel.version "3.2";
21+ message = "Magewell Pro Capture family module is not supported for kernels older than 3.2";
22+ };
23+
24+ boot.kernelModules = [ "ProCapture" ];
25+
26+ environment.systemPackages = [ kernelPackages.mwprocapture ];
27+
28+ boot.extraModulePackages = [ kernelPackages.mwprocapture ];
29+
30+ boot.extraModprobeConfig = ''
31+ # Set the png picture to be displayed when no input signal is detected.
32+ options ProCapture nosignal_file=${kernelPackages.mwprocapture}/res/NoSignal.png
33+
34+ # Set the png picture to be displayed when an unsupported input signal is detected.
35+ options ProCapture unsupported_file=${kernelPackages.mwprocapture}/res/Unsupported.png
36+
37+ # Set the png picture to be displayed when an loking input signal is detected.
38+ options ProCapture locking_file=${kernelPackages.mwprocapture}/res/Locking.png
39+
40+ # Message signaled interrupts switch
41+ #options ProCapture disable_msi=0
42+
43+ # Set the debug level
44+ #options ProCapture debug_level=0
45+
46+ # Force init switch eeprom
47+ #options ProCapture init_switch_eeprom=0
48+
49+ # Min frame interval for VIDIOC_ENUM_FRAMEINTERVALS (default: 166666(100ns))
50+ #options ProCapture enum_frameinterval_min=166666
51+
52+ # VIDIOC_ENUM_FRAMESIZES type (1: DISCRETE; 2: STEPWISE; otherwise: CONTINUOUS )
53+ #options ProCapture enum_framesizes_type=0
54+
55+ # Parameters for internal usage
56+ #options ProCapture internal_params=""
57+ '';
58+
59+ };
60+
61+}
nixos/modules/hardware/video/nvidia.nix+4
@@ -49,6 +49,10 @@ in
4949 Option "RandRRotation" "on"
5050 '';
5151
52+ environment.etc."nvidia/nvidia-application-profiles-rc" = mkIf nvidia_x11.useProfiles {
53+ source = "${nvidia_x11.bin}/share/nvidia/nvidia-application-profiles-rc";
54+ };
55+
5256 hardware.opengl.package = nvidiaPackage nvidia_x11 pkgs;
5357 hardware.opengl.package32 = nvidiaPackage nvidia_libs32 pkgs_i686;
5458
nixos/modules/i18n/input-method/ibus.nix+1−1
@@ -44,7 +44,7 @@ in
4444 panel = mkOption {
4545 type = with types; nullOr path;
4646 default = null;
47− example = literalExample "''${pkgs.kde5.plasma-desktop}/lib/libexec/kimpanel-ibus-panel";
47+ example = literalExample "''${pkgs.plasma5.plasma-desktop}/lib/libexec/kimpanel-ibus-panel";
4848 description = "Replace the IBus panel with another panel.";
4949 };
5050 };
nixos/modules/installer/cd-dvd/channel.nix+11−2
@@ -6,6 +6,16 @@
66with lib;
77
88let
9+ # Do not include these things:
10+ # - The '.git' directory
11+ # - Result symlinks from nix-build ('result', 'result-2', 'result-bin', ...)
12+ # - VIM/Emacs swap/backup files ('.swp', '.swo', '.foo.swp', 'foo~', ...)
13+ filterFn = path: type: let basename = baseNameOf (toString path); in
14+ if type == "directory" then basename != ".git"
15+ else if type == "symlink" then builtins.match "^result(|-.*)$" basename == null
16+ else builtins.match "^((|\..*)\.sw[a-z]|.*~)$" basename == null;
17+
18+ nixpkgs = builtins.filterSource filterFn pkgs.path;
919
1020 # We need a copy of the Nix expressions for Nixpkgs and NixOS on the
1121 # CD. These are installed into the "nixos" channel of the root
@@ -15,12 +25,11 @@ let
1525 { }
1626 ''
1727 mkdir -p $out
18− cp -prd ${pkgs.path} $out/nixos
28+ cp -prd ${nixpkgs} $out/nixos
1929 chmod -R u+w $out/nixos
2030 if [ ! -e $out/nixos/nixpkgs ]; then
2131 ln -s . $out/nixos/nixpkgs
2232 fi
23− rm -rf $out/nixos/.git
2433 echo -n ${config.system.nixosVersionSuffix} > $out/nixos/.version-suffix
2534 '';
2635
nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix+2−2
@@ -18,7 +18,7 @@ with lib;
1818 autoLogin = true;
1919 };
2020
21− desktopManager.kde5 = {
21+ desktopManager.plasma5 = {
2222 enable = true;
2323 enableQt4Support = false;
2424 };
@@ -66,7 +66,7 @@ with lib;
6666 in ''
6767 mkdir -p /root/Desktop
6868 ln -sfT ${desktopFile} /root/Desktop/nixos-manual.desktop
69− ln -sfT ${pkgs.kde5.konsole}/share/applications/org.kde.konsole.desktop /root/Desktop/org.kde.konsole.desktop
69+ ln -sfT ${pkgs.konsole}/share/applications/org.kde.konsole.desktop /root/Desktop/org.kde.konsole.desktop
7070 ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop /root/Desktop/gparted.desktop
7171 '';
7272
nixos/modules/installer/cd-dvd/iso-image.nix+1−2
@@ -172,7 +172,6 @@ in
172172
173173 isoImage.includeSystemBuildDependencies = mkOption {
174174 default = false;
175− example = true;
176175 description = ''
177176 Set this option to include all the needed sources etc in the
178177 image. It significantly increases image size. Use that when
@@ -280,7 +279,7 @@ in
280279 options = [ "allow_other" "cow" "nonempty" "chroot=/mnt-root" "max_files=32768" "hide_meta_files" "dirs=/nix/.rw-store=rw:/nix/.ro-store=ro" ];
281280 };
282281
283− boot.initrd.availableKernelModules = [ "squashfs" "iso9660" "usb-storage" ];
282+ boot.initrd.availableKernelModules = [ "squashfs" "iso9660" "usb-storage" "uas" ];
284283
285284 boot.blacklistedKernelModules = [ "nouveau" ];
286285
nixos/modules/installer/cd-dvd/sd-image-aarch64.nix+1−3
@@ -52,9 +52,7 @@ in
5252 enable_uart=1
5353 '';
5454 in ''
55− for f in bootcode.bin fixup.dat start.elf; do
56− cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/$f boot/
57− done
55+ (cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)
5856 cp ${patchedUboot}/u-boot.bin boot/u-boot-rpi3.bin
5957 cp ${configTxt} boot/config.txt
6058 ${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./boot
nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix+2−4
@@ -28,7 +28,7 @@ in
2828 boot.loader.generic-extlinux-compatible.enable = true;
2929
3030 boot.kernelPackages = pkgs.linuxPackages_latest;
31− boot.kernelParams = ["console=ttyS0,115200n8" "console=ttymxc0,115200n8" "console=ttyAMA0,115200n8" "console=ttyO0,115200n8" "console=tty0"];
31+ boot.kernelParams = ["console=ttyS0,115200n8" "console=ttymxc0,115200n8" "console=ttyAMA0,115200n8" "console=ttyO0,115200n8" "console=ttySAC2,115200n8" "console=tty0"];
3232
3333 # FIXME: this probably should be in installation-device.nix
3434 users.extraUsers.root.initialHashedPassword = "";
@@ -44,9 +44,7 @@ in
4444 enable_uart=1
4545 '';
4646 in ''
47− for f in bootcode.bin fixup.dat start.elf; do
48− cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/$f boot/
49− done
47+ (cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)
5048 cp ${pkgs.ubootRaspberryPi2}/u-boot.bin boot/u-boot-rpi2.bin
5149 cp ${pkgs.ubootRaspberryPi3_32bit}/u-boot.bin boot/u-boot-rpi3.bin
5250 cp ${configTxt} boot/config.txt
nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix+1−3
@@ -34,9 +34,7 @@ in
3434
3535 sdImage = {
3636 populateBootCommands = ''
37− for f in bootcode.bin fixup.dat start.elf; do
38− cp ${pkgs.raspberrypifw}/share/raspberrypi/boot/$f boot/
39− done
37+ (cd ${pkgs.raspberrypifw}/share/raspberrypi/boot && cp bootcode.bin fixup*.dat start*.elf $NIX_BUILD_TOP/boot/)
4038 cp ${pkgs.ubootRaspberryPi}/u-boot.bin boot/u-boot-rpi.bin
4139 echo 'kernel u-boot-rpi.bin' > boot/config.txt
4240 ${extlinux-conf-builder} -t 3 -c ${config.system.build.toplevel} -d ./boot
nixos/modules/installer/scan/detected.nix+1−1
@@ -1,4 +1,4 @@
1−# List all devices which are detected by nixos-hardware-scan.
1+# List all devices which are detected by nixos-generate-config.
22# Common devices are enabled by default.
33{ config, lib, pkgs, ... }:
44
nixos/modules/installer/scan/not-detected.nix+1−1
@@ -1,4 +1,4 @@
1−# List all devices which are _not_ detected by nixos-hardware-scan.
1+# List all devices which are _not_ detected by nixos-generate-config.
22# Common devices are enabled by default.
33{ config, lib, pkgs, ... }:
44
nixos/modules/installer/tools/auto-upgrade.nix+1−1
@@ -48,7 +48,7 @@ let cfg = config.system.autoUpgrade; in
4848 description = ''
4949 Specification (in the format described by
5050 <citerefentry><refentrytitle>systemd.time</refentrytitle>
51− <manvolnum>5</manvolnum></citerefentry>) of the time at
51+ <manvolnum>7</manvolnum></citerefentry>) of the time at
5252 which the update will occur.
5353 '';
5454 };
nixos/modules/installer/tools/nix-fallback-paths.nix+3−3
@@ -1,5 +1,5 @@
11{
2− x86_64-linux = "/nix/store/qdkzm17csr24snk247a1s0c47ikq5sl6-nix-1.11.6";
3− i686-linux = "/nix/store/hiwp53747lxlniqy5wpbql5izjrs8z0z-nix-1.11.6";
4− x86_64-darwin = "/nix/store/hca2hqcvwncf23hiqyqgwbsdy8vvl9xv-nix-1.11.6";
2+ x86_64-linux = "/nix/store/j6q3pb75q1sbk0xsa5x6a629ph98ycdl-nix-1.11.8";
3+ i686-linux = "/nix/store/4m6ps568l988bbr1p2k3w9raq3rblppi-nix-1.11.8";
4+ x86_64-darwin = "/nix/store/cc5q944yn3j2hrs8k0kxx9r2mk9mni8a-nix-1.11.8";
55}
nixos/modules/installer/tools/nixos-generate-config.pl+1−2
@@ -347,7 +347,6 @@ foreach my $fs (read_file("/proc/self/mountinfo")) {
347347
348348 # Skip special filesystems.
349349 next if in($mountPoint, "/proc") || in($mountPoint, "/dev") || in($mountPoint, "/sys") || in($mountPoint, "/run") || $mountPoint eq "/var/lib/nfs/rpc_pipefs";
350− next if $mountPoint eq "/var/setuid-wrappers";
351350
352351 # Skip the optional fields.
353352 my $n = 6; $n++ while $fields[$n] ne "-"; $n++;
@@ -608,7 +607,7 @@ $bootLoaderConfig
608607
609608 # Enable the KDE Desktop Environment.
610609 # services.xserver.displayManager.sddm.enable = true;
611− # services.xserver.desktopManager.kde5.enable = true;
610+ # services.xserver.desktopManager.plasma5.enable = true;
612611
613612 # Define a user account. Don't forget to set a password with ‘passwd’.
614613 # users.extraUsers.guest = {
nixos/modules/installer/tools/nixos-install.sh+2−2
@@ -259,9 +259,9 @@ chroot $mountPoint /nix/var/nix/profiles/system/activate
259259
260260
261261# Ask the user to set a root password.
262−if [ -z "$noRootPasswd" ] && chroot $mountPoint [ -x /var/setuid-wrappers/passwd ] && [ -t 0 ]; then
262+if [ -z "$noRootPasswd" ] && chroot $mountPoint [ -x /run/wrappers/bin/passwd ] && [ -t 0 ]; then
263263 echo "setting root password..."
264− chroot $mountPoint /var/setuid-wrappers/passwd
264+ chroot $mountPoint /run/wrappers/bin/passwd
265265fi
266266
267267
nixos/modules/installer/tools/nixos-rebuild.sh+20−20
@@ -15,6 +15,7 @@ origArgs=("$@")
1515extraBuildFlags=()
1616action=
1717buildNix=1
18+fast=
1819rollback=
1920upgrade=
2021repair=
@@ -52,13 +53,13 @@ while [ "$#" -gt 0 ]; do
5253 repair=1
5354 extraBuildFlags+=("$i")
5455 ;;
55− --show-trace|--no-build-hook|--keep-failed|-K|--keep-going|-k|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|--repair|--no-build-output|-Q)
56− extraBuildFlags+=("$i")
57− ;;
5856 --max-jobs|-j|--cores|-I)
5957 j="$1"; shift 1
6058 extraBuildFlags+=("$i" "$j")
6159 ;;
60+ --show-trace|--no-build-hook|--keep-failed|-K|--keep-going|-k|--verbose|-v|-vv|-vvv|-vvvv|-vvvvv|--fallback|--repair|--no-build-output|-Q|-j*)
61+ extraBuildFlags+=("$i")
62+ ;;
6263 --option)
6364 j="$1"; shift 1
6465 k="$1"; shift 1
@@ -66,6 +67,7 @@ while [ "$#" -gt 0 ]; do
6667 ;;
6768 --fast)
6869 buildNix=
70+ fast=1
6971 extraBuildFlags+=(--show-trace)
7072 ;;
7173 --profile-name|-p)
@@ -217,7 +219,7 @@ if [ -z "$_NIXOS_REBUILD_REEXEC" ]; then
217219fi
218220
219221# Re-execute nixos-rebuild from the Nixpkgs tree.
220−if [ -z "$_NIXOS_REBUILD_REEXEC" -a -n "$canRun" ]; then
222+if [ -z "$_NIXOS_REBUILD_REEXEC" -a -n "$canRun" -a -z "$fast" ]; then
221223 if p=$(nix-build --no-out-link --expr 'with import <nixpkgs/nixos> {}; config.system.build.nixos-rebuild' "${extraBuildFlags[@]}"); then
222224 export _NIXOS_REBUILD_REEXEC=1
223225 exec $p/bin/nixos-rebuild "${origArgs[@]}"
@@ -276,24 +278,22 @@ if [ -n "$buildNix" ]; then
276278 echo "building Nix..." >&2
277279 nixDrv=
278280 if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package.out "${extraBuildFlags[@]}")"; then
279− if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A nixFallback "${extraBuildFlags[@]}")"; then
280− if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
281− nixStorePath="$(prebuiltNix "$(uname -m)")"
282− if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
283− --option extra-binary-caches https://cache.nixos.org/; then
281+ if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
282+ nixStorePath="$(prebuiltNix "$(uname -m)")"
283+ if ! nix-store -r $nixStorePath --add-root $tmpDir/nix --indirect \
284+ --option extra-binary-caches https://cache.nixos.org/; then
285+ echo "warning: don't know how to get latest Nix" >&2
286+ fi
287+ # Older version of nix-store -r don't support --add-root.
288+ [ -e $tmpDir/nix ] || ln -sf $nixStorePath $tmpDir/nix
289+ if [ -n "$buildHost" ]; then
290+ remoteNixStorePath="$(prebuiltNix "$(buildHostCmd uname -m)")"
291+ remoteNix="$remoteNixStorePath/bin"
292+ if ! buildHostCmd nix-store -r $remoteNixStorePath \
293+ --option extra-binary-caches https://cache.nixos.org/ >/dev/null; then
294+ remoteNix=
284295 echo "warning: don't know how to get latest Nix" >&2
285296 fi
286− # Older version of nix-store -r don't support --add-root.
287− [ -e $tmpDir/nix ] || ln -sf $nixStorePath $tmpDir/nix
288− if [ -n "$buildHost" ]; then
289− remoteNixStorePath="$(prebuiltNix "$(buildHostCmd uname -m)")"
290− remoteNix="$remoteNixStorePath/bin"
291− if ! buildHostCmd nix-store -r $remoteNixStorePath \
292− --option extra-binary-caches https://cache.nixos.org/ >/dev/null; then
293− remoteNix=
294− echo "warning: don't know how to get latest Nix" >&2
295− fi
296− fi
297297 fi
298298 fi
299299 fi
nixos/modules/misc/ids.nix+6−2
@@ -64,7 +64,7 @@
6464 cups = 36;
6565 foldingathome = 37;
6666 sabnzbd = 38;
67− kdm = 39;
67+ #kdm = 39; # dropped in 17.03
6868 ghostone = 40;
6969 git = 41;
7070 fourstore = 42;
@@ -287,6 +287,8 @@
287287 pdns-recursor = 269;
288288 kresd = 270;
289289 rpc = 271;
290+ geoip = 272;
291+ fcron = 273;
290292
291293 # When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
292294
@@ -333,7 +335,7 @@
333335 #cups = 36; # unused
334336 #foldingathome = 37; # unused
335337 #sabnzd = 38; # unused
336− #kdm = 39; # unused
338+ #kdm = 39; # unused, even before 17.03
337339 ghostone = 40;
338340 git = 41;
339341 fourstore = 42;
@@ -543,6 +545,8 @@
543545 gogs = 268;
544546 kresd = 270;
545547 #rpc = 271; # unused
548+ #geoip = 272; # unused
549+ fcron = 273;
546550
547551 # When adding a gid, make sure it doesn't match an existing
548552 # uid. Users and groups with the same name should have equal
nixos/modules/misc/locate.nix+10−9
@@ -103,15 +103,16 @@ in {
103103 config = mkIf cfg.enable {
104104 users.extraGroups = mkIf isMLocate { mlocate = {}; };
105105
106− security.setuidOwners = mkIf isMLocate
107− [ { group = "mlocate";
108− owner = "root";
109− permissions = "u+rx,g+x,o+x";
110− setgid = true;
111− setuid = false;
112− program = "locate";
113− }
114− ];
106+ security.wrappers = mkIf isMLocate {
107+ locate = {
108+ group = "mlocate";
109+ owner = "root";
110+ permissions = "u+rx,g+x,o+x";
111+ setgid = true;
112+ setuid = false;
113+ source = "${cfg.locate}/bin/locate";
114+ };
115+ };
115116
116117 nixpkgs.config = { locate.dbfile = cfg.output; };
117118
nixos/modules/misc/version.nix+5−2
@@ -95,7 +95,7 @@ in
9595 nixosVersionSuffix = mkIf (pathIsDirectory gitRepo) (mkDefault (".git." + gitCommitId));
9696
9797 # Note: code names must only increase in alphabetical order.
98− nixosCodeName = "Gorilla";
98+ nixosCodeName = "Hummingbird";
9999 };
100100
101101 # Generate /etc/os-release. See
@@ -106,9 +106,12 @@ in
106106 NAME=NixOS
107107 ID=nixos
108108 VERSION="${config.system.nixosVersion} (${config.system.nixosCodeName})"
109+ VERSION_CODENAME=${toLower config.system.nixosCodeName}
109110 VERSION_ID="${config.system.nixosVersion}"
110111 PRETTY_NAME="NixOS ${config.system.nixosVersion} (${config.system.nixosCodeName})"
111− HOME_URL="http://nixos.org/"
112+ HOME_URL="https://nixos.org/"
113+ SUPPORT_URL="https://nixos.org/nixos/support.html"
114+ BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
112115 '';
113116
114117 };
nixos/modules/module-list.nix+21−5
@@ -1,8 +1,9 @@
11[
22 ./config/debug-info.nix
33 ./config/fonts/corefonts.nix
4− ./config/fonts/fontconfig-ultimate.nix
54 ./config/fonts/fontconfig.nix
5+ ./config/fonts/fontconfig-penultimate.nix
6+ ./config/fonts/fontconfig-ultimate.nix
67 ./config/fonts/fontdir.nix
78 ./config/fonts/fonts.nix
89 ./config/fonts/ghostscript.nix
@@ -29,7 +30,9 @@
2930 ./hardware/ckb.nix
3031 ./hardware/cpu/amd-microcode.nix
3132 ./hardware/cpu/intel-microcode.nix
33+ ./hardware/sensor/iio.nix
3234 ./hardware/ksm.nix
35+ ./hardware/mcelog.nix
3336 ./hardware/network/b43.nix
3437 ./hardware/network/intel-2100bg.nix
3538 ./hardware/network/intel-2200bg.nix
@@ -38,9 +41,11 @@
3841 ./hardware/network/rtl8192c.nix
3942 ./hardware/opengl.nix
4043 ./hardware/pcmcia.nix
44+ ./hardware/usb-wwan.nix
4145 ./hardware/video/amdgpu.nix
4246 ./hardware/video/amdgpu-pro.nix
4347 ./hardware/video/ati.nix
48+ ./hardware/video/capture/mwprocapture.nix
4449 ./hardware/video/bumblebee.nix
4550 ./hardware/video/displaylink.nix
4651 ./hardware/video/nvidia.nix
@@ -80,6 +85,7 @@
8085 ./programs/light.nix
8186 ./programs/man.nix
8287 ./programs/mosh.nix
88+ ./programs/mtr.nix
8389 ./programs/nano.nix
8490 ./programs/oblogout.nix
8591 ./programs/screen.nix
@@ -91,6 +97,7 @@
9197 ./programs/tmux.nix
9298 ./programs/venus.nix
9399 ./programs/vim.nix
100+ ./programs/wireshark.nix
94101 ./programs/wvdial.nix
95102 ./programs/xfs_quota.nix
96103 ./programs/xonsh.nix
@@ -102,6 +109,7 @@
102109 ./security/audit.nix
103110 ./security/ca.nix
104111 ./security/chromium-suid-sandbox.nix
112+ ./security/dhparams.nix
105113 ./security/duosec.nix
106114 ./security/grsecurity.nix
107115 ./security/hidepid.nix
@@ -113,7 +121,7 @@
113121 ./security/prey.nix
114122 ./security/rngd.nix
115123 ./security/rtkit.nix
116− ./security/setuid-wrappers.nix
124+ ./security/wrappers/default.nix
117125 ./security/sudo.nix
118126 ./services/amqp/activemq/default.nix
119127 ./services/amqp/rabbitmq.nix
@@ -130,7 +138,6 @@
130138 ./services/backup/mysql-backup.nix
131139 ./services/backup/postgresql-backup.nix
132140 ./services/backup/rsnapshot.nix
133− ./services/backup/sitecopy-backup.nix
134141 ./services/backup/tarsnap.nix
135142 ./services/backup/znapzend.nix
136143 ./services/cluster/fleet.nix
@@ -259,12 +266,15 @@
259266 ./services/misc/felix.nix
260267 ./services/misc/folding-at-home.nix
261268 ./services/misc/gammu-smsd.nix
269+ ./services/misc/geoip-updater.nix
262270 #./services/misc/gitit.nix
263271 ./services/misc/gitlab.nix
264272 ./services/misc/gitolite.nix
265273 ./services/misc/gogs.nix
266274 ./services/misc/gpsd.nix
267275 #./services/misc/ihaskell.nix
276+ ./services/misc/irkerd.nix
277+ ./services/misc/jackett.nix
268278 ./services/misc/leaps.nix
269279 ./services/misc/mantisbt.nix
270280 ./services/misc/mathics.nix
@@ -285,6 +295,7 @@
285295 ./services/misc/parsoid.nix
286296 ./services/misc/phd.nix
287297 ./services/misc/plex.nix
298+ ./services/misc/radarr.nix
288299 ./services/misc/redmine.nix
289300 ./services/misc/rippled.nix
290301 ./services/misc/ripple-rest.nix
@@ -293,6 +304,7 @@
293304 ./services/misc/siproxd.nix
294305 ./services/misc/sonarr.nix
295306 ./services/misc/spice-vdagentd.nix
307+ ./services/misc/ssm-agent.nix
296308 ./services/misc/sssd.nix
297309 ./services/misc/subsonic.nix
298310 ./services/misc/sundtek.nix
@@ -320,10 +332,12 @@
320332 ./services/monitoring/prometheus/default.nix
321333 ./services/monitoring/prometheus/alertmanager.nix
322334 ./services/monitoring/prometheus/blackbox-exporter.nix
335+ ./services/monitoring/prometheus/fritzbox-exporter.nix
323336 ./services/monitoring/prometheus/json-exporter.nix
324337 ./services/monitoring/prometheus/nginx-exporter.nix
325338 ./services/monitoring/prometheus/node-exporter.nix
326339 ./services/monitoring/prometheus/snmp-exporter.nix
340+ ./services/monitoring/prometheus/unifi-exporter.nix
327341 ./services/monitoring/prometheus/varnish-exporter.nix
328342 ./services/monitoring/riemann.nix
329343 ./services/monitoring/riemann-dash.nix
@@ -420,6 +434,7 @@
420434 ./services/networking/namecoind.nix
421435 ./services/networking/nat.nix
422436 ./services/networking/networkmanager.nix
437+ ./services/networking/nftables.nix
423438 ./services/networking/ngircd.nix
424439 ./services/networking/nix-serve.nix
425440 ./services/networking/nntp-proxy.nix
@@ -440,7 +455,7 @@
440455 ./services/networking/prayer.nix
441456 ./services/networking/privoxy.nix
442457 ./services/networking/prosody.nix
443− ./services/networking/quagga.nix
458+ # ./services/networking/quagga.nix
444459 ./services/networking/quassel.nix
445460 ./services/networking/racoon.nix
446461 ./services/networking/radicale.nix
@@ -514,6 +529,7 @@
514529 ./services/system/cgmanager.nix
515530 ./services/system/cloud-init.nix
516531 ./services/system/dbus.nix
532+ ./services/system/earlyoom.nix
517533 ./services/system/kerberos.nix
518534 ./services/system/nscd.nix
519535 ./services/system/uptimed.nix
@@ -559,10 +575,10 @@
559575 ./services/x11/display-managers/auto.nix
560576 ./services/x11/display-managers/default.nix
561577 ./services/x11/display-managers/gdm.nix
562− ./services/x11/display-managers/kdm.nix
563578 ./services/x11/display-managers/lightdm.nix
564579 ./services/x11/display-managers/sddm.nix
565580 ./services/x11/display-managers/slim.nix
581+ ./services/x11/display-managers/xpra.nix
566582 ./services/x11/hardware/libinput.nix
567583 ./services/x11/hardware/multitouch.nix
568584 ./services/x11/hardware/synaptics.nix
nixos/modules/profiles/graphical.nix+3−3
@@ -1,5 +1,5 @@
1−# This module defines a NixOS configuration that contains X11 and
2−# KDE 4. It's used by the graphical installation CD.
1+# This module defines a NixOS configuration with the Plasma 5 desktop.
2+# It's used by the graphical installation CD.
33
44{ config, pkgs, ... }:
55
@@ -7,7 +7,7 @@
77 services.xserver = {
88 enable = true;
99 displayManager.sddm.enable = true;
10− desktopManager.kde5.enable = true;
10+ desktopManager.plasma5.enable = true;
1111 synaptics.enable = true; # for touchpad support on many laptops
1212 };
1313
nixos/modules/programs/adb.nix−1
@@ -10,7 +10,6 @@ with lib;
1010 programs.adb = {
1111 enable = mkOption {
1212 default = false;
13− example = true;
1413 type = types.bool;
1514 description = ''
1615 Whether to configure system to use Android Debug Bridge (adb).
nixos/modules/programs/gphoto2.nix−1
@@ -10,7 +10,6 @@ with lib;
1010 programs.gphoto2 = {
1111 enable = mkOption {
1212 default = false;
13− example = true;
1413 type = types.bool;
1514 description = ''
1615 Whether to configure system to use gphoto2.
nixos/modules/programs/kbdlight.nix+1−1
@@ -11,6 +11,6 @@ in
1111
1212 config = mkIf cfg.enable {
1313 environment.systemPackages = [ pkgs.kbdlight ];
14− security.setuidPrograms = [ "kbdlight" ];
14+ security.wrappers.kbdlight.source = "${pkgs.kbdlight.out}/bin/kbdlight";
1515 };
1616}
nixos/modules/programs/light.nix+1−1
@@ -21,6 +21,6 @@ in
2121
2222 config = mkIf cfg.enable {
2323 environment.systemPackages = [ pkgs.light ];
24− security.setuidPrograms = [ "light" ];
24+ security.wrappers.light.source = "${pkgs.light.out}/bin/light";
2525 };
2626}
nixos/modules/programs/mosh.nix−1
@@ -14,7 +14,6 @@ in
1414 Whether to enable mosh. Note, this will open ports in your firewall!
1515 '';
1616 default = false;
17− example = true;
1817 type = lib.types.bool;
1918 };
2019 };
nixos/modules/programs/mtr.nixnew file+27
@@ -0,0 +1,27 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.programs.mtr;
7+in {
8+ options = {
9+ programs.mtr = {
10+ enable = mkOption {
11+ type = types.bool;
12+ default = false;
13+ description = ''
14+ Whether to add mtr to the global environment and configure a
15+ setcap wrapper for it.
16+ '';
17+ };
18+ };
19+ };
20+
21+ config = mkIf cfg.enable {
22+ security.wrappers.mtr = {
23+ source = "${pkgs.mtr}/bin/mtr";
24+ capabilities = "cap_net_raw+p";
25+ };
26+ };
27+}
nixos/modules/programs/shadow.nix+10−6
@@ -101,11 +101,15 @@ in
101101 chpasswd = { rootOK = true; };
102102 };
103103
104− security.setuidPrograms = [ "su" "chfn" ]
105− ++ [ "newuidmap" "newgidmap" ] # new in shadow 4.2.x
106− ++ lib.optionals config.users.mutableUsers
107− [ "passwd" "sg" "newgrp" ];
108−
104+ security.wrappers = {
105+ su.source = "${pkgs.shadow.su}/bin/su";
106+ chfn.source = "${pkgs.shadow.out}/bin/chfn";
107+ newuidmap.source = "${pkgs.shadow.out}/bin/newuidmap";
108+ newgidmap.source = "${pkgs.shadow.out}/bin/newgidmap";
109+ } // (if config.users.mutableUsers then {
110+ passwd.source = "${pkgs.shadow.out}/bin/passwd";
111+ sg.source = "${pkgs.shadow.out}/bin/sg";
112+ newgrp.source = "${pkgs.shadow.out}/bin/newgrp";
113+ } else {});
109114 };
110−
111115}
nixos/modules/programs/ssmtp.nix−3
@@ -22,7 +22,6 @@ in
2222 directDelivery = mkOption {
2323 type = types.bool;
2424 default = false;
25− example = true;
2625 description = ''
2726 Use the trivial Mail Transfer Agent (MTA)
2827 <command>ssmtp</command> package to allow programs to send
@@ -65,7 +64,6 @@ in
6564 useTLS = mkOption {
6665 type = types.bool;
6766 default = false;
68− example = true;
6967 description = ''
7068 Whether TLS should be used to connect to the default mail
7169 server.
@@ -75,7 +73,6 @@ in
7573 useSTARTTLS = mkOption {
7674 type = types.bool;
7775 default = false;
78− example = true;
7976 description = ''
8077 Whether the STARTTLS should be used to connect to the default
8178 mail server. (This is needed for TLS-capable mail servers
nixos/modules/programs/tmux.nix−5
@@ -65,7 +65,6 @@ in {
6565
6666 aggressiveResize = mkOption {
6767 default = false;
68− example = true;
6968 type = types.bool;
7069 description = ''
7170 Resize the window to the size of the smallest session for which it is the current window.
@@ -81,14 +80,12 @@ in {
8180
8281 clock24 = mkOption {
8382 default = false;
84− example = true;
8583 type = types.bool;
8684 description = "Use 24 hour clock.";
8785 };
8886
8987 customPaneNavigationAndResize = mkOption {
9088 default = false;
91− example = true;
9289 type = types.bool;
9390 description = "Override the hjkl and HJKL bindings for pane navigation and resizing in VI mode.";
9491 };
@@ -124,14 +121,12 @@ in {
124121
125122 newSession = mkOption {
126123 default = false;
127− example = true;
128124 type = types.bool;
129125 description = "Automatically spawn a session if trying to attach and none are running.";
130126 };
131127
132128 reverseSplit = mkOption {
133129 default = false;
134− example = true;
135130 type = types.bool;
136131 description = "Reverse the window split shortcuts.";
137132 };
nixos/modules/programs/venus.nix+1−1
@@ -45,7 +45,7 @@ in
4545 description = ''
4646 Specification (in the format described by
4747 <citerefentry><refentrytitle>systemd.time</refentrytitle>
48− <manvolnum>5</manvolnum></citerefentry>) of the time at
48+ <manvolnum>7</manvolnum></citerefentry>) of the time at
4949 which the Venus will collect feeds.
5050 '';
5151 };
nixos/modules/programs/vim.nix−1
@@ -9,7 +9,6 @@ in {
99 defaultEditor = mkOption {
1010 type = types.bool;
1111 default = false;
12− example = true;
1312 description = ''
1413 When enabled, installs vim and configures vim to be the default editor
1514 using the EDITOR environment variable.
nixos/modules/programs/wireshark.nixnew file+42
@@ -0,0 +1,42 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.programs.wireshark;
7+ wireshark = cfg.package;
8+in {
9+ options = {
10+ programs.wireshark = {
11+ enable = mkOption {
12+ type = types.bool;
13+ default = false;
14+ description = ''
15+ Whether to add Wireshark to the global environment and configure a
16+ setcap wrapper for 'dumpcap' for users in the 'wireshark' group.
17+ '';
18+ };
19+ package = mkOption {
20+ type = types.package;
21+ default = pkgs.wireshark-cli;
22+ defaultText = "pkgs.wireshark-cli";
23+ description = ''
24+ Which Wireshark package to install in the global environment.
25+ '';
26+ };
27+ };
28+ };
29+
30+ config = mkIf cfg.enable {
31+ environment.systemPackages = [ wireshark ];
32+ users.extraGroups.wireshark = {};
33+
34+ security.wrappers.dumpcap = {
35+ source = "${wireshark}/bin/dumpcap";
36+ capabilities = "cap_net_raw+p";
37+ owner = "root";
38+ group = "wireshark";
39+ permissions = "u+rx,g+x";
40+ };
41+ };
42+}
nixos/modules/rename.nix+21−7
@@ -10,7 +10,6 @@ with lib;
1010 (mkRenamedOptionModule [ "fonts" "enableFontConfig" ] [ "fonts" "fontconfig" "enable" ])
1111 (mkRenamedOptionModule [ "fonts" "extraFonts" ] [ "fonts" "fonts" ])
1212
13− (mkRenamedOptionModule [ "security" "extraSetuidPrograms" ] [ "security" "setuidPrograms" ])
1413 (mkRenamedOptionModule [ "networking" "enableWLAN" ] [ "networking" "wireless" "enable" ])
1514 (mkRenamedOptionModule [ "networking" "enableRT73Firmware" ] [ "networking" "enableRalinkFirmware" ])
1615
@@ -33,6 +32,12 @@ with lib;
3332
3433 (mkRenamedOptionModule [ "services" "clamav" "updater" "config" ] [ "services" "clamav" "updater" "extraConfig" ])
3534
35+ (mkRemovedOptionModule [ "security" "setuidOwners" ] "Use security.wrappers instead")
36+ (mkRemovedOptionModule [ "security" "setuidPrograms" ] "Use security.wrappers instead")
37+
38+ (mkRemovedOptionModule [ "services" "rmilter" "bindInetSockets" ] "Use services.rmilter.bindSocket.* instead")
39+ (mkRemovedOptionModule [ "services" "rmilter" "bindUnixSockets" ] "Use services.rmilter.bindSocket.* instead")
40+
3641 # Old Grub-related options.
3742 (mkRenamedOptionModule [ "boot" "initrd" "extraKernelModules" ] [ "boot" "initrd" "kernelModules" ])
3843 (mkRenamedOptionModule [ "boot" "extraKernelParams" ] [ "boot" "kernelParams" ])
@@ -101,9 +106,6 @@ with lib;
101106 (mkRenamedOptionModule [ "services" "xserver" "windowManager" "xbmc" ] [ "services" "xserver" "desktopManager" "kodi" ])
102107 (mkRenamedOptionModule [ "services" "xserver" "desktopManager" "xbmc" ] [ "services" "xserver" "desktopManager" "kodi" ])
103108
104− # DNSCrypt-proxy
105− (mkRenamedOptionModule [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ])
106−
107109 (mkRenamedOptionModule [ "services" "hostapd" "extraCfg" ] [ "services" "hostapd" "extraConfig" ])
108110
109111 # Enlightenment
@@ -139,9 +141,6 @@ with lib;
139141 # Unity3D
140142 (mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
141143
142− # fontconfig-ultimate
143− (mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "rendering" ] [ "fonts" "fontconfig" "ultimate" "preset" ])
144−
145144 # murmur
146145 (mkRenamedOptionModule [ "services" "murmur" "welcome" ] [ "services" "murmur" "welcometext" ])
147146
@@ -176,6 +175,16 @@ with lib;
176175 (mkRenamedOptionModule [ "services" "nfs" "lockdPort" ] [ "services" "nfs" "server" "lockdPort" ])
177176 (mkRenamedOptionModule [ "services" "nfs" "statdPort" ] [ "services" "nfs" "server" "statdPort" ])
178177
178+ # KDE Plasma 5
179+ (mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])
180+
181+ # Fontconfig
182+ (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "config" "fonts" "fontconfig" "allowBitmaps" ])
183+ (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowType1" ] [ "config" "fonts" "fontconfig" "allowType1" ])
184+ (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "config" "fonts" "fontconfig" "useEmbeddedBitmaps" ])
185+ (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "config" "fonts" "fontconfig" "forceAutohint" ])
186+ (mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "config" "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
187+
179188 # Options that are obsolete and have no replacement.
180189 (mkRemovedOptionModule [ "boot" "initrd" "luks" "enable" ] "")
181190 (mkRemovedOptionModule [ "programs" "bash" "enable" ] "")
@@ -190,5 +199,10 @@ with lib;
190199 "See the 16.09 release notes for more information.")
191200 (mkRemovedOptionModule [ "services" "phpfpm" "phpIni" ] "")
192201 (mkRemovedOptionModule [ "services" "dovecot2" "package" ] "")
202+ (mkRemovedOptionModule [ "fonts" "fontconfig" "hinting" "style" ] "")
203+ (mkRemovedOptionModule [ "services" "xserver" "displayManager" "sddm" "themes" ]
204+ "Set the option `services.xserver.displayManager.sddm.package' instead.")
205+ (mkRemovedOptionModule [ "fonts" "fontconfig" "forceAutohint" ] "")
206+ (mkRemovedOptionModule [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ] "")
193207 ];
194208}
nixos/modules/security/acme.nix+3−3
@@ -110,7 +110,7 @@ in
110110 description = ''
111111 Systemd calendar expression when to check for renewal. See
112112 <citerefentry><refentrytitle>systemd.time</refentrytitle>
113− <manvolnum>5</manvolnum></citerefentry>.
113+ <manvolnum>7</manvolnum></citerefentry>.
114114 '';
115115 };
116116
@@ -129,7 +129,7 @@ in
129129
130130 certs = mkOption {
131131 default = { };
132− type = with types; loaOf (submodule certOpts);
132+ type = with types; attrsOf (submodule certOpts);
133133 description = ''
134134 Attribute set of certificates to get signed and renewed.
135135 '';
@@ -178,7 +178,7 @@ in
178178 path = [ pkgs.simp_le ];
179179 preStart = ''
180180 mkdir -p '${cfg.directory}'
181− chown '${data.user}:${data.group}' '${cfg.directory}'
181+ chown -R '${data.user}:${data.group}' '${cfg.directory}'
182182 if [ ! -d '${cpath}' ]; then
183183 mkdir '${cpath}'
184184 fi
nixos/modules/security/apparmor-suid.nix+1−2
@@ -19,7 +19,7 @@ with lib;
1919 config = mkIf (cfg.confineSUIDApplications) {
2020 security.apparmor.profiles = [ (pkgs.writeText "ping" ''
2121 #include <tunables/global>
22− /var/setuid-wrappers/ping {
22+ /run/wrappers/bin/ping {
2323 #include <abstractions/base>
2424 #include <abstractions/consoles>
2525 #include <abstractions/nameservice>
@@ -33,7 +33,6 @@ with lib;
3333 ${pkgs.attr.out}/lib/libattr.so* mr,
3434
3535 ${pkgs.iputils}/bin/ping mixr,
36− /var/setuid-wrappers/ping.real r,
3736
3837 #/etc/modules.conf r,
3938
nixos/modules/security/chromium-suid-sandbox.nix+1−1
@@ -27,6 +27,6 @@ in
2727
2828 config = mkIf cfg.enable {
2929 environment.systemPackages = [ sandbox ];
30− security.setuidPrograms = [ sandbox.passthru.sandboxExecutableName ];
30+ security.wrappers."${sandbox.passthru.sandboxExecutableName}".source = "${sandbox}/bin/${sandbox.passthru.sandboxExecutableName}";
3131 };
3232}
nixos/modules/security/dhparams.nixnew file+107
@@ -0,0 +1,107 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+let
5+ cfg = config.security.dhparams;
6+in
7+{
8+ options = {
9+ security.dhparams = {
10+ params = mkOption {
11+ description =
12+ ''
13+ Diffie-Hellman parameters to generate.
14+
15+ The value is the size (in bits) of the DH params to generate. The
16+ generated DH params path can be found in
17+ <filename><replaceable>security.dhparams.path</replaceable>/<replaceable>name</replaceable>.pem</filename>.
18+
19+ Note: The name of the DH params is taken as being the name of the
20+ service it serves: the params will be generated before the said
21+ service is started.
22+
23+ Warning: If you are removing all dhparams from this list, you have
24+ to leave security.dhparams.enable for at least one activation in
25+ order to have them be cleaned up. This also means if you rollback to
26+ a version without any dhparams the existing ones won't be cleaned
27+ up.
28+ '';
29+ type = with types; attrsOf int;
30+ default = {};
31+ example = { nginx = 3072; };
32+ };
33+
34+ path = mkOption {
35+ description =
36+ ''
37+ Path to the directory in which Diffie-Hellman parameters will be
38+ stored.
39+ '';
40+ type = types.str;
41+ default = "/var/lib/dhparams";
42+ };
43+
44+ enable = mkOption {
45+ description =
46+ ''
47+ Whether to generate new DH params and clean up old DH params.
48+ '';
49+ default = false;
50+ type = types.bool;
51+ };
52+ };
53+ };
54+
55+ config = mkIf cfg.enable {
56+ systemd.services = {
57+ dhparams-init = {
58+ description = "Cleanup old Diffie-Hellman parameters";
59+ wantedBy = [ "multi-user.target" ]; # Clean up even when no DH params is set
60+ serviceConfig.Type = "oneshot";
61+ script =
62+ # Create directory
63+ ''
64+ if [ ! -d ${cfg.path} ]; then
65+ mkdir -p ${cfg.path}
66+ fi
67+ '' +
68+ # Remove old dhparams
69+ ''
70+ for file in ${cfg.path}/*; do
71+ if [ ! -f "$file" ]; then
72+ continue
73+ fi
74+ '' + concatStrings (mapAttrsToList (name: value:
75+ ''
76+ if [ "$file" == "${cfg.path}/${name}.pem" ] && \
77+ ${pkgs.openssl}/bin/openssl dhparam -in "$file" -text | head -n 1 | grep "(${toString value} bit)" > /dev/null; then
78+ continue
79+ fi
80+ ''
81+ ) cfg.params) +
82+ ''
83+ rm $file
84+ done
85+
86+ # TODO: Ideally this would be removing the *former* cfg.path, though this
87+ # does not seem really important as changes to it are quite unlikely
88+ rmdir --ignore-fail-on-non-empty ${cfg.path}
89+ '';
90+ };
91+ } //
92+ mapAttrs' (name: value: nameValuePair "dhparams-gen-${name}" {
93+ description = "Generate Diffie-Hellman parameters for ${name} if they don't exist yet";
94+ after = [ "dhparams-init.service" ];
95+ before = [ "${name}.service" ];
96+ wantedBy = [ "multi-user.target" ];
97+ serviceConfig.Type = "oneshot";
98+ script =
99+ ''
100+ mkdir -p ${cfg.path}
101+ if [ ! -f ${cfg.path}/${name}.pem ]; then
102+ ${pkgs.openssl}/bin/openssl dhparam -out ${cfg.path}/${name}.pem ${toString value}
103+ fi
104+ '';
105+ }) cfg.params;
106+ };
107+}
nixos/modules/security/duosec.nix+2−1
@@ -187,7 +187,8 @@ in
187187 ];
188188
189189 environment.systemPackages = [ pkgs.duo-unix ];
190− security.setuidPrograms = [ "login_duo" ];
190+
191+ security.wrappers.login_duo.source = "${pkgs.duo-unix.out}/bin/login_duo";
191192 environment.etc = loginCfgFile ++ pamCfgFile;
192193
193194 /* If PAM *and* SSH are enabled, then don't do anything special.
nixos/modules/security/grsecurity.nix−3
@@ -21,7 +21,6 @@ in
2121
2222 enable = mkOption {
2323 type = types.bool;
24− example = true;
2524 default = false;
2625 description = ''
2726 Enable grsecurity/PaX.
@@ -30,7 +29,6 @@ in
3029
3130 lockTunables = mkOption {
3231 type = types.bool;
33− example = false;
3432 default = true;
3533 description = ''
3634 Whether to automatically lock grsecurity tunables
@@ -43,7 +41,6 @@ in
4341
4442 disableEfiRuntimeServices = mkOption {
4543 type = types.bool;
46− example = false;
4744 default = true;
4845 description = ''
4946 Whether to disable access to EFI runtime services. Enabling EFI runtime
nixos/modules/security/grsecurity.xml+3−3
@@ -214,8 +214,8 @@
214214 GRKERNSEC_CONFIG_SERVER y
215215 GRKERNSEC_CONFIG_SECURITY y
216216 '';
217− };
218− }
217+ };
218+ };
219219 </programlisting>
220220 </para>
221221
@@ -312,7 +312,7 @@
312312 Overflows in boot critical code (e.g., the root filesystem module) can
313313 render the system unbootable. Work around by setting
314314 <programlisting>
315− boot.kernel.kernelParams = [ "pax_size_overflow_report_only" ];
315+ boot.kernelParams = [ "pax_size_overflow_report_only" ];
316316 </programlisting>
317317 </para></listitem>
318318
nixos/modules/security/pam.nix+30−12
@@ -212,6 +212,17 @@ let
212212 '';
213213 };
214214
215+ enableKwallet = mkOption {
216+ default = false;
217+ type = types.bool;
218+ description = ''
219+ If enabled, pam_wallet will attempt to automatically unlock the
220+ user's default KDE wallet upon login. If the user has no wallet named
221+ "kdewallet", or the login password does not match their wallet
222+ password, KDE will prompt separately after login.
223+ '';
224+ };
225+
215226 text = mkOption {
216227 type = types.nullOr types.lines;
217228 description = "Contents of the PAM service file.";
@@ -253,6 +264,8 @@ let
253264 "auth sufficient ${pkgs.pam_u2f}/lib/security/pam_u2f.so"}
254265 ${optionalString cfg.usbAuth
255266 "auth sufficient ${pkgs.pam_usb}/lib/security/pam_usb.so"}
267+ ${let oath = config.security.pam.oath; in optionalString cfg.oathAuth
268+ "auth requisite ${pkgs.oathToolkit}/lib/security/pam_oath.so window=${toString oath.window} usersfile=${toString oath.usersFile} digits=${toString oath.digits}"}
256269 '' +
257270 # Modules in this block require having the password set in PAM_AUTHTOK.
258271 # pam_unix is marked as 'sufficient' on NixOS which means nothing will run
@@ -260,19 +273,20 @@ let
260273 # prompts the user for password so we run it once with 'required' at an
261274 # earlier point and it will run again with 'sufficient' further down.
262275 # We use try_first_pass the second time to avoid prompting password twice
263− (optionalString (cfg.unixAuth && (config.security.pam.enableEcryptfs || cfg.pamMount)) ''
276+ (optionalString (cfg.unixAuth && (config.security.pam.enableEcryptfs || cfg.pamMount || cfg.enableKwallet)) ''
264277 auth required pam_unix.so ${optionalString cfg.allowNullPassword "nullok"} likeauth
265278 ${optionalString config.security.pam.enableEcryptfs
266279 "auth optional ${pkgs.ecryptfs}/lib/security/pam_ecryptfs.so unwrap"}
267280 ${optionalString cfg.pamMount
268281 "auth optional ${pkgs.pam_mount}/lib/security/pam_mount.so"}
282+ ${optionalString cfg.enableKwallet
283+ ("auth optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" +
284+ " kwalletd=${pkgs.libsForQt5.kwallet}/bin/kwalletd5")}
269285 '') + ''
270286 ${optionalString cfg.unixAuth
271287 "auth sufficient pam_unix.so ${optionalString cfg.allowNullPassword "nullok"} likeauth try_first_pass"}
272288 ${optionalString cfg.otpwAuth
273289 "auth sufficient ${pkgs.otpw}/lib/security/pam_otpw.so"}
274− ${let oath = config.security.pam.oath; in optionalString cfg.oathAuth
275− "auth sufficient ${pkgs.oathToolkit}/lib/security/pam_oath.so window=${toString oath.window} usersfile=${toString oath.usersFile} digits=${toString oath.digits}"}
276290 ${optionalString use_ldap
277291 "auth sufficient ${pam_ldap}/lib/security/pam_ldap.so use_first_pass"}
278292 ${optionalString config.services.sssd.enable
@@ -334,6 +348,9 @@ let
334348 "session optional ${pkgs.pam_mount}/lib/security/pam_mount.so"}
335349 ${optionalString (cfg.enableAppArmor && config.security.apparmor.enable)
336350 "session optional ${pkgs.apparmor-pam}/lib/security/pam_apparmor.so order=user,group,default debug"}
351+ ${optionalString (cfg.enableKwallet)
352+ ("session optional ${pkgs.plasma5.kwallet-pam}/lib/security/pam_kwallet5.so" +
353+ " kwalletd=${pkgs.libsForQt5.kwallet}/bin/kwalletd5")}
337354 '');
338355 };
339356
@@ -472,19 +489,20 @@ in
472489 ++ optionals config.security.pam.enableU2F [ pkgs.pam_u2f ]
473490 ++ optionals config.security.pam.enableEcryptfs [ pkgs.ecryptfs ];
474491
475− security.setuidPrograms =
476− optionals config.security.pam.enableEcryptfs [ "mount.ecryptfs_private" "umount.ecryptfs_private" ];
492+ security.wrappers = {
493+ unix_chkpwd = {
494+ source = "${pkgs.pam}/sbin/unix_chkpwd.orig";
495+ owner = "root";
496+ setuid = true;
497+ };
498+ } // (if config.security.pam.enableEcryptfs then {
499+ "mount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/mount.ecryptfs_private";
500+ "umount.ecryptfs_private".source = "${pkgs.ecryptfs.out}/bin/umount.ecryptfs_private";
501+ } else {});
477502
478503 environment.etc =
479504 mapAttrsToList (n: v: makePAMService v) config.security.pam.services;
480505
481− security.setuidOwners = [ {
482− program = "unix_chkpwd";
483− source = "${pkgs.pam}/sbin/unix_chkpwd.orig";
484− owner = "root";
485− setuid = true;
486− } ];
487−
488506 security.pam.services =
489507 { other.text =
490508 ''
nixos/modules/security/pam_usb.nix+5−3
@@ -32,10 +32,12 @@ in
3232
3333 config = mkIf (cfg.enable || anyUsbAuth) {
3434
35− # pmount need to have a set-uid bit to make pam_usb works in user
36− # environment. (like su, sudo)
35+ # Make sure pmount and pumount are setuid wrapped.
36+ security.wrappers = {
37+ pmount.source = "${pkgs.pmount.out}/bin/pmount";
38+ pumount.source = "${pkgs.pmount.out}/bin/pumount";
39+ };
3740
38− security.setuidPrograms = [ "pmount" "pumount" ];
3941 environment.systemPackages = [ pkgs.pmount ];
4042
4143 };
nixos/modules/security/polkit.nix+5−11
@@ -64,7 +64,7 @@ in
6464 systemd.packages = [ pkgs.polkit.out ];
6565
6666 systemd.services.polkit.restartTriggers = [ config.system.path ];
67− systemd.services.polkit.unitConfig.X-StopIfChanged = false;
67+ systemd.services.polkit.stopIfChanged = false;
6868
6969 # The polkit daemon reads action/rule files
7070 environment.pathsToLink = [ "/share/polkit-1" ];
@@ -83,16 +83,10 @@ in
8383
8484 security.pam.services.polkit-1 = {};
8585
86− security.setuidPrograms = [ "pkexec" ];
87−
88− security.setuidOwners = [
89− { program = "polkit-agent-helper-1";
90− owner = "root";
91− group = "root";
92− setuid = true;
93− source = "${pkgs.polkit.out}/lib/polkit-1/polkit-agent-helper-1";
94− }
95− ];
86+ security.wrappers = {
87+ pkexec.source = "${pkgs.polkit.bin}/bin/pkexec";
88+ "polkit-agent-helper-1".source = "${pkgs.polkit.out}/lib/polkit-1/polkit-agent-helper-1";
89+ };
9690
9791 system.activationScripts.polkit =
9892 ''
nixos/modules/security/setuid-wrapper.cdeleted−81
@@ -1,81 +0,0 @@
1−#include <stdlib.h>
2−#include <stdio.h>
3−#include <string.h>
4−#include <unistd.h>
5−#include <sys/types.h>
6−#include <sys/stat.h>
7−#include <fcntl.h>
8−#include <dirent.h>
9−#include <assert.h>
10−#include <string.h>
11−#include <errno.h>
12−
13−/* Make sure assertions are not compiled out. */
14−#undef NDEBUG
15−
16−extern char **environ;
17−
18−static char * wrapperDir = WRAPPER_DIR;
19−
20−int main(int argc, char * * argv)
21−{
22− char self[PATH_MAX];
23−
24− int len = readlink("/proc/self/exe", self, sizeof(self) - 1);
25− assert (len > 0);
26− self[len] = 0;
27−
28− /* Make sure that we are being executed from the right location,
29− i.e., `wrapperDir'. This is to prevent someone from
30− creating hard link `X' from some other location, along with a
31− false `X.real' file, to allow arbitrary programs from being
32− executed setuid. */
33− assert ((strncmp(self, wrapperDir, strlen(wrapperDir)) == 0) &&
34− (self[strlen(wrapperDir)] == '/'));
35−
36− /* Make *really* *really* sure that we were executed as `self',
37− and not, say, as some other setuid program. That is, our
38− effective uid/gid should match the uid/gid of `self'. */
39− //printf("%d %d\n", geteuid(), getegid());
40−
41− struct stat st;
42− assert (lstat(self, &st) != -1);
43−
44− //printf("%d %d\n", st.st_uid, st.st_gid);
45−
46− assert ((st.st_mode & S_ISUID) == 0 ||
47− (st.st_uid == geteuid()));
48−
49− assert ((st.st_mode & S_ISGID) == 0 ||
50− st.st_gid == getegid());
51−
52− /* And, of course, we shouldn't be writable. */
53− assert (!(st.st_mode & (S_IWGRP | S_IWOTH)));
54−
55−
56− /* Read the path of the real (wrapped) program from <self>.real. */
57− char realFN[PATH_MAX + 10];
58− int realFNSize = snprintf (realFN, sizeof(realFN), "%s.real", self);
59− assert (realFNSize < sizeof(realFN));
60−
61− int fdSelf = open(realFN, O_RDONLY);
62− assert (fdSelf != -1);
63−
64− char real[PATH_MAX];
65− len = read(fdSelf, real, PATH_MAX);
66− assert (len != -1);
67− assert (len < sizeof (real));
68− assert (len > 0);
69− real[len] = 0;
70−
71− close(fdSelf);
72−
73− //printf("real = %s, len = %d\n", real, len);
74−
75− execve(real, argv, environ);
76−
77− fprintf(stderr, "%s: cannot run `%s': %s\n",
78− argv[0], real, strerror(errno));
79−
80− exit(1);
81−}
nixos/modules/security/setuid-wrappers.nixdeleted−146
@@ -1,146 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6−
7− inherit (config.security) wrapperDir;
8−
9− setuidWrapper = pkgs.stdenv.mkDerivation {
10− name = "setuid-wrapper";
11− unpackPhase = "true";
12− installPhase = ''
13− mkdir -p $out/bin
14− cp ${./setuid-wrapper.c} setuid-wrapper.c
15− gcc -Wall -O2 -DWRAPPER_DIR=\"/run/setuid-wrapper-dirs\" \
16− setuid-wrapper.c -o $out/bin/setuid-wrapper
17− '';
18− };
19−
20−in
21−
22−{
23−
24− ###### interface
25−
26− options = {
27−
28− security.setuidPrograms = mkOption {
29− type = types.listOf types.str;
30− default = [];
31− example = ["passwd"];
32− description = ''
33− The Nix store cannot contain setuid/setgid programs directly.
34− For this reason, NixOS can automatically generate wrapper
35− programs that have the necessary privileges. This option
36− lists the names of programs in the system environment for
37− which setuid root wrappers should be created.
38− '';
39− };
40−
41− security.setuidOwners = mkOption {
42− type = types.listOf types.attrs;
43− default = [];
44− example =
45− [ { program = "sendmail";
46− owner = "nobody";
47− group = "postdrop";
48− setuid = false;
49− setgid = true;
50− permissions = "u+rx,g+x,o+x";
51− }
52− ];
53− description = ''
54− This option allows the ownership and permissions on the setuid
55− wrappers for specific programs to be overridden from the
56− default (setuid root, but not setgid root).
57− '';
58− };
59−
60− security.wrapperDir = mkOption {
61− internal = true;
62− type = types.path;
63− default = "/var/setuid-wrappers";
64− description = ''
65− This option defines the path to the setuid wrappers. It
66− should generally not be overriden. Some packages in Nixpkgs
67− expect that <option>wrapperDir</option> is
68− <filename>/var/setuid-wrappers</filename>.
69− '';
70− };
71−
72− };
73−
74−
75− ###### implementation
76−
77− config = {
78−
79− security.setuidPrograms = [ "fusermount" ];
80−
81− system.activationScripts.setuid =
82− let
83− setuidPrograms =
84− (map (x: { program = x; owner = "root"; group = "root"; setuid = true; })
85− config.security.setuidPrograms)
86− ++ config.security.setuidOwners;
87−
88− makeSetuidWrapper =
89− { program
90− , source ? ""
91− , owner ? "nobody"
92− , group ? "nogroup"
93− , setuid ? false
94− , setgid ? false
95− , permissions ? "u+rx,g+x,o+x"
96− }:
97−
98− ''
99− if ! source=${if source != "" then source else "$(readlink -f $(PATH=$SETUID_PATH type -tP ${program}))"}; then
100− # If we can't find the program, fall back to the
101− # system profile.
102− source=/nix/var/nix/profiles/default/bin/${program}
103− fi
104−
105− cp ${setuidWrapper}/bin/setuid-wrapper $wrapperDir/${program}
106− echo -n "$source" > $wrapperDir/${program}.real
107− chmod 0000 $wrapperDir/${program} # to prevent races
108− chown ${owner}.${group} $wrapperDir/${program}
109− chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" $wrapperDir/${program}
110− '';
111−
112− in stringAfter [ "users" ]
113− ''
114− # Look in the system path and in the default profile for
115− # programs to be wrapped.
116− SETUID_PATH=${config.system.path}/bin:${config.system.path}/sbin
117−
118− mkdir -p /run/setuid-wrapper-dirs
119− wrapperDir=$(mktemp --directory --tmpdir=/run/setuid-wrapper-dirs setuid-wrappers.XXXXXXXXXX)
120− chmod a+rx $wrapperDir
121−
122− ${concatMapStrings makeSetuidWrapper setuidPrograms}
123−
124− if [ -L ${wrapperDir} ]; then
125− # Atomically replace the symlink
126− # See https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/
127− old=$(readlink ${wrapperDir})
128− ln --symbolic --force --no-dereference $wrapperDir ${wrapperDir}-tmp
129− mv --no-target-directory ${wrapperDir}-tmp ${wrapperDir}
130− rm --force --recursive $old
131− elif [ -d ${wrapperDir} ]; then
132− # Compatibility with old state, just remove the folder and symlink
133− rm -f ${wrapperDir}/*
134− # if it happens to be a tmpfs
135− ${pkgs.utillinux}/bin/umount ${wrapperDir} || true
136− rm -d ${wrapperDir}
137− ln -d --symbolic $wrapperDir ${wrapperDir}
138− else
139− # For initial setup
140− ln --symbolic $wrapperDir ${wrapperDir}
141− fi
142− '';
143−
144− };
145−
146−}
nixos/modules/security/sudo.nix+4−1
@@ -81,7 +81,10 @@ in
8181 ${cfg.extraConfig}
8282 '';
8383
84− security.setuidPrograms = [ "sudo" "sudoedit" ];
84+ security.wrappers = {
85+ sudo.source = "${pkgs.sudo.out}/bin/sudo";
86+ sudoedit.source = "${pkgs.sudo.out}/bin/sudoedit";
87+ };
8588
8689 environment.systemPackages = [ sudo ];
8790
nixos/modules/security/wrappers/default.nixnew file+228
@@ -0,0 +1,228 @@
1+{ config, lib, pkgs, ... }:
2+let
3+
4+ inherit (config.security) wrapperDir wrappers;
5+
6+ parentWrapperDir = dirOf wrapperDir;
7+
8+ programs =
9+ (lib.mapAttrsToList
10+ (n: v: (if v ? "program" then v else v // {program=n;}))
11+ wrappers);
12+
13+ securityWrapper = pkgs.stdenv.mkDerivation {
14+ name = "security-wrapper";
15+ phases = [ "installPhase" "fixupPhase" ];
16+ buildInputs = [ pkgs.libcap pkgs.libcap_ng pkgs.linuxHeaders ];
17+ hardeningEnable = [ "pie" ];
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ gcc -Wall -O2 -DWRAPPER_DIR=\"${parentWrapperDir}\" \
21+ -lcap-ng -lcap ${./wrapper.c} -o $out/bin/security-wrapper
22+ '';
23+ };
24+
25+ ###### Activation script for the setcap wrappers
26+ mkSetcapProgram =
27+ { program
28+ , capabilities
29+ , source
30+ , owner ? "nobody"
31+ , group ? "nogroup"
32+ , permissions ? "u+rx,g+x,o+x"
33+ , ...
34+ }:
35+ assert (lib.versionAtLeast (lib.getVersion config.boot.kernelPackages.kernel) "4.3");
36+ ''
37+ cp ${securityWrapper}/bin/security-wrapper $wrapperDir/${program}
38+ echo -n "${source}" > $wrapperDir/${program}.real
39+
40+ # Prevent races
41+ chmod 0000 $wrapperDir/${program}
42+ chown ${owner}.${group} $wrapperDir/${program}
43+
44+ # Set desired capabilities on the file plus cap_setpcap so
45+ # the wrapper program can elevate the capabilities set on
46+ # its file into the Ambient set.
47+ ${pkgs.libcap.out}/bin/setcap "cap_setpcap,${capabilities}" $wrapperDir/${program}
48+
49+ # Set the executable bit
50+ chmod ${permissions} $wrapperDir/${program}
51+ '';
52+
53+ ###### Activation script for the setuid wrappers
54+ mkSetuidProgram =
55+ { program
56+ , source
57+ , owner ? "nobody"
58+ , group ? "nogroup"
59+ , setuid ? false
60+ , setgid ? false
61+ , permissions ? "u+rx,g+x,o+x"
62+ , ...
63+ }:
64+ ''
65+ cp ${securityWrapper}/bin/security-wrapper $wrapperDir/${program}
66+ echo -n "${source}" > $wrapperDir/${program}.real
67+
68+ # Prevent races
69+ chmod 0000 $wrapperDir/${program}
70+ chown ${owner}.${group} $wrapperDir/${program}
71+
72+ chmod "u${if setuid then "+" else "-"}s,g${if setgid then "+" else "-"}s,${permissions}" $wrapperDir/${program}
73+ '';
74+
75+ mkWrappedPrograms =
76+ builtins.map
77+ (s: if (s ? "capabilities")
78+ then mkSetcapProgram
79+ ({ owner = "root";
80+ group = "root";
81+ } // s)
82+ else if
83+ (s ? "setuid" && s.setuid == true) ||
84+ (s ? "setguid" && s.setguid == true) ||
85+ (s ? "permissions")
86+ then mkSetuidProgram s
87+ else mkSetuidProgram
88+ ({ owner = "root";
89+ group = "root";
90+ setuid = true;
91+ setgid = false;
92+ permissions = "u+rx,g+x,o+x";
93+ } // s)
94+ ) programs;
95+in
96+{
97+
98+ ###### interface
99+
100+ options = {
101+ security.wrappers = lib.mkOption {
102+ type = lib.types.attrs;
103+ default = {};
104+ example = lib.literalExample
105+ ''
106+ { sendmail.source = "/nix/store/.../bin/sendmail";
107+ ping = {
108+ source = "${pkgs.iputils.out}/bin/ping";
109+ owner = "nobody";
110+ group = "nogroup";
111+ capabilities = "cap_net_raw+ep";
112+ };
113+ }
114+ '';
115+ description = ''
116+ This option allows the ownership and permissions on the setuid
117+ wrappers for specific programs to be overridden from the
118+ default (setuid root, but not setgid root).
119+
120+ <note>
121+ <para>The sub-attribute <literal>source</literal> is mandatory,
122+ it must be the absolute path to the program to be wrapped.
123+ </para>
124+
125+ <para>The sub-attribute <literal>program</literal> is optional and
126+ can give the wrapper program a new name. The default name is the same
127+ as the attribute name itself.</para>
128+
129+ <para>Additionally, this option can set capabilities on a
130+ wrapper program that propagates those capabilities down to the
131+ wrapped, real program.</para>
132+
133+ <para>NOTE: cap_setpcap, which is required for the wrapper
134+ program to be able to raise caps into the Ambient set is NOT
135+ raised to the Ambient set so that the real program cannot
136+ modify its own capabilities!! This may be too restrictive for
137+ cases in which the real program needs cap_setpcap but it at
138+ least leans on the side security paranoid vs. too
139+ relaxed.</para>
140+ </note>
141+ '';
142+ };
143+
144+ security.wrapperDir = lib.mkOption {
145+ type = lib.types.path;
146+ default = "/run/wrappers/bin";
147+ internal = true;
148+ description = ''
149+ This option defines the path to the wrapper programs. It
150+ should not be overriden.
151+ '';
152+ };
153+ };
154+
155+ ###### implementation
156+ config = {
157+
158+ security.wrappers.fusermount.source = "${pkgs.fuse}/bin/fusermount";
159+
160+ boot.specialFileSystems.${parentWrapperDir} = {
161+ fsType = "tmpfs";
162+ options = [ "nodev" ];
163+ };
164+
165+ # Make sure our wrapperDir exports to the PATH env variable when
166+ # initializing the shell
167+ environment.extraInit = ''
168+ # Wrappers override other bin directories.
169+ export PATH="${wrapperDir}:$PATH"
170+ '';
171+
172+ ###### setcap activation script
173+ system.activationScripts.wrappers =
174+ lib.stringAfter [ "users" ]
175+ ''
176+ # Look in the system path and in the default profile for
177+ # programs to be wrapped.
178+ WRAPPER_PATH=${config.system.path}/bin:${config.system.path}/sbin
179+
180+ # Remove the old /var/setuid-wrappers path from the system...
181+ #
182+ # TODO: this is only necessary for upgrades 16.09 => 17.x;
183+ # this conditional removal block needs to be removed after
184+ # the release.
185+ if [ -d /var/setuid-wrappers ]; then
186+ rm -rf /var/setuid-wrappers
187+ ln -s /run/wrappers/bin /var/setuid-wrappers
188+ fi
189+
190+ # Remove the old /run/setuid-wrappers-dir path from the
191+ # system as well...
192+ #
193+ # TODO: this is only necessary for upgrades 16.09 => 17.x;
194+ # this conditional removal block needs to be removed after
195+ # the release.
196+ if [ -d /run/setuid-wrapper-dirs ]; then
197+ rm -rf /run/setuid-wrapper-dirs
198+ ln -s /run/wrappers/bin /run/setuid-wrapper-dirs
199+ fi
200+
201+ # TODO: this is only necessary for upgrades 16.09 => 17.x;
202+ # this conditional removal block needs to be removed after
203+ # the release.
204+ if readlink -f /run/booted-system | grep nixos-17 > /dev/null; then
205+ rm -rf /run/setuid-wrapper-dirs
206+ rm -rf /var/setuid-wrappers
207+ fi
208+
209+ # We want to place the tmpdirs for the wrappers to the parent dir.
210+ wrapperDir=$(mktemp --directory --tmpdir="${parentWrapperDir}" wrappers.XXXXXXXXXX)
211+ chmod a+rx $wrapperDir
212+
213+ ${lib.concatStringsSep "\n" mkWrappedPrograms}
214+
215+ if [ -L ${wrapperDir} ]; then
216+ # Atomically replace the symlink
217+ # See https://axialcorps.com/2013/07/03/atomically-replacing-files-and-directories/
218+ old=$(readlink -f ${wrapperDir})
219+ ln --symbolic --force --no-dereference $wrapperDir ${wrapperDir}-tmp
220+ mv --no-target-directory ${wrapperDir}-tmp ${wrapperDir}
221+ rm --force --recursive $old
222+ else
223+ # For initial setup
224+ ln --symbolic $wrapperDir ${wrapperDir}
225+ fi
226+ '';
227+ };
228+}
nixos/modules/security/wrappers/wrapper.cnew file+239
@@ -0,0 +1,239 @@
1+#include <stdlib.h>
2+#include <stdio.h>
3+#include <string.h>
4+#include <unistd.h>
5+#include <sys/types.h>
6+#include <sys/stat.h>
7+#include <fcntl.h>
8+#include <dirent.h>
9+#include <assert.h>
10+#include <errno.h>
11+#include <linux/capability.h>
12+#include <sys/capability.h>
13+#include <linux/prctl.h>
14+#include <sys/prctl.h>
15+#include <cap-ng.h>
16+
17+// Make sure assertions are not compiled out, we use them to codify
18+// invariants about this program and we want it to fail fast and
19+// loudly if they are violated.
20+#undef NDEBUG
21+
22+extern char **environ;
23+
24+// The WRAPPER_DIR macro is supplied at compile time so that it cannot
25+// be changed at runtime
26+static char * wrapperDir = WRAPPER_DIR;
27+
28+// Wrapper debug variable name
29+static char * wrapperDebug = "WRAPPER_DEBUG";
30+
31+// Update the capabilities of the running process to include the given
32+// capability in the Ambient set.
33+static void set_ambient_cap(cap_value_t cap)
34+{
35+ capng_get_caps_process();
36+
37+ if (capng_update(CAPNG_ADD, CAPNG_INHERITABLE, (unsigned long) cap))
38+ {
39+ perror("cannot raise the capability into the Inheritable set\n");
40+ exit(1);
41+ }
42+
43+ capng_apply(CAPNG_SELECT_CAPS);
44+
45+ if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, (unsigned long) cap, 0, 0))
46+ {
47+ perror("cannot raise the capability into the Ambient set\n");
48+ exit(1);
49+ }
50+}
51+
52+// Given the path to this program, fetch its configured capability set
53+// (as set by `setcap ... /path/to/file`) and raise those capabilities
54+// into the Ambient set.
55+static int make_caps_ambient(const char *selfPath)
56+{
57+ cap_t caps = cap_get_file(selfPath);
58+
59+ if(!caps)
60+ {
61+ if(getenv(wrapperDebug))
62+ fprintf(stderr, "no caps set or could not retrieve the caps for this file, not doing anything...");
63+
64+ return 1;
65+ }
66+
67+ // We use `cap_to_text` and iteration over the tokenized result
68+ // string because, as of libcap's current release, there is no
69+ // facility for retrieving an array of `cap_value_t`'s that can be
70+ // given to `prctl` in order to lift that capability into the
71+ // Ambient set.
72+ //
73+ // Some discussion was had around shot-gunning all of the
74+ // capabilities we know about into the Ambient set but that has a
75+ // security smell and I deemed the risk of the current
76+ // implementation crashing the program to be lower than the risk
77+ // of a privilege escalation security hole being introduced by
78+ // raising all capabilities, even ones we didn't intend for the
79+ // program, into the Ambient set.
80+ //
81+ // `cap_t` which is returned by `cap_get_*` is an opaque type and
82+ // even if we could retrieve the bitmasks (which, as far as I can
83+ // tell we cannot) in order to get the `cap_value_t`
84+ // representation for each capability we would have to take the
85+ // total number of capabilities supported and iterate over the
86+ // sequence of integers up-to that maximum total, testing each one
87+ // against the bitmask ((bitmask >> n) & 1) to see if it's set and
88+ // aggregating each "capability integer n" that is set in the
89+ // bitmask.
90+ //
91+ // That, combined with the fact that we can't easily get the
92+ // bitmask anyway seemed much more brittle than fetching the
93+ // `cap_t`, transforming it into a textual representation,
94+ // tokenizing the string, and using `cap_from_name` on the token
95+ // to get the `cap_value_t` that we need for `prctl`. There is
96+ // indeed risk involved if the output string format of
97+ // `cap_to_text` ever changes but at this time the combination of
98+ // factors involving the below list have led me to the conclusion
99+ // that the best implementation at this time is reading then
100+ // parsing with *lots of documentation* about why we're doing it
101+ // this way.
102+ //
103+ // 1. No explicit API for fetching an array of `cap_value_t`'s or
104+ // for transforming a `cap_t` into such a representation
105+ // 2. The risk of a crash is lower than lifting all capabilities
106+ // into the Ambient set
107+ // 3. libcap is depended on heavily in the Linux ecosystem so
108+ // there is a high chance that the output representation of
109+ // `cap_to_text` will not change which reduces our risk that
110+ // this parsing step will cause a crash
111+ //
112+ // The preferred method, should it ever be available in the
113+ // future, would be to use libcap API's to transform the result
114+ // from a `cap_get_*` into an array of `cap_value_t`'s that can
115+ // then be given to prctl.
116+ //
117+ // - Parnell
118+ ssize_t capLen;
119+ char* capstr = cap_to_text(caps, &capLen);
120+ cap_free(caps);
121+
122+ // TODO: For now, we assume that cap_to_text always starts its
123+ // result string with " =" and that the first capability is listed
124+ // immediately after that. We should verify this.
125+ assert(capLen >= 2);
126+ capstr += 2;
127+
128+ char* saveptr = NULL;
129+ for(char* tok = strtok_r(capstr, ",", &saveptr); tok; tok = strtok_r(NULL, ",", &saveptr))
130+ {
131+ cap_value_t capnum;
132+ if (cap_from_name(tok, &capnum))
133+ {
134+ if(getenv(wrapperDebug))
135+ fprintf(stderr, "cap_from_name failed, skipping: %s", tok);
136+ }
137+ else if (capnum == CAP_SETPCAP)
138+ {
139+ // Check for the cap_setpcap capability, we set this on the
140+ // wrapper so it can elevate the capabilities to the Ambient
141+ // set but we do not want to propagate it down into the
142+ // wrapped program.
143+ //
144+ // TODO: what happens if that's the behavior you want
145+ // though???? I'm preferring a strict vs. loose policy here.
146+ if(getenv(wrapperDebug))
147+ fprintf(stderr, "cap_setpcap in set, skipping it\n");
148+ }
149+ else
150+ {
151+ set_ambient_cap(capnum);
152+
153+ if(getenv(wrapperDebug))
154+ fprintf(stderr, "raised %s into the Ambient capability set\n", tok);
155+ }
156+ }
157+ cap_free(capstr);
158+
159+ return 0;
160+}
161+
162+int main(int argc, char * * argv)
163+{
164+ // I *think* it's safe to assume that a path from a symbolic link
165+ // should safely fit within the PATH_MAX system limit. Though I'm
166+ // not positive it's safe...
167+ char selfPath[PATH_MAX];
168+ int selfPathSize = readlink("/proc/self/exe", selfPath, sizeof(selfPath));
169+
170+ assert(selfPathSize > 0);
171+
172+ // Assert we have room for the zero byte, this ensures the path
173+ // isn't being truncated because it's too big for the buffer.
174+ //
175+ // A better way to handle this might be to use something like the
176+ // whereami library (https://github.com/gpakosz/whereami) or a
177+ // loop that resizes the buffer and re-reads the link if the
178+ // contents are being truncated.
179+ assert(selfPathSize < sizeof(selfPath));
180+
181+ // Set the zero byte since readlink doesn't do that for us.
182+ selfPath[selfPathSize] = '\0';
183+
184+ // Make sure that we are being executed from the right location,
185+ // i.e., `safeWrapperDir'. This is to prevent someone from creating
186+ // hard link `X' from some other location, along with a false
187+ // `X.real' file, to allow arbitrary programs from being executed
188+ // with elevated capabilities.
189+ int len = strlen(wrapperDir);
190+ if (len > 0 && '/' == wrapperDir[len - 1])
191+ --len;
192+ assert(!strncmp(selfPath, wrapperDir, len));
193+ assert('/' == wrapperDir[0]);
194+ assert('/' == selfPath[len]);
195+
196+ // Make *really* *really* sure that we were executed as
197+ // `selfPath', and not, say, as some other setuid program. That
198+ // is, our effective uid/gid should match the uid/gid of
199+ // `selfPath'.
200+ struct stat st;
201+ assert(lstat(selfPath, &st) != -1);
202+
203+ assert(!(st.st_mode & S_ISUID) || (st.st_uid == geteuid()));
204+ assert(!(st.st_mode & S_ISGID) || (st.st_gid == getegid()));
205+
206+ // And, of course, we shouldn't be writable.
207+ assert(!(st.st_mode & (S_IWGRP | S_IWOTH)));
208+
209+ // Read the path of the real (wrapped) program from <self>.real.
210+ char realFN[PATH_MAX + 10];
211+ int realFNSize = snprintf (realFN, sizeof(realFN), "%s.real", selfPath);
212+ assert (realFNSize < sizeof(realFN));
213+
214+ int fdSelf = open(realFN, O_RDONLY);
215+ assert (fdSelf != -1);
216+
217+ char sourceProg[PATH_MAX];
218+ len = read(fdSelf, sourceProg, PATH_MAX);
219+ assert (len != -1);
220+ assert (len < sizeof(sourceProg));
221+ assert (len > 0);
222+ sourceProg[len] = 0;
223+
224+ close(fdSelf);
225+
226+ // Read the capabilities set on the wrapper and raise them in to
227+ // the Ambient set so the program we're wrapping receives the
228+ // capabilities too!
229+ make_caps_ambient(selfPath);
230+
231+ execve(sourceProg, argv, environ);
232+
233+ fprintf(stderr, "%s: cannot run `%s': %s\n",
234+ argv[0], sourceProg, strerror(errno));
235+
236+ exit(1);
237+}
238+
239+
nixos/modules/services/audio/mpd.nix+11−8
@@ -4,6 +4,8 @@ with lib;
44
55let
66
7+ name = "mpd";
8+
79 uid = config.ids.uids.mpd;
810 gid = config.ids.gids.mpd;
911 cfg = config.services.mpd;
@@ -54,13 +56,14 @@ in {
5456 description = ''
5557 Extra directives added to to the end of MPD's configuration file,
5658 mpd.conf. Basic configuration like file location and uid/gid
57− is added automatically to the beginning of the file.
59+ is added automatically to the beginning of the file. For available
60+ options see <literal>man 5 mpd.conf</literal>'.
5861 '';
5962 };
6063
6164 dataDir = mkOption {
6265 type = types.path;
63− default = "/var/lib/mpd";
66+ default = "/var/lib/${name}";
6467 description = ''
6568 The directory where MPD stores its state, tag cache,
6669 playlists etc.
@@ -69,13 +72,13 @@ in {
6972
7073 user = mkOption {
7174 type = types.str;
72− default = "mpd";
75+ default = name;
7376 description = "User account under which MPD runs.";
7477 };
7578
7679 group = mkOption {
7780 type = types.str;
78− default = "mpd";
81+ default = name;
7982 description = "Group account under which MPD runs.";
8083 };
8184
@@ -131,17 +134,17 @@ in {
131134 };
132135 };
133136
134− users.extraUsers = optionalAttrs (cfg.user == "mpd") (singleton {
137+ users.extraUsers = optionalAttrs (cfg.user == name) (singleton {
135138 inherit uid;
136− name = "mpd";
139+ inherit name;
137140 group = cfg.group;
138141 extraGroups = [ "audio" ];
139142 description = "Music Player Daemon user";
140143 home = "${cfg.dataDir}";
141144 });
142145
143− users.extraGroups = optionalAttrs (cfg.group == "mpd") (singleton {
144− name = "mpd";
146+ users.extraGroups = optionalAttrs (cfg.group == name) (singleton {
147+ inherit name;
145148 gid = gid;
146149 });
147150 };
nixos/modules/services/backup/rsnapshot.nix−1
@@ -26,7 +26,6 @@ in
2626 enableManualRsnapshot = mkOption {
2727 description = "Whether to enable manual usage of the rsnapshot command with this module.";
2828 default = true;
29− example = false;
3029 type = types.bool;
3130 };
3231
nixos/modules/services/backup/sitecopy-backup.nixdeleted−106
@@ -1,106 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6− inherit (pkgs) sitecopy;
7−
8− stateDir = "/var/spool/sitecopy";
9−
10− sitecopyCron = backup : ''
11− ${if backup ? period then backup.period else config.services.sitecopy.period} root ${sitecopy}/bin/sitecopy --storepath=${stateDir} --rcfile=${stateDir}/${backup.name}.conf --update ${backup.name} >> /var/log/sitecopy.log 2>&1
12− '';
13−in
14−
15−{
16−
17− options = {
18−
19− services.sitecopy = {
20−
21− enable = mkOption {
22− default = false;
23− description = ''
24− Whether to enable <command>sitecopy</command> backups of specified
25− directories.
26− '';
27− };
28−
29− period = mkOption {
30− default = "15 04 * * *";
31− description = ''
32− This option defines (in the format used by <command>cron</command>)
33− when the <command>sitecopy</command> backups are to be run.
34− The default is to update at 04:15 (at night) every day.
35− '';
36− };
37−
38− backups = mkOption {
39− example = [
40− { name = "test";
41− local = "/tmp/backup";
42− remote = "/staff-groups/ewi/st/strategoxt/backup/test";
43− server = "webdata.tudelft.nl";
44− protocol = "webdav";
45− https = true ;
46− symlinks = "maintain" ;
47− }
48− ];
49− default = [];
50− description = ''
51− List of attribute sets describing the backups.
52−
53− Username/password are extracted from
54− <filename>${stateDir}/sitecopy.secrets</filename> at activation
55− time. The secrets file lines should have the following structure:
56− <screen>
57− server username password
58− </screen>
59− '';
60− };
61−
62− };
63−
64− };
65−
66− config = mkIf config.services.sitecopy.enable {
67− environment.systemPackages = [ sitecopy ];
68−
69− services.cron.systemCronJobs = map sitecopyCron config.services.sitecopy.backups;
70−
71− system.activationScripts.sitecopyBackup = stringAfter [ "stdio" "users" ]
72− ''
73− mkdir -m 0700 -p ${stateDir}
74− chown root ${stateDir}
75− touch ${stateDir}/sitecopy.secrets
76− chown root ${stateDir}/sitecopy.secrets
77−
78− ${lib.concatStrings (map ( b: ''
79− unset secrets
80− unset secret
81− secrets=`grep '^${b.server}' ${stateDir}/sitecopy.secrets | head -1`
82− secret=($secrets)
83− cat > ${stateDir}/${b.name}.conf << EOF
84− site ${b.name}
85− server ${b.server}
86− protocol ${b.protocol}
87− username ''${secret[1]}
88− password ''${secret[2]}
89− local ${b.local}
90− remote ${b.remote}
91− symlinks ${b.symlinks}
92− ${if b.https then "http secure" else ""}
93− EOF
94− chmod 0600 ${stateDir}/${b.name}.conf
95− if ! test -e ${stateDir}/${b.name} ; then
96− echo " * Initializing sitecopy '${b.name}'"
97− ${sitecopy}/bin/sitecopy --storepath=${stateDir} --rcfile=${stateDir}/${b.name}.conf --initialize ${b.name}
98− else
99− echo " * Sitecopy '${b.name}' already initialized"
100− fi
101− '' ) config.services.sitecopy.backups
102− )}
103− '';
104− };
105−
106−}
nixos/modules/services/cluster/kubernetes.nix+2−1
@@ -76,6 +76,7 @@ in {
7676 description = "Kubernetes package to use.";
7777 type = types.package;
7878 default = pkgs.kubernetes;
79+ defaultText = "pkgs.kubernetes";
7980 };
8081
8182 verbose = mkOption {
@@ -775,7 +776,7 @@ in {
775776 --bind-address=${cfg.proxy.address} \
776777 ${optionalString cfg.verbose "--v=6"} \
777778 ${optionalString cfg.verbose "--log-flush-frequency=1s"} \
778− ${cfg.controllerManager.extraOpts}
779+ ${cfg.proxy.extraOpts}
779780 '';
780781 WorkingDirectory = cfg.dataDir;
781782 };
nixos/modules/services/computing/boinc/client.nix−2
@@ -12,7 +12,6 @@ in
1212 enable = mkOption {
1313 type = types.bool;
1414 default = false;
15− example = true;
1615 description = ''
1716 Whether to enable the BOINC distributed computing client. If this
1817 option is set to true, the boinc_client daemon will be run as a
@@ -41,7 +40,6 @@ in
4140 allowRemoteGuiRpc = mkOption {
4241 type = types.bool;
4342 default = false;
44− example = true;
4543 description = ''
4644 If set to true, any remote host can connect to and control this BOINC
4745 client (subject to password authentication). If instead set to false,
nixos/modules/services/continuous-integration/buildbot/master.nix+12−17
@@ -28,7 +28,7 @@ let
2828
2929 ${cfg.extraConfig}
3030 ''
31− else pkgs.writeText "master.cfg" cfg.masterCfg;
31+ else cfg.masterCfg;
3232
3333in {
3434 options = {
@@ -66,13 +66,10 @@ in {
6666 };
6767
6868 masterCfg = mkOption {
69− type = types.str;
70− description = ''
71− Optionally pass raw master.cfg file as string.
72− Other options in this configuration will be ignored.
73− '';
69+ type = types.nullOr types.path;
70+ description = "Optionally pass master.cfg path. Other options in this configuration will be ignored.";
7471 default = null;
75− example = "BuildmasterConfig = c = {}";
72+ example = "/etc/nixos/buildbot/master.cfg";
7673 };
7774
7875 schedulers = mkOption {
@@ -88,7 +85,7 @@ in {
8885 type = types.listOf types.str;
8986 description = "List of Builders.";
9087 default = [
91− "util.BuilderConfig(name='runtests',workernames=['default-worker'],factory=factory)"
88+ "util.BuilderConfig(name='runtests',workernames=['example-worker'],factory=factory)"
9289 ];
9390 };
9491
@@ -121,7 +118,7 @@ in {
121118
122119 extraGroups = mkOption {
123120 type = types.listOf types.str;
124− default = [ "nixbld" ];
121+ default = [];
125122 description = "List of extra groups that the buildbot user should be a part of.";
126123 };
127124
@@ -183,16 +180,14 @@ in {
183180 package = mkOption {
184181 type = types.package;
185182 default = pkgs.buildbot-ui;
186− description = ''
187− Package to use for buildbot.
188− <literal>buildbot-full</literal> is required in order to use local workers.
189− '';
190− example = pkgs.buildbot-full;
183+ defaultText = "pkgs.buildbot-ui";
184+ description = "Package to use for buildbot.";
185+ example = literalExample "pkgs.buildbot-full";
191186 };
192187
193188 packages = mkOption {
194189 default = [ ];
195− example = [ pkgs.git ];
190+ example = literalExample "[ pkgs.git ]";
196191 type = types.listOf types.package;
197192 description = "Packages to add to PATH for the buildbot process.";
198193 };
@@ -222,11 +217,11 @@ in {
222217 path = cfg.packages;
223218
224219 serviceConfig = {
225− Type = "forking";
220+ Type = "simple";
226221 User = cfg.user;
227222 Group = cfg.group;
228223 WorkingDirectory = cfg.home;
229− ExecStart = "${cfg.package}/bin/buildbot start ${cfg.buildbotDir}";
224+ ExecStart = "${cfg.package}/bin/buildbot start --nodaemon ${cfg.buildbotDir}";
230225 };
231226
232227 preStart = ''
nixos/modules/services/continuous-integration/buildbot/worker.nix+7−9
@@ -31,7 +31,7 @@ in {
3131
3232 extraGroups = mkOption {
3333 type = types.listOf types.str;
34− default = [ "nixbld" ];
34+ default = [];
3535 description = "List of extra groups that the Buildbot Worker user should be a part of.";
3636 };
3737
@@ -68,13 +68,14 @@ in {
6868 package = mkOption {
6969 type = types.package;
7070 default = pkgs.buildbot-worker;
71+ defaultText = "pkgs.buildbot-worker";
7172 description = "Package to use for buildbot worker.";
72− example = pkgs.buildbot-worker;
73+ example = literalExample "pkgs.buildbot-worker";
7374 };
7475
7576 packages = mkOption {
7677 default = [ ];
77− example = [ pkgs.git ];
78+ example = literalExample "[ pkgs.git ]";
7879 type = types.listOf types.package;
7980 description = "Packages to add to PATH for the buildbot process.";
8081 };
@@ -100,24 +101,21 @@ in {
100101
101102 systemd.services.buildbot-worker = {
102103 description = "Buildbot Worker.";
103− after = [ "network.target" ];
104+ after = [ "network.target" "buildbot-master.service" ];
104105 wantedBy = [ "multi-user.target" ];
105− wants = [ "buildbot-master.service" ];
106106 path = cfg.packages;
107107
108108 preStart = ''
109− # NOTE: ensure master has time to start in case running on localhost
110− ${pkgs.coreutils}/bin/sleep 4
111109 ${pkgs.coreutils}/bin/mkdir -vp ${cfg.buildbotDir}
112110 ${cfg.package}/bin/buildbot-worker create-worker ${cfg.buildbotDir} ${cfg.masterUrl} ${cfg.workerUser} ${cfg.workerPass}
113111 '';
114112
115113 serviceConfig = {
116− Type = "forking";
114+ Type = "simple";
117115 User = cfg.user;
118116 Group = cfg.group;
119117 WorkingDirectory = cfg.home;
120− ExecStart = "${cfg.package}/bin/buildbot-worker start ${cfg.buildbotDir}";
118+ ExecStart = "${cfg.package}/bin/buildbot-worker start --nodaemon ${cfg.buildbotDir}";
121119 };
122120
123121 };
nixos/modules/services/continuous-integration/gitlab-runner.nix+12−1
@@ -20,6 +20,14 @@ in
2020 description = "The working directory used";
2121 };
2222
23+ package = mkOption {
24+ description = "Gitlab Runner package to use";
25+ default = pkgs.gitlab-runner;
26+ defaultText = "pkgs.gitlab-runner";
27+ type = types.package;
28+ example = literalExample "pkgs.gitlab-runner_1_11";
29+ };
30+
2331 };
2432
2533 config = mkIf cfg.enable {
@@ -29,7 +37,7 @@ in
2937 requires = [ "docker.service" ];
3038 wantedBy = [ "multi-user.target" ];
3139 serviceConfig = {
32− ExecStart = ''${pkgs.gitlab-runner.bin}/bin/gitlab-runner run \
40+ ExecStart = ''${cfg.package.bin}/bin/gitlab-runner run \
3341 --working-directory ${cfg.workDir} \
3442 --config ${configFile} \
3543 --service gitlab-runner \
@@ -38,6 +46,9 @@ in
3846 };
3947 };
4048
49+ # Make the gitlab-runner command availabe so users can query the runner
50+ environment.systemPackages = [ cfg.package ];
51+
4152 users.extraUsers.gitlab-runner = {
4253 group = "gitlab-runner";
4354 extraGroups = [ "docker" ];
nixos/modules/services/continuous-integration/jenkins/job-builder.nix+22−4
@@ -29,6 +29,22 @@ in {
2929 '';
3030 };
3131
32+ accessUser = mkOption {
33+ default = "";
34+ type = types.str;
35+ description = ''
36+ User id in Jenkins used to reload config.
37+ '';
38+ };
39+
40+ accessToken = mkOption {
41+ default = "";
42+ type = types.str;
43+ description = ''
44+ User token in Jenkins used to reload config.
45+ '';
46+ };
47+
3248 yamlJobs = mkOption {
3349 default = "";
3450 type = types.lines;
@@ -110,6 +126,11 @@ in {
110126 # Stamp file is placed in $JENKINS_HOME/jobs/$JOB_NAME/ to indicate
111127 # ownership. Enables tracking and removal of stale jobs.
112128 ownerStamp = ".config-xml-managed-by-nixos-jenkins-job-builder";
129+ reloadScript = ''
130+ echo "Asking Jenkins to reload config"
131+ CRUMB=$(curl -s 'http://${cfg.accessUser}:${cfg.accessToken}@${jenkinsCfg.listenAddress}:${toString jenkinsCfg.port}${jenkinsCfg.prefix}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
132+ curl --silent -X POST -H "$CRUMB" http://${cfg.accessUser}:${cfg.accessToken}@${jenkinsCfg.listenAddress}:${toString jenkinsCfg.port}${jenkinsCfg.prefix}/reload
133+ '';
113134 in
114135 ''
115136 rm -rf ${jobBuilderOutputDir}
@@ -142,10 +163,7 @@ in {
142163 echo "Deleting stale job \"$jobname\""
143164 rm -rf "$jobdir"
144165 done
145−
146− echo "Asking Jenkins to reload config"
147− curl --silent -X POST http://${jenkinsCfg.listenAddress}:${toString jenkinsCfg.port}${jenkinsCfg.prefix}/reload
148− '';
166+ '' + (if cfg.accessUser != "" then reloadScript else "");
149167 serviceConfig = {
150168 User = jenkinsCfg.user;
151169 RuntimeDirectory = "jenkins-job-builder";
nixos/modules/services/databases/cassandra.nix−1
@@ -310,7 +310,6 @@ in {
310310 autoBootstrap = mkOption {
311311 description = "It makes new (non-seed) nodes automatically migrate the right data to themselves.";
312312 default = true;
313− example = true;
314313 type = types.bool;
315314 };
316315 streamingSocketTimoutInMS = mkOption {
nixos/modules/services/databases/couchdb.nix+25−5
@@ -4,20 +4,29 @@ with lib;
44
55let
66 cfg = config.services.couchdb;
7− configFile = pkgs.writeText "couchdb.ini"
7+ useVersion2 = strings.versionAtLeast (strings.getVersion cfg.package) "2.0";
8+ configFile = pkgs.writeText "couchdb.ini" (
89 ''
910 [couchdb]
1011 database_dir = ${cfg.databaseDir}
1112 uri_file = ${cfg.uriFile}
1213 view_index_dir = ${cfg.viewIndexDir}
13−
14+ '' + (if useVersion2 then
15+ ''
16+ [chttpd]
17+ '' else
18+ ''
1419 [httpd]
20+ '') +
21+ ''
1522 port = ${toString cfg.port}
1623 bind_address = ${cfg.bindAddress}
1724
1825 [log]
1926 file = ${cfg.logFile}
20− '';
27+ '');
28+ executable = if useVersion2 then "${cfg.package}/bin/couchdb"
29+ else ''${cfg.package}/bin/couchdb -a ${configFile} -a ${pkgs.writeText "couchdb-extra.ini" cfg.extraConfig} -a ${cfg.configFile}'';
2130
2231in {
2332
@@ -130,7 +139,6 @@ in {
130139
131140 configFile = mkOption {
132141 type = types.string;
133− default = "/var/lib/couchdb/couchdb.ini";
134142 description = ''
135143 Configuration file for persisting runtime changes. File
136144 needs to be readable and writable from couchdb user/group.
@@ -147,6 +155,9 @@ in {
147155
148156 environment.systemPackages = [ cfg.package ];
149157
158+ services.couchdb.configFile = mkDefault
159+ (if useVersion2 then "/var/lib/couchdb/local.ini" else "/var/lib/couchdb/couchdb.ini");
160+
150161 systemd.services.couchdb = {
151162 description = "CouchDB Server";
152163 wantedBy = [ "multi-user.target" ];
@@ -170,11 +181,20 @@ in {
170181 fi
171182 '';
172183
184+ environment = mkIf useVersion2 {
185+ # we are actually specifying 4 configuration files:
186+ # 1. the preinstalled default.ini
187+ # 2. the module configuration
188+ # 3. the extraConfig from the module options
189+ # 4. the locally writable config file, which couchdb itself writes to
190+ ERL_FLAGS= ''-couch_ini ${cfg.package}/etc/default.ini ${configFile} ${pkgs.writeText "couchdb-extra.ini" cfg.extraConfig} ${cfg.configFile}'';
191+ };
192+
173193 serviceConfig = {
174194 PermissionsStartOnly = true;
175195 User = cfg.user;
176196 Group = cfg.group;
177− ExecStart = "${cfg.package}/bin/couchdb -a ${configFile} -a ${pkgs.writeText "couchdb-extra.ini" cfg.extraConfig} -a ${cfg.configFile}";
197+ ExecStart = executable;
178198 };
179199 };
180200
nixos/modules/services/databases/neo4j.nix+11−6
@@ -27,12 +27,17 @@ let
2727 ''}
2828 dbms.shell.enabled=true
2929 ${cfg.extraServerConfig}
30− '';
3130
32− wrapperConfig = pkgs.writeText "neo4j-wrapper.conf" ''
31+ # Default JVM parameters from neo4j.conf
32+ dbms.jvm.additional=-XX:+UseG1GC
33+ dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow
34+ dbms.jvm.additional=-XX:+AlwaysPreTouch
35+ dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
36+ dbms.jvm.additional=-XX:+TrustFinalNonStaticFields
37+ dbms.jvm.additional=-XX:+DisableExplicitGC
38+ dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048
39+
3340 dbms.jvm.additional=-Dunsupported.dbms.udc.source=tarball
34− dbms.jvm.additional=-XX:+UseConcMarkSweepGC
35− dbms.jvm.additional=-XX:+CMSClassUnloadingEnabled
3641 '';
3742
3843in {
@@ -123,16 +128,16 @@ in {
123128 ExecStart = "${cfg.package}/bin/neo4j console";
124129 User = "neo4j";
125130 PermissionsStartOnly = true;
131+ LimitNOFILE = 40000;
126132 };
127133 preStart = ''
128134 mkdir -m 0700 -p ${cfg.dataDir}/{data/graph.db,conf,logs}
129135 ln -fs ${serverConfig} ${cfg.dataDir}/conf/neo4j.conf
130− ln -fs ${wrapperConfig} ${cfg.dataDir}/conf/neo4j-wrapper.conf
131136 if [ "$(id -u)" = 0 ]; then chown -R neo4j ${cfg.dataDir}; fi
132137 '';
133138 };
134139
135− environment.systemPackages = [ pkgs.neo4j ];
140+ environment.systemPackages = [ cfg.package ];
136141
137142 users.extraUsers = singleton {
138143 name = "neo4j";
nixos/modules/services/databases/openldap.nix+4−5
@@ -25,7 +25,6 @@ in
2525 description = "
2626 Whether to enable the ldap server.
2727 ";
28− example = true;
2928 };
3029
3130 user = mkOption {
@@ -68,10 +67,10 @@ in
6867 ";
6968 example = literalExample ''
7069 '''
71− include ${pkgs.openldap.out}/etc/openldap/schema/core.schema
72− include ${pkgs.openldap.out}/etc/openldap/schema/cosine.schema
73− include ${pkgs.openldap.out}/etc/openldap/schema/inetorgperson.schema
74− include ${pkgs.openldap.out}/etc/openldap/schema/nis.schema
70+ include ${pkgs.openldap.out}/etc/schema/core.schema
71+ include ${pkgs.openldap.out}/etc/schema/cosine.schema
72+ include ${pkgs.openldap.out}/etc/schema/inetorgperson.schema
73+ include ${pkgs.openldap.out}/etc/schema/nis.schema
7574
7675 database bdb
7776 suffix dc=example,dc=org
nixos/modules/services/databases/stanchion.nix−10
@@ -76,14 +76,6 @@ in
7676 '';
7777 };
7878
79− stanchionSsl = mkOption {
80− type = types.bool;
81− default = true;
82− description = ''
83− Tell stanchion to use SSL.
84− '';
85− };
86−
8779 distributedCookie = mkOption {
8880 type = types.str;
8981 default = "riak";
@@ -148,8 +140,6 @@ in
148140
149141 distributed_cookie = ${cfg.distributedCookie}
150142
151− stanchion_ssl=${if cfg.stanchionSsl then "on" else "off"}
152−
153143 ${cfg.extraConfig}
154144 '';
155145
nixos/modules/services/editors/emacs.nix−3
@@ -21,7 +21,6 @@ in {
2121 enable = mkOption {
2222 type = types.bool;
2323 default = false;
24− example = true;
2524 description = ''
2625 Whether to enable a user service for the Emacs daemon. Use <literal>emacsclient</literal> to connect to the
2726 daemon. If <literal>true</literal>, <varname>services.emacs.install</varname> is
@@ -32,7 +31,6 @@ in {
3231 install = mkOption {
3332 type = types.bool;
3433 default = false;
35− example = true;
3634 description = ''
3735 Whether to install a user service for the Emacs daemon. Once
3836 the service is started, use emacsclient to connect to the
@@ -57,7 +55,6 @@ in {
5755 defaultEditor = mkOption {
5856 type = types.bool;
5957 default = false;
60− example = true;
6158 description = ''
6259 When enabled, configures emacsclient to be the default editor
6360 using the EDITOR environment variable.
nixos/modules/services/editors/emacs.xml+3−2
@@ -79,10 +79,11 @@
7979 </listitem>
8080 </varlistentry>
8181 <varlistentry>
82− <term><varname>emacs24Macport</varname></term>
82+ <term><varname>emacsMacport</varname></term>
83+ <term><varname>emacs25Macport</varname></term>
8384 <listitem>
8485 <para>
85− Emacs 24 with the "Mac port" patches, providing a more
86+ Emacs 25 with the "Mac port" patches, providing a more
8687 native look and feel under OS X.
8788 </para>
8889 </listitem>
nixos/modules/services/hardware/bluetooth.nix+55−15
@@ -1,9 +1,10 @@
11{ config, lib, pkgs, ... }:
22
33with lib;
4+
45let
5− isBluez4 = config.services.xserver.desktopManager.kde4.enable;
6− bluez-bluetooth = if isBluez4 then pkgs.bluez4 else pkgs.bluez;
6+ bluez-bluetooth = pkgs.bluez;
7+ cfg = config.hardware.bluetooth;
78
89in
910
@@ -13,33 +14,72 @@ in
1314
1415 options = {
1516
16− hardware.bluetooth.enable = mkOption {
17− type = types.bool;
18− default = false;
19− description = "Whether to enable support for Bluetooth.";
17+ hardware.bluetooth = {
18+ enable = mkEnableOption "support for Bluetooth.";
19+
20+ powerOnBoot = mkOption {
21+ type = types.bool;
22+ default = true;
23+ description = "Whether to power up the default Bluetooth controller on boot.";
24+ };
25+
26+ extraConfig = mkOption {
27+ type = types.lines;
28+ default = "";
29+ example = ''
30+ [General]
31+ ControllerMode = bredr
32+ '';
33+ description = ''
34+ Set additional configuration for system-wide bluetooth (/etc/bluetooth/main.conf).
35+ '';
36+ };
2037 };
2138
2239 };
2340
2441 ###### implementation
2542
26− config = mkIf config.hardware.bluetooth.enable {
43+ config = mkIf cfg.enable {
2744
2845 environment.systemPackages = [ bluez-bluetooth pkgs.openobex pkgs.obexftp ];
2946
30− services.udev.packages = [ bluez-bluetooth ];
47+ environment.etc = singleton {
48+ source = pkgs.writeText "main.conf" cfg.extraConfig;
49+ target = "bluetooth/main.conf";
50+ };
3151
52+ services.udev.packages = [ bluez-bluetooth ];
3253 services.dbus.packages = [ bluez-bluetooth ];
54+ systemd.packages = [ bluez-bluetooth ];
55+
56+ services.udev.extraRules = optionalString cfg.powerOnBoot ''
57+ ACTION=="add", KERNEL=="hci[0-9]*", ENV{SYSTEMD_WANTS}="bluetooth-power@%k.service"
58+ '';
59+
60+ systemd.services = {
61+ bluetooth = {
62+ wantedBy = [ "bluetooth.target" ];
63+ aliases = [ "dbus-org.bluez.service" ];
64+ };
65+
66+ "bluetooth-power@" = mkIf cfg.powerOnBoot {
67+ description = "Power up bluetooth controller";
68+ after = [
69+ "bluetooth.service"
70+ "suspend.target"
71+ "sys-subsystem-bluetooth-devices-%i.device"
72+ ];
73+ wantedBy = [ "suspend.target" ];
74+
75+ serviceConfig.Type = "oneshot";
76+ serviceConfig.ExecStart = "${pkgs.bluez.out}/bin/hciconfig %i up";
77+ };
3378
34− systemd.packages = [ bluez-bluetooth ];
35−
36− systemd.services.bluetooth = {
37− wantedBy = [ "bluetooth.target" ];
38− aliases = [ "dbus-org.bluez.service" ];
3979 };
4080
41− systemd.user.services.obex = mkIf (!isBluez4) {
42− aliases = [ "dbus-org.bluez.obex.service" ];
81+ systemd.user.services = {
82+ obex.aliases = [ "dbus-org.bluez.obex.service" ];
4383 };
4484
4585 };
nixos/modules/services/hardware/udev.nix+4−2
@@ -35,6 +35,7 @@ let
3535 udevRules = pkgs.runCommand "udev-rules"
3636 { preferLocalBuild = true;
3737 allowSubstitutes = false;
38+ packages = unique (map toString cfg.packages);
3839 }
3940 ''
4041 mkdir -p $out
@@ -45,7 +46,7 @@ let
4546 echo 'ENV{PATH}="${udevPath}/bin:${udevPath}/sbin"' > $out/00-path.rules
4647
4748 # Add the udev rules from other packages.
48− for i in ${toString cfg.packages}; do
49+ for i in $packages; do
4950 echo "Adding rules for package $i"
5051 for j in $i/{etc,lib}/udev/rules.d/*; do
5152 echo "Copying $j to $out/$(basename $j)"
@@ -132,10 +133,11 @@ let
132133 hwdbBin = pkgs.runCommand "hwdb.bin"
133134 { preferLocalBuild = true;
134135 allowSubstitutes = false;
136+ packages = unique (map toString ([udev] ++ cfg.packages));
135137 }
136138 ''
137139 mkdir -p etc/udev/hwdb.d
138− for i in ${toString ([udev] ++ cfg.packages)}; do
140+ for i in $packages; do
139141 echo "Adding hwdb files for package $i"
140142 for j in $i/{etc,lib}/udev/hwdb.d/*; do
141143 ln -s $j etc/udev/hwdb.d/$(basename $j)
nixos/modules/services/logging/awstats.nix+1−1
@@ -38,7 +38,7 @@ in
3838 Specification of the time at which awstats will get updated.
3939 (in the format described by <citerefentry>
4040 <refentrytitle>systemd.time</refentrytitle>
41− <manvolnum>5</manvolnum></citerefentry>)
41+ <manvolnum>7</manvolnum></citerefentry>)
4242 '';
4343 };
4444
nixos/modules/services/logging/fluentd.nix+1
@@ -25,6 +25,7 @@ in {
2525 package = mkOption {
2626 type = types.path;
2727 default = pkgs.fluentd;
28+ defaultText = "pkgs.fluentd";
2829 description = "The fluentd package to use.";
2930 };
3031 };
nixos/modules/services/logging/graylog.nix+23
@@ -17,9 +17,16 @@ let
1717 elasticsearch_discovery_zen_ping_unicast_hosts = ${cfg.elasticsearchDiscoveryZenPingUnicastHosts}
1818 message_journal_dir = ${cfg.messageJournalDir}
1919 mongodb_uri = ${cfg.mongodbUri}
20+ plugin_dir = /var/lib/graylog/plugins
2021
2122 ${cfg.extraConfig}
2223 '';
24+
25+ glPlugins = pkgs.buildEnv {
26+ name = "graylog-plugins";
27+ paths = cfg.plugins;
28+ };
29+
2330in
2431
2532{
@@ -121,6 +128,12 @@ in
121128 description = "Any other configuration options you might want to add";
122129 };
123130
131+ plugins = mkOption {
132+ description = "Extra graylog plugins";
133+ default = [ ];
134+ type = types.listOf types.package;
135+ };
136+
124137 };
125138 };
126139
@@ -146,6 +159,16 @@ in
146159 path = [ pkgs.openjdk8 pkgs.which pkgs.procps ];
147160 preStart = ''
148161 mkdir -p /var/lib/graylog -m 755
162+
163+ rm -rf /var/lib/graylog/plugins || true
164+ mkdir -p /var/lib/graylog/plugins -m 755
165+
166+ for declarativeplugin in `ls ${glPlugins}/bin/`; do
167+ ln -sf ${glPlugins}/bin/$declarativeplugin /var/lib/graylog/plugins/$declarativeplugin
168+ done
169+ for includedplugin in `ls ${cfg.package}/plugin/`; do
170+ ln -s ${cfg.package}/plugin/$includedplugin /var/lib/graylog/plugins/$includedplugin || true
171+ done
149172 chown -R ${cfg.user} /var/lib/graylog
150173
151174 mkdir -p ${cfg.messageJournalDir} -m 755
nixos/modules/services/logging/logcheck.nix+4−4
@@ -29,8 +29,8 @@ let
2929 };
3030
3131 cronJob = ''
32− @reboot logcheck env PATH=/var/setuid-wrappers:$PATH nice -n10 ${pkgs.logcheck}/sbin/logcheck -R ${flags}
33− 2 ${cfg.timeOfDay} * * * logcheck env PATH=/var/setuid-wrappers:$PATH nice -n10 ${pkgs.logcheck}/sbin/logcheck ${flags}
32+ @reboot logcheck env PATH=/run/wrappers/bin:$PATH nice -n10 ${pkgs.logcheck}/sbin/logcheck -R ${flags}
33+ 2 ${cfg.timeOfDay} * * * logcheck env PATH=/run/wrappers/bin:$PATH nice -n10 ${pkgs.logcheck}/sbin/logcheck ${flags}
3434 '';
3535
3636 writeIgnoreRule = name: {level, regex, ...}:
@@ -184,7 +184,7 @@ in
184184 description = ''
185185 This option defines extra ignore rules.
186186 '';
187− type = with types; loaOf (submodule ignoreOptions);
187+ type = with types; attrsOf (submodule ignoreOptions);
188188 };
189189
190190 ignoreCron = mkOption {
@@ -192,7 +192,7 @@ in
192192 description = ''
193193 This option defines extra ignore rules for cronjobs.
194194 '';
195− type = with types; loaOf (submodule ignoreCronOptions);
195+ type = with types; attrsOf (submodule ignoreCronOptions);
196196 };
197197
198198 extraGroups = mkOption {
nixos/modules/services/mail/dovecot.nix+1−1
@@ -13,7 +13,7 @@ let
1313 ''
1414 base_dir = ${baseDir}
1515 protocols = ${concatStringsSep " " cfg.protocols}
16− sendmail_path = /var/setuid-wrappers/sendmail
16+ sendmail_path = /run/wrappers/bin/sendmail
1717 ''
1818
1919 (if isNull cfg.sslServerCert then ''
nixos/modules/services/mail/exim.nix+2−2
@@ -70,7 +70,7 @@ in
7070 etc."exim.conf".text = ''
7171 exim_user = ${cfg.user}
7272 exim_group = ${cfg.group}
73− exim_path = /var/setuid-wrappers/exim
73+ exim_path = /run/wrappers/bin/exim
7474 spool_directory = ${cfg.spoolDir}
7575 ${cfg.config}
7676 '';
@@ -89,7 +89,7 @@ in
8989 gid = config.ids.gids.exim;
9090 };
9191
92− security.setuidPrograms = [ "exim" ];
92+ security.wrappers.exim.source = "${exim}/bin/exim";
9393
9494 systemd.services.exim = {
9595 description = "Exim Mail Daemon";
nixos/modules/services/mail/mail.nix+1−1
@@ -26,7 +26,7 @@ with lib;
2626
2727 config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
2828
29− security.setuidOwners = [ config.services.mail.sendmailSetuidWrapper ];
29+ security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
3030
3131 };
3232
nixos/modules/services/mail/mlmmj.nix+1−1
@@ -18,7 +18,7 @@ let
1818 footer = domain: list: "To unsubscribe send a mail to ${list}+unsubscribe@${domain}";
1919 createList = d: l: ''
2020 ${pkgs.coreutils}/bin/mkdir -p ${listCtl d l}
21− echo ${listAddress d l} > ${listCtl d l}/listadress
21+ echo ${listAddress d l} > ${listCtl d l}/listaddress
2222 echo "${lib.concatStringsSep "\n" (customHeaders d l)}" > ${listCtl d l}/customheaders
2323 echo ${footer d l} > ${listCtl d l}/footer
2424 echo ${subjectPrefix l} > ${listCtl d l}/prefix
nixos/modules/services/mail/offlineimap.nix−1
@@ -12,7 +12,6 @@ in {
1212 install = mkOption {
1313 type = types.bool;
1414 default = false;
15− example = true;
1615 description = ''
1716 Whether to install a user service for Offlineimap. Once
1817 the service is started, emails will be fetched automatically.
nixos/modules/services/mail/rmilter.nix+107−84
@@ -5,35 +5,38 @@ with lib;
55let
66
77 rspamdCfg = config.services.rspamd;
8+ postfixCfg = config.services.postfix;
89 cfg = config.services.rmilter;
910
10− inetSockets = map (sock: let s = stringSplit ":" sock; in "inet:${last s}:${head s}") cfg.bindInetSockets;
11− unixSockets = map (sock: "unix:${sock}") cfg.bindUnixSockets;
11+ inetSocket = addr: port: "inet:[${toString port}@${addr}]";
12+ unixSocket = sock: "unix:${sock}";
1213
13− allSockets = unixSockets ++ inetSockets;
14+ systemdSocket = if cfg.bindSocket.type == "unix" then cfg.bindSocket.path
15+ else "${cfg.bindSocket.address}:${toString cfg.bindSocket.port}";
16+ rmilterSocket = if cfg.bindSocket.type == "unix" then unixSocket cfg.bindSocket.path
17+ else inetSocket cfg.bindSocket.address cfg.bindSocket.port;
1418
1519 rmilterConf = ''
16−pidfile = /run/rmilter/rmilter.pid;
17−bind_socket = ${if cfg.socketActivation then "fd:3" else concatStringsSep ", " allSockets};
18−tempdir = /tmp;
19−
20+ pidfile = /run/rmilter/rmilter.pid;
21+ bind_socket = ${if cfg.socketActivation then "fd:3" else rmilterSocket};
22+ tempdir = /tmp;
2023 '' + (with cfg.rspamd; if enable then ''
21−spamd {
22− servers = ${concatStringsSep ", " servers};
23− connect_timeout = 1s;
24− results_timeout = 20s;
25− error_time = 10;
26− dead_time = 300;
27− maxerrors = 10;
28− reject_message = "${rejectMessage}";
29− ${optionalString (length whitelist != 0) "whitelist = ${concatStringsSep ", " whitelist};"}
30−
31− # rspamd_metric - metric for using with rspamd
32− # Default: "default"
33− rspamd_metric = "default";
34− ${extraConfig}
35−};
36− '' else "") + cfg.extraConfig;
24+ spamd {
25+ servers = ${concatStringsSep ", " servers};
26+ connect_timeout = 1s;
27+ results_timeout = 20s;
28+ error_time = 10;
29+ dead_time = 300;
30+ maxerrors = 10;
31+ reject_message = "${rejectMessage}";
32+ ${optionalString (length whitelist != 0) "whitelist = ${concatStringsSep ", " whitelist};"}
33+
34+ # rspamd_metric - metric for using with rspamd
35+ # Default: "default"
36+ rspamd_metric = "default";
37+ ${extraConfig}
38+ };
39+ '' else "") + cfg.extraConfig;
3740
3841 rmilterConfigFile = pkgs.writeText "rmilter.conf" rmilterConf;
3942
@@ -48,11 +51,13 @@ in
4851 services.rmilter = {
4952
5053 enable = mkOption {
54+ type = types.bool;
5155 default = cfg.rspamd.enable;
5256 description = "Whether to run the rmilter daemon.";
5357 };
5458
5559 debug = mkOption {
60+ type = types.bool;
5661 default = false;
5762 description = "Whether to run the rmilter daemon in debug mode.";
5863 };
@@ -73,25 +78,37 @@ in
7378 '';
7479 };
7580
76− bindUnixSockets = mkOption {
77− type = types.listOf types.str;
78− default = ["/run/rmilter/rmilter.sock"];
81+ bindSocket.type = mkOption {
82+ type = types.enum [ "unix" "inet" ];
83+ default = "unix";
7984 description = ''
80− Unix domain sockets to listen for MTA requests.
85+ What kind of socket rmilter should listen on. Either "unix"
86+ for an Unix domain socket or "inet" for a TCP socket.
8187 '';
82− example = ''
83− [ "/run/rmilter.sock"]
88+ };
89+
90+ bindSocket.path = mkOption {
91+ type = types.str;
92+ default = "/run/rmilter/rmilter.sock";
93+ description = ''
94+ Path to Unix domain socket to listen on.
8495 '';
8596 };
8697
87− bindInetSockets = mkOption {
88− type = types.listOf types.str;
89− default = [];
98+ bindSocket.address = mkOption {
99+ type = types.str;
100+ default = "::1";
101+ example = "0.0.0.0";
90102 description = ''
91− Inet addresses to listen (in format accepted by systemd.socket)
103+ Inet address to listen on.
92104 '';
93− example = ''
94− ["127.0.0.1:11990"]
105+ };
106+
107+ bindSocket.port = mkOption {
108+ type = types.int;
109+ default = 11990;
110+ description = ''
111+ Inet port to listen on.
95112 '';
96113 };
97114
@@ -100,14 +117,16 @@ in
100117 default = true;
101118 description = ''
102119 Enable systemd socket activation for rmilter.
103− (disabling socket activation not recommended
104− when unix socket used, and follow to wrong
105− permissions on unix domain socket.)
120+
121+ Disabling socket activation is not recommended when a Unix
122+ domain socket is used and could lead to incorrect
123+ permissions.
106124 '';
107125 };
108126
109127 rspamd = {
110128 enable = mkOption {
129+ type = types.bool;
111130 default = rspamdCfg.enable;
112131 description = "Whether to use rspamd to filter mails";
113132 };
@@ -157,13 +176,9 @@ in
157176 type = types.str;
158177 description = "Addon to postfix configuration";
159178 default = ''
160−smtpd_milters = ${head allSockets}
161−# or for TCP socket
162−# # smtpd_milters = inet:localhost:9900
163−milter_protocol = 6
164−milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
165−# skip mail without checks if milter will die
166−milter_default_action = accept
179+ smtpd_milters = ${rmilterSocket}
180+ milter_protocol = 6
181+ milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
167182 '';
168183 };
169184 };
@@ -175,52 +190,60 @@ milter_default_action = accept
175190
176191 ###### implementation
177192
178− config = mkIf cfg.enable {
193+ config = mkMerge [
179194
180− users.extraUsers = singleton {
181− name = cfg.user;
182− description = "rspamd daemon";
183− uid = config.ids.uids.rmilter;
184− group = cfg.group;
185− };
195+ (mkIf cfg.enable {
186196
187− users.extraGroups = singleton {
188− name = cfg.group;
189− gid = config.ids.gids.rmilter;
190− };
197+ users.extraUsers = singleton {
198+ name = cfg.user;
199+ description = "rmilter daemon";
200+ uid = config.ids.uids.rmilter;
201+ group = cfg.group;
202+ };
191203
192− systemd.services.rmilter = {
193− description = "Rmilter Service";
194−
195− wantedBy = [ "multi-user.target" ];
196− after = [ "network.target" ];
197−
198− serviceConfig = {
199− ExecStart = "${pkgs.rmilter}/bin/rmilter ${optionalString cfg.debug "-d"} -n -c ${rmilterConfigFile}";
200− ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID";
201− User = cfg.user;
202− Group = cfg.group;
203− PermissionsStartOnly = true;
204− Restart = "always";
205− RuntimeDirectory = "rmilter";
206− RuntimeDirectoryMode = "0755";
204+ users.extraGroups = singleton {
205+ name = cfg.group;
206+ gid = config.ids.gids.rmilter;
207207 };
208208
209− };
209+ systemd.services.rmilter = {
210+ description = "Rmilter Service";
211+
212+ wantedBy = [ "multi-user.target" ];
213+ after = [ "network.target" ];
214+
215+ serviceConfig = {
216+ ExecStart = "${pkgs.rmilter}/bin/rmilter ${optionalString cfg.debug "-d"} -n -c ${rmilterConfigFile}";
217+ ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID";
218+ User = cfg.user;
219+ Group = cfg.group;
220+ PermissionsStartOnly = true;
221+ Restart = "always";
222+ RuntimeDirectory = "rmilter";
223+ RuntimeDirectoryMode = "0750";
224+ };
210225
211− systemd.sockets.rmilter = mkIf cfg.socketActivation {
212− description = "Rmilter service socket";
213− wantedBy = [ "sockets.target" ];
214− socketConfig = {
215− ListenStream = cfg.bindUnixSockets ++ cfg.bindInetSockets;
216− SocketUser = cfg.user;
217− SocketGroup = cfg.group;
218− SocketMode = "0666";
219226 };
220− };
221227
222− services.postfix.extraConfig = optionalString cfg.postfix.enable cfg.postfix.configFragment;
223− users.users.postfix.extraGroups = [ cfg.group ];
224− };
228+ systemd.sockets.rmilter = mkIf cfg.socketActivation {
229+ description = "Rmilter service socket";
230+ wantedBy = [ "sockets.target" ];
231+ socketConfig = {
232+ ListenStream = systemdSocket;
233+ SocketUser = cfg.user;
234+ SocketGroup = cfg.group;
235+ SocketMode = "0660";
236+ };
237+ };
238+ })
239+
240+ (mkIf (cfg.enable && cfg.rspamd.enable && rspamdCfg.enable) {
241+ users.extraUsers.${cfg.user}.extraGroups = [ rspamdCfg.group ];
242+ })
225243
244+ (mkIf (cfg.enable && cfg.postfix.enable) {
245+ services.postfix.extraConfig = cfg.postfix.configFragment;
246+ users.extraUsers.${postfixCfg.user}.extraGroups = [ cfg.group ];
247+ })
248+ ];
226249}
nixos/modules/services/mail/rspamd.nix+4−1
@@ -53,8 +53,11 @@ in
5353 bindSocket = mkOption {
5454 type = types.listOf types.str;
5555 default = [
56− "/run/rspamd/rspamd.sock mode=0666 owner=${cfg.user}"
56+ "/run/rspamd/rspamd.sock mode=0660 owner=${cfg.user} group=${cfg.group}"
5757 ];
58+ defaultText = ''[
59+ "/run/rspamd/rspamd.sock mode=0660 owner=${cfg.user} group=${cfg.group}"
60+ ]'';
5861 description = ''
5962 List of sockets to listen, in format acceptable by rspamd
6063 '';
nixos/modules/services/misc/apache-kafka.nix+5−9
@@ -19,13 +19,8 @@ let
1919 ${toString cfg.extraProperties}
2020 '';
2121
22− configDir = pkgs.buildEnv {
23− name = "apache-kafka-conf";
24− paths = [
25− (pkgs.writeTextDir "server.properties" serverProperties)
26− (pkgs.writeTextDir "log4j.properties" cfg.log4jProperties)
27− ];
28− };
22+ serverConfig = pkgs.writeText "server.properties" serverProperties;
23+ logConfig = pkgs.writeText "log4j.properties" cfg.log4jProperties;
2924
3025in {
3126
@@ -143,10 +138,11 @@ in {
143138 serviceConfig = {
144139 ExecStart = ''
145140 ${pkgs.jre}/bin/java \
146− -cp "${cfg.package}/libs/*:${configDir}" \
141+ -cp "${cfg.package}/libs/*" \
142+ -Dlog4j.configuration=file:${logConfig} \
147143 ${toString cfg.jvmOptions} \
148144 kafka.Kafka \
149− ${configDir}/server.properties
145+ ${serverConfig}
150146 '';
151147 User = "apache-kafka";
152148 PermissionsStartOnly = true;
nixos/modules/services/misc/geoip-updater.nixnew file+306
@@ -0,0 +1,306 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.geoip-updater;
7+
8+ dbBaseUrl = "https://geolite.maxmind.com/download/geoip/database";
9+
10+ randomizedTimerDelaySec = "3600";
11+
12+ # Use writeScriptBin instead of writeScript, so that argv[0] (logged to the
13+ # journal) doesn't include the long nix store path hash. (Prefixing the
14+ # ExecStart= command with '@' doesn't work because we start a shell (new
15+ # process) that creates a new argv[0].)
16+ geoip-updater = pkgs.writeScriptBin "geoip-updater" ''
17+ #!${pkgs.stdenv.shell}
18+ skipExisting=0
19+ debug()
20+ {
21+ echo "<7>$@"
22+ }
23+ info()
24+ {
25+ echo "<6>$@"
26+ }
27+ error()
28+ {
29+ echo "<3>$@"
30+ }
31+ die()
32+ {
33+ error "$@"
34+ exit 1
35+ }
36+ waitNetworkOnline()
37+ {
38+ ret=1
39+ for i in $(seq 6); do
40+ curl_out=$("${pkgs.curl.bin}/bin/curl" \
41+ --silent --fail --show-error --max-time 60 "${dbBaseUrl}" 2>&1)
42+ if [ $? -eq 0 ]; then
43+ debug "Server is reachable (try $i)"
44+ ret=0
45+ break
46+ else
47+ debug "Server is unreachable (try $i): $curl_out"
48+ sleep 10
49+ fi
50+ done
51+ return $ret
52+ }
53+ dbFnameTmp()
54+ {
55+ dburl=$1
56+ echo "${cfg.databaseDir}/.$(basename "$dburl")"
57+ }
58+ dbFnameTmpDecompressed()
59+ {
60+ dburl=$1
61+ echo "${cfg.databaseDir}/.$(basename "$dburl")" | sed 's/\.\(gz\|xz\)$//'
62+ }
63+ dbFname()
64+ {
65+ dburl=$1
66+ echo "${cfg.databaseDir}/$(basename "$dburl")" | sed 's/\.\(gz\|xz\)$//'
67+ }
68+ downloadDb()
69+ {
70+ dburl=$1
71+ curl_out=$("${pkgs.curl.bin}/bin/curl" \
72+ --silent --fail --show-error --max-time 900 -L -o "$(dbFnameTmp "$dburl")" "$dburl" 2>&1)
73+ if [ $? -ne 0 ]; then
74+ error "Failed to download $dburl: $curl_out"
75+ return 1
76+ fi
77+ }
78+ decompressDb()
79+ {
80+ fn=$(dbFnameTmp "$1")
81+ ret=0
82+ case "$fn" in
83+ *.gz)
84+ cmd_out=$("${pkgs.gzip}/bin/gzip" --decompress --force "$fn" 2>&1)
85+ ;;
86+ *.xz)
87+ cmd_out=$("${pkgs.xz.bin}/bin/xz" --decompress --force "$fn" 2>&1)
88+ ;;
89+ *)
90+ cmd_out=$(echo "File \"$fn\" is neither a .gz nor .xz file")
91+ false
92+ ;;
93+ esac
94+ if [ $? -ne 0 ]; then
95+ error "$cmd_out"
96+ ret=1
97+ fi
98+ }
99+ atomicRename()
100+ {
101+ dburl=$1
102+ mv "$(dbFnameTmpDecompressed "$dburl")" "$(dbFname "$dburl")"
103+ }
104+ removeIfNotInConfig()
105+ {
106+ # Arg 1 is the full path of an installed DB.
107+ # If the corresponding database is not specified in the NixOS config we
108+ # remove it.
109+ db=$1
110+ for cdb in ${lib.concatStringsSep " " cfg.databases}; do
111+ confDb=$(echo "$cdb" | sed 's/\.\(gz\|xz\)$//')
112+ if [ "$(basename "$db")" = "$(basename "$confDb")" ]; then
113+ return 0
114+ fi
115+ done
116+ rm "$db"
117+ if [ $? -eq 0 ]; then
118+ debug "Removed $(basename "$db") (not listed in services.geoip-updater.databases)"
119+ else
120+ error "Failed to remove $db"
121+ fi
122+ }
123+ removeUnspecifiedDbs()
124+ {
125+ for f in "${cfg.databaseDir}/"*; do
126+ test -f "$f" || continue
127+ case "$f" in
128+ *.dat|*.mmdb|*.csv)
129+ removeIfNotInConfig "$f"
130+ ;;
131+ *)
132+ debug "Not removing \"$f\" (unknown file extension)"
133+ ;;
134+ esac
135+ done
136+ }
137+ downloadAndInstall()
138+ {
139+ dburl=$1
140+ if [ "$skipExisting" -eq 1 -a -f "$(dbFname "$dburl")" ]; then
141+ debug "Skipping existing file: $(dbFname "$dburl")"
142+ return 0
143+ fi
144+ downloadDb "$dburl" || return 1
145+ decompressDb "$dburl" || return 1
146+ atomicRename "$dburl" || return 1
147+ info "Updated $(basename "$(dbFname "$dburl")")"
148+ }
149+ for arg in "$@"; do
150+ case "$arg" in
151+ --skip-existing)
152+ skipExisting=1
153+ info "Option --skip-existing is set: not updating existing databases"
154+ ;;
155+ *)
156+ error "Unknown argument: $arg";;
157+ esac
158+ done
159+ waitNetworkOnline || die "Network is down (${dbBaseUrl} is unreachable)"
160+ test -d "${cfg.databaseDir}" || die "Database directory (${cfg.databaseDir}) doesn't exist"
161+ debug "Starting update of GeoIP databases in ${cfg.databaseDir}"
162+ all_ret=0
163+ for db in ${lib.concatStringsSep " \\\n " cfg.databases}; do
164+ downloadAndInstall "${dbBaseUrl}/$db" || all_ret=1
165+ done
166+ removeUnspecifiedDbs || all_ret=1
167+ if [ $all_ret -eq 0 ]; then
168+ info "Completed GeoIP database update in ${cfg.databaseDir}"
169+ else
170+ error "Completed GeoIP database update in ${cfg.databaseDir}, with error(s)"
171+ fi
172+ # Hack to work around systemd journal race:
173+ # https://github.com/systemd/systemd/issues/2913
174+ sleep 2
175+ exit $all_ret
176+ '';
177+
178+in
179+
180+{
181+ options = {
182+ services.geoip-updater = {
183+ enable = mkOption {
184+ default = false;
185+ type = types.bool;
186+ description = ''
187+ Whether to enable periodic downloading of GeoIP databases from
188+ maxmind.com. You might want to enable this if you, for instance, use
189+ ntopng or Wireshark.
190+ '';
191+ };
192+
193+ interval = mkOption {
194+ type = types.str;
195+ default = "weekly";
196+ description = ''
197+ Update the GeoIP databases at this time / interval.
198+ The format is described in
199+ <citerefentry><refentrytitle>systemd.time</refentrytitle>
200+ <manvolnum>7</manvolnum></citerefentry>.
201+ To prevent load spikes on maxmind.com, the timer interval is
202+ randomized by an additional delay of ${randomizedTimerDelaySec}
203+ seconds. Setting a shorter interval than this is not recommended.
204+ '';
205+ };
206+
207+ databaseDir = mkOption {
208+ type = types.path;
209+ default = "/var/lib/geoip-databases";
210+ description = ''
211+ Directory that will contain GeoIP databases.
212+ '';
213+ };
214+
215+ databases = mkOption {
216+ type = types.listOf types.str;
217+ default = [
218+ "GeoLiteCountry/GeoIP.dat.gz"
219+ "GeoIPv6.dat.gz"
220+ "GeoLiteCity.dat.xz"
221+ "GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz"
222+ "asnum/GeoIPASNum.dat.gz"
223+ "asnum/GeoIPASNumv6.dat.gz"
224+ "GeoLite2-Country.mmdb.gz"
225+ "GeoLite2-City.mmdb.gz"
226+ ];
227+ description = ''
228+ Which GeoIP databases to update. The full URL is ${dbBaseUrl}/ +
229+ <literal>the_database</literal>.
230+ '';
231+ };
232+
233+ };
234+
235+ };
236+
237+ config = mkIf cfg.enable {
238+
239+ assertions = [
240+ { assertion = (builtins.filter
241+ (x: builtins.match ".*\.(gz|xz)$" x == null) cfg.databases) == [];
242+ message = ''
243+ services.geoip-updater.databases supports only .gz and .xz databases.
244+
245+ Current value:
246+ ${toString cfg.databases}
247+
248+ Offending element(s):
249+ ${toString (builtins.filter (x: builtins.match ".*\.(gz|xz)$" x == null) cfg.databases)};
250+ '';
251+ }
252+ ];
253+
254+ users.extraUsers.geoip = {
255+ group = "root";
256+ description = "GeoIP database updater";
257+ uid = config.ids.uids.geoip;
258+ };
259+
260+ systemd.timers.geoip-updater =
261+ { description = "GeoIP Updater Timer";
262+ partOf = [ "geoip-updater.service" ];
263+ wantedBy = [ "timers.target" ];
264+ timerConfig.OnCalendar = cfg.interval;
265+ timerConfig.Persistent = "true";
266+ timerConfig.RandomizedDelaySec = randomizedTimerDelaySec;
267+ };
268+
269+ systemd.services.geoip-updater = {
270+ description = "GeoIP Updater";
271+ after = [ "network-online.target" "nss-lookup.target" ];
272+ wants = [ "network-online.target" ];
273+ preStart = ''
274+ mkdir -p "${cfg.databaseDir}"
275+ chmod 755 "${cfg.databaseDir}"
276+ chown geoip:root "${cfg.databaseDir}"
277+ '';
278+ serviceConfig = {
279+ ExecStart = "${geoip-updater}/bin/geoip-updater";
280+ User = "geoip";
281+ PermissionsStartOnly = true;
282+ };
283+ };
284+
285+ systemd.services.geoip-updater-setup = {
286+ description = "GeoIP Updater Setup";
287+ after = [ "network-online.target" "nss-lookup.target" ];
288+ wants = [ "network-online.target" ];
289+ wantedBy = [ "multi-user.target" ];
290+ conflicts = [ "geoip-updater.service" ];
291+ preStart = ''
292+ mkdir -p "${cfg.databaseDir}"
293+ chmod 755 "${cfg.databaseDir}"
294+ chown geoip:root "${cfg.databaseDir}"
295+ '';
296+ serviceConfig = {
297+ ExecStart = "${geoip-updater}/bin/geoip-updater --skip-existing";
298+ User = "geoip";
299+ PermissionsStartOnly = true;
300+ # So it won't be (needlessly) restarted:
301+ RemainAfterExit = true;
302+ };
303+ };
304+
305+ };
306+}
nixos/modules/services/misc/gitlab.nix+3−2
@@ -481,6 +481,7 @@ in {
481481 mkdir -p ${cfg.statePath}/repositories
482482 mkdir -p ${gitlabConfig.production.shared.path}/artifacts
483483 mkdir -p ${gitlabConfig.production.shared.path}/lfs-objects
484+ mkdir -p ${gitlabConfig.production.shared.path}/pages
484485 mkdir -p ${cfg.statePath}/log
485486 mkdir -p ${cfg.statePath}/shell
486487 mkdir -p ${cfg.statePath}/tmp/pids
@@ -528,8 +529,8 @@ in {
528529
529530 if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then
530531 if ! test -e "${cfg.statePath}/db-created"; then
531− psql postgres -c "CREATE ROLE gitlab WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
532− ${config.services.postgresql.package}/bin/createdb --owner gitlab gitlab || true
532+ psql postgres -c "CREATE ROLE ${cfg.databaseUsername} WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
533+ ${config.services.postgresql.package}/bin/createdb --owner ${cfg.databaseUsername} ${cfg.databaseName} || true
533534 touch "${cfg.statePath}/db-created"
534535 fi
535536 fi
nixos/modules/services/misc/ihaskell.nix−1
@@ -16,7 +16,6 @@ in
1616 services.ihaskell = {
1717 enable = mkOption {
1818 default = false;
19− example = true;
2019 description = "Autostart an IHaskell notebook service.";
2120 };
2221
nixos/modules/services/misc/irkerd.nixnew file+67
@@ -0,0 +1,67 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.irkerd;
7+ ports = [ 6659 ];
8+in
9+{
10+ options.services.irkerd = {
11+ enable = mkOption {
12+ description = "Whether to enable irker, an IRC notification daemon.";
13+ default = false;
14+ type = types.bool;
15+ };
16+
17+ openPorts = mkOption {
18+ description = "Open ports in the firewall for irkerd";
19+ default = false;
20+ type = types.bool;
21+ };
22+
23+ listenAddress = mkOption {
24+ default = "localhost";
25+ example = "0.0.0.0";
26+ type = types.str;
27+ description = ''
28+ Specifies the bind address on which the irker daemon listens.
29+ The default is localhost.
30+
31+ Irker authors strongly warn about the risks of running this on
32+ a publicly accessible interface, so change this with caution.
33+ '';
34+ };
35+
36+ nick = mkOption {
37+ default = "irker";
38+ type = types.str;
39+ description = "Nick to use for irker";
40+ };
41+ };
42+
43+ config = mkIf cfg.enable {
44+ systemd.services.irkerd = {
45+ description = "Internet Relay Chat (IRC) notification daemon";
46+ documentation = [ "man:irkerd(8)" "man:irkerhook(1)" "man:irk(1)" ];
47+ after = [ "network.target" ];
48+ wantedBy = [ "multi-user.target" ];
49+ serviceConfig = {
50+ ExecStart = "${pkgs.irker}/bin/irkerd -H ${cfg.listenAddress} -n ${cfg.nick}";
51+ User = "irkerd";
52+ };
53+ };
54+
55+ environment.systemPackages = [ pkgs.irker ];
56+
57+ users.users.irkerd = {
58+ description = "Irker daemon user";
59+ isSystemUser = true;
60+ group = "irkerd";
61+ };
62+ users.groups.irkerd = {};
63+
64+ networking.firewall.allowedTCPPorts = mkIf cfg.openPorts ports;
65+ networking.firewall.allowedUDPPorts = mkIf cfg.openPorts ports;
66+ };
67+}
nixos/modules/services/misc/jackett.nixnew file+44
@@ -0,0 +1,44 @@
1+{ config, pkgs, lib, mono, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.jackett;
7+in
8+{
9+ options = {
10+ services.jackett = {
11+ enable = mkEnableOption "Jackett";
12+ };
13+ };
14+
15+ config = mkIf cfg.enable {
16+ systemd.services.jackett = {
17+ description = "Jackett";
18+ after = [ "network.target" ];
19+ wantedBy = [ "multi-user.target" ];
20+ preStart = ''
21+ test -d /var/lib/jackett/ || {
22+ echo "Creating jackett data directory in /var/lib/jackett/"
23+ mkdir -p /var/lib/jackett/
24+ }
25+ chown -R jackett /var/lib/jackett/
26+ chmod 0700 /var/lib/jackett/
27+ '';
28+
29+ serviceConfig = {
30+ Type = "simple";
31+ User = "jackett";
32+ Group = "nogroup";
33+ PermissionsStartOnly = "true";
34+ ExecStart = "${pkgs.jackett}/bin/Jackett";
35+ Restart = "on-failure";
36+ };
37+ };
38+
39+ users.extraUsers.jackett = {
40+ home = "/var/lib/jackett";
41+ };
42+
43+ };
44+}
nixos/modules/services/misc/nix-daemon.nix+39−19
@@ -8,6 +8,8 @@ let
88
99 nix = cfg.package.out;
1010
11+ isNix112 = versionAtLeast (getVersion nix) "1.12pre";
12+
1113 makeNixBuildUser = nr:
1214 { name = "nixbld${toString nr}";
1315 description = "Nix build user ${toString nr}";
@@ -44,6 +46,7 @@ let
4446 binary-caches = ${toString cfg.binaryCaches}
4547 trusted-binary-caches = ${toString cfg.trustedBinaryCaches}
4648 binary-cache-public-keys = ${toString cfg.binaryCachePublicKeys}
49+ auto-optimise-store = ${if cfg.autoOptimiseStore then "true" else "false"}
4750 ${optionalString cfg.requireSignedBinaryCaches ''
4851 signed-binary-caches = *
4952 ''}
@@ -84,6 +87,18 @@ in
8487 '';
8588 };
8689
90+ autoOptimiseStore = mkOption {
91+ type = types.bool;
92+ default = false;
93+ example = true;
94+ description = ''
95+ If set to true, Nix automatically detects files in the store that have
96+ identical contents, and replaces them with hard links to a single copy.
97+ This saves disk space. If set to false (the default), you can still run
98+ nix-store --optimise to get rid of duplicate files.
99+ '';
100+ };
101+
87102 buildCores = mkOption {
88103 type = types.int;
89104 default = 1;
@@ -162,22 +177,23 @@ in
162177 buildMachines = mkOption {
163178 type = types.listOf types.attrs;
164179 default = [];
165− example = [
166− { hostName = "voila.labs.cs.uu.nl";
167− sshUser = "nix";
168− sshKey = "/root/.ssh/id_buildfarm";
169− system = "powerpc-darwin";
170− maxJobs = 1;
171− }
172− { hostName = "linux64.example.org";
173− sshUser = "buildfarm";
174− sshKey = "/root/.ssh/id_buildfarm";
175− system = "x86_64-linux";
176− maxJobs = 2;
177− supportedFeatures = [ "kvm" ];
178− mandatoryFeatures = [ "perf" ];
179− }
180− ];
180+ example = literalExample ''
181+ [ { hostName = "voila.labs.cs.uu.nl";
182+ sshUser = "nix";
183+ sshKey = "/root/.ssh/id_buildfarm";
184+ system = "powerpc-darwin";
185+ maxJobs = 1;
186+ }
187+ { hostName = "linux64.example.org";
188+ sshUser = "buildfarm";
189+ sshKey = "/root/.ssh/id_buildfarm";
190+ system = "x86_64-linux";
191+ maxJobs = 2;
192+ supportedFeatures = [ "kvm" ];
193+ mandatoryFeatures = [ "perf" ];
194+ }
195+ ]
196+ '';
181197 description = ''
182198 This option lists the machines to be used if distributed
183199 builds are enabled (see
@@ -380,7 +396,9 @@ in
380396
381397 nix.envVars =
382398 { NIX_CONF_DIR = "/etc/nix";
399+ }
383400
401+ // optionalAttrs (!isNix112) {
384402 # Enable the copy-from-other-stores substituter, which allows
385403 # builds to be sped up by copying build results from remote
386404 # Nix stores. To do this, mount the remote file system on a
@@ -389,9 +407,11 @@ in
389407 }
390408
391409 // optionalAttrs cfg.distributedBuilds {
392− NIX_BUILD_HOOK = "${nix}/libexec/nix/build-remote.pl";
393− NIX_REMOTE_SYSTEMS = "/etc/nix/machines";
394− NIX_CURRENT_LOAD = "/run/nix/current-load";
410+ NIX_BUILD_HOOK =
411+ if isNix112 then
412+ "${nix}/libexec/nix/build-remote"
413+ else
414+ "${nix}/libexec/nix/build-remote.pl";
395415 };
396416
397417 # Set up the environment variables for running Nix.
nixos/modules/services/misc/nix-gc.nix+1−1
@@ -26,7 +26,7 @@ in
2626 description = ''
2727 Specification (in the format described by
2828 <citerefentry><refentrytitle>systemd.time</refentrytitle>
29− <manvolnum>5</manvolnum></citerefentry>) of the time at
29+ <manvolnum>7</manvolnum></citerefentry>) of the time at
3030 which the garbage collector will run.
3131 '';
3232 };
nixos/modules/services/misc/nix-optimise.nix+1−1
@@ -26,7 +26,7 @@ in
2626 description = ''
2727 Specification (in the format described by
2828 <citerefentry><refentrytitle>systemd.time</refentrytitle>
29− <manvolnum>5</manvolnum></citerefentry>) of the time at
29+ <manvolnum>7</manvolnum></citerefentry>) of the time at
3030 which the optimiser will run.
3131 '';
3232 };
nixos/modules/services/misc/nixos-manual.nix+12−2
@@ -41,7 +41,7 @@ let
4141
4242 entry = "${manual.manual}/share/doc/nixos/index.html";
4343
44− help = pkgs.writeScriptBin "nixos-help"
44+ helpScript = pkgs.writeScriptBin "nixos-help"
4545 ''
4646 #! ${pkgs.stdenv.shell} -e
4747 browser="$BROWSER"
@@ -58,6 +58,15 @@ let
5858 exec "$browser" ${entry}
5959 '';
6060
61+ desktopItem = pkgs.makeDesktopItem {
62+ name = "nixos-manual";
63+ desktopName = "NixOS Manual";
64+ genericName = "View NixOS documentation in a web browser";
65+ # TODO: find a better icon (Nix logo + help overlay?)
66+ icon = "system-help";
67+ exec = "${helpScript}/bin/nixos-help";
68+ categories = "System";
69+ };
6170in
6271
6372{
@@ -105,7 +114,8 @@ in
105114 system.build.manual = manual;
106115
107116 environment.systemPackages =
108− [ manual.manual help ]
117+ [ manual.manual helpScript ]
118+ ++ optional config.services.xserver.enable desktopItem
109119 ++ optional config.programs.man.enable manual.manpages;
110120
111121 boot.extraTTYs = mkIf cfg.showManual ["tty${toString cfg.ttyNumber}"];
nixos/modules/services/misc/octoprint.nix+2−2
@@ -7,7 +7,7 @@ let
77 cfg = config.services.octoprint;
88
99 baseConfig = {
10− plugins.cura.cura_engine = "${pkgs.curaengine}/bin/CuraEngine";
10+ plugins.cura.cura_engine = "${pkgs.curaengine_stable}/bin/CuraEngine";
1111 server.host = cfg.host;
1212 server.port = cfg.port;
1313 webcam.ffmpeg = "${pkgs.ffmpeg.bin}/bin/ffmpeg";
@@ -117,7 +117,7 @@ in
117117 '';
118118
119119 serviceConfig = {
120− ExecStart = "${pkgs.octoprint}/bin/octoprint -b ${cfg.stateDir}";
120+ ExecStart = "${pkgs.octoprint}/bin/octoprint serve -b ${cfg.stateDir}";
121121 User = cfg.user;
122122 Group = cfg.group;
123123 PermissionsStartOnly = true;
nixos/modules/services/misc/radarr.nixnew file+44
@@ -0,0 +1,44 @@
1+{ config, pkgs, lib, mono, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.radarr;
7+in
8+{
9+ options = {
10+ services.radarr = {
11+ enable = mkEnableOption "Radarr";
12+ };
13+ };
14+
15+ config = mkIf cfg.enable {
16+ systemd.services.radarr = {
17+ description = "Radarr";
18+ after = [ "network.target" ];
19+ wantedBy = [ "multi-user.target" ];
20+ preStart = ''
21+ test -d /var/lib/radarr/ || {
22+ echo "Creating radarr data directory in /var/lib/radarr/"
23+ mkdir -p /var/lib/radarr/
24+ }
25+ chown -R radarr /var/lib/radarr/
26+ chmod 0700 /var/lib/radarr/
27+ '';
28+
29+ serviceConfig = {
30+ Type = "simple";
31+ User = "radarr";
32+ Group = "nogroup";
33+ PermissionsStartOnly = "true";
34+ ExecStart = "${pkgs.radarr}/bin/Radarr";
35+ Restart = "on-failure";
36+ };
37+ };
38+
39+ users.extraUsers.radarr = {
40+ home = "/var/lib/radarr";
41+ };
42+
43+ };
44+}
nixos/modules/services/misc/ssm-agent.nixnew file+46
@@ -0,0 +1,46 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+let
5+ cfg = config.services.ssm-agent;
6+
7+ # The SSM agent doesn't pay attention to our /etc/os-release yet, and the lsb-release tool
8+ # in nixpkgs doesn't seem to work properly on NixOS, so let's just fake the two fields SSM
9+ # looks for. See https://github.com/aws/amazon-ssm-agent/issues/38 for upstream fix.
10+ fake-lsb-release = pkgs.writeScriptBin "lsb_release" ''
11+ #!${pkgs.stdenv.shell}
12+
13+ case "$1" in
14+ -i) echo "nixos";;
15+ -r) echo "${config.system.nixosVersion}";;
16+ esac
17+ '';
18+in {
19+ options.services.ssm-agent = {
20+ enable = mkEnableOption "AWS SSM agent";
21+
22+ package = mkOption {
23+ type = types.path;
24+ description = "The SSM agent package to use";
25+ default = pkgs.ssm-agent;
26+ defaultText = "pkgs.ssm-agent";
27+ };
28+ };
29+
30+ config = mkIf cfg.enable {
31+ systemd.services.ssm-agent = {
32+ inherit (cfg.package.meta) description;
33+ after = [ "network.target" ];
34+ wantedBy = [ "multi-user.target" ];
35+
36+ path = [ fake-lsb-release ];
37+ serviceConfig = {
38+ ExecStart = "${cfg.package.bin}/bin/agent";
39+ KillMode = "process";
40+ Restart = "on-failure";
41+ RestartSec = "15min";
42+ };
43+ };
44+ };
45+}
46+
nixos/modules/services/misc/taskserver/default.nix+87−49
@@ -94,44 +94,6 @@ let
9494 in flatten (mapAttrsToList mkSublist attrs);
9595 in all isNull (findPkiDefinitions [] manualPkiOptions);
9696
97− configFile = pkgs.writeText "taskdrc" (''
98− # systemd related
99− daemon = false
100− log = -
101−
102− # logging
103− ${mkConfLine "debug" cfg.debug}
104− ${mkConfLine "ip.log" cfg.ipLog}
105−
106− # general
107− ${mkConfLine "ciphers" cfg.ciphers}
108− ${mkConfLine "confirmation" cfg.confirmation}
109− ${mkConfLine "extensions" cfg.extensions}
110− ${mkConfLine "queue.size" cfg.queueSize}
111− ${mkConfLine "request.limit" cfg.requestLimit}
112−
113− # client
114− ${mkConfLine "client.allow" cfg.allowedClientIDs}
115− ${mkConfLine "client.deny" cfg.disallowedClientIDs}
116−
117− # server
118− server = ${cfg.listenHost}:${toString cfg.listenPort}
119− ${mkConfLine "trust" cfg.trust}
120−
121− # PKI options
122− ${if needToCreateCA then ''
123− ca.cert = ${cfg.dataDir}/keys/ca.cert
124− server.cert = ${cfg.dataDir}/keys/server.cert
125− server.key = ${cfg.dataDir}/keys/server.key
126− server.crl = ${cfg.dataDir}/keys/server.crl
127− '' else ''
128− ca.cert = ${cfg.pki.manual.ca.cert}
129− server.cert = ${cfg.pki.manual.server.cert}
130− server.key = ${cfg.pki.manual.server.key}
131− server.crl = ${cfg.pki.manual.server.crl}
132− ''}
133− '' + cfg.extraConfig);
134−
13597 orgOptions = { name, ... }: {
13698 options.users = mkOption {
13799 type = types.uniq (types.listOf types.str);
@@ -154,9 +116,8 @@ let
154116
155117 certtool = "${pkgs.gnutls.bin}/bin/certtool";
156118
157− nixos-taskserver = pkgs.pythonPackages.buildPythonPackage {
119+ nixos-taskserver = pkgs.pythonPackages.buildPythonApplication {
158120 name = "nixos-taskserver";
159− namePrefix = "";
160121
161122 src = pkgs.runCommand "nixos-taskserver-src" {} ''
162123 mkdir -p "$out"
@@ -167,6 +128,7 @@ let
167128 certBits = cfg.pki.auto.bits;
168129 clientExpiration = cfg.pki.auto.expiration.client;
169130 crlExpiration = cfg.pki.auto.expiration.crl;
131+ isAutoConfig = if needToCreateCA then "True" else "False";
170132 }}" > "$out/main.py"
171133 cat > "$out/setup.py" <<EOF
172134 from setuptools import setup
@@ -186,7 +148,6 @@ in {
186148 enable = mkOption {
187149 type = types.bool;
188150 default = false;
189− example = true;
190151 description = ''
191152 Whether to enable the Taskwarrior server.
192153
@@ -365,20 +326,57 @@ in {
365326 pki.manual = manualPkiOptions;
366327 pki.auto = autoPkiOptions;
367328
368− extraConfig = mkOption {
369− type = types.lines;
370− default = "";
371− example = "client.cert = /tmp/debugging.cert";
329+ config = mkOption {
330+ type = types.attrs;
331+ example.client.cert = "/tmp/debugging.cert";
372332 description = ''
373− Extra lines to append to the taskdrc configuration file.
333+ Configuration options to pass to Taskserver.
334+
335+ The options here are the same as described in <citerefentry>
336+ <refentrytitle>taskdrc</refentrytitle>
337+ <manvolnum>5</manvolnum>
338+ </citerefentry>, but with one difference:
339+
340+ The <literal>server</literal> option is
341+ <literal>server.listen</literal> here, because the
342+ <literal>server</literal> option would collide with other options
343+ like <literal>server.cert</literal> and we would run in a type error
344+ (attribute set versus string).
345+
346+ Nix types like integers or booleans are automatically converted to
347+ the right values Taskserver would expect.
374348 '';
349+ apply = let
350+ mkKey = path: if path == ["server" "listen"] then "server"
351+ else concatStringsSep "." path;
352+ recurse = path: attrs: let
353+ mapper = name: val: let
354+ newPath = path ++ [ name ];
355+ scalar = if val == true then "true"
356+ else if val == false then "false"
357+ else toString val;
358+ in if isAttrs val then recurse newPath val
359+ else [ "${mkKey newPath}=${scalar}" ];
360+ in concatLists (mapAttrsToList mapper attrs);
361+ in recurse [];
375362 };
376363 };
377364 };
378365
366+ imports = [
367+ (mkRemovedOptionModule ["services" "taskserver" "extraConfig"] ''
368+ This option was removed in favor of `services.taskserver.config` with
369+ different semantics (it's now a list of attributes instead of lines).
370+
371+ Please look up the documentation of `services.taskserver.config' to get
372+ more information about the new way to pass additional configuration
373+ options.
374+ '')
375+ ];
376+
379377 config = mkMerge [
380378 (mkIf cfg.enable {
381− environment.systemPackages = [ pkgs.taskserver nixos-taskserver ];
379+ environment.systemPackages = [ nixos-taskserver ];
382380
383381 users.users = optional (cfg.user == "taskd") {
384382 name = "taskd";
@@ -392,6 +390,44 @@ in {
392390 gid = config.ids.gids.taskd;
393391 };
394392
393+ services.taskserver.config = {
394+ # systemd related
395+ daemon = false;
396+ log = "-";
397+
398+ # logging
399+ debug = cfg.debug;
400+ ip.log = cfg.ipLog;
401+
402+ # general
403+ ciphers = cfg.ciphers;
404+ confirmation = cfg.confirmation;
405+ extensions = cfg.extensions;
406+ queue.size = cfg.queueSize;
407+ request.limit = cfg.requestLimit;
408+
409+ # client
410+ client.allow = cfg.allowedClientIDs;
411+ client.deny = cfg.disallowedClientIDs;
412+
413+ # server
414+ trust = cfg.trust;
415+ server = {
416+ listen = "${cfg.listenHost}:${toString cfg.listenPort}";
417+ } // (if needToCreateCA then {
418+ cert = "${cfg.dataDir}/keys/server.cert";
419+ key = "${cfg.dataDir}/keys/server.key";
420+ crl = "${cfg.dataDir}/keys/server.crl";
421+ } else {
422+ cert = "${cfg.pki.manual.server.cert}";
423+ key = "${cfg.pki.manual.server.key}";
424+ crl = "${cfg.pki.manual.server.crl}";
425+ });
426+
427+ ca.cert = if needToCreateCA then "${cfg.dataDir}/keys/ca.cert"
428+ else "${cfg.pki.manual.ca.cert}";
429+ };
430+
395431 systemd.services.taskserver-init = {
396432 wantedBy = [ "taskserver.service" ];
397433 before = [ "taskserver.service" ];
@@ -404,7 +440,6 @@ in {
404440
405441 script = ''
406442 ${taskd} init
407− echo "include ${configFile}" > "${cfg.dataDir}/config"
408443 touch "${cfg.dataDir}/.is_initialized"
409444 '';
410445
@@ -436,7 +471,10 @@ in {
436471 in "${helperTool} process-json '${jsonFile}'";
437472
438473 serviceConfig = {
439− ExecStart = "@${taskd} taskd server";
474+ ExecStart = let
475+ mkCfgFlag = flag: escapeShellArg "--${flag}";
476+ cfgFlags = concatMapStringsSep " " mkCfgFlag cfg.config;
477+ in "@${taskd} taskd server ${cfgFlags}";
440478 ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID";
441479 Restart = "on-failure";
442480 PermissionsStartOnly = true;
nixos/modules/services/misc/taskserver/doc.xml+3−3
@@ -136,9 +136,9 @@ $ ssh server nixos-taskserver user export my-company alice | sh
136136
137137 <para>
138138 If you set any options within
139− <option>service.taskserver.pki.manual.*</option>, the automatic user and
140− CA management by the <command>nixos-taskserver</command> is disabled and
141− you need to create certificates and keys by yourself.
139+ <option>service.taskserver.pki.manual.*</option>,
140+ <command>nixos-taskserver</command> won't issue certificates, but you can
141+ still use it for adding or removing user accounts.
142142 </para>
143143 </section>
144144</chapter>
nixos/modules/services/misc/taskserver/helper-tool.py+28−15
@@ -13,6 +13,7 @@ from tempfile import NamedTemporaryFile
1313
1414import click
1515
16+IS_AUTO_CONFIG = @isAutoConfig@ # NOQA
1617CERTTOOL_COMMAND = "@certtool@"
1718CERT_BITS = "@certBits@"
1819CLIENT_EXPIRATION = "@clientExpiration@"
@@ -149,6 +150,12 @@ def create_template(contents):
149150
150151
151152def generate_key(org, user):
153+ if not IS_AUTO_CONFIG:
154+ msg = "Automatic PKI handling is disabled, you need to " \
155+ "manually issue a client certificate for user {}.\n"
156+ sys.stderr.write(msg.format(user))
157+ return
158+
152159 basedir = os.path.join(TASKD_DATA_DIR, "keys", org, user)
153160 if os.path.exists(basedir):
154161 raise OSError("Keyfile directory for {} already exists.".format(user))
@@ -243,26 +250,32 @@ class User(object):
243250 self.key = key
244251
245252 def export(self):
246− pubcert = getkey(self.__org, self.name, "public.cert")
247− privkey = getkey(self.__org, self.name, "private.key")
248− cacert = getkey("ca.cert")
249−
250− keydir = "${TASKDATA:-$HOME/.task}/keys"
251−
252253 credentials = '/'.join([self.__org, self.name, self.key])
253254 allow_unquoted = string.ascii_letters + string.digits + "/-_."
254255 if not all((c in allow_unquoted) for c in credentials):
255256 credentials = "'" + credentials.replace("'", r"'\''") + "'"
256257
257− script = [
258− "umask 0077",
259− 'mkdir -p "{}"'.format(keydir),
260− mktaskkey("certificate", os.path.join(keydir, "public.cert"),
261− pubcert),
262− mktaskkey("key", os.path.join(keydir, "private.key"), privkey),
263− mktaskkey("ca", os.path.join(keydir, "ca.cert"), cacert),
258+ script = []
259+
260+ if IS_AUTO_CONFIG:
261+ pubcert = getkey(self.__org, self.name, "public.cert")
262+ privkey = getkey(self.__org, self.name, "private.key")
263+ cacert = getkey("ca.cert")
264+
265+ keydir = "${TASKDATA:-$HOME/.task}/keys"
266+
267+ script += [
268+ "umask 0077",
269+ 'mkdir -p "{}"'.format(keydir),
270+ mktaskkey("certificate", os.path.join(keydir, "public.cert"),
271+ pubcert),
272+ mktaskkey("key", os.path.join(keydir, "private.key"), privkey),
273+ mktaskkey("ca", os.path.join(keydir, "ca.cert"), cacert)
274+ ]
275+
276+ script.append(
264277 "task config taskd.credentials -- {}".format(credentials)
265− ]
278+ )
266279
267280 return "\n".join(script) + "\n"
268281
@@ -526,7 +539,7 @@ def export_user(organisation, user):
526539 userobj = organisation.get_user(user)
527540 if userobj is None:
528541 msg = "User {} doesn't exist in organisation {}."
529− sys.exit(msg.format(userobj.name, organisation.name))
542+ sys.exit(msg.format(user, organisation.name))
530543
531544 sys.stdout.write(userobj.export())
532545
nixos/modules/services/monitoring/arbtt.nix−1
@@ -10,7 +10,6 @@ in {
1010 enable = mkOption {
1111 type = types.bool;
1212 default = false;
13− example = true;
1413 description = ''
1514 Enable the arbtt statistics capture service.
1615 '';
nixos/modules/services/monitoring/das_watchdog.nix+1−1
@@ -25,7 +25,7 @@ in {
2525 wantedBy = [ "multi-user.target" ];
2626 serviceConfig = {
2727 User = "root";
28− Type = "oneshot";
28+ Type = "simple";
2929 ExecStart = "${das_watchdog}/bin/das_watchdog";
3030 RemainAfterExit = true;
3131 };
nixos/modules/services/monitoring/grafana.nix+5−4
@@ -1,4 +1,4 @@
1−{ config, lib, pkgs, ... }:
1+{ options, config, lib, pkgs, ... }:
22
33with lib;
44
@@ -232,9 +232,10 @@ in {
232232 };
233233
234234 config = mkIf cfg.enable {
235− warnings = [
236− "Grafana passwords will be stored as plaintext in the Nix store!"
237− ];
235+ warnings = optional (
236+ cfg.database.password != options.services.grafana.database.password.default ||
237+ cfg.security.adminPassword != options.services.grafana.security.adminPassword.default
238+ ) "Grafana passwords will be stored as plaintext in the Nix store!";
238239
239240 environment.systemPackages = [ cfg.package ];
240241
nixos/modules/services/monitoring/munin.nix+19−6
@@ -34,7 +34,7 @@ let
3434 cap=$(sed -nr 's/.*#%#\s+capabilities\s*=\s*(.+)/\1/p' $file)
3535
3636 wrapProgram $file \
37− --set PATH "/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/bin" \
37+ --set PATH "/run/wrappers/bin:/run/current-system/sw/bin:/run/current-system/sw/bin" \
3838 --set MUNIN_LIBDIR "${pkgs.munin}/lib" \
3939 --set MUNIN_PLUGSTATE "/var/run/munin"
4040
@@ -76,6 +76,7 @@ let
7676 # wrapped plugins by makeWrapper being with dots
7777 ignore_file ^\.
7878
79+ allow ^::1$
7980 allow ^127\.0\.0\.1$
8081
8182 ${nodeCfg.extraConfig}
@@ -183,7 +184,7 @@ in
183184
184185 mkdir -p /etc/munin/plugins
185186 rm -rf /etc/munin/plugins/*
186− PATH="/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/bin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
187+ PATH="/run/wrappers/bin:/run/current-system/sw/bin:/run/current-system/sw/bin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
187188 '';
188189 serviceConfig = {
189190 ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/";
@@ -192,14 +193,26 @@ in
192193
193194 }) (mkIf cronCfg.enable {
194195
195− services.cron.systemCronJobs = [
196− "*/5 * * * * munin ${pkgs.munin}/bin/munin-cron --config ${muninConf}"
197− ];
196+ systemd.timers.munin-cron = {
197+ description = "batch Munin master programs";
198+ wantedBy = [ "timers.target" ];
199+ timerConfig.OnCalendar = "*:0/5";
200+ };
201+
202+ systemd.services.munin-cron = {
203+ description = "batch Munin master programs";
204+ unitConfig.Documentation = "man:munin-cron(8)";
205+
206+ serviceConfig = {
207+ Type = "oneshot";
208+ User = "munin";
209+ ExecStart = "${pkgs.munin}/bin/munin-cron --config ${muninConf}";
210+ };
211+ };
198212
199213 system.activationScripts.munin-cron = stringAfter [ "users" "groups" ] ''
200214 mkdir -p /var/{run,log,www,lib}/munin
201215 chown -R munin:munin /var/{run,log,www,lib}/munin
202216 '';
203−
204217 })];
205218}
nixos/modules/services/monitoring/prometheus/blackbox-exporter.nix+1
@@ -54,6 +54,7 @@ in {
5454 Restart = "always";
5555 PrivateTmp = true;
5656 WorkingDirectory = /tmp;
57+ AmbientCapabilities = [ "CAP_NET_RAW" ]; # for ping probes
5758 ExecStart = ''
5859 ${pkgs.prometheus-blackbox-exporter}/bin/blackbox_exporter \
5960 -web.listen-address :${toString cfg.port} \
nixos/modules/services/monitoring/prometheus/default.nix+1
@@ -134,6 +134,7 @@ let
134134 };
135135 });
136136 default = null;
137+ apply = x: if x == null then null else _filter x;
137138 description = ''
138139 Optional http login credentials for metrics scraping.
139140 '';
nixos/modules/services/monitoring/prometheus/fritzbox-exporter.nixnew file+76
@@ -0,0 +1,76 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.fritzboxExporter;
7+in {
8+ options = {
9+ services.prometheus.fritzboxExporter = {
10+ enable = mkEnableOption "prometheus fritzbox exporter";
11+
12+ port = mkOption {
13+ type = types.int;
14+ default = 9133;
15+ description = ''
16+ Port to listen on.
17+ '';
18+ };
19+
20+ gatewayAddress = mkOption {
21+ type = types.str;
22+ default = "fritz.box";
23+ description = ''
24+ The hostname or IP of the FRITZ!Box.
25+ '';
26+ };
27+
28+ gatewayPort = mkOption {
29+ type = types.int;
30+ default = 49000;
31+ description = ''
32+ The port of the FRITZ!Box UPnP service.
33+ '';
34+ };
35+
36+ extraFlags = mkOption {
37+ type = types.listOf types.str;
38+ default = [];
39+ description = ''
40+ Extra commandline options when launching the fritzbox exporter.
41+ '';
42+ };
43+
44+ openFirewall = mkOption {
45+ type = types.bool;
46+ default = false;
47+ description = ''
48+ Open port in firewall for incoming connections.
49+ '';
50+ };
51+ };
52+ };
53+
54+ config = mkIf cfg.enable {
55+ networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
56+
57+ systemd.services.prometheus-fritzbox-exporter = {
58+ description = "Prometheus exporter for FRITZ!Box via UPnP";
59+ unitConfig.Documentation = "https://github.com/ndecker/fritzbox_exporter";
60+ wantedBy = [ "multi-user.target" ];
61+ serviceConfig = {
62+ User = "nobody";
63+ Restart = "always";
64+ PrivateTmp = true;
65+ WorkingDirectory = /tmp;
66+ ExecStart = ''
67+ ${pkgs.prometheus-fritzbox-exporter}/bin/fritzbox_exporter \
68+ -listen-address :${toString cfg.port} \
69+ -gateway-address ${cfg.gatewayAddress} \
70+ -gateway-port ${toString cfg.gatewayPort} \
71+ ${concatStringsSep " \\\n " cfg.extraFlags}
72+ '';
73+ };
74+ };
75+ };
76+}
nixos/modules/services/monitoring/prometheus/unifi-exporter.nixnew file+104
@@ -0,0 +1,104 @@
1+{ config, pkgs, lib, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.prometheus.unifiExporter;
7+in {
8+ options = {
9+ services.prometheus.unifiExporter = {
10+ enable = mkEnableOption "prometheus unifi exporter";
11+
12+ port = mkOption {
13+ type = types.int;
14+ default = 9130;
15+ description = ''
16+ Port to listen on.
17+ '';
18+ };
19+
20+ unifiAddress = mkOption {
21+ type = types.str;
22+ example = "https://10.0.0.1:8443";
23+ description = ''
24+ URL of the UniFi Controller API.
25+ '';
26+ };
27+
28+ unifiInsecure = mkOption {
29+ type = types.bool;
30+ default = false;
31+ description = ''
32+ If enabled skip the verification of the TLS certificate of the UniFi Controller API.
33+ Use with caution.
34+ '';
35+ };
36+
37+ unifiUsername = mkOption {
38+ type = types.str;
39+ example = "ReadOnlyUser";
40+ description = ''
41+ username for authentication against UniFi Controller API.
42+ '';
43+ };
44+
45+ unifiPassword = mkOption {
46+ type = types.str;
47+ description = ''
48+ Password for authentication against UniFi Controller API.
49+ '';
50+ };
51+
52+ unifiTimeout = mkOption {
53+ type = types.str;
54+ default = "5s";
55+ example = "2m";
56+ description = ''
57+ Timeout including unit for UniFi Controller API requests.
58+ '';
59+ };
60+
61+ extraFlags = mkOption {
62+ type = types.listOf types.str;
63+ default = [];
64+ description = ''
65+ Extra commandline options when launching the unifi exporter.
66+ '';
67+ };
68+
69+ openFirewall = mkOption {
70+ type = types.bool;
71+ default = false;
72+ description = ''
73+ Open port in firewall for incoming connections.
74+ '';
75+ };
76+ };
77+ };
78+
79+ config = mkIf cfg.enable {
80+ networking.firewall.allowedTCPPorts = optional cfg.openFirewall cfg.port;
81+
82+ systemd.services.prometheus-unifi-exporter = {
83+ description = "Prometheus exporter for UniFi Controller metrics";
84+ unitConfig.Documentation = "https://github.com/mdlayher/unifi_exporter";
85+ wantedBy = [ "multi-user.target" ];
86+ serviceConfig = {
87+ User = "nobody";
88+ Restart = "always";
89+ PrivateTmp = true;
90+ WorkingDirectory = /tmp;
91+ ExecStart = ''
92+ ${pkgs.prometheus-unifi-exporter}/bin/unifi_exporter \
93+ -telemetry.addr :${toString cfg.port} \
94+ -unifi.addr ${cfg.unifiAddress} \
95+ -unifi.username ${cfg.unifiUsername} \
96+ -unifi.password ${cfg.unifiPassword} \
97+ -unifi.timeout ${cfg.unifiTimeout} \
98+ ${optionalString cfg.unifiInsecure "-unifi.insecure" } \
99+ ${concatStringsSep " \\\n " cfg.extraFlags}
100+ '';
101+ };
102+ };
103+ };
104+}
nixos/modules/services/monitoring/smartd.nix+1−1
@@ -124,7 +124,7 @@ in
124124 };
125125
126126 mailer = mkOption {
127− default = "/var/setuid-wrappers/sendmail";
127+ default = "/run/wrappers/bin/sendmail";
128128 type = types.path;
129129 description = ''
130130 Sendmail-compatible binary to be used to send the messages.
nixos/modules/services/monitoring/vnstat.nix+1−1
@@ -32,7 +32,7 @@ in {
3232 preStart = "chmod 755 /var/lib/vnstat";
3333 serviceConfig = {
3434 ExecStart = "${pkgs.vnstat}/bin/vnstatd -n";
35− ExecReload = "kill -HUP $MAINPID";
35+ ExecReload = "${pkgs.procps}/bin/kill -HUP $MAINPID";
3636 ProtectHome = true;
3737 PrivateDevices = true;
3838 PrivateTmp = true;
nixos/modules/services/network-filesystems/openafs-client/default.nix+1
@@ -76,6 +76,7 @@ in
7676 description = "AFS client";
7777 wantedBy = [ "multi-user.target" ];
7878 after = [ "network.target" ];
79+ serviceConfig = { RemainAfterExit = true; };
7980
8081 preStart = ''
8182 mkdir -p -m 0755 /afs
nixos/modules/services/network-filesystems/samba.nix+30−5
@@ -30,7 +30,7 @@ let
3030 ''
3131 [ global ]
3232 security = ${cfg.securityType}
33− passwd program = /var/setuid-wrappers/passwd %u
33+ passwd program = /run/wrappers/bin/passwd %u
3434 pam password change = ${smbToString cfg.syncPasswordsByPam}
3535 invalid users = ${smbToString cfg.invalidUsers}
3636
@@ -91,6 +91,26 @@ in
9191 '';
9292 };
9393
94+ enableNmbd = mkOption {
95+ type = types.bool;
96+ default = true;
97+ description = ''
98+ Whether to enable Samba's nmbd, which replies to NetBIOS over IP name
99+ service requests. It also participates in the browsing protocols
100+ which make up the Windows "Network Neighborhood" view.
101+ '';
102+ };
103+
104+ enableWinbindd = mkOption {
105+ type = types.bool;
106+ default = true;
107+ description = ''
108+ Whether to enable Samba's winbindd, which provides a number of services
109+ to the Name Service Switch capability found in most modern C libraries,
110+ to arbitrary applications via PAM and ntlm_auth and to Samba itself.
111+ '';
112+ };
113+
94114 package = mkOption {
95115 type = types.package;
96116 default = pkgs.samba;
@@ -185,7 +205,12 @@ in
185205 ###### implementation
186206
187207 config = mkMerge
188− [ { # Always provide a smb.conf to shut up programs like smbclient and smbspool.
208+ [ { assertions =
209+ [ { assertion = cfg.nsswins -> cfg.enableWinbindd;
210+ message = "If samba.nsswins is enabled, then samba.enableWinbindd must also be enabled";
211+ }
212+ ];
213+ # Always provide a smb.conf to shut up programs like smbclient and smbspool.
189214 environment.etc = singleton
190215 { source =
191216 if cfg.enable then configFile
@@ -194,7 +219,7 @@ in
194219 };
195220 }
196221
197− (mkIf config.services.samba.enable {
222+ (mkIf cfg.enable {
198223
199224 system.nssModules = optional cfg.nsswins samba;
200225
@@ -207,9 +232,9 @@ in
207232 };
208233
209234 services = {
210− "samba-nmbd" = daemonService "nmbd" "-F";
211235 "samba-smbd" = daemonService "smbd" "-F";
212− "samba-winbindd" = daemonService "winbindd" "-F";
236+ "samba-nmbd" = mkIf cfg.enableNmbd (daemonService "nmbd" "-F");
237+ "samba-winbindd" = mkIf cfg.enableWinbindd (daemonService "winbindd" "-F");
213238 "samba-setup" = {
214239 description = "Samba Setup Task";
215240 script = setupScript;
nixos/modules/services/network-filesystems/tahoe.nix+2−2
@@ -8,7 +8,7 @@ in
88 options.services.tahoe = {
99 introducers = mkOption {
1010 default = {};
11− type = with types; loaOf (submodule {
11+ type = with types; attrsOf (submodule {
1212 options = {
1313 nickname = mkOption {
1414 type = types.str;
@@ -49,7 +49,7 @@ in
4949 };
5050 nodes = mkOption {
5151 default = {};
52− type = with types; loaOf (submodule {
52+ type = with types; attrsOf (submodule {
5353 options = {
5454 nickname = mkOption {
5555 type = types.str;
nixos/modules/services/networking/aiccu.nix−9
@@ -35,7 +35,6 @@ in {
3535 enable = mkOption {
3636 type = types.bool;
3737 default = false;
38− example = true;
3938 description = "Enable aiccu IPv6 over IPv4 SiXXs tunnel";
4039 };
4140
@@ -88,21 +87,18 @@ in {
8887 verbose = mkOption {
8988 type = types.bool;
9089 default = false;
91− example = true;
9290 description = "Be verbose?";
9391 };
9492
9593 automatic = mkOption {
9694 type = types.bool;
9795 default = true;
98− example = false;
9996 description = "Automatic Login and Tunnel activation";
10097 };
10198
10299 requireTLS = mkOption {
103100 type = types.bool;
104101 default = false;
105− example = true;
106102 description = ''
107103 When set to true, if TLS is not supported on the server
108104 the TIC transaction will fail.
@@ -124,7 +120,6 @@ in {
124120 defaultRoute = mkOption {
125121 type = types.bool;
126122 default = true;
127− example = false;
128123 description = "Add a default route";
129124 };
130125
@@ -138,7 +133,6 @@ in {
138133 makeHeartBeats = mkOption {
139134 type = types.bool;
140135 default = true;
141− example = false;
142136 description = ''
143137 In general you don't want to turn this off
144138 Of course only applies to AYIYA and heartbeat tunnels not to static ones
@@ -148,21 +142,18 @@ in {
148142 noConfigure = mkOption {
149143 type = types.bool;
150144 default = false;
151− example = true;
152145 description = "Don't configure anything";
153146 };
154147
155148 behindNAT = mkOption {
156149 type = types.bool;
157150 default = false;
158− example = true;
159151 description = "Notify the user that a NAT-kind network is detected";
160152 };
161153
162154 localIPv4Override = mkOption {
163155 type = types.bool;
164156 default = false;
165− example = true;
166157 description = ''
167158 Overrides the IPv4 parameter received from TIC
168159 This allows one to configure a NAT into "DMZ" mode and then
nixos/modules/services/networking/btsync.nix−1
@@ -208,7 +208,6 @@ in
208208 storagePath = mkOption {
209209 type = types.path;
210210 default = "/var/lib/btsync/";
211− example = "/var/lib/btsync/";
212211 description = ''
213212 Where BitTorrent Sync will store it's database files (containing
214213 things like username info and licenses). Generally, you should not
nixos/modules/services/networking/ddclient.nix+19−1
@@ -7,7 +7,7 @@ let
77
88 stateDir = "/var/spool/ddclient";
99 ddclientUser = "ddclient";
10− ddclientFlags = "-foreground -verbose -noquiet -file ${config.services.ddclient.configFile}";
10+ ddclientFlags = "-foreground -file ${config.services.ddclient.configFile}";
1111 ddclientPIDFile = "${stateDir}/ddclient.pid";
1212
1313in
@@ -102,6 +102,22 @@ in
102102 Method to determine the IP address to send to the dynamic DNS provider.
103103 '';
104104 };
105+
106+ verbose = mkOption {
107+ default = true;
108+ type = bool;
109+ description = ''
110+ Print verbose information.
111+ '';
112+ };
113+
114+ quiet = mkOption {
115+ default = false;
116+ type = bool;
117+ description = ''
118+ Print no messages for unnecessary updates.
119+ '';
120+ };
105121 };
106122 };
107123
@@ -136,6 +152,8 @@ in
136152 lib.optionalString (server != "") "server=${server}"}
137153 ssl=${if config.services.ddclient.ssl then "yes" else "no"}
138154 wildcard=YES
155+ quiet=${if config.services.ddclient.quiet then "yes" else "no"}
156+ verbose=${if config.services.ddclient.verbose then "yes" else "no"}
139157 ${config.services.ddclient.domain}
140158 ${config.services.ddclient.extraConfig}
141159 '';
nixos/modules/services/networking/dhcpcd.nix+2−2
@@ -157,7 +157,7 @@ in
157157 systemd.services.dhcpcd =
158158 { description = "DHCP Client";
159159
160− wantedBy = [ "multi-user.target" ];
160+ wantedBy = [ "network-online.target" ];
161161 after = [ "network.target" ];
162162 wants = [ "network.target" ];
163163
@@ -173,7 +173,7 @@ in
173173 serviceConfig =
174174 { Type = "forking";
175175 PIDFile = "/run/dhcpcd.pid";
176− ExecStart = "@${dhcpcd}/sbin/dhcpcd dhcpcd --quiet ${optionalString cfg.persistent "--persistent"} --config ${dhcpcdConf}";
176+ ExecStart = "@${dhcpcd}/sbin/dhcpcd dhcpcd -w --quiet ${optionalString cfg.persistent "--persistent"} --config ${dhcpcdConf}";
177177 ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
178178 Restart = "always";
179179 };
nixos/modules/services/networking/dhcpd.nix+4−3
@@ -60,8 +60,9 @@ let
6060 };
6161 };
6262
63− machineOpts = {...}: {
64− config = {
63+ machineOpts = { ... }: {
64+
65+ options = {
6566
6667 hostName = mkOption {
6768 type = types.str;
@@ -156,7 +157,7 @@ let
156157 };
157158
158159 machines = mkOption {
159− type = types.listOf (types.submodule machineOpts);
160+ type = with types; listOf (submodule machineOpts);
160161 default = [];
161162 example = [
162163 { hostName = "foo";
nixos/modules/services/networking/dnscrypt-proxy.nix+153−120
@@ -2,12 +2,9 @@
22with lib;
33
44let
5− apparmorEnabled = config.security.apparmor.enable;
6− dnscrypt-proxy = pkgs.dnscrypt-proxy;
75 cfg = config.services.dnscrypt-proxy;
8− stateDirectory = "/var/lib/dnscrypt-proxy";
96
10− localAddress = "${cfg.localAddress}:${toString cfg.localPort}";
7+ stateDirectory = "/var/lib/dnscrypt-proxy";
118
129 # The minisign public key used to sign the upstream resolver list.
1310 # This is somewhat more flexible than preloading the key as an
@@ -17,31 +14,33 @@ let
1714 sha256 = "18lnp8qr6ghfc2sd46nn1rhcpr324fqlvgsp4zaigw396cd7vnnh";
1815 };
1916
20− # Internal flag indicating whether the upstream resolver list is used
21− useUpstreamResolverList = cfg.resolverList == null && cfg.customResolver == null;
22−
23− resolverList =
24− if (cfg.resolverList != null)
25− then cfg.resolverList
26− else "${stateDirectory}/dnscrypt-resolvers.csv";
27−
28− resolverArgs = if (cfg.customResolver != null)
29− then
30− [ "--resolver-address=${cfg.customResolver.address}:${toString cfg.customResolver.port}"
31− "--provider-name=${cfg.customResolver.name}"
32− "--provider-key=${cfg.customResolver.key}"
33− ]
34− else
35− [ "--resolvers-list=${resolverList}"
36− "--resolver-name=${cfg.resolverName}"
37− ];
38−
39− # The final command line arguments passed to the daemon
17+ # Internal flag indicating whether the upstream resolver list is used.
18+ useUpstreamResolverList = cfg.customResolver == null;
19+
20+ # The final local address.
21+ localAddress = "${cfg.localAddress}:${toString cfg.localPort}";
22+
23+ # The final resolvers list path.
24+ resolverList = "${stateDirectory}/dnscrypt-resolvers.csv";
25+
26+ # Build daemon command line
27+
28+ resolverArgs =
29+ if (cfg.customResolver == null)
30+ then
31+ [ "-L ${resolverList}"
32+ "-R ${cfg.resolverName}"
33+ ]
34+ else with cfg.customResolver;
35+ [ "-N ${name}"
36+ "-k ${key}"
37+ "-r ${address}:${toString port}"
38+ ];
39+
4040 daemonArgs =
41− [ "--local-address=${localAddress}" ]
42− ++ optional cfg.tcpOnly "--tcp-only"
43− ++ optional cfg.ephemeralKeys "-E"
44− ++ resolverArgs;
41+ [ "-a ${localAddress}" ]
42+ ++ resolverArgs
43+ ++ cfg.extraArgs;
4544in
4645
4746{
@@ -51,6 +50,9 @@ in
5150 };
5251
5352 options = {
53+ # Before adding another option, consider whether it could
54+ # equally well be passed via extraArgs.
55+
5456 services.dnscrypt-proxy = {
5557 enable = mkOption {
5658 default = false;
@@ -83,19 +85,11 @@ in
8385 default = "dnscrypt.eu-nl";
8486 type = types.nullOr types.str;
8587 description = ''
86− The name of the upstream DNSCrypt resolver to use, taken from
87− <filename>${resolverList}</filename>. The default resolver is
88− located in Holland, supports DNS security extensions, and
89− <emphasis>claims</emphasis> to not keep logs.
90− '';
91− };
92−
93− resolverList = mkOption {
94− default = null;
95− type = types.nullOr types.path;
96− description = ''
97− List of DNSCrypt resolvers. The default is to use the list of
98− public resolvers provided by upstream.
88+ The name of the DNSCrypt resolver to use, taken from
89+ <filename>${resolverList}</filename>. The default
90+ resolver is located in Holland, supports DNS security
91+ extensions, and <emphasis>claims</emphasis> to not
92+ keep logs.
9993 '';
10094 };
10195
@@ -121,7 +115,7 @@ in
121115 name = mkOption {
122116 type = types.str;
123117 description = "Fully qualified domain name";
124− example = "2.dnscrypt-cert.opendns.com";
118+ example = "2.dnscrypt-cert.example.com";
125119 };
126120
127121 key = mkOption {
@@ -132,39 +126,72 @@ in
132126 }; }));
133127 };
134128
135− tcpOnly = mkOption {
136− default = false;
137− type = types.bool;
129+ extraArgs = mkOption {
130+ default = [];
131+ type = types.listOf types.str;
138132 description = ''
139− Force sending encrypted DNS queries to the upstream resolver over
140− TCP instead of UDP (on port 443). Use only if the UDP port is blocked.
141− '';
142− };
143−
144− ephemeralKeys = mkOption {
145− default = false;
146− type = types.bool;
147− description = ''
148− Compute a new key pair for every query. Enabling this option
149− increases CPU usage, but makes it more difficult for the upstream
150− resolver to track your usage of their service across IP addresses.
151− The default is to re-use the public key pair for all queries, making
152− tracking trivial.
133+ Additional command-line arguments passed verbatim to the daemon.
134+ See <citerefentry><refentrytitle>dnscrypt-proxy</refentrytitle>
135+ <manvolnum>8</manvolnum></citerefentry> for details.
153136 '';
137+ example = [ "-X libdcplugin_example_cache.so,--min-ttl=60" ];
154138 };
155139 };
156140 };
157141
158− config = mkIf cfg.enable {
159−
142+ config = mkIf cfg.enable (mkMerge [{
160143 assertions = [
161144 { assertion = (cfg.customResolver != null) || (cfg.resolverName != null);
162145 message = "please configure upstream DNSCrypt resolver";
163146 }
164147 ];
165148
166− security.apparmor.profiles = optional apparmorEnabled (pkgs.writeText "apparmor-dnscrypt-proxy" ''
167− ${dnscrypt-proxy}/bin/dnscrypt-proxy {
149+ users.users.dnscrypt-proxy = {
150+ description = "dnscrypt-proxy daemon user";
151+ isSystemUser = true;
152+ group = "dnscrypt-proxy";
153+ };
154+ users.groups.dnscrypt-proxy = {};
155+
156+ systemd.sockets.dnscrypt-proxy = {
157+ description = "dnscrypt-proxy listening socket";
158+ documentation = [ "man:dnscrypt-proxy(8)" ];
159+
160+ wantedBy = [ "sockets.target" ];
161+
162+ socketConfig = {
163+ ListenStream = localAddress;
164+ ListenDatagram = localAddress;
165+ };
166+ };
167+
168+ systemd.services.dnscrypt-proxy = {
169+ description = "dnscrypt-proxy daemon";
170+ documentation = [ "man:dnscrypt-proxy(8)" ];
171+
172+ before = [ "nss-lookup.target" ];
173+ after = [ "network.target" ];
174+ requires = [ "dnscrypt-proxy.socket "];
175+
176+ serviceConfig = {
177+ NonBlocking = "true";
178+ ExecStart = "${pkgs.dnscrypt-proxy}/bin/dnscrypt-proxy ${toString daemonArgs}";
179+ ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
180+
181+ User = "dnscrypt-proxy";
182+
183+ PrivateTmp = true;
184+ PrivateDevices = true;
185+ ProtectHome = true;
186+ };
187+ };
188+ }
189+
190+ (mkIf config.security.apparmor.enable {
191+ systemd.services.dnscrypt-proxy.after = [ "apparmor.service" ];
192+
193+ security.apparmor.profiles = singleton (pkgs.writeText "apparmor-dnscrypt-proxy" ''
194+ ${pkgs.dnscrypt-proxy}/bin/dnscrypt-proxy {
168195 /dev/null rw,
169196 /dev/urandom r,
170197
@@ -180,6 +207,8 @@ in
180207 network inet dgram,
181208 network inet6 dgram,
182209
210+ ${getLib pkgs.dnscrypt-proxy}/lib/dnscrypt-proxy/libdcplugin*.so mr,
211+
183212 ${getLib pkgs.gcc.cc}/lib/libssp.so.* mr,
184213 ${getLib pkgs.libsodium}/lib/libsodium.so.* mr,
185214 ${getLib pkgs.systemd}/lib/libsystemd.so.* mr,
@@ -188,102 +217,106 @@ in
188217 ${getLib pkgs.libgpgerror}/lib/libgpg-error.so.* mr,
189218 ${getLib pkgs.libcap}/lib/libcap.so.* mr,
190219 ${getLib pkgs.lz4}/lib/liblz4.so.* mr,
191− ${getLib pkgs.attr}/lib/libattr.so.* mr,
220+ ${getLib pkgs.attr}/lib/libattr.so.* mr, # */
192221
193222 ${resolverList} r,
223+
224+ /run/systemd/notify rw,
194225 }
195226 '');
227+ })
196228
197− users.users.dnscrypt-proxy = {
198− description = "dnscrypt-proxy daemon user";
199− isSystemUser = true;
200− group = "dnscrypt-proxy";
201− };
202− users.groups.dnscrypt-proxy = {};
203−
204− systemd.services.init-dnscrypt-proxy-statedir = optionalAttrs useUpstreamResolverList {
229+ (mkIf useUpstreamResolverList {
230+ systemd.services.init-dnscrypt-proxy-statedir = {
205231 description = "Initialize dnscrypt-proxy state directory";
232+
233+ wantedBy = [ "dnscrypt-proxy.service" ];
234+ before = [ "dnscrypt-proxy.service" ];
235+
206236 script = ''
207237 mkdir -pv ${stateDirectory}
208238 chown -c dnscrypt-proxy:dnscrypt-proxy ${stateDirectory}
209− cp --preserve=timestamps -uv \
239+ cp -uv \
210240 ${pkgs.dnscrypt-proxy}/share/dnscrypt-proxy/dnscrypt-resolvers.csv \
211241 ${stateDirectory}
212242 '';
243+
213244 serviceConfig = {
214245 Type = "oneshot";
215246 RemainAfterExit = true;
216247 };
217248 };
218249
219− systemd.services.update-dnscrypt-resolvers = optionalAttrs useUpstreamResolverList {
250+ systemd.services.update-dnscrypt-resolvers = {
220251 description = "Update list of DNSCrypt resolvers";
221252
222253 requires = [ "init-dnscrypt-proxy-statedir.service" ];
223254 after = [ "init-dnscrypt-proxy-statedir.service" ];
224255
225− path = with pkgs; [ curl minisign ];
256+ path = with pkgs; [ curl diffutils dnscrypt-proxy minisign ];
226257 script = ''
227258 cd ${stateDirectory}
228− curl -fSsL -o dnscrypt-resolvers.csv.tmp \
229− https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv
230− curl -fSsL -o dnscrypt-resolvers.csv.minisig.tmp \
231− https://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-resolvers.csv.minisig
259+ domain=raw.githubusercontent.com
260+ get="curl -fSs --resolve $domain:443:$(hostip -r 8.8.8.8 $domain | head -1)"
261+ $get -o dnscrypt-resolvers.csv.tmp \
262+ https://$domain/jedisct1/dnscrypt-proxy/master/dnscrypt-resolvers.csv
263+ $get -o dnscrypt-resolvers.csv.minisig.tmp \
264+ https://$domain/jedisct1/dnscrypt-proxy/master/dnscrypt-resolvers.csv.minisig
232265 mv dnscrypt-resolvers.csv.minisig{.tmp,}
233− minisign -q -V -p ${upstreamResolverListPubKey} \
234− -m dnscrypt-resolvers.csv.tmp -x dnscrypt-resolvers.csv.minisig
266+ if ! minisign -q -V -p ${upstreamResolverListPubKey} \
267+ -m dnscrypt-resolvers.csv.tmp -x dnscrypt-resolvers.csv.minisig ; then
268+ echo "failed to verify resolver list!" >&2
269+ exit 1
270+ fi
271+ [[ -f dnscrypt-resolvers.csv ]] && mv dnscrypt-resolvers.csv{,.old}
235272 mv dnscrypt-resolvers.csv{.tmp,}
273+ if cmp dnscrypt-resolvers.csv{,.old} ; then
274+ echo "no change"
275+ else
276+ echo "resolver list updated"
277+ fi
236278 '';
237279
238280 serviceConfig = {
239281 PrivateTmp = true;
240282 PrivateDevices = true;
241283 ProtectHome = true;
242− ProtectSystem = true;
284+ ProtectSystem = "strict";
285+ ReadWritePaths = "${dirOf stateDirectory} ${stateDirectory}";
286+ SystemCallFilter = "~@mount";
243287 };
244288 };
245289
246− systemd.timers.update-dnscrypt-resolvers = optionalAttrs useUpstreamResolverList {
290+ systemd.timers.update-dnscrypt-resolvers = {
291+ wantedBy = [ "timers.target" ];
247292 timerConfig = {
248293 OnBootSec = "5min";
249294 OnUnitActiveSec = "6h";
250295 };
251− wantedBy = [ "timers.target" ];
252− };
253−
254− systemd.sockets.dnscrypt-proxy = {
255− description = "dnscrypt-proxy listening socket";
256− socketConfig = {
257− ListenStream = localAddress;
258− ListenDatagram = localAddress;
259− };
260− wantedBy = [ "sockets.target" ];
261296 };
262−
263− systemd.services.dnscrypt-proxy = {
264− description = "dnscrypt-proxy daemon";
265−
266− before = [ "nss-lookup.target" ];
267−
268− after = [ "network.target" ]
269− ++ optional apparmorEnabled "apparmor.service"
270− ++ optional useUpstreamResolverList "init-dnscrypt-proxy-statedir.service";
271−
272− requires = [ "dnscrypt-proxy.socket "]
273− ++ optional apparmorEnabled "apparmor.service"
274− ++ optional useUpstreamResolverList "init-dnscrypt-proxy-statedir.service";
275−
276− serviceConfig = {
277− Type = "simple";
278− NonBlocking = "true";
279− ExecStart = "${dnscrypt-proxy}/bin/dnscrypt-proxy ${toString daemonArgs}";
280−
281− User = "dnscrypt-proxy";
282−
283− PrivateTmp = true;
284− PrivateDevices = true;
285− ProtectHome = true;
286− };
287− };
288− };
297+ })
298+ ]);
299+
300+ imports = [
301+ (mkRenamedOptionModule [ "services" "dnscrypt-proxy" "port" ] [ "services" "dnscrypt-proxy" "localPort" ])
302+
303+ (mkChangedOptionModule
304+ [ "services" "dnscrypt-proxy" "tcpOnly" ]
305+ [ "services" "dnscrypt-proxy" "extraArgs" ]
306+ (config:
307+ let val = getAttrFromPath [ "services" "dnscrypt-proxy" "tcpOnly" ] config; in
308+ optional val "-T"))
309+
310+ (mkChangedOptionModule
311+ [ "services" "dnscrypt-proxy" "ephemeralKeys" ]
312+ [ "services" "dnscrypt-proxy" "extraArgs" ]
313+ (config:
314+ let val = getAttrFromPath [ "services" "dnscrypt-proxy" "ephemeralKeys" ] config; in
315+ optional val "-E"))
316+
317+ (mkRemovedOptionModule [ "services" "dnscrypt-proxy" "resolverList" ] ''
318+ The current resolver listing from upstream is always used
319+ unless a custom resolver is specified.
320+ '')
321+ ];
289322}
nixos/modules/services/networking/dnscrypt-proxy.xml+4−8
@@ -31,15 +31,12 @@
3131
3232 </sect1>
3333
34− <sect1><title>As a forwarder for a caching DNS client</title>
34+ <sect1><title>As a forwarder for another DNS client</title>
3535
3636 <para>
37− By default, DNSCrypt proxy acts as a transparent proxy for the
38− system stub resolver. Because the client does not cache lookups, this
39− setup can significantly slow down e.g., web browsing. The recommended
40− configuration is to run DNSCrypt proxy as a forwarder for a caching DNS
41− client. To achieve this, change the default proxy listening port to
42− a non-standard value and point the caching client to it:
37+ To run the DNSCrypt proxy client as a forwarder for another
38+ DNS client, change the default proxy listening port to a
39+ non-standard value and point the other client to it:
4340 <programlisting>
4441 services.dnscrypt-proxy.localPort = 43;
4542 </programlisting>
@@ -60,7 +57,6 @@
6057 <para>
6158 <programlisting>
6259 {
63− networking.nameservers = [ "127.0.0.1" ];
6460 services.unbound.enable = true;
6561 services.unbound.forwardAddresses = [ "127.0.0.1@43" ];
6662 }
nixos/modules/services/networking/ferm.nix−1
@@ -19,7 +19,6 @@ in {
1919 services.ferm = {
2020 enable = mkOption {
2121 default = false;
22− example = true;
2322 type = types.bool;
2423 description = ''
2524 Whether to enable Ferm Firewall.
nixos/modules/services/networking/firefox/sync-server.nix−2
@@ -33,7 +33,6 @@ in
3333 enable = mkOption {
3434 type = types.bool;
3535 default = false;
36− example = true;
3736 description = ''
3837 Whether to enable a Firefox Sync Server, this give the opportunity to
3938 Firefox users to store all synchronized data on their own server. To use this
@@ -78,7 +77,6 @@ in
7877 allowNewUsers = mkOption {
7978 type = types.bool;
8079 default = true;
81− example = false;
8280 description = ''
8381 Whether to allow new-user signups on the server. Only request by
8482 existing accounts will be honored.
nixos/modules/services/networking/gale.nix+1−1
@@ -141,7 +141,7 @@ in
141141 setgid = false;
142142 };
143143
144− security.setuidOwners = [ cfg.setuidWrapper ];
144+ security.wrappers.gksign = cfg.setuidWrapper;
145145
146146 systemd.services.gale-galed = {
147147 description = "Gale messaging daemon";
nixos/modules/services/networking/mosquitto.nix−1
@@ -147,7 +147,6 @@ in
147147
148148 allowAnonymous = mkOption {
149149 default = false;
150− example = true;
151150 type = types.bool;
152151 description = ''
153152 Allow clients to connect without authentication.
nixos/modules/services/networking/networkmanager.nix+19
@@ -24,6 +24,8 @@ let
2424
2525 [connection]
2626 ipv6.ip6-privacy=2
27+ ethernet.cloned-mac-address=${cfg.ethernet.macAddress}
28+ wifi.cloned-mac-address=${cfg.wifi.macAddress}
2729 '';
2830
2931 /*
@@ -73,6 +75,19 @@ let
7375 "pre-down" = "pre-down.d/";
7476 };
7577
78+ macAddressOpt = mkOption {
79+ type = types.either types.str (types.enum ["permanent" "preserve" "random" "stable"]);
80+ default = "preserve";
81+ example = "00:11:22:33:44:55";
82+ description = ''
83+ "XX:XX:XX:XX:XX:XX": MAC address of the interface.
84+ <literal>permanent</literal>: use the permanent MAC address of the device.
85+ <literal>preserve</literal>: don’t change the MAC address of the device upon activation.
86+ <literal>random</literal>: generate a randomized value upon each connect.
87+ <literal>stable</literal>: generate a stable, hashed MAC address.
88+ '';
89+ };
90+
7691in {
7792
7893 ###### interface
@@ -140,6 +155,9 @@ in {
140155 '';
141156 };
142157
158+ ethernet.macAddress = macAddressOpt;
159+ wifi.macAddress = macAddressOpt;
160+
143161 dispatcherScripts = mkOption {
144162 type = types.listOf (types.submodule {
145163 options = {
@@ -229,6 +247,7 @@ in {
229247
230248 systemd.services."network-manager" = {
231249 wantedBy = [ "network.target" ];
250+ restartTriggers = [ configFile ];
232251
233252 preStart = ''
234253 mkdir -m 700 -p /etc/NetworkManager/system-connections
nixos/modules/services/networking/nftables.nixnew file+136
@@ -0,0 +1,136 @@
1+{ config, pkgs, lib, ... }:
2+with lib;
3+let
4+ cfg = config.networking.nftables;
5+in
6+{
7+ ###### interface
8+
9+ options = {
10+ networking.nftables.enable = mkOption {
11+ type = types.bool;
12+ default = false;
13+ description =
14+ ''
15+ Whether to enable nftables. nftables is a Linux-based packet
16+ filtering framework intended to replace frameworks like iptables.
17+
18+ This conflicts with the standard networking firewall, so make sure to
19+ disable it before using nftables.
20+
21+ Note that if you have Docker enabled you will not be able to use
22+ nftables without intervention. Docker uses iptables internally to
23+ setup NAT for containers. This module disables the ip_tables kernel
24+ module, however Docker automatically loads the module. Please see [1]
25+ for more information.
26+
27+ There are other programs that use iptables internally too, such as
28+ libvirt.
29+
30+ [1]: https://github.com/NixOS/nixpkgs/issues/24318#issuecomment-289216273
31+ '';
32+ };
33+ networking.nftables.ruleset = mkOption {
34+ type = types.lines;
35+ example = ''
36+ # Check out https://wiki.nftables.org/ for better documentation.
37+ # Table for both IPv4 and IPv6.
38+ table inet filter {
39+ # Block all incomming connections traffic except SSH and "ping".
40+ chain input {
41+ type filter hook input priority 0;
42+
43+ # accept any localhost traffic
44+ iifname lo accept
45+
46+ # accept traffic originated from us
47+ ct state {established, related} accept
48+
49+ # ICMP
50+ # routers may also want: mld-listener-query, nd-router-solicit
51+ ip6 nexthdr icmpv6 icmpv6 type { destination-unreachable, packet-too-big, time-exceeded, parameter-problem, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert } accept
52+ ip protocol icmp icmp type { destination-unreachable, router-advertisement, time-exceeded, parameter-problem } accept
53+
54+ # allow "ping"
55+ ip6 nexthdr icmp icmpv6 type echo-request accept
56+ ip protocol icmp icmp type echo-request accept
57+
58+ # accept SSH connections (required for a server)
59+ tcp dport 22 accept
60+
61+ # count and drop any other traffic
62+ counter drop
63+ }
64+
65+ # Allow all outgoing connections.
66+ chain output {
67+ type filter hook output priority 0;
68+ accept
69+ }
70+
71+ chain forward {
72+ type filter hook forward priority 0;
73+ accept
74+ }
75+ }
76+ '';
77+ description =
78+ ''
79+ The ruleset to be used with nftables. Should be in a format that
80+ can be loaded using "/bin/nft -f". The ruleset is updated atomically.
81+ '';
82+ };
83+ networking.nftables.rulesetFile = mkOption {
84+ type = types.path;
85+ default = pkgs.writeTextFile {
86+ name = "nftables-rules";
87+ text = cfg.ruleset;
88+ };
89+ description =
90+ ''
91+ The ruleset file to be used with nftables. Should be in a format that
92+ can be loaded using "nft -f". The ruleset is updated atomically.
93+ '';
94+ };
95+ };
96+
97+ ###### implementation
98+
99+ config = mkIf cfg.enable {
100+ assertions = [{
101+ assertion = config.networking.firewall.enable == false;
102+ message = "You can not use nftables with services.networking.firewall.";
103+ }];
104+ boot.blacklistedKernelModules = [ "ip_tables" ];
105+ environment.systemPackages = [ pkgs.nftables ];
106+ systemd.services.nftables = {
107+ description = "nftables firewall";
108+ before = [ "network-pre.target" ];
109+ wants = [ "network-pre.target" ];
110+ wantedBy = [ "multi-user.target" ];
111+ reloadIfChanged = true;
112+ serviceConfig = let
113+ rulesScript = pkgs.writeScript "nftables-rules" ''
114+ #! ${pkgs.nftables}/bin/nft -f
115+ flush ruleset
116+ include "${cfg.rulesetFile}"
117+ '';
118+ checkScript = pkgs.writeScript "nftables-check" ''
119+ #! ${pkgs.stdenv.shell} -e
120+ if $(${pkgs.kmod}/bin/lsmod | grep -q ip_tables); then
121+ echo "Unload ip_tables before using nftables!" 1>&2
122+ exit 1
123+ else
124+ ${rulesScript}
125+ fi
126+ '';
127+ in {
128+ Type = "oneshot";
129+ RemainAfterExit = true;
130+ ExecStart = checkScript;
131+ ExecReload = checkScript;
132+ ExecStop = "${pkgs.nftables}/bin/nft flush ruleset";
133+ };
134+ };
135+ };
136+}
nixos/modules/services/networking/openntpd.nix+8−1
@@ -11,6 +11,9 @@ let
1111 ${concatStringsSep "\n" (map (s: "server ${s}") cfg.servers)}
1212 ${cfg.extraConfig}
1313 '';
14+
15+ pidFile = "/run/openntpd.pid";
16+
1417in
1518{
1619 ###### interface
@@ -67,7 +70,11 @@ in
6770 wants = [ "network-online.target" "time-sync.target" ];
6871 before = [ "time-sync.target" ];
6972 after = [ "dnsmasq.service" "bind.service" "network-online.target" ];
70− serviceConfig.ExecStart = "${package}/sbin/ntpd -d -f ${cfgFile} ${cfg.extraOptions}";
73+ serviceConfig = {
74+ ExecStart = "${package}/sbin/ntpd -f ${cfgFile} -p ${pidFile} ${cfg.extraOptions}";
75+ Type = "forking";
76+ PIDFile = pidFile;
77+ };
7178 };
7279 };
7380}
nixos/modules/services/networking/prayer.nix+1−1
@@ -18,7 +18,7 @@ let
1818 var_prefix = "${stateDir}"
1919 prayer_user = "${prayerUser}"
2020 prayer_group = "${prayerGroup}"
21− sendmail_path = "/var/setuid-wrappers/sendmail"
21+ sendmail_path = "/run/wrappers/bin/sendmail"
2222
2323 use_http_port ${cfg.port}
2424
nixos/modules/services/networking/prosody.nix+2−1
@@ -265,7 +265,8 @@ in
265265 systemd.services.prosody = {
266266
267267 description = "Prosody XMPP server";
268− after = [ "network.target" ];
268+ after = [ "network-online.target" ];
269+ wants = [ "network-online.target" ];
269270 wantedBy = [ "multi-user.target" ];
270271 serviceConfig = {
271272 User = "prosody";
nixos/modules/services/networking/quagga.nix−1
@@ -104,7 +104,6 @@ in
104104 enable = mkOption {
105105 type = types.bool;
106106 default = any isEnabled services;
107− example = true;
108107 description = ''
109108 Whether to enable the Zebra routing manager.
110109
nixos/modules/services/networking/quassel.nix+2−2
@@ -25,8 +25,8 @@ in
2525
2626 package = mkOption {
2727 type = types.package;
28− default = pkgs.kde4.quasselDaemon;
29− defaultText = "pkgs.kde4.quasselDaemon";
28+ default = pkgs.quasselDaemon;
29+ defaultText = "pkgs.quasselDaemon";
3030 description = ''
3131 The package of the quassel daemon.
3232 '';
nixos/modules/services/networking/searx.nix+7−8
@@ -18,15 +18,12 @@ in
1818
1919 services.searx = {
2020
21− enable = mkOption {
22− default = false;
23− description = "
24− Whether to enable the Searx server. See https://github.com/asciimoo/searx
25− ";
26− };
21+ enable = mkEnableOption
22+ "the searx server. See https://github.com/asciimoo/searx";
2723
2824 configFile = mkOption {
29− default = "";
25+ type = types.nullOr types.path;
26+ default = null;
3027 description = "
3128 The path of the Searx server configuration file. If no file
3229 is specified, a default file is used (default config file has
@@ -35,7 +32,9 @@ in
3532 };
3633
3734 package = mkOption {
35+ type = types.package;
3836 default = pkgs.pythonPackages.searx;
37+ defaultText = "pkgs.pythonPackages.searx";
3938 description = "searx package to use.";
4039 };
4140
@@ -68,7 +67,7 @@ in
6867 User = "searx";
6968 ExecStart = "${cfg.package}/bin/searx-run";
7069 };
71− } // (optionalAttrs (configFile != "") {
70+ } // (optionalAttrs (configFile != null) {
7271 environment.SEARX_SETTINGS_PATH = configFile;
7372 });
7473
nixos/modules/services/networking/smokeping.nix+5−2
@@ -226,7 +226,7 @@ in
226226 sendmail = mkOption {
227227 type = types.nullOr types.path;
228228 default = null;
229− example = "/var/setuid-wrappers/sendmail";
229+ example = "/run/wrappers/bin/sendmail";
230230 description = "Use this sendmail compatible script to deliver alerts";
231231 };
232232 smokeMailTemplate = mkOption {
@@ -273,7 +273,10 @@ in
273273 message = "services.smokeping: sendmail and Mailhost cannot both be enabled.";
274274 }
275275 ];
276− security.setuidPrograms = [ "fping" "fping6" ];
276+ security.wrappers = {
277+ fping.source = "${pkgs.fping}/bin/fping";
278+ "fping6".source = "${pkgs.fping}/bin/fping6";
279+ };
277280 environment.systemPackages = [ pkgs.fping ];
278281 users.extraUsers = singleton {
279282 name = cfg.user;
nixos/modules/services/networking/ssh/sshd.nix+18−27
@@ -240,7 +240,7 @@ in
240240
241241 systemd =
242242 let
243− sshd-service =
243+ service =
244244 { description = "SSH Daemon";
245245
246246 wantedBy = optional (!cfg.startWhenNeeded) "multi-user.target";
@@ -251,8 +251,20 @@ in
251251
252252 environment.LD_LIBRARY_PATH = nssModulesPath;
253253
254− wants = [ "sshd-keygen.service" ];
255− after = [ "sshd-keygen.service" ];
254+ preStart =
255+ ''
256+ # Make sure we don't write to stdout, since in case of
257+ # socket activation, it goes to the remote side (#19589).
258+ exec >&2
259+
260+ mkdir -m 0755 -p /etc/ssh
261+
262+ ${flip concatMapStrings cfg.hostKeys (k: ''
263+ if ! [ -f "${k.path}" ]; then
264+ ssh-keygen -t "${k.type}" ${if k ? bits then "-b ${toString k.bits}" else ""} -f "${k.path}" -N ""
265+ fi
266+ '')}
267+ '';
256268
257269 serviceConfig =
258270 { ExecStart =
@@ -262,31 +274,12 @@ in
262274 KillMode = "process";
263275 } // (if cfg.startWhenNeeded then {
264276 StandardInput = "socket";
277+ StandardError = "journal";
265278 } else {
266279 Restart = "always";
267280 Type = "simple";
268281 });
269282 };
270−
271− sshd-keygen-service =
272− { description = "SSH Host Key Generation";
273− path = [ cfgc.package ];
274− script =
275− ''
276− mkdir -m 0755 -p /etc/ssh
277− ${flip concatMapStrings cfg.hostKeys (k: ''
278− if ! [ -f "${k.path}" ]; then
279− ssh-keygen -t "${k.type}" ${if k ? bits then "-b ${toString k.bits}" else ""} -f "${k.path}" -N ""
280− fi
281− '')}
282− '';
283−
284− serviceConfig = {
285− Type = "oneshot";
286− RemainAfterExit = "yes";
287− };
288− };
289−
290283 in
291284
292285 if cfg.startWhenNeeded then {
@@ -298,13 +291,11 @@ in
298291 socketConfig.Accept = true;
299292 };
300293
301− services.sshd-keygen = sshd-keygen-service;
302− services."sshd@" = sshd-service;
294+ services."sshd@" = service;
303295
304296 } else {
305297
306− services.sshd-keygen = sshd-keygen-service;
307− services.sshd = sshd-service;
298+ services.sshd = service;
308299
309300 };
310301
nixos/modules/services/networking/tinc.nix+2−2
@@ -18,7 +18,7 @@ in
1818
1919 networks = mkOption {
2020 default = { };
21− type = with types; loaOf (submodule {
21+ type = with types; attrsOf (submodule {
2222 options = {
2323
2424 extraConfig = mkOption {
@@ -59,7 +59,7 @@ in
5959
6060 hosts = mkOption {
6161 default = { };
62− type = types.loaOf types.lines;
62+ type = types.attrsOf types.lines;
6363 description = ''
6464 The name of the host in the network as well as the configuration for that host.
6565 This name should only contain alphanumerics and underscores.
nixos/modules/services/networking/vsftpd.nix+3
@@ -37,6 +37,9 @@ let
3737 (yesNoOption "anonymousUser" "anonymous_enable" false ''
3838 Whether to enable the anonymous FTP user.
3939 '')
40+ (yesNoOption "anonymousUserNoPassword" "no_anon_password" false ''
41+ Whether to disable the password for the anonymous FTP user.
42+ '')
4043 (yesNoOption "localUsers" "local_enable" false ''
4144 Whether to enable FTP for local users.
4245 '')
nixos/modules/services/networking/znc.nix+1−4
@@ -132,7 +132,6 @@ in
132132 services.znc = {
133133 enable = mkOption {
134134 default = false;
135− example = true;
136135 type = types.bool;
137136 description = ''
138137 Enable a ZNC service for a user.
@@ -208,7 +207,7 @@ in
208207
209208 networks = mkOption {
210209 default = { };
211− type = with types; loaOf (submodule networkOpts);
210+ type = with types; attrsOf (submodule networkOpts);
212211 description = ''
213212 IRC networks to connect the user to.
214213 '';
@@ -251,7 +250,6 @@ in
251250
252251 useSSL = mkOption {
253252 default = true;
254− example = true;
255253 type = types.bool;
256254 description = ''
257255 Indicates whether the ZNC server should use SSL when listening on the specified port. A self-signed certificate will be generated.
@@ -278,7 +276,6 @@ in
278276
279277 mutable = mkOption {
280278 default = false;
281− example = true;
282279 type = types.bool;
283280 description = ''
284281 Indicates whether to allow the contents of the `dataDir` directory to be changed
nixos/modules/services/printing/cupsd.nix+1
@@ -52,6 +52,7 @@ let
5252
5353 ServerBin ${bindir}/lib/cups
5454 DataDir ${bindir}/share/cups
55+ DocumentRoot ${cups.out}/share/doc/cups
5556
5657 AccessLog syslog
5758 ErrorLog syslog
nixos/modules/services/scheduling/atd.nix+4−3
@@ -42,13 +42,14 @@ in
4242
4343 config = mkIf cfg.enable {
4444
45− security.setuidOwners = map (program: {
46− inherit program;
45+ security.wrappers = builtins.listToAttrs (
46+ map (program: { name = "${program}"; value = {
47+ source = "${at}/bin/${program}";
4748 owner = "atd";
4849 group = "atd";
4950 setuid = true;
5051 setgid = true;
51− }) [ "at" "atq" "atrm" "batch" ];
52+ };}) [ "at" "atq" "atrm" "batch" ]);
5253
5354 environment.systemPackages = [ at ];
5455
nixos/modules/services/scheduling/cron.nix+4−8
@@ -20,7 +20,7 @@ let
2020 cronNixosPkg = pkgs.cron.override {
2121 # The mail.nix nixos module, if there is any local mail system enabled,
2222 # should have sendmail in this path.
23− sendmailPath = "/var/setuid-wrappers/sendmail";
23+ sendmailPath = "/run/wrappers/bin/sendmail";
2424 };
2525
2626 allFiles =
@@ -39,7 +39,7 @@ in
3939
4040 enable = mkOption {
4141 type = types.bool;
42− example = true;
42+ default = false;
4343 description = "Whether to enable the Vixie cron daemon.";
4444 };
4545
@@ -61,7 +61,7 @@ in
6161 A list of Cron jobs to be appended to the system-wide
6262 crontab. See the manual page for crontab for the expected
6363 format. If you want to get the results mailed you must setuid
64− sendmail. See <option>security.setuidOwners</option>
64+ sendmail. See <option>security.wrappers</option>
6565
6666 If neither /var/cron/cron.deny nor /var/cron/cron.allow exist only root
6767 will is allowed to have its own crontab file. The /var/cron/cron.deny file
@@ -92,13 +92,9 @@ in
9292 config = mkMerge [
9393
9494 { services.cron.enable = mkDefault (allFiles != []); }
95−
9695 (mkIf (config.services.cron.enable) {
97−
98− security.setuidPrograms = [ "crontab" ];
99−
96+ security.wrappers.crontab.source = "${cronNixosPkg}/bin/crontab";
10097 environment.systemPackages = [ cronNixosPkg ];
101−
10298 environment.etc.crontab =
10399 { source = pkgs.runCommand "crontabs" { inherit allFiles; preferLocalBuild = true; }
104100 ''
nixos/modules/services/scheduling/fcron.nix+40−13
@@ -23,7 +23,8 @@ let
2323 allowdeny = target: users:
2424 { source = pkgs.writeText "fcron.${target}" (concatStringsSep "\n" users);
2525 target = "fcron.${target}";
26− mode = "600"; # fcron has some security issues.. So I guess this is most safe
26+ mode = "644";
27+ gid = config.ids.gids.fcron;
2728 };
2829
2930in
@@ -89,25 +90,48 @@ in
8990 [ (allowdeny "allow" (cfg.allow))
9091 (allowdeny "deny" cfg.deny)
9192 # see man 5 fcron.conf
92− { source = pkgs.writeText "fcon.conf" ''
93+ { source = pkgs.writeText "fcron.conf" ''
9394 fcrontabs = /var/spool/fcron
9495 pidfile = /var/run/fcron.pid
9596 fifofile = /var/run/fcron.fifo
9697 fcronallow = /etc/fcron.allow
9798 fcrondeny = /etc/fcron.deny
9899 shell = /bin/sh
99− sendmail = /var/setuid-wrappers/sendmail
100− editor = /run/current-system/sw/bin/vi
100+ sendmail = /run/wrappers/bin/sendmail
101+ editor = ${pkgs.vim}/bin/vim
101102 '';
102103 target = "fcron.conf";
103− mode = "0600"; # max allowed is 644
104+ gid = config.ids.gids.fcron;
105+ mode = "0644";
104106 }
105107 ];
106108
107109 environment.systemPackages = [ pkgs.fcron ];
108−
109− security.setuidPrograms = [ "fcrontab" ];
110−
110+ users.extraUsers.fcron = {
111+ uid = config.ids.uids.fcron;
112+ home = "/var/spool/fcron";
113+ group = "fcron";
114+ };
115+ users.groups.fcron.gid = config.ids.gids.fcron;
116+
117+ security.wrappers = {
118+ fcrontab = {
119+ source = "${pkgs.fcron}/bin/fcrontab";
120+ owner = "fcron";
121+ group = "fcron";
122+ setgid = true;
123+ };
124+ fcrondyn = {
125+ source = "${pkgs.fcron}/bin/fcrondyn";
126+ owner = "fcron";
127+ group = "fcron";
128+ setgid = true;
129+ };
130+ fcronsighup = {
131+ source = "${pkgs.fcron}/bin/fcronsighup";
132+ group = "fcron";
133+ };
134+ };
111135 systemd.services.fcron = {
112136 description = "fcron daemon";
113137 after = [ "local-fs.target" ];
@@ -119,14 +143,17 @@ in
119143 };
120144
121145 preStart = ''
122− ${pkgs.coreutils}/bin/mkdir -m 0700 -p /var/spool/fcron
146+ ${pkgs.coreutils}/bin/mkdir -m 0770 -p /var/spool/fcron
147+ ${pkgs.coreutils}/bin/chown -R fcron:fcron /var/spool/fcron
123148 # load system crontab file
124− ${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab}
149+ set -x
150+ #${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab}
125151 '';
126152
127− serviceConfig.Type = "forking";
128−
129− script = "${pkgs.fcron}/sbin/fcron -m ${toString cfg.maxSerialJobs} ${queuelen}";
153+ serviceConfig = {
154+ Type = "forking";
155+ ExecStart = "${pkgs.fcron}/sbin/fcron -m ${toString cfg.maxSerialJobs} ${queuelen}";
156+ };
130157 };
131158 };
132159}
nixos/modules/services/security/haka.nix−1
@@ -99,7 +99,6 @@ in
9999
100100 pcap = mkOption {
101101 default = true;
102− example = false;
103102 type = types.bool;
104103 description = "Whether to enable pcap";
105104 };
nixos/modules/services/security/physlock.nix+2−12
@@ -26,17 +26,7 @@ in
2626 This will switch to a new virtual terminal, turn off console
2727 switching and disable SysRq mechanism (when
2828 <option>services.physlock.disableSysRq</option> is set)
29− until the root or <option>services.physlock.user</option>
30− password is given.
31− '';
32− };
33−
34− user = mkOption {
35− type = types.nullOr types.str;
36− default = null;
37− description = ''
38− User whose password will be used to unlock the screen on par
39− with the root password.
29+ until the root or user password is given.
4030 '';
4131 };
4232
@@ -105,7 +95,7 @@ in
10595 ++ cfg.lockOn.extraTargets;
10696 serviceConfig.Type = "forking";
10797 script = ''
108− ${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}${optionalString (cfg.user != null) " -u ${cfg.user}"}
98+ ${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}
10999 '';
110100 };
111101
nixos/modules/services/security/tor.nix+17
@@ -12,6 +12,10 @@ let
1212 torRc = ''
1313 User tor
1414 DataDirectory ${torDirectory}
15+ ${optionalString cfg.enableGeoIP ''
16+ GeoIPFile ${pkgs.tor.geoip}/share/tor/geoip
17+ GeoIPv6File ${pkgs.tor.geoip}/share/tor/geoip6
18+ ''}
1519
1620 ${optint "ControlPort" cfg.controlPort}
1721 ''
@@ -58,6 +62,18 @@ in
5862 '';
5963 };
6064
65+ enableGeoIP = mkOption {
66+ type = types.bool;
67+ default = true;
68+ description = ''
69+ Whenever to configure Tor daemon to use GeoIP databases.
70+
71+ Disabling this will disable by-country statistics for
72+ bridges and relays and some client and third-party software
73+ functionality.
74+ '';
75+ };
76+
6177 extraConfig = mkOption {
6278 type = types.lines;
6379 default = "";
@@ -124,6 +140,7 @@ in
124140 };
125141
126142 privoxy.enable = mkOption {
143+ type = types.bool;
127144 default = true;
128145 description = ''
129146 Whether to enable and configure the system Privoxy to use Tor's
nixos/modules/services/security/torify.nix+12−4
@@ -19,15 +19,23 @@ in
1919{
2020
2121 ###### interface
22−
22+
2323 options = {
24−
24+
2525 services.tor.tsocks = {
2626
2727 enable = mkOption {
28− default = cfg.enable && cfg.client.enable;
28+ default = false;
2929 description = ''
30− Whether to build tsocks wrapper script to relay application traffic via TOR.
30+ Whether to build tsocks wrapper script to relay application traffic via Tor.
31+
32+ <important>
33+ <para>You shouldn't use this unless you know what you're
34+ doing because your installation of Tor already comes with
35+ its own superior (doesn't leak DNS queries)
36+ <literal>torsocks</literal> wrapper which does pretty much
37+ exactly the same thing as this.</para>
38+ </important>
3139 '';
3240 };
3341
nixos/modules/services/system/dbus-session-local.conf.indeleted−5
@@ -1,5 +0,0 @@
1−<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
2− "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3−<busconfig>
4− @extra@
5−</busconfig>
nixos/modules/services/system/dbus-system-local.conf.indeleted−6
@@ -1,6 +0,0 @@
1−<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
2− "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3−<busconfig>
4− <servicehelper>@servicehelper@</servicehelper>
5− @extra@
6−</busconfig>
nixos/modules/services/system/dbus.nix+12−35
@@ -10,32 +10,10 @@ let
1010
1111 homeDir = "/run/dbus";
1212
13− systemExtraxml = concatStrings (flip concatMap cfg.packages (d: [
14− "<servicedir>${d}/share/dbus-1/system-services</servicedir>"
15− "<includedir>${d}/etc/dbus-1/system.d</includedir>"
16− ]));
17−
18− sessionExtraxml = concatStrings (flip concatMap cfg.packages (d: [
19− "<servicedir>${d}/share/dbus-1/services</servicedir>"
20− "<includedir>${d}/etc/dbus-1/session.d</includedir>"
21− ]));
22−
23− configDir = pkgs.runCommand "dbus-conf"
24− { preferLocalBuild = true;
25− allowSubstitutes = false;
26− }
27− ''
28− mkdir -p $out
29−
30− sed '${./dbus-system-local.conf.in}' \
31− -e 's,@servicehelper@,${config.security.wrapperDir}/dbus-daemon-launch-helper,g' \
32− -e 's,@extra@,${systemExtraxml},' \
33− > "$out/system-local.conf"
34−
35− sed '${./dbus-session-local.conf.in}' \
36− -e 's,@extra@,${sessionExtraxml},' \
37− > "$out/session-local.conf"
38− '';
13+ configDir = pkgs.makeDBusConf {
14+ suidHelper = "${config.security.wrapperDir}/dbus-daemon-launch-helper";
15+ serviceDirectories = cfg.packages;
16+ };
3917
4018in
4119
@@ -104,15 +82,14 @@ in
10482
10583 systemd.packages = [ pkgs.dbus.daemon ];
10684
107− security.setuidOwners = singleton
108− { program = "dbus-daemon-launch-helper";
109− source = "${pkgs.dbus.daemon}/libexec/dbus-daemon-launch-helper";
110− owner = "root";
111− group = "messagebus";
112− setuid = true;
113− setgid = false;
114− permissions = "u+rx,g+rx,o-rx";
115− };
85+ security.wrappers.dbus-daemon-launch-helper = {
86+ source = "${pkgs.dbus.daemon}/libexec/dbus-daemon-launch-helper";
87+ owner = "root";
88+ group = "messagebus";
89+ setuid = true;
90+ setgid = false;
91+ permissions = "u+rx,g+rx,o-rx";
92+ };
11693
11794 services.dbus.packages = [
11895 pkgs.dbus.out
nixos/modules/services/system/earlyoom.nixnew file+96
@@ -0,0 +1,96 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ ecfg = config.services.earlyoom;
7+in
8+{
9+ options = {
10+ services.earlyoom = {
11+
12+ enable = mkOption {
13+ type = types.bool;
14+ default = false;
15+ description = ''
16+ Enable early out of memory killing.
17+ '';
18+ };
19+
20+ freeMemThreshold = mkOption {
21+ type = types.int;
22+ default = 10;
23+ description = ''
24+ Minimum of availabe memory (in percent).
25+ If the free memory falls below this threshold and the analog is true for
26+ <option>services.earlyoom.freeSwapThreshold</option>
27+ the killing begins.
28+ '';
29+ };
30+
31+ freeSwapThreshold = mkOption {
32+ type = types.int;
33+ default = 10;
34+ description = ''
35+ Minimum of availabe swap space (in percent).
36+ If the available swap space falls below this threshold and the analog
37+ is true for <option>services.earlyoom.freeMemThreshold</option>
38+ the killing begins.
39+ '';
40+ };
41+
42+ useKernelOOMKiller= mkOption {
43+ type = types.bool;
44+ default = false;
45+ description = ''
46+ Use kernel OOM killer instead of own user-space implementation.
47+ '';
48+ };
49+
50+ ignoreOOMScoreAdjust = mkOption {
51+ type = types.bool;
52+ default = false;
53+ description = ''
54+ Ignore oom_score_adjust values of processes.
55+ User-space implementation only.
56+ '';
57+ };
58+
59+ enableDebugInfo = mkOption {
60+ type = types.bool;
61+ default = false;
62+ description = ''
63+ Enable debugging messages.
64+ '';
65+ };
66+ };
67+ };
68+
69+ config = mkIf ecfg.enable {
70+ assertions = [
71+ { assertion = ecfg.freeMemThreshold > 0 && ecfg.freeMemThreshold <= 100;
72+ message = "Needs to be a positive percentage"; }
73+ { assertion = ecfg.freeSwapThreshold > 0 && ecfg.freeSwapThreshold <= 100;
74+ message = "Needs to be a positive percentage"; }
75+ { assertion = !ecfg.useKernelOOMKiller || !ecfg.ignoreOOMScoreAdjust;
76+ message = "Both options in conjunction do not make sense"; }
77+ ];
78+
79+ systemd.services.earlyoom = {
80+ description = "Early OOM Daemon for Linux";
81+ wantedBy = [ "multi-user.target" ];
82+ serviceConfig = {
83+ StandardOutput = "null";
84+ StandardError = "syslog";
85+ ExecStart = ''
86+ ${pkgs.earlyoom}/bin/earlyoom \
87+ -m ${toString ecfg.freeMemThreshold} \
88+ -s ${toString ecfg.freeSwapThreshold} \
89+ ${optionalString ecfg.useKernelOOMKiller "-k"} \
90+ ${optionalString ecfg.ignoreOOMScoreAdjust "-i"} \
91+ ${optionalString ecfg.enableDebugInfo "-d"}
92+ '';
93+ };
94+ };
95+ };
96+}
nixos/modules/services/torrent/deluge.nix−2
@@ -13,7 +13,6 @@ in {
1313 deluge = {
1414 enable = mkOption {
1515 default = false;
16− example = true;
1716 description = "Start the Deluge daemon";
1817 };
1918
@@ -29,7 +28,6 @@ in {
2928 deluge.web = {
3029 enable = mkOption {
3130 default = false;
32− example = true;
3331 description = ''
3432 Start Deluge Web daemon.
3533 '';
nixos/modules/services/ttys/kmscon.nix+1−1
@@ -76,7 +76,7 @@ in {
7676 ln -s ${config.systemd.units."kmsconvt@.service".unit}/kmsconvt@.service $out/autovt@.service
7777 '';
7878
79− systemd.services.systemd-vconsole-setup.restartIfChanged = false;
79+ systemd.services.systemd-vconsole-setup.enable = false;
8080
8181 services.kmscon.extraConfig = mkIf cfg.hwRender ''
8282 drm
nixos/modules/services/web-apps/atlassian/crowd.nix−1
@@ -88,7 +88,6 @@ in
8888 secure = mkOption {
8989 type = types.bool;
9090 default = true;
91− example = false;
9291 description = "Whether the connections to the proxy should be considered secure.";
9392 };
9493 };
nixos/modules/services/web-apps/atlassian/jira.nix−1
@@ -78,7 +78,6 @@ in
7878 secure = mkOption {
7979 type = types.bool;
8080 default = true;
81− example = false;
8281 description = "Whether the connections to the proxy should be considered secure.";
8382 };
8483 };
nixos/modules/services/web-apps/mattermost.nix+1
@@ -202,6 +202,7 @@ in
202202 ExecStart = "${pkgs.mattermost}/bin/mattermost-platform";
203203 WorkingDirectory = "${cfg.statePath}";
204204 PrivateTmp = true;
205+ JoinsNamespaceOf = mkIf cfg.localDatabaseCreate "postgresql.service";
205206 Restart = "always";
206207 RestartSec = "10";
207208 LimitNOFILE = "49152";
nixos/modules/services/web-apps/pump.io-configure.jsnew file+23
@@ -0,0 +1,23 @@
1+var fs = require('fs');
2+
3+var opts = JSON.parse(fs.readFileSync("/dev/stdin").toString());
4+var config = opts.config;
5+
6+var readSecret = function(filename) {
7+ return fs.readFileSync(filename).toString().trim();
8+};
9+
10+if (opts.secretFile) {
11+ config.secret = readSecret(opts.secretFile);
12+}
13+if (opts.dbPasswordFile) {
14+ config.params.dbpass = readSecret(opts.dbPasswordFile);
15+}
16+if (opts.smtpPasswordFile) {
17+ config.smtppass = readSecret(opts.smtpPasswordFile);
18+}
19+if (opts.spamClientSecretFile) {
20+ config.spamclientsecret = readSecret(opts.opts.spamClientSecretFile);
21+}
22+
23+fs.writeFileSync(opts.outputFile, JSON.stringify(config));
nixos/modules/services/web-apps/pump.io.nix+147−73
@@ -5,71 +5,74 @@ with lib;
55let
66 cfg = config.services.pumpio;
77 dataDir = "/var/lib/pump.io";
8+ runDir = "/run/pump.io";
89 user = "pumpio";
910
11+ optionalSet = condition: value: if condition then value else {};
12+
13+ configScript = ./pump.io-configure.js;
1014 configOptions = {
11− driver = if cfg.driver == "disk" then null else cfg.driver;
12− params = ({ } //
13− (if cfg.driver == "disk" then {
14− dir = dataDir;
15− } else { }) //
16− (if cfg.driver == "mongodb" || cfg.driver == "redis" then {
17− host = cfg.dbHost;
18− port = cfg.dbPort;
19− dbname = cfg.dbName;
20− dbuser = cfg.dbUser;
21− dbpass = cfg.dbPassword;
22− } else { }) //
23− (if cfg.driver == "memcached" then {
24− host = cfg.dbHost;
25− port = cfg.dbPort;
26− } else { }) //
27− cfg.driverParams);
28−
29− secret = cfg.secret;
30−
31− address = cfg.address;
32− port = cfg.port;
33−
34− noweb = false;
35− urlPort = cfg.urlPort;
36− hostname = cfg.hostname;
37− favicon = cfg.favicon;
38−
39− site = cfg.site;
40− owner = cfg.owner;
41− ownerURL = cfg.ownerURL;
42−
43− key = cfg.sslKey;
44− cert = cfg.sslCert;
45− bounce = false;
46−
47− spamhost = cfg.spamHost;
48− spamclientid = cfg.spamClientId;
49− spamclientsecret = cfg.spamClientSecret;
50−
51− requireEmail = cfg.requireEmail;
52− smtpserver = cfg.smtpHost;
53− smtpport = cfg.smtpPort;
54− smtpuser = cfg.smtpUser;
55− smtppass = cfg.smtpPassword;
56− smtpusessl = cfg.smtpUseSSL;
57− smtpfrom = cfg.smtpFrom;
58−
59− nologger = false;
60− uploaddir = "${dataDir}/uploads";
61− debugClient = false;
62− firehose = cfg.firehose;
63− disableRegistration = cfg.disableRegistration;
64− } //
65− (if cfg.port < 1024 then {
66− serverUser = user; # have pump.io listen then drop privileges
67− } else { }) //
68− cfg.extraConfig;
69−
70−in
71−
72−{
15+ outputFile = "${runDir}/config.json";
16+ config =
17+ (optionalSet (cfg.driver != "disk") {
18+ driver = cfg.driver;
19+ }) //
20+ {
21+ params = (optionalSet (cfg.driver == "disk") { dir = dataDir; }) //
22+ (optionalSet (cfg.driver == "mongodb" || cfg.driver == "redis") {
23+ host = cfg.dbHost;
24+ port = cfg.dbPort;
25+ dbname = cfg.dbName;
26+ dbuser = cfg.dbUser;
27+ dbpass = cfg.dbPassword;
28+ }) //
29+ (optionalSet (cfg.driver == "memcached") {
30+ host = cfg.dbHost;
31+ port = cfg.dbPort;
32+ }) // cfg.driverParams;
33+ secret = cfg.secret;
34+
35+ address = cfg.address;
36+ port = cfg.port;
37+
38+ noweb = false;
39+ urlPort = cfg.urlPort;
40+ hostname = cfg.hostname;
41+ favicon = cfg.favicon;
42+
43+ site = cfg.site;
44+ owner = cfg.owner;
45+ ownerURL = cfg.ownerURL;
46+
47+ key = cfg.sslKey;
48+ cert = cfg.sslCert;
49+ bounce = false;
50+
51+ spamhost = cfg.spamHost;
52+ spamclientid = cfg.spamClientId;
53+ spamclientsecret = cfg.spamClientSecret;
54+
55+ requireEmail = cfg.requireEmail;
56+ smtpserver = cfg.smtpHost;
57+ smtpport = cfg.smtpPort;
58+ smtpuser = cfg.smtpUser;
59+ smtppass = cfg.smtpPassword;
60+ smtpusessl = cfg.smtpUseSSL;
61+ smtpfrom = cfg.smtpFrom;
62+
63+ nologger = false;
64+ enableUploads = cfg.enableUploads;
65+ datadir = dataDir;
66+ debugClient = false;
67+ firehose = cfg.firehose;
68+ disableRegistration = cfg.disableRegistration;
69+
70+ inherit (cfg) secretFile dbPasswordFile smtpPasswordFile spamClientSecretFile;
71+ } //
72+ (optionalSet (cfg.port < 1024) {
73+ serverUser = user; # have pump.io listen then drop privileges
74+ }) // cfg.extraConfig;
75+}; in {
7376 options = {
7477
7578 services.pumpio = {
@@ -77,7 +80,8 @@ in
7780 enable = mkEnableOption "Pump.io social streams server";
7881
7982 secret = mkOption {
80− type = types.str;
83+ type = types.nullOr types.str;
84+ default = null;
8185 example = "my dog has fleas";
8286 description = ''
8387 A session-generating secret, server-wide password. Warning:
@@ -85,6 +89,16 @@ in
8589 '';
8690 };
8791
92+ secretFile = mkOption {
93+ type = types.nullOr types.path;
94+ default = null;
95+ example = "/run/keys/pump.io-secret";
96+ description = ''
97+ A file containing the session-generating secret,
98+ server-wide password.
99+ '';
100+ };
101+
88102 site = mkOption {
89103 type = types.str;
90104 example = "Awesome Sauce";
@@ -125,7 +139,7 @@ in
125139
126140 hostname = mkOption {
127141 type = types.nullOr types.str;
128− default = null;
142+ default = "localhost";
129143 description = ''
130144 The hostname of the server, used for generating
131145 URLs. Defaults to "localhost" which doesn't do much for you.
@@ -152,6 +166,15 @@ in
152166 '';
153167 };
154168
169+ enableUploads = mkOption {
170+ type = types.bool;
171+ default = true;
172+ description = ''
173+ If you want to disable file uploads, set this to false. Uploaded files will be stored
174+ in ${dataDir}/uploads.
175+ '';
176+ };
177+
155178 sslKey = mkOption {
156179 type = types.path;
157180 example = "${dataDir}/myserver.key";
@@ -253,6 +276,15 @@ in
253276 '';
254277 };
255278
279+ dbPasswordFile = mkOption {
280+ type = types.nullOr types.path;
281+ default = null;
282+ example = "/run/keys/pump.io-dbpassword";
283+ description = ''
284+ A file containing the password corresponding to dbUser.
285+ '';
286+ };
287+
256288 smtpHost = mkOption {
257289 type = types.nullOr types.str;
258290 default = null;
@@ -291,6 +323,17 @@ in
291323 '';
292324 };
293325
326+ smtpPasswordFile = mkOption {
327+ type = types.nullOr types.path;
328+ default = null;
329+ example = "/run/keys/pump.io-smtppassword";
330+ description = ''
331+ A file containing the password used to connect to SMTP
332+ server. Might not be necessary for some servers.
333+ '';
334+ };
335+
336+
294337 smtpUseSSL = mkOption {
295338 type = types.bool;
296339 default = false;
@@ -332,24 +375,55 @@ in
332375 stored in cleartext in the Nix store!
333376 '';
334377 };
378+ spamClientSecretFile = mkOption {
379+ type = types.nullOr types.path;
380+ default = null;
381+ example = "/run/keys/pump.io-spamclientsecret";
382+ description = ''
383+ A file containing the OAuth key for the spam server.
384+ '';
385+ };
335386 };
336387
337388 };
338389
339390 config = mkIf cfg.enable {
391+ warnings = let warn = k: optional (cfg.${k} != null)
392+ "config.services.pumpio.${k} is insecure. Use ${k}File instead.";
393+ in concatMap warn [ "secret" "dbPassword" "smtpPassword" "spamClientSecret" ];
394+
395+ assertions = [
396+ { assertion = !(isNull cfg.secret && isNull cfg.secretFile);
397+ message = "pump.io needs a secretFile configured";
398+ }
399+ ];
400+
340401 systemd.services."pump.io" =
341− { description = "pump.io social network stream server";
402+ { description = "Pump.io - stream server that does most of what people really want from a social network";
342403 after = [ "network.target" ];
343404 wantedBy = [ "multi-user.target" ];
344− serviceConfig.ExecStart = "${pkgs.pumpio}/bin/pump -c /etc/pump.io.json";
345− serviceConfig.User = if cfg.port < 1024 then "root" else user;
346− serviceConfig.Group = user;
347− };
348405
349− environment.etc."pump.io.json" = {
350− mode = "0440";
351− gid = config.ids.gids.pumpio;
352− text = builtins.toJSON configOptions;
406+ preStart = ''
407+ mkdir -p ${dataDir}/uploads
408+ mkdir -p ${runDir}
409+ chown pumpio:pumpio ${dataDir}/uploads ${runDir}
410+ chmod 770 ${dataDir}/uploads ${runDir}
411+
412+ ${pkgs.nodejs}/bin/node ${configScript} <<EOF
413+ ${builtins.toJSON configOptions}
414+ EOF
415+
416+ chgrp pumpio ${configOptions.outputFile}
417+ chmod 640 ${configOptions.outputFile}
418+ '';
419+
420+ serviceConfig = {
421+ ExecStart = "${pkgs.pumpio}/bin/pump -c ${configOptions.outputFile}";
422+ PermissionsStartOnly = true;
423+ User = if cfg.port < 1024 then "root" else user;
424+ Group = user;
425+ };
426+ environment = { NODE_ENV = "production"; };
353427 };
354428
355429 users.extraGroups.pumpio.gid = config.ids.gids.pumpio;
nixos/modules/services/web-servers/apache-httpd/wordpress.nix+37−14
@@ -4,17 +4,12 @@
44with lib;
55
66let
7−
8− # Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix
9− version = "4.7.2";
10− fullversion = "${version}";
11−
127 # Our bare-bones wp-config.php file using the above settings
138 wordpressConfig = pkgs.writeText "wp-config.php" ''
149 <?php
1510 define('DB_NAME', '${config.dbName}');
1611 define('DB_USER', '${config.dbUser}');
17− define('DB_PASSWORD', '${config.dbPassword}');
12+ define('DB_PASSWORD', file_get_contents('${config.dbPasswordFile}'));
1813 define('DB_HOST', '${config.dbHost}');
1914 define('DB_CHARSET', 'utf8');
2015 $table_prefix = '${config.tablePrefix}';
@@ -71,12 +66,7 @@ let
7166 # The wordpress package itself
7267 wordpressRoot = pkgs.stdenv.mkDerivation rec {
7368 name = "wordpress";
74− src = pkgs.fetchFromGitHub {
75− owner = "WordPress";
76− repo = "WordPress";
77− rev = "${fullversion}";
78− sha256 = "0vph12708drf8ww0xd05hpdvbyy7n5gj9ca598lhdhy2i1j6wy32";
79− };
69+ src = config.package;
8070 installPhase = ''
8171 mkdir -p $out
8272 # copy all the wordpress files we downloaded
@@ -122,6 +112,14 @@ in
122112 enablePHP = true;
123113
124114 options = {
115+ package = mkOption {
116+ type = types.path;
117+ default = pkgs.wordpress;
118+ description = ''
119+ Path to the wordpress sources.
120+ Upgrading? We have a test! nix-build ./nixos/tests/wordpress.nix
121+ '';
122+ };
125123 dbHost = mkOption {
126124 default = "localhost";
127125 description = "The location of the database server.";
@@ -139,9 +137,34 @@ in
139137 };
140138 dbPassword = mkOption {
141139 default = "wordpress";
142− description = "The mysql password to the respective dbUser.";
140+ description = ''
141+ The mysql password to the respective dbUser.
142+
143+ Warning: this password is stored in the world-readable Nix store. It's
144+ recommended to use the $dbPasswordFile option since that gives you control over
145+ the security of the password. $dbPasswordFile also takes precedence over $dbPassword.
146+ '';
143147 example = "wordpress";
144148 };
149+ dbPasswordFile = mkOption {
150+ type = types.str;
151+ default = toString (pkgs.writeTextFile {
152+ name = "wordpress-dbpassword";
153+ text = config.dbPassword;
154+ });
155+ example = "/run/keys/wordpress-dbpassword";
156+ description = ''
157+ Path to a file that contains the mysql password to the respective dbUser.
158+ The file should be readable by the user: config.services.httpd.user.
159+
160+ $dbPasswordFile takes precedence over the $dbPassword option.
161+
162+ This defaults to a file in the world-readable Nix store that contains the value
163+ of the $dbPassword option. It's recommended to override this with a path not in
164+ the Nix store. Tip: use nixops key management:
165+ <link xlink:href='https://nixos.org/nixops/manual/#idm140737318306400'/>
166+ '';
167+ };
145168 tablePrefix = mkOption {
146169 default = "wp_";
147170 description = ''
@@ -253,7 +276,7 @@ in
253276 sleep 1
254277 done
255278 ${pkgs.mysql}/bin/mysql -e 'CREATE DATABASE ${config.dbName};'
256− ${pkgs.mysql}/bin/mysql -e 'GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY "${config.dbPassword}";'
279+ ${pkgs.mysql}/bin/mysql -e "GRANT ALL ON ${config.dbName}.* TO ${config.dbUser}@localhost IDENTIFIED BY \"$(cat ${config.dbPasswordFile})\";"
257280 else
258281 echo "Good, no need to do anything database related."
259282 fi
nixos/modules/services/web-servers/caddy.nix+1−1
@@ -29,7 +29,6 @@ in
2929
3030 agree = mkOption {
3131 default = false;
32− example = true;
3332 type = types.bool;
3433 description = "Agree to Let's Encrypt Subscriber Agreement";
3534 };
@@ -61,6 +60,7 @@ in
6160 User = "caddy";
6261 Group = "caddy";
6362 AmbientCapabilities = "cap_net_bind_service";
63+ LimitNOFILE = 8192;
6464 };
6565 };
6666
nixos/modules/services/web-servers/jboss/default.nix+1−1
@@ -25,7 +25,7 @@ in
2525
2626 enable = mkOption {
2727 default = false;
28− description = "Whether to enable jboss";
28+ description = "Whether to enable JBoss. WARNING : this package is outdated and is known to have vulnerabilities.";
2929 };
3030
3131 tempDir = mkOption {
nixos/modules/services/web-servers/nginx/default.nix+41−20
@@ -5,31 +5,21 @@ with lib;
55let
66 cfg = config.services.nginx;
77 virtualHosts = mapAttrs (vhostName: vhostConfig:
8− vhostConfig // {
8+ let
99 serverName = if vhostConfig.serverName != null
1010 then vhostConfig.serverName
1111 else vhostName;
12+ in
13+ vhostConfig // {
14+ inherit serverName;
1215 } // (optionalAttrs vhostConfig.enableACME {
13− sslCertificate = "/var/lib/acme/${vhostName}/fullchain.pem";
14− sslCertificateKey = "/var/lib/acme/${vhostName}/key.pem";
16+ sslCertificate = "/var/lib/acme/${serverName}/fullchain.pem";
17+ sslCertificateKey = "/var/lib/acme/${serverName}/key.pem";
1518 })
1619 ) cfg.virtualHosts;
1720 enableIPv6 = config.networking.enableIPv6;
1821
19− configFile = pkgs.runCommand "nginx.conf" {
20− inherit configFileUnformatted;
21− passAsFile = [ "configFileUnformatted" ];
22− # configFileUnformatted is created locally, therefore so should this be.
23− preferLocalBuild = true;
24− allowSubstitutes = false;
25− } ''
26− cp ${configFileUnformatted} nginx.conf
27− chmod u+w nginx.conf
28− ${pkgs.nginx-config-formatter}/bin/nginxfmt nginx.conf
29− cp nginx.conf $out
30− '';
31−
32− configFileUnformatted = pkgs.writeText "nginx.unformatted.conf" ''
22+ configFile = pkgs.writeText "nginx.conf" ''
3323 user ${cfg.user} ${cfg.group};
3424 error_log stderr;
3525 daemon off;
@@ -97,6 +87,8 @@ let
9787
9888 server_tokens ${if cfg.serverTokens then "on" else "off"};
9989
90+ ${cfg.commonHttpConfig}
91+
10092 ${vhosts}
10193
10294 ${optionalString cfg.statusPage ''
@@ -193,6 +185,7 @@ let
193185 ${optionalString (config.index != null) "index ${config.index};"}
194186 ${optionalString (config.tryFiles != null) "try_files ${config.tryFiles};"}
195187 ${optionalString (config.root != null) "root ${config.root};"}
188+ ${optionalString (config.alias != null) "alias ${config.alias};"}
196189 ${config.extraConfig}
197190 }
198191 '') locations);
@@ -254,11 +247,13 @@ in
254247 };
255248
256249 package = mkOption {
257− default = pkgs.nginx;
258− defaultText = "pkgs.nginx";
250+ default = pkgs.nginxStable;
251+ defaultText = "pkgs.nginxStable";
259252 type = types.package;
260253 description = "
261− Nginx package to use.
254+ Nginx package to use. This defaults to the stable version. Note
255+ that the nginx team recommends to use the mainline version which
256+ available in nixpkgs as <literal>nginxMainline</literal>.
262257 ";
263258 };
264259
@@ -285,6 +280,24 @@ in
285280 '';
286281 };
287282
283+ commonHttpConfig = mkOption {
284+ type = types.lines;
285+ default = "";
286+ example = ''
287+ resolver 127.0.0.1 valid=5s;
288+
289+ log_format myformat '$remote_addr - $remote_user [$time_local] '
290+ '"$request" $status $body_bytes_sent '
291+ '"$http_referer" "$http_user_agent"';
292+ '';
293+ description = ''
294+ With nginx you must provide common http context definitions before
295+ they are used, e.g. log_format, resolver, etc. inside of server
296+ or location contexts. Use this attribute to set these definitions
297+ at the appropriate location.
298+ '';
299+ };
300+
288301 httpConfig = mkOption {
289302 type = types.lines;
290303 default = "";
@@ -391,10 +404,18 @@ in
391404 config = mkIf cfg.enable {
392405 # TODO: test user supplied config file pases syntax test
393406
407+ assertions = let hostOrAliasIsNull = l: l.root == null || l.alias == null; in [
408+ {
409+ assertion = all (host: all hostOrAliasIsNull (attrValues host.locations)) (attrValues virtualHosts);
410+ message = "Only one of nginx root or alias can be specified on a location.";
411+ }
412+ ];
413+
394414 systemd.services.nginx = {
395415 description = "Nginx Web Server";
396416 after = [ "network.target" ];
397417 wantedBy = [ "multi-user.target" ];
418+ stopIfChanged = false;
398419 preStart =
399420 ''
400421 mkdir -p ${cfg.stateDir}/logs
nixos/modules/services/web-servers/nginx/location-options.nix+9
@@ -45,6 +45,15 @@ with lib;
4545 '';
4646 };
4747
48+ alias = mkOption {
49+ type = types.nullOr types.path;
50+ default = null;
51+ example = "/your/alias/directory";
52+ description = ''
53+ Alias directory for requests.
54+ '';
55+ };
56+
4857 extraConfig = mkOption {
4958 type = types.lines;
5059 default = "";
nixos/modules/services/web-servers/phpfpm/default.nix+46−19
@@ -4,30 +4,35 @@ with lib;
44
55let
66 cfg = config.services.phpfpm;
7+ enabled = cfg.poolConfigs != {} || cfg.pools != {};
78
89 stateDir = "/run/phpfpm";
910
11+ poolConfigs = cfg.poolConfigs // mapAttrs mkPool cfg.pools;
12+
1013 mkPool = n: p: ''
11− [${n}]
1214 listen = ${p.listen}
1315 ${p.extraConfig}
1416 '';
1517
16− cfgFile = pkgs.writeText "phpfpm.conf" ''
18+ fpmCfgFile = pool: poolConfig: pkgs.writeText "phpfpm-${pool}.conf" ''
1719 [global]
1820 error_log = syslog
1921 daemonize = no
2022 ${cfg.extraConfig}
2123
22− ${concatStringsSep "\n" (mapAttrsToList mkPool cfg.pools)}
23−
24− ${concatStringsSep "\n" (mapAttrsToList (n: v: "[${n}]\n${v}") cfg.poolConfigs)}
24+ [${pool}]
25+ ${poolConfig}
2526 '';
2627
27− phpIni = pkgs.writeText "php.ini" ''
28− ${readFile "${cfg.phpPackage}/etc/php.ini"}
29−
30− ${cfg.phpOptions}
28+ phpIni = pkgs.runCommand "php.ini" {
29+ inherit (cfg) phpPackage phpOptions;
30+ nixDefaults = ''
31+ sendmail_path = "/run/wrappers/bin/sendmail -t -i"
32+ '';
33+ passAsFile = [ "nixDefaults" "phpOptions" ];
34+ } ''
35+ cat $phpPackage/etc/php.ini $nixDefaultsPath $phpOptionsPath > $out
3136 '';
3237
3338in {
@@ -118,18 +123,40 @@ in {
118123 };
119124 };
120125
121− config = mkIf (cfg.pools != {} || cfg.poolConfigs != {}) {
126+ config = mkIf enabled {
127+
128+ systemd.slices.phpfpm = {
129+ description = "PHP FastCGI Process manager pools slice";
130+ };
122131
123− systemd.services.phpfpm = {
132+ systemd.targets.phpfpm = {
133+ description = "PHP FastCGI Process manager pools target";
124134 wantedBy = [ "multi-user.target" ];
125− preStart = ''
126− mkdir -p "${stateDir}"
127− '';
128− serviceConfig = {
129− Type = "notify";
130− ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}";
131− ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
132− };
133135 };
136+
137+ systemd.services = flip mapAttrs' poolConfigs (pool: poolConfig:
138+ nameValuePair "phpfpm-${pool}" {
139+ description = "PHP FastCGI Process Manager service for pool ${pool}";
140+ after = [ "network.target" ];
141+ wantedBy = [ "phpfpm.target" ];
142+ partOf = [ "phpfpm.target" ];
143+ preStart = ''
144+ mkdir -p ${stateDir}
145+ '';
146+ serviceConfig = let
147+ cfgFile = fpmCfgFile pool poolConfig;
148+ in {
149+ Slice = "phpfpm.slice";
150+ PrivateDevices = true;
151+ ProtectSystem = "full";
152+ ProtectHome = true;
153+ NoNewPrivileges = true;
154+ RestrictAddressFamilies = "AF_UNIX AF_INET AF_INET6";
155+ Type = "notify";
156+ ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}";
157+ ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
158+ };
159+ }
160+ );
134161 };
135162}
nixos/modules/services/web-servers/zope2.nix+1−1
@@ -74,7 +74,7 @@ in
7474
7575 services.zope2.instances = mkOption {
7676 default = {};
77− type = with types; loaOf (submodule zope2Opts);
77+ type = with types; attrsOf (submodule zope2Opts);
7878 example = literalExample ''
7979 {
8080 plone01 = {
nixos/modules/services/x11/compton.nix−3
@@ -43,7 +43,6 @@ in {
4343 enable = mkOption {
4444 type = types.bool;
4545 default = false;
46− example = true;
4746 description = ''
4847 Whether of not to enable Compton as the X.org composite manager.
4948 '';
@@ -52,7 +51,6 @@ in {
5251 fade = mkOption {
5352 type = types.bool;
5453 default = false;
55− example = true;
5654 description = ''
5755 Fade windows in and out.
5856 '';
@@ -93,7 +91,6 @@ in {
9391 shadow = mkOption {
9492 type = types.bool;
9593 default = false;
96− example = true;
9794 description = ''
9895 Draw window shadows.
9996 '';
nixos/modules/services/x11/desktop-managers/default.nix+3−4
@@ -16,11 +16,10 @@ in
1616{
1717 # Note: the order in which desktop manager modules are imported here
1818 # determines the default: later modules (if enabled) are preferred.
19− # E.g., if KDE is enabled, it supersedes xterm.
19+ # E.g., if Plasma 5 is enabled, it supersedes xterm.
2020 imports = [
21− ./none.nix ./xterm.nix ./xfce.nix ./kde4.nix ./kde5.nix
22− ./lumina.nix ./lxqt.nix ./enlightenment.nix ./gnome3.nix
23− ./kodi.nix
21+ ./none.nix ./xterm.nix ./xfce.nix ./plasma5.nix ./lumina.nix
22+ ./lxqt.nix ./enlightenment.nix ./gnome3.nix ./kodi.nix
2423 ];
2524
2625 options = {
nixos/modules/services/x11/desktop-managers/enlightenment.nix+2−3
@@ -20,7 +20,6 @@ in
2020
2121 services.xserver.desktopManager.enlightenment.enable = mkOption {
2222 default = false;
23− example = true;
2423 description = "Enable the Enlightenment desktop environment.";
2524 };
2625
@@ -62,10 +61,10 @@ in
6261 '';
6362 }];
6463
65− security.setuidPrograms = [ "e_freqset" ];
64+ security.wrappers.e_freqset.source = "${e.enlightenment.out}/bin/e_freqset";
6665
6766 environment.etc = singleton
68− { source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
67+ { source = xcfg.xkbDir;
6968 target = "X11/xkb";
7069 };
7170
nixos/modules/services/x11/desktop-managers/gnome3.nix−1
@@ -53,7 +53,6 @@ in {
5353 services.xserver.desktopManager.gnome3 = {
5454 enable = mkOption {
5555 default = false;
56− example = true;
5756 description = "Enable Gnome 3 desktop manager.";
5857 };
5958
nixos/modules/services/x11/desktop-managers/kde4.nixdeleted−199
@@ -1,199 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6−
7− xcfg = config.services.xserver;
8− cfg = xcfg.desktopManager.kde4;
9− xorg = pkgs.xorg;
10− kde_workspace = config.services.xserver.desktopManager.kde4.kdeWorkspacePackage;
11−
12− # Disable Nepomuk and Strigi by default. As of KDE 4.7, they don't
13− # really work very well (e.g. searching files often fails to find
14− # files), segfault sometimes and consume significant resources.
15− # They can be re-enabled in the KDE System Settings under "Desktop
16− # Search".
17− disableNepomuk = pkgs.writeTextFile
18− { name = "nepomuk-config";
19− destination = "/share/config/nepomukserverrc";
20− text =
21− ''
22− [Basic Settings]
23− Start Nepomuk=false
24−
25− [Service-nepomukstrigiservice]
26− autostart=false
27− '';
28− };
29−
30− phononBackends = {
31− gstreamer = [
32− pkgs.phonon-backend-gstreamer
33− pkgs.gst_all.gstPluginsBase
34− pkgs.gst_all.gstPluginsGood
35− pkgs.gst_all.gstPluginsUgly
36− pkgs.gst_all.gstPluginsBad
37− pkgs.gst_all.gstFfmpeg # for mp3 playback
38− pkgs.gst_all.gstreamer # needed?
39− ];
40−
41− vlc = [pkgs.phonon-backend-vlc];
42− };
43−
44− phononBackendPackages = flip concatMap cfg.phononBackends
45− (name: attrByPath [name] (throw "unknown phonon backend `${name}'") phononBackends);
46−
47−in
48−
49−{
50− options = {
51−
52− services.xserver.desktopManager.kde4 = {
53− enable = mkOption {
54− type = types.bool;
55− default = false;
56− description = "Enable the KDE 4 desktop environment.";
57− };
58−
59− phononBackends = mkOption {
60− type = types.listOf types.str;
61− default = ["gstreamer"];
62− example = ["gstreamer" "vlc"];
63− description = "Which phonon multimedia backend kde should use";
64− };
65−
66− kdeWorkspacePackage = mkOption {
67− internal = true;
68− default = pkgs.kde4.kde_workspace;
69− defaultText = "pkgs.kde4.kde_workspace";
70− type = types.package;
71− description = "Custom kde-workspace, used for NixOS rebranding.";
72− };
73−
74− enablePIM = mkOption {
75− type = types.bool;
76− default = true;
77− description = "Whether to enable PIM support. Note that enabling this pulls in Akonadi and MariaDB as dependencies.";
78− };
79−
80− enableNepomuk = mkOption {
81− type = types.bool;
82− default = false;
83− description = "Whether to enable Nepomuk (deprecated).";
84− };
85− };
86− };
87−
88−
89− config = mkIf (xcfg.enable && cfg.enable) {
90−
91− # If KDE 4 is enabled, make it the default desktop manager (unless
92− # overridden by the user's configuration).
93− # !!! doesn't work yet ("Multiple definitions. Only one is allowed
94− # for this option.")
95− # services.xserver.desktopManager.default = mkOverride 900 "kde4";
96−
97− services.xserver.desktopManager.session = singleton
98− { name = "kde4";
99− bgSupport = true;
100− start =
101− ''
102− # The KDE icon cache is supposed to update itself
103− # automatically, but it uses the timestamp on the icon
104− # theme directory as a trigger. Since in Nix the
105− # timestamp is always the same, this doesn't work. So as
106− # a workaround, nuke the icon cache on login. This isn't
107− # perfect, since it may require logging out after
108− # installing new applications to update the cache.
109− # See http://lists-archives.org/kde-devel/26175-what-when-will-icon-cache-refresh.html
110− rm -fv $HOME/.kde/cache-*/icon-cache.kcache
111−
112− # Qt writes a weird ‘libraryPath’ line to
113− # ~/.config/Trolltech.conf that causes the KDE plugin
114− # paths of previous KDE invocations to be searched.
115− # Obviously using mismatching KDE libraries is potentially
116− # disastrous, so here we nuke references to the Nix store
117− # in Trolltech.conf. A better solution would be to stop
118− # Qt from doing this wackiness in the first place.
119− if [ -e $HOME/.config/Trolltech.conf ]; then
120− sed -e '/nix\\store\|nix\/store/ d' -i $HOME/.config/Trolltech.conf
121− fi
122−
123− # Load PulseAudio module for routing support.
124− # See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
125− ${optionalString config.hardware.pulseaudio.enable ''
126− ${getBin config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
127− ''}
128−
129− # Start KDE.
130− exec ${kde_workspace}/bin/startkde
131− '';
132− };
133−
134− security.setuidOwners = singleton
135− { program = "kcheckpass";
136− source = "${kde_workspace}/lib/kde4/libexec/kcheckpass";
137− owner = "root";
138− group = "root";
139− setuid = true;
140− };
141−
142− environment.systemPackages =
143− [ pkgs.kde4.kdelibs
144−
145− pkgs.kde4.kde_baseapps # Splitted kdebase
146− kde_workspace
147− pkgs.kde4.kde_runtime
148− pkgs.kde4.konsole
149− pkgs.kde4.kate
150−
151− pkgs.kde4.kde_wallpapers # contains kdm's default background
152− pkgs.kde4.oxygen_icons
153−
154− # Starts KDE's Polkit authentication agent.
155− pkgs.kde4.polkit_kde_agent
156−
157− # Miscellaneous runtime dependencies.
158− pkgs.kde4.qt4 # needed for qdbus
159− pkgs.shared_mime_info
160− xorg.xmessage # so that startkde can show error messages
161− xorg.xset # used by startkde, non-essential
162− xorg.xauth # used by kdesu
163− ]
164− ++ optionals cfg.enablePIM
165− [ pkgs.kde4.kdepim_runtime
166− pkgs.kde4.akonadi
167− pkgs.mysql # used by akonadi
168− ]
169− ++ (if cfg.enableNepomuk then
170− [ pkgs.shared_desktop_ontologies # used by nepomuk
171− pkgs.strigi # used by nepomuk
172− pkgs.virtuoso # to enable Nepomuk to find Virtuoso
173− ] else
174− [ disableNepomuk ])
175− ++ optional config.hardware.pulseaudio.enable pkgs.kde4.kmix # Perhaps this should always be enabled
176− ++ optional config.hardware.bluetooth.enable pkgs.kde4.bluedevil
177− ++ optional config.networking.networkmanager.enable pkgs.kde4.plasma-nm
178− ++ phononBackendPackages;
179−
180− environment.pathsToLink = [ "/share" ];
181−
182− environment.profileRelativeEnvVars = mkIf (elem "gstreamer" cfg.phononBackends) {
183− GST_PLUGIN_SYSTEM_PATH = [ "/lib/gstreamer-0.10" ];
184− };
185−
186− environment.etc = singleton
187− { source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
188− target = "X11/xkb";
189− };
190−
191− # Enable helpful DBus services.
192− services.udisks2.enable = true;
193− services.upower.enable = config.powerManagement.enable;
194−
195− security.pam.services.kde = { allowNullPassword = true; };
196−
197− };
198−
199−}
nixos/modules/services/x11/desktop-managers/kde5.nixdeleted−260
@@ -1,260 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6−
7− xcfg = config.services.xserver;
8− cfg = xcfg.desktopManager.kde5;
9− xorg = pkgs.xorg;
10−
11− kde5 = pkgs.kde5;
12−
13−in
14−
15−{
16− options = {
17−
18− services.xserver.desktopManager.kde5 = {
19− enable = mkOption {
20− type = types.bool;
21− default = false;
22− description = "Enable the Plasma 5 (KDE 5) desktop environment.";
23− };
24−
25− enableQt4Support = mkOption {
26− type = types.bool;
27− default = true;
28− description = ''
29− Enable support for Qt 4-based applications. Particularly, install the
30− Qt 4 version of the Breeze theme and a default backend for Phonon.
31− '';
32− };
33−
34− extraPackages = mkOption {
35− type = types.listOf types.package;
36− default = [];
37− description = ''
38− KDE packages that need to be installed system-wide.
39− '';
40− };
41−
42− };
43−
44− };
45−
46−
47− config = mkMerge [
48− (mkIf (cfg.extraPackages != []) {
49− environment.systemPackages = [ (kde5.kdeWrapper cfg.extraPackages) ];
50− })
51−
52− (mkIf (xcfg.enable && cfg.enable) {
53−
54− warnings = optional config.services.xserver.desktopManager.kde4.enable
55− "KDE 4 should not be enabled at the same time as KDE 5";
56−
57− services.xserver.desktopManager.session = singleton {
58− name = "kde5";
59− bgSupport = true;
60− start = ''
61− # Load PulseAudio module for routing support.
62− # See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
63− ${optionalString config.hardware.pulseaudio.enable ''
64− ${getBin config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
65− ''}
66−
67− exec "${kde5.startkde}"
68−
69− '';
70− };
71−
72− security.setuidOwners = [
73− {
74− program = "kcheckpass";
75− source = "${kde5.plasma-workspace.out}/lib/libexec/kcheckpass";
76− owner = "root";
77− setuid = true;
78− }
79− {
80− program = "start_kdeinit";
81− source = "${kde5.kinit.out}/lib/libexec/kf5/start_kdeinit";
82− owner = "root";
83− setuid = true;
84− }
85− ];
86−
87− environment.systemPackages =
88− [
89− kde5.frameworkintegration
90− kde5.kactivities
91− kde5.kauth
92− kde5.kcmutils
93− kde5.kconfig
94− kde5.kconfigwidgets
95− kde5.kcoreaddons
96− kde5.kdbusaddons
97− kde5.kdeclarative
98− kde5.kded
99− kde5.kdesu
100− kde5.kdnssd
101− kde5.kemoticons
102− kde5.kfilemetadata
103− kde5.kglobalaccel
104− kde5.kguiaddons
105− kde5.kiconthemes
106− kde5.kidletime
107− kde5.kimageformats
108− kde5.kinit
109− kde5.kio
110− kde5.kjobwidgets
111− kde5.knewstuff
112− kde5.knotifications
113− kde5.knotifyconfig
114− kde5.kpackage
115− kde5.kparts
116− kde5.kpeople
117− kde5.krunner
118− kde5.kservice
119− kde5.ktextwidgets
120− kde5.kwallet
121− kde5.kwayland
122− kde5.kwidgetsaddons
123− kde5.kxmlgui
124− kde5.kxmlrpcclient
125− kde5.plasma-framework
126− kde5.solid
127− kde5.sonnet
128− kde5.threadweaver
129−
130− kde5.breeze-qt5
131− kde5.kactivitymanagerd
132− kde5.kde-cli-tools
133− kde5.kdecoration
134− kde5.kdeplasma-addons
135− kde5.kgamma5
136− kde5.khotkeys
137− kde5.kinfocenter
138− kde5.kmenuedit
139− kde5.kscreen
140− kde5.kscreenlocker
141− kde5.ksysguard
142− kde5.kwayland
143− kde5.kwin
144− kde5.kwrited
145− kde5.libkscreen
146− kde5.libksysguard
147− kde5.milou
148− kde5.plasma-integration
149− kde5.polkit-kde-agent
150− kde5.systemsettings
151−
152− kde5.plasma-desktop
153− kde5.plasma-workspace
154− kde5.plasma-workspace-wallpapers
155−
156− kde5.dolphin-plugins
157− kde5.ffmpegthumbs
158− kde5.kdegraphics-thumbnailers
159− kde5.kio-extras
160− kde5.print-manager
161−
162− # Install Breeze icons if available
163− (kde5.breeze-icons or kde5.oxygen-icons5 or kde5.oxygen-icons)
164− pkgs.hicolor_icon_theme
165−
166− kde5.kde-gtk-config kde5.breeze-gtk
167−
168− pkgs.qt5.phonon-backend-gstreamer
169− ]
170−
171− # Plasma 5.5 and later has a Breeze GTK theme.
172− # If it is not available, Orion is very similar to Breeze.
173− ++ lib.optional (!(lib.hasAttr "breeze-gtk" kde5)) pkgs.orion
174−
175− # Install activity manager if available
176− ++ lib.optional (lib.hasAttr "kactivitymanagerd" kde5) kde5.kactivitymanagerd
177−
178− # frameworkintegration was split with plasma-integration in Plasma 5.6
179− ++ lib.optional (lib.hasAttr "plasma-integration" kde5) kde5.plasma-integration
180−
181− ++ lib.optionals cfg.enableQt4Support [ kde5.breeze-qt4 pkgs.phonon-backend-gstreamer ]
182−
183− # Optional hardware support features
184− ++ lib.optional config.hardware.bluetooth.enable kde5.bluedevil
185− ++ lib.optional config.networking.networkmanager.enable kde5.plasma-nm
186− ++ lib.optional config.hardware.pulseaudio.enable kde5.plasma-pa
187− ++ lib.optional config.powerManagement.enable kde5.powerdevil
188− ++ lib.optional config.services.colord.enable pkgs.colord-kde
189− ++ lib.optionals config.services.samba.enable [ kde5.kdenetwork-filesharing pkgs.samba ];
190−
191− services.xserver.desktopManager.kde5.extraPackages =
192− [
193− kde5.khelpcenter
194− kde5.oxygen
195−
196− kde5.dolphin
197− kde5.konsole
198− ];
199−
200− environment.pathsToLink = [ "/share" ];
201−
202− environment.etc = singleton {
203− source = "${pkgs.xkeyboard_config}/etc/X11/xkb";
204− target = "X11/xkb";
205− };
206−
207− environment.variables =
208− {
209− # Enable GTK applications to load SVG icons
210− GST_PLUGIN_SYSTEM_PATH_1_0 =
211− lib.makeSearchPath "/lib/gstreamer-1.0"
212− (builtins.map (pkg: pkg.out) (with pkgs.gst_all_1; [
213− gstreamer
214− gst-plugins-base
215− gst-plugins-good
216− gst-plugins-ugly
217− gst-plugins-bad
218− gst-libav # for mp3 playback
219− ]));
220− }
221− // (if (lib.hasAttr "breeze-icons" kde5)
222− then { GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"; }
223− else { });
224−
225− fonts.fonts = [ (kde5.oxygen-fonts or pkgs.noto-fonts) ];
226−
227− programs.ssh.askPassword = "${kde5.ksshaskpass.out}/bin/ksshaskpass";
228−
229− # Enable helpful DBus services.
230− services.udisks2.enable = true;
231− services.upower.enable = config.powerManagement.enable;
232− services.dbus.packages =
233− mkIf config.services.printing.enable [ pkgs.system-config-printer ];
234−
235− # Extra UDEV rules used by Solid
236− services.udev.packages = [
237− pkgs.libmtp
238− pkgs.media-player-info
239− ];
240−
241− services.xserver.displayManager.sddm = {
242− theme = "breeze";
243− themes = [
244− kde5.ecm # for the setup-hook
245− kde5.plasma-workspace
246− kde5.breeze-icons
247− ];
248− };
249−
250− security.pam.services.kde = { allowNullPassword = true; };
251−
252− # use kimpanel as the default IBus panel
253− i18n.inputMethod.ibus.panel =
254− lib.mkDefault
255− "${pkgs.kde5.plasma-desktop}/lib/libexec/kimpanel-ibus-panel";
256−
257− })
258− ];
259−
260−}
nixos/modules/services/x11/desktop-managers/kodi.nix−1
@@ -11,7 +11,6 @@ in
1111 services.xserver.desktopManager.kodi = {
1212 enable = mkOption {
1313 default = false;
14− example = true;
1514 description = "Enable the kodi multimedia center.";
1615 };
1716 };
nixos/modules/services/x11/desktop-managers/lumina.nix+2−2
@@ -32,8 +32,8 @@ in
3232
3333 environment.systemPackages = [
3434 pkgs.fluxbox
35− pkgs.kde5.kwindowsystem
36− pkgs.kde5.oxygen-icons5
35+ pkgs.libsForQt5.kwindowsystem
36+ pkgs.kdeFrameworks.oxygen-icons5
3737 pkgs.lumina
3838 pkgs.numlockx
3939 pkgs.qt5.qtsvg
nixos/modules/services/x11/desktop-managers/plasma5.nixnew file+227
@@ -0,0 +1,227 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ xcfg = config.services.xserver;
8+ cfg = xcfg.desktopManager.plasma5;
9+
10+ inherit (pkgs) kdeWrapper kdeApplications plasma5 libsForQt5 qt5 xorg;
11+
12+in
13+
14+{
15+ options = {
16+
17+ services.xserver.desktopManager.plasma5 = {
18+ enable = mkOption {
19+ type = types.bool;
20+ default = false;
21+ description = "Enable the Plasma 5 (KDE 5) desktop environment.";
22+ };
23+
24+ enableQt4Support = mkOption {
25+ type = types.bool;
26+ default = true;
27+ description = ''
28+ Enable support for Qt 4-based applications. Particularly, install the
29+ Qt 4 version of the Breeze theme and a default backend for Phonon.
30+ '';
31+ };
32+
33+ extraPackages = mkOption {
34+ type = types.listOf types.package;
35+ default = [];
36+ description = ''
37+ KDE packages that need to be installed system-wide.
38+ '';
39+ };
40+
41+ };
42+
43+ };
44+
45+
46+ config = mkMerge [
47+ (mkIf (cfg.extraPackages != []) {
48+ environment.systemPackages = [ (kdeWrapper cfg.extraPackages) ];
49+ })
50+
51+ (mkIf (xcfg.enable && cfg.enable) {
52+ services.xserver.desktopManager.session = singleton {
53+ name = "plasma5";
54+ bgSupport = true;
55+ start = ''
56+ # Load PulseAudio module for routing support.
57+ # See http://colin.guthr.ie/2009/10/so-how-does-the-kde-pulseaudio-support-work-anyway/
58+ ${optionalString config.hardware.pulseaudio.enable ''
59+ ${getBin config.hardware.pulseaudio.package}/bin/pactl load-module module-device-manager "do_routing=1"
60+ ''}
61+
62+ exec "${plasma5.startkde}"
63+ '';
64+ };
65+
66+ security.wrappers = {
67+ kcheckpass.source = "${plasma5.plasma-workspace.out}/lib/libexec/kcheckpass";
68+ "start_kdeinit".source = "${pkgs.kinit.out}/lib/libexec/kf5/start_kdeinit";
69+ };
70+
71+ environment.systemPackages = with pkgs; with qt5; with libsForQt5; with plasma5; with kdeApplications;
72+ [
73+ frameworkintegration
74+ kactivities
75+ kauth
76+ kcmutils
77+ kconfig
78+ kconfigwidgets
79+ kcoreaddons
80+ kdbusaddons
81+ kdeclarative
82+ kded
83+ kdesu
84+ kdnssd
85+ kemoticons
86+ kfilemetadata
87+ kglobalaccel
88+ kguiaddons
89+ kiconthemes
90+ kidletime
91+ kimageformats
92+ kinit
93+ kio
94+ kjobwidgets
95+ knewstuff
96+ knotifications
97+ knotifyconfig
98+ kpackage
99+ kparts
100+ kpeople
101+ krunner
102+ kservice
103+ ktextwidgets
104+ kwallet
105+ kwallet-pam
106+ kwalletmanager
107+ kwayland
108+ kwidgetsaddons
109+ kxmlgui
110+ kxmlrpcclient
111+ plasma-framework
112+ solid
113+ sonnet
114+ threadweaver
115+
116+ breeze-qt5
117+ kactivitymanagerd
118+ kde-cli-tools
119+ kdecoration
120+ kdeplasma-addons
121+ kgamma5
122+ khotkeys
123+ kinfocenter
124+ kmenuedit
125+ kscreen
126+ kscreenlocker
127+ ksysguard
128+ kwayland
129+ kwin
130+ kwrited
131+ libkscreen
132+ libksysguard
133+ milou
134+ plasma-integration
135+ polkit-kde-agent
136+ systemsettings
137+
138+ plasma-desktop
139+ plasma-workspace
140+ plasma-workspace-wallpapers
141+
142+ dolphin-plugins
143+ ffmpegthumbs
144+ kdegraphics-thumbnailers
145+ kio-extras
146+ print-manager
147+
148+ breeze-icons
149+ pkgs.hicolor_icon_theme
150+
151+ kde-gtk-config breeze-gtk
152+
153+ phonon-backend-gstreamer
154+ ]
155+
156+ ++ lib.optionals cfg.enableQt4Support [ breeze-qt4 pkgs.phonon-backend-gstreamer ]
157+
158+ # Optional hardware support features
159+ ++ lib.optional config.hardware.bluetooth.enable bluedevil
160+ ++ lib.optional config.networking.networkmanager.enable plasma-nm
161+ ++ lib.optional config.hardware.pulseaudio.enable plasma-pa
162+ ++ lib.optional config.powerManagement.enable powerdevil
163+ ++ lib.optional config.services.colord.enable colord-kde
164+ ++ lib.optionals config.services.samba.enable [ kdenetwork-filesharing pkgs.samba ];
165+
166+ services.xserver.desktopManager.plasma5.extraPackages =
167+ with kdeApplications; with plasma5;
168+ [
169+ khelpcenter
170+ oxygen
171+
172+ dolphin
173+ konsole
174+ ];
175+
176+ environment.pathsToLink = [ "/share" ];
177+
178+ environment.etc = singleton {
179+ source = xcfg.xkbDir;
180+ target = "X11/xkb";
181+ };
182+
183+ environment.variables = {
184+ # Enable GTK applications to load SVG icons
185+ GDK_PIXBUF_MODULE_FILE = "${pkgs.librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache";
186+ };
187+
188+ fonts.fonts = with pkgs; [ noto-fonts hack-font ];
189+ fonts.fontconfig.defaultFonts = {
190+ monospace = [ "Hack" "Noto Mono" ];
191+ sansSerif = [ "Noto Sans" ];
192+ serif = [ "Noto Serif" ];
193+ };
194+
195+ programs.ssh.askPassword = "${plasma5.ksshaskpass.out}/bin/ksshaskpass";
196+
197+ # Enable helpful DBus services.
198+ services.udisks2.enable = true;
199+ services.upower.enable = config.powerManagement.enable;
200+ services.dbus.packages =
201+ mkIf config.services.printing.enable [ pkgs.system-config-printer ];
202+
203+ # Extra UDEV rules used by Solid
204+ services.udev.packages = [
205+ pkgs.libmtp
206+ pkgs.media-player-info
207+ ];
208+
209+ services.xserver.displayManager.sddm = {
210+ theme = "breeze";
211+ package = pkgs.sddmPlasma5;
212+ };
213+
214+ security.pam.services.kde = { allowNullPassword = true; };
215+
216+ # Doing these one by one seems silly, but we currently lack a better
217+ # construct for handling common pam configs.
218+ security.pam.services.gdm.enableKwallet = true;
219+ security.pam.services.kdm.enableKwallet = true;
220+ security.pam.services.lightdm.enableKwallet = true;
221+ security.pam.services.sddm.enableKwallet = true;
222+ security.pam.services.slim.enableKwallet = true;
223+
224+ })
225+ ];
226+
227+}
nixos/modules/services/x11/desktop-managers/xfce.nix+14−1
@@ -41,6 +41,18 @@ in
4141 Shell commands executed just before XFCE is started.
4242 '';
4343 };
44+
45+ enableXfwm = mkOption {
46+ type = types.bool;
47+ default = true;
48+ description = "Enable the XFWM (default) window manager.";
49+ };
50+
51+ screenLock = mkOption {
52+ type = types.enum [ "xscreensaver" "xlockmore" "slock" ];
53+ default = "xlockmore";
54+ description = "Application used by XFCE to lock the screen.";
55+ };
4456 };
4557
4658 };
@@ -74,6 +86,7 @@ in
7486 pkgs.tango-icon-theme
7587 pkgs.shared_mime_info
7688 pkgs.which # Needed by the xfce's xinitrc script.
89+ pkgs."${cfg.screenLock}"
7790 pkgs.xfce.exo
7891 pkgs.xfce.gtk_xfce_engine
7992 pkgs.xfce.mousepad
@@ -87,7 +100,6 @@ in
87100 pkgs.xfce.xfce4volumed
88101 pkgs.xfce.xfce4-screenshooter
89102 pkgs.xfce.xfconf
90− pkgs.xfce.xfwm4
91103 # This supplies some "abstract" icons such as
92104 # "utilities-terminal" and "accessories-text-editor".
93105 pkgs.gnome3.defaultIconTheme
@@ -99,6 +111,7 @@ in
99111 pkgs.xfce.xfce4_appfinder
100112 pkgs.xfce.tumbler # found via dbus
101113 ]
114+ ++ optional cfg.enableXfwm pkgs.xfce.xfwm4
102115 ++ optional config.powerManagement.enable pkgs.xfce.xfce4_power_manager
103116 ++ optional config.networking.networkmanager.enable pkgs.networkmanagerapplet
104117 ++ optionals (!cfg.noDesktop)
nixos/modules/services/x11/desktop-managers/xterm.nix−1
@@ -13,7 +13,6 @@ in
1313
1414 services.xserver.desktopManager.xterm.enable = mkOption {
1515 default = true;
16− example = false;
1716 description = "Enable a xterm terminal as a desktop manager.";
1817 };
1918
nixos/modules/services/x11/display-managers/default.nix+4−4
@@ -24,7 +24,7 @@ let
2424 Xft.lcdfilter: lcd${fontconfig.subpixel.lcdfilter}
2525 Xft.hinting: ${if fontconfig.hinting.enable then "1" else "0"}
2626 Xft.autohint: ${if fontconfig.hinting.autohint then "1" else "0"}
27− Xft.hintstyle: hint${fontconfig.hinting.style}
27+ Xft.hintstyle: hintslight
2828 '';
2929
3030 # file provided by services.xserver.displayManager.session.script
@@ -32,6 +32,9 @@ let
3232 ''
3333 #! ${pkgs.bash}/bin/bash
3434
35+ # Handle being called by SDDM.
36+ if test "''${1:0:1}" = / ; then eval exec $1 $2 ; fi
37+
3538 ${optionalString cfg.displayManager.logToJournal ''
3639 if [ -z "$_DID_SYSTEMD_CAT" ]; then
3740 _DID_SYSTEMD_CAT=1 exec ${config.systemd.package}/bin/systemd-cat -t xsession -- "$0" "$@"
@@ -55,9 +58,6 @@ let
5558 fi
5659 ''}
5760
58− # Handle being called by kdm.
59− if test "''${1:0:1}" = /; then eval exec "$1"; fi
60−
6161 # Start PulseAudio if enabled.
6262 ${optionalString (config.hardware.pulseaudio.enable) ''
6363 ${optionalString (!config.hardware.pulseaudio.systemWide)
nixos/modules/services/x11/display-managers/kdm.nixdeleted−158
@@ -1,158 +0,0 @@
1−{ config, lib, pkgs, ... }:
2−
3−with lib;
4−
5−let
6−
7− dmcfg = config.services.xserver.displayManager;
8− cfg = dmcfg.kdm;
9−
10− inherit (pkgs.kde4) kdebase_workspace;
11−
12− defaultConfig =
13− ''
14− [Shutdown]
15− HaltCmd=${config.systemd.package}/sbin/shutdown -h now
16− RebootCmd=${config.systemd.package}/sbin/shutdown -r now
17− ${optionalString (config.system.boot.loader.id == "grub") ''
18− BootManager=${if config.boot.loader.grub.version == 2 then "Grub2" else "Grub"}
19− ''}
20−
21− [X-*-Core]
22− Xrdb=${pkgs.xorg.xrdb}/bin/xrdb
23− SessionsDirs=${dmcfg.session.desktops}
24− Session=${dmcfg.session.script}
25− FailsafeClient=${pkgs.xterm}/bin/xterm
26−
27− [X-:*-Core]
28− ServerCmd=${dmcfg.xserverBin} ${toString dmcfg.xserverArgs}
29− # KDM calls `rm' somewhere to clean up some temporary directory.
30− SystemPath=${pkgs.coreutils}/bin
31− # The default timeout (15) is too short in a heavily loaded boot process.
32− ServerTimeout=60
33− # Needed to prevent the X server from dying on logout and not coming back:
34− TerminateServer=true
35− ${optionalString (cfg.setupScript != "")
36− ''
37− Setup=${cfg.setupScript}
38− ''}
39−
40− [X-*-Greeter]
41− HiddenUsers=root,${concatStringsSep "," dmcfg.hiddenUsers}
42− PluginsLogin=${kdebase_workspace}/lib/kde4/kgreet_classic.so
43− ${optionalString (cfg.themeDirectory != null)
44− ''
45− UseTheme=true
46− Theme=${cfg.themeDirectory}
47− ''
48− }
49−
50− ${optionalString (cfg.enableXDMCP)
51− ''
52− [Xdmcp]
53− Enable=true
54− ''}
55− '';
56−
57− kdmrc = pkgs.runCommand "kdmrc"
58− { config = defaultConfig + cfg.extraConfig;
59− preferLocalBuild = true;
60− }
61− ''
62− echo "$config" > $out
63−
64− # The default kdmrc would add "-nolisten tcp", and we already
65− # have that managed by nixos. Hence the grep.
66− cat ${kdebase_workspace}/share/config/kdm/kdmrc | grep -v nolisten >> $out
67− '';
68−
69−in
70−
71−{
72−
73− ###### interface
74−
75− options = {
76−
77− services.xserver.displayManager.kdm = {
78−
79− enable = mkOption {
80− type = types.bool;
81− default = false;
82− description = ''
83− Whether to enable the KDE display manager.
84− '';
85− };
86−
87− enableXDMCP = mkOption {
88− type = types.bool;
89− default = false;
90− description = ''
91− Whether to enable XDMCP, which allows remote logins.
92− '';
93− };
94−
95− themeDirectory = mkOption {
96− type = types.nullOr types.str;
97− default = null;
98− description = ''
99− The path to a KDM theme directory. This theme
100− will be used by the KDM greeter.
101− '';
102− };
103−
104− setupScript = mkOption {
105− type = types.lines;
106− default = "";
107− description = ''
108− The path to a KDM setup script. This script is run as root just
109− before KDM starts. Can be used for setting up
110− monitors with xrandr, for example.
111− '';
112− };
113−
114− extraConfig = mkOption {
115− type = types.lines;
116− default = "";
117− description = ''
118− Options appended to <filename>kdmrc</filename>, the
119− configuration file of KDM.
120− '';
121− };
122−
123− };
124−
125− };
126−
127−
128− ###### implementation
129−
130− config = mkIf cfg.enable {
131−
132− services.xserver.displayManager.slim.enable = false;
133−
134− services.xserver.displayManager.job =
135− { execCmd =
136− ''
137− mkdir -m 0755 -p /var/lib/kdm
138− chown kdm /var/lib/kdm
139− ${(optionalString (config.system.boot.loader.id == "grub" && config.system.build.grub != null) "PATH=${config.system.build.grub}/sbin:$PATH ") +
140− "KDEDIRS=/run/current-system/sw exec ${kdebase_workspace}/bin/kdm -config ${kdmrc} -nodaemon -logfile /dev/stderr"}
141− '';
142− logsXsession = true;
143− };
144−
145− security.pam.services.kde = { allowNullPassword = true; startSession = true; };
146−
147− users.extraUsers = singleton
148− { name = "kdm";
149− uid = config.ids.uids.kdm;
150− description = "KDM user";
151− };
152−
153− environment.systemPackages =
154− [ pkgs.kde4.kde_wallpapers ]; # contains kdm's default background
155−
156− };
157−
158−}
nixos/modules/services/x11/display-managers/lightdm-greeters/gtk.nix+10
@@ -45,6 +45,7 @@ let
4545 theme-name = ${cfg.theme.name}
4646 icon-theme-name = ${cfg.iconTheme.name}
4747 background = ${ldmcfg.background}
48+ ${cfg.extraConfig}
4849 '';
4950
5051in
@@ -103,6 +104,15 @@ in
103104
104105 };
105106
107+ extraConfig = mkOption {
108+ type = types.lines;
109+ default = "";
110+ description = ''
111+ Extra configuration that should be put in the lightdm-gtk-greeter.conf
112+ configuration file.
113+ '';
114+ };
115+
106116 };
107117
108118 };
nixos/modules/services/x11/display-managers/lightdm.nix+1−3
@@ -46,15 +46,13 @@ let
4646 [Seat:*]
4747 xserver-command = ${xserverWrapper}
4848 session-wrapper = ${dmcfg.session.script}
49− ${optionalString (elem defaultSessionName dmcfg.session.names) ''
50− user-session = ${defaultSessionName}
51− ''}
5249 ${optionalString cfg.greeter.enable ''
5350 greeter-session = ${cfg.greeter.name}
5451 ''}
5552 ${optionalString cfg.autoLogin.enable ''
5653 autologin-user = ${cfg.autoLogin.user}
5754 autologin-user-timeout = ${toString cfg.autoLogin.timeout}
55+ autologin-session = ${defaultSessionName}
5856 ''}
5957 ${cfg.extraSeatDefaults}
6058 '';
nixos/modules/services/x11/display-managers/sddm.nix+6−5
@@ -9,7 +9,7 @@ let
99 cfg = dmcfg.sddm;
1010 xEnv = config.systemd.services."display-manager".environment;
1111
12− sddm = pkgs.sddm.override { inherit (cfg) themes; };
12+ sddm = cfg.package;
1313
1414 xserverWrapper = pkgs.writeScript "xserver-wrapper" ''
1515 #!/bin/sh
@@ -105,11 +105,12 @@ in
105105 '';
106106 };
107107
108− themes = mkOption {
109− type = types.listOf types.package;
110− default = [];
108+ package = mkOption {
109+ type = types.package;
110+ default = pkgs.sddm;
111111 description = ''
112− Extra packages providing themes.
112+ The SDDM package to install.
113+ The default package can be overridden to provide extra themes.
113114 '';
114115 };
115116
nixos/modules/services/x11/display-managers/xpra.nixnew file+249
@@ -0,0 +1,249 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.xserver.displayManager.xpra;
7+ dmcfg = config.services.xserver.displayManager;
8+
9+in
10+
11+{
12+ ###### interface
13+
14+ options = {
15+ services.xserver.displayManager.xpra = {
16+ enable = mkOption {
17+ type = types.bool;
18+ default = false;
19+ description = "Whether to enable xpra as display manager.";
20+ };
21+
22+ bindTcp = mkOption {
23+ default = "127.0.0.1:10000";
24+ example = "0.0.0.0:10000";
25+ type = types.nullOr types.str;
26+ description = "Bind xpra to TCP";
27+ };
28+
29+ auth = mkOption {
30+ type = types.str;
31+ default = "pam";
32+ example = "password:value=mysecret";
33+ description = "Authentication to use when connecting to xpra";
34+ };
35+
36+ pulseaudio = mkEnableOption "pulseaudio audio streaming.";
37+ };
38+ };
39+
40+ ###### implementation
41+
42+ config = mkIf cfg.enable {
43+ services.xserver.videoDrivers = ["dummy"];
44+
45+ services.xserver.monitorSection = ''
46+ HorizSync 1.0 - 2000.0
47+ VertRefresh 1.0 - 200.0
48+ #To add your own modes here, use a modeline calculator, like:
49+ # cvt:
50+ # http://www.x.org/archive/X11R7.5/doc/man/man1/cvt.1.html
51+ # xtiming:
52+ # http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
53+ # gtf:
54+ # http://gtf.sourceforge.net/
55+ #This can be used to get a specific DPI, but only for the default resolution:
56+ #DisplaySize 508 317
57+ #NOTE: the highest modes will not work without increasing the VideoRam
58+ # for the dummy video card.
59+ #Modeline "16000x15000" 300.00 16000 16408 18000 20000 15000 15003 15013 15016
60+ #Modeline "15000x15000" 281.25 15000 15376 16872 18744 15000 15003 15013 15016
61+ #Modeline "16384x8192" 167.75 16384 16800 18432 20480 8192 8195 8205 8208
62+ #Modeline "15360x8640" 249.00 15360 15752 17280 19200 8640 8643 8648 8651
63+ Modeline "8192x4096" 193.35 8192 8224 8952 8984 4096 4196 4200 4301
64+ Modeline "7680x4320" 208.00 7680 7880 8640 9600 4320 4323 4328 4335
65+ Modeline "6400x4096" 151.38 6400 6432 7000 7032 4096 4196 4200 4301
66+ Modeline "6400x2560" 91.59 6400 6432 6776 6808 2560 2623 2626 2689
67+ Modeline "6400x2160" 160.51 6400 6432 7040 7072 2160 2212 2216 2269
68+ Modeline "5760x2160" 149.50 5760 5768 6320 6880 2160 2161 2164 2173
69+ Modeline "5680x1440" 142.66 5680 5712 6248 6280 1440 1474 1478 1513
70+ Modeline "5496x1200" 199.13 5496 5528 6280 6312 1200 1228 1233 1261
71+ Modeline "5280x2560" 75.72 5280 5312 5592 5624 2560 2623 2626 2689
72+ Modeline "5280x1920" 56.04 5280 5312 5520 5552 1920 1967 1969 2017
73+ Modeline "5280x1200" 191.40 5280 5312 6032 6064 1200 1228 1233 1261
74+ Modeline "5280x1080" 169.96 5280 5312 5952 5984 1080 1105 1110 1135
75+ Modeline "5120x3200" 199.75 5120 5152 5904 5936 3200 3277 3283 3361
76+ Modeline "5120x2560" 73.45 5120 5152 5424 5456 2560 2623 2626 2689
77+ Modeline "5120x2880" 185.50 5120 5256 5760 6400 2880 2883 2888 2899
78+ Modeline "4800x1200" 64.42 4800 4832 5072 5104 1200 1229 1231 1261
79+ Modeline "4720x3840" 227.86 4720 4752 5616 5648 3840 3933 3940 4033
80+ Modeline "4400x2560" 133.70 4400 4432 4936 4968 2560 2622 2627 2689
81+ Modeline "4480x1440" 72.94 4480 4512 4784 4816 1440 1475 1478 1513
82+ Modeline "4240x1440" 69.09 4240 4272 4528 4560 1440 1475 1478 1513
83+ Modeline "4160x1440" 67.81 4160 4192 4448 4480 1440 1475 1478 1513
84+ Modeline "4096x2304" 249.25 4096 4296 4720 5344 2304 2307 2312 2333
85+ Modeline "4096x2160" 111.25 4096 4200 4608 5120 2160 2163 2173 2176
86+ Modeline "4000x1660" 170.32 4000 4128 4536 5072 1660 1661 1664 1679
87+ Modeline "4000x1440" 145.00 4000 4088 4488 4976 1440 1441 1444 1457
88+ Modeline "3904x1440" 63.70 3904 3936 4176 4208 1440 1475 1478 1513
89+ Modeline "3840x2880" 133.43 3840 3872 4376 4408 2880 2950 2955 3025
90+ Modeline "3840x2560" 116.93 3840 3872 4312 4344 2560 2622 2627 2689
91+ Modeline "3840x2160" 104.25 3840 3944 4320 4800 2160 2163 2168 2175
92+ Modeline "3840x2048" 91.45 3840 3872 4216 4248 2048 2097 2101 2151
93+ Modeline "3840x1200" 108.89 3840 3872 4280 4312 1200 1228 1232 1261
94+ Modeline "3840x1080" 100.38 3840 3848 4216 4592 1080 1081 1084 1093
95+ Modeline "3864x1050" 94.58 3864 3896 4248 4280 1050 1074 1078 1103
96+ Modeline "3600x1200" 106.06 3600 3632 3984 4368 1200 1201 1204 1214
97+ Modeline "3600x1080" 91.02 3600 3632 3976 4008 1080 1105 1109 1135
98+ Modeline "3520x1196" 99.53 3520 3552 3928 3960 1196 1224 1228 1256
99+ Modeline "3360x2560" 102.55 3360 3392 3776 3808 2560 2622 2627 2689
100+ Modeline "3360x1050" 293.75 3360 3576 3928 4496 1050 1053 1063 1089
101+ Modeline "3288x1080" 39.76 3288 3320 3464 3496 1080 1106 1108 1135
102+ Modeline "3200x1800" 233.00 3200 3384 3720 4240 1800 1803 1808 1834
103+ Modeline "3200x1080" 236.16 3200 3232 4128 4160 1080 1103 1112 1135
104+ Modeline "3120x2560" 95.36 3120 3152 3512 3544 2560 2622 2627 2689
105+ Modeline "3120x1050" 272.75 3120 3320 3648 4176 1050 1053 1063 1089
106+ Modeline "3072x2560" 93.92 3072 3104 3456 3488 2560 2622 2627 2689
107+ Modeline "3008x1692" 130.93 3008 3112 3416 3824 1692 1693 1696 1712
108+ Modeline "3000x2560" 91.77 3000 3032 3376 3408 2560 2622 2627 2689
109+ Modeline "2880x1620" 396.25 2880 3096 3408 3936 1620 1623 1628 1679
110+ Modeline "2728x1680" 148.02 2728 2760 3320 3352 1680 1719 1726 1765
111+ Modeline "2560x2240" 151.55 2560 2688 2952 3344 2240 2241 2244 2266
112+ Modeline "2560x1600" 47.12 2560 2592 2768 2800 1600 1639 1642 1681
113+ Modeline "2560x1440" 42.12 2560 2592 2752 2784 1440 1475 1478 1513
114+ Modeline "2560x1400" 267.86 2560 2592 3608 3640 1400 1429 1441 1471
115+ Modeline "2048x2048" 49.47 2048 2080 2264 2296 2048 2097 2101 2151
116+ Modeline "2048x1536" 80.06 2048 2104 2312 2576 1536 1537 1540 1554
117+ Modeline "2048x1152" 197.97 2048 2184 2408 2768 1152 1153 1156 1192
118+ Modeline "2048x1152" 165.92 2048 2080 2704 2736 1152 1176 1186 1210
119+ Modeline "1920x1440" 69.47 1920 1960 2152 2384 1440 1441 1444 1457
120+ Modeline "1920x1200" 26.28 1920 1952 2048 2080 1200 1229 1231 1261
121+ Modeline "1920x1080" 23.53 1920 1952 2040 2072 1080 1106 1108 1135
122+ Modeline "1728x1520" 205.42 1728 1760 2536 2568 1520 1552 1564 1597
123+ Modeline "1680x1050" 20.08 1680 1712 1784 1816 1050 1075 1077 1103
124+ Modeline "1600x1200" 22.04 1600 1632 1712 1744 1200 1229 1231 1261
125+ Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
126+ Modeline "1440x900" 30.66 1440 1472 1584 1616 900 921 924 946
127+ Modeline "1400x900" 103.50 1400 1480 1624 1848 900 903 913 934
128+ ModeLine "1366x768" 72.00 1366 1414 1446 1494 768 771 777 803
129+ Modeline "1360x768" 24.49 1360 1392 1480 1512 768 786 789 807
130+ Modeline "1280x1024" 31.50 1280 1312 1424 1456 1024 1048 1052 1076
131+ Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
132+ Modeline "1280x768" 23.11 1280 1312 1392 1424 768 786 789 807
133+ Modeline "1280x720" 59.42 1280 1312 1536 1568 720 735 741 757
134+ Modeline "1024x768" 18.71 1024 1056 1120 1152 768 786 789 807
135+ Modeline "1024x640" 41.98 1024 1056 1208 1240 640 653 659 673
136+ Modeline "1024x576" 46.50 1024 1064 1160 1296 576 579 584 599
137+ Modeline "768x1024" 19.50 768 800 872 904 1024 1048 1052 1076
138+ Modeline "960x540" 40.75 960 992 1088 1216 540 543 548 562
139+ Modeline "864x486" 32.50 864 888 968 1072 486 489 494 506
140+ Modeline "720x405" 22.50 720 744 808 896 405 408 413 422
141+ Modeline "640x360" 14.75 640 664 720 800 360 363 368 374
142+ #common resolutions for android devices (both orientations):
143+ Modeline "800x1280" 25.89 800 832 928 960 1280 1310 1315 1345
144+ Modeline "1280x800" 24.15 1280 1312 1400 1432 800 819 822 841
145+ Modeline "720x1280" 30.22 720 752 864 896 1280 1309 1315 1345
146+ Modeline "1280x720" 27.41 1280 1312 1416 1448 720 737 740 757
147+ Modeline "768x1024" 24.93 768 800 888 920 1024 1047 1052 1076
148+ Modeline "1024x768" 23.77 1024 1056 1144 1176 768 785 789 807
149+ Modeline "600x1024" 19.90 600 632 704 736 1024 1047 1052 1076
150+ Modeline "1024x600" 18.26 1024 1056 1120 1152 600 614 617 631
151+ Modeline "536x960" 16.74 536 568 624 656 960 982 986 1009
152+ Modeline "960x536" 15.23 960 992 1048 1080 536 548 551 563
153+ Modeline "600x800" 15.17 600 632 688 720 800 818 822 841
154+ Modeline "800x600" 14.50 800 832 880 912 600 614 617 631
155+ Modeline "480x854" 13.34 480 512 560 592 854 873 877 897
156+ Modeline "848x480" 12.09 848 880 920 952 480 491 493 505
157+ Modeline "480x800" 12.43 480 512 552 584 800 818 822 841
158+ Modeline "800x480" 11.46 800 832 872 904 480 491 493 505
159+ #resolutions for android devices (both orientations)
160+ #minus the status bar
161+ #38px status bar (and width rounded up)
162+ Modeline "800x1242" 25.03 800 832 920 952 1242 1271 1275 1305
163+ Modeline "1280x762" 22.93 1280 1312 1392 1424 762 780 783 801
164+ Modeline "720x1242" 29.20 720 752 856 888 1242 1271 1276 1305
165+ Modeline "1280x682" 25.85 1280 1312 1408 1440 682 698 701 717
166+ Modeline "768x986" 23.90 768 800 888 920 986 1009 1013 1036
167+ Modeline "1024x730" 22.50 1024 1056 1136 1168 730 747 750 767
168+ Modeline "600x986" 19.07 600 632 704 736 986 1009 1013 1036
169+ Modeline "1024x562" 17.03 1024 1056 1120 1152 562 575 578 591
170+ Modeline "536x922" 16.01 536 568 624 656 922 943 947 969
171+ Modeline "960x498" 14.09 960 992 1040 1072 498 509 511 523
172+ Modeline "600x762" 14.39 600 632 680 712 762 779 783 801
173+ Modeline "800x562" 13.52 800 832 880 912 562 575 578 591
174+ Modeline "480x810" 12.59 480 512 552 584 810 828 832 851
175+ Modeline "848x442" 11.09 848 880 920 952 442 452 454 465
176+ Modeline "480x762" 11.79 480 512 552 584 762 779 783 801
177+ '';
178+
179+ services.xserver.resolutions = [
180+ {x="8192"; y="4096";}
181+ {x="5120"; y="3200";}
182+ {x="3840"; y="2880";}
183+ {x="3840"; y="2560";}
184+ {x="3840"; y="2048";}
185+ {x="3840"; y="2160";}
186+ {x="2048"; y="2048";}
187+ {x="2560"; y="1600";}
188+ {x="1920"; y="1440";}
189+ {x="1920"; y="1200";}
190+ {x="1920"; y="1080";}
191+ {x="1600"; y="1200";}
192+ {x="1680"; y="1050";}
193+ {x="1600"; y="900";}
194+ {x="1400"; y="1050";}
195+ {x="1440"; y="900";}
196+ {x="1280"; y="1024";}
197+ {x="1366"; y="768";}
198+ {x="1280"; y="800";}
199+ {x="1024"; y="768";}
200+ {x="1024"; y="600";}
201+ {x="800"; y="600";}
202+ {x="320"; y="200";}
203+ ];
204+
205+ services.xserver.serverFlagsSection = ''
206+ Option "DontVTSwitch" "true"
207+ Option "PciForceNone" "true"
208+ Option "AutoEnableDevices" "false"
209+ Option "AutoAddDevices" "false"
210+ '';
211+
212+ services.xserver.deviceSection = ''
213+ VideoRam 192000
214+ '';
215+
216+ services.xserver.displayManager.job = {
217+ logsXsession = true;
218+
219+ execCmd = ''
220+ ${optionalString (cfg.pulseaudio)
221+ "export PULSE_COOKIE=/var/run/pulse/.config/pulse/cookie"}
222+ exec ${pkgs.xpra}/bin/xpra start \
223+ --daemon=off \
224+ --log-dir=/var/log \
225+ --log-file=xpra.log \
226+ --opengl=on \
227+ --clipboard=on \
228+ --notifications=on \
229+ --speaker=yes \
230+ --mdns=no \
231+ --pulseaudio=no \
232+ ${optionalString (cfg.pulseaudio) "--sound-source=pulse"} \
233+ --socket-dirs=/var/run/xpra \
234+ --xvfb="xpra_Xdummy ${concatStringsSep " " dmcfg.xserverArgs}" \
235+ ${optionalString (cfg.bindTcp != null) "--bind-tcp=${cfg.bindTcp}"} \
236+ --auth=${cfg.auth}
237+ '';
238+ };
239+
240+ services.xserver.terminateOnReset = false;
241+
242+ environment.systemPackages = [pkgs.xpra];
243+
244+ virtualisation.virtualbox.guest.x11 = false;
245+ hardware.pulseaudio.enable = mkDefault cfg.pulseaudio;
246+ hardware.pulseaudio.systemWide = mkDefault cfg.pulseaudio;
247+ };
248+
249+}
nixos/modules/services/x11/hardware/libinput.nix−8
@@ -73,7 +73,6 @@ in {
7373 clickMethod = mkOption {
7474 type = types.nullOr (types.enum [ "none" "buttonareas" "clickfinger" ]);
7575 default = null;
76− example = "none";
7776 description =
7877 ''
7978 Enables a click method. Permitted values are none, buttonareas, clickfinger.
@@ -85,14 +84,12 @@ in {
8584 leftHanded = mkOption {
8685 type = types.bool;
8786 default = false;
88− example = true;
8987 description = "Enables left-handed button orientation, i.e. swapping left and right buttons.";
9088 };
9189
9290 middleEmulation = mkOption {
9391 type = types.bool;
9492 default = true;
95− example = false;
9693 description =
9794 ''
9895 Enables middle button emulation. When enabled, pressing the left and right buttons
@@ -103,7 +100,6 @@ in {
103100 naturalScrolling = mkOption {
104101 type = types.bool;
105102 default = false;
106− example = true;
107103 description = "Enables or disables natural scrolling behavior.";
108104 };
109105
@@ -131,7 +127,6 @@ in {
131127 horizontalScrolling = mkOption {
132128 type = types.bool;
133129 default = true;
134− example = false;
135130 description =
136131 ''
137132 Disables horizontal scrolling. When disabled, this driver will discard any horizontal scroll
@@ -153,7 +148,6 @@ in {
153148 tapping = mkOption {
154149 type = types.bool;
155150 default = true;
156− example = false;
157151 description =
158152 ''
159153 Enables or disables tap-to-click behavior.
@@ -163,7 +157,6 @@ in {
163157 tappingDragLock = mkOption {
164158 type = types.bool;
165159 default = true;
166− example = false;
167160 description =
168161 ''
169162 Enables or disables drag lock during tapping behavior. When enabled, a finger up during tap-
@@ -175,7 +168,6 @@ in {
175168 disableWhileTyping = mkOption {
176169 type = types.bool;
177170 default = true;
178− example = false;
179171 description =
180172 ''
181173 Disable input method while typing.
nixos/modules/services/x11/hardware/multitouch.nix−4
@@ -18,20 +18,17 @@ in {
1818
1919 enable = mkOption {
2020 default = false;
21− example = true;
2221 description = "Whether to enable multitouch touchpad support.";
2322 };
2423
2524 invertScroll = mkOption {
2625 default = false;
27− example = true;
2826 type = types.bool;
2927 description = "Whether to invert scrolling direction à la OSX Lion";
3028 };
3129
3230 ignorePalm = mkOption {
3331 default = false;
34− example = true;
3532 type = types.bool;
3633 description = "Whether to ignore touches detected as being the palm (i.e when typing)";
3734 };
@@ -39,7 +36,6 @@ in {
3936 tapButtons = mkOption {
4037 type = types.bool;
4138 default = true;
42− example = false;
4339 description = "Whether to enable tap buttons.";
4440 };
4541
nixos/modules/services/x11/hardware/synaptics.nix−4
@@ -29,7 +29,6 @@ in {
2929 enable = mkOption {
3030 type = types.bool;
3131 default = false;
32− example = true;
3332 description = "Whether to enable touchpad support.";
3433 };
3534
@@ -102,7 +101,6 @@ in {
102101 tapButtons = mkOption {
103102 type = types.bool;
104103 default = true;
105− example = false;
106104 description = "Whether to enable tap buttons.";
107105 };
108106
@@ -125,7 +123,6 @@ in {
125123 palmDetect = mkOption {
126124 type = types.bool;
127125 default = false;
128− example = true;
129126 description = "Whether to enable palm detection (hardware support required)";
130127 };
131128
@@ -146,7 +143,6 @@ in {
146143 horizontalScroll = mkOption {
147144 type = types.bool;
148145 default = true;
149− example = false;
150146 description = "Whether to enable horizontal scrolling (on touchpad)";
151147 };
152148
nixos/modules/services/x11/redshift.nix−1
@@ -12,7 +12,6 @@ in {
1212 enable = mkOption {
1313 type = types.bool;
1414 default = false;
15− example = true;
1615 description = ''
1716 Enable Redshift to change your screen's colour temperature depending on
1817 the time of day.
nixos/modules/services/x11/unclutter-xfixes.nix−1
@@ -11,7 +11,6 @@ in {
1111 description = "Enable unclutter-xfixes to hide your mouse cursor when inactive.";
1212 type = types.bool;
1313 default = false;
14− example = true;
1514 };
1615
1716 package = mkOption {
nixos/modules/services/x11/unclutter.nix−1
@@ -11,7 +11,6 @@ in {
1111 description = "Enable unclutter to hide your mouse cursor when inactive";
1212 type = types.bool;
1313 default = false;
14− example = true;
1514 };
1615
1716 package = mkOption {
nixos/modules/services/x11/urxvtd.nix−1
@@ -11,7 +11,6 @@ in {
1111 options.services.urxvtd.enable = mkOption {
1212 type = types.bool;
1313 default = false;
14− example = true;
1514 description = ''
1615 Enable urxvtd, the urxvt terminal daemon. To use urxvtd, run
1716 "urxvtc".
nixos/modules/services/x11/window-managers/2bwm.nixnew file+37
@@ -0,0 +1,37 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+
7+ cfg = config.services.xserver.windowManager."2bwm";
8+
9+in
10+
11+{
12+
13+ ###### interface
14+
15+ options = {
16+ services.xserver.windowManager."2bwm".enable = mkEnableOption "2bwm";
17+ };
18+
19+
20+ ###### implementation
21+
22+ config = mkIf cfg.enable {
23+
24+ services.xserver.windowManager.session = singleton
25+ { name = "2bwm";
26+ start =
27+ ''
28+ ${pkgs."2bwm"}/bin/2bwm &
29+ waitPID=$!
30+ '';
31+ };
32+
33+ environment.systemPackages = [ pkgs."2bwm" ];
34+
35+ };
36+
37+}
nixos/modules/services/x11/window-managers/default.nix+2
@@ -8,12 +8,14 @@ in
88
99{
1010 imports = [
11+ ./2bwm.nix
1112 ./afterstep.nix
1213 ./bspwm.nix
1314 ./compiz.nix
1415 ./dwm.nix
1516 ./exwm.nix
1617 ./fluxbox.nix
18+ ./fvwm.nix
1719 ./herbstluftwm.nix
1820 ./i3.nix
1921 ./jwm.nix
nixos/modules/services/x11/window-managers/exwm.nix−1
@@ -21,7 +21,6 @@ in
2121 enable = mkEnableOption "exwm";
2222 enableDefaultConfig = mkOption {
2323 default = true;
24− example = false;
2524 type = lib.types.bool;
2625 description = "Enable an uncustomised exwm configuration.";
2726 };
nixos/modules/services/x11/window-managers/fvwm.nixnew file+41
@@ -0,0 +1,41 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let
6+ cfg = config.services.xserver.windowManager.fvwm;
7+ fvwm = pkgs.fvwm.override { gestures = cfg.gestures; };
8+in
9+
10+{
11+
12+ ###### interface
13+
14+ options = {
15+ services.xserver.windowManager.fvwm = {
16+ enable = mkEnableOption "Fvwm window manager";
17+
18+ gestures = mkOption {
19+ default = false;
20+ type = types.bool;
21+ description = "Whether or not to enable libstroke for gesture support";
22+ };
23+ };
24+ };
25+
26+
27+ ###### implementation
28+
29+ config = mkIf cfg.enable {
30+ services.xserver.windowManager.session = singleton
31+ { name = "fvwm";
32+ start =
33+ ''
34+ ${fvwm}/bin/fvwm &
35+ waitPID=$!
36+ '';
37+ };
38+
39+ environment.systemPackages = [ fvwm ];
40+ };
41+}
nixos/modules/services/x11/window-managers/herbstluftwm.nix+19−4
@@ -8,15 +8,30 @@ in
88
99{
1010 options = {
11− services.xserver.windowManager.herbstluftwm.enable = mkEnableOption "herbstluftwm";
11+ services.xserver.windowManager.herbstluftwm = {
12+ enable = mkEnableOption "herbstluftwm";
13+
14+ configFile = mkOption {
15+ default = null;
16+ type = with types; nullOr path;
17+ description = ''
18+ Path to the herbstluftwm configuration file. If left at the
19+ default value, $XDG_CONFIG_HOME/herbstluftwm/autostart will
20+ be used.
21+ '';
22+ };
23+ };
1224 };
1325
1426 config = mkIf cfg.enable {
1527 services.xserver.windowManager.session = singleton {
1628 name = "herbstluftwm";
17− start = "
18− ${pkgs.herbstluftwm}/bin/herbstluftwm
19− ";
29+ start =
30+ let configFileClause = optionalString
31+ (cfg.configFile != null)
32+ ''-c "${cfg.configFile}"''
33+ ;
34+ in "${pkgs.herbstluftwm}/bin/herbstluftwm ${configFileClause}";
2035 };
2136 environment.systemPackages = [ pkgs.herbstluftwm ];
2237 };
nixos/modules/services/x11/window-managers/xmonad.nix−1
@@ -44,7 +44,6 @@ in
4444
4545 enableContribAndExtras = mkOption {
4646 default = false;
47− example = true;
4847 type = lib.types.bool;
4948 description = "Enable xmonad-{contrib,extras} in Xmonad.";
5049 };
nixos/modules/services/x11/xserver.nix+13−3
@@ -435,6 +435,14 @@ in
435435 by default.
436436 '';
437437 };
438+
439+ terminateOnReset = mkOption {
440+ type = types.bool;
441+ default = true;
442+ description = ''
443+ Whether to terminate X upon server reset.
444+ '';
445+ };
438446 };
439447
440448 };
@@ -459,6 +467,8 @@ in
459467 knownVideoDrivers;
460468 in optional (driver != null) ({ inherit name; modules = []; driverName = name; } // driver));
461469
470+ nixpkgs.config.xorg = optionalAttrs (elem "vboxvideo" cfg.videoDrivers) { abiCompat = "1.18"; };
471+
462472 assertions =
463473 [ { assertion = config.security.polkit.enable;
464474 message = "X11 requires Polkit to be enabled (‘security.polkit.enable = true’).";
@@ -548,8 +558,7 @@ in
548558 };
549559
550560 services.xserver.displayManager.xserverArgs =
551− [ "-terminate"
552− "-config ${configFile}"
561+ [ "-config ${configFile}"
553562 "-xkbdir" "${cfg.xkbDir}"
554563 # Log at the default verbosity level to stderr rather than /var/log/X.*.log.
555564 "-verbose" "3" "-logfile" "/dev/null"
@@ -558,7 +567,8 @@ in
558567 ++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}"
559568 ++ optional (!cfg.enableTCP) "-nolisten tcp"
560569 ++ optional (cfg.autoRepeatDelay != null) "-ardelay ${toString cfg.autoRepeatDelay}"
561− ++ optional (cfg.autoRepeatInterval != null) "-arinterval ${toString cfg.autoRepeatInterval}";
570+ ++ optional (cfg.autoRepeatInterval != null) "-arinterval ${toString cfg.autoRepeatInterval}"
571+ ++ optional cfg.terminateOnReset "-terminate";
562572
563573 services.xserver.modules =
564574 concatLists (catAttrs "modules" cfg.drivers) ++
nixos/modules/system/activation/activation-script.nix+3−2
@@ -19,6 +19,7 @@ let
1919 glibc # needed for getent
2020 shadow
2121 nettools # needed for hostname
22+ utillinux # needed for mount and mountpoint
2223 ];
2324
2425in
@@ -168,12 +169,12 @@ in
168169 local options="$3"
169170 local fsType="$4"
170171
171− if ${pkgs.utillinux}/bin/mountpoint -q "$mountPoint"; then
172+ if mountpoint -q "$mountPoint"; then
172173 local options="remount,$options"
173174 else
174175 mkdir -m 0755 -p "$mountPoint"
175176 fi
176− ${pkgs.utillinux}/bin/mount -t "$fsType" -o "$options" "$device" "$mountPoint"
177+ mount -t "$fsType" -o "$options" "$device" "$mountPoint"
177178 }
178179 source ${config.system.build.earlyMountScript}
179180 '';
nixos/modules/system/activation/switch-to-configuration.pl+5−1
@@ -41,7 +41,7 @@ if ($action eq "switch" || $action eq "boot") {
4141}
4242
4343# Just in case the new configuration hangs the system, do a sync now.
44−system("@coreutils@/bin/sync") unless ($ENV{"NIXOS_NO_SYNC"} // "") eq "1";
44+system("@coreutils@/bin/sync", "-f", "/nix/store") unless ($ENV{"NIXOS_NO_SYNC"} // "") eq "1";
4545
4646exit 0 if $action eq "boot";
4747
@@ -383,6 +383,10 @@ system("@systemd@/bin/systemctl", "reset-failed");
383383# Make systemd reload its units.
384384system("@systemd@/bin/systemctl", "daemon-reload") == 0 or $res = 3;
385385
386+# Set the new tmpfiles
387+print STDERR "setting up tmpfiles\n";
388+system("@systemd@/bin/systemd-tmpfiles", "--create", "--remove", "--exclude-prefix=/dev") == 0 or $res = 3;
389+
386390# Reload units that need it. This includes remounting changed mount
387391# units.
388392if (scalar(keys %unitsToReload) > 0) {
nixos/modules/system/activation/top-level.nix+5
@@ -45,11 +45,16 @@ let
4545
4646 ln -s ${kernelPath} $out/kernel
4747 ln -s ${config.system.modulesTree} $out/kernel-modules
48+ ${optionalString (pkgs.stdenv.platform.kernelDTB or false) ''
49+ ln -s ${config.boot.kernelPackages.kernel}/dtbs $out/dtbs
50+ ''}
4851
4952 echo -n "$kernelParams" > $out/kernel-params
5053
5154 ln -s ${config.system.build.initialRamdisk}/initrd $out/initrd
5255
56+ ln -s ${config.system.build.initialRamdiskSecretAppender}/bin/append-initrd-secrets $out
57+
5358 ln -s ${config.hardware.firmware}/lib/firmware $out/firmware
5459 ''}
5560
nixos/modules/system/boot/initrd-ssh.nix+17−16
@@ -44,9 +44,10 @@ in
4444 description = ''
4545 RSA SSH private key file in the Dropbear format.
4646
47− WARNING: This key is contained insecurely in the global Nix store. Do NOT
48− use your regular SSH host private keys for this purpose or you'll expose
49− them to regular users!
47+ WARNING: Unless your bootloader supports initrd secrets, this key is
48+ contained insecurely in the global Nix store. Do NOT use your regular
49+ SSH host private keys for this purpose or you'll expose them to
50+ regular users!
5051 '';
5152 };
5253
@@ -56,9 +57,10 @@ in
5657 description = ''
5758 DSS SSH private key file in the Dropbear format.
5859
59− WARNING: This key is contained insecurely in the global Nix store. Do NOT
60− use your regular SSH host private keys for this purpose or you'll expose
61− them to regular users!
60+ WARNING: Unless your bootloader supports initrd secrets, this key is
61+ contained insecurely in the global Nix store. Do NOT use your regular
62+ SSH host private keys for this purpose or you'll expose them to
63+ regular users!
6264 '';
6365 };
6466
@@ -68,9 +70,10 @@ in
6870 description = ''
6971 ECDSA SSH private key file in the Dropbear format.
7072
71− WARNING: This key is contained insecurely in the global Nix store. Do NOT
72− use your regular SSH host private keys for this purpose or you'll expose
73− them to regular users!
73+ WARNING: Unless your bootloader supports initrd secrets, this key is
74+ contained insecurely in the global Nix store. Do NOT use your regular
75+ SSH host private keys for this purpose or you'll expose them to
76+ regular users!
7477 '';
7578 };
7679
@@ -97,10 +100,6 @@ in
97100 boot.initrd.extraUtilsCommands = ''
98101 copy_bin_and_libs ${pkgs.dropbear}/bin/dropbear
99102 cp -pv ${pkgs.glibc.out}/lib/libnss_files.so.* $out/lib
100−
101− ${optionalString (cfg.hostRSAKey != null) "install -D ${cfg.hostRSAKey} $out/etc/dropbear/dropbear_rsa_host_key"}
102− ${optionalString (cfg.hostDSSKey != null) "install -D ${cfg.hostDSSKey} $out/etc/dropbear/dropbear_dss_host_key"}
103− ${optionalString (cfg.hostECDSAKey != null) "install -D ${cfg.hostECDSAKey} $out/etc/dropbear/dropbear_ecdsa_host_key"}
104103 '';
105104
106105 boot.initrd.extraUtilsCommandsTest = ''
@@ -116,9 +115,6 @@ in
116115 touch /var/log/lastlog
117116
118117 mkdir -p /etc/dropbear
119− ${optionalString (cfg.hostRSAKey != null) "ln -s $extraUtils/etc/dropbear/dropbear_rsa_host_key /etc/dropbear/dropbear_rsa_host_key"}
120− ${optionalString (cfg.hostDSSKey != null) "ln -s $extraUtils/etc/dropbear/dropbear_dss_host_key /etc/dropbear/dropbear_dss_host_key"}
121− ${optionalString (cfg.hostECDSAKey != null) "ln -s $extraUtils/etc/dropbear/dropbear_ecdsa_host_key /etc/dropbear/dropbear_ecdsa_host_key"}
122118
123119 mkdir -p /root/.ssh
124120 ${concatStrings (map (key: ''
@@ -128,6 +124,11 @@ in
128124 dropbear -s -j -k -E -m -p ${toString cfg.port}
129125 '';
130126
127+ boot.initrd.secrets =
128+ (optionalAttrs (cfg.hostRSAKey != null) { "/etc/dropbear/dropbear_rsa_host_key" = cfg.hostRSAKey; }) //
129+ (optionalAttrs (cfg.hostDSSKey != null) { "/etc/dropbear/dropbear_dss_host_key" = cfg.hostDSSKey; }) //
130+ (optionalAttrs (cfg.hostECDSAKey != null) { "/etc/dropbear/dropbear_ecdsa_host_key" = cfg.hostECDSAKey; });
131+
131132 };
132133
133134}
nixos/modules/system/boot/kernel.nix+1−1
@@ -176,7 +176,7 @@ in
176176
177177 boot.initrd.availableKernelModules =
178178 [ # Note: most of these (especially the SATA/PATA modules)
179− # shouldn't be included by default since nixos-hardware-scan
179+ # shouldn't be included by default since nixos-generate-config
180180 # detects them, but I'm keeping them for now for backwards
181181 # compatibility.
182182
nixos/modules/system/boot/loader/grub/grub.nix+26−4
@@ -53,12 +53,14 @@ let
5353 inherit (args) devices;
5454 inherit (efi) canTouchEfiVariables;
5555 inherit (cfg)
56− version extraConfig extraPerEntryConfig extraEntries forceInstall
57− extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels
56+ version extraConfig extraPerEntryConfig extraEntries forceInstall useOSProber
57+ extraEntriesBeforeNixOS extraPrepareConfig extraInitrd configurationLimit copyKernels
5858 default fsIdentifier efiSupport efiInstallAsRemovable gfxmodeEfi gfxmodeBios;
5959 path = (makeBinPath ([
6060 pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils pkgs.btrfs-progs
61− pkgs.utillinux ] ++ (if cfg.efiSupport && (cfg.version == 2) then [pkgs.efibootmgr ] else [])
61+ pkgs.utillinux ]
62+ ++ (optional (cfg.efiSupport && (cfg.version == 2)) pkgs.efibootmgr)
63+ ++ (optionals cfg.useOSProber [pkgs.busybox pkgs.os-prober])
6264 )) + ":" + (makeSearchPathOutput "bin" "sbin" [
6365 pkgs.mdadm pkgs.utillinux
6466 ]);
@@ -265,6 +267,27 @@ in
265267 '';
266268 };
267269
270+ extraInitrd = mkOption {
271+ type = types.nullOr types.path;
272+ default = null;
273+ example = "/boot/extra_initrafms.gz";
274+ description = ''
275+ The path to a second initramfs to be supplied to the kernel.
276+ This ramfs will not be copied to the store, so that it can
277+ contain secrets such as LUKS keyfiles or ssh keys.
278+ This implies that rolling back to a previous configuration
279+ won't rollback the state of this file.
280+ '';
281+ };
282+
283+ useOSProber = mkOption {
284+ default = false;
285+ type = types.bool;
286+ description = ''
287+ If set to true, append entries for other OSs detected by os-prober.
288+ '';
289+ };
290+
268291 splashImage = mkOption {
269292 type = types.nullOr types.path;
270293 example = literalExample "./my-background.png";
@@ -358,7 +381,6 @@ in
358381
359382 efiInstallAsRemovable = mkOption {
360383 default = false;
361− example = true;
362384 type = types.bool;
363385 description = ''
364386 Whether to invoke <literal>grub-install</literal> with
nixos/modules/system/boot/loader/grub/install-grub.pl+53−32
@@ -49,6 +49,7 @@ my $extraPrepareConfig = get("extraPrepareConfig");
4949my $extraPerEntryConfig = get("extraPerEntryConfig");
5050my $extraEntries = get("extraEntries");
5151my $extraEntriesBeforeNixOS = get("extraEntriesBeforeNixOS") eq "true";
52+my $extraInitrd = get("extraInitrd");
5253my $splashImage = get("splashImage");
5354my $configurationLimit = int(get("configurationLimit"));
5455my $copyKernels = get("copyKernels") eq "true";
@@ -226,6 +227,13 @@ my $grubStore;
226227if ($copyKernels == 0) {
227228 $grubStore = GrubFs($storePath);
228229}
230+my $extraInitrdPath;
231+if ($extraInitrd) {
232+ if (! -f $extraInitrd) {
233+ print STDERR "Warning: the specified extraInitrd " . $extraInitrd . " doesn't exist. Your system won't boot without it.\n";
234+ }
235+ $extraInitrdPath = GrubFs($extraInitrd);
236+}
229237
230238# Generate the header.
231239my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";
@@ -256,8 +264,6 @@ else {
256264 # ‘grub-reboot’ sets a one-time saved entry, which we process here and
257265 # then delete.
258266 if [ \"\${next_entry}\" ]; then
259− # FIXME: KDM expects the next line to be present.
260− set default=\"\${saved_entry}\"
261267 set default=\"\${next_entry}\"
262268 set next_entry=
263269 save_env next_entry
@@ -338,6 +344,9 @@ sub addEntry {
338344
339345 my $kernel = copyToKernelsDir(Cwd::abs_path("$path/kernel"));
340346 my $initrd = copyToKernelsDir(Cwd::abs_path("$path/initrd"));
347+ if ($extraInitrd) {
348+ $initrd .= " " .$extraInitrdPath->path;
349+ }
341350 my $xen = -e "$path/xen.gz" ? copyToKernelsDir(Cwd::abs_path("$path/xen.gz")) : undef;
342351
343352 # FIXME: $confName
@@ -360,6 +369,9 @@ sub addEntry {
360369 if ($copyKernels == 0) {
361370 $conf .= $grubStore->search . "\n";
362371 }
372+ if ($extraInitrd) {
373+ $conf .= $extraInitrdPath->search . "\n";
374+ }
363375 $conf .= " $extraPerEntryConfig\n" if $extraPerEntryConfig;
364376 $conf .= " multiboot $xen $xenParams\n" if $xen;
365377 $conf .= " " . ($xen ? "module" : "linux") . " $kernel $kernelParams\n";
@@ -426,10 +438,48 @@ if ($extraPrepareConfig ne "") {
426438 system((get("shell"), "-c", $extraPrepareConfig));
427439}
428440
429−# Atomically update the GRUB config.
441+# write the GRUB config.
430442my $confFile = $grubVersion == 1 ? "$bootPath/grub/menu.lst" : "$bootPath/grub/grub.cfg";
431443my $tmpFile = $confFile . ".tmp";
432444writeFile($tmpFile, $conf);
445+
446+
447+# check whether to install GRUB EFI or not
448+sub getEfiTarget {
449+ if ($grubVersion == 1) {
450+ return "no"
451+ } elsif (($grub ne "") && ($grubEfi ne "")) {
452+ # EFI can only be installed when target is set;
453+ # A target is also required then for non-EFI grub
454+ if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }
455+ else { return "both" }
456+ } elsif (($grub ne "") && ($grubEfi eq "")) {
457+ # TODO: It would be safer to disallow non-EFI grub installation if no taget is given.
458+ # If no target is given, then grub auto-detects the target which can lead to errors.
459+ # E.g. it seems as if grub would auto-detect a EFI target based on the availability
460+ # of a EFI partition.
461+ # However, it seems as auto-detection is currently relied on for non-x86_64 and non-i386
462+ # architectures in NixOS. That would have to be fixed in the nixos modules first.
463+ return "no"
464+ } elsif (($grub eq "") && ($grubEfi ne "")) {
465+ # EFI can only be installed when target is set;
466+ if ($grubTargetEfi eq "") { die }
467+ else {return "only" }
468+ } else {
469+ # prevent an installation if neither grub nor grubEfi is given
470+ return "neither"
471+ }
472+}
473+
474+my $efiTarget = getEfiTarget();
475+
476+# Append entries detected by os-prober
477+if (get("useOSProber") eq "true") {
478+ my $targetpackage = ($efiTarget eq "no") ? $grub : $grubEfi;
479+ system(get("shell"), "-c", "pkgdatadir=$targetpackage/share/grub $targetpackage/etc/grub.d/30_os-prober >> $tmpFile");
480+}
481+
482+# Atomically switch to the new config
433483rename $tmpFile, $confFile or die "cannot rename $tmpFile to $confFile\n";
434484
435485
@@ -479,36 +529,7 @@ sub getDeviceTargets {
479529 }
480530 return @devices;
481531}
482−
483−# check whether to install GRUB EFI or not
484−sub getEfiTarget {
485− if ($grubVersion == 1) {
486− return "no"
487− } elsif (($grub ne "") && ($grubEfi ne "")) {
488− # EFI can only be installed when target is set;
489− # A target is also required then for non-EFI grub
490− if (($grubTarget eq "") || ($grubTargetEfi eq "")) { die }
491− else { return "both" }
492− } elsif (($grub ne "") && ($grubEfi eq "")) {
493− # TODO: It would be safer to disallow non-EFI grub installation if no taget is given.
494− # If no target is given, then grub auto-detects the target which can lead to errors.
495− # E.g. it seems as if grub would auto-detect a EFI target based on the availability
496− # of a EFI partition.
497− # However, it seems as auto-detection is currently relied on for non-x86_64 and non-i386
498− # architectures in NixOS. That would have to be fixed in the nixos modules first.
499− return "no"
500− } elsif (($grub eq "") && ($grubEfi ne "")) {
501− # EFI can only be installed when target is set;
502− if ($grubTargetEfi eq "") { die }
503− else {return "only" }
504− } else {
505− # prevent an installation if neither grub nor grubEfi is given
506− return "neither"
507− }
508−}
509−
510532my @deviceTargets = getDeviceTargets();
511−my $efiTarget = getEfiTarget();
512533my $prevGrubState = readGrubState();
513534my @prevDeviceTargets = split/,/, $prevGrubState->devices;
514535
nixos/modules/system/boot/loader/raspberrypi/builder.sh+9−3
@@ -61,12 +61,13 @@ addEntry() {
6161
6262 local kernel=$(readlink -f $path/kernel)
6363 local initrd=$(readlink -f $path/initrd)
64+ local dtb_path=$(readlink -f $path/kernel-modules/dtbs)
6465
6566 if test -n "@copyKernels@"; then
6667 copyToKernelsDir $kernel; kernel=$result
6768 copyToKernelsDir $initrd; initrd=$result
6869 fi
69−
70+
7071 echo $(readlink -f $path) > $outdir/$generation-system
7172 echo $(readlink -f $path/init) > $outdir/$generation-init
7273 cp $path/kernel-params $outdir/$generation-cmdline.txt
@@ -80,6 +81,11 @@ addEntry() {
8081 copyForced $kernel /boot/kernel7.img
8182 fi
8283 copyForced $initrd /boot/initrd
84+ for dtb in $dtb_path/bcm*.dtb; do
85+ dst="/boot/$(basename $dtb)"
86+ copyForced $dtb "$dst"
87+ filesCopied[$dst]=1
88+ done
8389 cp "$(readlink -f "$path/init")" /boot/nixos-init
8490 echo "`cat $path/kernel-params` init=$path/init" >/boot/cmdline.txt
8591
@@ -108,8 +114,8 @@ copyForced $fwdir/start_cd.elf /boot/start_cd.elf
108114copyForced $fwdir/start_db.elf /boot/start_db.elf
109115copyForced $fwdir/start_x.elf /boot/start_x.elf
110116
111−# Remove obsolete files from /boot/old.
112−for fn in /boot/old/*linux* /boot/old/*initrd*; do
117+# Remove obsolete files from /boot and /boot/old.
118+for fn in /boot/old/*linux* /boot/old/*initrd-initrd* /boot/bcm*.dtb; do
113119 if ! test "${filesCopied[$fn]}" = 1; then
114120 rm -vf -- "$fn"
115121 fi
nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix+1−1
@@ -33,7 +33,7 @@ in
3333
3434 boot.loader.raspberryPi.version = mkOption {
3535 default = 2;
36− type = types.enum [ 1 2 ];
36+ type = types.enum [ 1 2 3 ];
3737 description = ''
3838 '';
3939 };
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py+25−8
@@ -32,8 +32,11 @@ def write_loader_conf(generation):
3232 f.write("editor 0");
3333 os.rename("@efiSysMountPoint@/loader/loader.conf.tmp", "@efiSysMountPoint@/loader/loader.conf")
3434
35+def profile_path(generation, name):
36+ return os.readlink("%s/%s" % (system_dir(generation), name))
37+
3538def copy_from_profile(generation, name, dry_run=False):
36− store_file_path = os.readlink("%s/%s" % (system_dir(generation), name))
39+ store_file_path = profile_path(generation, name)
3740 suffix = os.path.basename(store_file_path)
3841 store_dir = os.path.basename(os.path.dirname(store_file_path))
3942 efi_file_path = "/efi/nixos/%s-%s.efi" % (store_dir, suffix)
@@ -44,6 +47,11 @@ def copy_from_profile(generation, name, dry_run=False):
4447def write_entry(generation, machine_id):
4548 kernel = copy_from_profile(generation, "kernel")
4649 initrd = copy_from_profile(generation, "initrd")
50+ try:
51+ append_initrd_secrets = profile_path(generation, "append-initrd-secrets")
52+ subprocess.check_call([append_initrd_secrets, "@efiSysMountPoint@%s" % (initrd)])
53+ except FileNotFoundError:
54+ pass
4755 entry_file = "@efiSysMountPoint@/loader/entries/nixos-generation-%d.conf" % (generation)
4856 generation_dir = os.readlink(system_dir(generation))
4957 tmp_path = "%s.tmp" % (entry_file)
@@ -101,11 +109,27 @@ def main():
101109 parser.add_argument('default_config', metavar='DEFAULT-CONFIG', help='The default NixOS config to boot')
102110 args = parser.parse_args()
103111
112+ try:
113+ with open("/etc/machine-id") as machine_file:
114+ machine_id = machine_file.readlines()[0]
115+ except IOError as e:
116+ if e.errno != errno.ENOENT:
117+ raise
118+ # Since systemd version 232 a machine ID is required and it might not
119+ # be there on newly installed systems, so let's generate one so that
120+ # bootctl can find it and we can also pass it to write_entry() later.
121+ cmd = ["@systemd@/bin/systemd-machine-id-setup", "--print"]
122+ machine_id = subprocess.check_output(cmd).rstrip()
123+
104124 if os.getenv("NIXOS_INSTALL_GRUB") == "1":
105125 warnings.warn("NIXOS_INSTALL_GRUB env var deprecated, use NIXOS_INSTALL_BOOTLOADER", DeprecationWarning)
106126 os.environ["NIXOS_INSTALL_BOOTLOADER"] = "1"
107127
108128 if os.getenv("NIXOS_INSTALL_BOOTLOADER") == "1":
129+ # bootctl uses fopen() with modes "wxe" and fails if the file exists.
130+ if os.path.exists("@efiSysMountPoint@/loader/loader.conf"):
131+ os.unlink("@efiSysMountPoint@/loader/loader.conf")
132+
109133 if "@canTouchEfiVariables@" == "1":
110134 subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "install"])
111135 else:
@@ -113,13 +137,6 @@ def main():
113137
114138 mkdir_p("@efiSysMountPoint@/efi/nixos")
115139 mkdir_p("@efiSysMountPoint@/loader/entries")
116− try:
117− with open("/etc/machine-id") as machine_file:
118− machine_id = machine_file.readlines()[0]
119− except IOError as e:
120− if e.errno != errno.ENOENT:
121− raise
122− machine_id = None
123140
124141 gens = get_generations("system")
125142 remove_old_entries(gens)
nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nix+2
@@ -65,6 +65,8 @@ in {
6565
6666 boot.loader.grub.enable = mkDefault false;
6767
68+ boot.loader.supportsInitrdSecrets = true;
69+
6870 system = {
6971 build.installBootLoader = gummibootBuilder;
7072
nixos/modules/system/boot/luksroot.nix+32−23
@@ -6,29 +6,38 @@ let
66 luks = config.boot.initrd.luks;
77
88 openCommand = name': { name, device, header, keyFile, keyFileSize, allowDiscards, yubikey, ... }: assert name' == name; ''
9− # Wait for luksRoot to appear, e.g. if on a usb drive.
10− # XXX: copied and adapted from stage-1-init.sh - should be
11− # available as a function.
12− if ! test -e ${device}; then
13− echo -n "waiting 10 seconds for device ${device} to appear..."
14− for try in $(seq 10); do
15− sleep 1
16− if test -e ${device}; then break; fi
17− echo -n .
18− done
19− echo "ok"
20− fi
9+
10+ # Wait for a target (e.g. device, keyFile, header, ...) to appear.
11+ wait_target() {
12+ local name="$1"
13+ local target="$2"
14+
15+ if [ ! -e $target ]; then
16+ echo -n "Waiting 10 seconds for $name $target to appear"
17+ local success=false;
18+ for try in $(seq 10); do
19+ echo -n "."
20+ sleep 1
21+ if [ -e $target ]; then success=true break; fi
22+ done
23+ if [ $success = true ]; then
24+ echo " - success";
25+ else
26+ echo " - failure";
27+ fi
28+ fi
29+ }
30+
31+ # Wait for luksRoot (and optionally keyFile and/or header) to appear, e.g.
32+ # if on a USB drive.
33+ wait_target "device" ${device}
2134
2235 ${optionalString (keyFile != null) ''
23− if ! test -e ${keyFile}; then
24− echo -n "waiting 10 seconds for key file ${keyFile} to appear..."
25− for try in $(seq 10); do
26− sleep 1
27− if test -e ${keyFile}; then break; fi
28− echo -n .
29− done
30− echo "ok"
31− fi
36+ wait_target "key file" ${keyFile}
37+ ''}
38+
39+ ${optionalString (header != null) ''
40+ wait_target "header" ${header}
3241 ''}
3342
3443 open_normally() {
@@ -434,8 +443,8 @@ in
434443 chmod +x $out/bin/cryptsetup-askpass
435444
436445 ${optionalString luks.yubikeySupport ''
437− copy_bin_and_libs ${pkgs.ykpers}/bin/ykchalresp
438− copy_bin_and_libs ${pkgs.ykpers}/bin/ykinfo
446+ copy_bin_and_libs ${pkgs.yubikey-personalization}/bin/ykchalresp
447+ copy_bin_and_libs ${pkgs.yubikey-personalization}/bin/ykinfo
439448 copy_bin_and_libs ${pkgs.openssl.bin}/bin/openssl
440449
441450 cc -O3 -I${pkgs.openssl.dev}/include -L${pkgs.openssl.out}/lib ${./pbkdf2-sha512.c} -o pbkdf2-sha512 -lcrypto
nixos/modules/system/boot/networkd.nix+1−1
@@ -79,7 +79,7 @@ let
7979 checkBond = checkUnitConfig "Bond" [
8080 (assertOnlyFields [
8181 "Mode" "TransmitHashPolicy" "LACPTransmitRate" "MIIMonitorSec"
82− "UpDelaySec" "DownDelaySec"
82+ "UpDelaySec" "DownDelaySec" "GratuitousARP"
8383 ])
8484 (assertValueOneOf "Mode" [
8585 "balance-rr" "active-backup" "balance-xor"
nixos/modules/system/boot/stage-1-init.sh+8
@@ -8,6 +8,14 @@ export LD_LIBRARY_PATH=@extraUtils@/lib
88export PATH=@extraUtils@/bin
99ln -s @extraUtils@/bin /bin
1010
11+# Copy the secrets to their needed location
12+if [ -d "@extraUtils@/secrets" ]; then
13+ for secret in $(cd "@extraUtils@/secrets"; find . -type f); do
14+ mkdir -p $(dirname "/$secret")
15+ ln -s "@extraUtils@/secrets/$secret" "$secret"
16+ done
17+fi
18+
1119# Stop LVM complaining about fd3
1220export LVM_SUPPRESS_FD_WARNINGS=true
1321
nixos/modules/system/boot/stage-1.nix+90−3
@@ -82,6 +82,17 @@ let
8282 copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs
8383 ''}
8484
85+ # Copy secrets if needed.
86+ ${optionalString (!config.boot.loader.supportsInitrdSecrets)
87+ (concatStringsSep "\n" (mapAttrsToList (dest: source:
88+ let source' = if source == null then dest else source; in
89+ ''
90+ mkdir -p $(dirname "$out/secrets/${dest}")
91+ cp -a ${source'} "$out/secrets/${dest}"
92+ ''
93+ ) config.boot.initrd.secrets))
94+ }
95+
8596 ${config.boot.initrd.extraUtilsCommands}
8697
8798 # Copy ld manually since it isn't detected correctly
@@ -242,6 +253,52 @@ let
242253 ];
243254 };
244255
256+ # Script to add secret files to the initrd at bootloader update time
257+ initialRamdiskSecretAppender =
258+ pkgs.writeScriptBin "append-initrd-secrets"
259+ ''
260+ #!${pkgs.bash}/bin/bash -e
261+ function usage {
262+ echo "USAGE: $0 INITRD_FILE" >&2
263+ echo "Appends this configuration's secrets to INITRD_FILE" >&2
264+ }
265+
266+ if [ $# -ne 1 ]; then
267+ usage
268+ exit 1
269+ fi
270+
271+ if [ "$1"x = "--helpx" ]; then
272+ usage
273+ exit 0
274+ fi
275+
276+ ${lib.optionalString (config.boot.initrd.secrets == {})
277+ "exit 0"}
278+
279+ export PATH=${pkgs.coreutils}/bin:${pkgs.cpio}/bin:${pkgs.gzip}/bin:${pkgs.findutils}/bin
280+
281+ function cleanup {
282+ if [ -n "$tmp" -a -d "$tmp" ]; then
283+ rm -fR "$tmp"
284+ fi
285+ }
286+ trap cleanup EXIT
287+
288+ tmp=$(mktemp -d initrd-secrets.XXXXXXXXXX)
289+
290+ ${lib.concatStringsSep "\n" (mapAttrsToList (dest: source:
291+ let source' = if source == null then dest else toString source; in
292+ ''
293+ mkdir -p $(dirname "$tmp/${dest}")
294+ cp -a ${source'} "$tmp/${dest}"
295+ ''
296+ ) config.boot.initrd.secrets)
297+ }
298+
299+ (cd "$tmp" && find . | cpio -H newc -o) | gzip >>"$1"
300+ '';
301+
245302in
246303
247304{
@@ -370,6 +427,25 @@ in
370427 example = "xz";
371428 };
372429
430+ boot.initrd.secrets = mkOption
431+ { internal = true;
432+ default = {};
433+ type = types.attrsOf (types.nullOr types.path);
434+ description =
435+ ''
436+ Secrets to append to the initrd. The attribute name is the
437+ path the secret should have inside the initrd, the value
438+ is the path it should be copied from (or null for the same
439+ path inside and out).
440+ '';
441+ example = literalExample
442+ ''
443+ { "/etc/dropbear/dropbear_rsa_host_key" =
444+ ./secret-dropbear-key;
445+ }
446+ '';
447+ };
448+
373449 boot.initrd.supportedFilesystems = mkOption {
374450 default = [ ];
375451 example = [ "btrfs" ];
@@ -377,6 +453,18 @@ in
377453 description = "Names of supported filesystem types in the initial ramdisk.";
378454 };
379455
456+ boot.loader.supportsInitrdSecrets = mkOption
457+ { internal = true;
458+ default = false;
459+ type = types.bool;
460+ description =
461+ ''
462+ Whether the bootloader setup runs append-initrd-secrets.
463+ If not, any needed secrets must be copied into the initrd
464+ and thus added to the store.
465+ '';
466+ };
467+
380468 fileSystems = mkOption {
381469 options.neededForBoot = mkOption {
382470 default = false;
@@ -404,9 +492,8 @@ in
404492 }
405493 ];
406494
407− system.build.bootStage1 = bootStage1;
408− system.build.initialRamdisk = initialRamdisk;
409− system.build.extraUtils = extraUtils;
495+ system.build =
496+ { inherit bootStage1 initialRamdisk initialRamdiskSecretAppender extraUtils; };
410497
411498 system.requiredKernelConfig = with config.lib.kernelConfig; [
412499 (isYes "TMPFS")
nixos/modules/system/boot/systemd-unit-options.nix+3−3
@@ -328,7 +328,7 @@ in rec {
328328 Automatically start this unit at the given date/time, which
329329 must be in the format described in
330330 <citerefentry><refentrytitle>systemd.time</refentrytitle>
331− <manvolnum>5</manvolnum></citerefentry>. This is equivalent
331+ <manvolnum>7</manvolnum></citerefentry>. This is equivalent
332332 to adding a corresponding timer unit with
333333 <option>OnCalendar</option> set to the value given here.
334334 '';
@@ -375,9 +375,9 @@ in rec {
375375 Each attribute in this set specifies an option in the
376376 <literal>[Timer]</literal> section of the unit. See
377377 <citerefentry><refentrytitle>systemd.timer</refentrytitle>
378− <manvolnum>5</manvolnum></citerefentry> and
378+ <manvolnum>7</manvolnum></citerefentry> and
379379 <citerefentry><refentrytitle>systemd.time</refentrytitle>
380− <manvolnum>5</manvolnum></citerefentry> for details.
380+ <manvolnum>7</manvolnum></citerefentry> for details.
381381 '';
382382 };
383383
nixos/modules/system/boot/systemd.nix+4−2
@@ -329,7 +329,7 @@ let
329329 ${let env = cfg.globalEnvironment // def.environment;
330330 in concatMapStrings (n:
331331 let s = optionalString (env."${n}" != null)
332− "Environment=\"${n}=${env.${n}}\"\n";
332+ "Environment=${builtins.toJSON "${n}=${env.${n}}"}\n";
333333 in if stringLength s >= 2048 then throw "The value of the environment variable ‘${n}’ in systemd service ‘${name}.service’ is too long." else s) (attrNames env)}
334334 ${if def.reloadIfChanged then ''
335335 X-ReloadIfChanged=true
@@ -829,7 +829,8 @@ in
829829
830830 # Some overrides to upstream units.
831831 systemd.services."systemd-backlight@".restartIfChanged = false;
832− systemd.services."systemd-rfkill@".restartIfChanged = false;
832+ systemd.services."systemd-fsck@".restartIfChanged = false;
833+ systemd.services."systemd-fsck@".path = [ config.system.path ];
833834 systemd.services."user@".restartIfChanged = false;
834835 systemd.services.systemd-journal-flush.restartIfChanged = false;
835836 systemd.services.systemd-random-seed.restartIfChanged = false;
@@ -842,6 +843,7 @@ in
842843 systemd.services.systemd-journald.stopIfChanged = false;
843844 systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
844845 systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
846+ systemd.targets.network-online.wantedBy = [ "multi-user.target" ];
845847 systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];
846848
847849 # Don't bother with certain units in containers.
nixos/modules/tasks/filesystems.nix+12−7
@@ -5,6 +5,11 @@ with utils;
55
66let
77
8+ addCheckDesc = desc: elemType: check: types.addCheck elemType check
9+ // { description = "${elemType.description} (with check: ${desc})"; };
10+ nonEmptyStr = addCheckDesc "non-empty" types.str
11+ (x: x != "" && ! (all (c: c == " " || c == "\t") (stringToCharacters x)));
12+
813 fileSystems' = toposort fsBefore (attrValues config.fileSystems);
914
1015 fileSystems = if fileSystems' ? "result"
@@ -26,21 +31,21 @@ let
2631
2732 mountPoint = mkOption {
2833 example = "/mnt/usb";
29− type = types.str;
34+ type = nonEmptyStr;
3035 description = "Location of the mounted the file system.";
3136 };
3237
3338 device = mkOption {
3439 default = null;
3540 example = "/dev/sda";
36− type = types.nullOr types.str;
41+ type = types.nullOr nonEmptyStr;
3742 description = "Location of the device.";
3843 };
3944
4045 fsType = mkOption {
4146 default = "auto";
4247 example = "ext3";
43− type = types.str;
48+ type = nonEmptyStr;
4449 description = "Type of the file system.";
4550 };
4651
@@ -48,7 +53,7 @@ let
4853 default = [ "defaults" ];
4954 example = [ "data=journal" ];
5055 description = "Options used to mount the file system.";
51− type = types.listOf types.str;
56+ type = types.listOf nonEmptyStr;
5257 };
5358
5459 };
@@ -67,7 +72,7 @@ let
6772 label = mkOption {
6873 default = null;
6974 example = "root-partition";
70− type = types.nullOr types.str;
75+ type = types.nullOr nonEmptyStr;
7176 description = "Label of the device (if any).";
7277 };
7378
@@ -216,7 +221,7 @@ in
216221
217222 environment.etc.fstab.text =
218223 let
219− fsToSkipCheck = [ "none" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" ];
224+ fsToSkipCheck = [ "none" "bindfs" "btrfs" "zfs" "tmpfs" "nfs" "vboxsf" "glusterfs" ];
220225 skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck;
221226 in ''
222227 # This is a generated file. Do not edit!
@@ -286,7 +291,7 @@ in
286291 # Sync mount options with systemd's src/core/mount-setup.c: mount_table.
287292 boot.specialFileSystems = {
288293 "/proc" = { fsType = "proc"; options = [ "nosuid" "noexec" "nodev" ]; };
289− "/run" = { fsType = "tmpfs"; options = [ "nodev" "strictatime" "mode=755" "size=${config.boot.runSize}" ]; };
294+ "/run" = { fsType = "tmpfs"; options = [ "nosuid" "nodev" "strictatime" "mode=755" "size=${config.boot.runSize}" ]; };
290295 "/dev" = { fsType = "devtmpfs"; options = [ "nosuid" "strictatime" "mode=755" "size=${config.boot.devSize}" ]; };
291296 "/dev/shm" = { fsType = "tmpfs"; options = [ "nosuid" "nodev" "strictatime" "mode=1777" "size=${config.boot.devShmSize}" ]; };
292297 "/dev/pts" = { fsType = "devpts"; options = [ "nosuid" "noexec" "mode=620" "gid=${toString config.ids.gids.tty}" ]; };
nixos/modules/tasks/filesystems/f2fs.nix+1−1
@@ -10,7 +10,7 @@ in
1010
1111 system.fsPackages = [ pkgs.f2fs-tools ];
1212
13− boot.initrd.availableKernelModules = mkIf inInitrd [ "f2fs" ];
13+ boot.initrd.availableKernelModules = mkIf inInitrd [ "f2fs" "crc32" ];
1414
1515 boot.initrd.extraUtilsCommands = mkIf inInitrd ''
1616 copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs
nixos/modules/tasks/filesystems/zfs.nix+61−4
@@ -13,12 +13,14 @@ let
1313 cfgZfs = config.boot.zfs;
1414 cfgSnapshots = config.services.zfs.autoSnapshot;
1515 cfgSnapFlags = cfgSnapshots.flags;
16+ cfgScrub = config.services.zfs.autoScrub;
1617
1718 inInitrd = any (fs: fs == "zfs") config.boot.initrd.supportedFilesystems;
1819 inSystem = any (fs: fs == "zfs") config.boot.supportedFilesystems;
1920
2021 enableAutoSnapshots = cfgSnapshots.enable;
21− enableZfs = inInitrd || inSystem || enableAutoSnapshots;
22+ enableAutoScrub = cfgScrub.enable;
23+ enableZfs = inInitrd || inSystem || enableAutoSnapshots || enableAutoScrub;
2224
2325 kernel = config.boot.kernelPackages;
2426
@@ -107,7 +109,6 @@ in
107109 forceImportRoot = mkOption {
108110 type = types.bool;
109111 default = true;
110− example = false;
111112 description = ''
112113 Forcibly import the ZFS root pool(s) during early boot.
113114
@@ -126,7 +127,6 @@ in
126127 forceImportAll = mkOption {
127128 type = types.bool;
128129 default = true;
129− example = false;
130130 description = ''
131131 Forcibly import all ZFS pool(s).
132132
@@ -217,6 +217,37 @@ in
217217 '';
218218 };
219219 };
220+
221+ services.zfs.autoScrub = {
222+ enable = mkOption {
223+ default = false;
224+ type = types.bool;
225+ description = ''
226+ Enables periodic scrubbing of ZFS pools.
227+ '';
228+ };
229+
230+ interval = mkOption {
231+ default = "Sun, 02:00";
232+ type = types.str;
233+ example = "daily";
234+ description = ''
235+ Systemd calendar expression when to scrub ZFS pools. See
236+ <citerefentry><refentrytitle>systemd.time</refentrytitle>
237+ <manvolnum>7</manvolnum></citerefentry>.
238+ '';
239+ };
240+
241+ pools = mkOption {
242+ default = [];
243+ type = types.listOf types.str;
244+ example = [ "tank" ];
245+ description = ''
246+ List of ZFS pools to periodically scrub. If empty, all pools
247+ will be scrubbed.
248+ '';
249+ };
250+ };
220251 };
221252
222253 ###### implementation
@@ -282,7 +313,7 @@ in
282313 zfsSupport = true;
283314 };
284315
285− environment.etc."zfs/zed.d".source = "${packages.zfsUser}/etc/zfs/zed.d/*";
316+ environment.etc."zfs/zed.d".source = "${packages.zfsUser}/etc/zfs/zed.d/";
286317
287318 system.fsPackages = [ packages.zfsUser ]; # XXX: needed? zfs doesn't have (need) a fsck
288319 environment.systemPackages = [ packages.zfsUser ]
@@ -391,5 +422,31 @@ in
391422 };
392423 }) snapshotNames);
393424 })
425+
426+ (mkIf enableAutoScrub {
427+ systemd.services.zfs-scrub = {
428+ description = "ZFS pools scrubbing";
429+ after = [ "zfs-import.target" ];
430+ serviceConfig = {
431+ Type = "oneshot";
432+ };
433+ script = ''
434+ ${packages.zfsUser}/bin/zpool scrub ${
435+ if cfgScrub.pools != [] then
436+ (concatStringsSep " " cfgScrub.pools)
437+ else
438+ "$(${packages.zfsUser}/bin/zpool list -H -o name)"
439+ }
440+ '';
441+ };
442+
443+ systemd.timers.zfs-scrub = {
444+ wantedBy = [ "timers.target" ];
445+ timerConfig = {
446+ OnCalendar = cfgScrub.interval;
447+ Persistent = "yes";
448+ };
449+ };
450+ })
394451 ];
395452}
nixos/modules/tasks/kbd.nix+13−5
@@ -71,7 +71,7 @@ in
7171 ###### implementation
7272
7373 config = mkMerge [
74− (mkIf (!setVconsole || (setVconsole && config.boot.earlyVconsoleSetup)) {
74+ (mkIf (!setVconsole) {
7575 systemd.services."systemd-vconsole-setup".enable = false;
7676 })
7777
@@ -97,17 +97,25 @@ in
9797 printf "${makeColorCS n color}" >> /dev/console
9898 '') config.i18n.consoleColors}
9999 '';
100− }
101100
102− (mkIf (!config.boot.earlyVconsoleSetup) {
101+ /* XXX: systemd-vconsole-setup needs a "main" terminal. By default
102+ * /dev/tty0 is used which wouldn't work when the service is restarted
103+ * from X11. We set this to /dev/tty1; not ideal because it may also be
104+ * owned by X11 or something else.
105+ *
106+ * See #22470.
107+ */
103108 systemd.services."systemd-vconsole-setup" =
104109 { wantedBy = [ "sysinit.target" ];
105110 before = [ "display-manager.service" ];
106111 after = [ "systemd-udev-settle.service" ];
107112 restartTriggers = [ vconsoleConf kbdEnv ];
108− restartIfChanged = false; # fails when tty is inactive
113+ serviceConfig.ExecStart = [
114+ ""
115+ "${pkgs.systemd}/lib/systemd/systemd-vconsole-setup /dev/tty1"
116+ ];
109117 };
110− })
118+ }
111119
112120 (mkIf config.boot.earlyVconsoleSetup {
113121 boot.initrd.extraUtilsCommands = ''
nixos/modules/tasks/network-interfaces-scripted.nix+97−42
@@ -37,31 +37,41 @@ let
3737 ip link del "${i}" 2>/dev/null || true
3838 '';
3939
40−in
40+ # warn that these attributes are deprecated (2017-2-2)
41+ # Should be removed in the release after next
42+ bondDeprecation = rec {
43+ deprecated = [ "lacp_rate" "miimon" "mode" "xmit_hash_policy" ];
44+ filterDeprecated = bond: (filterAttrs (attrName: attr:
45+ elem attrName deprecated && attr != null) bond);
46+ };
4147
42−{
48+ bondWarnings =
49+ let oneBondWarnings = bondName: bond:
50+ mapAttrsToList (bondText bondName) (bondDeprecation.filterDeprecated bond);
51+ bondText = bondName: optName: _:
52+ "${bondName}.${optName} is deprecated, use ${bondName}.driverOptions";
53+ in {
54+ warnings = flatten (mapAttrsToList oneBondWarnings cfg.bonds);
55+ };
4356
44− config = mkIf (!cfg.useNetworkd) {
57+ normalConfig = {
4558
4659 systemd.services =
4760 let
4861
4962 deviceDependency = dev:
50− if (config.boot.isContainer == false)
51− then
52− # Trust udev when not in the container
53− optional (dev != null) (subsystemDevice dev)
54− else
55− # When in the container, check whether the interface is built from other definitions
56− if (hasAttr dev cfg.bridges) ||
57− (hasAttr dev cfg.bonds) ||
58− (hasAttr dev cfg.macvlans) ||
59− (hasAttr dev cfg.sits) ||
60− (hasAttr dev cfg.vlans) ||
61− (hasAttr dev cfg.vswitches) ||
62− (hasAttr dev cfg.wlanInterfaces)
63− then [ "${dev}-netdev.service" ]
64− else [];
63+ # Use systemd service if we manage device creation, else
64+ # trust udev when not in a container
65+ if (hasAttr dev (filterAttrs (k: v: v.virtual) cfg.interfaces)) ||
66+ (hasAttr dev cfg.bridges) ||
67+ (hasAttr dev cfg.bonds) ||
68+ (hasAttr dev cfg.macvlans) ||
69+ (hasAttr dev cfg.sits) ||
70+ (hasAttr dev cfg.vlans) ||
71+ (hasAttr dev cfg.vswitches) ||
72+ (hasAttr dev cfg.wlanInterfaces)
73+ then [ "${dev}-netdev.service" ]
74+ else optional (dev != null && !config.boot.isContainer) (subsystemDevice dev);
6575
6676 networkLocalCommands = {
6777 after = [ "network-setup.service" ];
@@ -104,15 +114,19 @@ in
104114 # Set the default gateway.
105115 ${optionalString (cfg.defaultGateway != null && cfg.defaultGateway.address != "") ''
106116 # FIXME: get rid of "|| true" (necessary to make it idempotent).
107− ip route add default via "${cfg.defaultGateway.address}" ${
117+ ip route add default ${optionalString (cfg.defaultGateway.metric != null)
118+ "metric ${toString cfg.defaultGateway.metric}"
119+ } via "${cfg.defaultGateway.address}" ${
108120 optionalString (cfg.defaultGatewayWindowSize != null)
109121 "window ${toString cfg.defaultGatewayWindowSize}"} ${
110122 optionalString (cfg.defaultGateway.interface != null)
111− "dev ${cfg.defaultGateway.interface}"}|| true
123+ "dev ${cfg.defaultGateway.interface}"} || true
112124 ''}
113125 ${optionalString (cfg.defaultGateway6 != null && cfg.defaultGateway6.address != "") ''
114126 # FIXME: get rid of "|| true" (necessary to make it idempotent).
115− ip -6 route add ::/0 via "${cfg.defaultGateway6.address}" ${
127+ ip -6 route add ::/0 ${optionalString (cfg.defaultGateway6.metric != null)
128+ "metric ${toString cfg.defaultGateway6.metric}"
129+ } via "${cfg.defaultGateway6.address}" ${
116130 optionalString (cfg.defaultGatewayWindowSize != null)
117131 "window ${toString cfg.defaultGatewayWindowSize}"} ${
118132 optionalString (cfg.defaultGateway6.interface != null)
@@ -145,35 +159,42 @@ in
145159 after = [ "network-pre.target" ] ++ (deviceDependency i.name);
146160 serviceConfig.Type = "oneshot";
147161 serviceConfig.RemainAfterExit = true;
162+ # Restart rather than stop+start this unit to prevent the
163+ # network from dying during switch-to-configuration.
164+ stopIfChanged = false;
148165 path = [ pkgs.iproute ];
149166 script =
150167 ''
168+ # FIXME: shouldn't this be done in network-link?
151169 echo "bringing up interface..."
152170 ip link set "${i.name}" up
153171
154− restart_network_interfaces=false
172+ state="/run/nixos/network/addresses/${i.name}"
173+
174+ mkdir -p $(dirname "$state")
175+
155176 '' + flip concatMapStrings (ips) (ip:
156177 let
157178 address = "${ip.address}/${toString ip.prefixLength}";
158179 in
159180 ''
160− echo "checking ip ${address}..."
181+ echo "${address}" >> $state
161182 if out=$(ip addr add "${address}" dev "${i.name}" 2>&1); then
162− echo "added ip ${address}..."
183+ echo "added ip ${address}"
163184 elif ! echo "$out" | grep "File exists" >/dev/null 2>&1; then
164185 echo "failed to add ${address}"
165186 exit 1
166187 fi
167188 '');
168− preStop = flip concatMapStrings (ips) (ip:
169− let
170− address = "${ip.address}/${toString ip.prefixLength}";
171− in
172− ''
173− echo -n "deleting ${address}..."
174− ip addr del "${address}" dev "${i.name}" >/dev/null 2>&1 || echo -n " Failed"
175− echo ""
176− '');
189+ preStop = ''
190+ state="/run/nixos/network/addresses/${i.name}"
191+ while read address; do
192+ echo -n "deleting $address..."
193+ ip addr del "$address" dev "${i.name}" >/dev/null 2>&1 || echo -n " Failed"
194+ echo ""
195+ done < "$state"
196+ rm -f "$state"
197+ '';
177198 };
178199
179200 createTunDevice = i: nameValuePair "${i.name}-netdev"
@@ -194,7 +215,7 @@ in
194215 user "${i.virtualOwner}"
195216 '';
196217 postStop = ''
197− ip link del ${i.name}
218+ ip link del ${i.name} || true
198219 '';
199220 };
200221
@@ -206,7 +227,7 @@ in
206227 wantedBy = [ "network-setup.service" (subsystemDevice n) ];
207228 bindsTo = deps ++ optional v.rstp "mstpd.service";
208229 partOf = [ "network-setup.service" ] ++ optional v.rstp "mstpd.service";
209− after = [ "network-pre.target" "mstpd.service" ] ++ deps
230+ after = [ "network-pre.target" ] ++ deps ++ optional v.rstp "mstpd.service"
210231 ++ concatMap (i: [ "network-addresses-${i}.service" "network-link-${i}.service" ]) v.interfaces;
211232 before = [ "network-setup.service" (subsystemDevice n) ];
212233 serviceConfig.Type = "oneshot";
@@ -225,6 +246,10 @@ in
225246 ip link set "${i}" master "${n}"
226247 ip link set "${i}" up
227248 '')}
249+ # Save list of enslaved interfaces
250+ echo "${flip concatMapStrings v.interfaces (i: ''
251+ ${i}
252+ '')}" > /run/${n}.interfaces
228253
229254 # Enable stp on the interface
230255 ${optionalString v.rstp ''
@@ -236,7 +261,28 @@ in
236261 postStop = ''
237262 ip link set "${n}" down || true
238263 ip link del "${n}" || true
264+ rm -f /run/${n}.interfaces
239265 '';
266+ reload = ''
267+ # Un-enslave child interfaces (old list of interfaces)
268+ for interface in `cat /run/${n}.interfaces`; do
269+ ip link set "$interface" nomaster up
270+ done
271+
272+ # Enslave child interfaces (new list of interfaces)
273+ ${flip concatMapStrings v.interfaces (i: ''
274+ ip link set "${i}" master "${n}"
275+ ip link set "${i}" up
276+ '')}
277+ # Save list of enslaved interfaces
278+ echo "${flip concatMapStrings v.interfaces (i: ''
279+ ${i}
280+ '')}" > /run/${n}.interfaces
281+
282+ # (Un-)set stp on the bridge
283+ echo ${if v.rstp then "2" else "0"} > /sys/class/net/${n}/bridge/stp_state
284+ '';
285+ reloadIfChanged = true;
240286 });
241287
242288 createVswitchDevice = n: v: nameValuePair "${n}-netdev"
@@ -292,10 +338,11 @@ in
292338
293339 echo "Creating new bond ${n}..."
294340 ip link add name "${n}" type bond \
295− ${optionalString (v.mode != null) "mode ${toString v.mode}"} \
296− ${optionalString (v.miimon != null) "miimon ${toString v.miimon}"} \
297− ${optionalString (v.xmit_hash_policy != null) "xmit_hash_policy ${toString v.xmit_hash_policy}"} \
298− ${optionalString (v.lacp_rate != null) "lacp_rate ${toString v.lacp_rate}"}
341+ ${let opts = (mapAttrs (const toString)
342+ (bondDeprecation.filterDeprecated v))
343+ // v.driverOptions;
344+ in concatStringsSep "\n"
345+ (mapAttrsToList (set: val: " ${set} ${val} \\") opts)}
299346
300347 # !!! There must be a better way to wait for the interface
301348 while [ ! -d "/sys/class/net/${n}" ]; do sleep 0.1; done;
@@ -331,7 +378,7 @@ in
331378 ip link set "${n}" up
332379 '';
333380 postStop = ''
334− ip link delete "${n}"
381+ ip link delete "${n}" || true
335382 '';
336383 });
337384
@@ -359,7 +406,7 @@ in
359406 ip link set "${n}" up
360407 '';
361408 postStop = ''
362− ip link delete "${n}"
409+ ip link delete "${n}" || true
363410 '';
364411 });
365412
@@ -383,7 +430,7 @@ in
383430 ip link set "${n}" up
384431 '';
385432 postStop = ''
386− ip link delete "${n}"
433+ ip link delete "${n}" || true
387434 '';
388435 });
389436
@@ -406,6 +453,14 @@ in
406453 KERNEL=="tun", TAG+="systemd"
407454 '';
408455
456+
409457 };
410458
459+in
460+
461+{
462+ config = mkMerge [
463+ bondWarnings
464+ (mkIf (!cfg.useNetworkd) normalConfig)
465+ ];
411466}
nixos/modules/tasks/network-interfaces-systemd.nix+68−19
@@ -59,15 +59,16 @@ in
5959 systemd.network =
6060 let
6161 domains = cfg.search ++ (optional (cfg.domain != null) cfg.domain);
62− genericNetwork = override: {
63− DHCP = override (dhcpStr cfg.useDHCP);
64− } // optionalAttrs (cfg.defaultGateway != null) {
65− gateway = override [ cfg.defaultGateway.address ];
66− } // optionalAttrs (cfg.defaultGateway6 != null) {
67− gateway = override [ cfg.defaultGateway6.address ];
68− } // optionalAttrs (domains != [ ]) {
69− domains = override domains;
70− };
62+ genericNetwork = override:
63+ let gateway = optional (cfg.defaultGateway != null) cfg.defaultGateway.address
64+ ++ optional (cfg.defaultGateway6 != null) cfg.defaultGateway6.address;
65+ in {
66+ DHCP = override (dhcpStr cfg.useDHCP);
67+ } // optionalAttrs (gateway != [ ]) {
68+ gateway = override gateway;
69+ } // optionalAttrs (domains != [ ]) {
70+ domains = override domains;
71+ };
7172 in mkMerge [ {
7273 enable = true;
7374 networks."99-main" = genericNetwork mkDefault;
@@ -115,17 +116,65 @@ in
115116 Name = name;
116117 Kind = "bond";
117118 };
118− bondConfig =
119− (optionalAttrs (bond.lacp_rate != null) {
120− LACPTransmitRate = bond.lacp_rate;
121− }) // (optionalAttrs (bond.miimon != null) {
122− MIIMonitorSec = bond.miimon;
123− }) // (optionalAttrs (bond.mode != null) {
124− Mode = bond.mode;
125− }) // (optionalAttrs (bond.xmit_hash_policy != null) {
126− TransmitHashPolicy = bond.xmit_hash_policy;
127− });
119+ bondConfig = let
120+ # manual mapping as of 2017-02-03
121+ # man 5 systemd.netdev [BOND]
122+ # to https://www.kernel.org/doc/Documentation/networking/bonding.txt
123+ # driver options.
124+ driverOptionMapping = let
125+ trans = f: optName: { valTransform = f; optNames = [optName]; };
126+ simp = trans id;
127+ ms = trans (v: v + "ms");
128+ in {
129+ Mode = simp "mode";
130+ TransmitHashPolicy = simp "xmit_hash_policy";
131+ LACPTransmitRate = simp "lacp_rate";
132+ MIIMonitorSec = ms "miimon";
133+ UpDelaySec = ms "updelay";
134+ DownDelaySec = ms "downdelay";
135+ LearnPacketIntervalSec = simp "lp_interval";
136+ AdSelect = simp "ad_select";
137+ FailOverMACPolicy = simp "fail_over_mac";
138+ ARPValidate = simp "arp_validate";
139+ # apparently in ms for this value?! Upstream bug?
140+ ARPIntervalSec = simp "arp_interval";
141+ ARPIPTargets = simp "arp_ip_target";
142+ ARPAllTargets = simp "arp_all_targets";
143+ PrimaryReselectPolicy = simp "primary_reselect";
144+ ResendIGMP = simp "resend_igmp";
145+ PacketsPerSlave = simp "packets_per_slave";
146+ GratuitousARP = { valTransform = id;
147+ optNames = [ "num_grat_arp" "num_unsol_na" ]; };
148+ AllSlavesActive = simp "all_slaves_active";
149+ MinLinks = simp "min_links";
150+ };
151+
152+ do = bond.driverOptions;
153+ assertNoUnknownOption = let
154+ knownOptions = flatten (mapAttrsToList (_: kOpts: kOpts.optNames)
155+ driverOptionMapping);
156+ # options that apparently don’t exist in the networkd config
157+ unknownOptions = [ "primary" ];
158+ assertTrace = bool: msg: if bool then true else builtins.trace msg false;
159+ in assert all (driverOpt: assertTrace
160+ (elem driverOpt (knownOptions ++ unknownOptions))
161+ "The bond.driverOption `${driverOpt}` cannot be mapped to the list of known networkd bond options. Please add it to the mapping above the assert or to `unknownOptions` should it not exist in networkd.")
162+ (mapAttrsToList (k: _: k) do); "";
163+ # get those driverOptions that have been set
164+ filterSystemdOptions = filterAttrs (sysDOpt: kOpts:
165+ any (kOpt: do ? "${kOpt}") kOpts.optNames);
166+ # build final set of systemd options to bond values
167+ buildOptionSet = mapAttrs (_: kOpts: with kOpts;
168+ # we simply take the first set kernel bond option
169+ # (one option has multiple names, which is silly)
170+ head (map (optN: valTransform (do."${optN}"))
171+ # only map those that exist
172+ (filter (o: do ? "${o}") optNames)));
173+ in seq assertNoUnknownOption
174+ (buildOptionSet (filterSystemdOptions driverOptionMapping));
175+
128176 };
177+
129178 networks = listToAttrs (flip map bond.interfaces (bi:
130179 nameValuePair "40-${bi}" (mkMerge [ (genericNetwork (mkOverride 999)) {
131180 DHCP = mkOverride 0 (dhcpStr false);
nixos/modules/tasks/network-interfaces.nix+109−73
@@ -1,4 +1,4 @@
1−{ config, lib, pkgs, utils, ... }:
1+{ config, lib, pkgs, utils, stdenv, ... }:
22
33with lib;
44with utils;
@@ -134,6 +134,13 @@ let
134134 description = "The default gateway interface.";
135135 };
136136
137+ metric = mkOption {
138+ type = types.nullOr types.int;
139+ default = null;
140+ example = 42;
141+ description = "The default gateway metric/preference.";
142+ };
143+
137144 };
138145
139146 };
@@ -351,7 +358,7 @@ in
351358 default = null;
352359 example = {
353360 address = "131.211.84.1";
354− device = "enp3s0";
361+ interface = "enp3s0";
355362 };
356363 type = types.nullOr (types.coercedTo types.str gatewayCoerce (types.submodule gatewayOpts));
357364 description = ''
@@ -364,7 +371,7 @@ in
364371 default = null;
365372 example = {
366373 address = "2001:4d0:1e04:895::1";
367− device = "enp3s0";
374+ interface = "enp3s0";
368375 };
369376 type = types.nullOr (types.coercedTo types.str gatewayCoerce (types.submodule gatewayOpts));
370377 description = ''
@@ -541,7 +548,6 @@ in
541548 };
542549
543550 rstp = mkOption {
544− example = true;
545551 default = false;
546552 type = types.bool;
547553 description = "Whether the bridge interface should enable rstp.";
@@ -553,81 +559,102 @@ in
553559
554560 };
555561
556− networking.bonds = mkOption {
557− default = { };
558− example = literalExample {
559− bond0 = {
560− interfaces = [ "eth0" "wlan0" ];
561− miimon = 100;
562+ networking.bonds =
563+ let
564+ driverOptionsExample = {
565+ miimon = "100";
562566 mode = "active-backup";
563567 };
564− fatpipe.interfaces = [ "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ];
565− };
566− description = ''
567− This option allows you to define bond devices that aggregate multiple,
568− underlying networking interfaces together. The value of this option is
569− an attribute set. Each attribute specifies a bond, with the attribute
570− name specifying the name of the bond's network interface
571− '';
572−
573− type = with types; attrsOf (submodule {
574−
575− options = {
576−
577− interfaces = mkOption {
578− example = [ "enp4s0f0" "enp4s0f1" "wlan0" ];
579− type = types.listOf types.str;
580− description = "The interfaces to bond together";
581− };
582−
583− lacp_rate = mkOption {
584− default = null;
585− example = "fast";
586− type = types.nullOr types.str;
587− description = ''
588− Option specifying the rate in which we'll ask our link partner
589− to transmit LACPDU packets in 802.3ad mode.
590− '';
591− };
592−
593− miimon = mkOption {
594− default = null;
595− example = 100;
596− type = types.nullOr types.int;
597− description = ''
598− Miimon is the number of millisecond in between each round of polling
599− by the device driver for failed links. By default polling is not
600− enabled and the driver is trusted to properly detect and handle
601− failure scenarios.
602− '';
568+ in mkOption {
569+ default = { };
570+ example = literalExample {
571+ bond0 = {
572+ interfaces = [ "eth0" "wlan0" ];
573+ driverOptions = driverOptionsExample;
603574 };
575+ anotherBond.interfaces = [ "enp4s0f0" "enp4s0f1" "enp5s0f0" "enp5s0f1" ];
576+ };
577+ description = ''
578+ This option allows you to define bond devices that aggregate multiple,
579+ underlying networking interfaces together. The value of this option is
580+ an attribute set. Each attribute specifies a bond, with the attribute
581+ name specifying the name of the bond's network interface
582+ '';
604583
605− mode = mkOption {
606− default = null;
607− example = "active-backup";
608− type = types.nullOr types.str;
609− description = ''
610− The mode which the bond will be running. The default mode for
611− the bonding driver is balance-rr, optimizing for throughput.
612− More information about valid modes can be found at
613− https://www.kernel.org/doc/Documentation/networking/bonding.txt
614− '';
615− };
584+ type = with types; attrsOf (submodule {
585+
586+ options = {
587+
588+ interfaces = mkOption {
589+ example = [ "enp4s0f0" "enp4s0f1" "wlan0" ];
590+ type = types.listOf types.str;
591+ description = "The interfaces to bond together";
592+ };
593+
594+ driverOptions = mkOption {
595+ type = types.attrsOf types.str;
596+ default = {};
597+ example = literalExample driverOptionsExample;
598+ description = ''
599+ Options for the bonding driver.
600+ Documentation can be found in
601+ <link xlink:href="https://www.kernel.org/doc/Documentation/networking/bonding.txt" />
602+ '';
603+
604+ };
605+
606+ lacp_rate = mkOption {
607+ default = null;
608+ example = "fast";
609+ type = types.nullOr types.str;
610+ description = ''
611+ DEPRECATED, use `driverOptions`.
612+ Option specifying the rate in which we'll ask our link partner
613+ to transmit LACPDU packets in 802.3ad mode.
614+ '';
615+ };
616+
617+ miimon = mkOption {
618+ default = null;
619+ example = 100;
620+ type = types.nullOr types.int;
621+ description = ''
622+ DEPRECATED, use `driverOptions`.
623+ Miimon is the number of millisecond in between each round of polling
624+ by the device driver for failed links. By default polling is not
625+ enabled and the driver is trusted to properly detect and handle
626+ failure scenarios.
627+ '';
628+ };
629+
630+ mode = mkOption {
631+ default = null;
632+ example = "active-backup";
633+ type = types.nullOr types.str;
634+ description = ''
635+ DEPRECATED, use `driverOptions`.
636+ The mode which the bond will be running. The default mode for
637+ the bonding driver is balance-rr, optimizing for throughput.
638+ More information about valid modes can be found at
639+ https://www.kernel.org/doc/Documentation/networking/bonding.txt
640+ '';
641+ };
642+
643+ xmit_hash_policy = mkOption {
644+ default = null;
645+ example = "layer2+3";
646+ type = types.nullOr types.str;
647+ description = ''
648+ DEPRECATED, use `driverOptions`.
649+ Selects the transmit hash policy to use for slave selection in
650+ balance-xor, 802.3ad, and tlb modes.
651+ '';
652+ };
616653
617− xmit_hash_policy = mkOption {
618− default = null;
619− example = "layer2+3";
620− type = types.nullOr types.str;
621− description = ''
622− Selects the transmit hash policy to use for slave selection in
623− balance-xor, 802.3ad, and tlb modes.
624− '';
625654 };
626655
627− };
628−
629− });
630− };
656+ });
657+ };
631658
632659 networking.macvlans = mkOption {
633660 default = { };
@@ -926,7 +953,16 @@ in
926953 (i: flip map [ "4" "6" ] (v: nameValuePair "net.ipv${v}.conf.${i.name}.proxy_arp" true))
927954 ));
928955
929− security.setuidPrograms = [ "ping" "ping6" ];
956+ # Capabilities won't work unless we have at-least a 4.3 Linux
957+ # kernel because we need the ambient capability
958+ security.wrappers = if (versionAtLeast (getVersion config.boot.kernelPackages.kernel) "4.3") then {
959+ ping = {
960+ source = "${pkgs.iputils.out}/bin/ping";
961+ capabilities = "cap_net_raw+p";
962+ };
963+ } else {
964+ ping.source = "${pkgs.iputils.out}/bin/ping";
965+ };
930966
931967 # Set the host and domain names in the activation script. Don't
932968 # clear it if it's not configured in the NixOS configuration,
nixos/modules/testing/test-instrumentation.nix−9
@@ -123,15 +123,6 @@ let kernel = config.boot.kernelPackages.kernel; in
123123 users.extraUsers.root.initialHashedPassword = mkOverride 150 "";
124124
125125 services.xserver.displayManager.logToJournal = true;
126−
127− # Bump kdm's X server start timeout to account for heavily loaded
128− # VM host systems.
129− services.xserver.displayManager.kdm.extraConfig =
130− ''
131− [X-:*-Core]
132− ServerTimeout=240
133− '';
134−
135126 };
136127
137128}
nixos/modules/virtualisation/amazon-image.nix+6
@@ -15,6 +15,12 @@ let cfg = config.ec2; in
1515
1616 config = {
1717
18+ assertions = [
19+ { assertion = cfg.hvm;
20+ message = "Paravirtualized EC2 instances are no longer supported.";
21+ }
22+ ];
23+
1824 virtualisation.growPartition = cfg.hvm;
1925
2026 fileSystems."/" = {
nixos/modules/virtualisation/amazon-init.nix+20−8
@@ -1,20 +1,18 @@
1−{ config, pkgs, modulesPath, ... }:
2−
3−# This attempts to pull a nix expression from this EC2 instance's user-data.
1+{ config, pkgs, ... }:
42
53let
6− bootScript = pkgs.writeScript "bootscript.sh" ''
4+ script = ''
75 #!${pkgs.stdenv.shell} -eu
86
97 echo "attempting to fetch configuration from EC2 user data..."
108
9+ export HOME=/root
1110 export PATH=${pkgs.lib.makeBinPath [ config.nix.package pkgs.systemd pkgs.gnugrep pkgs.gnused config.system.build.nixos-rebuild]}:$PATH
1211 export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
1312
1413 userData=/etc/ec2-metadata/user-data
1514
1615 if [ -s "$userData" ]; then
17−
1816 # If the user-data looks like it could be a nix expression,
1917 # copy it over. Also, look for a magic three-hash comment and set
2018 # that as the channel.
@@ -43,7 +41,21 @@ let
4341 nixos-rebuild switch
4442 '';
4543in {
46− boot.postBootCommands = ''
47− ${bootScript} &
48− '';
44+ systemd.services.amazon-init = {
45+ inherit script;
46+ description = "Reconfigure the system from EC2 userdata on startup";
47+
48+ wantedBy = [ "multi-user.target" ];
49+ after = [ "multi-user.target" ];
50+ requires = [ "network-online.target" ];
51+
52+ restartIfChanged = false;
53+ unitConfig.X-StopOnRemoval = false;
54+
55+ serviceConfig = {
56+ Type = "oneshot";
57+ RemainAfterExit = true;
58+ };
59+ };
4960}
61+
nixos/modules/virtualisation/amazon-options.nix+1−3
@@ -3,7 +3,7 @@
33 options = {
44 ec2 = {
55 hvm = lib.mkOption {
6− default = false;
6+ default = lib.versionAtLeast config.system.stateVersion "17.03";
77 internal = true;
88 description = ''
99 Whether the EC2 instance is a HVM instance.
@@ -11,6 +11,4 @@
1111 };
1212 };
1313 };
14−
15− config = {};
1614}
nixos/modules/virtualisation/azure-image.nix+1−1
@@ -23,7 +23,7 @@ in
2323 postVM =
2424 ''
2525 mkdir -p $out
26− ${pkgs.vmTools.qemu-220}/bin/qemu-img convert -f raw -O vpc $diskImage $out/disk.vhd
26+ ${pkgs.vmTools.qemu-220}/bin/qemu-img convert -f raw -o subformat=fixed -O vpc $diskImage $out/disk.vhd
2727 rm $diskImage
2828 '';
2929 diskImageBase = "nixos-image-${config.system.nixosLabel}-${pkgs.stdenv.system}.raw";
nixos/modules/virtualisation/containers.nix+46−2
@@ -89,6 +89,15 @@ let
8989 if [ -n "$HOST_BRIDGE" ]; then
9090 extraFlags+=" --network-bridge=$HOST_BRIDGE"
9191 fi
92+ if [ -n "$HOST_PORT" ]; then
93+ OIFS=$IFS
94+ IFS=","
95+ for i in $HOST_PORT
96+ do
97+ extraFlags+=" --port=$i"
98+ done
99+ IFS=$OIFS
100+ fi
92101 fi
93102
94103 extraFlags+=" ${concatStringsSep " " (mapAttrsToList nspawnExtraVethArgs cfg.extraVeths)}"
@@ -128,6 +137,7 @@ let
128137 --setenv LOCAL_ADDRESS="$LOCAL_ADDRESS" \
129138 --setenv HOST_ADDRESS6="$HOST_ADDRESS6" \
130139 --setenv LOCAL_ADDRESS6="$LOCAL_ADDRESS6" \
140+ --setenv HOST_PORT="$HOST_PORT" \
131141 --setenv PATH="$PATH" \
132142 ${if cfg.additionalCapabilities != null && cfg.additionalCapabilities != [] then
133143 ''--capability="${concatStringsSep " " cfg.additionalCapabilities}"'' else ""
@@ -264,7 +274,6 @@ let
264274 };
265275 isReadOnly = mkOption {
266276 default = true;
267− example = true;
268277 type = types.bool;
269278 description = "Determine whether the mounted path will be accessed in read-only mode.";
270279 };
@@ -315,6 +324,36 @@ let
315324 '';
316325 };
317326
327+ forwardPorts = mkOption {
328+ type = types.listOf (types.submodule {
329+ options = {
330+ protocol = mkOption {
331+ type = types.str;
332+ default = "tcp";
333+ description = "The protocol specifier for port forwarding between host and container";
334+ };
335+ hostPort = mkOption {
336+ type = types.int;
337+ description = "Source port of the external interface on host";
338+ };
339+ containerPort = mkOption {
340+ type = types.nullOr types.int;
341+ default = null;
342+ description = "Target port of container";
343+ };
344+ };
345+ });
346+ default = [];
347+ example = [ { protocol = "tcp"; hostPort = 8080; containerPort = 80; } ];
348+ description = ''
349+ List of forwarded ports from host to container. Each forwarded port
350+ is specified by protocol, hostPort and containerPort. By default,
351+ protocol is tcp and hostPort and containerPort are assumed to be
352+ the same if containerPort is not explicitly given.
353+ '';
354+ };
355+
356+
318357 hostAddress = mkOption {
319358 type = types.nullOr types.str;
320359 default = null;
@@ -642,7 +681,9 @@ in
642681 # Generate a configuration file in /etc/containers for each
643682 # container so that container@.target can get the container
644683 # configuration.
645− environment.etc = mapAttrs' (name: cfg: nameValuePair "containers/${name}.conf"
684+ environment.etc =
685+ let mkPortStr = p: p.protocol + ":" + (toString p.hostPort) + ":" + (if p.containerPort == null then toString p.hostPort else toString p.containerPort);
686+ in mapAttrs' (name: cfg: nameValuePair "containers/${name}.conf"
646687 { text =
647688 ''
648689 SYSTEM_PATH=${cfg.path}
@@ -651,6 +692,9 @@ in
651692 ${optionalString (cfg.hostBridge != null) ''
652693 HOST_BRIDGE=${cfg.hostBridge}
653694 ''}
695+ ${optionalString (length cfg.forwardPorts > 0) ''
696+ HOST_PORT=${concatStringsSep "," (map mkPortStr cfg.forwardPorts)}
697+ ''}
654698 ${optionalString (cfg.hostAddress != null) ''
655699 HOST_ADDRESS=${cfg.hostAddress}
656700 ''}
nixos/modules/virtualisation/docker.nix+11−1
@@ -126,7 +126,17 @@ in
126126
127127 path = [ pkgs.kmod ] ++ (optional (cfg.storageDriver == "zfs") pkgs.zfs);
128128 };
129− systemd.sockets.docker.socketConfig.ListenStream = cfg.listenOptions;
129+
130+ systemd.sockets.docker = {
131+ description = "Docker Socket for the API";
132+ wantedBy = [ "sockets.target" ];
133+ socketConfig = {
134+ ListenStream = cfg.listenOptions;
135+ SocketMode = "0660";
136+ SocketUser = "root";
137+ SocketGroup = "docker";
138+ };
139+ };
130140 }
131141 ]);
132142
nixos/modules/virtualisation/ec2-amis.nix+35−1
@@ -156,6 +156,10 @@ let self = {
156156 "16.09".ap-southeast-2.hvm-s3 = "ami-87f4f0e4";
157157 "16.09".ap-southeast-2.pv-ebs = "ami-d8ede9bb";
158158 "16.09".ap-southeast-2.pv-s3 = "ami-a6ebefc5";
159+ "16.09".ca-central-1.hvm-ebs = "ami-9f863bfb";
160+ "16.09".ca-central-1.hvm-s3 = "ami-ea85388e";
161+ "16.09".ca-central-1.pv-ebs = "ami-ce8a37aa";
162+ "16.09".ca-central-1.pv-s3 = "ami-448a3720";
159163 "16.09".eu-central-1.hvm-ebs = "ami-1b884774";
160164 "16.09".eu-central-1.hvm-s3 = "ami-b08c43df";
161165 "16.09".eu-central-1.pv-ebs = "ami-888946e7";
@@ -189,5 +193,35 @@ let self = {
189193 "16.09".us-west-2.pv-ebs = "ami-6d4af60d";
190194 "16.09".us-west-2.pv-s3 = "ami-de48f4be";
191195
192− latest = self."16.09";
196+ # 17.03.885.6024dd4067
197+ "17.03".ap-northeast-1.hvm-ebs = "ami-dbd0f7bc";
198+ "17.03".ap-northeast-1.hvm-s3 = "ami-7cdff81b";
199+ "17.03".ap-northeast-2.hvm-ebs = "ami-c59a48ab";
200+ "17.03".ap-northeast-2.hvm-s3 = "ami-0b944665";
201+ "17.03".ap-south-1.hvm-ebs = "ami-4f413220";
202+ "17.03".ap-south-1.hvm-s3 = "ami-864033e9";
203+ "17.03".ap-southeast-1.hvm-ebs = "ami-e08c3383";
204+ "17.03".ap-southeast-1.hvm-s3 = "ami-c28f30a1";
205+ "17.03".ap-southeast-2.hvm-ebs = "ami-fca9a69f";
206+ "17.03".ap-southeast-2.hvm-s3 = "ami-3daaa55e";
207+ "17.03".ca-central-1.hvm-ebs = "ami-9b00bdff";
208+ "17.03".ca-central-1.hvm-s3 = "ami-e800bd8c";
209+ "17.03".eu-central-1.hvm-ebs = "ami-5450803b";
210+ "17.03".eu-central-1.hvm-s3 = "ami-6e2efe01";
211+ "17.03".eu-west-1.hvm-ebs = "ami-10754c76";
212+ "17.03".eu-west-1.hvm-s3 = "ami-11734a77";
213+ "17.03".eu-west-2.hvm-ebs = "ami-ff1d099b";
214+ "17.03".eu-west-2.hvm-s3 = "ami-fe1d099a";
215+ "17.03".sa-east-1.hvm-ebs = "ami-d95d3eb5";
216+ "17.03".sa-east-1.hvm-s3 = "ami-fca2c190";
217+ "17.03".us-east-1.hvm-ebs = "ami-0940c61f";
218+ "17.03".us-east-1.hvm-s3 = "ami-674fc971";
219+ "17.03".us-east-2.hvm-ebs = "ami-afc2e6ca";
220+ "17.03".us-east-2.hvm-s3 = "ami-a1cde9c4";
221+ "17.03".us-west-1.hvm-ebs = "ami-587b2138";
222+ "17.03".us-west-1.hvm-s3 = "ami-70411b10";
223+ "17.03".us-west-2.hvm-ebs = "ami-a93daac9";
224+ "17.03".us-west-2.hvm-s3 = "ami-5139ae31";
225+
226+ latest = self."17.03";
193227}; in self
nixos/modules/virtualisation/ecs-agent.nix+5
@@ -12,6 +12,7 @@ in {
1212 type = types.path;
1313 description = "The ECS agent package to use";
1414 default = pkgs.ecs-agent;
15+ defaultText = "pkgs.ecs-agent";
1516 };
1617
1718 extra-environment = mkOption {
@@ -22,6 +23,10 @@ in {
2223 };
2324
2425 config = lib.mkIf cfg.enable {
26+ # This service doesn't run if docker isn't running, and unlike potentially remote services like e.g., postgresql, docker has
27+ # to be running locally so `docker.enable` will always be set if the ECS agent is enabled.
28+ virtualisation.docker.enable = true;
29+
2530 systemd.services.ecs-agent = {
2631 inherit (cfg.package.meta) description;
2732 after = [ "network.target" ];
nixos/modules/virtualisation/google-compute-image.nix+3−3
@@ -23,7 +23,7 @@ in
2323
2424 postVM =
2525 ''
26− PATH=$PATH:${stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
26+ PATH=$PATH:${pkgs.stdenv.lib.makeBinPath [ pkgs.gnutar pkgs.gzip ]}
2727 pushd $out
2828 mv $diskImageBase disk.raw
2929 tar -Szcf $diskImageBase.tar.gz disk.raw
@@ -62,7 +62,7 @@ in
6262
6363 mkdir -p /mnt/nix/store
6464 echo "copying everything (will take a while)..."
65− cp -prd $storePaths /mnt/nix/store/
65+ ${pkgs.rsync}/bin/rsync -a $storePaths /mnt/nix/store/
6666
6767 # Register the paths in the Nix database.
6868 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
@@ -261,7 +261,7 @@ in
261261 "kernel.kptr_restrict" = mkDefault "1";
262262
263263 # set ptrace protections
264− "kernel.yama.ptrace_scope" = mkDefault "1";
264+ "kernel.yama.ptrace_scope" = mkOverride 500 "1";
265265
266266 # set perf only available to root
267267 "kernel.perf_event_paranoid" = mkDefault "2";
nixos/modules/virtualisation/libvirtd.nix+38−10
@@ -13,6 +13,9 @@ let
1313 auth_unix_rw = "none"
1414 ${cfg.extraConfig}
1515 '';
16+ qemuConfigFile = pkgs.writeText "qemu.conf" ''
17+ ${cfg.qemuVerbatimConfig}
18+ '';
1619
1720in {
1821
@@ -48,6 +51,18 @@ in {
4851 '';
4952 };
5053
54+ virtualisation.libvirtd.qemuVerbatimConfig = mkOption {
55+ type = types.lines;
56+ default = ''
57+ namespaces = []
58+ '';
59+ description = ''
60+ Contents written to the qemu configuration file, qemu.conf.
61+ Make sure to include a proper namespace configuration when
62+ supplying custom configuration.
63+ '';
64+ };
65+
5166 virtualisation.libvirtd.extraOptions = mkOption {
5267 type = types.listOf types.str;
5368 default = [ ];
@@ -75,14 +90,16 @@ in {
7590
7691 config = mkIf cfg.enable {
7792
78− environment.systemPackages =
79− [ pkgs.libvirt pkgs.netcat-openbsd ]
80− ++ optional cfg.enableKVM pkgs.qemu_kvm;
93+ environment.systemPackages = with pkgs;
94+ [ libvirt netcat-openbsd ]
95+ ++ optional cfg.enableKVM qemu_kvm;
8196
8297 boot.kernelModules = [ "tun" ];
8398
8499 users.extraGroups.libvirtd.gid = config.ids.gids.libvirtd;
85100
101+ systemd.packages = [ pkgs.libvirt ];
102+
86103 systemd.services.libvirtd = {
87104 description = "Libvirt Virtual Machine Management Daemon";
88105
@@ -90,13 +107,17 @@ in {
90107 after = [ "systemd-udev-settle.service" ]
91108 ++ optional vswitch.enable "vswitchd.service";
92109
93− path = [
94− pkgs.bridge-utils
95− pkgs.dmidecode
96− pkgs.dnsmasq
97− pkgs.ebtables
110+ environment = {
111+ LIBVIRTD_ARGS = ''--config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
112+ };
113+
114+ path = with pkgs; [
115+ bridge-utils
116+ dmidecode
117+ dnsmasq
118+ ebtables
98119 ]
99− ++ optional cfg.enableKVM pkgs.qemu_kvm
120+ ++ optional cfg.enableKVM qemu_kvm
100121 ++ optional vswitch.enable vswitch.package;
101122
102123 preStart = ''
@@ -119,6 +140,9 @@ in {
119140 cp -npd ${pkgs.libvirt}/var/lib/$i /var/lib/$i
120141 done
121142
143+ # Copy generated qemu config to libvirt directory
144+ cp -f ${qemuConfigFile} /var/lib/libvirt/qemu.conf
145+
122146 # libvirtd puts the full path of the emulator binary in the machine
123147 # config file. But this path can unfortunately be garbage collected
124148 # while still being used by the virtual machine. So update the
@@ -135,13 +159,17 @@ in {
135159 ''; # */
136160
137161 serviceConfig = {
138− ExecStart = ''@${pkgs.libvirt}/sbin/libvirtd libvirtd --config "${configFile}" ${concatStringsSep " " cfg.extraOptions}'';
139162 Type = "notify";
140163 KillMode = "process"; # when stopping, leave the VMs alone
141164 Restart = "on-failure";
142165 };
143166 };
144167
168+ systemd.services.libvirt-guests = {
169+ wantedBy = [ "multi-user.target" ];
170+ path = with pkgs; [ coreutils libvirt gawk ];
171+ };
172+
145173 systemd.sockets.virtlogd = {
146174 description = "Virtual machine log manager socket";
147175 wantedBy = [ "sockets.target" ];
nixos/modules/virtualisation/lxc.nix+1
@@ -71,6 +71,7 @@ in
7171 environment.etc."lxc/lxc.conf".text = cfg.systemConfig;
7272 environment.etc."lxc/lxc-usernet".text = cfg.usernetConfig;
7373 environment.etc."lxc/default.conf".text = cfg.defaultConfig;
74+ systemd.tmpfiles.rules = [ "d /var/lib/lxc/rootfs 0755 root root -" ];
7475
7576 security.apparmor.packages = [ pkgs.lxc ];
7677 security.apparmor.profiles = [ "${pkgs.lxc}/etc/apparmor.d/lxc-containers" ];
nixos/modules/virtualisation/nova-config.nixnew file+57
@@ -0,0 +1,57 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+{
6+ imports = [
7+ ../profiles/qemu-guest.nix
8+ ../profiles/headless.nix
9+ ./grow-partition.nix
10+ ];
11+
12+ config = {
13+ fileSystems."/" = {
14+ device = "/dev/disk/by-label/nixos";
15+ autoResize = true;
16+ };
17+
18+ virtualisation.growPartition = true;
19+
20+ boot.kernelParams = [ "console=ttyS0" ];
21+ boot.loader.grub.device = "/dev/vda";
22+ boot.loader.timeout = 0;
23+
24+ # Allow root logins
25+ services.openssh.enable = true;
26+ services.openssh.permitRootLogin = "prohibit-password";
27+
28+ # Put /tmp and /var on /ephemeral0, which has a lot more space.
29+ # Unfortunately we can't do this with the `fileSystems' option
30+ # because it has no support for creating the source of a bind
31+ # mount. Also, "move" /nix to /ephemeral0 by layering a unionfs-fuse
32+ # mount on top of it so we have a lot more space for Nix operations.
33+
34+ /*
35+ boot.initrd.postMountCommands =
36+ ''
37+ mkdir -m 1777 -p $targetRoot/ephemeral0/tmp
38+ mkdir -m 1777 -p $targetRoot/tmp
39+ mount --bind $targetRoot/ephemeral0/tmp $targetRoot/tmp
40+
41+ mkdir -m 755 -p $targetRoot/ephemeral0/var
42+ mkdir -m 755 -p $targetRoot/var
43+ mount --bind $targetRoot/ephemeral0/var $targetRoot/var
44+
45+ mkdir -p /unionfs-chroot/ro-nix
46+ mount --rbind $targetRoot/nix /unionfs-chroot/ro-nix
47+
48+ mkdir -p /unionfs-chroot/rw-nix
49+ mkdir -m 755 -p $targetRoot/ephemeral0/nix
50+ mount --rbind $targetRoot/ephemeral0/nix /unionfs-chroot/rw-nix
51+ unionfs -o allow_other,cow,nonempty,chroot=/unionfs-chroot,max_files=32768 /rw-nix=RW:/ro-nix=RO $targetRoot/nix
52+ '';
53+
54+ boot.initrd.supportedFilesystems = [ "unionfs-fuse" ];
55+ */
56+ };
57+}
nixos/modules/virtualisation/nova-image.nixdeleted−65
@@ -1,65 +0,0 @@
1−# Usage:
2−# $ NIXOS_CONFIG=`pwd`/nixos/modules/virtualisation/nova-image.nix nix-build '<nixpkgs/nixos>' -A config.system.build.novaImage
3−
4−{ config, lib, pkgs, ... }:
5−
6−with lib;
7−
8−{
9− system.build.novaImage = import ../../lib/make-disk-image.nix {
10− inherit pkgs lib config;
11− partitioned = true;
12− diskSize = 1 * 1024;
13− configFile = pkgs.writeText "configuration.nix"
14− ''
15− {
16− imports = [ <nixpkgs/nixos/modules/virtualisation/nova-image.nix> ];
17− }
18− '';
19− };
20−
21− imports = [
22− ../profiles/qemu-guest.nix
23− ../profiles/headless.nix
24− ];
25−
26− fileSystems."/".device = "/dev/disk/by-label/nixos";
27−
28− boot.kernelParams = [ "console=ttyS0" ];
29− boot.loader.grub.device = "/dev/vda";
30− boot.loader.timeout = 0;
31−
32− # Allow root logins
33− services.openssh.enable = true;
34− services.openssh.permitRootLogin = "prohibit-password";
35−
36− # Put /tmp and /var on /ephemeral0, which has a lot more space.
37− # Unfortunately we can't do this with the `fileSystems' option
38− # because it has no support for creating the source of a bind
39− # mount. Also, "move" /nix to /ephemeral0 by layering a unionfs-fuse
40− # mount on top of it so we have a lot more space for Nix operations.
41−
42− /*
43− boot.initrd.postMountCommands =
44− ''
45− mkdir -m 1777 -p $targetRoot/ephemeral0/tmp
46− mkdir -m 1777 -p $targetRoot/tmp
47− mount --bind $targetRoot/ephemeral0/tmp $targetRoot/tmp
48−
49− mkdir -m 755 -p $targetRoot/ephemeral0/var
50− mkdir -m 755 -p $targetRoot/var
51− mount --bind $targetRoot/ephemeral0/var $targetRoot/var
52−
53− mkdir -p /unionfs-chroot/ro-nix
54− mount --rbind $targetRoot/nix /unionfs-chroot/ro-nix
55−
56− mkdir -p /unionfs-chroot/rw-nix
57− mkdir -m 755 -p $targetRoot/ephemeral0/nix
58− mount --rbind $targetRoot/ephemeral0/nix /unionfs-chroot/rw-nix
59− unionfs -o allow_other,cow,nonempty,chroot=/unionfs-chroot,max_files=32768 /rw-nix=RW:/ro-nix=RO $targetRoot/nix
60− '';
61−
62− boot.initrd.supportedFilesystems = [ "unionfs-fuse" ];
63− */
64−
65−}
nixos/modules/virtualisation/openstack/glance.nix+1−1
@@ -43,7 +43,7 @@ in {
4343 package = mkOption {
4444 type = types.package;
4545 default = pkgs.glance;
46− example = literalExample "pkgs.glance";
46+ defaultText = "pkgs.glance";
4747 description = ''
4848 Glance package to use.
4949 '';
nixos/modules/virtualisation/qemu-vm.nix+13−11
@@ -136,15 +136,17 @@ let
136136 else "-nographic -serial pty";
137137 }
138138 ''
139− # Create a /boot EFI partition with 40M
140− ${pkgs.gptfdisk}/bin/sgdisk -G /dev/vda
141− ${pkgs.gptfdisk}/bin/sgdisk -a 1 -n 1:34:2047 -c 1:"BIOS Boot Partition" -t 1:ef02 /dev/vda
142− ${pkgs.gptfdisk}/bin/sgdisk -a 512 -N 2 -c 2:"EFI System" -t 2:ef00 /dev/vda
143− ${pkgs.gptfdisk}/bin/sgdisk -A 1:set:1 /dev/vda
144− ${pkgs.gptfdisk}/bin/sgdisk -A 2:set:2 /dev/vda
145− ${pkgs.gptfdisk}/bin/sgdisk -h 2 /dev/vda
146− ${pkgs.gptfdisk}/bin/sgdisk -C /dev/vda
147− ${pkgs.utillinux}/bin/sfdisk /dev/vda -A 2
139+ # Create a /boot EFI partition with 40M and arbitrary but fixed GUIDs for reproducibility
140+ ${pkgs.gptfdisk}/bin/sgdisk \
141+ --set-alignment=1 --new=1:34:2047 --change-name=1:BIOSBootPartition --typecode=1:ef02 \
142+ --set-alignment=512 --largest-new=2 --change-name=2:EFISystem --typecode=2:ef00 \
143+ --attributes=1:set:1 \
144+ --attributes=2:set:2 \
145+ --disk-guid=97FD5997-D90B-4AA3-8D16-C1723AEA73C1 \
146+ --partition-guid=1:1C06F03B-704E-4657-B9CD-681A087A2FDC \
147+ --partition-guid=2:970C694F-AFD0-4B99-B750-CDB7A329AB6F \
148+ --hybrid 2 \
149+ --recompute-chs /dev/vda
148150 . /sys/class/block/vda2/uevent
149151 mknod /dev/vda2 b $MAJOR $MINOR
150152 . /sys/class/block/vda/uevent
@@ -440,7 +442,7 @@ in
440442 ${if cfg.writableStore then "/nix/.ro-store" else "/nix/store"} =
441443 { device = "store";
442444 fsType = "9p";
443− options = [ "trans=virtio" "version=9p2000.L" "veryloose" ];
445+ options = [ "trans=virtio" "version=9p2000.L" "cache=loose" ];
444446 neededForBoot = true;
445447 };
446448 "/tmp" = mkIf config.boot.tmpOnTmpfs
@@ -453,7 +455,7 @@ in
453455 "/tmp/xchg" =
454456 { device = "xchg";
455457 fsType = "9p";
456− options = [ "trans=virtio" "version=9p2000.L" "veryloose" ];
458+ options = [ "trans=virtio" "version=9p2000.L" "cache=loose" ];
457459 neededForBoot = true;
458460 };
459461 "/tmp/shared" =
nixos/modules/virtualisation/rkt.nix+1−1
@@ -22,7 +22,7 @@ in
2222 description = ''
2323 Specification (in the format described by
2424 <citerefentry><refentrytitle>systemd.time</refentrytitle>
25− <manvolnum>5</manvolnum></citerefentry>) of the time at
25+ <manvolnum>7</manvolnum></citerefentry>) of the time at
2626 which the garbage collector will run.
2727 '';
2828 };
nixos/modules/virtualisation/virtualbox-guest.nix+26−17
@@ -15,18 +15,27 @@ in
1515
1616 ###### interface
1717
18− options.virtualisation.virtualbox.guest.enable = mkOption {
19− default = false;
20− description = "Whether to enable the VirtualBox service and other guest additions.";
18+ options.virtualisation.virtualbox.guest = {
19+ enable = mkOption {
20+ default = false;
21+ type = types.bool;
22+ description = "Whether to enable the VirtualBox service and other guest additions.";
23+ };
24+
25+ x11 = mkOption {
26+ default = true;
27+ type = types.bool;
28+ description = "Whether to enable x11 graphics";
29+ };
2130 };
2231
2332 ###### implementation
2433
25− config = mkIf cfg.enable {
26− assertions = [ {
34+ config = mkIf cfg.enable (mkMerge [{
35+ assertions = [{
2736 assertion = pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64;
2837 message = "Virtualbox not currently supported on ${pkgs.stdenv.system}";
29− } ];
38+ }];
3039
3140 environment.systemPackages = [ kernel.virtualboxGuestAdditions ];
3241
@@ -49,6 +58,16 @@ in
4958 serviceConfig.ExecStart = "@${kernel.virtualboxGuestAdditions}/bin/VBoxService VBoxService --foreground";
5059 };
5160
61+ services.udev.extraRules =
62+ ''
63+ # /dev/vboxuser is necessary for VBoxClient to work. Maybe we
64+ # should restrict this to logged-in users.
65+ KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666"
66+
67+ # Allow systemd dependencies on vboxguest.
68+ SUBSYSTEM=="misc", KERNEL=="vboxguest", TAG+="systemd"
69+ '';
70+ } (mkIf cfg.x11 {
5271 services.xserver.videoDrivers = mkOverride 50 [ "virtualbox" "modesetting" ];
5372
5473 services.xserver.config =
@@ -69,16 +88,6 @@ in
6988 PATH=${makeBinPath [ pkgs.gnugrep pkgs.which pkgs.xorg.xorgserver.out ]}:$PATH \
7089 ${kernel.virtualboxGuestAdditions}/bin/VBoxClient-all
7190 '';
72−
73− services.udev.extraRules =
74− ''
75− # /dev/vboxuser is necessary for VBoxClient to work. Maybe we
76− # should restrict this to logged-in users.
77− KERNEL=="vboxuser", OWNER="root", GROUP="root", MODE="0666"
78−
79− # Allow systemd dependencies on vboxguest.
80− SUBSYSTEM=="misc", KERNEL=="vboxguest", TAG+="systemd"
81− '';
82− };
91+ })]);
8392
8493}
nixos/modules/virtualisation/virtualbox-host.nix+5−5
@@ -68,15 +68,15 @@ in
6868 boot.extraModulePackages = [ kernelModules ];
6969 environment.systemPackages = [ virtualbox ];
7070
71− security.setuidOwners = let
71+ security.wrappers = let
7272 mkSuid = program: {
73− inherit program;
7473 source = "${virtualbox}/libexec/virtualbox/${program}";
7574 owner = "root";
7675 group = "vboxusers";
7776 setuid = true;
7877 };
79− in mkIf cfg.enableHardening (map mkSuid [
78+ in mkIf cfg.enableHardening
79+ (builtins.listToAttrs (map (x: { name = x; value = mkSuid x; }) [
8080 "VBoxHeadless"
8181 "VBoxNetAdpCtl"
8282 "VBoxNetDHCP"
@@ -84,7 +84,7 @@ in
8484 "VBoxSDL"
8585 "VBoxVolInfo"
8686 "VirtualBox"
87− ]);
87+ ]));
8888
8989 users.extraGroups.vboxusers.gid = config.ids.gids.vboxusers;
9090
@@ -99,7 +99,7 @@ in
9999 SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="${virtualbox}/libexec/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
100100 '';
101101
102− # Since we lack the right setuid binaries, set up a host-only network by default.
102+ # Since we lack the right setuid/setcap binaries, set up a host-only network by default.
103103 } (mkIf cfg.addNetworkInterface {
104104 systemd.services."vboxnet0" =
105105 { description = "VirtualBox vboxnet0 Interface";
nixos/modules/virtualisation/xen-dom0.nix+48−18
@@ -27,6 +27,33 @@ in
2727 '';
2828 };
2929
30+ virtualisation.xen.package = mkOption {
31+ type = types.package;
32+ defaultText = "pkgs.xen";
33+ example = literalExample "pkgs.xen-light";
34+ description = ''
35+ The package used for Xen binary.
36+ '';
37+ };
38+
39+ virtualisation.xen.qemu = mkOption {
40+ type = types.path;
41+ defaultText = "\${pkgs.xen}/lib/xen/bin/qemu-system-i386";
42+ example = literalExample "''${pkgs.qemu_xen-light}/bin/qemu-system-i386";
43+ description = ''
44+ The qemu binary to use for Dom-0 backend.
45+ '';
46+ };
47+
48+ virtualisation.xen.qemu-package = mkOption {
49+ type = types.package;
50+ defaultText = "pkgs.xen";
51+ example = literalExample "pkgs.qemu_xen-light";
52+ description = ''
53+ The package with qemu binaries for xendomains.
54+ '';
55+ };
56+
3057 virtualisation.xen.bootParams =
3158 mkOption {
3259 default = "";
@@ -106,9 +133,12 @@ in
106133 message = "Xen currently does not support EFI boot";
107134 } ];
108135
109− virtualisation.xen.stored = mkDefault "${pkgs.xen}/bin/oxenstored";
136+ virtualisation.xen.package = mkDefault pkgs.xen;
137+ virtualisation.xen.qemu = mkDefault "${pkgs.xen}/lib/xen/bin/qemu-system-i386";
138+ virtualisation.xen.qemu-package = mkDefault pkgs.xen;
139+ virtualisation.xen.stored = mkDefault "${cfg.package}/bin/oxenstored";
110140
111− environment.systemPackages = [ pkgs.xen ];
141+ environment.systemPackages = [ cfg.package ];
112142
113143 # Make sure Domain 0 gets the required configuration
114144 #boot.kernelPackages = pkgs.boot.kernelPackages.override { features={xen_dom0=true;}; };
@@ -144,7 +174,7 @@ in
144174
145175 system.extraSystemBuilderCmds =
146176 ''
147− ln -s ${pkgs.xen}/boot/xen.gz $out/xen.gz
177+ ln -s ${cfg.package}/boot/xen.gz $out/xen.gz
148178 echo "${toString cfg.bootParams}" > $out/xen-params
149179 '';
150180
@@ -180,19 +210,19 @@ in
180210
181211
182212 environment.etc =
183− [ { source = "${pkgs.xen}/etc/xen/xl.conf";
213+ [ { source = "${cfg.package}/etc/xen/xl.conf";
184214 target = "xen/xl.conf";
185215 }
186− { source = "${pkgs.xen}/etc/xen/scripts";
216+ { source = "${cfg.package}/etc/xen/scripts";
187217 target = "xen/scripts";
188218 }
189− { source = "${pkgs.xen}/etc/default/xendomains";
219+ { source = "${cfg.package}/etc/default/xendomains";
190220 target = "default/xendomains";
191221 }
192222 ];
193223
194224 # Xen provides udev rules.
195− services.udev.packages = [ pkgs.xen ];
225+ services.udev.packages = [ cfg.package ];
196226
197227 services.udev.path = [ pkgs.bridge-utils pkgs.iproute ];
198228
@@ -217,7 +247,7 @@ in
217247 time=0
218248 timeout=30
219249 # Wait for xenstored to actually come up, timing out after 30 seconds
220− while [ $time -lt $timeout ] && ! `${pkgs.xen}/bin/xenstore-read -s / >/dev/null 2>&1` ; do
250+ while [ $time -lt $timeout ] && ! `${cfg.package}/bin/xenstore-read -s / >/dev/null 2>&1` ; do
221251 time=$(($time+1))
222252 sleep 1
223253 done
@@ -228,8 +258,8 @@ in
228258 exit 1
229259 fi
230260
231− ${pkgs.xen}/bin/xenstore-write "/local/domain/0/name" "Domain-0"
232− ${pkgs.xen}/bin/xenstore-write "/local/domain/0/domid" 0
261+ ${cfg.package}/bin/xenstore-write "/local/domain/0/name" "Domain-0"
262+ ${cfg.package}/bin/xenstore-write "/local/domain/0/domid" 0
233263 '';
234264 };
235265
@@ -256,7 +286,7 @@ in
256286 '';
257287 serviceConfig = {
258288 ExecStart = ''
259− ${pkgs.xen}/bin/xenconsoled${optionalString cfg.trace " --log=all --log-dir=/var/log/xen"}
289+ ${cfg.package}/bin/xenconsoled${optionalString cfg.trace " --log=all --log-dir=/var/log/xen"}
260290 '';
261291 };
262292 };
@@ -267,8 +297,8 @@ in
267297 wantedBy = [ "multi-user.target" ];
268298 after = [ "xen-console.service" ];
269299 serviceConfig.ExecStart = ''
270− ${pkgs.xen}/lib/xen/bin/qemu-system-i386 -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv \
271− -monitor /dev/null -serial /dev/null -parallel /dev/null
300+ ${cfg.qemu} -xen-attach -xen-domid 0 -name dom0 -M xenpv \
301+ -nographic -monitor /dev/null -serial /dev/null -parallel /dev/null
272302 '';
273303 };
274304
@@ -277,7 +307,7 @@ in
277307 description = "Xen Watchdog Daemon";
278308 wantedBy = [ "multi-user.target" ];
279309 after = [ "xen-qemu.service" ];
280− serviceConfig.ExecStart = "${pkgs.xen}/bin/xenwatchdogd 30 15";
310+ serviceConfig.ExecStart = "${cfg.package}/bin/xenwatchdogd 30 15";
281311 serviceConfig.Type = "forking";
282312 serviceConfig.RestartSec = "1";
283313 serviceConfig.Restart = "on-failure";
@@ -366,11 +396,11 @@ in
366396 before = [ "dhcpd.service" ];
367397 restartIfChanged = false;
368398 serviceConfig.RemainAfterExit = "yes";
369− path = [ pkgs.xen ];
370− environment.XENDOM_CONFIG = "${pkgs.xen}/etc/sysconfig/xendomains";
399+ path = [ cfg.package cfg.qemu-package ];
400+ environment.XENDOM_CONFIG = "${cfg.package}/etc/sysconfig/xendomains";
371401 preStart = "mkdir -p /var/lock/subsys -m 755";
372− serviceConfig.ExecStart = "${pkgs.xen}/etc/init.d/xendomains start";
373− serviceConfig.ExecStop = "${pkgs.xen}/etc/init.d/xendomains stop";
402+ serviceConfig.ExecStart = "${cfg.package}/etc/init.d/xendomains start";
403+ serviceConfig.ExecStop = "${cfg.package}/etc/init.d/xendomains stop";
374404 };
375405
376406 };
nixos/modules/virtualisation/xen-domU.nix+1−4
@@ -3,11 +3,8 @@
33{ config, pkgs, ... }:
44
55{
6− # We're being booted using pv-grub, which means that we need to
7− # generate a GRUB 1 menu without actually installing GRUB.
8− boot.loader.grub.version = 1;
6+ boot.loader.grub.version = 2;
97 boot.loader.grub.device = "nodev";
10− boot.loader.grub.extraPerEntryConfig = "root (hd0)";
118
129 boot.initrd.kernelModules =
1310 [ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront"
nixos/release-combined.nix+3−4
@@ -68,12 +68,11 @@ in rec {
6868 (all nixos.tests.boot.uefiCdrom)
6969 (all nixos.tests.boot.uefiUsb)
7070 (all nixos.tests.boot-stage1)
71− (all nixos.tests.hibernate)
71+ nixos.tests.hibernate.x86_64-linux # i686 is flaky, see #23107
7272 (all nixos.tests.ecryptfs)
7373 (all nixos.tests.ipv6)
7474 (all nixos.tests.i3wm)
75− (all nixos.tests.kde4)
76− (all nixos.tests.kde5)
75+ (all nixos.tests.plasma5)
7776 #(all nixos.tests.lightdm)
7877 (all nixos.tests.login)
7978 (all nixos.tests.misc)
@@ -93,7 +92,7 @@ in rec {
9392 (all nixos.tests.openssh)
9493 (all nixos.tests.printing)
9594 (all nixos.tests.proxy)
96− (all nixos.tests.sddm)
95+ (all nixos.tests.sddm.default)
9796 (all nixos.tests.simple)
9897 (all nixos.tests.udisks2)
9998 (all nixos.tests.xfce)
nixos/release.nix+9−5
@@ -228,6 +228,7 @@ in rec {
228228 tests.containers-imperative = callTest tests/containers-imperative.nix {};
229229 tests.containers-extra_veth = callTest tests/containers-extra_veth.nix {};
230230 tests.containers-physical_interfaces = callTest tests/containers-physical_interfaces.nix {};
231+ tests.containers-restart_networking = callTest tests/containers-restart_networking.nix {};
231232 tests.containers-tmpfs = callTest tests/containers-tmpfs.nix {};
232233 tests.containers-hosts = callTest tests/containers-hosts.nix {};
233234 tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
@@ -255,8 +256,7 @@ in rec {
255256 tests.influxdb = callTest tests/influxdb.nix {};
256257 tests.ipv6 = callTest tests/ipv6.nix {};
257258 tests.jenkins = callTest tests/jenkins.nix {};
258− tests.kde4 = callTest tests/kde4.nix {};
259− tests.kde5 = callTest tests/kde5.nix {};
259+ tests.plasma5 = callTest tests/plasma5.nix {};
260260 tests.keymap = callSubTests tests/keymap.nix {};
261261 tests.initrdNetwork = callTest tests/initrd-network.nix {};
262262 tests.keystone = callTest tests/keystone.nix {};
@@ -281,26 +281,30 @@ in rec {
281281 tests.networkingProxy = callTest tests/networking-proxy.nix {};
282282 tests.nfs3 = callTest tests/nfs.nix { version = 3; };
283283 tests.nfs4 = callTest tests/nfs.nix { version = 4; };
284+ tests.nginx = callTest tests/nginx.nix { };
284285 tests.leaps = callTest tests/leaps.nix { };
285286 tests.nsd = callTest tests/nsd.nix {};
286287 tests.openssh = callTest tests/openssh.nix {};
288+ tests.pam-oath-login = callTest tests/pam-oath-login.nix {};
287289 #tests.panamax = hydraJob (import tests/panamax.nix { system = "x86_64-linux"; });
288290 tests.peerflix = callTest tests/peerflix.nix {};
289291 tests.postgresql = callSubTests tests/postgresql.nix {};
292+ tests.pgjwt = callTest tests/pgjwt.nix {};
290293 tests.printing = callTest tests/printing.nix {};
291294 tests.proxy = callTest tests/proxy.nix {};
292295 tests.pumpio = callTest tests/pump.io.nix {};
293− tests.quagga = callTest tests/quagga.nix {};
296+ # tests.quagga = callTest tests/quagga.nix {};
294297 tests.quake3 = callTest tests/quake3.nix {};
295298 tests.runInMachine = callTest tests/run-in-machine.nix {};
296299 tests.samba = callTest tests/samba.nix {};
297− tests.sddm = callTest tests/sddm.nix {};
300+ tests.sddm = callSubTests tests/sddm.nix {};
298301 tests.simple = callTest tests/simple.nix {};
299302 tests.smokeping = callTest tests/smokeping.nix {};
300303 tests.taskserver = callTest tests/taskserver.nix {};
301304 tests.tomcat = callTest tests/tomcat.nix {};
302305 tests.udisks2 = callTest tests/udisks2.nix {};
303306 tests.virtualbox = callSubTests tests/virtualbox.nix { system = "x86_64-linux"; };
307+ tests.wordpress = callTest tests/wordpress.nix {};
304308 tests.xfce = callTest tests/xfce.nix {};
305309
306310
@@ -326,7 +330,7 @@ in rec {
326330 kde = makeClosure ({ pkgs, ... }:
327331 { services.xserver.enable = true;
328332 services.xserver.displayManager.sddm.enable = true;
329− services.xserver.desktopManager.kde5.enable = true;
333+ services.xserver.desktopManager.plasma5.enable = true;
330334 });
331335
332336 xfce = makeClosure ({ pkgs, ... }:
nixos/tests/buildbot.nixnew file+46
@@ -0,0 +1,46 @@
1+# Test ensures buildbot master comes up correctly and workers can connect
2+
3+import ./make-test.nix ({ pkgs, ... } : {
4+ name = "buildbot";
5+
6+ nodes = {
7+ bbmaster = { config, pkgs, nodes, ... }: {
8+ services.buildbot-master = {
9+ enable = true;
10+ factorySteps = [
11+ "steps.Git(repourl='git://github.com/buildbot/pyflakes.git', mode='incremental')"
12+ "steps.ShellCommand(command=['trial', 'pyflakes'])"
13+ ];
14+ changeSource = [
15+ "changes.GitPoller('git://github.com/buildbot/pyflakes.git', workdir='gitpoller-workdir', branch='master', pollinterval=300)"
16+ ];
17+ };
18+ networking.firewall.allowedTCPPorts = [ 8010 9989 ];
19+ };
20+
21+ bbworker = { config, pkgs, ... }: {
22+ services.buildbot-worker = {
23+ enable = true;
24+ masterUrl = "bbmaster:9989";
25+ };
26+ };
27+ };
28+
29+ testScript = ''
30+
31+ $bbmaster->waitForUnit("network.target");
32+ $bbworker->waitForUnit("network.target");
33+
34+ # Additional tests to be added
35+ #$bbmaster->waitForUnit("buildbot-master.service");
36+ #$bbmaster->waitUntilSucceeds("curl -s --head http://bbmaster:8010") =~ /200 OK/ or die;
37+ #$bbworker->waitForUnit("buildbot-worker.service");
38+ #$bbworker->waitUntilSucceeds("tail -10 /home/bbworker/worker/twistd.log") =~ /success/ or die;
39+
40+ '';
41+
42+ meta = with pkgs.stdenv.lib.maintainers; {
43+ maintainers = [ nand0p ];
44+ };
45+
46+})
nixos/tests/cjdns.nix+6−6
@@ -109,14 +109,14 @@ import ./make-test.nix ({ pkgs, ...} : {
109109
110110 # ping a few times each to let the routing table establish itself
111111
112− $alice->succeed("ping6 -c 4 $carolIp6");
113− $bob->succeed("ping6 -c 4 $carolIp6");
112+ $alice->succeed("ping -c 4 $carolIp6");
113+ $bob->succeed("ping -c 4 $carolIp6");
114114
115− $carol->succeed("ping6 -c 4 $aliceIp6");
116− $carol->succeed("ping6 -c 4 $bobIp6");
115+ $carol->succeed("ping -c 4 $aliceIp6");
116+ $carol->succeed("ping -c 4 $bobIp6");
117117
118− $alice->succeed("ping6 -c 4 $bobIp6");
119− $bob->succeed("ping6 -c 4 $aliceIp6");
118+ $alice->succeed("ping -c 4 $bobIp6");
119+ $bob->succeed("ping -c 4 $aliceIp6");
120120
121121 $alice->waitForUnit("httpd.service");
122122
nixos/tests/containers-bridge.nix+1−1
@@ -66,7 +66,7 @@ import ./make-test.nix ({ pkgs, ...} : {
6666 "${containerIp6}" =~ /([^\/]+)\/([0-9+])/;
6767 my $ip6 = $1;
6868 chomp $ip6;
69− $machine->succeed("ping6 -n -c 1 $ip6");
69+ $machine->succeed("ping -n -c 1 $ip6");
7070 $machine->succeed("curl --fail http://[$ip6]/ > /dev/null");
7171
7272 # Stop the container.
nixos/tests/containers-extra_veth.nix+1−1
@@ -84,7 +84,7 @@ import ./make-test.nix ({ pkgs, ...} : {
8484
8585 # Ping on main veth
8686 $machine->succeed("ping -n -c 1 192.168.0.100");
87− $machine->succeed("ping6 -n -c 1 fc00::2");
87+ $machine->succeed("ping -n -c 1 fc00::2");
8888
8989 # Ping on the first extra veth
9090 $machine->succeed("ping -n -c 1 192.168.1.100 >&2");
nixos/tests/containers-ipv6.nix+1−1
@@ -47,7 +47,7 @@ import ./make-test.nix ({ pkgs, ...} : {
4747 # multi-user.target, we should now be able to access it.
4848 my $ip = "${localIp}";
4949 chomp $ip;
50− $machine->succeed("ping6 -n -c 1 $ip");
50+ $machine->succeed("ping -n -c 1 $ip");
5151 $machine->succeed("curl --fail http://[$ip]/ > /dev/null");
5252
5353 # Stop the container.
nixos/tests/containers-portforward.nixnew file+63
@@ -0,0 +1,63 @@
1+# Test for NixOS' container support.
2+
3+let
4+ hostIp = "192.168.0.1";
5+ hostPort = 10080;
6+ containerIp = "192.168.0.100";
7+ containerPort = 80;
8+in
9+
10+import ./make-test.nix ({ pkgs, ...} : {
11+ name = "containers-portforward";
12+ meta = with pkgs.stdenv.lib.maintainers; {
13+ maintainers = [ aristid aszlig eelco chaoflow kampfschlaefer ianwookim ];
14+ };
15+
16+ machine =
17+ { config, pkgs, ... }:
18+ { imports = [ ../modules/installer/cd-dvd/channel.nix ];
19+ virtualisation.writableStore = true;
20+ virtualisation.memorySize = 768;
21+
22+ containers.webserver =
23+ { privateNetwork = true;
24+ hostAddress = hostIp;
25+ localAddress = containerIp;
26+ forwardPorts = [ { protocol = "tcp"; hostPort = hostPort; containerPort = containerPort; } ];
27+ config =
28+ { services.httpd.enable = true;
29+ services.httpd.adminAddr = "foo@example.org";
30+ networking.firewall.allowedTCPPorts = [ 80 ];
31+ networking.firewall.allowPing = true;
32+ };
33+ };
34+
35+ virtualisation.pathsInNixDB = [ pkgs.stdenv ];
36+ };
37+
38+ testScript =
39+ ''
40+ $machine->succeed("nixos-container list") =~ /webserver/ or die;
41+
42+ # Start the webserver container.
43+ $machine->succeed("nixos-container start webserver");
44+
45+ # wait two seconds for the container to start and the network to be up
46+ sleep 2;
47+
48+ # Since "start" returns after the container has reached
49+ # multi-user.target, we should now be able to access it.
50+ #my $ip = $machine->succeed("nixos-container show-ip webserver");
51+ #chomp $ip;
52+ $machine->succeed("ping -n -c1 ${hostIp}");
53+ $machine->succeed("curl --fail http://${hostIp}:${toString hostPort}/ > /dev/null");
54+
55+ # Stop the container.
56+ $machine->succeed("nixos-container stop webserver");
57+ $machine->fail("curl --fail --connect-timeout 2 http://${hostIp}:${toString hostPort}/ > /dev/null");
58+
59+ # Destroying a declarative container should fail.
60+ $machine->fail("nixos-container destroy webserver");
61+ '';
62+
63+})
nixos/tests/containers-restart_networking.nixnew file+114
@@ -0,0 +1,114 @@
1+# Test for NixOS' container support.
2+
3+let
4+ client_base = rec {
5+ networking.firewall.enable = false;
6+
7+ containers.webserver = {
8+ autoStart = true;
9+ privateNetwork = true;
10+ hostBridge = "br0";
11+ config = {
12+ networking.firewall.enable = false;
13+ networking.firewall.allowPing = true;
14+ networking.interfaces.eth0.ip4 = [
15+ { address = "192.168.1.122"; prefixLength = 24; }
16+ ];
17+ };
18+ };
19+ };
20+in import ./make-test.nix ({ pkgs, lib, ...} :
21+{
22+ name = "containers-restart_networking";
23+ meta = with pkgs.stdenv.lib.maintainers; {
24+ maintainers = [ kampfschlaefer ];
25+ };
26+
27+ nodes = {
28+ client = { lib, pkgs, ... }: client_base // {
29+ virtualisation.vlans = [ 1 ];
30+
31+ networking.bridges.br0 = {
32+ interfaces = [];
33+ rstp = false;
34+ };
35+ networking.interfaces = {
36+ eth1.ip4 = lib.mkOverride 0 [ ];
37+ br0.ip4 = [{ address = "192.168.1.1"; prefixLength = 24; }];
38+ };
39+
40+ };
41+ client_eth1 = { lib, pkgs, ... }: client_base // {
42+ networking.bridges.br0 = {
43+ interfaces = [ "eth1" ];
44+ rstp = false;
45+ };
46+ networking.interfaces = {
47+ eth1.ip4 = lib.mkOverride 0 [ ];
48+ br0.ip4 = [{ address = "192.168.1.2"; prefixLength = 24; }];
49+ };
50+ };
51+ client_eth1_rstp = { lib, pkgs, ... }: client_base // {
52+ networking.bridges.br0 = {
53+ interfaces = [ "eth1" ];
54+ rstp = true;
55+ };
56+ networking.interfaces = {
57+ eth1.ip4 = lib.mkOverride 0 [ ];
58+ br0.ip4 = [{ address = "192.168.1.2"; prefixLength = 24; }];
59+ };
60+ };
61+ };
62+
63+ testScript = {nodes, ...}: let
64+ originalSystem = nodes.client.config.system.build.toplevel;
65+ eth1_bridged = nodes.client_eth1.config.system.build.toplevel;
66+ eth1_rstp = nodes.client_eth1_rstp.config.system.build.toplevel;
67+ in ''
68+ $client->start();
69+
70+ $client->waitForUnit("default.target");
71+
72+ subtest "initial state", sub {
73+ $client->succeed("ping 192.168.1.122 -c 1 -n >&2");
74+ $client->succeed("nixos-container run webserver -- ping -c 1 -n 192.168.1.1 >&2");
75+
76+ $client->fail("ip l show eth1 |grep \"master br0\" >&2");
77+ $client->fail("grep eth1 /run/br0.interfaces >&2");
78+ };
79+
80+ subtest "interfaces without stp", sub {
81+ $client->succeed("${eth1_bridged}/bin/switch-to-configuration test >&2");
82+
83+ $client->succeed("ping 192.168.1.122 -c 1 -n >&2");
84+ $client->succeed("nixos-container run webserver -- ping -c 1 -n 192.168.1.2 >&2");
85+
86+ $client->succeed("ip l show eth1 |grep \"master br0\" >&2");
87+ $client->succeed("grep eth1 /run/br0.interfaces >&2");
88+ };
89+
90+ # activating rstp needs another service, therefor the bridge will restart and the container will loose its connectivity
91+ #subtest "interfaces with rstp", sub {
92+ # $client->succeed("${eth1_rstp}/bin/switch-to-configuration test >&2");
93+ # $client->execute("ip -4 a >&2");
94+ # $client->execute("ip l >&2");
95+ #
96+ # $client->succeed("ping 192.168.1.122 -c 1 -n >&2");
97+ # $client->succeed("nixos-container run webserver -- ping -c 1 -n 192.168.1.2 >&2");
98+ #
99+ # $client->succeed("ip l show eth1 |grep \"master br0\" >&2");
100+ # $client->succeed("grep eth1 /run/br0.interfaces >&2");
101+ #};
102+
103+ subtest "back to no interfaces and no stp", sub {
104+ $client->succeed("${originalSystem}/bin/switch-to-configuration test >&2");
105+
106+ $client->succeed("ping 192.168.1.122 -c 1 -n >&2");
107+ $client->succeed("nixos-container run webserver -- ping -c 1 -n 192.168.1.1 >&2");
108+
109+ $client->fail("ip l show eth1 |grep \"master br0\" >&2");
110+ $client->fail("grep eth1 /run/br0.interfaces >&2");
111+ };
112+ '';
113+
114+})
nixos/tests/dnscrypt-proxy.nix+1
@@ -15,6 +15,7 @@ import ./make-test.nix ({ pkgs, ... }: {
1515
1616 services.dnscrypt-proxy.enable = true;
1717 services.dnscrypt-proxy.localPort = localProxyPort;
18+ services.dnscrypt-proxy.extraArgs = [ "-X libdcplugin_example.so" ];
1819
1920 services.dnsmasq.enable = true;
2021 services.dnsmasq.servers = [ "127.0.0.1#${toString localProxyPort}" ];
nixos/tests/docker.nix+17
@@ -11,6 +11,21 @@ import ./make-test.nix ({ pkgs, ...} : {
1111 { config, pkgs, ... }:
1212 {
1313 virtualisation.docker.enable = true;
14+
15+ users.users = {
16+ noprivs = {
17+ isNormalUser = true;
18+ description = "Can't access the docker daemon";
19+ password = "foobar";
20+ };
21+
22+ hasprivs = {
23+ isNormalUser = true;
24+ description = "Can access the docker daemon";
25+ password = "foobar";
26+ extraGroups = [ "docker" ];
27+ };
28+ };
1429 };
1530 };
1631
@@ -21,6 +36,8 @@ import ./make-test.nix ({ pkgs, ...} : {
2136 $docker->succeed("tar cv --files-from /dev/null | docker import - scratchimg");
2237 $docker->succeed("docker run -d --name=sleeping -v /nix/store:/nix/store -v /run/current-system/sw/bin:/bin scratchimg /bin/sleep 10");
2338 $docker->succeed("docker ps | grep sleeping");
39+ $docker->succeed("sudo -u hasprivs docker ps");
40+ $docker->fail("sudo -u noprivs docker ps");
2441 $docker->succeed("docker stop sleeping");
2542 '';
2643})
nixos/tests/ec2.nix+19−2
@@ -25,8 +25,13 @@ let
2525 # access. Mostly copied from
2626 # modules/profiles/installation-device.nix.
2727 system.extraDependencies =
28− [ pkgs.stdenv pkgs.busybox pkgs.perlPackages.ArchiveCpio
29− pkgs.unionfs-fuse pkgs.mkinitcpio-nfs-utils
28+ with pkgs; [
29+ stdenv busybox perlPackages.ArchiveCpio unionfs-fuse mkinitcpio-nfs-utils
30+
31+ # These are used in the configure-from-userdata tests for EC2. Httpd and valgrind are requested
32+ # directly by the configuration we set, and libxslt.bin is used indirectly as a build dependency
33+ # of the derivation for dbus configuration files.
34+ apacheHttpd valgrind.doc libxslt.bin
3035 ];
3136 }
3237 ];
@@ -137,6 +142,8 @@ in {
137142
138143 # ### http://nixos.org/channels/nixos-unstable nixos
139144 userData = ''
145+ { pkgs, ... }:
146+
140147 {
141148 imports = [
142149 <nixpkgs/nixos/modules/virtualisation/amazon-image.nix>
@@ -146,12 +153,22 @@ in {
146153 environment.etc.testFile = {
147154 text = "whoa";
148155 };
156+
157+ services.httpd = {
158+ enable = true;
159+ adminAddr = "test@example.org";
160+ documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
161+ };
162+ networking.firewall.allowedTCPPorts = [ 80 ];
149163 }
150164 '';
151165 script = ''
152166 $machine->start;
153167 $machine->waitForFile("/etc/testFile");
154168 $machine->succeed("cat /etc/testFile | grep -q 'whoa'");
169+
170+ $machine->waitForUnit("httpd.service");
171+ $machine->succeed("curl http://localhost | grep Valgrind");
155172 '';
156173 };
157174}
nixos/tests/firefox.nix+8−2
@@ -8,15 +8,21 @@ import ./make-test.nix ({ pkgs, ... }: {
88 { config, pkgs, ... }:
99
1010 { imports = [ ./common/x11.nix ];
11− environment.systemPackages = [ pkgs.firefox ];
11+ environment.systemPackages = [ pkgs.firefox pkgs.xdotool ];
1212 };
1313
1414 testScript =
1515 ''
1616 $machine->waitForX;
17− $machine->execute("firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html &");
17+ $machine->execute("xterm -e 'firefox file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' &");
1818 $machine->waitForWindow(qr/Valgrind/);
1919 $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");
2026 $machine->screenshot("screen");
2127 '';
2228
nixos/tests/gnome3-gdm.nix+1
@@ -11,6 +11,7 @@ import ./make-test.nix ({ pkgs, ...} : {
1111
1212 services.xserver.enable = true;
1313
14+ services.xserver.displayManager.slim.enable = false;
1415 services.xserver.displayManager.gdm = {
1516 enable = true;
1617 autoLogin = {
nixos/tests/hibernate.nix+2−1
@@ -13,7 +13,7 @@ import ./make-test.nix (pkgs: {
1313
1414 networking.firewall.allowedTCPPorts = [ 4444 ];
1515
16− systemd.services.listener.serviceConfig.ExecStart = "${pkgs.netcat}/bin/nc -l 4444";
16+ systemd.services.listener.serviceConfig.ExecStart = "${pkgs.netcat}/bin/nc -l 4444 -k";
1717 };
1818
1919 probe = { config, lib, pkgs, ...}: {
@@ -32,6 +32,7 @@ import ./make-test.nix (pkgs: {
3232 $machine->succeed("mkswap /dev/vdb");
3333 $machine->succeed("swapon -a");
3434 $machine->startJob("listener");
35+ $machine->waitForOpenPort(4444);
3536 $machine->succeed("systemctl hibernate &");
3637 $machine->waitForShutdown;
3738 $machine->start;
nixos/tests/ipv6.nix+6−6
@@ -54,22 +54,22 @@ import ./make-test.nix ({ pkgs, ...} : {
5454 }
5555
5656 subtest "loopback address", sub {
57− $client->succeed("ping6 -c 1 ::1 >&2");
58− $client->fail("ping6 -c 1 ::2 >&2");
57+ $client->succeed("ping -c 1 ::1 >&2");
58+ $client->fail("ping -c 1 ::2 >&2");
5959 };
6060
6161 subtest "local link addressing", sub {
6262 my $clientIp = waitForAddress $client, "eth1", "link";
6363 my $serverIp = waitForAddress $server, "eth1", "link";
64− $client->succeed("ping6 -c 1 -I eth1 $clientIp >&2");
65− $client->succeed("ping6 -c 1 -I eth1 $serverIp >&2");
64+ $client->succeed("ping -c 1 $clientIp%eth1 >&2");
65+ $client->succeed("ping -c 1 $serverIp%eth1 >&2");
6666 };
6767
6868 subtest "global addressing", sub {
6969 my $clientIp = waitForAddress $client, "eth1", "global";
7070 my $serverIp = waitForAddress $server, "eth1", "global";
71− $client->succeed("ping6 -c 1 $clientIp >&2");
72− $client->succeed("ping6 -c 1 $serverIp >&2");
71+ $client->succeed("ping -c 1 $clientIp >&2");
72+ $client->succeed("ping -c 1 $serverIp >&2");
7373 $client->succeed("curl --fail -g http://[$serverIp]");
7474 $client->fail("curl --fail -g http://[$clientIp]");
7575 };
nixos/tests/kde4.nixdeleted−70
@@ -1,70 +0,0 @@
1−import ./make-test.nix ({ pkgs, ... }: {
2− name = "kde4";
3− meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ domenkozar eelco chaoflow ];
5− };
6−
7− machine =
8− { config, pkgs, ... }:
9−
10− { imports = [ ./common/user-account.nix ];
11−
12− virtualisation.memorySize = 1024;
13−
14− services.xserver.enable = true;
15−
16− services.httpd.enable = true;
17− services.httpd.adminAddr = "foo@example.org";
18− services.httpd.documentRoot = "${pkgs.valgrind.doc}/share/doc/valgrind/html";
19−
20− services.xserver.displayManager.kdm.enable = true;
21− services.xserver.displayManager.kdm.extraConfig =
22− ''
23− [X-:0-Core]
24− AutoLoginEnable=true
25− AutoLoginUser=alice
26− AutoLoginPass=foobar
27− '';
28−
29− services.xserver.desktopManager.kde4.enable = true;
30−
31− # Include most of KDE. We don't really test these here, but at
32− # least they should build.
33− environment.systemPackages =
34− [ pkgs.kde4.kdemultimedia
35− pkgs.kde4.kdegraphics
36− pkgs.kde4.kdeutils
37− pkgs.kde4.kdegames
38− #pkgs.kde4.kdeedu
39− pkgs.kde4.kdeaccessibility
40− pkgs.kde4.kdeadmin
41− pkgs.kde4.kdenetwork
42− pkgs.kde4.kdetoys
43− pkgs.kde4.kdewebdev
44− pkgs.xorg.xmessage
45− ];
46− };
47−
48− testScript = ''
49− $machine->waitUntilSucceeds("pgrep plasma-desktop");
50− $machine->succeed("xauth merge ~alice/.Xauthority");
51− $machine->waitForWindow(qr/plasma-desktop/);
52−
53− # Check that logging in has given the user ownership of devices.
54− $machine->succeed("getfacl /dev/snd/timer | grep -q alice");
55−
56− $machine->execute("su - alice -c 'DISPLAY=:0.0 kwrite /var/log/messages &'");
57− $machine->waitForWindow(qr/messages.*KWrite/);
58−
59− $machine->execute("su - alice -c 'DISPLAY=:0.0 konqueror http://localhost/ &'");
60− $machine->waitForWindow(qr/Valgrind.*Konqueror/);
61−
62− $machine->execute("su - alice -c 'DISPLAY=:0.0 gwenview ${pkgs.kde4.kde_wallpapers}/share/wallpapers/Hanami/contents/images/1280x1024.jpg &'");
63− $machine->waitForWindow(qr/Gwenview/);
64−
65− $machine->sleep(10);
66−
67− $machine->screenshot("screen");
68− '';
69−
70−})
nixos/tests/leaps.nix+2−1
@@ -24,6 +24,7 @@ import ./make-test.nix ({ pkgs, ... }:
2424 ''
2525 startAll;
2626 $server->waitForOpenPort(6666);
27− $client->succeed("curl http://server:6666/leaps/ | grep -i 'leaps'");
27+ $client->waitForUnit("network.target");
28+ $client->succeed("${pkgs.curl}/bin/curl http://server:6666/leaps/ | grep -i 'leaps'");
2829 '';
2930})
nixos/tests/munin.nix+1
@@ -29,6 +29,7 @@ import ./make-test.nix ({ pkgs, ...} : {
2929 startAll;
3030
3131 $one->waitForUnit("munin-node.service");
32+ $one->succeed('systemctl start munin-cron');
3233 $one->waitForFile("/var/lib/munin/one/one-uptime-uptime-g.rrd");
3334 $one->waitForFile("/var/www/munin/one/index.html");
3435 '';
nixos/tests/networking.nix+16−14
@@ -1,4 +1,6 @@
1−{ system ? builtins.currentSystem, networkd }:
1+{ system ? builtins.currentSystem
2+# bool: whether to use networkd in the tests
3+, networkd }:
24
35with import ../lib/testing.nix { inherit system; };
46with pkgs.lib;
@@ -166,24 +168,24 @@ let
166168 # Test vlan 1
167169 $client->waitUntilSucceeds("ping -c 1 192.168.1.1");
168170 $client->waitUntilSucceeds("ping -c 1 192.168.1.2");
169− $client->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:1::1");
170− $client->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:1::2");
171+ $client->waitUntilSucceeds("ping -c 1 fd00:1234:5678:1::1");
172+ $client->waitUntilSucceeds("ping -c 1 fd00:1234:5678:1::2");
171173
172174 $router->waitUntilSucceeds("ping -c 1 192.168.1.1");
173175 $router->waitUntilSucceeds("ping -c 1 192.168.1.2");
174− $router->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:1::1");
175− $router->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:1::2");
176+ $router->waitUntilSucceeds("ping -c 1 fd00:1234:5678:1::1");
177+ $router->waitUntilSucceeds("ping -c 1 fd00:1234:5678:1::2");
176178
177179 # Test vlan 2
178180 $client->waitUntilSucceeds("ping -c 1 192.168.2.1");
179181 $client->waitUntilSucceeds("ping -c 1 192.168.2.2");
180− $client->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:2::1");
181− $client->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:2::2");
182+ $client->waitUntilSucceeds("ping -c 1 fd00:1234:5678:2::1");
183+ $client->waitUntilSucceeds("ping -c 1 fd00:1234:5678:2::2");
182184
183185 $router->waitUntilSucceeds("ping -c 1 192.168.2.1");
184186 $router->waitUntilSucceeds("ping -c 1 192.168.2.2");
185− $router->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:2::1");
186− $router->waitUntilSucceeds("ping6 -c 1 fd00:1234:5678:2::2");
187+ $router->waitUntilSucceeds("ping -c 1 fd00:1234:5678:2::1");
188+ $router->waitUntilSucceeds("ping -c 1 fd00:1234:5678:2::2");
187189 '';
188190 };
189191 dhcpOneIf = {
@@ -236,8 +238,8 @@ let
236238 firewall.allowPing = true;
237239 useDHCP = false;
238240 bonds.bond = {
239− mode = "balance-rr";
240241 interfaces = [ "eth1" "eth2" ];
242+ driverOptions.mode = "balance-rr";
241243 };
242244 interfaces.eth1.ip4 = mkOverride 0 [ ];
243245 interfaces.eth2.ip4 = mkOverride 0 [ ];
@@ -390,11 +392,11 @@ let
390392 $client2->succeed("ip addr >&2");
391393
392394 # Test ipv6
393− $client1->waitUntilSucceeds("ping6 -c 1 fc00::1");
394− $client1->waitUntilSucceeds("ping6 -c 1 fc00::2");
395+ $client1->waitUntilSucceeds("ping -c 1 fc00::1");
396+ $client1->waitUntilSucceeds("ping -c 1 fc00::2");
395397
396− $client2->waitUntilSucceeds("ping6 -c 1 fc00::1");
397− $client2->waitUntilSucceeds("ping6 -c 1 fc00::2");
398+ $client2->waitUntilSucceeds("ping -c 1 fc00::1");
399+ $client2->waitUntilSucceeds("ping -c 1 fc00::2");
398400 '';
399401 };
400402 vlan = let
nixos/tests/nginx.nixnew file+42
@@ -0,0 +1,42 @@
1+# verifies:
2+# 1. nginx generates config file with shared http context definitions above
3+# generated virtual hosts config.
4+
5+import ./make-test.nix ({ pkgs, ...} : {
6+ name = "jenkins";
7+ meta = with pkgs.stdenv.lib.maintainers; {
8+ maintainers = [ mbbx6spp ];
9+ };
10+
11+ nodes = {
12+ webserver =
13+ { config, pkgs, ... }:
14+ { services.nginx.enable = true;
15+ services.nginx.commonHttpConfig = ''
16+ log_format ceeformat '@cee: {"status":"$status",'
17+ '"request_time":$request_time,'
18+ '"upstream_response_time":$upstream_response_time,'
19+ '"pipe":"$pipe","bytes_sent":$bytes_sent,'
20+ '"connection":"$connection",'
21+ '"remote_addr":"$remote_addr",'
22+ '"host":"$host",'
23+ '"timestamp":"$time_iso8601",'
24+ '"request":"$request",'
25+ '"http_referer":"$http_referer",'
26+ '"upstream_addr":"$upstream_addr"}';
27+ '';
28+ services.nginx.virtualHosts."0.my.test" = {
29+ extraConfig = ''
30+ access_log syslog:server=unix:/dev/log,facility=user,tag=mytag,severity=info ceeformat;
31+ '';
32+ };
33+ };
34+ };
35+
36+ testScript = ''
37+ startAll;
38+
39+ $webserver->waitForUnit("nginx");
40+ $webserver->waitForOpenPort("80");
41+ '';
42+})
nixos/tests/pam-oath-login.nixnew file+126
@@ -0,0 +1,126 @@
1+import ./make-test.nix ({ pkgs, latestKernel ? false, ... }:
2+
3+let
4+ oathSnakeoilSecret = "cdd4083ef8ff1fa9178c6d46bfb1a3";
5+
6+ # With HOTP mode the password is calculated based on a counter of
7+ # how many passwords have been made. In this env, we'll always be on
8+ # the 0th counter, so the password is static.
9+ #
10+ # Generated in nix-shell -p oathToolkit
11+ # via: oathtool -v -d6 -w10 cdd4083ef8ff1fa9178c6d46bfb1a3
12+ # and picking a the first 4:
13+ oathSnakeOilPassword1 = "143349";
14+ oathSnakeOilPassword2 = "801753";
15+ oathSnakeOilPassword3 = "019933";
16+ oathSnakeOilPassword4 = "403895";
17+
18+ alicePassword = "foobar";
19+ # Generated via: mkpasswd -m sha-512 and passing in "foobar"
20+ hashedAlicePassword = "$6$MsMrE1q.1HrCgTS$Vq2e/uILzYjSN836TobAyN9xh9oi7EmCmucnZID25qgPoibkw8qTCugiAPnn4eCGvn1A.7oEBFJaaGUaJsQQY.";
21+
22+in
23+{
24+ name = "pam-oath-login";
25+
26+ machine =
27+ { config, pkgs, lib, ... }:
28+ {
29+ security.pam.oath = {
30+ enable = true;
31+ };
32+
33+ users.extraUsers.alice = {
34+ isNormalUser = true;
35+ name = "alice";
36+ uid = 1000;
37+ hashedPassword = hashedAlicePassword;
38+ extraGroups = [ "wheel" ];
39+ createHome = true;
40+ home = "/home/alice";
41+ };
42+
43+
44+ systemd.services.setupOathSnakeoilFile = {
45+ wantedBy = [ "default.target" ];
46+ before = [ "default.target" ];
47+ unitConfig = {
48+ type = "oneshot";
49+ RemainAfterExit = true;
50+ };
51+ script = ''
52+ touch /etc/users.oath
53+ chmod 600 /etc/users.oath
54+ chown root /etc/users.oath
55+ echo "HOTP/E/6 alice - ${oathSnakeoilSecret}" > /etc/users.oath
56+ '';
57+ };
58+ };
59+
60+ testScript =
61+ ''
62+ $machine->waitForUnit('multi-user.target');
63+ $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty1'");
64+ $machine->screenshot("postboot");
65+
66+
67+ subtest "Invalid password", sub {
68+ $machine->fail("pgrep -f 'agetty.*tty2'");
69+ $machine->sendKeys("alt-f2");
70+ $machine->waitUntilSucceeds("[ \$(fgconsole) = 2 ]");
71+ $machine->waitForUnit('getty@tty2.service');
72+ $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty2'");
73+
74+ $machine->waitUntilTTYMatches(2, "login: ");
75+ $machine->sendChars("alice\n");
76+ $machine->waitUntilTTYMatches(2, "login: alice");
77+ $machine->waitUntilSucceeds("pgrep login");
78+
79+ $machine->waitUntilTTYMatches(2, "One-time password");
80+ $machine->sendChars("${oathSnakeOilPassword1}\n");
81+ $machine->waitUntilTTYMatches(2, "Password: ");
82+ $machine->sendChars("blorg\n");
83+ $machine->waitUntilTTYMatches(2, "Login incorrect");
84+ };
85+
86+ subtest "Invalid oath token", sub {
87+ $machine->fail("pgrep -f 'agetty.*tty3'");
88+ $machine->sendKeys("alt-f3");
89+ $machine->waitUntilSucceeds("[ \$(fgconsole) = 3 ]");
90+ $machine->waitForUnit('getty@tty3.service');
91+ $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty3'");
92+
93+ $machine->waitUntilTTYMatches(3, "login: ");
94+ $machine->sendChars("alice\n");
95+ $machine->waitUntilTTYMatches(3, "login: alice");
96+ $machine->waitUntilSucceeds("pgrep login");
97+ $machine->waitUntilTTYMatches(3, "One-time password");
98+ $machine->sendChars("000000\n");
99+ $machine->waitUntilTTYMatches(3, "Login incorrect");
100+ $machine->waitUntilTTYMatches(3, "login:");
101+ };
102+
103+ subtest "Happy path (both passwords are mandatory to get us in)", sub {
104+ $machine->fail("pgrep -f 'agetty.*tty4'");
105+ $machine->sendKeys("alt-f4");
106+ $machine->waitUntilSucceeds("[ \$(fgconsole) = 4 ]");
107+ $machine->waitForUnit('getty@tty4.service');
108+ $machine->waitUntilSucceeds("pgrep -f 'agetty.*tty4'");
109+
110+ $machine->waitUntilTTYMatches(4, "login: ");
111+ $machine->sendChars("alice\n");
112+ $machine->waitUntilTTYMatches(4, "login: alice");
113+ $machine->waitUntilSucceeds("pgrep login");
114+ $machine->waitUntilTTYMatches(4, "One-time password");
115+ $machine->sendChars("${oathSnakeOilPassword2}\n");
116+ $machine->waitUntilTTYMatches(4, "Password: ");
117+ $machine->sendChars("${alicePassword}\n");
118+
119+ $machine->waitUntilSucceeds("pgrep -u alice bash");
120+ $machine->sendChars("touch done4\n");
121+ $machine->waitForFile("/home/alice/done4");
122+ };
123+
124+ '';
125+
126+})
nixos/tests/pgjwt.nixnew file+42
@@ -0,0 +1,42 @@
1+import ./make-test.nix ({ pkgs, ...} :
2+let
3+ test = pkgs.writeText "test.sql" ''
4+ CREATE EXTENSION pgcrypto;
5+ CREATE EXTENSION pgjwt;
6+ select sign('{"sub":"1234567890","name":"John Doe","admin":true}', 'secret');
7+ select * from verify('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ', 'secret');
8+ '';
9+in
10+{
11+ name = "pgjwt";
12+ meta = with pkgs.stdenv.lib.maintainers; {
13+ maintainers = [ spinus ];
14+ };
15+
16+ nodes = {
17+ master =
18+ { pkgs, config, ... }:
19+
20+ {
21+ services.postgresql = let mypg = pkgs.postgresql95; in {
22+ enable = true;
23+ package = mypg;
24+ extraPlugins =[pkgs.pgjwt];
25+ initialScript = pkgs.writeText "postgresql-init.sql"
26+ ''
27+ CREATE ROLE postgres WITH superuser login createdb;
28+ '';
29+ };
30+ };
31+ };
32+
33+ testScript = ''
34+ startAll;
35+ $master->waitForUnit("postgresql");
36+ $master->succeed("timeout 10 bash -c 'while ! psql postgres -c \"SELECT 1;\";do sleep 1;done;'");
37+ $master->succeed("cat ${test} | psql postgres");
38+ # I can't make original test working :[
39+ # $master->succeed("${pkgs.perlPackages.TAPParserSourceHandlerpgTAP}/bin/pg_prove -d postgres ${pkgs.pgjwt.src}/test.sql");
40+
41+ '';
42+})
nixos/tests/phabricator.nix+1−1
@@ -54,7 +54,7 @@ import ./make-test.nix ({ pkgs, ... }: {
5454 client =
5555 { config, pkgs, ... }:
5656 { imports = [ ./common/x11.nix ];
57− services.xserver.desktopManager.kde5.enable = true;
57+ services.xserver.desktopManager.plasma5.enable = true;
5858 };
5959 };
6060
nixos/tests/kde5.nix → nixos/tests/plasma5.nixrenamed+17−14
@@ -1,31 +1,34 @@
11import ./make-test.nix ({ pkgs, ...} :
22
33{
4− name = "kde5";
4+ name = "plasma5";
55 meta = with pkgs.stdenv.lib.maintainers; {
66 maintainers = [ ttuegel ];
77 };
88
99 machine = { lib, ... }: {
1010 imports = [ ./common/user-account.nix ];
11− virtualisation.memorySize = 1024;
1211 services.xserver.enable = true;
13− services.xserver.displayManager.sddm = {
14− enable = true;
15− autoLogin = {
16− enable = true;
17− user = "alice";
18− };
19− };
20− services.xserver.desktopManager.kde5.enable = true;
21− virtualisation.writableStore = false; # FIXME
12+ services.xserver.displayManager.sddm.enable = true;
13+ services.xserver.desktopManager.plasma5.enable = true;
14+ services.xserver.desktopManager.default = "plasma5";
15+ virtualisation.memorySize = 1024;
2216 };
2317
24− testScript = { nodes, ... }:
25− let xdo = "${pkgs.xdotool}/bin/xdotool"; in
26− ''
18+ enableOCR = true;
19+
20+ testScript = { nodes, ... }: let
21+ user = nodes.machine.config.users.extraUsers.alice;
22+ xdo = "${pkgs.xdotool}/bin/xdotool";
23+ in ''
2724 startAll;
2825
26+ # Wait for display manager to start
27+ $machine->waitForText(qr/${user.description}/);
28+ $machine->screenshot("sddm");
29+
30+ # Log in
31+ $machine->sendChars("${user.password}\n");
2932 $machine->waitForFile("/home/alice/.Xauthority");
3033 $machine->succeed("xauth merge ~alice/.Xauthority");
3134
nixos/tests/pump.io.nix+7−12
@@ -51,16 +51,6 @@ import ./make-test.nix ({ pkgs, ...} : let
5151 Vd5WD2HJhLb9u0UxVp9vfWIUDgydopV5ZmWCQ5YvNepb1w==
5252 -----END CERTIFICATE-----
5353 '';
54−
55− makePump = { opts ? { } }:
56− {
57− enable = true;
58− sslCert = pkgs.writeText "snakeoil.cert" snakeOilCert;
59− sslKey = pkgs.writeText "snakeoil.pem" snakeOilKey;
60− secret = "test";
61− site = "test";
62− } // opts;
63−
6454in {
6555 name = "pumpio";
6656 meta = with pkgs.stdenv.lib.maintainers; {
@@ -72,9 +62,14 @@ in {
7262 { config, pkgs, ... }:
7363 {
7464 services = {
75− pumpio = makePump { opts = {
65+ pumpio = {
7666 port = 443;
77− }; };
67+ enable = true;
68+ sslCert = pkgs.writeText "snakeoil.cert" snakeOilCert;
69+ sslKey = pkgs.writeText "snakeoil.pem" snakeOilKey;
70+ secretFile = pkgs.writeText "secretFile" "test123";
71+ site = "test";
72+ };
7873 mongodb.enable = true;
7974 mongodb.extraConfig = ''
8075 storage.journal.enabled: false
nixos/tests/samba.nix+2−3
@@ -37,12 +37,11 @@ import ./make-test.nix ({ pkgs, ... }:
3737 testScript =
3838 ''
3939 $server->start;
40− $server->waitForUnit("samba-smbd");
41− $server->waitForUnit("samba-nmbd");
40+ $server->waitForUnit("samba.target");
4241 $server->succeed("mkdir -p /public; echo bar > /public/foo");
4342
4443 $client->start;
45− $client->waitForUnit("network.target");
44+ $client->waitForUnit("remote-fs.target");
4645 $client->succeed("[[ \$(cat /public/foo) = bar ]]");
4746 '';
4847})
nixos/tests/sddm.nix+62−24
@@ -1,28 +1,66 @@
1−import ./make-test.nix ({ pkgs, ...} : {
2− name = "sddm";
3− meta = with pkgs.stdenv.lib.maintainers; {
4− maintainers = [ ttuegel ];
5− };
1+{ system ? builtins.currentSystem }:
2+
3+with import ../lib/testing.nix { inherit system; };
4+
5+let
6+ inherit (pkgs) lib;
7+
8+ tests = {
9+ default = {
10+ name = "sddm";
611
7− machine = { lib, ... }: {
8− imports = [ ./common/user-account.nix ];
9− services.xserver.enable = true;
10− services.xserver.displayManager.sddm = {
11− enable = true;
12− autoLogin = {
13− enable = true;
14− user = "alice";
12+ machine = { lib, ... }: {
13+ imports = [ ./common/user-account.nix ];
14+ services.xserver.enable = true;
15+ services.xserver.displayManager.sddm.enable = true;
16+ services.xserver.windowManager.default = "icewm";
17+ services.xserver.windowManager.icewm.enable = true;
18+ services.xserver.desktopManager.default = "none";
1519 };
20+
21+ enableOCR = true;
22+
23+ testScript = { nodes, ... }: let
24+ user = nodes.machine.config.users.extraUsers.alice;
25+ in ''
26+ startAll;
27+ $machine->waitForText(qr/BOB/);
28+ $machine->screenshot("sddm");
29+ $machine->sendChars("${user.password}\n");
30+ $machine->waitForFile("/home/alice/.Xauthority");
31+ $machine->succeed("xauth merge ~alice/.Xauthority");
32+ $machine->waitForWindow("^IceWM ");
33+ '';
1634 };
17− services.xserver.windowManager.default = "icewm";
18− services.xserver.windowManager.icewm.enable = true;
19− services.xserver.desktopManager.default = "none";
20− };
2135
22− testScript = { nodes, ... }: ''
23− startAll;
24− $machine->waitForFile("/home/alice/.Xauthority");
25− $machine->succeed("xauth merge ~alice/.Xauthority");
26− $machine->waitForWindow("^IceWM ");
27− '';
28−})
36+ autoLogin = {
37+ name = "sddm-autologin";
38+ meta = with pkgs.stdenv.lib.maintainers; {
39+ maintainers = [ ttuegel ];
40+ };
41+
42+ machine = { lib, ... }: {
43+ imports = [ ./common/user-account.nix ];
44+ services.xserver.enable = true;
45+ services.xserver.displayManager.sddm = {
46+ enable = true;
47+ autoLogin = {
48+ enable = true;
49+ user = "alice";
50+ };
51+ };
52+ services.xserver.windowManager.default = "icewm";
53+ services.xserver.windowManager.icewm.enable = true;
54+ services.xserver.desktopManager.default = "none";
55+ };
56+
57+ testScript = { nodes, ... }: ''
58+ startAll;
59+ $machine->waitForFile("/home/alice/.Xauthority");
60+ $machine->succeed("xauth merge ~alice/.Xauthority");
61+ $machine->waitForWindow("^IceWM ");
62+ '';
63+ };
64+ };
65+in
66+ lib.mapAttrs (lib.const makeTest) tests
nixos/tests/smokeping.nix+1−1
@@ -14,7 +14,7 @@ import ./make-test.nix ({ pkgs, ...} : {
1414 mailHost = "127.0.0.2";
1515 probeConfig = ''
1616 + FPing
17− binary = /var/setuid-wrappers/fping
17+ binary = /run/wrappers/bin/fping
1818 offset = 0%
1919 '';
2020 };
nixos/tests/taskserver.nix+124−5
@@ -1,4 +1,62 @@
1−import ./make-test.nix {
1+import ./make-test.nix ({ pkgs, ... }: let
2+ snakeOil = pkgs.runCommand "snakeoil-certs" {
3+ outputs = [ "out" "cacert" "cert" "key" "crl" ];
4+ buildInputs = [ pkgs.gnutls.bin ];
5+ caTemplate = pkgs.writeText "snakeoil-ca.template" ''
6+ cn = server
7+ expiration_days = -1
8+ cert_signing_key
9+ ca
10+ '';
11+ certTemplate = pkgs.writeText "snakeoil-cert.template" ''
12+ cn = server
13+ expiration_days = -1
14+ tls_www_server
15+ encryption_key
16+ signing_key
17+ '';
18+ crlTemplate = pkgs.writeText "snakeoil-crl.template" ''
19+ expiration_days = -1
20+ '';
21+ userCertTemplace = pkgs.writeText "snakoil-user-cert.template" ''
22+ organization = snakeoil
23+ cn = server
24+ expiration_days = -1
25+ tls_www_client
26+ encryption_key
27+ signing_key
28+ '';
29+ } ''
30+ certtool -p --bits 4096 --outfile ca.key
31+ certtool -s --template "$caTemplate" --load-privkey ca.key \
32+ --outfile "$cacert"
33+ certtool -p --bits 4096 --outfile "$key"
34+ certtool -c --template "$certTemplate" \
35+ --load-ca-privkey ca.key \
36+ --load-ca-certificate "$cacert" \
37+ --load-privkey "$key" \
38+ --outfile "$cert"
39+ certtool --generate-crl --template "$crlTemplate" \
40+ --load-ca-privkey ca.key \
41+ --load-ca-certificate "$cacert" \
42+ --outfile "$crl"
43+
44+ mkdir "$out"
45+
46+ # Stripping key information before the actual PEM-encoded values is solely
47+ # to make test output a bit less verbose when copying the client key to the
48+ # actual client.
49+ certtool -p --bits 4096 | sed -n \
50+ -e '/^----* *BEGIN/,/^----* *END/p' > "$out/alice.key"
51+
52+ certtool -c --template "$userCertTemplace" \
53+ --load-privkey "$out/alice.key" \
54+ --load-ca-privkey ca.key \
55+ --load-ca-certificate "$cacert" \
56+ --outfile "$out/alice.cert"
57+ '';
58+
59+in {
260 name = "taskserver";
361
462 nodes = rec {
@@ -12,6 +70,23 @@ import ./make-test.nix {
1270 };
1371 };
1472
73+ # New generation of the server with manual config
74+ newServer = { lib, nodes, ... }: {
75+ imports = [ server ];
76+ services.taskserver.pki.manual = {
77+ ca.cert = snakeOil.cacert;
78+ server.cert = snakeOil.cert;
79+ server.key = snakeOil.key;
80+ server.crl = snakeOil.crl;
81+ };
82+ # This is to avoid assigning a different network address to the new
83+ # generation.
84+ networking = lib.mapAttrs (lib.const lib.mkForce) {
85+ inherit (nodes.server.config.networking)
86+ hostName interfaces primaryIPAddress extraHosts;
87+ };
88+ };
89+
1590 client1 = { pkgs, ... }: {
1691 environment.systemPackages = [ pkgs.taskwarrior pkgs.gnutls ];
1792 users.users.alice.isNormalUser = true;
@@ -26,6 +101,8 @@ import ./make-test.nix {
26101 testScript = { nodes, ... }: let
27102 cfg = nodes.server.config.services.taskserver;
28103 portStr = toString cfg.listenPort;
104+ newServerSystem = nodes.newServer.config.system.build.toplevel;
105+ switchToNewServer = "${newServerSystem}/bin/switch-to-configuration test";
29106 in ''
30107 sub su ($$) {
31108 my ($user, $cmd) = @_;
@@ -33,8 +110,8 @@ import ./make-test.nix {
33110 return "su - $user -c '$esc'";
34111 }
35112
36− sub setupClientsFor ($$) {
37− my ($org, $user) = @_;
113+ sub setupClientsFor ($$;$) {
114+ my ($org, $user, $extraInit) = @_;
38115
39116 for my $client ($client1, $client2) {
40117 $client->nest("initialize client for user $user", sub {
@@ -58,6 +135,8 @@ import ./make-test.nix {
58135 }
59136 });
60137
138+ eval { &$extraInit($client, $org, $user) };
139+
61140 $client->succeed(su $user,
62141 "task config taskd.server server:${portStr} >&2"
63142 );
@@ -104,7 +183,10 @@ import ./make-test.nix {
104183 return su $user, $cmd;
105184 }
106185
107− startAll;
186+ # Explicitly start the VMs so that we don't accidentally start newServer
187+ $server->start;
188+ $client1->start;
189+ $client2->start;
108190
109191 $server->waitForUnit("taskserver.service");
110192
@@ -162,5 +244,42 @@ import ./make-test.nix {
162244 restartServer;
163245 testSync "bar";
164246 };
247+
248+ subtest "check manual configuration", sub {
249+ $server->succeed('${switchToNewServer} >&2');
250+ $server->waitForUnit("taskserver.service");
251+ $server->waitForOpenPort(${portStr});
252+
253+ $server->succeed(
254+ "nixos-taskserver org add manualOrg",
255+ "nixos-taskserver user add manualOrg alice"
256+ );
257+
258+ setupClientsFor "manualOrg", "alice", sub {
259+ my ($client, $org, $user) = @_;
260+ my $cfgpath = "/home/$user/.task";
261+
262+ $client->copyFileFromHost("${snakeOil.cacert}", "$cfgpath/ca.cert");
263+ for my $file ('alice.key', 'alice.cert') {
264+ $client->copyFileFromHost("${snakeOil}/$file", "$cfgpath/$file");
265+ }
266+
267+ for my $file ("$user.key", "$user.cert") {
268+ $client->copyFileFromHost(
269+ "${snakeOil}/$file", "$cfgpath/$file"
270+ );
271+ }
272+ $client->copyFileFromHost(
273+ "${snakeOil.cacert}", "$cfgpath/ca.cert"
274+ );
275+ $client->succeed(
276+ (su "alice", "task config taskd.ca $cfgpath/ca.cert"),
277+ (su "alice", "task config taskd.key $cfgpath/$user.key"),
278+ (su $user, "task config taskd.certificate $cfgpath/$user.cert")
279+ );
280+ };
281+
282+ testSync "alice";
283+ };
165284 '';
166−}
285+})
nixos/tests/trac.nix+1−1
@@ -45,7 +45,7 @@ import ./make-test.nix ({ pkgs, ... }: {
4545 client =
4646 { config, pkgs, ... }:
4747 { imports = [ ./common/x11.nix ];
48− services.xserver.desktopManager.kde5.enable = true;
48+ services.xserver.desktopManager.plasma5.enable = true;
4949 };
5050 };
5151
nixos/tests/virtualbox.nix+1−1
@@ -65,7 +65,7 @@ let
6565 touch /mnt-root/boot-done
6666 hostname "${vmName}"
6767 mkdir -p /nix/store
68− unshare -m "@shell@" -c '
68+ unshare -m ${escapeShellArg pkgs.stdenv.shell} -c '
6969 mount -t vboxsf nixstore /nix/store
7070 exec "$stage2Init"
7171 '
nixos/tests/wordpress.nix+4−8
@@ -10,14 +10,10 @@ import ./make-test.nix ({ pkgs, ... }:
1010 { web =
1111 { config, pkgs, ... }:
1212 {
13− services.mysql.enable = true;
14− services.mysql.package = pkgs.mysql;
15− services.mysql.initialScript = pkgs.writeText "start.sql" ''
16− CREATE DATABASE wordpress;
17− CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'wordpress';
18− GRANT ALL on wordpress.* TO 'wordpress'@'localhost';
19− '';
20−
13+ services.mysql = {
14+ enable = true;
15+ package = pkgs.mysql;
16+ };
2117 services.httpd = {
2218 enable = true;
2319 logPerVirtualHost = true;
pkgs/applications/altcoins/bitcoin-classic.nix+13−9
@@ -1,20 +1,24 @@
1−{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost
2−, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode
1+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
2+, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
33, withGui }:
44
55with stdenv.lib;
6+
67stdenv.mkDerivation rec {
78
89 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-classic-" + version;
9− version = "0.11.2.cl1.b1";
10+ version = "1.2.3";
1011
11− src = fetchurl {
12− url = "https://github.com/bitcoinclassic/bitcoinclassic/archive/v${version}.tar.gz";
13− sha256 = "1szsnx5aijk3hx7qkqzbqsr0basg8ydwp20mh3bhnf4ljryy2049";
12+ src = fetchFromGitHub {
13+ owner = "bitcoinclassic";
14+ repo = "bitcoinclassic";
15+ rev = "v${version}";
16+ sha256 = "0y99c8zv42ps3pxp46p3fqj9sir580v7s5qyi3cxva12mq2z0cql";
1417 };
1518
16− buildInputs = [ pkgconfig autoreconfHook openssl db48 boost zlib
17− miniupnpc utillinux protobuf ]
19+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
20+ buildInputs = [ openssl db48 boost zlib
21+ miniupnpc utillinux protobuf libevent ]
1822 ++ optionals withGui [ qt4 qrencode ];
1923
2024 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
@@ -35,7 +39,7 @@ stdenv.mkDerivation rec {
3539 continue to release updates that are in line with Satoshi’s whitepaper &
3640 vision, and are agreed upon by the community.
3741 '';
38− homepage = "https://bitcoinclassic.com/";
42+ homepage = https://bitcoinclassic.com/;
3943 maintainers = with maintainers; [ jefdaj ];
4044 license = licenses.mit;
4145 platforms = platforms.unix;
pkgs/applications/altcoins/bitcoin-unlimited.nixnew file+60
@@ -0,0 +1,60 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
2+, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, libevent
3+, withGui }:
4+
5+with stdenv.lib;
6+
7+stdenv.mkDerivation rec {
8+
9+ name = "bitcoin" + (toString (optional (!withGui) "d")) + "-unlimited-" + version;
10+ version = "1.0.1.3";
11+
12+ src = fetchFromGitHub {
13+ owner = "bitcoinunlimited";
14+ repo = "bitcoinunlimited";
15+ rev = "${version}";
16+ sha256 = "177l2jf2yqxh3sgf80dhgyk3wgjdnqszy3hb83clk8q1wyjkfz7y";
17+ };
18+
19+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
20+ buildInputs = [ openssl db48 boost zlib
21+ miniupnpc utillinux protobuf libevent ]
22+ ++ optionals withGui [ qt4 qrencode ];
23+
24+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
25+ ++ optionals withGui [ "--with-gui=qt4" ];
26+
27+ meta = {
28+ description = "Peer-to-peer electronic cash system (Unlimited client)";
29+ longDescription= ''
30+ Bitcoin is a free open source peer-to-peer electronic cash system that is
31+ completely decentralized, without the need for a central server or trusted
32+ parties. Users hold the crypto keys to their own money and transact directly
33+ with each other, with the help of a P2P network to check for double-spending.
34+
35+ The Bitcoin Unlimited (BU) project seeks to provide a voice to all
36+ stakeholders in the Bitcoin ecosystem.
37+
38+ Every node operator or miner can currently choose their own blocksize limit
39+ by modifying their client. Bitcoin Unlimited makes the process easier by
40+ providing a configurable option for the accepted and generated blocksize via
41+ a GUI menu. Bitcoin Unlimited further provides a user-configurable failsafe
42+ setting allowing you to accept a block larger than your maximum accepted
43+ blocksize if it reaches a certain number of blocks deep in the chain.
44+
45+ The Bitcoin Unlimited client is not a competitive block scaling proposal
46+ like BIP-101, BIP-102, etc. Instead it tracks consensus. This means that it
47+ tracks the blockchain that the hash power majority follows, irrespective of
48+ blocksize, and signals its ability to accept larger blocks via protocol and
49+ block versioning fields.
50+
51+ If you support an increase in the blocksize limit by any means - or just
52+ support Bitcoin conflict resolution as originally envisioned by its founder -
53+ consider running a Bitcoin Unlimited client.
54+ '';
55+ homepage = https://www.bitcoinunlimited.info/;
56+ maintainers = with maintainers; [ DmitryTsygankov ];
57+ license = licenses.mit;
58+ platforms = platforms.unix;
59+ };
60+}
pkgs/applications/altcoins/bitcoin-xt.nix+9−6
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, autoreconfHook, openssl, db48, boost
1+{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, openssl, db48, boost
22, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode, curl
33, withGui }:
44
@@ -6,14 +6,17 @@ with stdenv.lib;
66stdenv.mkDerivation rec{
77
88 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-xt-" + version;
9− version = "0.11D";
9+ version = "0.11F";
1010
11− src = fetchurl {
12− url = "https://github.com/bitcoinxt/bitcoinxt/archive/v${version}.tar.gz";
13− sha256 = "09r2i88wzqaj6mh66l3ngyfkm1a0dhwm5ibalj6y55wbxm9bvd36";
11+ src = fetchFromGitHub {
12+ owner = "bitcoinxt";
13+ repo = "bitcoinxt";
14+ rev = "v${version}";
15+ sha256 = "13s5k9mxmlbf49p5hc546x20y5dslfp6g9hi6nw5yja5bngbwr24";
1416 };
1517
16− buildInputs = [ pkgconfig autoreconfHook openssl db48 boost zlib
18+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
19+ buildInputs = [ openssl db48 boost zlib
1720 miniupnpc utillinux protobuf curl ]
1821 ++ optionals withGui [ qt4 qrencode ];
1922
pkgs/applications/altcoins/bitcoin.nix+6−7
@@ -4,19 +4,18 @@
44
55with stdenv.lib;
66stdenv.mkDerivation rec{
7−
87 name = "bitcoin" + (toString (optional (!withGui) "d")) + "-" + version;
9− core_version = "0.13.1";
10− version = core_version;
8+ version = "0.14.0";
119
1210 src = fetchurl {
13− urls = [ "https://bitcoin.org/bin/bitcoin-core-${core_version}/bitcoin-${version}.tar.gz"
14− "mirror://sourceforge/bitcoin/Bitcoin/bitcoin-${core_version}/bitcoin-${version}.tar.gz"
11+ urls = [ "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
12+ "mirror://sourceforge/bitcoin/Bitcoin/bitcoin-${version}/bitcoin-${version}.tar.gz"
1513 ];
16− sha256 = "d8edbd797ff1c8266113e54d851a85def46ab82389abe7d7bd0d2827e74cecd7";
14+ sha256 = "07k4i9r033dsvkp5ii5g3hykidm8b19c8c0mz1bi8k0dda3d8hyp";
1715 };
1816
19− buildInputs = [ pkgconfig autoreconfHook openssl db48 boost zlib
17+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
18+ buildInputs = [ openssl db48 boost zlib
2019 miniupnpc protobuf libevent]
2120 ++ optionals stdenv.isLinux [ utillinux ]
2221 ++ optionals withGui [ qt4 qrencode ];
pkgs/applications/altcoins/dashpay.nix+23−13
@@ -1,25 +1,35 @@
1−{ fetchzip, stdenv, pkgconfig, autoreconfHook
1+{ fetchFromGitHub, stdenv, pkgconfig, autoreconfHook
22, openssl, db48, boost, zlib, miniupnpc
3−, qt4, qrencode, glib, protobuf, yasm
4−, utillinux }:
3+, qrencode, glib, protobuf, yasm, libevent
4+, utillinux
5+, enable_Upnp ? false
6+, disable_Wallet ? false
7+, disable_Daemon ? false }:
58
69with stdenv.lib;
710stdenv.mkDerivation rec {
11+ name = "dashpay-${version}";
12+ version = "0.12.1.3";
813
9− name = "dashpay-${meta.version}";
10−
11− src = fetchzip {
12− url = "https://github.com/dashpay/dash/archive/v${meta.version}.tar.gz";
13− sha256 = "19bk7cviy3n2dpj4kr3i6i0i3ac2l5ri8ln1a51nd3n90k016wnx";
14+ src = fetchFromGitHub {
15+ owner = "dashpay";
16+ repo= "dash";
17+ rev = "v${version}";
18+ sha256 = "0h0fxhh30wy5vp06l1mkswhz565qs6j9y0dm84fmn28rdfvhv2aj";
1419 };
1520
16− buildInputs = [ pkgconfig autoreconfHook glib openssl db48 yasm
17− boost zlib miniupnpc protobuf qt4 qrencode utillinux ];
21+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
22+ buildInputs = [ glib openssl db48 yasm boost zlib libevent
23+ miniupnpc protobuf qrencode utillinux ];
24+
1825
19− configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ];
26+ configureFlags = [ "--with-boost-libdir=${boost.out}/lib --with-gui=no" ]
27+ ++ optional enable_Upnp "--enable-upnp-default"
28+ ++ optional disable_Wallet "--disable-wallet"
29+ ++ optional disable_Daemon "--disable-daemon"
30+ ;
2031
21− meta = with stdenv.lib; {
22− version = "0.12.0.55";
32+ meta = {
2333 description = "A decentralized key/value registration and transfer system";
2434 longDescription = ''
2535 Dash (DASH) is an open sourced, privacy-centric digital currency
pkgs/applications/altcoins/default.nix+4−1
@@ -5,6 +5,9 @@ rec {
55 bitcoin = callPackage ./bitcoin.nix { withGui = true; };
66 bitcoind = callPackage ./bitcoin.nix { withGui = false; };
77
8+ bitcoin-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = true; };
9+ bitcoind-unlimited = callPackage ./bitcoin-unlimited.nix { withGui = false; };
10+
811 bitcoin-classic = callPackage ./bitcoin-classic.nix { withGui = true; };
912 bitcoind-classic = callPackage ./bitcoin-classic.nix { withGui = false; };
1013
@@ -16,6 +19,7 @@ rec {
1619 dogecoin = callPackage ./dogecoin.nix { withGui = true; };
1720 dogecoind = callPackage ./dogecoin.nix { withGui = false; };
1821
22+ freicoin = callPackage ./freicoin.nix { boost = pkgs.boost155; };
1923 go-ethereum = callPackage ./go-ethereum.nix { };
2024
2125 litecoin = callPackage ./litecoin.nix { withGui = true; };
@@ -33,5 +37,4 @@ rec {
3337 primecoind = callPackage ./primecoin.nix { withGui = false; };
3438
3539 stellar-core = callPackage ./stellar-core.nix { };
36−
3740}
pkgs/applications/altcoins/dogecoin.nix+11−18
@@ -1,4 +1,4 @@
1−{ stdenv , fetchurl
1+{ stdenv , fetchFromGitHub
22, pkgconfig, autoreconfHook
33, db5, openssl, boost, zlib, miniupnpc
44, glib, protobuf, utillinux, qt4, qrencode
@@ -6,28 +6,21 @@
66
77with stdenv.lib;
88stdenv.mkDerivation rec {
9−
109 name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version;
11− version = "1.8.2";
10+ version = "1.10.0";
1211
13− src = fetchurl {
14− url = "https://github.com/dogecoin/dogecoin/archive/v${version}.tar.gz";
15− sha256 = "17jxsxsrsz3qy2hxdpw78vcbnnd0nq614iy42ypzhw4pdpz0s1l7";
12+ src = fetchFromGitHub {
13+ owner = "dogecoin";
14+ repo = "dogecoin";
15+ rev = "v${version}";
16+ sha256 = "16q3rldj04hkzzjd23h0knszqr5dgixizy4iyc129mz8wa8pbnvy";
1617 };
1718
18− buildInputs = [ autoreconfHook pkgconfig openssl
19− db5 openssl utillinux protobuf boost zlib miniupnpc ]
19+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
20+ buildInputs = [ openssl db5 openssl utillinux
21+ protobuf boost zlib miniupnpc ]
2022 ++ optionals withGui [ qt4 qrencode ];
2123
22− # BSD DB5 location
23− patchPhase = ''
24− sed -i \
25− -e 's,BDB_CPPFLAGS=$,BDB_CPPFLAGS="-I${db5}/include",g' \
26− -e 's,BDB_LIBS=$,BDB_LIBS="-L${db5}/lib",g' \
27− -e 's,bdbdirlist=$,bdbdirlist="${db5}/include",g' \
28− src/m4/dogecoin_find_bdb51.m4
29− '';
30−
3124 configureFlags = [ "--with-incompatible-bdb"
3225 "--with-boost-libdir=${boost.out}/lib" ]
3326 ++ optionals withGui [ "--with-gui" ];
@@ -43,6 +36,6 @@ stdenv.mkDerivation rec {
4336 homepage = http://www.dogecoin.com/;
4437 license = licenses.mit;
4538 maintainers = with maintainers; [ edwtjo offline AndersonTorres ];
46− platforms = with platforms; linux;
39+ platforms = platforms.linux;
4740 };
4841}
pkgs/applications/altcoins/freicoin.nixnew file+32
@@ -0,0 +1,32 @@
1+{ fetchFromGitHub, stdenv, db, boost, gmp, mpfr, miniupnpc, qt4, qmake4Hook, unzip }:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.8.6-2";
5+ name = "freicoin-${version}";
6+
7+ src = fetchFromGitHub {
8+ owner = "freicoin";
9+ repo = "freicoin";
10+ rev = "v${version}";
11+ sha256 = "1m5pcnfhwhcj7q00p2sy3h73rkdm3w6grmljgiq53gshcj08cq1z";
12+ };
13+
14+ # I think that openssl and zlib are required, but come through other
15+ # packages
16+
17+ installPhase = ''
18+ mkdir -p $out/bin
19+ cp freicoin-qt $out/bin
20+ '';
21+
22+ nativeBuildInputs = [ qmake4Hook ];
23+ buildInputs = [ db boost gmp mpfr miniupnpc qt4 ];
24+
25+ meta = with stdenv.lib; {
26+ description = "Peer-to-peer currency with demurrage fee";
27+ homepage = http://freicoi.in/;
28+ license = licenses.mit;
29+ maintainers = [ maintainers.viric ];
30+ platforms = platforms.linux;
31+ };
32+}
pkgs/applications/altcoins/litecoin.nix+12−9
@@ -1,28 +1,31 @@
1−{ stdenv, fetchurl
1+{ stdenv, fetchFromGitHub
22, pkgconfig, autoreconfHook
33, openssl, db48, boost, zlib, miniupnpc
44, glib, protobuf, utillinux, qt4, qrencode
5−, withGui }:
5+, withGui, libevent }:
66
77with stdenv.lib;
88stdenv.mkDerivation rec {
99
1010 name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
11− version = "0.10.2.2";
11+ version = "0.13.2.1";
1212
13− src = fetchurl {
14− url = "https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz";
15− sha256 = "1p1h2654b7f2lyrmihcjmpmx6sjpkgsifcm2ixxb2g9jh6qq8b4m";
13+ src = fetchFromGitHub {
14+ owner = "litecoin-project";
15+ repo = "litecoin";
16+ rev = "v${version}";
17+ sha256 = "0hml1crml6rx7im8dfbig3znmvnk2di61ybbhrhpad5mj0yrih30";
1618 };
1719
18− buildInputs = [ pkgconfig autoreconfHook openssl
19− openssl db48 boost zlib miniupnpc glib protobuf utillinux ]
20+ nativeBuildInputs = [ pkgconfig autoreconfHook ];
21+ buildInputs = [ openssl db48 boost zlib
22+ miniupnpc glib protobuf utillinux libevent ]
2023 ++ optionals withGui [ qt4 qrencode ];
2124
2225 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
2326 ++ optionals withGui [ "--with-gui=qt4" ];
2427
25− meta = with stdenv.lib; {
28+ meta = {
2629 description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm";
2730 longDescription= ''
2831 Litecoin is a peer-to-peer Internet currency that enables instant payments
pkgs/applications/audio/amarok/default.nix+3−3
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, lib, automoc4, cmake, perl, pkgconfig
22, qtscriptgenerator, gettext, curl , libxml2, mysql, taglib
3−, taglib_extras, loudmouth , kdelibs , qca2, libmtp, liblastfm, libgpod
3+, taglib_extras, loudmouth , kdelibs4, qca2, libmtp, liblastfm, libgpod
44, phonon , strigi, soprano, qjson, ffmpeg, libofa, nepomuk_core ? null
55, lz4, lzo, snappy, libaio, pcre
66}:
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
2222
2323 buildInputs = [
2424 qtscriptgenerator stdenv.cc.libc gettext curl libxml2 mysql.server/*libmysqld*/
25− taglib taglib_extras loudmouth kdelibs phonon strigi soprano qca2
25+ taglib taglib_extras loudmouth kdelibs4 phonon strigi soprano qca2
2626 libmtp liblastfm libgpod qjson ffmpeg libofa nepomuk_core
2727 lz4 lzo snappy libaio pcre
2828 ];
@@ -43,6 +43,6 @@ stdenv.mkDerivation rec {
4343 description = "Popular music player for KDE";
4444 license = "GPL";
4545 homepage = http://amarok.kde.org;
46− inherit (kdelibs.meta) platforms maintainers;
46+ inherit (kdelibs4.meta) platforms;
4747 };
4848}
pkgs/applications/audio/ardour/default.nix+3−3
@@ -16,7 +16,7 @@ let
1616 # "git describe" when _not_ on an annotated tag(!): MAJOR.MINOR-REV-HASH.
1717
1818 # Version to build.
19− tag = "5.5";
19+ tag = "5.8";
2020
2121in
2222
@@ -25,8 +25,8 @@ stdenv.mkDerivation rec {
2525
2626 src = fetchgit {
2727 url = "git://git.ardour.org/ardour/ardour.git";
28− rev = "bb3312c3bb9c6ed9b75ac6739a6ee720ddf86c86";
29− sha256 = "1yrg0d86k9fqw7lmzjglilbadb4cjqxqkf6ii4bjs6rihj6b0qrf";
28+ rev = "e5c6f16126e0901654b09ecce990554b1ff73833";
29+ sha256 = "1lcvslrcw6g4kp9w0h1jx46x6ilz4nzz0k2yrw4gd545k1rwx0c1";
3030 };
3131
3232 buildInputs =
pkgs/applications/audio/audacious/default.nix+3−3
@@ -8,16 +8,16 @@
88
99stdenv.mkDerivation rec {
1010 name = "audacious-${version}";
11− version = "3.8";
11+ version = "3.8.2";
1212
1313 src = fetchurl {
1414 url = "http://distfiles.audacious-media-player.org/audacious-${version}-gtk3.tar.bz2";
15− sha256 = "0rpdzf9pb52lcswxypwh4nq3qkjzliw42v39nm5rlwwxdq6bm99q";
15+ sha256 = "1g08xprc9q0lyw3knq723j7xr7i15f8v1x1j3k5wvi8jv21bvijf";
1616 };
1717
1818 pluginsSrc = fetchurl {
1919 url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}-gtk3.tar.bz2";
20− sha256 = "0j9svdqdjvj5spx1vfp0m63xh8xwk8naqsikdxfxbb68xk33rxb9";
20+ sha256 = "1vqcxwqinlwb2l0kkrarg33sw1brjzrnq5jbhzrql6z6x95h4jbq";
2121 };
2222
2323 nativeBuildInputs = [
pkgs/applications/audio/audacious/qt-5.nix+4−4
@@ -10,23 +10,23 @@
1010}:
1111
1212let
13− version = "3.8.1";
13+ version = "3.8.2";
1414 sources = {
1515 "audacious-${version}" = fetchurl {
1616 url = "http://distfiles.audacious-media-player.org/audacious-${version}.tar.bz2";
17− sha256 = "1k9blmgqia0df18l39bd2bbcwmjfxak6bd286vcd9zzmjhqs4qdc";
17+ sha256 = "14xyvmxdax0aj1gqcz8z23cjcavsysyh6b3lkiczkv4vrqf4gwdx";
1818 };
1919
2020 "audacious-plugins-${version}" = fetchurl {
2121 url = "http://distfiles.audacious-media-player.org/audacious-plugins-${version}.tar.bz2";
22− sha256 = "0f16ivcp8nd83r781hnw1qgbs9hi2b2v22zwv7c3sw3jq1chb70h";
22+ sha256 = "1m7xln93zc4qvb1fi83icyd5x2r6azqlvs5nigjz8az3l2kzrknp";
2323 };
2424 };
2525in
2626
2727stdenv.mkDerivation {
2828 inherit version;
29− name = "audacious-${version}";
29+ name = "audacious-qt5-${version}";
3030
3131 sourceFiles = lib.attrValues sources;
3232 sourceRoots = lib.attrNames sources;
pkgs/applications/audio/banshee/default.nix+4−4
@@ -1,5 +1,5 @@
1−{ pkgs, stdenv, lib, fetchurl, intltool, pkgconfig, gstreamer, gst_plugins_base
2−, gst_plugins_good, gst_plugins_bad, gst_plugins_ugly, gst_ffmpeg, glib
1+{ pkgs, stdenv, lib, fetchurl, intltool, pkgconfig, gstreamer, gst-plugins-base
2+, gst-plugins-good, gst-plugins-bad, gst-plugins-ugly, gst-ffmpeg, glib
33, mono, mono-addins, dbus-sharp-1_0, dbus-sharp-glib-1_0, notify-sharp, gtk-sharp-2_0
44, boo, gdata-sharp, taglib-sharp, sqlite, gnome-sharp, gconf, gtk-sharp-beans, gio-sharp
55, libmtp, libgpod, mono-zeroconf }:
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
1717
1818 nativeBuildInputs = [ pkgconfig intltool ];
1919 buildInputs = [
20− gtk-sharp-2_0.gtk gstreamer gst_plugins_base gst_plugins_good
21− gst_plugins_bad gst_plugins_ugly gst_ffmpeg
20+ gtk-sharp-2_0.gtk gstreamer gst-plugins-base gst-plugins-good
21+ gst-plugins-bad gst-plugins-ugly gst-ffmpeg
2222 mono dbus-sharp-1_0 dbus-sharp-glib-1_0 mono-addins notify-sharp
2323 gtk-sharp-2_0 boo gdata-sharp taglib-sharp sqlite gnome-sharp gconf gtk-sharp-beans
2424 gio-sharp libmtp libgpod mono-zeroconf
pkgs/applications/audio/beast/default.nix+1
@@ -33,5 +33,6 @@ stdenv.mkDerivation rec {
3333 description = "A music composition and modular synthesis application";
3434 homepage = http://beast.gtk.org;
3535 license = with licenses; [ gpl2 lgpl21 ];
36+ broken = true;
3637 };
3738}
pkgs/applications/audio/bitwig-studio/default.nix+4−4
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, freetype, gdk_pixbuf
1+{ stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, ffmpeg, freetype, gdk_pixbuf
22, glib, gtk2, harfbuzz, jdk, lib, libX11, libXau, libXcursor, libXdmcp
33, libXext, libXfixes, libXrender, libbsd, libjack2, libpng, libxcb
44, libxkbcommon, libxkbfile, makeWrapper, pixman, xcbutil, xcbutilwm
@@ -6,11 +6,11 @@
66
77stdenv.mkDerivation rec {
88 name = "bitwig-studio-${version}";
9− version = "1.3.12";
9+ version = "2.0";
1010
1111 src = fetchurl {
1212 url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
13− sha256 = "01z6yia4a6lfsf3rqq379l7xzqfbpz27mf1mr8sx9z1a8rzzyhld";
13+ sha256 = "1m7wdr0f9xi9s7q8vd66hy7fj1k0j3y5ln2yqbjwr76r9g6gkzas";
1414 };
1515
1616 nativeBuildInputs = [ dpkg makeWrapper ];
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 ];
3030
3131 binPath = lib.makeBinPath [
32− xdg_utils zenity
32+ ffmpeg xdg_utils zenity
3333 ];
3434
3535 installPhase = ''
pkgs/applications/audio/bs1770gain/default.nix+5−5
@@ -2,21 +2,21 @@
22
33stdenv.mkDerivation rec {
44 name = "bs1770gain-${version}";
5− version = "0.4.7";
5+ version = "0.4.12";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/bs1770gain/${name}.tar.gz";
9− sha256 = "0dnypm7k4axc693g0z73n2mvycbzgc4lnj2am64xjzyg37my4qzz";
9+ sha256 = "0n9skdap1vnl6w52fx0gsrjlk7w3xgdwi62ycyf96h29rx059z6a";
1010 };
1111
1212 buildInputs = [ ffmpeg sox ];
1313
1414 NIX_CFLAGS_COMPILE = "-Wno-error";
1515
16− meta = {
16+ meta = with stdenv.lib; {
1717 description = "A audio/video loudness scanner implementing ITU-R BS.1770";
18− license = stdenv.lib.licenses.gpl2Plus;
18+ license = licenses.gpl2Plus;
1919 homepage = "http://bs1770gain.sourceforge.net/";
20− platforms = stdenv.lib.platforms.all;
20+ platforms = platforms.all;
2121 };
2222}
pkgs/applications/audio/cantata/default.nix+12−22
@@ -1,11 +1,7 @@
1−{ stdenv, fetchurl, cmake
1+{ stdenv, fetchFromGitHub, cmake, vlc
22, withQt4 ? false, qt4
33, withQt5 ? true, qtbase, qtsvg, qttools, makeQtWrapper
44
5−# I'm unable to make KDE work here, crashes at runtime so I simply
6−# make Qt4 the default until someone who wants KDE can figure it out.
7−, withKDE4 ? false, kde4
8−
95# Cantata doesn't build with cdparanoia enabled so we disable that
106# default for now until I (or someone else) figure it out.
117, withCdda ? false, cdparanoia
@@ -24,10 +20,9 @@
2420}:
2521
2622# One and only one front-end.
27−assert withQt5 -> withQt4 == false && withKDE4 == false;
28−assert withQt4 -> withQt5 == false && withKDE4 == false;
29−assert withKDE4 -> withQt4 == false && withQt5 == false;
30−assert withQt4 || withQt5 || withKDE4;
23+assert withQt5 -> withQt4 == false;
24+assert withQt4 -> withQt5 == false;
25+assert withQt4 || withQt5;
3126
3227# Inter-dependencies.
3328assert withCddb -> withCdda && withTaglib;
@@ -39,7 +34,7 @@ assert withOnlineServices -> withTaglib;
3934assert withReplaygain -> withTaglib;
4035
4136let
42− version = "1.5.1";
37+ version = "2.0.1";
4338 pname = "cantata";
4439 fstat = x: fn: "-DENABLE_" + fn + "=" + (if x then "ON" else "OFF");
4540 fstats = x: map (fstat x);
@@ -48,17 +43,17 @@ in
4843stdenv.mkDerivation rec {
4944 name = "${pname}-${version}";
5045
51− src = fetchurl {
52− inherit name;
53− url = "https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60UktwaTRMTjRIUW8";
54− sha256 = "0y7y3nbiqgh1ghb47n4lfyp163wvazvhavlshb1c18ik03fkn5sp";
46+ src = fetchFromGitHub {
47+ owner = "CDrummond";
48+ repo = "cantata";
49+ rev = "v${version}";
50+ sha256 = "18fiz3cav41dpap42qwj9hwxf2k9fmhyg2r34yggxqi2cjlsil36";
5551 };
5652
5753 buildInputs =
58− [ cmake ]
54+ [ cmake vlc ]
5955 ++ stdenv.lib.optional withQt4 qt4
6056 ++ stdenv.lib.optionals withQt5 [ qtbase qtsvg qttools ]
61− ++ stdenv.lib.optional withKDE4 kde4.kdelibs
6257 ++ stdenv.lib.optionals withTaglib [ taglib taglib_extras ]
6358 ++ stdenv.lib.optionals withReplaygain [ ffmpeg speex mpg123 ]
6459 ++ stdenv.lib.optional withCdda cdparanoia
@@ -66,16 +61,11 @@ stdenv.mkDerivation rec {
6661 ++ stdenv.lib.optional withLame lame
6762 ++ stdenv.lib.optional withMtp libmtp
6863 ++ stdenv.lib.optional withMusicbrainz libmusicbrainz5
69− ++ stdenv.lib.optional (withTaglib && !withKDE4 && withDevices) udisks2;
64+ ++ stdenv.lib.optional (withTaglib && withDevices) udisks2;
7065
7166 nativeBuildInputs = stdenv.lib.optional withQt5 makeQtWrapper;
7267
73− unpackPhase = "tar -xvf $src";
74− sourceRoot = "${name}";
75−
76− # Qt4 is implicit when KDE is switched off.
7768 cmakeFlags = stdenv.lib.flatten [
78− (fstats withKDE4 [ "KDE" "KWALLET" ])
7969 (fstat withQt5 "QT5")
8070 (fstats withTaglib [ "TAGLIB" "TAGLIB_EXTRAS" ])
8171 (fstats withReplaygain [ "FFMPEG" "MPG123" "SPEEXDSP" ])
pkgs/applications/audio/cdparanoia/default.nix+12−7
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, IOKit, Carbon }:
1+{ stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }:
22
33stdenv.mkDerivation rec {
44 name = "cdparanoia-III-10.2";
@@ -8,26 +8,31 @@ stdenv.mkDerivation rec {
88 sha256 = "1pv4zrajm46za0f6lv162iqffih57a8ly4pc69f7y0gfyigb8p80";
99 };
1010
11− hardeningDisable = [ "format" ];
12−
13− preConfigure = "unset CC";
14−
1511 patches = stdenv.lib.optionals stdenv.isDarwin [
1612 (fetchurl {
1713 url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch";
18− sha1 = "c86e573f51e6d58d5f349b22802a7a7eeece9fcd";
14+ sha256 = "1n86kzm2ssl8fdf5wlhp6ncb2bf6b9xlb5vg0mhc85r69prqzjiy";
1915 })
2016 (fetchurl {
2117 url = "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff";
22− sha1 = "d7dc121374df3b82e82adf544df7bf1eec377bdb";
18+ sha256 = "17l2qhn8sh4jy6ryy5si6ll6dndcm0r537rlmk4a6a8vkn852vad";
2319 })
2420 ];
2521
22+ buildInputs = stdenv.lib.optional stdenv.isAarch64 autoreconfHook;
23+
2624 propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [
2725 Carbon
2826 IOKit
2927 ];
3028
29+ hardeningDisable = [ "format" ];
30+
31+ preConfigure = "unset CC" + stdenv.lib.optionalString stdenv.isAarch64 ''\n
32+ cp ${gnu-config}/config.sub configure.sub
33+ cp ${gnu-config}/config.guess configure.guess
34+ '';
35+
3136 meta = {
3237 homepage = http://xiph.org/paranoia;
3338 description = "A tool and library for reading digital audio from CDs";
pkgs/applications/audio/chuck/default.nix+6−6
@@ -1,12 +1,12 @@
11{ stdenv, fetchurl, alsaLib, bison, flex, libsndfile, which }:
22
33stdenv.mkDerivation rec {
4− version = "1.3.5.1";
4+ version = "1.3.5.2";
55 name = "chuck-${version}";
66
77 src = fetchurl {
88 url = "http://chuck.cs.princeton.edu/release/files/chuck-${version}.tgz";
9− sha256 = "0lqzkphfd91kz95nf1wqy0z17r1m70c8inwvnb9fscbiaihwlhfi";
9+ sha256 = "02z7sglax3j09grj5s1skmw8z6wz7b21hjrm95nrrdpwbxabh079";
1010 };
1111
1212 buildInputs = [ bison flex libsndfile which ]
@@ -28,11 +28,11 @@ stdenv.mkDerivation rec {
2828 install -Dm755 ./src/chuck $out/bin/chuck
2929 '';
3030
31− meta = {
31+ meta = with stdenv.lib; {
3232 description = "Programming language for real-time sound synthesis and music creation";
3333 homepage = http://chuck.cs.princeton.edu;
34− license = stdenv.lib.licenses.gpl2;
35− platforms = with stdenv.lib.platforms; linux ++ darwin;
36− maintainers = with stdenv.lib.maintainers; [ ftrvxmtrx ];
34+ license = licenses.gpl2;
35+ platforms = with platforms; linux ++ darwin;
36+ maintainers = with maintainers; [ ftrvxmtrx ];
3737 };
3838}
pkgs/applications/audio/clementine/default.nix+11−9
@@ -1,10 +1,14 @@
1−{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
1+{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst-plugins-base
22, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
33, usbmuxd, libmtp, gvfs, libcdio, libspotify, protobuf, qca2, pkgconfig
44, sparsehash, config, makeWrapper, runCommand, gst_plugins }:
55
66let
77 withSpotify = config.clementine.spotify or false;
8+ withIpod = config.clementine.ipod or false;
9+ withMTP = config.clementine.mtp or true;
10+ withCD = config.clementine.cd or true;
11+ withCloud = config.clementine.cloud or true;
812
913 version = "1.2.3";
1014
@@ -27,24 +31,22 @@ let
2731 fftw
2832 gettext
2933 glew
30− gst_plugins_base
34+ gst-plugins-base
3135 gstreamer
3236 gvfs
33− libcdio
34− libgpod
3537 liblastfm
36− libmtp
37− libplist
3838 pkgconfig
3939 protobuf
4040 qca2
4141 qjson
4242 qt4
43− sparsehash
4443 sqlite
4544 taglib
46− usbmuxd
47− ];
45+ ]
46+ ++ stdenv.lib.optionals (withIpod) [libgpod libplist usbmuxd]
47+ ++ stdenv.lib.optionals (withMTP) [libmtp]
48+ ++ stdenv.lib.optionals (withCD) [libcdio]
49+ ++ stdenv.lib.optionals (withCloud) [sparsehash];
4850
4951 free = stdenv.mkDerivation {
5052 name = "clementine-free-${version}";
pkgs/applications/audio/cmus/default.nix+24−14
@@ -1,4 +1,5 @@
1−{ stdenv, fetchFromGitHub, ncurses, pkgconfig
1+{ stdenv, fetchFromGitHub, runCommand, ncurses, pkgconfig
2+, libiconv, CoreAudio
23
34, alsaSupport ? stdenv.isLinux, alsaLib ? null
45# simple fallback for everyone else
@@ -18,7 +19,7 @@
1819, cddbSupport ? true, libcddb ? null
1920, cdioSupport ? true, libcdio ? null
2021, cueSupport ? true, libcue ? null
21−, discidSupport ? true, libdiscid ? null
22+, discidSupport ? (!stdenv.isDarwin), libdiscid ? null
2223, ffmpegSupport ? true, ffmpeg ? null
2324, flacSupport ? true, flac ? null
2425, madSupport ? true, libmad ? null
@@ -28,11 +29,10 @@
2829, tremorSupport ? false, tremor ? null
2930, vorbisSupport ? true, libvorbis ? null
3031, wavpackSupport ? true, wavpack ? null
32+, opusSupport ? true, opusfile ? null
3133
32−# can't make these work, something is broken
33−#, aacSupport ? true, faac ? null
34−#, mp4Support ? true, mp4v2 ? null
35−#, opusSupport ? true, opusfile ? null
34+, aacSupport ? false, faad2 ? null # already handled by ffmpeg
35+, mp4Support ? false, mp4v2 ? null # ffmpeg does support mp4 better
3636
3737# not in nixpkgs
3838#, vtxSupport ? true, libayemu ? null
@@ -81,14 +81,21 @@ let
8181 (mkFlag tremorSupport "CONFIG_TREMOR=y" tremor)
8282 (mkFlag vorbisSupport "CONFIG_VORBIS=y" libvorbis)
8383 (mkFlag wavpackSupport "CONFIG_WAVPACK=y" wavpack)
84+ (mkFlag opusSupport "CONFIG_OPUS=y" opusfile)
8485
85− #(mkFlag opusSupport "CONFIG_OPUS=y" opusfile)
86− #(mkFlag mp4Support "CONFIG_MP4=y" mp4v2)
87− #(mkFlag aacSupport "CONFIG_AAC=y" faac)
86+ (mkFlag mp4Support "CONFIG_MP4=y" mp4v2)
87+ (mkFlag aacSupport "CONFIG_AAC=y" faad2)
8888
8989 #(mkFlag vtxSupport "CONFIG_VTX=y" libayemu)
9090 ];
9191
92+ clangGCC = runCommand "clang-gcc" {} ''
93+ #! ${stdenv.shell}
94+ mkdir -p $out/bin
95+ ln -s ${stdenv.cc}/bin/clang $out/bin/gcc
96+ ln -s ${stdenv.cc}/bin/clang++ $out/bin/g++
97+ '';
98+
9299in
93100
94101stdenv.mkDerivation rec {
@@ -109,13 +116,16 @@ stdenv.mkDerivation rec {
109116 "CONFIG_WAV=y"
110117 ] ++ concatMap (a: a.flags) opts);
111118
112− buildInputs = [ ncurses pkgconfig ] ++ concatMap (a: a.deps) opts;
119+ buildInputs = [ ncurses pkgconfig ]
120+ ++ stdenv.lib.optional stdenv.cc.isClang clangGCC
121+ ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv CoreAudio ]
122+ ++ concatMap (a: a.deps) opts;
113123
114− meta = {
124+ meta = with stdenv.lib; {
115125 description = "Small, fast and powerful console music player for Linux and *BSD";
116126 homepage = https://cmus.github.io/;
117− license = stdenv.lib.licenses.gpl2;
118− maintainers = [ stdenv.lib.maintainers.oxij ];
119− platforms = stdenv.lib.platforms.linux;
127+ license = licenses.gpl2;
128+ maintainers = [ maintainers.oxij ];
129+ platforms = platforms.linux ++ platforms.darwin;
120130 };
121131}
pkgs/applications/audio/csound/default.nix+15−11
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, libsndfile, flex, bison
1+{ stdenv, fetchFromGitHub, cmake, libsndfile, flex, bison, boost
22, alsaLib ? null
33, libpulseaudio ? null
44, tcltk ? null
@@ -11,26 +11,30 @@
1111# , wiiuse ? null
1212}:
1313
14−stdenv.mkDerivation {
15− name = "csound-6.04";
14+stdenv.mkDerivation rec {
15+ name = "csound-6.08.1";
16+ version = "6.08.1";
1617
1718 enableParallelBuilding = true;
1819
1920 hardeningDisable = [ "format" ];
2021
21− src = fetchurl {
22− url = mirror://sourceforge/csound/Csound6.04.tar.gz;
23− sha256 = "1030w38lxdwjz1irr32m9cl0paqmgr02lab2m7f7j1yihwxj1w0g";
22+ src = fetchFromGitHub {
23+ owner = "csound";
24+ repo = "csound";
25+ rev = version;
26+ sha256 = "03xnva17sw35ga3n96x1zdfgw913dga1hccly85wzfn0kxz4rld9";
2427 };
2528
26− buildInputs = [ cmake libsndfile flex bison alsaLib libpulseaudio tcltk ];
29+ nativeBuildInputs = [ cmake flex bison ];
30+ buildInputs = [ libsndfile alsaLib libpulseaudio tcltk boost ];
2731
28− meta = {
32+ meta = with stdenv.lib; {
2933 description = "Sound design, audio synthesis, and signal processing system, providing facilities for music composition and performance on all major operating systems and platforms";
3034 homepage = http://www.csounds.com/;
31− license = stdenv.lib.licenses.gpl2;
32− maintainers = [stdenv.lib.maintainers.marcweber];
33− platforms = stdenv.lib.platforms.linux;
35+ license = licenses.gpl2;
36+ maintainers = [maintainers.marcweber];
37+ platforms = platforms.linux;
3438 };
3539}
3640
pkgs/applications/audio/drumgizmo/default.nix+2−2
@@ -3,12 +3,12 @@
33}:
44
55stdenv.mkDerivation rec {
6− version = "0.9.11";
6+ version = "0.9.12";
77 name = "drumgizmo-${version}";
88
99 src = fetchurl {
1010 url = "http://www.drumgizmo.org/releases/${name}/${name}.tar.gz";
11− sha256 = "04hf3nhccwr98n2081rrvfccz50nly6k3gbk9zxccp1522qz5xvf";
11+ sha256 = "0kqrss9v3vpznmh4jgi3783wmprr645s3i485jlvdscpysjfkh6z";
1212 };
1313
1414 configureFlags = [ "--enable-lv2" ];
pkgs/applications/audio/drumkv1/default.nix+5−3
@@ -1,16 +1,18 @@
1−{ stdenv, fetchurl, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:
1+{ stdenv, fetchurl, pkgconfig, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:
22
33stdenv.mkDerivation rec {
44 name = "drumkv1-${version}";
5− version = "0.7.6";
5+ version = "0.8.1";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/drumkv1/${name}.tar.gz";
9− sha256 = "0cl1rbj26nsbvg9wzsh2j8xlx69xjxn29x46ypmy3939zbk81bi6";
9+ sha256 = "0l6kjb1q9vslwy56836a0c65mf8z8ycam5vzz3k4qvd8g74bs1zq";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools ];
1313
14+ nativeBuildInputs = [ pkgconfig ];
15+
1416 meta = with stdenv.lib; {
1517 description = "An old-school drum-kit sampler synthesizer with stereo fx";
1618 homepage = http://drumkv1.sourceforge.net/;
pkgs/applications/audio/easytag/default.nix+8−8
@@ -6,11 +6,11 @@
66stdenv.mkDerivation rec {
77 name = "easytag-${version}";
88 majorVersion = "2.4";
9− version = "${majorVersion}.1";
9+ version = "${majorVersion}.3";
1010
1111 src = fetchurl {
1212 url = "mirror://gnome/sources/easytag/${majorVersion}/${name}.tar.xz";
13− sha256 = "1mbpwp3lh6yz5xkaq3a329x4r3chmjsr83r349crhi1gax3mzvxr";
13+ sha256 = "1mbxnqrw1fwcgraa1bgik25vdzvf97vma5pzknbwbqq5ly9fwlgw";
1414 };
1515
1616 preFixup = ''
@@ -21,17 +21,17 @@ stdenv.mkDerivation rec {
2121
2222 NIX_LDFLAGS = "-lid3tag -lz";
2323
24− nativeBuildInputs = [ makeWrapper ];
24+ nativeBuildInputs = [ makeWrapper pkgconfig intltool ];
2525 buildInputs = [
26− pkgconfig intltool gtk3 glib libid3tag id3lib taglib libvorbis libogg flac
26+ gtk3 glib libid3tag id3lib taglib libvorbis libogg flac
2727 itstool libxml2 gsettings_desktop_schemas gnome3.defaultIconTheme gnome3.dconf
2828 ];
2929
30− meta = {
30+ meta = with stdenv.lib; {
3131 description = "View and edit tags for various audio files";
3232 homepage = "http://projects.gnome.org/easytag/";
33− license = stdenv.lib.licenses.gpl2Plus;
34− maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
35− platforms = with stdenv.lib.platforms; linux;
33+ license = licenses.gpl2Plus;
34+ maintainers = with maintainers; [ fuuzetsu ];
35+ platforms = platforms.linux;
3636 };
3737}
pkgs/applications/audio/eflite/buf-overflow.patchnew file+22
@@ -0,0 +1,22 @@
1+Fix buffer overflow
2+
3+--- eflite-0.4.1.orig/es.c
4++++ eflite-0.4.1/es.c
5+@@ -329,7 +329,7 @@
6+ char *p;
7+
8+ p = getenv("HOME");
9+- sprintf(buf, "%s/.es.conf", p);
10++ snprintf(buf, sizeof(buf), "%s/.es.conf", p);
11+ fp = fopen(buf, "r");
12+ if (!fp) fp = fopen("/etc/es.conf", "r");
13+ if (!fp) return 1;
14+@@ -438,7 +438,7 @@
15+ char logname[200];
16+
17+ if ((flags & 0xffff) > DEBUG) return;
18+- sprintf(logname, "%s/es.log", getenv("HOME"));
19++ snprintf(logname, sizeof(logname), "%s/es.log", getenv("HOME"));
20+ va_start(arg, text);
21+ vsnprintf(buf, 200, text, arg);
22+ va_end(arg);
pkgs/applications/audio/eflite/cvs-update.patchnew file+98
@@ -0,0 +1,98 @@
1+--- eflite-0.4.1.orig/fs.c
2++++ eflite-0.4.1/fs.c
3+@@ -9,7 +9,7 @@
4+ * GNU General Public License, as published by the Free Software
5+ * Foundation. Please see the file COPYING for details.
6+ *
7+- * $Id: fs.c,v 1.19 2007/01/18 23:58:42 mgorse Exp $
8++ * $Id: fs.c,v 1.22 2008/03/05 15:21:43 mgorse Exp $
9+ *
10+ * Notes:
11+ *
12+@@ -505,19 +505,6 @@
13+ }
14+ }
15+
16+-
17+-
18+-static void play_audio_close(void *cancel)
19+-{
20+- if (audiodev)
21+- {
22+- audio_drain(audiodev);
23+- close_audiodev();
24+- // usleep(5000);
25+- }
26+-}
27+-
28+-
29+ static inline void determine_playlen(int speed, cst_wave *wptr, int type, int *pl, int *s)
30+ {
31+ int playlen, skip;
32+@@ -573,12 +560,12 @@
33+ type = ac[ac_head].type;
34+ WAVE_UNLOCK;
35+ pthread_testcancel();
36+- pthread_cleanup_push(play_audio_close, NULL);
37+-
38++
39+ es_log(2, "Opening audio device.");
40+ /* We abuse the wave mutex here to avoid being canceled
41+ * while the audio device is being openned */
42+ WAVE_LOCK;
43++ assert(audiodev == NULL);
44+ audiodev = audio_open(wptr->sample_rate, wptr->num_channels, CST_AUDIO_LINEAR16);
45+ WAVE_UNLOCK;
46+ if (audiodev == NULL)
47+@@ -606,8 +593,8 @@
48+ #ifdef DEBUG
49+ start_time = get_ticks_count();
50+ #endif
51+- pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
52+ audio_write(audiodev, wptr->samples + skip, playlen * 2);
53++ pthread_testcancel();
54+ es_log(2, "Write took %.2f seconds.", get_ticks_count() - start_time);
55+ }
56+ es_log(2, "play: syncing.");
57+@@ -617,16 +604,16 @@
58+ audio_flush(audiodev);
59+ pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
60+ es_log(2, "Flush took %.2f seconds.", get_ticks_count() - start_time);
61+- es_log(2, "play: Closing audio device");
62+- close_audiodev();
63+- pthread_cleanup_pop(0);
64+- pthread_testcancel();
65+- TEXT_LOCK;
66++ pthread_testcancel();
67++
68++ TEXT_LOCK;
69+ time_left -= ((float)playlen) / wptr->sample_rate;
70+ pthread_cond_signal(&text_condition);
71+ TEXT_UNLOCK;
72+
73+ WAVE_LOCK;
74++ es_log(2, "play: Closing audio device");
75++ close_audiodev();
76+ ac_destroy(&ac[ac_head]);
77+ ac_head++;
78+ if (ac_head == ac_tail)
79+@@ -894,6 +881,7 @@
80+ WAVE_LOCK_NI;
81+ pthread_cond_signal(&wave_condition); // necessary because we inhibit cancellation while waiting
82+ pthread_cancel(wave_thread);
83++ if (audiodev != NULL) audio_drain(audiodev);
84+ WAVE_UNLOCK_NI;
85+ }
86+
87+@@ -917,7 +905,10 @@
88+ }
89+
90+ /* At this point, no thread is running */
91+-
92++
93++ // Make sure audio device is closed
94++ close_audiodev();
95++
96+ /* Free any wave data */
97+ es_log(2, "s_clear: freeing wave data: %d", ac_tail);
98+ for (i = 0; i < ac_tail; i++)
pkgs/applications/audio/eflite/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{stdenv,fetchurl,flite,alsaLib,debug ? false}:
2+
3+stdenv.mkDerivation rec {
4+ name = "eflite-${version}";
5+ version = "0.4.1";
6+ src = fetchurl {
7+ url = "https://sourceforge.net/projects/eflite/files/eflite/${version}/${name}.tar.gz";
8+ sha256 = "088p9w816s02s64grfs28gai3lnibzdjb9d1jwxzr8smbs2qbbci";
9+ };
10+ buildInputs = [ flite alsaLib ];
11+ configureFlags = "flite_dir=${flite} --with-audio=alsa --with-vox=cmu_us_kal16";
12+ patches = [
13+ ./buf-overflow.patch
14+ ./cvs-update.patch
15+ ./link.patch
16+ ./format.patch
17+ ]; # Patches are taken from debian.
18+ CFLAGS = stdenv.lib.optionalString debug " -DDEBUG=2";
19+ meta = {
20+ homepage = http://eflite.sourceforge.net;
21+ description = "EFlite is a speech server for screen readers";
22+ longDescription = ''
23+ EFlite is a speech server for Emacspeak and other screen
24+ readers that allows them to interface with Festival Lite,
25+ a free text-to-speech engine developed at the CMU Speech
26+ Center as an off-shoot of Festival.
27+ '';
28+ license = stdenv.lib.licenses.gpl2;
29+ platforms = stdenv.lib.platforms.linux;
30+ maintainers = with stdenv.lib.maintainers; [ jhhuh ];
31+ };
32+}
pkgs/applications/audio/eflite/format.patchnew file+11
@@ -0,0 +1,11 @@
1+--- eflite-0.4.1.orig/es.c 2017-03-02 14:38:36.009731423 +0100
2++++ eflite-0.4.1/es.c 2017-03-02 14:39:06.285894934 +0100
3+@@ -449,7 +449,7 @@
4+ fclose(fp);
5+ if (flags & LOG_STDERR)
6+ {
7+- fprintf(stderr, buf);
8++ fprintf(stderr, "%s", buf);
9+ fprintf(stderr, "\n");
10+ }
11+ #endif
pkgs/applications/audio/eflite/link.patchnew file+11
@@ -0,0 +1,11 @@
1+--- eflite-0.4.1/Makefile.in 2007-01-19 01:01:09.000000000 +0100
2++++ eflite-0.4.1-new/Makefile.in 2017-03-01 23:25:34.223615492 +0100
3+@@ -34,7 +34,7 @@
4+ $(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS) $(FLITE_LIBS) $(AUDIOLIBS)
5+
6+ fs.o: fs.c
7+- $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(subst cmu_us_kal16,cmu_us_kal,$(FL_VOX)) -DSTANDALONE -DEFLITE -c -o $@ $<
8++ $(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(FL_VOX) -DSTANDALONE -DEFLITE -c -o $@ $<
9+
10+ tone.o: tone.c
11+ $(CC) $(CFLAGS) -I$(flite_include_dir) -DEFLITE -c -o $@ $<
pkgs/applications/audio/flacon/default.nix+12−8
@@ -1,30 +1,34 @@
11{ stdenv, lib, fetchFromGitHub, cmake, qt5, libuchardet, pkgconfig, makeWrapper
22, shntool, flac, opusTools, vorbisTools, mp3gain, lame, wavpack, vorbisgain
3+, gtk3
34}:
45
56stdenv.mkDerivation rec {
67 name = "flacon-${version}";
7− version = "2.0.1";
8+ version = "2.1.1";
9+
810 src = fetchFromGitHub {
911 owner = "flacon";
1012 repo = "flacon";
1113 rev = "v${version}";
12− sha256 = "0hip411k3arb96rnd22ifs9shlv0xmy96hhx1jcwdk48kw8aa9rw";
14+ sha256 = "0jazv3d1xaydp2ws1pd5rmga76z5yk74v3a8yqfc8vbb2z6ahimz";
1315 };
1416
15− buildInputs = [ cmake qt5.qtbase qt5.qttools libuchardet pkgconfig makeWrapper ];
17+ nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
18+ buildInputs = [ qt5.qtbase qt5.qttools libuchardet ];
1619
1720 postInstall = ''
1821 wrapProgram $out/bin/flacon \
22+ --suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}" \
1923 --prefix PATH : "${lib.makeBinPath [ shntool flac opusTools vorbisTools
20− mp3gain lame wavpack vorbisgain ]}"
24+ mp3gain lame wavpack vorbisgain ]}"
2125 '';
2226
23− meta = {
27+ meta = with stdenv.lib; {
2428 description = "Extracts audio tracks from an audio CD image to separate tracks.";
2529 homepage = https://flacon.github.io/;
26− license = stdenv.lib.licenses.lgpl21;
27− platforms = stdenv.lib.platforms.linux;
28− maintainers = [ stdenv.lib.maintainers.nico202 ];
30+ license = licenses.lgpl21;
31+ platforms = platforms.linux;
32+ maintainers = with maintainers; [ ndowens nico202 ];
2933 };
3034}
pkgs/applications/audio/fmit/default.nix+4−3
@@ -11,16 +11,17 @@ with stdenv.lib;
1111
1212stdenv.mkDerivation rec {
1313 name = "fmit-${version}";
14− version = "1.1.8";
14+ version = "1.1.11";
1515
1616 src = fetchFromGitHub {
17− sha256 = "14vx4p1h3c6frvv8dam4ymz588zpycmg17pxfkmx4m7pszhlin6b";
17+ sha256 = "1w492lf8n2sjkr53z8cvkgywzn0w53cf78hz93zaw6dwwv36lwdp";
1818 rev = "v${version}";
1919 repo = "fmit";
2020 owner = "gillesdegottex";
2121 };
2222
23− buildInputs = [ fftw qtbase qtmultimedia qmakeHook ]
23+ nativeBuildInputs = [ qmakeHook ];
24+ buildInputs = [ fftw qtbase qtmultimedia ]
2425 ++ optionals alsaSupport [ alsaLib ]
2526 ++ optionals jackSupport [ libjack2 ]
2627 ++ optionals portaudioSupport [ portaudio ];
pkgs/applications/audio/gpodder/default.nix+27−9
@@ -1,18 +1,36 @@
1−{ stdenv, fetchurl, python2Packages, mygpoclient, intltool
2−, ipodSupport ? true, libgpod
1+{ stdenv, fetchurl, fetchpatch, python2Packages, mygpoclient, intltool
2+, ipodSupport ? false, libgpod
33, gnome3
44}:
55
66python2Packages.buildPythonApplication rec {
77 name = "gpodder-${version}";
88
9− version = "3.9.1";
9+ version = "3.9.3";
1010
1111 src = fetchurl {
1212 url = "http://gpodder.org/src/${name}.tar.gz";
13− sha256 = "036p9vnkr3if0k548xhhjmcwdaimy3yd24s3xd8vzlp0wdzkzrhn";
13+ sha256 = "1s83m90dic2zphwwv6wrvqx950y12v5sakm7q5nj5bnh5k9l2hgl";
1414 };
1515
16+ patches = [
17+ (fetchpatch {
18+ sha256 = "1xkl1wnp46546jrzsnb9p0yj23776byg3nvsqwbblhqbsfipl48w";
19+ name = "Fix-soundcloud-feeds.patch";
20+ url = "https://github.com/gpodder/gpodder/commit/e7f34ad090cd276d75c0cd8d92ed97243d75db38.patch";
21+ })
22+ (fetchpatch {
23+ sha256 = "1jlldbinlxis1pi9p2lyczgbcv8nmdj66fxll6ph0klln0w8gvg4";
24+ name = "use-https-urls-for-soundcloud.patch";
25+ url = "https://github.com/gpodder/gpodder/commit/ef915dd3b6828174bf4f6f0911da410d9aca1b67.patch";
26+ })
27+ (fetchpatch {
28+ sha256 = "1l37ihzk7gfqcl5nnphv0sv80psm6fsg4qkxn6abc6v476axyj9b";
29+ name = "updates-soundcloud-support-to-recognize-https";
30+ url = "https://github.com/gpodder/gpodder/commit/5c1507671d93096ad0118f908c20dd1f182a72e0.patch";
31+ })
32+ ];
33+
1634 postPatch = with stdenv.lib; ''
1735 sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
1836
@@ -30,22 +48,22 @@ python2Packages.buildPythonApplication rec {
3048 ];
3149
3250 propagatedBuildInputs = with python2Packages; [
33− feedparser dbus-python mygpoclient pygtk eyeD3
51+ feedparser dbus-python mygpoclient pygtk eyeD3 podcastparser html5lib
3452 ] ++ stdenv.lib.optional ipodSupport libgpod;
3553
3654 checkPhase = ''
3755 LC_ALL=C python -m gpodder.unittests
3856 '';
3957
40− meta = {
58+ meta = with stdenv.lib; {
4159 description = "A podcatcher written in python";
4260 longDescription = ''
4361 gPodder downloads and manages free audio and video content (podcasts)
4462 for you. Listen directly on your computer or on your mobile devices.
4563 '';
4664 homepage = "http://gpodder.org/";
47− license = stdenv.lib.licenses.gpl3;
48− platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
49− maintainers = [ stdenv.lib.maintainers.skeidel ];
65+ license = licenses.gpl3;
66+ platforms = platforms.linux ++ platforms.darwin;
67+ maintainers = with maintainers; [ skeidel mic92 ];
5068 };
5169}
pkgs/applications/audio/guitarix/default.nix+14−11
@@ -1,8 +1,8 @@
1−{ stdenv, fetchurl, gettext, intltool, pkgconfig, python
1+{ stdenv, fetchurl, gettext, intltool, pkgconfig, python2
22, avahi, bluez, boost, eigen, fftw, glib, glib_networking
33, glibmm, gsettings_desktop_schemas, gtkmm2, libjack2
4−, ladspaH, librdf, libsndfile, lilv, lv2, serd, sord, sratom
5−, webkitgtk2, wrapGAppsHook, zita-convolver, zita-resampler
4+, ladspaH, libav, librdf, libsndfile, lilv, lv2, serd, sord, sratom
5+, wrapGAppsHook, zita-convolver, zita-resampler
66, optimizationSupport ? false # Enable support for native CPU extensions
77}:
88
@@ -12,19 +12,19 @@ in
1212
1313stdenv.mkDerivation rec {
1414 name = "guitarix-${version}";
15− version = "0.35.2";
15+ version = "0.35.3";
1616
1717 src = fetchurl {
1818 url = "mirror://sourceforge/guitarix/guitarix2-${version}.tar.xz";
19− sha256 = "1qj3adjhg511jygbjkl9k5v0gcjmg6ifc479rspfyf45m383pp3p";
19+ sha256 = "0pvw4ijkq6lcn45vrif9b4mqmgzi0qg1dp5b33kb5zan6n1aci4j";
2020 };
2121
22− nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python ];
22+ nativeBuildInputs = [ gettext intltool wrapGAppsHook pkgconfig python2 ];
2323
2424 buildInputs = [
2525 avahi bluez boost eigen fftw glib glibmm glib_networking.out
26− gsettings_desktop_schemas gtkmm2 libjack2 ladspaH librdf
27− libsndfile lilv lv2 serd sord sratom webkitgtk2 zita-convolver
26+ gsettings_desktop_schemas gtkmm2 libjack2 ladspaH libav librdf
27+ libsndfile lilv lv2 serd sord sratom zita-convolver
2828 zita-resampler
2929 ];
3030
@@ -33,13 +33,16 @@ stdenv.mkDerivation rec {
3333 "--no-desktop-update"
3434 "--enable-nls"
3535 "--no-faust" # todo: find out why --faust doesn't work
36+ "--install-roboto-font"
37+ "--includeresampler"
38+ "--convolver-ffmpeg"
3639 ] ++ optional optimizationSupport "--optimization";
3740
38− configurePhase = ''python waf configure --prefix=$out $configureFlags'';
41+ configurePhase = ''python2 waf configure --prefix=$out $configureFlags'';
3942
40− buildPhase = ''python waf build'';
43+ buildPhase = ''python2 waf build'';
4144
42− installPhase = ''python waf install'';
45+ installPhase = ''python2 waf install'';
4346
4447 meta = with stdenv.lib; {
4548 description = "A virtual guitar amplifier for Linux running with JACK";
pkgs/applications/audio/hydrogen/default.nix+5−5
@@ -1,17 +1,17 @@
1−{ stdenv, fetchurl, alsaLib, boost, cmake, glib, libjack2, libarchive
1+{ stdenv, fetchurl, alsaLib, boost, cmake, glib, lash, libjack2, libarchive
22, liblrdf, libsndfile, pkgconfig, qt4 }:
33
44stdenv.mkDerivation rec {
5− version = "0.9.6.1";
5+ version = "0.9.7";
66 name = "hydrogen-${version}";
77
88 src = fetchurl {
99 url = "https://github.com/hydrogen-music/hydrogen/archive/${version}.tar.gz";
10− sha256 = "0vxnaqfmcv7hhk0cj67imdcqngspnck7f0wfmvhfgfqa7x1xznll";
10+ sha256 = "1dy2jfkdw0nchars4xi4isrz66fqn53a9qk13bqza7lhmsg3s3qy";
1111 };
1212
13− buildInputs = [
14− alsaLib boost cmake glib libjack2 libarchive liblrdf libsndfile pkgconfig qt4
13+ buildInputs = [
14+ alsaLib boost cmake glib lash libjack2 libarchive liblrdf libsndfile pkgconfig qt4
1515 ];
1616
1717 meta = with stdenv.lib; {
pkgs/applications/audio/i-score/default.nix+2−2
@@ -6,7 +6,7 @@
66 gcc,
77 ginac,
88 jamomacore,
9− kde5,
9+ kdnssd,
1010 libsndfile,
1111 ninja,
1212 portaudio,
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
3939 ginac
4040 gcc
4141 jamomacore
42− kde5.kdnssd
42+ kdnssd
4343 libsndfile
4444 ninja
4545 portaudio
pkgs/applications/audio/ingen/default.nix+3−3
@@ -5,12 +5,12 @@
55
66stdenv.mkDerivation rec {
77 name = "ingen-unstable-${rev}";
8− rev = "2016-10-29";
8+ rev = "2017-01-18";
99
1010 src = fetchgit {
1111 url = "http://git.drobilla.net/cgit.cgi/ingen.git";
12− rev = "fd147d0b888090bfb897505852c1f25dbdf77e18";
13− sha256 = "1qmg79962my82c43vyrv5sxbqci9c7gc2s9bwaaqd0fcf08xcz1z";
12+ rev = "02ae3e9d8bf3f6a5e844706721aad8c0ac9f4340";
13+ sha256 = "15s8nrzn68hc2s6iw0zshbz3lfnsq0mr6gflq05xm911b7xbp74k";
1414 };
1515
1616 buildInputs = [
pkgs/applications/audio/ir.lv2/default.nix+11−14
@@ -1,20 +1,21 @@
1−{ stdenv, fetchurl, fftw, gtk, lv2, libsamplerate, libsndfile, pkgconfig, zita-convolver }:
1+{ stdenv, fetchFromGitHub, fftw, gtk2, lv2, libsamplerate, libsndfile, pkgconfig, zita-convolver }:
22
33stdenv.mkDerivation rec {
44 name = "ir.lv2-${version}";
5− version = "1.2.2";
5+ version = "1.2.3";
66
7− src = fetchurl {
8− url = "http://factorial.hu/system/files/${name}.tar.gz";
9− sha256 = "17a6h2mv9xv41jpbx6bdakkngin4kqzh2v67l4076ddq609k5a7v";
7+ src = fetchFromGitHub {
8+ owner = "tomszilagyi";
9+ repo = "ir.lv2";
10+ rev = "${version}";
11+ sha256 = "16vy06qb0vgwg4yx15grzh5m2q3cbzm3jd0p37g2qb8rgvjhladg";
1012 };
1113
12− buildInputs = [ fftw gtk lv2 libsamplerate libsndfile pkgconfig zita-convolver ];
14+ buildInputs = [ fftw gtk2 lv2 libsamplerate libsndfile zita-convolver ];
1315
14− buildPhase = ''
15− make
16− make convert4chan
17− '';
16+ nativeBuildInputs = [ pkgconfig ];
17+
18+ postBuild = "make convert4chan";
1819
1920 installPhase = ''
2021 mkdir -p "$out/bin"
@@ -23,10 +24,6 @@ stdenv.mkDerivation rec {
2324
2425 make PREFIX="$out" install
2526 install -Dm755 convert4chan "$out/bin/convert4chan"
26− # fixed location
27− sed -i 's/, but seem like its gone://' README
28− sed -i 's@rhythminmind.net/1313@rhythminmind.net/STN@' README
29− install -Dm644 README "$out/share/doc/README"
3027 '';
3128
3229 meta = with stdenv.lib; {
pkgs/applications/audio/jackmix/default.nix+5−5
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgs, jack ? pkgs.libjack2 }:
1+{ stdenv, fetchurl, pkgconfig, scons, qt4, lash, libjack2, jack ? libjack2 }:
22
33stdenv.mkDerivation rec {
44 name = "jackmix-0.5.2";
@@ -8,10 +8,10 @@ stdenv.mkDerivation rec {
88 };
99
1010 buildInputs = [
11− pkgs.pkgconfig
12− pkgs.scons
13− pkgs.kde4.qt4
14− pkgs.lash
11+ pkgconfig
12+ scons
13+ qt4
14+ lash
1515 jack
1616 ];
1717
pkgs/applications/audio/magnetophonDSP/VoiceOfFaust/default.nix+1−1
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
2020
2121 patchPhase = ''
2222 sed -i "s@pd -nodac@${pitchTracker}/bin/pd -nodac@g" launchers/synthWrapper
23− sed -i "s@../PureData/OscSendVoc.pd@$out/PureData/OscSendVoc.pd@g" launchers/synthWrapper
23+ sed -i "s@../PureData/OscSendVoc.pd@$out/PureData/OscSendVoc.pd@g" launchers/pitchTracker
2424 '';
2525
2626 buildPhase = ''
pkgs/applications/audio/mod-distortion/default.nix+1−1
@@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
1313
1414 buildInputs = [ lv2 ];
1515
16− installFlags = [ "LV2_PATH=$out/lib/lv2" ];
16+ installFlags = [ "LV2_PATH=$(out)/lib/lv2" ];
1717
1818 meta = with stdenv.lib; {
1919 homepage = https://github.com/portalmod/mod-distortion;
pkgs/applications/audio/mopidy/default.nix+1−1
@@ -17,7 +17,7 @@ pythonPackages.buildPythonApplication rec {
1717 nativeBuildInputs = [ wrapGAppsHook ];
1818
1919 buildInputs = with gst_all_1; [
20− gst-plugins-base gst-plugins-good gst-plugins-ugly
20+ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
2121 glib_networking gobjectIntrospection
2222 ];
2323
pkgs/applications/audio/morituri/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchgit, pythonPackages, cdparanoia, cdrdao
2−, gst_python, gst_plugins_base, gst_plugins_good
2+, gst-python, gst-plugins-base, gst-plugins-good
33, utillinux, makeWrapper, substituteAll, autoreconfHook }:
44
55let
@@ -17,7 +17,7 @@ in stdenv.mkDerivation rec {
1717 };
1818
1919 pythonPath = with pythonPackages; [
20− pygobject2 gst_python musicbrainzngs
20+ pygobject2 gst-python musicbrainzngs
2121 pycdio pyxdg setuptools
2222 CDDB
2323 ];
@@ -25,7 +25,7 @@ in stdenv.mkDerivation rec {
2525 nativeBuildInputs = [ autoreconfHook ];
2626 buildInputs = [
2727 python cdparanoia cdrdao utillinux makeWrapper
28− gst_plugins_base gst_plugins_good
28+ gst-plugins-base gst-plugins-good
2929 ] ++ pythonPath;
3030
3131 patches = [
pkgs/applications/audio/musescore/darwin.nixnew file+34
@@ -0,0 +1,34 @@
1+{ stdenv, fetchurl, undmg }:
2+
3+let
4+ major = "2";
5+ minor = "0.3";
6+ patch = "1";
7+ appName = "MuseScore ${major}";
8+in
9+
10+stdenv.mkDerivation rec {
11+ name = "musescore-darwin-${version}";
12+ version = "${major}.${minor}.${patch}";
13+
14+ src = fetchurl {
15+ url = "ftp://ftp.osuosl.org/pub/musescore/releases/MuseScore-${major}.${minor}/MuseScore-${version}.dmg";
16+ sha256 = "0a9v2nc7sx2az7xpd9i7b84m7xk9zcydfpis5fj334r5yqds4rm1";
17+ };
18+
19+ buildInputs = [ undmg ];
20+ installPhase = ''
21+ mkdir -p "$out/Applications/${appName}.app"
22+ cp -R . "$out/Applications/${appName}.app"
23+ chmod a+x "$out/Applications/${appName}.app/Contents/MacOS/mscore"
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Music notation and composition software";
28+ homepage = https://musescore.org/;
29+ license = licenses.gpl2;
30+ platforms = platforms.darwin;
31+ maintainers = with maintainers; [ yurrriq ];
32+ repositories.git = https://github.com/musescore/MuseScore;
33+ };
34+}
pkgs/applications/audio/musescore/default.nix+1
@@ -56,5 +56,6 @@ stdenv.mkDerivation rec {
5656 platforms = platforms.linux;
5757 maintainers = [ maintainers.vandenoever ];
5858 repositories.git = https://github.com/musescore/MuseScore;
59+ broken = true;
5960 };
6061}
pkgs/applications/audio/non/default.nix+3−3
@@ -4,12 +4,12 @@
44
55stdenv.mkDerivation rec {
66 name = "non-${version}";
7− version = "2016-12-07";
7+ version = "2017-03-29";
88 src = fetchFromGitHub {
99 owner = "original-male";
1010 repo = "non";
11− rev = "754d113b0e3144a145d50bde8370ff2cae98169c";
12− sha256 = "04h67vy966vys6krgjsxd7dph4z46r8c6maw1hascxlasy3bhhk0";
11+ rev = "10c31e57291b6e42be53371567a722b62b32d220";
12+ sha256 = "080rha4ffp7qycyg1mqcf4vj0s7z8qfvz6bxm0w29xgg2kkmb3fx";
1313 };
1414
1515 buildInputs = [ pkgconfig python2 cairo libjpeg ntk libjack2 libsndfile
pkgs/applications/audio/opusfile/default.nix+4−4
@@ -13,11 +13,11 @@ stdenv.mkDerivation rec {
1313 patches = [ ./include-multistream.patch ];
1414 configureFlags = [ "--disable-examples" ];
1515
16− meta = {
16+ meta = with stdenv.lib; {
1717 description = "High-level API for decoding and seeking in .opus files";
1818 homepage = http://www.opus-codec.org/;
19− license = stdenv.lib.licenses.bsd3;
20− platforms = stdenv.lib.platforms.linux;
21− maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
19+ license = licenses.bsd3;
20+ platforms = platforms.linux ++ platforms.darwin;
21+ maintainers = with maintainers; [ fuuzetsu ];
2222 };
2323}
pkgs/applications/audio/picard/default.nix+2−2
@@ -1,7 +1,7 @@
11{ stdenv, python2Packages, fetchurl, gettext, chromaprint }:
22
33let
4− version = "1.3.2";
4+ version = "1.4";
55 pythonPackages = python2Packages;
66in pythonPackages.buildPythonApplication {
77 name = "picard-${version}";
@@ -9,7 +9,7 @@ in pythonPackages.buildPythonApplication {
99
1010 src = fetchurl {
1111 url = "http://ftp.musicbrainz.org/pub/musicbrainz/picard/picard-${version}.tar.gz";
12− sha256 = "0821xb7gyg0rhch8s3qkzmak90wjpcxkv9a364yv6bmqc12j6a77";
12+ sha256 = "0gi7f1h7jcg7n18cx8iw38sd868viv3w377xmi7cq98f1g76d4h6";
1313 };
1414
1515 buildInputs = [ gettext ];
pkgs/applications/audio/qjackctl/default.nix+5−3
@@ -1,14 +1,14 @@
1−{ stdenv, fetchurl, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras }:
1+{ stdenv, fetchurl, pkgconfig, alsaLib, libjack2, dbus, qtbase, qttools, qtx11extras }:
22
33stdenv.mkDerivation rec {
4− version = "0.4.3";
4+ version = "0.4.4";
55 name = "qjackctl-${version}";
66
77 # some dependencies such as killall have to be installed additionally
88
99 src = fetchurl {
1010 url = "mirror://sourceforge/qjackctl/${name}.tar.gz";
11− sha256 = "01wyyynxy21kim0gplzvfij7275a1jz68hdx837d2j1w5x2w7zbb";
11+ sha256 = "19bbljb3iz5ss4s5fmra1dxabg2fnp61sa51d63zsm56xkvv47ak";
1212 };
1313
1414 buildInputs = [
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
2020 dbus
2121 ];
2222
23+ nativeBuildInputs = [ pkgconfig ];
24+
2325 configureFlags = [ "--enable-jack-version" ];
2426
2527 meta = with stdenv.lib; {
pkgs/applications/audio/qmidinet/default.nix+5−3
@@ -1,18 +1,20 @@
1−{ stdenv, fetchurl, qt5, alsaLib, libjack2 }:
1+{ stdenv, fetchurl, pkgconfig, qt5, alsaLib, libjack2 }:
22
33stdenv.mkDerivation rec {
4− version = "0.4.1";
4+ version = "0.4.2";
55 name = "qmidinet-${version}";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/qmidinet/${name}.tar.gz";
9− sha256 = "1hh06g19lfh6r673avfvy0l2mq999mxk2jnv396226swj97lv7yz";
9+ sha256 = "1sdnd189db44xhl9p8pd8h4bsy8s0bn1y64lrdq7nb21mwg8ymcs";
1010 };
1111
1212 hardeningDisable = [ "format" ];
1313
1414 buildInputs = [ qt5.qtbase qt5.qttools alsaLib libjack2 ];
1515
16+ nativeBuildInputs = [ pkgconfig ];
17+
1618 meta = with stdenv.lib; {
1719 description = "A MIDI network gateway application that sends and receives MIDI data (ALSA Sequencer and/or JACK MIDI) over the network";
1820 homepage = http://qmidinet.sourceforge.net/;
pkgs/applications/audio/quodlibet/default.nix+8−8
@@ -1,11 +1,11 @@
11{ stdenv, fetchurl, python2Packages, intltool
2−, gst_python, withGstPlugins ? false, gst_plugins_base ? null
3−, gst_plugins_good ? null, gst_plugins_ugly ? null, gst_plugins_bad ? null }:
2+, gst-python, withGstPlugins ? false, gst-plugins-base ? null
3+, gst-plugins-good ? null, gst-plugins-ugly ? null, gst-plugins-bad ? null }:
44
5−assert withGstPlugins -> gst_plugins_base != null
6− || gst_plugins_good != null
7− || gst_plugins_ugly != null
8− || gst_plugins_bad != null;
5+assert withGstPlugins -> gst-plugins-base != null
6+ || gst-plugins-good != null
7+ || gst-plugins-ugly != null
8+ || gst-plugins-bad != null;
99
1010let
1111 version = "2.6.3";
@@ -44,11 +44,11 @@ in buildPythonApplication {
4444 patches = [ ./quodlibet-package-plugins.patch ];
4545
4646 buildInputs = stdenv.lib.optionals withGstPlugins [
47− gst_plugins_base gst_plugins_good gst_plugins_ugly gst_plugins_bad
47+ gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
4848 ];
4949
5050 propagatedBuildInputs = [
51− mutagen pygtk pygobject2 dbus-python gst_python intltool
51+ mutagen pygtk pygobject2 dbus-python gst-python intltool
5252 ];
5353
5454 postInstall = stdenv.lib.optionalString withGstPlugins ''
pkgs/applications/audio/samplv1/default.nix+5−3
@@ -1,16 +1,18 @@
1−{ stdenv, fetchurl, libjack2, alsaLib, liblo, libsndfile, lv2, qt5 }:
1+{ stdenv, fetchurl, pkgconfig, libjack2, alsaLib, liblo, libsndfile, lv2, qt5 }:
22
33stdenv.mkDerivation rec {
44 name = "samplv1-${version}";
5− version = "0.7.6";
5+ version = "0.8.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/samplv1/${name}.tar.gz";
9− sha256 = "071j7mi2cwhx0ml5hq8izmjb0s4yhbkscqaxfdg56xfpfsqsa63l";
9+ sha256 = "0j3hkmd9q0bw9b7nk9cssqywlrishkd1n790a9vq6gh3pdc5sf3r";
1010 };
1111
1212 buildInputs = [ libjack2 alsaLib liblo libsndfile lv2 qt5.qtbase qt5.qttools];
1313
14+ nativeBuildInputs = [ pkgconfig ];
15+
1416 meta = with stdenv.lib; {
1517 description = "An old-school all-digital polyphonic sampler synthesizer with stereo fx";
1618 homepage = http://samplv1.sourceforge.net/;
pkgs/applications/audio/spotify/default.nix+6−3
@@ -6,7 +6,9 @@ assert stdenv.system == "x86_64-linux";
66
77let
88 # Please update the stable branch!
9− version = "1.0.48.103.g15edf1ec-94";
9+ # Latest version number can be found at:
10+ # http://repository-origin.spotify.com/pool/non-free/s/spotify-client/
11+ version = "1.0.52.717.g2f08534a-47";
1012
1113 deps = [
1214 alsaLib
@@ -40,6 +42,7 @@ let
4042 xorg.libXrender
4143 xorg.libXScrnSaver
4244 xorg.libXtst
45+ xorg.libxcb
4346 zlib
4447 ];
4548
@@ -50,8 +53,8 @@ stdenv.mkDerivation {
5053
5154 src =
5255 fetchurl {
53− url = "http://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
54− sha256 = "0rpwxgxv2ihfhlri98k4n87ynlcp569gm9q6hd8jg0vd2jgji8b3";
56+ url = "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/spotify-client_${version}_amd64.deb";
57+ sha256 = "1xqd4pjb69zmbac5fq3pckgr4khlkzfkx8b029qzjc2hi52zfnj7";
5558 };
5659
5760 buildInputs = [ dpkg makeWrapper ];
pkgs/applications/audio/synthv1/default.nix+5−3
@@ -1,16 +1,18 @@
1−{ stdenv, fetchurl, qt5, libjack2, alsaLib, liblo, lv2 }:
1+{ stdenv, fetchurl, pkgconfig, qt5, libjack2, alsaLib, liblo, lv2 }:
22
33stdenv.mkDerivation rec {
44 name = "synthv1-${version}";
5− version = "0.7.6";
5+ version = "0.8.0";
66
77 src = fetchurl {
88 url = "mirror://sourceforge/synthv1/${name}.tar.gz";
9− sha256 = "03vnmmiyq92p2gh4zax1vg2lx6y57bsxch936pzbiwx649x53wi9";
9+ sha256 = "155pfyhr6d35ciw95pbxlqy7751cmij8j5d849rvblqbjzyzb5qx";
1010 };
1111
1212 buildInputs = [ qt5.qtbase qt5.qttools libjack2 alsaLib liblo lv2 ];
1313
14+ nativeBuildInputs = [ pkgconfig ];
15+
1416 meta = with stdenv.lib; {
1517 description = "An old-school 4-oscillator subtractive polyphonic synthesizer with stereo fx";
1618 homepage = http://synthv1.sourceforge.net/;
pkgs/applications/audio/tomahawk/default.nix+3−3
@@ -3,12 +3,12 @@
33, qtkeychain, quazip, sparsehash, taglib, websocketpp, makeWrapper
44
55, enableXMPP ? true, libjreen ? null
6−, enableKDE ? false, kdelibs ? null
6+, enableKDE ? false, kdelibs4 ? null
77, enableTelepathy ? false, telepathy_qt ? null
88}:
99
1010assert enableXMPP -> libjreen != null;
11−assert enableKDE -> kdelibs != null;
11+assert enableKDE -> kdelibs4 != null;
1212assert enableTelepathy -> telepathy_qt != null;
1313
1414stdenv.mkDerivation rec {
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
3030 qca2 qjson qt4 qtkeychain quazip sparsehash taglib websocketpp
3131 makeWrapper
3232 ] ++ stdenv.lib.optional enableXMPP libjreen
33− ++ stdenv.lib.optional enableKDE kdelibs
33+ ++ stdenv.lib.optional enableKDE kdelibs4
3434 ++ stdenv.lib.optional enableTelepathy telepathy_qt;
3535
3636 postInstall = let
pkgs/applications/audio/transcribe/default.nix+5−5
@@ -1,6 +1,6 @@
11{ stdenv, fetchzip, lib, makeWrapper, alsaLib, atk, cairo, gdk_pixbuf
2−, glib, gst_ffmpeg, gst_plugins_bad, gst_plugins_base
3−, gst_plugins_good, gst_plugins_ugly, gstreamer, gtk2, libSM, libX11
2+, glib, gst-ffmpeg, gst-plugins-bad, gst-plugins-base
3+, gst-plugins-good, gst-plugins-ugly, gstreamer, gtk2, libSM, libX11
44, libpng12, pango, zlib }:
55
66stdenv.mkDerivation rec {
@@ -21,14 +21,14 @@ stdenv.mkDerivation rec {
2121
2222 nativeBuildInputs = [ makeWrapper ];
2323
24− buildInputs = [ gst_plugins_base gst_plugins_good
25− gst_plugins_bad gst_plugins_ugly gst_ffmpeg ];
24+ buildInputs = [ gst-plugins-base gst-plugins-good
25+ gst-plugins-bad gst-plugins-ugly gst-ffmpeg ];
2626
2727 dontPatchELF = true;
2828
2929 libPath = lib.makeLibraryPath [
3030 stdenv.cc.cc glib gtk2 atk pango cairo gdk_pixbuf alsaLib
31− libX11 libSM libpng12 gstreamer gst_plugins_base zlib
31+ libX11 libSM libpng12 gstreamer gst-plugins-base zlib
3232 ];
3333
3434 installPhase = ''
pkgs/applications/audio/x42-plugins/default.nix+2−2
@@ -3,12 +3,12 @@
33, mesa_glu, lv2, mesa, gtk2, cairo, pango, fftwFloat, zita-convolver }:
44
55stdenv.mkDerivation rec {
6− version = "20160825";
6+ version = "20161230";
77 name = "x42-plugins-${version}";
88
99 src = fetchurl {
1010 url = "http://gareus.org/misc/x42-plugins/${name}.tar.xz";
11− sha256 = "13ln5ccmrrc07ykfp040389av60dlgqz1kh6vfjkga6sq7z51msr";
11+ sha256 = "1yni9c17kl2pi9lqxip07b6g6lyfii1pch5czp183113gk54fwj5";
1212 };
1313
1414 buildInputs = [ mesa_glu ftgl freefont_ttf libjack2 libltc libsndfile libsamplerate lv2 mesa gtk2 cairo pango fftwFloat pkgconfig zita-convolver];
pkgs/applications/audio/yasr/10_fix_openpty_forkpty_declarationsnew file+25
@@ -0,0 +1,25 @@
1+Disable openpty() and forkpty() prototypes when needed.
2+--- a/yasr/yasr.h
3++++ b/yasr/yasr.h
4+@@ -308,8 +308,10 @@ extern void opt_set(int num, void *val);
5+ extern void opt_queue_empty(int ll);
6+ extern void opt_write(FILE * fp);
7+
8++#ifndef HAVE_OPENPTY
9+ /* openpty.c prototypes */
10+ extern int openpty(int *, int *, char *, struct termios *, struct winsize *);
11++#endif
12+
13+ /* cfmakeraw.c prototypes */
14+ extern void cfmakeraw(struct termios *);
15+@@ -317,8 +319,10 @@ extern void cfmakeraw(struct termios *);
16+ /* login_tty.c prototypes */
17+ extern int login_tty(int);
18+
19++#ifndef HAVE_FORKPTY
20+ /* forkpty.c prototypes */
21+ extern int forkpty(int *, char *, struct termios *, struct winsize *);
22++#endif
23+
24+ /* tbc - Would it be more efficient to ensure that "blank" grids always held
25+ ascii 0x20 rather than ascii 0x00? */
pkgs/applications/audio/yasr/20_maxpathlennew file+11
@@ -0,0 +1,11 @@
1+--- a/yasr/config.c.orig 2011-11-28 03:56:58.764995828 +0100
2++++ a/yasr/config.c 2011-11-28 03:57:00.048967703 +0100
3+@@ -60,7 +60,7 @@
4+ int args, arg[16], *argp;
5+ int i, key, ln = 0, mode = 0;
6+ char *home, *ptr, *s;
7+- char confname[MAXPATHLEN];
8++ char confname[strlen(PACKAGE_DATA_DIR) + 10 + 1];
9+
10+ if ((home = getenv("HOME")) != NULL)
11+ {
pkgs/applications/audio/yasr/30_confnew file+18
@@ -0,0 +1,18 @@
1+diff --git a/yasr.conf b/yasr.conf
2+index 1e07fc6..72f5922 100644
3+--- a/yasr.conf
4++++ b/yasr.conf
5+@@ -59,11 +59,11 @@ synthesizer=emacspeak server
6+ #synthesizer=speech dispatcher
7+ #synthesizer port=S0
8+ #synthesizer port=l0
9+-synthesizer port=|/usr/local/bin/eflite
10++synthesizer port=|eflite
11+ # Below line appropriate for Speech Dispatcher in its default configuration
12+ #synthesizer port=127.0.0.1:6560
13+ key echo=off
14+-shell=/bin/bash
15++shell=/bin/sh
16+ special=off
17+ up and down arrows=speak line
18+ DisableKey=6925
pkgs/applications/audio/yasr/40_dectalk_extended_charsnew file+14
@@ -0,0 +1,14 @@
1+Index: yasr-0.6.9/yasr/tts.c
2+===================================================================
3+--- yasr-0.6.9.orig/yasr/tts.c 2008-02-03 00:10:07.000000000 +1100
4++++ yasr-0.6.9/yasr/tts.c 2012-02-05 10:59:06.059007839 +1100
5+@@ -281,6 +281,9 @@
6+ char *p = synth[tts.synth].unspeakable;
7+
8+ if (ch < 32) return 1;
9++ /* characters with high bit set cause DECTALK to crash */
10++ if (tts.synth == TTS_DECTALK && ch & 0x80)
11++ return 1;
12+ while (*p)
13+ {
14+ if (*p++ == ch) return 1;
pkgs/applications/audio/yasr/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{stdenv,fetchurl}:
2+
3+stdenv.mkDerivation rec {
4+ name = "yasr-${version}";
5+
6+ version = "0.6.9";
7+
8+ src = fetchurl {
9+ url = "https://sourceforge.net/projects/yasr/files/yasr/${version}/${name}.tar.gz";
10+ sha256 = "1prv9r9y6jb5ga5578ldiw507fa414m60xhlvjl29278p3x7rwa1";
11+ };
12+
13+ patches = [
14+ ./10_fix_openpty_forkpty_declarations
15+ ./20_maxpathlen
16+ ./30_conf
17+ ./40_dectalk_extended_chars
18+ ]; # taken from the debian yasr package
19+
20+ meta = {
21+ homepage = "http://yasr.sourceforge.net";
22+ description = "A general-purpose console screen reader";
23+ longDescription = "Yasr is a general-purpose console screen reader for GNU/Linux and other Unix-like operating systems.";
24+ platforms = stdenv.lib.platforms.unix;
25+ license = stdenv.lib.licenses.gpl2;
26+ maintainers = with stdenv.lib.maintainers; [ jhhuh ];
27+ };
28+}
pkgs/applications/audio/yoshimi/default.nix+7−3
@@ -6,11 +6,11 @@ assert stdenv ? glibc;
66
77stdenv.mkDerivation rec {
88 name = "yoshimi-${version}";
9− version = "1.4.1";
9+ version = "1.5.0";
1010
1111 src = fetchurl {
1212 url = "mirror://sourceforge/yoshimi/${name}.tar.bz2";
13− sha256 = "133sx42wb66g803pcrgdwph40wh94knvab3yfqkgm0001jv4v14y";
13+ sha256 = "10s1i18xlmvqfrnr0zn2mj2b28i7p62dlqzzzkmpaapqj1gsgpz5";
1414 };
1515
1616 buildInputs = [
@@ -20,9 +20,13 @@ stdenv.mkDerivation rec {
2020
2121 nativeBuildInputs = [ cmake pkgconfig ];
2222
23+ patchPhase = ''
24+ sed -i -e 's,/usr/share,'$out/share,g src/Misc/Config.cpp src/Misc/Bank.cpp
25+ '';
26+
2327 preConfigure = "cd src";
2428
25− cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc.out}/lib/libm.so -DCMAKE_INSTALL_DATAROOTDIR=$out" ];
29+ cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.glibc.out}/lib/libm.so" ];
2630
2731 meta = with stdenv.lib; {
2832 description = "High quality software synthesizer based on ZynAddSubFX";
pkgs/applications/audio/zam-plugins/default.nix+3−3
@@ -2,13 +2,13 @@
22
33stdenv.mkDerivation rec {
44 name = "zam-plugins-${version}";
5− version = "3.7";
5+ version = "3.8";
66
77 src = fetchgit {
88 url = "https://github.com/zamaudio/zam-plugins.git";
99 deepClone = true;
10− rev = "932046905a57f698406318765a60807a1f81257d";
11− sha256 = "0zgkmq3jgysrsb6cm6sfbgqpgfpwv8nxlgkqm29zzvb97j56bm7z";
10+ rev = "830ab2e9dd1db8cf56d12c71057157e5d8e9fd74";
11+ sha256 = "1hyly5inis59cvh0r7lyi203h8v5jh84ca9jpaljm53cvw6d93px";
1212 };
1313
1414 buildInputs = [ boost libX11 mesa liblo libjack2 ladspaH lv2 pkgconfig rubberband libsndfile ];
pkgs/applications/display-managers/lightdm/default.nix+13−12
@@ -1,41 +1,42 @@
11{ stdenv, fetchurl, pam, pkgconfig, libxcb, glib, libXdmcp, itstool, libxml2
2−, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit
2+, intltool, xlibsWrapper, libxklavier, libgcrypt, libaudit, gcc6
33, qt4 ? null
44, withQt5 ? false, qtbase
55}:
66
7+with stdenv.lib;
8+
79let
8− ver_branch = "1.19";
9− version = "1.19.5";
10+ ver_branch = "1.22";
11+ version = "1.22.0";
1012in
1113stdenv.mkDerivation rec {
1214 name = "lightdm-${version}";
1315
1416 src = fetchurl {
1517 url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.xz";
16− sha256 = "0gbz8jk1ljh8rwgvldkiqma1k61sd27yh008228ahdqd5i2v1r1z";
18+ sha256 = "0a5bvfl2h7r873al6q7c819h0kg564k9fh51rl6489z6lyvazfg4";
1719 };
1820
19− patches = [ ./fix-paths.patch ];
20−
21+ nativeBuildInputs = [ pkgconfig intltool ];
2122 buildInputs = [
22− pkgconfig pam libxcb glib libXdmcp itstool libxml2 intltool libxklavier libgcrypt
23− qt4 libaudit
24− ] ++ stdenv.lib.optional withQt5 qtbase;
23+ pam libxcb glib libXdmcp itstool libxml2 libxklavier libgcrypt
24+ qt4 libaudit gcc6
25+ ] ++ optional withQt5 qtbase;
2526
2627 configureFlags = [
2728 "--localstatedir=/var"
2829 "--sysconfdir=/etc"
2930 "--disable-tests"
30− ] ++ stdenv.lib.optional (qt4 != null) "--enable-liblightdm-qt"
31− ++ stdenv.lib.optional withQt5 "--enable-liblightdm-qt5";
31+ ] ++ optional (qt4 != null) "--enable-liblightdm-qt"
32+ ++ optional withQt5 "--enable-liblightdm-qt5";
3233
3334 installFlags = [
3435 "sysconfdir=\${out}/etc"
3536 "localstatedir=\${TMPDIR}"
3637 ];
3738
38− meta = with stdenv.lib; {
39+ meta = {
3940 homepage = https://launchpad.net/lightdm;
4041 platforms = platforms.linux;
4142 license = licenses.gpl3;
pkgs/applications/display-managers/lightdm/fix-paths.patchdeleted−61
@@ -1,61 +0,0 @@
1−diff --git a/common/user-list.c b/common/user-list.c
2−index 792c6d3..57fbfb7 100644
3−--- a/common/user-list.c
4−+++ b/common/user-list.c
5−@@ -331,7 +331,7 @@ load_passwd_file (CommonUserList *user_list, gboolean emit_add_signal)
6−
7− value = g_key_file_get_string (config, "UserList", "hidden-shells", NULL);
8− if (!value)
9−- value = g_strdup ("/bin/false /usr/sbin/nologin");
10−+ value = g_strdup ("/run/current-system/sw/bin/nologin");
11− hidden_shells = g_strsplit (value, " ", -1);
12− g_free (value);
13−
14−diff --git a/src/seat.c b/src/seat.c
15−index f9b149d..9029742 100644
16−--- a/src/seat.c
17−+++ b/src/seat.c
18−@@ -343,7 +343,7 @@ run_script (Seat *seat, DisplayServer *display_server, const gchar *script_name,
19−
20− /* Set POSIX variables */
21− process_set_clear_environment (script, TRUE);
22−- process_set_env (script, "SHELL", "/bin/sh");
23−+ process_set_env (script, "SHELL", "/run/current-system/sw/bin/sh");
24−
25− /* Variables required for regression tests */
26− if (g_getenv ("LIGHTDM_TEST_ROOT"))
27−@@ -354,7 +354,7 @@ run_script (Seat *seat, DisplayServer *display_server, const gchar *script_name,
28− process_set_env (script, "PATH", g_getenv ("PATH"));
29− }
30− else
31−- process_set_env (script, "PATH", "/usr/local/bin:/usr/bin:/bin");
32−+ process_set_env (script, "PATH", "/run/current-system/sw/bin");
33−
34− if (user)
35− {
36−diff --git a/src/session-child.c b/src/session-child.c
37−index e85f57d..93db0bd 100644
38−--- a/src/session-child.c
39−+++ b/src/session-child.c
40−@@ -410,7 +410,7 @@ session_child_run (int argc, char **argv)
41− else
42− {
43− /* Set POSIX variables */
44−- pam_putenv (pam_handle, "PATH=/usr/local/bin:/usr/bin:/bin");
45−+ pam_putenv (pam_handle, "PATH=/run/current-system/sw/bin");
46− pam_putenv (pam_handle, g_strdup_printf ("USER=%s", username));
47− pam_putenv (pam_handle, g_strdup_printf ("LOGNAME=%s", username));
48− pam_putenv (pam_handle, g_strdup_printf ("HOME=%s", user_get_home_directory (user)));
49−diff --git a/src/shared-data-manager.c b/src/shared-data-manager.c
50−index 47f1c10..cc82652 100644
51−--- a/src/shared-data-manager.c
52−+++ b/src/shared-data-manager.c
53−@@ -68,7 +68,7 @@ delete_unused_user (gpointer key, gpointer value, gpointer user_data)
54−
55− gchar *path = g_build_filename (USERS_DIR, user, NULL);
56− gchar *quoted_path = g_shell_quote (path);
57−- gchar *cmd = g_strdup_printf ("/bin/rm -rf %s", quoted_path);
58−+ gchar *cmd = g_strdup_printf ("/run/current-system/sw/bin/rm -rf %s", quoted_path);
59−
60− g_spawn_command_line_async (cmd, &error);
61− if (error)
pkgs/applications/display-managers/sddm/default.nix+21−3
@@ -1,4 +1,4 @@
1−{ stdenv, makeQtWrapper, fetchFromGitHub, fetchpatch
1+{ stdenv, lib, makeQtWrapper, fetchFromGitHub, fetchpatch
22, cmake, extra-cmake-modules, pkgconfig, libxcb, libpthreadstubs, lndir
33, libXdmcp, libXau, qtbase, qtdeclarative, qttools, pam, systemd
44, themes
@@ -28,10 +28,12 @@ let
2828 nativeBuildInputs = [ cmake extra-cmake-modules pkgconfig qttools ];
2929
3030 buildInputs = [
31− libxcb libpthreadstubs libXdmcp libXau qtbase pam systemd
31+ libxcb libpthreadstubs libXdmcp libXau pam systemd
3232 ];
3333
34− propagatedBuildInputs = [ qtdeclarative ];
34+ propagatedBuildInputs = [
35+ qtbase qtdeclarative
36+ ];
3537
3638 cmakeFlags = [
3739 "-DCONFIG_FILE=/etc/sddm.conf"
@@ -80,6 +82,22 @@ stdenv.mkDerivation {
8082 installPhase = ''
8183 runHook preInstall
8284
85+ propagated=
86+ for i in $unwrapped $themes; do
87+ findInputs $i propagated propagated-user-env-packages
88+ if [ -z "$crossConfig" ]; then
89+ findInputs $i propagated propagated-native-build-inputs
90+ else
91+ findInputs $i propagated propagated-build-inputs
92+ fi
93+ done
94+
95+ for pkg in $propagated; do
96+ addToSearchPath RUNTIME_XDG_DATA_DIRS "$pkg/share"
97+ addToSearchPath RUNTIME_XDG_CONFIG_DIRS "$pkg/etc/xdg"
98+ done
99+
100+ mkdir -p "$out/bin"
83101 makeQtWrapper "$unwrapped/bin/sddm" "$out/bin/sddm"
84102
85103 mkdir -p "$out/share/sddm"
pkgs/applications/editors/atom/default.nix+7−6
@@ -1,12 +1,12 @@
1−{ stdenv, fetchurl, lib, makeWrapper, gvfs, atomEnv, libXScrnSaver, libxkbfile }:
1+{ stdenv, fetchurl, lib, makeWrapper, gvfs, atomEnv}:
22
33stdenv.mkDerivation rec {
44 name = "atom-${version}";
5− version = "1.14.1";
5+ version = "1.15.0";
66
77 src = fetchurl {
88 url = "https://github.com/atom/atom/releases/download/v${version}/atom-amd64.deb";
9− sha256 = "0dmzqz1j2nfcm459zgfzqym26kmbspdn9lipf77aawbbn2y36xqp";
9+ sha256 = "0w790b9m94m28bx7n94pg2zjxrcjf13228lsb0pl8kyfsk2k2glx";
1010 name = "${name}.deb";
1111 };
1212
@@ -21,9 +21,7 @@ stdenv.mkDerivation rec {
2121 rm -r $out/share/lintian
2222 rm -r $out/usr/
2323 wrapProgram $out/bin/atom \
24− --prefix "PATH" : "${gvfs}/bin" \
25− --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libXScrnSaver ]}/libXss.so.1 \
26− --prefix LD_PRELOAD : ${stdenv.lib.makeLibraryPath [ libxkbfile ]}/libxkbfile.so.1
24+ --prefix "PATH" : "${gvfs}/bin"
2725
2826 fixupPhase
2927
@@ -33,8 +31,11 @@ stdenv.mkDerivation rec {
3331 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
3432 --set-rpath "${atomEnv.libPath}" \
3533 $out/share/atom/resources/app/apm/bin/node
34+
3635 patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
3736 $out/share/atom/resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-linux
37+
38+ find $out/share/atom -name "*.node" -exec patchelf --set-rpath "${atomEnv.libPath}:$out/share/atom" {} \;
3839 '';
3940
4041 meta = with stdenv.lib; {
pkgs/applications/editors/atom/env.nix+1−1
@@ -9,7 +9,7 @@ let
99 fontconfig gdk_pixbuf cairo cups expat libgpgerror alsaLib nspr gconf nss
1010 xorg.libXrender xorg.libX11 xorg.libXext xorg.libXdamage xorg.libXtst
1111 xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
12− xorg.libXcursor libcap systemd libnotify
12+ xorg.libXcursor xorg.libxkbfile xorg.libXScrnSaver libcap systemd libnotify
1313 ];
1414
1515 libPathNative = lib.makeLibraryPath packages;
pkgs/applications/editors/bluefish/default.nix+2−2
@@ -3,11 +3,11 @@
33}:
44
55stdenv.mkDerivation rec {
6− name = "bluefish-2.2.9";
6+ name = "bluefish-2.2.10";
77
88 src = fetchurl {
99 url = "mirror://sourceforge/bluefish/${name}.tar.bz2";
10− sha256 = "1l7pg6h485yj84i34jr09y8qzc1yr4ih6w5jdhmnrg156db7nwav";
10+ sha256 = "1ciygj79q6i3ga5x1j8aivc05nh6rhhnm7hrq8q8xd9vd4ms3v5g";
1111 };
1212
1313 nativeBuildInputs = [ intltool pkgconfig wrapGAppsHook ];
pkgs/applications/editors/codeblocks/default.nix+9−8
@@ -1,20 +1,21 @@
1−{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, zip, wxGTK, gtk2
1+{ stdenv, fetchurl, autoreconfHook, libtool, pkgconfig, file, zip, wxGTK, gtk2
22, contribPlugins ? false, hunspell, gamin, boost
33}:
44
5−with { inherit (stdenv.lib) optionalString optional optionals; };
5+with stdenv.lib;
66
77stdenv.mkDerivation rec {
88 name = "${pname}-${stdenv.lib.optionalString contribPlugins "full-"}${version}";
9− version = "13.12";
9+ version = "16.01";
1010 pname = "codeblocks";
1111
1212 src = fetchurl {
13− url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}-1.tar.gz";
14− sha256 = "044njhps4cm1ijfdyr5f9wjyd0vblhrz9b4603ma52wcdq25093p";
13+ url = "mirror://sourceforge/codeblocks/Sources/${version}/codeblocks_${version}.tar.gz";
14+ sha256 = "00sskm91r20ywydwqwx6v7z3nwn9lyh5297c5wp3razldlh9vyrh";
1515 };
1616
17− buildInputs = [ automake autoconf libtool pkgconfig file zip wxGTK gtk2 ]
17+ nativeBuildInputs = [ autoreconfHook pkgconfig libtool file zip ];
18+ buildInputs = [ wxGTK gtk2 ]
1819 ++ optionals contribPlugins [ hunspell gamin boost ];
1920 enableParallelBuilding = true;
2021 patches = [ ./writable-projects.patch ];
@@ -25,9 +26,9 @@ stdenv.mkDerivation rec {
2526
2627 # Fix boost 1.59 compat
2728 # Try removing in the next version
28− CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED";
29+ #CPPFLAGS = "-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED";
2930
30− meta = with stdenv.lib; {
31+ meta = {
3132 maintainers = [ maintainers.linquize ];
3233 platforms = platforms.all;
3334 description = "The open source, cross platform, free C, C++ and Fortran IDE";
pkgs/applications/editors/eclipse/build-eclipse.nix+8−2
@@ -1,4 +1,6 @@
1−{ stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender, zlib, jdk, glib, gtk2, libXtst, webkitgtk2, makeWrapper, ... }:
1+{ stdenv, makeDesktopItem, freetype, fontconfig, libX11, libXrender
2+, zlib, jdk, glib, gtk2, libXtst, gsettings_desktop_schemas, webkitgtk2
3+, makeWrapper, ... }:
24
35{ name, src ? builtins.getAttr stdenv.system sources, sources ? null, description }:
46
@@ -15,7 +17,10 @@ stdenv.mkDerivation rec {
1517 categories = "Application;Development;";
1618 };
1719
18− buildInputs = [ makeWrapper ];
20+ buildInputs = [
21+ fontconfig freetype glib gsettings_desktop_schemas gtk2 jdk libX11
22+ libXrender libXtst makeWrapper zlib
23+ ] ++ stdenv.lib.optional (webkitgtk2 != null) webkitgtk2;
1924
2025 buildCommand = ''
2126 # Unpack tarball.
@@ -37,6 +42,7 @@ stdenv.mkDerivation rec {
3742 makeWrapper $out/eclipse/eclipse $out/bin/eclipse \
3843 --prefix PATH : ${jdk}/bin \
3944 --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath ([ glib gtk2 libXtst ] ++ stdenv.lib.optional (webkitgtk2 != null) webkitgtk2)} \
45+ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
4046 --add-flags "-configuration \$HOME/.eclipse/''${productId}_$productVersion/configuration"
4147
4248 # Create desktop item.
pkgs/applications/editors/eclipse/default.nix+15−3
@@ -1,6 +1,6 @@
11{ stdenv, lib, fetchurl, makeDesktopItem, makeWrapper
22, freetype, fontconfig, libX11, libXext, libXrender, zlib
3−, glib, libXtst, jdk
3+, glib, gtk2, libXtst, jdk, gsettings_desktop_schemas
44, webkitgtk2 ? null # for internal web browser
55, buildEnv, writeText, runCommand
66, callPackage
@@ -10,10 +10,16 @@ assert stdenv ? glibc;
1010
1111rec {
1212
13− buildEclipse = callPackage ./build-eclipse.nix { };
13+ buildEclipse = import ./build-eclipse.nix {
14+ inherit stdenv makeDesktopItem freetype fontconfig libX11 libXrender zlib
15+ jdk glib gtk2 libXtst gsettings_desktop_schemas webkitgtk2
16+ makeWrapper;
17+ };
1418
1519 ### Eclipse CPP
1620
21+ eclipse-cpp = eclipse-cpp-46; # always point to latest
22+
1723 eclipse-cpp-46 = buildEclipse {
1824 name = "eclipse-cpp-4.6.0";
1925 description = "Eclipse IDE for C/C++ Developers, Neon release";
@@ -50,6 +56,8 @@ rec {
5056
5157 ### Eclipse Modeling
5258
59+ eclipse-modeling = eclipse-modeling-46; # always point to latest
60+
5361 eclipse-modeling-46 = buildEclipse {
5462 name = "eclipse-modeling-4.6";
5563 description = "Eclipse Modeling Tools";
@@ -85,7 +93,7 @@ rec {
8593
8694 ### Eclipse Platform
8795
88− eclipse-platform = eclipse-platform-46;
96+ eclipse-platform = eclipse-platform-46; # always point to latest
8997
9098 eclipse-platform-46 = buildEclipse {
9199 name = "eclipse-platform-4.6.2";
@@ -104,6 +112,8 @@ rec {
104112
105113 ### Eclipse Scala SDK
106114
115+ eclipse-scala-sdk = eclipse-scala-sdk-441; # always point to latest
116+
107117 eclipse-scala-sdk-441 = buildEclipse {
108118 name = "eclipse-scala-sdk-4.4.1";
109119 description = "Eclipse IDE for Scala Developers";
@@ -122,6 +132,8 @@ rec {
122132
123133 ### Eclipse SDK
124134
135+ eclipse-sdk = eclipse-sdk-46; # always point to latest
136+
125137 eclipse-sdk-46 = buildEclipse {
126138 name = "eclipse-sdk-4.6.2";
127139 description = "Eclipse Neon 2 Classic";
pkgs/applications/editors/eclipse/plugins.nix+27−4
@@ -341,12 +341,12 @@ rec {
341341
342342 jdt = buildEclipseUpdateSite rec {
343343 name = "jdt-${version}";
344− version = "4.6";
344+ version = "4.6.2";
345345
346346 src = fetchzip {
347347 stripRoot = false;
348− url = "https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.6-201606061100/org.eclipse.jdt-4.6.zip";
349− sha256 = "0raz8d09fnnx19l012l5frca97qavfivvygn3mvsllcyskhqc5hg";
348+ url = "https://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/eclipse/downloads/drops4/R-4.6.2-201611241400/org.eclipse.jdt-4.6.2.zip";
349+ sha256 = "1nnlrl05lh1hcsh14dlisnx0vwmj21agm4wia98rv0gl2gkp19n1";
350350 };
351351
352352 meta = with stdenv.lib; {
@@ -388,7 +388,7 @@ rec {
388388 version = "4.4.1.201605041056";
389389
390390 src = fetchzip {
391− url = "http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/update-site.zip";
391+ url = "http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/base-20160504-1321.zip";
392392 sha256 = "13xgx2rwlll0l4bs0g6gyvrx5gcc0125vzn501fdj0wv2fqxn5lw";
393393 };
394394
@@ -424,6 +424,29 @@ rec {
424424 };
425425 };
426426
427+ yedit = buildEclipsePlugin rec {
428+ name = "yedit-${version}";
429+ version = "1.0.20.201509041456";
430+
431+ srcFeature = fetchurl {
432+ url = "http://dadacoalition.org/yedit/features/org.dadacoalition.yedit.feature_${version}-RELEASE.jar";
433+ sha256 = "0rps73y19gwlrdr8jjrg3rhcaaagghnmri8297inxc5q2dvg0mlk";
434+ };
435+
436+ srcPlugin = fetchurl {
437+ url = "http://dadacoalition.org/yedit/plugins/org.dadacoalition.yedit_${version}-RELEASE.jar";
438+ sha256 = "1wpyw4z28ka60z36f8m71kz1giajcm26wb9bpv18sjiqwdgx9v0z";
439+ };
440+
441+ meta = with stdenv.lib; {
442+ homepage = https://github.com/oyse/yedit;
443+ description = "A YAML editor plugin for Eclipse";
444+ license = licenses.epl10;
445+ platforms = platforms.all;
446+ maintainers = [ maintainers.rycee ];
447+ };
448+ };
449+
427450 zest = buildEclipseUpdateSite rec {
428451 name = "zest-${version}";
429452 version = "3.9.101";
pkgs/applications/editors/elvis/default.nix+12−2
@@ -1,15 +1,25 @@
1−{ fetchurl, stdenv, ncurses }:
1+{ fetchurl, fetchpatch, stdenv, ncurses }:
22
33stdenv.mkDerivation rec {
44 name = "elvis-2.2_0";
55
66 src = fetchurl {
7− url = ftp://ftp.cs.pdx.edu/pub/elvis/elvis-2.2_0.tar.gz;
7+ url = "http://www.the-little-red-haired-girl.org/pub/elvis/elvis-2.2_0.tar.gz";
88 sha256 = "182fj9qzyq6cjq1r849gpam6nq9smwv9f9xwaq84961p56r6d14s";
99 };
1010
1111 buildInputs = [ ncurses ];
1212
13+ patches = [ (fetchpatch {
14+ url = "https://github.com/mbert/elvis/commit/076cf4ad5cc993be0c6195ec0d5d57e5ad8ac1eb.patch";
15+ sha256 = "0yzkc1mxjwg09mfmrk20ksa0vfnb2x83ndybwvawq4xjm1qkcahc";
16+ }) ];
17+
18+ postPatch = ''
19+ substituteInPlace configure \
20+ --replace '-lcurses' '-lncurses'
21+ '';
22+
1323 preConfigure = ''
1424 mkdir -p $out/share/man/man1
1525 '';
pkgs/applications/editors/emacs-modes/elpa-generated.nix+60−46
@@ -41,10 +41,10 @@
4141 }) {};
4242 ada-ref-man = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
4343 pname = "ada-ref-man";
44− version = "2012.0";
44+ version = "2012.3";
4545 src = fetchurl {
46− url = "https://elpa.gnu.org/packages/ada-ref-man-2012.0.tar";
47− sha256 = "1g97892h8d1xa7cfxgg4i232i15hhci7gijj0dzc31yd9vbqayx8";
46+ url = "https://elpa.gnu.org/packages/ada-ref-man-2012.3.tar";
47+ sha256 = "0w88xw51jb85nmqbi3i9kj9kx2fa6zlazk3x7afll7njc6g4105z";
4848 };
4949 packageRequires = [];
5050 meta = {
@@ -306,6 +306,19 @@
306306 license = lib.licenses.free;
307307 };
308308 }) {};
309+ cl-print = callPackage ({ elpaBuild, emacs, fetchurl, lib }: elpaBuild {
310+ pname = "cl-print";
311+ version = "1.0";
312+ src = fetchurl {
313+ url = "https://elpa.gnu.org/packages/cl-print-1.0.el";
314+ sha256 = "0ib8j7rv5f4c4xg3kban58jm6cam756i3xz6j8100846g3jn9zcc";
315+ };
316+ packageRequires = [ emacs ];
317+ meta = {
318+ homepage = "https://elpa.gnu.org/packages/cl-print.html";
319+ license = lib.licenses.free;
320+ };
321+ }) {};
309322 cobol-mode = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
310323 pname = "cobol-mode";
311324 version = "1.0.0";
@@ -345,15 +358,14 @@
345358 license = lib.licenses.free;
346359 };
347360 }) {};
348− company = callPackage ({ cl-lib ? null, elpaBuild, emacs, fetchurl, lib }:
349− elpaBuild {
361+ company = callPackage ({ elpaBuild, emacs, fetchurl, lib }: elpaBuild {
350362 pname = "company";
351− version = "0.9.2";
363+ version = "0.9.3";
352364 src = fetchurl {
353− url = "https://elpa.gnu.org/packages/company-0.9.2.tar";
354− sha256 = "10divixs06gq9nm8s8x0q12ir07y27d06l52ix2dn84zvj853z4z";
365+ url = "https://elpa.gnu.org/packages/company-0.9.3.tar";
366+ sha256 = "1b38najmah4s2smxslik6wbdvb0x77rm6fv45pcq5x5aaiplh5ap";
355367 };
356− packageRequires = [ cl-lib emacs ];
368+ packageRequires = [ emacs ];
357369 meta = {
358370 homepage = "https://elpa.gnu.org/packages/company.html";
359371 license = lib.licenses.free;
@@ -376,10 +388,10 @@
376388 company-statistics = callPackage ({ company, elpaBuild, emacs, fetchurl, lib }:
377389 elpaBuild {
378390 pname = "company-statistics";
379− version = "0.2.2";
391+ version = "0.2.3";
380392 src = fetchurl {
381− url = "https://elpa.gnu.org/packages/company-statistics-0.2.2.tar";
382− sha256 = "0h1k0dbb7ngk6pghli2csfpzpx37si0wg840jmay0jlb80q6vw73";
393+ url = "https://elpa.gnu.org/packages/company-statistics-0.2.3.tar";
394+ sha256 = "0780xp09f739jys469x4fqpgj1lysi8gnhiaz0735jib07lmh4ww";
383395 };
384396 packageRequires = [ company emacs ];
385397 meta = {
@@ -484,10 +496,10 @@
484496 debbugs = callPackage ({ cl-lib ? null, elpaBuild, fetchurl, lib, soap-client }:
485497 elpaBuild {
486498 pname = "debbugs";
487− version = "0.12";
499+ version = "0.14";
488500 src = fetchurl {
489− url = "https://elpa.gnu.org/packages/debbugs-0.12.tar";
490− sha256 = "1swi4d7fhahimid9j12cypmkz7dlqgffrnhfxy5ra44y3j2b35ph";
501+ url = "https://elpa.gnu.org/packages/debbugs-0.14.tar";
502+ sha256 = "07wgcvg038l88gxvjr0gjpjhyk743w22x1rqghz3gkmif0g70say";
491503 };
492504 packageRequires = [ cl-lib soap-client ];
493505 meta = {
@@ -632,10 +644,10 @@
632644 el-search = callPackage ({ elpaBuild, emacs, fetchurl, lib, stream }:
633645 elpaBuild {
634646 pname = "el-search";
635− version = "1.2.3";
647+ version = "1.3";
636648 src = fetchurl {
637− url = "https://elpa.gnu.org/packages/el-search-1.2.3.tar";
638− sha256 = "1d7iqr4fr0kr171fnjcm2n0bgcwzdh6jl585mwjf2zqnqszv13h0";
649+ url = "https://elpa.gnu.org/packages/el-search-1.3.tar";
650+ sha256 = "0hg7jppdsaxy285bdaban1i096bjx21pqmczz7w9f3nr34n28pyn";
639651 };
640652 packageRequires = [ emacs stream ];
641653 meta = {
@@ -725,10 +737,10 @@
725737 }) {};
726738 exwm = callPackage ({ elpaBuild, fetchurl, lib, xelb }: elpaBuild {
727739 pname = "exwm";
728− version = "0.12";
740+ version = "0.13";
729741 src = fetchurl {
730− url = "https://elpa.gnu.org/packages/exwm-0.12.tar";
731− sha256 = "1h964w9ir8plam45c194af74g5q1wdvgwrldlmlcplcswlsn3n4z";
742+ url = "https://elpa.gnu.org/packages/exwm-0.13.tar";
743+ sha256 = "0n1wzy6chh024r0yaywjbf7mdsrxs6hrfycv5v0ps0drf6q3zldc";
732744 };
733745 packageRequires = [ xelb ];
734746 meta = {
@@ -808,10 +820,10 @@
808820 gnorb = callPackage ({ cl-lib ? null, elpaBuild, fetchurl, lib }:
809821 elpaBuild {
810822 pname = "gnorb";
811− version = "1.1.2";
823+ version = "1.2.1";
812824 src = fetchurl {
813− url = "https://elpa.gnu.org/packages/gnorb-1.1.2.tar";
814− sha256 = "18d5wdv33lcg96m3ljnv9zn98in27apm7bjycgq0asd2f31dvcvx";
825+ url = "https://elpa.gnu.org/packages/gnorb-1.2.1.tar";
826+ sha256 = "0mip0czvpdl26xz9wamii5azj9bacjhdg0jgkrxyv17vqqlbag9x";
815827 };
816828 packageRequires = [ cl-lib ];
817829 meta = {
@@ -822,10 +834,10 @@
822834 gnugo = callPackage ({ ascii-art-to-unicode, cl-lib ? null, elpaBuild, fetchurl, lib, xpm }:
823835 elpaBuild {
824836 pname = "gnugo";
825− version = "3.0.2";
837+ version = "3.1.0";
826838 src = fetchurl {
827− url = "https://elpa.gnu.org/packages/gnugo-3.0.2.tar";
828− sha256 = "12xm960awsn2k8ph1yibhrxdg8iz1icifdqimysg3qxljmhmnb3k";
839+ url = "https://elpa.gnu.org/packages/gnugo-3.1.0.tar";
840+ sha256 = "0xpjvs250gg71qwapdsb1hlc61gs0gpkjds01srf784fvyxx2gf1";
829841 };
830842 packageRequires = [ ascii-art-to-unicode cl-lib xpm ];
831843 meta = {
@@ -1045,27 +1057,29 @@
10451057 license = lib.licenses.free;
10461058 };
10471059 }) {};
1048− lmc = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
1060+ lmc = callPackage ({ cl-lib ? null, elpaBuild, emacs, fetchurl, lib }:
1061+ elpaBuild {
10491062 pname = "lmc";
10501063 version = "1.4";
10511064 src = fetchurl {
10521065 url = "https://elpa.gnu.org/packages/lmc-1.4.el";
10531066 sha256 = "0fm4sclx9gg0d0615smz105x320sk45y4ivpjk3nbc67c5l0sh2h";
10541067 };
1055− packageRequires = [];
1068+ packageRequires = [ cl-lib emacs ];
10561069 meta = {
10571070 homepage = "https://elpa.gnu.org/packages/lmc.html";
10581071 license = lib.licenses.free;
10591072 };
10601073 }) {};
1061− load-dir = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
1074+ load-dir = callPackage ({ cl-lib ? null, elpaBuild, fetchurl, lib }:
1075+ elpaBuild {
10621076 pname = "load-dir";
1063− version = "0.0.3";
1077+ version = "0.0.5";
10641078 src = fetchurl {
1065− url = "https://elpa.gnu.org/packages/load-dir-0.0.3.el";
1066− sha256 = "0w5rdc6gr7nm7r0d258mp5sc06n09mmz7kjg8bd3sqnki8iz7s32";
1079+ url = "https://elpa.gnu.org/packages/load-dir-0.0.5.el";
1080+ sha256 = "1575ipn155nzzb5yghblxc7v1vpq4i16w1ff7y56qw2498ligpc5";
10671081 };
1068− packageRequires = [];
1082+ packageRequires = [ cl-lib ];
10691083 meta = {
10701084 homepage = "https://elpa.gnu.org/packages/load-dir.html";
10711085 license = lib.licenses.free;
@@ -1377,10 +1391,10 @@
13771391 }) {};
13781392 org = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
13791393 pname = "org";
1380− version = "20170124";
1394+ version = "20170210";
13811395 src = fetchurl {
1382− url = "https://elpa.gnu.org/packages/org-20170124.tar";
1383− sha256 = "0mcnjwvily0xv1xl11dj18lg38llvrxja2j9mwn6vql8n5y1srxi";
1396+ url = "https://elpa.gnu.org/packages/org-20170210.tar";
1397+ sha256 = "15415wh3w8d4c8hd7qfrfdjnjb1zppmrkg8cdp7hw2ilyr90c0bn";
13841398 };
13851399 packageRequires = [];
13861400 meta = {
@@ -1943,10 +1957,10 @@
19431957 validate = callPackage ({ cl-lib ? null, elpaBuild, emacs, fetchurl, lib, seq }:
19441958 elpaBuild {
19451959 pname = "validate";
1946− version = "1.0.2";
1960+ version = "1.0.4";
19471961 src = fetchurl {
1948− url = "https://elpa.gnu.org/packages/validate-1.0.2.el";
1949− sha256 = "19xhd9mxkdcisspz5q3bnvf6jjsvmhjjrpw3pq5lgyqbcz8k8dsr";
1962+ url = "https://elpa.gnu.org/packages/validate-1.0.4.el";
1963+ sha256 = "0vksssk98hcnz804g62k8kika13argf6p7bx8rf9hwidvzdsv6mi";
19501964 };
19511965 packageRequires = [ cl-lib emacs seq ];
19521966 meta = {
@@ -1995,10 +2009,10 @@
19952009 }) {};
19962010 wconf = callPackage ({ elpaBuild, emacs, fetchurl, lib }: elpaBuild {
19972011 pname = "wconf";
1998− version = "0.2.0";
2012+ version = "0.2.1";
19992013 src = fetchurl {
2000− url = "https://elpa.gnu.org/packages/wconf-0.2.0.el";
2001− sha256 = "07adnx2ni7kprxw9mx1nywzs1a2h43rszfa8r8i0s9j16grvgphk";
2014+ url = "https://elpa.gnu.org/packages/wconf-0.2.1.el";
2015+ sha256 = "13p1xycp3mcrg8jv65mcyqvln4h7awhjz35dzr5bi86zb824ryxf";
20022016 };
20032017 packageRequires = [ emacs ];
20042018 meta = {
@@ -2101,10 +2115,10 @@
21012115 }) {};
21022116 xpm = callPackage ({ elpaBuild, fetchurl, lib }: elpaBuild {
21032117 pname = "xpm";
2104− version = "1.0.3";
2118+ version = "1.0.4";
21052119 src = fetchurl {
2106− url = "https://elpa.gnu.org/packages/xpm-1.0.3.tar";
2107− sha256 = "0qckb93xwzcg8iwiv4bd08r60jn0n853czmilz0hyyb1lfi82lp4";
2120+ url = "https://elpa.gnu.org/packages/xpm-1.0.4.tar";
2121+ sha256 = "075miyashh9cm3b0gk6ngld3rm8bfgnh4qxnhxmmvjgzf6a64grh";
21082122 };
21092123 packageRequires = [];
21102124 meta = {
pkgs/applications/editors/emacs-modes/melpa-generated.nix+3669−1985
This diff is too big to show here.
pkgs/applications/editors/emacs-modes/melpa-stable-generated.nix+1283−486
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/proofgeneral/HEAD.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/emacs/default.nix+10−9
This diff is too big to show here.
pkgs/applications/editors/emacs/macport-24.5.nixdeleted−91
This diff is too big to show here.
pkgs/applications/editors/emacs/macport-25.1.nix → pkgs/applications/editors/emacs/macport.nixrenamed+9−7
This diff is too big to show here.
pkgs/applications/editors/flpsed/default.nix+15−8
This diff is too big to show here.
pkgs/applications/editors/geany/default.nix+10−7
This diff is too big to show here.
pkgs/applications/editors/hexcurse/default.nix+6−6
This diff is too big to show here.
pkgs/applications/editors/idea/default.nix+16−16
This diff is too big to show here.
pkgs/applications/editors/joe/default.nix+2−2
This diff is too big to show here.
pkgs/applications/editors/kakoune/default.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/kdevelop/default.nixdeleted−38
This diff is too big to show here.
pkgs/applications/editors/kdevelop/gettext.patchdeleted−8
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdevelop.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdevplatform-projectconfigskeleton.patchdeleted−55
This diff is too big to show here.
pkgs/applications/editors/kdevelop5/kdevplatform.nix+3−5
This diff is too big to show here.
pkgs/applications/editors/kile/default.nix+61−21
This diff is too big to show here.
pkgs/applications/editors/kile/frameworks.nixdeleted−68
This diff is too big to show here.
pkgs/applications/editors/kodestudio/default.nixnew file+133
This diff is too big to show here.
pkgs/applications/editors/leo-editor/default.nix+5−5
This diff is too big to show here.
pkgs/applications/editors/mg/configure.patchdeleted−35
This diff is too big to show here.
pkgs/applications/editors/mg/default.nix+15−14
This diff is too big to show here.
pkgs/applications/editors/nano/default.nix+13−3
This diff is too big to show here.
pkgs/applications/editors/ne/default.nix+7−6
This diff is too big to show here.
pkgs/applications/editors/nedit/default.nix+6−4
This diff is too big to show here.
pkgs/applications/editors/neovim/default.nix+8−2
This diff is too big to show here.
pkgs/applications/editors/neovim/qt.nix+32−27
This diff is too big to show here.
pkgs/applications/editors/notepadqq/default.nix+3−3
This diff is too big to show here.
pkgs/applications/editors/scite/default.nix+10−12
This diff is too big to show here.
pkgs/applications/editors/sigil/default.nix+9−10
This diff is too big to show here.
pkgs/applications/editors/sublime3/default.nix+24−2
This diff is too big to show here.
pkgs/applications/editors/tiled/default.nix+8−7
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+1−1
This diff is too big to show here.
pkgs/applications/editors/vis/default.nix+6−9
This diff is too big to show here.
pkgs/applications/editors/vscode/default.nix+38−33
This diff is too big to show here.
pkgs/applications/gis/qgis/default.nix+12−3
This diff is too big to show here.
pkgs/applications/graphics/PythonMagick/default.nix+4−8
This diff is too big to show here.
pkgs/applications/graphics/ahoviewer/default.nix+16−8
This diff is too big to show here.
pkgs/applications/graphics/alchemy/default.nix+10−8
This diff is too big to show here.
pkgs/applications/graphics/c3d/default.nixnew file+24
This diff is too big to show here.
pkgs/applications/graphics/dia/default.nix+1−1
This diff is too big to show here.
pkgs/applications/graphics/digikam/0001-Disable-fno-operator-names.patchnew file+25
This diff is too big to show here.
pkgs/applications/graphics/digikam/5.nixdeleted−120
This diff is too big to show here.
pkgs/applications/graphics/digikam/default.nix+104−206
This diff is too big to show here.
pkgs/applications/graphics/djview/default.nix+9−10
This diff is too big to show here.
pkgs/applications/graphics/fbida/default.nix+5−7
This diff is too big to show here.
pkgs/applications/graphics/feh/default.nix+16−11
This diff is too big to show here.
pkgs/applications/graphics/fontmatrix/default.nix+13−9
This diff is too big to show here.
pkgs/applications/graphics/gimp/plugins/default.nix+4−19
This diff is too big to show here.
pkgs/applications/graphics/glabels/default.nix+10−12
This diff is too big to show here.
pkgs/applications/graphics/graphicsmagick/cmyka-bounds.patchnew file+36
This diff is too big to show here.
pkgs/applications/graphics/graphicsmagick/default.nix+4−2
This diff is too big to show here.
pkgs/applications/graphics/gthumb/default.nix+3−3
This diff is too big to show here.
pkgs/applications/graphics/inkscape/default.nix+10−4
This diff is too big to show here.
pkgs/applications/graphics/ipe/default.nix+2
This diff is too big to show here.
pkgs/applications/graphics/jpegoptim/default.nix+6−6
This diff is too big to show here.
pkgs/applications/graphics/kgraphviewer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/graphics/kipi-plugins/5.x.nixdeleted−34
This diff is too big to show here.
pkgs/applications/graphics/kipi-plugins/default.nix+23−19
This diff is too big to show here.
pkgs/applications/graphics/krita/default.nix+4−3
This diff is too big to show here.
pkgs/applications/graphics/ktikz/default.nix+53−61
This diff is too big to show here.
pkgs/applications/graphics/kuickshow/default.nixdeleted−14
This diff is too big to show here.
pkgs/applications/graphics/leocad/default.nix+9−9
This diff is too big to show here.
pkgs/applications/graphics/meh/default.nixnew file+27
This diff is too big to show here.
pkgs/applications/graphics/nomacs/default.nixnew file+65
This diff is too big to show here.
pkgs/applications/graphics/nomacs/fix-appdata-install.patchnew file+13
This diff is too big to show here.
pkgs/applications/graphics/openimageio/default.nix+10−6
This diff is too big to show here.
pkgs/applications/graphics/pbrt/default.nix+13−12
This diff is too big to show here.
pkgs/applications/graphics/photivo/default.nix+11−1
This diff is too big to show here.
pkgs/applications/graphics/potrace/default.nix+6−6
This diff is too big to show here.
pkgs/applications/graphics/pqiv/default.nix+15−15
This diff is too big to show here.
pkgs/applications/graphics/rapcad/default.nix+21−11
This diff is too big to show here.
pkgs/applications/graphics/rawtherapee/default.nix+8−6
This diff is too big to show here.
pkgs/applications/graphics/renderdoc/default.nixnew file+53
This diff is too big to show here.
pkgs/applications/graphics/sane/backends/brscan4/default.nix+15−7
This diff is too big to show here.
pkgs/applications/graphics/seg3d/default.nix+4
This diff is too big to show here.
pkgs/applications/graphics/shotwell/default.nix+5−5
This diff is too big to show here.
pkgs/applications/graphics/solvespace/default.nix+6
This diff is too big to show here.
pkgs/applications/graphics/vimiv/default.nix+1
This diff is too big to show here.
pkgs/applications/graphics/yed/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/akonadi-contacts.nix → pkgs/applications/kde/akonadi-contacts.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/akonadi-mime.nix → pkgs/applications/kde/akonadi-mime.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/akonadi.nix → pkgs/applications/kde/akonadi.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/ark/default.nix → pkgs/applications/kde/ark/default.nixrenamed+12−8
This diff is too big to show here.
pkgs/desktops/kde-5/applications/baloo-widgets.nix → pkgs/applications/kde/baloo-widgets.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kde-app.nix → pkgs/applications/kde/build-support/application.nixrenamed
The content is the same.
pkgs/applications/kde/default.nixnew file+95
This diff is too big to show here.
pkgs/desktops/kde-5/applications/dolphin-plugins.nix → pkgs/applications/kde/dolphin-plugins.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/dolphin.nix → pkgs/applications/kde/dolphin.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/fetch.shnew file+1
This diff is too big to show here.
pkgs/desktops/kde-5/applications/ffmpegthumbs.nix → pkgs/applications/kde/ffmpegthumbs.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/filelight.nix → pkgs/applications/kde/filelight.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/gwenview.nix → pkgs/applications/kde/gwenview.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kate.nix → pkgs/applications/kde/kate.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/kcachegrind.nixnew file+27
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kcalc.nix → pkgs/applications/kde/kcalc.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kcolorchooser.nix → pkgs/applications/kde/kcolorchooser.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kcontacts.nix → pkgs/applications/kde/kcontacts.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kde-locale-4.nix → pkgs/applications/kde/kde-locale-4.nixrenamed
The content is the same.
pkgs/desktops/kde-5/applications/kde-locale-5.nix → pkgs/applications/kde/kde-locale-5.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdegraphics-mobipocket.nix → pkgs/applications/kde/kdegraphics-mobipocket.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdegraphics-thumbnailers.nix → pkgs/applications/kde/kdegraphics-thumbnailers.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdelibs/0001-old-kde4-cmake-policies.patch → pkgs/applications/kde/kdelibs/0001-old-kde4-cmake-policies.patchrenamed
The content is the same.
pkgs/desktops/kde-5/applications/kdelibs/0002-polkit-install-path.patch → pkgs/applications/kde/kdelibs/0002-polkit-install-path.patchrenamed
The content is the same.
pkgs/desktops/kde-5/applications/kdelibs/0003-remove_xdg_impurities.patch → pkgs/applications/kde/kdelibs/0003-remove_xdg_impurities.patchrenamed
The content is the same.
pkgs/desktops/kde-5/applications/kdelibs/default.nix → pkgs/applications/kde/kdelibs/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdenetwork-filesharing.nix → pkgs/applications/kde/kdenetwork-filesharing.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdenlive.nix → pkgs/applications/kde/kdenlive.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kdf.nix → pkgs/applications/kde/kdf.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kgpg.nix → pkgs/applications/kde/kgpg.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/khelpcenter.nix → pkgs/applications/kde/khelpcenter.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/kig.nixnew file+26
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kio-extras.nix → pkgs/applications/kde/kio-extras.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kmime.nix → pkgs/applications/kde/kmime.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kmix.nix → pkgs/applications/kde/kmix.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kompare.nix → pkgs/applications/kde/kompare.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/konsole.nix → pkgs/applications/kde/konsole.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/krfb.nixnew file+22
This diff is too big to show here.
pkgs/desktops/kde-5/applications/kwalletmanager.nix → pkgs/applications/kde/kwalletmanager.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/l10n.nix → pkgs/applications/kde/l10n.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/libkdcraw.nix → pkgs/applications/kde/libkdcraw.nixrenamed+3−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/libkexiv2.nix → pkgs/applications/kde/libkexiv2.nixrenamed+3−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/libkipi.nix → pkgs/applications/kde/libkipi.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/libkomparediff2.nixnew file+7
This diff is too big to show here.
pkgs/desktops/kde-5/applications/marble.nix → pkgs/applications/kde/marble.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/okteta.nix → pkgs/applications/kde/okteta.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/okular.nix → pkgs/applications/kde/okular.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/print-manager.nix → pkgs/applications/kde/print-manager.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/applications/spectacle.nix → pkgs/applications/kde/spectacle.nixrenamed+2−2
This diff is too big to show here.
pkgs/applications/kde/srcs.nixnew file+2229
This diff is too big to show here.
pkgs/applications/misc/albert/default.nix+9−4
This diff is too big to show here.
pkgs/applications/misc/antfs-cli/default.nixnew file+21
This diff is too big to show here.
pkgs/applications/misc/audio/sox/default.nix+3−1
This diff is too big to show here.
pkgs/applications/misc/blender/default.nix+12−6
This diff is too big to show here.
pkgs/applications/misc/buku/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/calcurse/default.nix+15−10
This diff is too big to show here.
pkgs/applications/misc/calibre/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/calibre/dont_build_unrar_plugin.patch+12−15
This diff is too big to show here.
pkgs/applications/misc/cheat/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/chirp/default.nix+6−11
This diff is too big to show here.
pkgs/applications/misc/colort/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/misc/copyq/default.nix+14−10
This diff is too big to show here.
pkgs/applications/misc/cura/default.nix+22−57
This diff is too big to show here.
pkgs/applications/misc/cura/stable.nixnew file+73
This diff is too big to show here.
pkgs/applications/misc/curaengine/default.nix+15−18
This diff is too big to show here.
pkgs/applications/misc/curaengine/stable.nixnew file+29
This diff is too big to show here.
pkgs/applications/misc/d4x/default.nixdeleted−20
This diff is too big to show here.
pkgs/applications/misc/devilspie2/default.nix+6−9
This diff is too big to show here.
pkgs/applications/misc/dfilemanager/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/direwolf/default.nix+24−19
This diff is too big to show here.
pkgs/applications/misc/djvulibre/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/dmenu2/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/doomseeker/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/electrum/default.nix+12−9
This diff is too big to show here.
pkgs/applications/misc/emem/default.nix+4−7
This diff is too big to show here.
pkgs/applications/misc/epdfview/default.nix+11−9
This diff is too big to show here.
pkgs/applications/misc/evopedia/default.nix+9−8
This diff is too big to show here.
pkgs/applications/misc/exercism/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/far2l/default.nixnew file+63
This diff is too big to show here.
pkgs/applications/misc/finalterm/default.nix+12−10
This diff is too big to show here.
pkgs/applications/misc/freicoin/default.nixdeleted−28
This diff is too big to show here.
pkgs/applications/misc/galculator/default.nix+11−8
This diff is too big to show here.
pkgs/applications/misc/gammu/bashcomp-dir.patch+8−9
This diff is too big to show here.
pkgs/applications/misc/gammu/default.nix+11−7
This diff is too big to show here.
pkgs/applications/misc/gammu/systemd.patchnew file+30
This diff is too big to show here.
pkgs/applications/misc/gcalcli/default.nix+18−5
This diff is too big to show here.
pkgs/applications/misc/get_iplayer/default.nix+17−12
This diff is too big to show here.
pkgs/applications/misc/girara/default.nix+15−11
This diff is too big to show here.
pkgs/applications/misc/gkrellm/default.nix+16−14
This diff is too big to show here.
pkgs/applications/misc/gmrun/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/gmtp/default.nixnew file+27
This diff is too big to show here.
pkgs/applications/misc/gpa/default.nix+4−3
This diff is too big to show here.
pkgs/applications/misc/gphoto2/default.nix+8−8
This diff is too big to show here.
pkgs/applications/misc/gpsbabel/default.nix+11−5
This diff is too big to show here.
pkgs/applications/misc/gpscorrelate/default.nix+17−13
This diff is too big to show here.
pkgs/applications/misc/hr/default.nixnew file+28
This diff is too big to show here.
pkgs/applications/misc/hstr/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/htmldoc/default.nixdeleted−16
This diff is too big to show here.
pkgs/applications/misc/hyper/default.nix+5−6
This diff is too big to show here.
pkgs/applications/misc/inspectrum/default.nix+23−6
This diff is too big to show here.
pkgs/applications/misc/iterm2/default.nix+5−2
This diff is too big to show here.
pkgs/applications/misc/j4-dmenu-desktop/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/jp2a/default.nix+8−5
This diff is too big to show here.
pkgs/applications/misc/k3b/default.nix+5−5
This diff is too big to show here.
pkgs/applications/misc/kanboard/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/misc/kde-wacomtablet/default.nixdeleted−23
This diff is too big to show here.
pkgs/applications/misc/kdeconnect/0.7.nixdeleted−36
This diff is too big to show here.
pkgs/applications/misc/kdeconnect/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/keepass-plugins/keeagent/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/misc/keepass/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/keepassx/community.nix+11−4
This diff is too big to show here.
pkgs/applications/misc/kgocode/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/khal/default.nix+2−3
This diff is too big to show here.
pkgs/applications/misc/khard/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/kiwix/default.nix+47−48
This diff is too big to show here.
pkgs/applications/misc/krename/kde5.nix → pkgs/applications/misc/krename/default.nixrenamed+3−3
This diff is too big to show here.
pkgs/applications/misc/krename/kde4.nixdeleted−22
This diff is too big to show here.
pkgs/applications/misc/krusader/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/latte-dock/default.nixnew file+26
This diff is too big to show here.
pkgs/applications/misc/lilyterm/default.nix+31−9
This diff is too big to show here.
pkgs/applications/misc/merkaartor/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/monero/default.nix+4−4
This diff is too big to show here.
pkgs/applications/misc/mpvc/default.nixnew file+29
This diff is too big to show here.
pkgs/applications/misc/multisync/default.nixdeleted−23
This diff is too big to show here.
pkgs/applications/misc/mupdf/default.nix+6
This diff is too big to show here.
pkgs/applications/misc/mwic/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/misc/octoprint/default.nix+53−53
This diff is too big to show here.
pkgs/applications/misc/octoprint/plugins.nix+6−1
This diff is too big to show here.
pkgs/applications/misc/orpie/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/osmctools/default.nix+24−8
This diff is too big to show here.
pkgs/applications/misc/pdfpc/default.nix+7−5
This diff is too big to show here.
pkgs/applications/misc/pdfshuffler/default.nixnew file+40
This diff is too big to show here.
pkgs/applications/misc/polybar/default.nixnew file+60
This diff is too big to show here.
pkgs/applications/misc/ptask/default.nixnew file+29
This diff is too big to show here.
pkgs/applications/misc/ptask/tw-version.patchnew file+11
This diff is too big to show here.
pkgs/applications/misc/pwsafe/default.nix+3−3
This diff is too big to show here.
pkgs/applications/misc/qmetro/default.nixnew file+32
This diff is too big to show here.
pkgs/applications/misc/qsyncthingtray/default.nix+34−18
This diff is too big to show here.
pkgs/applications/misc/ranger/default.nix+7−2
This diff is too big to show here.
pkgs/applications/misc/redshift-plasma-applet/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/robomongo/default.nix+1
This diff is too big to show here.
pkgs/applications/misc/rsibreak/default.nixdeleted−23
This diff is too big to show here.
pkgs/applications/misc/sbagen/default.nix+11−8
This diff is too big to show here.
pkgs/applications/misc/sc-im/default.nix+8−6
This diff is too big to show here.
pkgs/applications/misc/semnotes/default.nixdeleted−26
This diff is too big to show here.
pkgs/applications/misc/spacefm/default.nix+5−3
This diff is too big to show here.
pkgs/applications/misc/speedread/default.nixnew file+32
This diff is too big to show here.
pkgs/applications/misc/stog/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/misc/stog/install.patchnew file+18
This diff is too big to show here.
pkgs/applications/misc/styx/default.nix+12−4
This diff is too big to show here.
pkgs/applications/misc/styx/themes.nix+20−20
This diff is too big to show here.
pkgs/applications/misc/subsurface/default.nix+75−28
This diff is too big to show here.
pkgs/applications/misc/super_user_spark/default.nix+16−15
This diff is too big to show here.
pkgs/applications/misc/sweethome3d/default.nix+12−6
This diff is too big to show here.
pkgs/applications/misc/sweethome3d/editors.nix+1
This diff is too big to show here.
pkgs/applications/misc/taskjuggler/Gemfilenew file+2
This diff is too big to show here.
pkgs/applications/misc/taskjuggler/Gemfile.locknew file+21
This diff is too big to show here.
pkgs/applications/misc/taskjuggler/default.nixnew file+15
This diff is too big to show here.
pkgs/applications/misc/taskjuggler/gemset.nixnew file+47
This diff is too big to show here.
pkgs/applications/misc/terminal-parrot/default.nixnew file+22
This diff is too big to show here.
pkgs/applications/misc/timewarrior/default.nix+1−5
This diff is too big to show here.
pkgs/applications/misc/timewarrior/install-all-themes.patchnew file+27
This diff is too big to show here.
pkgs/applications/misc/tnef/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/urh/default.nixnew file+28
This diff is too big to show here.
pkgs/applications/misc/veracrypt/default.nixnew file+45
This diff is too big to show here.
pkgs/applications/misc/worker/default.nixnew file+20
This diff is too big to show here.
pkgs/applications/misc/xastir/default.nixnew file+37
This diff is too big to show here.
pkgs/applications/misc/xca/default.nix+3
This diff is too big to show here.
pkgs/applications/misc/xdgmenumaker/default.nix+2−2
This diff is too big to show here.
pkgs/applications/misc/xfe/default.nix+1−1
This diff is too big to show here.
pkgs/applications/misc/xrq/default.nixnew file+27
This diff is too big to show here.
pkgs/applications/misc/yakuake/3.0.nixdeleted−63
This diff is too big to show here.
pkgs/applications/misc/yakuake/default.nix+55−20
This diff is too big to show here.
pkgs/applications/misc/ykpers/default.nixdeleted−24
This diff is too big to show here.
pkgs/applications/misc/zathura/core/default.nix+22−15
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/common.nix+18−11
This diff is too big to show here.
pkgs/applications/networking/browsers/chromium/default.nix+4−5
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/default.nix+4−3
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/firefox.keynew file+63
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/sources.nix+369−369
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox-bin/update.nix+12−4
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/default.nix+17−12
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/fix-debug.patchnew file+77
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/update.nix+7−27
This diff is too big to show here.
pkgs/applications/networking/browsers/firefox/wrapper.nix+9−22
This diff is too big to show here.
pkgs/applications/networking/browsers/kwebkitpart/CVE-2014-8600.diffdeleted−33
This diff is too big to show here.
pkgs/applications/networking/browsers/kwebkitpart/default.nixdeleted−25
This diff is too big to show here.
pkgs/applications/networking/browsers/links2/default.nix+10−9
This diff is too big to show here.
pkgs/applications/networking/browsers/luakit/default.nixdeleted−55
This diff is too big to show here.
pkgs/applications/networking/browsers/lynx/default.nix+7−8
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/default.nix+6−6
This diff is too big to show here.
pkgs/applications/networking/browsers/mozilla-plugins/flashplayer/standalone.nix+5−5
This diff is too big to show here.
pkgs/applications/networking/browsers/opera/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/browsers/palemoon/default.nix+9−7
This diff is too big to show here.
pkgs/applications/networking/browsers/qutebrowser/default.nix+10−7
This diff is too big to show here.
pkgs/applications/networking/browsers/rekonq/default.nixdeleted−26
This diff is too big to show here.
pkgs/applications/networking/browsers/surf/default.nix+15−21
This diff is too big to show here.
pkgs/applications/networking/browsers/torbrowser/default.nixnew file+329
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/cluster/docker-machine/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/docker-machine/kvm-deps.nix+8−8
This diff is too big to show here.
pkgs/applications/networking/cluster/docker-machine/kvm.nix+7−11
This diff is too big to show here.
pkgs/applications/networking/cluster/helm/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/kops/default.nix+1
This diff is too big to show here.
pkgs/applications/networking/cluster/kubernetes/default.nix+7−12
This diff is too big to show here.
pkgs/applications/networking/cluster/marathon/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/cluster/mesos/default.nix+10
This diff is too big to show here.
pkgs/applications/networking/cluster/minikube/default.nix+63−29
This diff is too big to show here.
pkgs/applications/networking/cluster/nomad/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/cluster/spark/default.nix+27−6
This diff is too big to show here.
pkgs/applications/networking/cluster/ssm-agent/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/networking/cluster/terraform/default.nix+61−27
This diff is too big to show here.
pkgs/applications/networking/cluster/terragrunt/0.9.8.nixnew file+35
This diff is too big to show here.
pkgs/applications/networking/cluster/terragrunt/default.nix+6−2
This diff is too big to show here.
pkgs/applications/networking/cluster/terragrunt/deps.nix+8−8
This diff is too big to show here.
pkgs/applications/networking/corebird/default.nix+5−4
This diff is too big to show here.
pkgs/applications/networking/droopy/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/networking/dropbox-cli/default.nix+2
This diff is too big to show here.
pkgs/applications/networking/dropbox/default.nix+16−35
This diff is too big to show here.
pkgs/applications/networking/esniper/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/feedreaders/rss2email/default.nixnew file+29
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/google-drive-ocamlfuse/default.nix+6−6
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/baresip/default.nix+15−14
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/bitlbee-facebook/default.nix+7−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/choqok/default.nixdeleted−26
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/ekiga/default.nix+1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/freetalk/default.nix+20−27
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/gajim/default.nix+20−28
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/gale/gale-install.in.patch+1−1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/jitsi/default.nix+9−11
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/jitsi/jitsi.patch+5−5
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/messenger-for-desktop/default.nixnew file+104
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/oneteam/default.nixdeleted−64
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-facebook/default.nix+38−10
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/sipe/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin-plugins/tox-prpl/default.nix+11−13
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/pidgin/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/profanity/default.nix+3−2
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/psi-plus/default.nixnew file+47
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/qtox/default.nix+24−35
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/salut-a-toi/default.nix+40−36
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/scudcloud/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/sflphone/default.nixdeleted−86
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/sflphone/libzrtpcpp-cflags.patchdeleted−15
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/slack/default.nix+7−5
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telegram/cutegram/default.nix+1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix+62−114
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telepathy/kde/default.nix+8−8
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/telepathy/rakia/default.nixdeleted−19
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/tkabber/default.nixdeleted−68
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/torchat/default.nix+1
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/toxic/default.nix+13−12
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/twinkle/boost_regex.patchdeleted−17
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/twinkle/default.nixdeleted−40
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/twinkle/libgsm.patchdeleted−70
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/twinkle/localetime_r_conflict.diffdeleted−13
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/twinkle/newer-libccrtp.diffdeleted−22
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/utox/default.nix+21−11
This diff is too big to show here.
pkgs/applications/networking/instant-messengers/zoom-us/default.nixdeleted−104
This diff is too big to show here.
pkgs/applications/networking/ipfs/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/irc/epic5/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/networking/irc/irssi/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/irc/konversation/1.6.nixdeleted−82
This diff is too big to show here.
pkgs/applications/networking/irc/konversation/default.nix+74−18
This diff is too big to show here.
pkgs/applications/networking/irc/kvirc/default.nixdeleted−24
This diff is too big to show here.
pkgs/applications/networking/irc/quassel/default.nix+32−15
This diff is too big to show here.
pkgs/applications/networking/irc/quassel/qt-5.nixdeleted−88
This diff is too big to show here.
pkgs/applications/networking/irc/shout/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/irc/sic/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/mailreaders/imapfilter.nix+8−5
This diff is too big to show here.
pkgs/applications/networking/mailreaders/lumail/default.nixnew file+48
This diff is too big to show here.
pkgs/applications/networking/mailreaders/mailpile/default.nix+3
This diff is too big to show here.
pkgs/applications/networking/mailreaders/mutt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/neomutt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/notmuch/default.nix+1
This diff is too big to show here.
pkgs/applications/networking/mailreaders/notmuch/muchsync.nix+2−2
This diff is too big to show here.
pkgs/applications/networking/mailreaders/sylpheed/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix+4−3
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird-bin/sources.nix+233−233
This diff is too big to show here.
pkgs/applications/networking/mailreaders/thunderbird/default.nix+7−9
This diff is too big to show here.
pkgs/applications/networking/mpop/default.nix+11−8
This diff is too big to show here.
pkgs/applications/networking/msmtp/default.nix+34−14
This diff is too big to show here.
pkgs/applications/networking/msmtp/paths.patchnew file+96
This diff is too big to show here.
pkgs/applications/networking/mumble/default.nix+13−6
This diff is too big to show here.
pkgs/applications/networking/newsreaders/kwooty/0001-search-paths.patchdeleted−33
This diff is too big to show here.
pkgs/applications/networking/newsreaders/kwooty/default.nixdeleted−38
This diff is too big to show here.
pkgs/applications/networking/newsreaders/liferea/default.nix+19−25
This diff is too big to show here.
pkgs/applications/networking/newsreaders/pan/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/ostinato/default.nix+34−33
This diff is too big to show here.
pkgs/applications/networking/owncloud-client/default.nix+10−11
This diff is too big to show here.
pkgs/applications/networking/p2p/frostwire/default.nix+7−7
This diff is too big to show here.
pkgs/applications/networking/p2p/ktorrent/5.nixdeleted−41
This diff is too big to show here.
pkgs/applications/networking/p2p/ktorrent/default.nix+21−12
This diff is too big to show here.
pkgs/applications/networking/p2p/ktorrent/find-workspace.diffdeleted−29
This diff is too big to show here.
pkgs/applications/networking/p2p/ncdc/default.nix+9−10
This diff is too big to show here.
pkgs/applications/networking/p2p/qbittorrent/default.nix+3−3
This diff is too big to show here.
pkgs/applications/networking/p2p/transmission-remote-gtk/default.nix+15−10
This diff is too big to show here.
pkgs/applications/networking/p2p/transmission/default.nix+1−1
This diff is too big to show here.
pkgs/applications/networking/p2p/tribler/default.nix+48−31
This diff is too big to show here.
pkgs/applications/networking/remote/citrix-receiver/default.nix+11−5
This diff is too big to show here.
pkgs/applications/networking/sniffers/wireshark/default.nix+12−8
This diff is too big to show here.
pkgs/applications/networking/sniffers/wireshark/wireshark-lookup-dumpcap-in-path.patch+2−2
This diff is too big to show here.
pkgs/applications/networking/spideroak/default.nix+4
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+6−11
This diff is too big to show here.
pkgs/applications/networking/syncthing/inotify-deps.nix+3−2
This diff is too big to show here.
pkgs/applications/networking/syncthing/inotify.nix+5−5
This diff is too big to show here.
pkgs/applications/networking/umurmur/default.nix+4−4
This diff is too big to show here.
pkgs/applications/networking/znc/default.nix+9−5
This diff is too big to show here.
pkgs/applications/office/basket/default.nixdeleted−25
This diff is too big to show here.
pkgs/applications/office/beancount/bean-add.nix+3−3
This diff is too big to show here.
pkgs/applications/office/calligra/default.nix+6−6
This diff is too big to show here.
pkgs/applications/office/eventlist/default.nixdeleted−30
This diff is too big to show here.
pkgs/applications/office/homebank/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/kbibtex/default.nixdeleted−21
This diff is too big to show here.
pkgs/applications/office/kmymoney/default.nixdeleted−34
This diff is too big to show here.
pkgs/applications/office/kmymoney/qgpgme.patchdeleted−17
This diff is too big to show here.
pkgs/applications/office/kmymoney/seqaccessmgrtest.patchdeleted−26
This diff is too big to show here.
pkgs/applications/office/libreoffice/default-primary-src.nix+3−3
This diff is too big to show here.
pkgs/applications/office/libreoffice/default.nix+5−6
This diff is too big to show here.
pkgs/applications/office/libreoffice/libreoffice-srcs-still.nix+5−5
This diff is too big to show here.
pkgs/applications/office/libreoffice/libreoffice-srcs.nix+10−10
This diff is too big to show here.
pkgs/applications/office/libreoffice/still-primary-src.nix+3−3
This diff is too big to show here.
pkgs/applications/office/libreoffice/still.nix+12−5
This diff is too big to show here.
pkgs/applications/office/marp/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/mendeley/default.nix+80−13
This diff is too big to show here.
pkgs/applications/office/mmex/default.nix+2−2
This diff is too big to show here.
pkgs/applications/office/moneyplex/default.nixnew file+121
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/qnotero/default.nix+2−7
This diff is too big to show here.
pkgs/applications/office/skrooge/2.nixdeleted−35
This diff is too big to show here.
pkgs/applications/office/skrooge/default.nix+24−11
This diff is too big to show here.
pkgs/applications/office/treesheets/default.nixnew file+56
This diff is too big to show here.
pkgs/applications/office/trytond/default.nixnew file+49
This diff is too big to show here.
pkgs/applications/office/zanshin/default.nix+4−4
This diff is too big to show here.
pkgs/applications/science/astronomy/xplanet/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/biology/ants/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/science/biology/bedtools/default.nixnew file+26
This diff is too big to show here.
pkgs/applications/science/biology/emboss/default.nix+7−9
This diff is too big to show here.
pkgs/applications/science/biology/ncbi-tools/default.nix+3−4
This diff is too big to show here.
pkgs/applications/science/biology/neuron/default.nix+25−16
This diff is too big to show here.
pkgs/applications/science/biology/picard-tools/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/science/biology/platypus/default.nixnew file+38
This diff is too big to show here.
pkgs/applications/science/biology/snpeff/default.nixnew file+31
This diff is too big to show here.
pkgs/applications/science/biology/varscan/default.nixnew file+36
This diff is too big to show here.
pkgs/applications/science/chemistry/avogadro/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/chemistry/pymol/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/science/electronics/alliance/default.nix+1
This diff is too big to show here.
pkgs/applications/science/electronics/ngspice/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/electronics/verilator/default.nix+8−4
This diff is too big to show here.
pkgs/applications/science/logic/hol/default.nix+1
This diff is too big to show here.
pkgs/applications/science/logic/lean/default.nix+4−4
This diff is too big to show here.
pkgs/applications/science/logic/logisim/default.nix+5−10
This diff is too big to show here.
pkgs/applications/science/logic/redprl/default.nix+3−3
This diff is too big to show here.
pkgs/applications/science/math/R/default.nix+15−22
This diff is too big to show here.
pkgs/applications/science/math/fricas/default.nix+8−4
This diff is too big to show here.
pkgs/applications/science/math/geogebra/default.nix+3−2
This diff is too big to show here.
pkgs/applications/science/math/ginac/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/math/maxima/default.nix+1
This diff is too big to show here.
pkgs/applications/science/math/sage/default.nix+6−4
This diff is too big to show here.
pkgs/applications/science/math/singular/default.nix+2−3
This diff is too big to show here.
pkgs/applications/science/math/speedcrunch/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/misc/boinc/default.nix−4
This diff is too big to show here.
pkgs/applications/science/misc/cytoscape/default.nix+1−1
This diff is too big to show here.
pkgs/applications/science/misc/golly/beta.nixnew file+59
This diff is too big to show here.
pkgs/applications/science/misc/golly/default.nix+4−4
This diff is too big to show here.
pkgs/applications/science/misc/golly/default.upstream+1
This diff is too big to show here.
pkgs/applications/science/misc/gplates/default.nix+6−2
This diff is too big to show here.
pkgs/applications/science/programming/fdr/default.nixnew file+69
This diff is too big to show here.
pkgs/applications/science/robotics/gazebo/default.nix+2−2
This diff is too big to show here.
pkgs/applications/science/robotics/qgroundcontrol/default.nix+2−1
This diff is too big to show here.
pkgs/applications/search/recoll/default.nix+3−5
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/bfg-repo-cleaner/default.nixnew file+49
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/default.nix+6
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/diff-so-fancy/default.nix+8−10
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-cola/default.nix+8−20
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-dit/default.nixnew file+46
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-imerge/default.nix+9−11
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-octopus/default.nixnew file+34
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git-radar/default.nix+3−3
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git/default.nix+2−3
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/git/ssl-cert-file.patchdeleted−11
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/gitflow/default.nix+10−1
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/subgit/default.nix+6−6
This diff is too big to show here.
pkgs/applications/version-management/git-and-tools/transcrypt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/version-management/gitkraken/default.nixnew file+99
This diff is too big to show here.
pkgs/applications/version-management/gitlab/Gemfile+9−8
This diff is too big to show here.
pkgs/applications/version-management/gitlab/Gemfile.lock+24−28
This diff is too big to show here.
pkgs/applications/version-management/gitlab/default.nix+26−8
This diff is too big to show here.
pkgs/applications/version-management/gitlab/gemset.nix+44−60
This diff is too big to show here.
pkgs/applications/version-management/gitlab/remove-hardcoded-locations.patch+1−1
This diff is too big to show here.
pkgs/applications/version-management/gitlab/reset_token.rakenew file+43
This diff is too big to show here.
pkgs/applications/version-management/gogs/default.nix+11−10
This diff is too big to show here.
pkgs/applications/version-management/kdesvn/default.nixdeleted−30
This diff is too big to show here.
pkgs/applications/version-management/mercurial/default.nix+2−1
This diff is too big to show here.
pkgs/applications/version-management/monotone-viz/default.nix+10−2
This diff is too big to show here.
pkgs/tools/graphics/graphviz/2.0.nix → pkgs/applications/version-management/monotone-viz/graphviz-2.0.nixrenamed
The content is the same.
pkgs/applications/version-management/nitpick/default.nixnew file+41
This diff is too big to show here.
pkgs/applications/version-management/peru/default.nix+14−13
This diff is too big to show here.
pkgs/applications/version-management/pijul/default.nix+16−24
This diff is too big to show here.
pkgs/applications/version-management/pijul/pijul.org.contextdeleted−92
This diff is too big to show here.
pkgs/applications/version-management/rapidsvn/default.nix+10−5
This diff is too big to show here.
pkgs/applications/version-management/rapidsvn/fix-build.patchnew file+122
This diff is too big to show here.
pkgs/applications/version-management/src/default.nix+14−7
This diff is too big to show here.
pkgs/applications/version-management/subversion/default.nix+3−3
This diff is too big to show here.
pkgs/applications/version-management/yadm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/bangarang/default.nixdeleted−34
This diff is too big to show here.
pkgs/applications/video/bangarang/gcc-4.7.patchdeleted−45
This diff is too big to show here.
pkgs/applications/video/devede/default.nix+23−10
This diff is too big to show here.
pkgs/applications/video/dvdstyler/default.nixnew file+85
This diff is too big to show here.
pkgs/applications/video/gnome-mplayer/default.nix+4−2
This diff is too big to show here.
pkgs/applications/video/handbrake/default.nix+49−43
This diff is too big to show here.
pkgs/applications/video/kdenlive/default.nixdeleted−41
This diff is too big to show here.
pkgs/applications/video/kmplayer/default.nix+3−2
This diff is too big to show here.
pkgs/applications/video/kodi/default.nix+17−10
This diff is too big to show here.
pkgs/applications/video/miro/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/mkvtoolnix/default.nix+12−8
This diff is too big to show here.
pkgs/applications/video/mplayer/default.nix+1−1
This diff is too big to show here.
pkgs/applications/video/mpv/default.nix+7−8
This diff is too big to show here.
pkgs/applications/video/obs-studio/default.nix+3−3
This diff is too big to show here.
pkgs/applications/video/openshot-qt/default.nix+22−20
This diff is too big to show here.
pkgs/applications/video/openshot-qt/libopenshot-audio.nix+17−12
This diff is too big to show here.
pkgs/applications/video/openshot-qt/libopenshot.nix+24−21
This diff is too big to show here.
pkgs/applications/video/simplescreenrecorder/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/smplayer/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/smtube/default.nix+2−2
This diff is too big to show here.
pkgs/applications/video/subtitleeditor/default.nix+8−1
This diff is too big to show here.
pkgs/applications/virtualization/containerd/default.nix+3−6
This diff is too big to show here.
pkgs/applications/virtualization/docker-distribution/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/docker/default.nix+151−124
This diff is too big to show here.
pkgs/applications/virtualization/lkl/default.nix+1−1
This diff is too big to show here.
pkgs/applications/virtualization/open-vm-tools/default.nix+3
This diff is too big to show here.
pkgs/applications/virtualization/qemu/default.nix+98−5
This diff is too big to show here.
pkgs/applications/virtualization/qemu/force-uid0-on-9p.patch+37−33
This diff is too big to show here.
pkgs/applications/virtualization/rkt/default.nix+2−2
This diff is too big to show here.
pkgs/applications/virtualization/runc/default.nix+3−6
This diff is too big to show here.
pkgs/applications/virtualization/virt-manager/default.nix+21−19
This diff is too big to show here.
pkgs/applications/virtualization/virt-manager/qt.nixnew file+47
This diff is too big to show here.
pkgs/applications/virtualization/virt-viewer/default.nix+11−8
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/default.nix+23−15
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/guest-additions/default.nix+9−2
This diff is too big to show here.
pkgs/applications/virtualization/virtualbox/hardened.patch+3−3
This diff is too big to show here.
pkgs/applications/virtualization/xen/0000-fix-install-python.patchnew file+16
This diff is too big to show here.
pkgs/applications/virtualization/xen/0000-fix-ipxe-src.patchnew file+27
This diff is too big to show here.
pkgs/applications/virtualization/xen/4.5.nix+230−115
This diff is too big to show here.
pkgs/applications/virtualization/xen/generic.nix+176−140
This diff is too big to show here.
pkgs/applications/virtualization/xen/packages.nixnew file+64
This diff is too big to show here.
pkgs/applications/virtualization/xhyve/default.nix+13−7
This diff is too big to show here.
pkgs/applications/window-managers/2bwm/default.nixnew file+30
This diff is too big to show here.
pkgs/applications/window-managers/awesome/default.nix+34−45
This diff is too big to show here.
pkgs/applications/window-managers/bevelbar/default.nixnew file+25
This diff is too big to show here.
pkgs/applications/window-managers/compton/default.nix+35−21
This diff is too big to show here.
pkgs/applications/window-managers/fvwm/default.nix+1
This diff is too big to show here.
pkgs/applications/window-managers/i3/lock-color.nix+7−5
This diff is too big to show here.
pkgs/applications/window-managers/icewm/default.nix+1−1
This diff is too big to show here.
pkgs/applications/window-managers/jwm/default.nix+2−2
This diff is too big to show here.
pkgs/applications/window-managers/openbox/default.nix+10−4
This diff is too big to show here.
pkgs/applications/window-managers/sway/default.nix+5−4
This diff is too big to show here.
pkgs/applications/window-managers/way-cooler/default.nixnew file+40
This diff is too big to show here.
pkgs/applications/window-managers/windowmaker/default.nix+3−3
This diff is too big to show here.
pkgs/applications/window-managers/wtftw/default.nixnew file+37
This diff is too big to show here.
pkgs/build-support/build-dotnet-package/default.nix+2−1
This diff is too big to show here.
pkgs/build-support/build-fhs-userenv/env.nix+1−1
This diff is too big to show here.
pkgs/build-support/emacs/buffer.nix+11−6
This diff is too big to show here.
pkgs/build-support/fetchdarcs/default.nix+6−3
This diff is too big to show here.
pkgs/build-support/fetchegg/default.nix+5−2
This diff is too big to show here.
pkgs/build-support/fetchgit/default.nix+5−3
This diff is too big to show here.
pkgs/build-support/fetchgx/default.nix+1−1
This diff is too big to show here.
pkgs/build-support/fetchhg/default.nix+5−5
This diff is too big to show here.
pkgs/build-support/fetchnuget/default.nix+4−1
This diff is too big to show here.
pkgs/build-support/fetchrepoproject/default.nixnew file+73
This diff is too big to show here.
pkgs/build-support/fetchsvn/builder.sh+2−1
This diff is too big to show here.
pkgs/build-support/fetchsvn/default.nix+12−6
This diff is too big to show here.
pkgs/build-support/fetchsvnssh/default.nix+8−4
This diff is too big to show here.
pkgs/build-support/fetchurl/default.nix+6−4
This diff is too big to show here.
pkgs/build-support/fetchurl/mirrors.nix+8
This diff is too big to show here.
pkgs/build-support/fetchzip/nix-prefetch-zipdeleted−171
This diff is too big to show here.
pkgs/build-support/kde/derivation.nixnew file+17
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kde-wrapper.nix → pkgs/build-support/kde/wrapper.nixrenamed+4−3
This diff is too big to show here.
pkgs/build-support/kdewrapper/default.nixdeleted−44
This diff is too big to show here.
pkgs/build-support/remove-references-to/default.nixnew file+34
This diff is too big to show here.
pkgs/build-support/rust/default.nix+1−1
This diff is too big to show here.
pkgs/build-support/setup-hooks/compress-man-pages.sh+20−16
This diff is too big to show here.
pkgs/build-support/setup-hooks/fix-darwin-frameworks.shnew file+31
This diff is too big to show here.
pkgs/build-support/setup-hooks/make-wrapper.sh+40−35
This diff is too big to show here.
pkgs/build-support/setup-hooks/strip.sh+1−1
This diff is too big to show here.
pkgs/build-support/setup-hooks/update-autotools-gnu-config-scripts.sh+1−1
This diff is too big to show here.
pkgs/build-support/setup-systemd-units.nixnew file+83
This diff is too big to show here.
pkgs/build-support/vm/default.nix+76−8
This diff is too big to show here.
pkgs/common-updater/scripts.nixnew file+18
This diff is too big to show here.
pkgs/common-updater/scripts/update-source-versionnew file+91
This diff is too big to show here.
pkgs/data/documentation/rnrs/common.nix+2
This diff is too big to show here.
pkgs/data/fonts/babelstone-han/default.nixnew file+30
This diff is too big to show here.
pkgs/data/fonts/fontconfig-penultimate/default.nixnew file+26
This diff is too big to show here.
pkgs/data/fonts/hasklig/default.nix+2−2
This diff is too big to show here.
pkgs/data/fonts/iosevka/default.nix+9−7
This diff is too big to show here.
pkgs/data/fonts/shrikhand/default.nixnew file+25
This diff is too big to show here.
pkgs/data/fonts/source-han-sans/default.nix+3−2
This diff is too big to show here.
pkgs/data/fonts/source-han-serif/default.nixnew file+59
This diff is too big to show here.
pkgs/data/fonts/stix-two/default.nixnew file+28
This diff is too big to show here.
pkgs/data/icons/moka-icon-theme/default.nix+3−3
This diff is too big to show here.
pkgs/data/icons/numix-icon-theme/default.nix+3−3
This diff is too big to show here.
pkgs/data/icons/paper-icon-theme/default.nix+3−3
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/data/misc/iana-etc/default.nix+9−5
This diff is too big to show here.
pkgs/data/misc/mobile-broadband-provider-info/default.nix+1−1
This diff is too big to show here.
pkgs/data/misc/poppler-data/default.nix+1−1
This diff is too big to show here.
pkgs/data/misc/shared-desktop-ontologies/default.nix+1−1
This diff is too big to show here.
pkgs/data/misc/xorg-rgb/default.nixnew file+22
This diff is too big to show here.
pkgs/desktops/enlightenment/enlightenment.nix+5−5
This diff is too big to show here.
pkgs/desktops/gnome-2/platform/gtkglextmm/default.nix+1−2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/apps/evolution/default.nix+5−4
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/apps/gnome-boxes/default.nix+12−8
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/apps/gnome-boxes/src.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/baobab/default.nix+4−13
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/dconf/default.nix+2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/gconf/default.nix+2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/gdm/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/gnome-keyring/default.nix+3−10
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/gnome-session/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/gnome-shell/default.nix+5−7
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/libgee/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/mutter/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/mutter/x86.patch−13
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/core/zenity/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/misc/gnome-tweak-tool/default.nix+4−14
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/misc/gspell/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/misc/gspell/src.nix+3−3
This diff is too big to show here.
pkgs/desktops/gnome-3/3.22/misc/pomodoro/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/gnustep/back/default.nix+2−1
This diff is too big to show here.
pkgs/desktops/gnustep/gworkspace/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/kde-4.14/applications/kate.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/applications/konsole.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/default.nix−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/files/kde-wallpapers-buildsystem.patchdeleted−17
This diff is too big to show here.
pkgs/desktops/kde-4.14/files/rocs-0001-duplicate-add_test.patchdeleted−62
This diff is too big to show here.
pkgs/desktops/kde-4.14/kactivities.nix+2−2
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-base-artwork.nixdeleted−14
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-baseapps/kde-baseapps.nix+2−3
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-package/4.14.3.nix+2−539
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-package/default.nix+6−2
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-runtime.nixdeleted−24
This diff is too big to show here.
pkgs/desktops/kde-4.14/kde-wallpapers.nixdeleted−17
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeaccessibility/jovie.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeaccessibility/kaccessible.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeaccessibility/kmag.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeaccessibility/kmousetool.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeaccessibility/kmouth.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeadmin/kcron.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeadmin/ksystemlog.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeadmin/kuser.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/ColorSchemes.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/FindXscreensaver.cmakedeleted−73
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/HighResolutionWallpapers.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/IconThemes.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/WeatherWallpapers.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/desktopthemes.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/emoticons.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/kscreensaver.nixdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/kwin-styles.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/styles.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeartwork/wallpapers.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/perlqt.nixdeleted−14
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/qtruby-install-prefix.patchdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/qtruby.nixdeleted−22
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/smokegen-CMakeLists.txt-nix.patchdeleted−16
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/smokegen-nix.patchdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/smokegen.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/smokekde.nixdeleted−19
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdebindings/smokeqt.nixdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/analitza.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/artikulate.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/blinken.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/cantor.nixdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/commit-846cf02deleted−42
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kalgebra.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kalzium.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kanagram.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kbruch.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kgeography.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/khangman.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kig.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kiten.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/klettres.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kmplot.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kqtquickcharts.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/ktouch.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kturtle.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/kwordquiz.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/libkdeedu.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/pairs.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/parley.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/rocs.nixdeleted−16
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeedu/step.nixdeleted−12
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/bomber.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/bovo.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/granatier.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kajongg.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kapman.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/katomic.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kblackbox.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kblocks.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kbounce.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kbreakout.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kdiamond.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kfourinline.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kgoldrunner.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kigo.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/killbots.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kiriki.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kjumpingcube.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/klickety.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/klines.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kmahjongg.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kmines.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/knavalbattle.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/knetwalk.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kolf.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kollision.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/konquest.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kpat.nixdeleted−8
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kreversi.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kshisen.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/ksirk.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/ksnakeduel.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kspaceduel.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/ksquares.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/ksudoku.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/ktuberling.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/kubrick.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/libkdegames.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/libkmahjongg.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/lskat.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/palapeli.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegames/picmi.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/gwenview.nixdeleted−16
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kamera.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kcolorchooser.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kdegraphics-mobipocket.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kdegraphics-strigi-analyzer.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kdegraphics-thumbnailers.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kgamma.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kolourpaint.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/kruler.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/ksaneplugin.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/ksnapshot.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/libkipi.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdegraphics/libksane.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdelibs/baloo-widgets.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdelibs/nepomuk-core.nixdeleted−20
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdelibs/nepomuk-widgets.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/audiocd-kio.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/dragon.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/ffmpegthumbs.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/juk.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/kmix.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/kscd.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/libkcompactdisc.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdemultimedia/mplayerthumbs.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/kdenetwork-filesharing.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/kdenetwork-strigi-analyzers.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/kget.nixdeleted−20
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/kopete.nixdeleted−34
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/kppp.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/krdc.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/krfb.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdenetwork/zeroconf-ioslave.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdepim-runtime.nixdeleted−19
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdepim.nixdeleted−28
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdepimlibs.nix+2−2
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeplasma-addons.nixdeleted−23
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/cervisia.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/dolphin-plugins.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kapptemplate.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kcachegrind.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kde-dev-scripts.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kde-dev-utils.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kdesdk-kioslaves.nixdeleted−12
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kdesdk-strigi-analyzers.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kdesdk-thumbnailers.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/kompare.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/libkomparediff2.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/lokalize.nixdeleted−13
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/okteta.nixdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/poxml.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdesdk/umbrello.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdetoys/amor.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdetoys/kteatime.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdetoys/ktux.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/ark.nixdeleted−17
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/filelight.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kcalc.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kcharselect.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kdf.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kfloppy.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kgpg.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kremotecontrol.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/ktimer.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/kwalletmanager.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/print-manager.nixdeleted−21
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/superkaramba.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdeutils/sweeper.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdewebdev/kfilereplace.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdewebdev/kimagemapeditor.nixdeleted−10
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdewebdev/klinkstatus.nixdeleted−18
This diff is too big to show here.
pkgs/desktops/kde-4.14/kdewebdev/kommander.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-4.14/oxygen-icons.nixdeleted−15
This diff is too big to show here.
pkgs/desktops/kde-4.14/support/akonadi/default.nix+1−1
This diff is too big to show here.
pkgs/desktops/kde-5/applications/default.nixdeleted−81
This diff is too big to show here.
pkgs/desktops/kde-5/applications/fetch.shdeleted−1
This diff is too big to show here.
pkgs/desktops/kde-5/applications/libkomparediff2.nixdeleted−7
This diff is too big to show here.
pkgs/desktops/kde-5/applications/srcs.nixdeleted−2229
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/breeze-qt4.nixdeleted−24
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/default.nixdeleted−84
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/fetch.shdeleted−1
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kdecoration.nixdeleted−6
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kgamma5.nixdeleted−9
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kwallet-pam.nixdeleted−11
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/srcs.nixdeleted−325
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/systemsettings.nixdeleted−14
This diff is too big to show here.
pkgs/desktops/lumina/default.nix+9−9
This diff is too big to show here.
pkgs/desktops/lxde/core/lxappearance/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/lxqt/base/liblxqt/default.nix+11−9
This diff is too big to show here.
pkgs/desktops/lxqt/base/libsysstat/default.nix+5−5
This diff is too big to show here.
pkgs/desktops/lxqt/base/lxqt-build-tools/default.nixnew file+23
This diff is too big to show here.
pkgs/desktops/lxqt/core/libfm-qt/default.nix+12−14
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-about/default.nix+15−12
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-admin/default.nix+12−11
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-common/default.nix+8−10
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-config/default.nix+15−14
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-globalkeys/default.nix+16−13
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-l10n/default.nix+5−10
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-notificationd/default.nix+15−11
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-openssh-askpass/default.nix+15−12
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-panel/default.nix+37−20
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-policykit/default.nix+21−13
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-powermanagement/default.nix+17−14
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-qtplugin/default.nix+19−14
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-runner/default.nix+17−12
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-session/default.nix+16−11
This diff is too big to show here.
pkgs/desktops/lxqt/core/lxqt-sudo/default.nix+15−12
This diff is too big to show here.
pkgs/desktops/lxqt/core/pavucontrol-qt/default.nix+9−11
This diff is too big to show here.
pkgs/desktops/lxqt/core/pcmanfm-qt/default.nix+9−12
This diff is too big to show here.
pkgs/desktops/lxqt/core/qtermwidget/default.nix+3−3
This diff is too big to show here.
pkgs/desktops/lxqt/default.nix+9−10
This diff is too big to show here.
pkgs/desktops/lxqt/optional/compton-conf/default.nix+11−12
This diff is too big to show here.
pkgs/desktops/lxqt/optional/lximage-qt/default.nix+10−10
This diff is too big to show here.
pkgs/desktops/lxqt/optional/obconf-qt/default.nix+10−10
This diff is too big to show here.
pkgs/desktops/lxqt/optional/qlipper/default.nix+4−4
This diff is too big to show here.
pkgs/desktops/lxqt/optional/qterminal/default.nix+8−9
This diff is too big to show here.
pkgs/desktops/lxqt/optional/screengrab/default.nix+12−10
This diff is too big to show here.
pkgs/desktops/mate/caja/default.nixnew file+38
This diff is too big to show here.
pkgs/desktops/mate/default.nix+3
This diff is too big to show here.
pkgs/desktops/mate/mate-common/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-desktop/default.nixnew file+36
This diff is too big to show here.
pkgs/desktops/mate/mate-icon-theme-faenza/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-icon-theme/default.nix+2−2
This diff is too big to show here.
pkgs/desktops/mate/mate-terminal/default.nixnew file+38
This diff is too big to show here.
pkgs/desktops/mate/mate-themes/default.nix+4−6
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/bluedevil.nix → pkgs/desktops/plasma-5/bluedevil.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/breeze-grub.nix → pkgs/desktops/plasma-5/breeze-grub.nixrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/breeze-gtk.nix → pkgs/desktops/plasma-5/breeze-gtk.nixrenamed+4−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/breeze-plymouth/default.nix → pkgs/desktops/plasma-5/breeze-plymouth/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/breeze-plymouth/install-paths.patch → pkgs/desktops/plasma-5/breeze-plymouth/install-paths.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/breeze-plymouth/series → pkgs/desktops/plasma-5/breeze-plymouth/seriesrenamed
The content is the same.
pkgs/desktops/plasma-5/breeze-qt4.nixnew file+16
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/breeze-qt5.nix → pkgs/desktops/plasma-5/breeze-qt5.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/build-support/package.nixnew file+27
This diff is too big to show here.
pkgs/desktops/plasma-5/default.nixnew file+81
This diff is too big to show here.
pkgs/desktops/plasma-5/fetch.shnew file+1
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kactivitymanagerd.nix → pkgs/desktops/plasma-5/kactivitymanagerd.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kde-cli-tools.nix → pkgs/desktops/plasma-5/kde-cli-tools.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kde-gtk-config/0001-follow-symlinks.patch → pkgs/desktops/plasma-5/kde-gtk-config/0001-follow-symlinks.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/kde-gtk-config/default.nix → pkgs/desktops/plasma-5/kde-gtk-config/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/kdecoration.nixnew file+7
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kdeplasma-addons.nix → pkgs/desktops/plasma-5/kdeplasma-addons.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/kgamma5.nixnew file+9
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/khotkeys.nix → pkgs/desktops/plasma-5/khotkeys.nixrenamed+3−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kinfocenter.nix → pkgs/desktops/plasma-5/kinfocenter.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kmenuedit.nix → pkgs/desktops/plasma-5/kmenuedit.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kscreen.nix → pkgs/desktops/plasma-5/kscreen.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kscreenlocker.nix → pkgs/desktops/plasma-5/kscreenlocker.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/ksshaskpass.nix → pkgs/desktops/plasma-5/ksshaskpass.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/ksysguard.nix → pkgs/desktops/plasma-5/ksysguard.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/kwallet-pam.nixnew file+11
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kwayland-integration.nix → pkgs/desktops/plasma-5/kwayland-integration.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kwin/default.nix → pkgs/desktops/plasma-5/kwin/default.nixrenamed+8−7
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/kwin/follow-symlinks.patch → pkgs/desktops/plasma-5/kwin/follow-symlinks.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/kwin/series → pkgs/desktops/plasma-5/kwin/seriesrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/kwin/xwayland.patch → pkgs/desktops/plasma-5/kwin/xwayland.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/kwrited.nix → pkgs/desktops/plasma-5/kwrited.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/libkscreen.nix → pkgs/desktops/plasma-5/libkscreen.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/libksysguard/0001-qdiriterator-follow-symlinks.patch → pkgs/desktops/plasma-5/libksysguard/0001-qdiriterator-follow-symlinks.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/libksysguard/default.nix → pkgs/desktops/plasma-5/libksysguard/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/milou.nix → pkgs/desktops/plasma-5/milou.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/oxygen.nix → pkgs/desktops/plasma-5/oxygen.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-desktop/default.nix → pkgs/desktops/plasma-5/plasma-desktop/default.nixrenamed+6−5
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-desktop/hwclock-path.patch → pkgs/desktops/plasma-5/plasma-desktop/hwclock-path.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-desktop/ibus.patch → pkgs/desktops/plasma-5/plasma-desktop/ibus.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-desktop/qml-import-paths.patch → pkgs/desktops/plasma-5/plasma-desktop/qml-import-paths.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-desktop/series → pkgs/desktops/plasma-5/plasma-desktop/seriesrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-desktop/tzdir.patch → pkgs/desktops/plasma-5/plasma-desktop/tzdir.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-integration.nix → pkgs/desktops/plasma-5/plasma-integration.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-nm/0001-mobile-broadband-provider-info-path.patch → pkgs/desktops/plasma-5/plasma-nm/0001-mobile-broadband-provider-info-path.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-nm/default.nix → pkgs/desktops/plasma-5/plasma-nm/default.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-pa.nix → pkgs/desktops/plasma-5/plasma-pa.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-workspace-wallpapers.nix → pkgs/desktops/plasma-5/plasma-workspace-wallpapers.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-workspace/default.nix → pkgs/desktops/plasma-5/plasma-workspace/default.nixrenamed+10−6
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/plasma-workspace/qml-import-path.patch → pkgs/desktops/plasma-5/plasma-workspace/qml-import-path.patchrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/plasma-workspace/series → pkgs/desktops/plasma-5/plasma-workspace/seriesrenamed
The content is the same.
pkgs/desktops/kde-5/plasma/polkit-kde-agent.nix → pkgs/desktops/plasma-5/polkit-kde-agent.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/powerdevil.nix → pkgs/desktops/plasma-5/powerdevil.nixrenamed+2−2
This diff is too big to show here.
pkgs/desktops/plasma-5/srcs.nixnew file+325
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/startkde/default.nix → pkgs/desktops/plasma-5/startkde/default.nixrenamed+3−3
This diff is too big to show here.
pkgs/desktops/kde-5/plasma/startkde/startkde.sh → pkgs/desktops/plasma-5/startkde/startkde.shrenamed+18−5
This diff is too big to show here.
pkgs/desktops/plasma-5/systemsettings.nixnew file+14
This diff is too big to show here.
pkgs/desktops/xfce/applications/xfce4-mixer.nix+4−4
This diff is too big to show here.
pkgs/desktops/xfce/applications/xfce4-volumed.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/art/xfwm4-themes.nixnew file+21
This diff is too big to show here.
pkgs/desktops/xfce/core/xfce4-panel.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/core/xfconf.nix+2−2
This diff is too big to show here.
pkgs/desktops/xfce/default.nix+6−2
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-mailwatch-plugin.nixnew file+25
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-mpc-plugin.nixnew file+25
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin.nixnew file+29
This diff is too big to show here.
pkgs/desktops/xfce/panel-plugins/xfce4-windowck-plugin.nix+4−1
This diff is too big to show here.
pkgs/development/beam-modules/build-rebar3.nix+13−17
This diff is too big to show here.
pkgs/development/compilers/aliceml/default.nix+1
This diff is too big to show here.
pkgs/development/compilers/closure/default.nix+4−4
This diff is too big to show here.
pkgs/development/compilers/compcert/default.nix+7−7
This diff is too big to show here.
pkgs/development/compilers/coreclr/default.nix+1
This diff is too big to show here.
pkgs/development/compilers/crystal/default.nix+5−5
This diff is too big to show here.
pkgs/development/compilers/cudatoolkit/default.nix+30−24
This diff is too big to show here.
pkgs/development/compilers/dmd/2.067.1.nix+5−1
This diff is too big to show here.
pkgs/development/compilers/elm/default.nix+16−1
This diff is too big to show here.
pkgs/development/compilers/emscripten-fastcomp/default.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/emscripten/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/fsharp/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/gcc/5/default.nix+12−1
This diff is too big to show here.
pkgs/development/compilers/gcc/5/libcxx38-and-above.patchnew file+46
This diff is too big to show here.
pkgs/development/compilers/gcc/6/darwin-const-correct.patchnew file+25
This diff is too big to show here.
pkgs/development/compilers/gcc/6/default.nix+2−1
This diff is too big to show here.
pkgs/development/compilers/gcc/gfortran-darwin.nixdeleted−52
This diff is too big to show here.
pkgs/development/compilers/gcc/gfortran-darwin.patchdeleted−26
This diff is too big to show here.
pkgs/development/compilers/gcc/snapshot/default.nixnew file+552
This diff is too big to show here.
pkgs/development/compilers/ghc/7.10.3.nix−1
This diff is too big to show here.
pkgs/development/compilers/ghc/8.0.2.nix+5−2
This diff is too big to show here.
pkgs/development/compilers/ghc/head.nix+4−2
This diff is too big to show here.
pkgs/development/compilers/ghcjs/base.nix+17−8
This diff is too big to show here.
pkgs/development/compilers/ghcjs/default.nix+4−1
This diff is too big to show here.
pkgs/development/compilers/ghcjs/head.nix+11−7
This diff is too big to show here.
pkgs/development/compilers/ghcjs/head_stage2.nix+193−138
This diff is too big to show here.
pkgs/development/compilers/ghcjs/shims.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/ghcjs/stage2.nix+1
This diff is too big to show here.
pkgs/development/compilers/go/1.4.nix+9−2
This diff is too big to show here.
pkgs/development/compilers/go/1.6.nix+10−3
This diff is too big to show here.
pkgs/development/compilers/go/1.7.nix+12−5
This diff is too big to show here.
pkgs/development/compilers/go/1.8.nixnew file+172
This diff is too big to show here.
pkgs/development/compilers/go/remove-test-pie-1.8.patchnew file+23
This diff is too big to show here.
pkgs/development/compilers/go/remove-tools-1.8.patchnew file+35
This diff is too big to show here.
pkgs/development/compilers/go/cacert-1.7.patch → pkgs/development/compilers/go/ssl-cert-file-1.7.patchrenamed+3−3
This diff is too big to show here.
pkgs/development/compilers/go/ssl-cert-file-1.8.patchnew file+80
This diff is too big to show here.
pkgs/development/compilers/halvm/2.4.0.nixnew file+48
This diff is too big to show here.
pkgs/development/compilers/hhvm/default.nix+5
This diff is too big to show here.
pkgs/development/compilers/ikarus/default.nixdeleted−19
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/kotlin/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/clang.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/lld.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/lldb.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.4/polly.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/clang.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/libc++/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/libc++abi/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/lld.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/lldb.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.5/polly.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.7/clang/default.nix+2−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.7/libc++/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.7/libc++abi.nix+16−3
This diff is too big to show here.
pkgs/development/compilers/llvm/3.7/lldb.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.7/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.8/clang/default.nix+2−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.8/libc++/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.8/libc++abi.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.8/lldb.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.8/llvm.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.9/clang/default.nix+13−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.9/libc++/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.9/libc++abi.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.9/lldb.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/llvm/3.9/llvm.nix+18−8
This diff is too big to show here.
pkgs/development/compilers/llvm/4/clang/default.nixnew file+68
This diff is too big to show here.
pkgs/development/compilers/llvm/4/clang/purity.patchnew file+16
This diff is too big to show here.
pkgs/development/compilers/llvm/4/default.nixnew file+48
This diff is too big to show here.
pkgs/development/compilers/llvm/4/libc++/default.nixnew file+47
This diff is too big to show here.
pkgs/development/compilers/llvm/4/libc++/pthread_mach_thread_np.patchnew file+41
This diff is too big to show here.
pkgs/development/compilers/llvm/4/libc++/setup-hook.shnew file+3
This diff is too big to show here.
pkgs/development/compilers/llvm/4/libc++abi.nixnew file+46
This diff is too big to show here.
pkgs/development/compilers/llvm/4/lld.nixnew file+32
This diff is too big to show here.
pkgs/development/compilers/llvm/4/lldb.nixnew file+50
This diff is too big to show here.
pkgs/development/compilers/llvm/4/llvm-outputs.patchnew file+26
This diff is too big to show here.
pkgs/development/compilers/llvm/4/llvm.nixnew file+137
This diff is too big to show here.
pkgs/development/compilers/manticore/builder.shdeleted−24
This diff is too big to show here.
pkgs/development/compilers/manticore/default.nix+34−7
This diff is too big to show here.
pkgs/development/compilers/mozart/binary.nix+45−11
This diff is too big to show here.
pkgs/development/compilers/mozart/builder.shdeleted−26
This diff is too big to show here.
pkgs/development/compilers/nasm/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/openjdk-darwin/8.nix+12−3
This diff is too big to show here.
pkgs/development/compilers/ponyc/default.nix+6−6
This diff is too big to show here.
pkgs/development/compilers/ponyc/pony-stable.nix+3−3
This diff is too big to show here.
pkgs/development/compilers/rust/bootstrap.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/rust/default.nix+9−5
This diff is too big to show here.
pkgs/development/compilers/rust/nightlyBin.nix+7−6
This diff is too big to show here.
pkgs/development/compilers/rust/rustc.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/sbcl/default.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/scala/2.11.nix+2−2
This diff is too big to show here.
pkgs/development/compilers/scala/default.nix+4
This diff is too big to show here.
pkgs/development/compilers/smlnj/default.nix+1−1
This diff is too big to show here.
pkgs/development/compilers/solc/default.nix+11−2
This diff is too big to show here.
pkgs/development/compilers/souper/cmake-fix.patchnew file+14
This diff is too big to show here.
pkgs/development/compilers/souper/default.nix+11−9
This diff is too big to show here.
pkgs/development/compilers/swift/default.nixnew file+265
This diff is too big to show here.
pkgs/development/compilers/swift/patches/0001-build-presets-linux-don-t-require-using-Ninja.patchnew file+25
This diff is too big to show here.
pkgs/development/compilers/swift/patches/0002-build-presets-linux-allow-custom-install-prefix.patchnew file+25
This diff is too big to show here.
pkgs/development/compilers/swift/patches/0003-build-presets-linux-disable-tests.patchnew file+38
This diff is too big to show here.
pkgs/development/compilers/swift/patches/0004-build-presets-linux-plumb-extra-cmake-options.patchnew file+25
This diff is too big to show here.
pkgs/development/compilers/swift/patches/build-script-pax.patchnew file+32
This diff is too big to show here.
pkgs/development/compilers/swift/purity.patchnew file+16
This diff is too big to show here.
pkgs/development/compilers/tinycc/default.nix+5−5
This diff is too big to show here.
pkgs/development/coq-modules/coquelicot/default.nix+18−3
This diff is too big to show here.
pkgs/development/coq-modules/interval/default.nix+3−3
This diff is too big to show here.
pkgs/development/coq-modules/mathcomp/default.nix+1−10
This diff is too big to show here.
pkgs/development/coq-modules/mathcomp/generic.nix+2−5
This diff is too big to show here.
pkgs/development/coq-modules/ssreflect/default.nix+1−10
This diff is too big to show here.
pkgs/development/go-modules/generic/default.nix+10−10
This diff is too big to show here.
pkgs/development/guile-modules/guile-ncurses/default.nix+2−1
This diff is too big to show here.
pkgs/development/guile-modules/guile-sdl/default.nix+2−2
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-common.nix+123−157
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-6.12.x.nix+3−3
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.0.x.nix+2−2
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix+12−5
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix+3−3
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.4.x.nix+7−6
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.6.x.nix+13−6
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix+10−1
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix−6
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-ghcjs.nix+12−5
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-hackage2nix.yaml+2217−1505
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-halvm-2.4.0.nixnew file+59
This diff is too big to show here.
pkgs/development/haskell-modules/configuration-nix.nix+85−17
This diff is too big to show here.
pkgs/development/haskell-modules/default.nix+10−10
This diff is too big to show here.
pkgs/development/haskell-modules/generic-builder.nix+39−21
This diff is too big to show here.
pkgs/development/haskell-modules/hackage-packages.nix+13576−10539
This diff is too big to show here.
pkgs/development/haskell-modules/hoogle.nix+5−5
This diff is too big to show here.
pkgs/development/haskell-modules/lib.nix+15−1
This diff is too big to show here.
pkgs/development/haskell-modules/patches/xmonad-nix.patch+46−17
This diff is too big to show here.
pkgs/development/haskell-modules/with-packages-wrapper.nix+16−14
This diff is too big to show here.
pkgs/development/interpreters/clips/default.nixnew file+29
This diff is too big to show here.
pkgs/development/interpreters/clisp/hg.nix+5−5
This diff is too big to show here.
pkgs/development/interpreters/clojure/clooj.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/elixir/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/erlang/R14.nixdeleted−64
This diff is too big to show here.
pkgs/development/interpreters/erlang/R16.nix+5
This diff is too big to show here.
pkgs/development/interpreters/erlang/R16B02-8-basho.nix+16−11
This diff is too big to show here.
pkgs/development/interpreters/erlang/R17.nix+6−1
This diff is too big to show here.
pkgs/development/interpreters/erlang/R18.nix+6−1
This diff is too big to show here.
pkgs/development/interpreters/erlang/R19.nix+6−3
This diff is too big to show here.
pkgs/development/interpreters/gnu-apl/default.nix+6−10
This diff is too big to show here.
pkgs/development/interpreters/groovy/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/guile/1.8.nix+3
This diff is too big to show here.
pkgs/development/interpreters/guile/2.0.nixnew file+120
This diff is too big to show here.
pkgs/development/interpreters/guile/default.nix+30−45
This diff is too big to show here.
pkgs/development/interpreters/guile/setup-hook-2.2.shnew file+13
This diff is too big to show here.
pkgs/development/interpreters/jimtcl/default.nix+9−5
This diff is too big to show here.
pkgs/development/interpreters/love/0.10.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.2.darwin.patch+2−2
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.2.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/lua-5/5.3.nix+1−1
This diff is too big to show here.
pkgs/development/interpreters/nix-exec/default.nix+4−6
This diff is too big to show here.
pkgs/development/interpreters/octave/default.nix+8−2
This diff is too big to show here.
pkgs/development/interpreters/php/default.nix+8−4
This diff is too big to show here.
pkgs/development/interpreters/pure/default.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.6/default.nixdeleted−228
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.6/nix-store-mtime.patchdeleted−12
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.6/python2.6-fix-parallel-make.patchdeleted−37
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.6/search-path.patchdeleted−27
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.6/setup-hook.shdeleted−15
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/default.nix+16
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/2.7/glibc-2.25-enosys.patchnew file+15
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.4/default.nix+44−8
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.5/default.nix+47−9
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/3.6/default.nix+47−9
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/docs/2.6-html.nixdeleted−18
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/docs/2.6-pdf-a4.nixdeleted−18
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/docs/2.6-pdf-letter.nixdeleted−18
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/docs/2.6-text.nixdeleted−18
This diff is too big to show here.
pkgs/development/interpreters/python/cpython/docs/default.nix−12
This diff is too big to show here.
pkgs/development/interpreters/python/mk-python-derivation.nix+6−3
This diff is too big to show here.
pkgs/development/interpreters/python/pypy/2.7/default.nix+3−7
This diff is too big to show here.
pkgs/development/interpreters/python/wrap.sh+1−1
This diff is too big to show here.
pkgs/development/interpreters/racket/default.nix+4−3
This diff is too big to show here.
pkgs/development/interpreters/rakudo/default.nix+3−3
This diff is too big to show here.
pkgs/development/interpreters/renpy/default.nix+13−10
This diff is too big to show here.
pkgs/development/interpreters/ruby/default.nix+15−15
This diff is too big to show here.
pkgs/development/interpreters/ruby/patchsets.nix+9−14
This diff is too big to show here.
pkgs/development/interpreters/ruby/rubygems-src.nix+2−2
This diff is too big to show here.
pkgs/development/interpreters/ruby/rvm-patchsets.nix+3−3
This diff is too big to show here.
pkgs/development/interpreters/supercollider/default.nix+5−5
This diff is too big to show here.
pkgs/development/java-modules/apache/ant-launcher.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/apache/ant.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/apache/commons-cli.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/apache/commons-io.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/apache/commons-lang.nixnew file+36
This diff is too big to show here.
pkgs/development/java-modules/apache/commons-lang3.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/apache/commons-logging-api.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/apache/xbean-reflect.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/beanshell/bsh.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/build-maven-package.nixnew file+34
This diff is too big to show here.
pkgs/development/java-modules/classworlds/classworlds.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/collections.nixnew file+77
This diff is too big to show here.
pkgs/development/java-modules/eclipse/aether-util.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/findbugs/jsr305.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/google/collections.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/hamcrest/all.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/hamcrest/core.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/junit/default.nixnew file+61
This diff is too big to show here.
pkgs/development/java-modules/log4j/default.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/m2install.nixnew file+21
This diff is too big to show here.
pkgs/development/java-modules/maven-hello/default.nixnew file+43
This diff is too big to show here.
pkgs/development/java-modules/maven-minimal.nixnew file+147
This diff is too big to show here.
pkgs/development/java-modules/maven/archiver.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/artifact-manager.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/artifact.nixnew file+69
This diff is too big to show here.
pkgs/development/java-modules/maven/common-artifact-filters.nixnew file+36
This diff is too big to show here.
pkgs/development/java-modules/maven/core.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/dependency-tree.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/doxia-sink-api.nixnew file+36
This diff is too big to show here.
pkgs/development/java-modules/maven/enforcer.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/maven/error-diagnostics.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/filtering.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/model.nixnew file+58
This diff is too big to show here.
pkgs/development/java-modules/maven/monitor.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-annotations.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-api.nixnew file+58
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-descriptor.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-parameter-documenter.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-registry.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/plugin-testing-harness.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/profile.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/project.nixnew file+58
This diff is too big to show here.
pkgs/development/java-modules/maven/reporting-api.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/repository-metadata.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/settings.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/maven/shared-incremental.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/shared-utils.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/surefire-api.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/maven/surefire-booter.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/maven/surefire-common.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/maven/surefire-junit4.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/maven/toolchain.nixnew file+36
This diff is too big to show here.
pkgs/development/java-modules/mavenPlugins.nixnew file+120
This diff is too big to show here.
pkgs/development/java-modules/mojo/animal-sniffer.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/mojo/java-boot-classpath-detector.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/ow2/asm-all.nixnew file+15
This diff is too big to show here.
pkgs/development/java-modules/plexus/archiver.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/plexus/build-api.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/classworlds.nixnew file+25
This diff is too big to show here.
pkgs/development/java-modules/plexus/compiler-api.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/compiler-javac.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/compiler-manager.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/component-annotations.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/container-default.nixnew file+36
This diff is too big to show here.
pkgs/development/java-modules/plexus/digest.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/i18n.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/interactivity-api.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/interpolation.nixnew file+47
This diff is too big to show here.
pkgs/development/java-modules/plexus/io.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/plexus/utils.nixnew file+179
This diff is too big to show here.
pkgs/development/java-modules/poms.nixnew file+851
This diff is too big to show here.
pkgs/development/java-modules/sisu/guice.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/sisu/inject-bean.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/sisu/inject-plexus.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/xerces/impl.nixnew file+14
This diff is too big to show here.
pkgs/development/java-modules/xml-apis/default.nixnew file+14
This diff is too big to show here.
pkgs/development/libraries/CGAL/default.nix+10−8
This diff is too big to show here.
pkgs/development/libraries/CoinMP/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/SDL/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/SDL2/default.nix+3
This diff is too big to show here.
pkgs/development/libraries/SDL2_gfx/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/SDL2_mixer/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/SDL_mixer/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/ace/default.nix+11−11
This diff is too big to show here.
pkgs/development/libraries/afflib/default.nix+9−18
This diff is too big to show here.
pkgs/development/libraries/agda/agda-stdlib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/appstream-glib/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/appstream/default.nix+16−8
This diff is too big to show here.
pkgs/development/libraries/aqbanking/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/aqbanking/sources.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/aqbanking/update.sh+1−1
This diff is too big to show here.
pkgs/development/libraries/armadillo/default.nix+7−6
This diff is too big to show here.
pkgs/development/libraries/aspell/dictionaries.nix+9
This diff is too big to show here.
pkgs/development/libraries/assimp/default.nix+4−6
This diff is too big to show here.
pkgs/development/libraries/atk/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/attica/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/aubio/default.nix+8−9
This diff is too big to show here.
pkgs/development/libraries/audio/suil/default.nix+16−7
This diff is too big to show here.
pkgs/development/libraries/babl/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/bobcat/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/boost/1.63.nixnew file+12
This diff is too big to show here.
pkgs/development/libraries/boost/generic.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/botan/2.0.nixnew file+10
This diff is too big to show here.
pkgs/development/libraries/botan/2.0.upstreamnew file+10
This diff is too big to show here.
pkgs/development/libraries/caf/default.nixnew file+31
This diff is too big to show here.
pkgs/development/libraries/cairo/default.nix+1−12
This diff is too big to show here.
pkgs/development/libraries/capnproto/clang4.patchnew file+22
This diff is too big to show here.
pkgs/development/libraries/capnproto/default.nix+5
This diff is too big to show here.
pkgs/development/libraries/cdk/default.nix+7−10
This diff is too big to show here.
pkgs/development/libraries/ceres-solver/default.nix+7−9
This diff is too big to show here.
pkgs/development/libraries/cfitsio/default.nix+7−11
This diff is too big to show here.
pkgs/development/libraries/chipmunk/default.nix+4−3
This diff is too big to show here.
pkgs/development/libraries/chromaprint/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/cimg/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/cl/default.nix+11−11
This diff is too big to show here.
pkgs/development/libraries/clearsilver/builder.shdeleted−9
This diff is too big to show here.
pkgs/development/libraries/clearsilver/default.nix+21−4
This diff is too big to show here.
pkgs/development/libraries/cln/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/clutter-gtk/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/clutter/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/concurrencykit/default.nix+10−9
This diff is too big to show here.
pkgs/development/libraries/cre2/default.nixnew file+34
This diff is too big to show here.
pkgs/development/libraries/czmq/default.nix → pkgs/development/libraries/czmq/3.x.nixrenamed
The content is the same.
pkgs/development/libraries/czmq/4.x.nixnew file+22
This diff is too big to show here.
pkgs/development/libraries/dbus-glib/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/dbus/default.nix+10−4
This diff is too big to show here.
pkgs/development/libraries/dbus/make-dbus-conf.nixnew file+39
This diff is too big to show here.
pkgs/development/libraries/dbus/make-session-conf.xslnew file+31
This diff is too big to show here.
pkgs/development/libraries/dbus/make-system-conf.xslnew file+34
This diff is too big to show here.
pkgs/development/libraries/dlib/default.nix+10−30
This diff is too big to show here.
pkgs/development/libraries/docopt_cpp/default.nixnew file+30
This diff is too big to show here.
pkgs/development/libraries/drumstick/default.nix+10−4
This diff is too big to show here.
pkgs/development/libraries/eigen/2.0.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/eigen/3.3.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/eigen/default.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/enginepkcs11/default.nixdeleted−21
This diff is too big to show here.
pkgs/development/libraries/exempi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/exosip/default.nix+10−8
This diff is too big to show here.
pkgs/development/libraries/faac/default.nix+18−2
This diff is too big to show here.
pkgs/development/libraries/farsight2/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/farstream/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/fcppt/default.nix+14−11
This diff is too big to show here.
pkgs/development/libraries/ffmpeg-full/default.nix+2−2
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.1.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpeg/3.2.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/ffmpegthumbnailer/default.nix+9−6
This diff is too big to show here.
pkgs/development/libraries/ffms/default.nix+15−12
This diff is too big to show here.
pkgs/development/libraries/fftw/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/filter-audio/default.nix+8−6
This diff is too big to show here.
pkgs/development/libraries/fontconfig/2.10.nix−12
This diff is too big to show here.
pkgs/development/libraries/fontconfig/default.nix+10
This diff is too big to show here.
pkgs/development/libraries/fox/clang.patchnew file+13
This diff is too big to show here.
pkgs/development/libraries/fox/default.nix+13−14
This diff is too big to show here.
pkgs/development/libraries/fox/fox-1.6.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/freetype/default.nix+39−60
This diff is too big to show here.
pkgs/development/libraries/freetype/disable-pcf-long-family-names.patchnew file+15
This diff is too big to show here.
pkgs/development/libraries/freetype/enable-subpixel-rendering.patchnew file+13
This diff is too big to show here.
pkgs/development/libraries/freetype/enable-table-validation.patchnew file+22
This diff is too big to show here.
pkgs/development/libraries/freetype/pcf-config-long-family-names.patchnew file+553
This diff is too big to show here.
pkgs/development/libraries/freetype/pcf-introduce-driver.patchnew file+68
This diff is too big to show here.
pkgs/development/libraries/fstrm/default.nixnew file+28
This diff is too big to show here.
pkgs/development/libraries/funambol/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gdal/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gdk-pixbuf/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gecode/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/geis/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/geoclue/2.0.nix+16−6
This diff is too big to show here.
pkgs/development/libraries/gf2x/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/glew/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/glib/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/glibc/common.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/glibc/default.nix+4−1
This diff is too big to show here.
pkgs/development/libraries/gloox/default.nix+11−9
This diff is too big to show here.
pkgs/development/libraries/gmm/default.nix+8−7
This diff is too big to show here.
pkgs/development/libraries/gmp/5.1.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gmp/6.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gnutls-kdh/3.5.nixnew file+12
This diff is too big to show here.
pkgs/development/libraries/gnutls-kdh/generic.nixnew file+92
This diff is too big to show here.
pkgs/development/libraries/gnutls/3.4.nixdeleted−10
This diff is too big to show here.
pkgs/development/libraries/gnutls/3.5.nix+2−4
This diff is too big to show here.
pkgs/development/libraries/gnutls/generic.nix+8−4
This diff is too big to show here.
pkgs/development/libraries/gobject-introspection/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/google-gflags/default.nix+10−8
This diff is too big to show here.
pkgs/development/libraries/gpgme/default.nix+14−15
This diff is too big to show here.
pkgs/development/libraries/granite/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/grantlee/5.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/grantlee/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/gsoap/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gss/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/gssdp/default.nix+8−7
This diff is too big to show here.
pkgs/development/libraries/gstreamer/bad/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/base/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/core/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/ges/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/good/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gnonlin/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-ffmpeg/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-bad/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-good/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-plugins-ugly/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gst-python/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/gstreamermm/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/legacy/qt-gstreamer/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/gstreamer/libav/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/python/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/ugly/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/vaapi/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gstreamer/validate/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/gtk+/3.x.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/gtkspell/3.nix+9−8
This diff is too big to show here.
pkgs/development/libraries/gusb/default.nix+5−4
This diff is too big to show here.
pkgs/development/libraries/hamlib/default.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/herqq/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/hspell/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/htmlcxx/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/hwloc/default.nix+9−10
This diff is too big to show here.
pkgs/development/libraries/icu/default.nix+12−23
This diff is too big to show here.
pkgs/development/libraries/iso-codes/default.nix+9−9
This diff is too big to show here.
pkgs/development/libraries/itk/default.nix+6−3
This diff is too big to show here.
pkgs/development/libraries/jasper/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/java/javasvn/builder.shdeleted−6
This diff is too big to show here.
pkgs/development/libraries/java/javasvn/default.nixdeleted−17
This diff is too big to show here.
pkgs/development/libraries/jemalloc/default.nix+5−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/attica.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/baloo.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/bluez-qt.nix+7−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/breeze-icons.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/build-support/framework.nixnew file+24
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/default.nix+99−133
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/extra-cmake-modules/default.nix+6−6
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/setup-hook.sh → pkgs/development/libraries/kde-frameworks/extra-cmake-modules/setup-hook.shrenamed+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/fetch.sh+1−1
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/frameworkintegration.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kactivities-stats.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kactivities.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kapidox.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/karchive.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kauth/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kbookmarks.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kcmutils/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kcodecs.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kcompletion.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kconfig.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kconfigwidgets/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kcoreaddons.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kcrash.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdbusaddons.nix+6−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdeclarative.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kded.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdelibs4support/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdesignerplugin.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdesu.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdnssd.nix+8−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kdoctools/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kemoticons.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kfilemetadata/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kglobalaccel.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kguiaddons.nix+9−5
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/khtml.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/ki18n.nix+10−9
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kiconthemes/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kidletime.nix+6−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kimageformats.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kinit/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kinit/start_kdeinit-path.patch+1−1
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kio/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kitemmodels.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kitemviews.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kjobwidgets.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kjs.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kjsembed.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kmediaplayer.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/knewstuff.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/knotifications.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/knotifyconfig.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kpackage/allow-external-paths.patch+6−6
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kpackage/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kparts.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kpeople.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kplotting.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kpty.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kross.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/krunner.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kservice/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/ktexteditor.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/ktextwidgets.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kunitconversion.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kwallet.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kwayland.nix+11−9
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kwidgetsaddons.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kwindowsystem.nix+9−5
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kxmlgui.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/kxmlrpcclient.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/modemmanager-qt.nix+8−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/networkmanager-qt.nix+8−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/oxygen-icons5.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/plasma-framework.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/solid.nix+7−4
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/sonnet.nix+8−5
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/srcs.nix+296−296
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/syntax-highlighting.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kde-frameworks/threadweaver.nix+7−3
This diff is too big to show here.
pkgs/development/libraries/kdevplatform/default.nixdeleted−35
This diff is too big to show here.
pkgs/development/libraries/kdevplatform/dependency.patchdeleted−12
This diff is too big to show here.
pkgs/development/libraries/kdevplatform/gettext.patchdeleted−8
This diff is too big to show here.
pkgs/development/libraries/kirigami/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/kirigami/v2.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/ldns/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/lensfun/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libalkimia/default.nixdeleted−19
This diff is too big to show here.
pkgs/development/libraries/libappindicator/default.nix+7−2
This diff is too big to show here.
pkgs/development/libraries/libarchive/default.nix+2−9
This diff is too big to show here.
pkgs/development/libraries/libass/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libav/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libbap/default.nixnew file+29
This diff is too big to show here.
pkgs/development/libraries/libbladeRF/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libblocksruntime/default.nixnew file+27
This diff is too big to show here.
pkgs/development/libraries/libbluray/default.nix+12−10
This diff is too big to show here.
pkgs/development/libraries/libbsd/default.nix+7−7
This diff is too big to show here.
pkgs/development/libraries/libbson/default.nix+9−9
This diff is too big to show here.
pkgs/development/libraries/libcanberra/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libcddb/default.nix+7−5
This diff is too big to show here.
pkgs/development/libraries/libcdio/0.82.nix+7−6
This diff is too big to show here.
pkgs/development/libraries/libcdio/default.nix+7−6
This diff is too big to show here.
pkgs/development/libraries/libcec/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libchop/default.nix+10−9
This diff is too big to show here.
pkgs/development/libraries/libchop/size_t.patchnew file+11
This diff is too big to show here.
pkgs/development/libraries/libclc/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/libcm/default.nixdeleted−15
This diff is too big to show here.
pkgs/development/libraries/libcouchbase/default.nix+17−10
This diff is too big to show here.
pkgs/development/libraries/libcue/default.nix+5−4
This diff is too big to show here.
pkgs/development/libraries/libdap/default.nix+8−7
This diff is too big to show here.
pkgs/development/libraries/libdbusmenu-qt/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libdc1394/darwin-fixes.patchnew file+24
This diff is too big to show here.
pkgs/development/libraries/libdc1394/default.nix+11−9
This diff is too big to show here.
pkgs/development/libraries/libdevil/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libdiscid/default.nix+5−5
This diff is too big to show here.
pkgs/development/libraries/libdivecomputer/subsurface.nixdeleted−25
This diff is too big to show here.
pkgs/development/libraries/libdmtx/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libevdev/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libevent/default.nix+25−1
This diff is too big to show here.
pkgs/development/libraries/libextractor/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libfilezilla/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libfixposix/default.nix+12−17
This diff is too big to show here.
pkgs/development/libraries/libgksu/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libgpg-error/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libgpod/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libgsf/default.nix+3−1
This diff is too big to show here.
pkgs/development/libraries/libguestfs/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libhttpseverywhere/default.nix+3−4
This diff is too big to show here.
pkgs/development/libraries/libibmad/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libidn2/default.nix+6−2
This diff is too big to show here.
pkgs/development/libraries/libidn2/fix-error-darwin.patchnew file+31
This diff is too big to show here.
pkgs/development/libraries/libircclient/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libivykis/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libjson-rpc-cpp/0.2.1/default.nixdeleted−30
This diff is too big to show here.
pkgs/development/libraries/libjson-rpc-cpp/default.nix+15−21
This diff is too big to show here.
pkgs/development/libraries/libkate/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libktorrent/5.nixdeleted−29
This diff is too big to show here.
pkgs/development/libraries/libktorrent/default.nix+16−15
This diff is too big to show here.
pkgs/development/libraries/libkvkontakte/default.nixdeleted−21
This diff is too big to show here.
pkgs/development/libraries/liblastfm/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/liblikeback/default.nixdeleted−20
This diff is too big to show here.
pkgs/development/libraries/liblqr-1/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmarble-ssrf/default.nixdeleted−33
This diff is too big to show here.
pkgs/development/libraries/libmatheval/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libmm-qt/default.nixdeleted−31
This diff is too big to show here.
pkgs/development/libraries/libmms/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmng/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmsgpack/generic.nix+6−1
This diff is too big to show here.
pkgs/development/libraries/libmtp/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmusicbrainz/2.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmusicbrainz/5.x.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libmusicbrainz/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libnatspec/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libnm-qt/default.nixdeleted−33
This diff is too big to show here.
pkgs/development/libraries/libofx/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/liboggz/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libp11/default.nix+18−14
This diff is too big to show here.
pkgs/development/libraries/libpcap/default.nix+8−1
This diff is too big to show here.
pkgs/development/libraries/libplist/default.nix+8−1
This diff is too big to show here.
pkgs/development/libraries/libproxy/default.nix+8−2
This diff is too big to show here.
pkgs/development/libraries/libqalculate/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/librdf/raptor2.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/librdf/rasqal.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libre/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libseccomp/default.nix+11−7
This diff is too big to show here.
pkgs/development/libraries/libsodium/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libspiro/default.nixnew file+18
This diff is too big to show here.
pkgs/development/libraries/libssh/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libssh2/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libtoxcore/default.nixnew file+41
This diff is too big to show here.
pkgs/development/libraries/libtoxcore/new-api/default.nix → pkgs/development/libraries/libtoxcore/new-api.nixrenamed+1−1
This diff is too big to show here.
pkgs/development/libraries/libtoxcore/old-api/default.nix → pkgs/development/libraries/libtoxcore/old-api.nixrenamed+3−3
This diff is too big to show here.
pkgs/development/libraries/libunistring/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/libusb1/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libuv/default.nix+11−6
This diff is too big to show here.
pkgs/development/libraries/libvirt-glib/default.nix+4−2
This diff is too big to show here.
pkgs/development/libraries/libvirt/default.nix+26−19
This diff is too big to show here.
pkgs/development/libraries/libwpg/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/libxkbcommon/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/libxml2/default.nix+13−14
This diff is too big to show here.
pkgs/development/libraries/libzip/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/libzrtpcpp/default.nixdeleted−26
This diff is too big to show here.
pkgs/development/libraries/liquid-dsp/default.nixnew file+23
This diff is too big to show here.
pkgs/development/libraries/lmdb/default.nix+25−5
This diff is too big to show here.
pkgs/development/libraries/mailcore2/default.nix+1
This diff is too big to show here.
pkgs/development/libraries/martyr/builder.shdeleted−7
This diff is too big to show here.
pkgs/development/libraries/martyr/default.nix+19−6
This diff is too big to show here.
pkgs/development/libraries/mesa/default.nix+58−19
This diff is too big to show here.
pkgs/development/libraries/microsoft_gsl/default.nixnew file+28
This diff is too big to show here.
pkgs/development/libraries/mlt/default.nix+5
This diff is too big to show here.
pkgs/development/libraries/mlt/qt-4.nixdeleted−39
This diff is too big to show here.
pkgs/development/libraries/mlt/qt-5.nix+12
This diff is too big to show here.
pkgs/development/libraries/mongoc/default.nix+2−5
This diff is too big to show here.
pkgs/development/libraries/mp4v2/A00-nero-vobsub.patchdeleted−142
This diff is too big to show here.
pkgs/development/libraries/mp4v2/A01-divide-zero.patchdeleted−22
This diff is too big to show here.
pkgs/development/libraries/mp4v2/P00-mingw-dllimport.patchdeleted−11
This diff is too big to show here.
pkgs/development/libraries/mp4v2/default.nix+5−6
This diff is too big to show here.
pkgs/development/libraries/mpir/default.nix+4−9
This diff is too big to show here.
pkgs/development/libraries/msilbc/default.nix+7−6
This diff is too big to show here.
pkgs/development/libraries/ndpi/default.nixnew file+30
This diff is too big to show here.
pkgs/development/libraries/neon/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/nghttp2/default.nix+12−6
This diff is too big to show here.
pkgs/development/libraries/nix-plugins/default.nix+9−11
This diff is too big to show here.
pkgs/development/libraries/nlopt/default.nix+1−5
This diff is too big to show here.
pkgs/development/libraries/nss/default.nix+6−4
This diff is too big to show here.
pkgs/development/libraries/ntrack/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/openbabel/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/openssl/default.nix+7−16
This diff is too big to show here.
pkgs/development/libraries/openssl/nix-ssl-cert-file.patchnew file+14
This diff is too big to show here.
pkgs/development/libraries/openssl/openssl-fix-cpuid_setup.patchdeleted−105
This diff is too big to show here.
pkgs/development/libraries/openssl/use-etc-ssl-certs-darwin.patchnew file+13
This diff is too big to show here.
pkgs/development/libraries/opensubdiv/default.nix+10−15
This diff is too big to show here.
pkgs/development/libraries/oracle-instantclient/default.nix+35−15
This diff is too big to show here.
pkgs/development/libraries/p11-kit/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/pango/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/pcre/CVE-2017-7186.patchnew file+52
This diff is too big to show here.
pkgs/development/libraries/pcre/default.nix+4−2
This diff is too big to show here.
pkgs/development/libraries/pcre2/default.nix+20−3
This diff is too big to show here.
pkgs/development/libraries/phonon/backends/gst-plugin-paths.patchnew file+13
This diff is too big to show here.
pkgs/development/libraries/phonon/backends/gstreamer.nix+25−4
This diff is too big to show here.
pkgs/development/libraries/phonon/default.nix+6−4
This diff is too big to show here.
pkgs/development/libraries/physics/herwig/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/pkcs11helper/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/poco/default.nixnew file+31
This diff is too big to show here.
pkgs/development/libraries/podofo/default.nix+11−16
This diff is too big to show here.
pkgs/development/libraries/polkit/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/prison/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/proj/default.nix+4−4
This diff is too big to show here.
pkgs/development/libraries/protobuf/3.2.nixnew file+6
This diff is too big to show here.
pkgs/development/libraries/qca2/default.nix+5−6
This diff is too big to show here.
pkgs/development/libraries/qjson/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qmltermwidget/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/qoauth/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qt-4.x/4.8/default.nix+10−4
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/default.nixdeleted−129
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/fetch.shdeleted−3
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/compose-search-path.patchdeleted−16
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/decrypt-ssl-traffic.patchdeleted−13
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/default.nixdeleted−287
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-dbus.patchdeleted−13
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-gl.patchdeleted−17
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-libXcursor.patchdeleted−17
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-openssl.patchdeleted−26
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/dlopen-resolv.patchdeleted−26
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/libressl.patchdeleted−36
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/mkspecs-libgl.patchdeleted−15
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/nix-profiles-library-paths.patchdeleted−21
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/tzdir.patchdeleted−40
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/xdg-config-dirs.patchdeleted−42
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtenginio.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtquick1/default.nixdeleted−7
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtquick1/nix-profiles-import-paths.patchdeleted−20
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtquick1/seriesdeleted−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtwebkit-examples.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtwebkit/default.nixdeleted−34
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/srcs.nixdeleted−261
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.6/default.nix+36−26
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.6/qtbase/default.nix+18−5
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtquickcontrols2.nix → pkgs/development/libraries/qt-5/5.6/qtquickcontrols2.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/fetch.shdeleted−2
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtbase/seriesdeleted−10
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtconnectivity.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtdeclarative/default.nixdeleted−8
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtdeclarative/nix-profiles-import-paths.patchdeleted−20
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtdeclarative/seriesdeleted−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtdoc.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtgraphicaleffects.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtimageformats.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtlocation.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtmultimedia.nixdeleted−12
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtscript/0001-glib-2.32.patchdeleted−25
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtscript/default.nixdeleted−7
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtsensors.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtserialport/0001-dlopen-serialport-udev.patchdeleted−28
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtserialport/default.nixdeleted−12
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtsvg.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qttools/cmake-paths.patchdeleted−72
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qttools/default.nixdeleted−11
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qttools/seriesdeleted−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qttranslations.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebengine/default.nixdeleted−69
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebkit/0001-dlopen-webkit-nsplugin.patchdeleted−53
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebkit/0002-dlopen-webkit-gtk.patchdeleted−25
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebkit/0003-dlopen-webkit-udev.patchdeleted−31
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebsockets.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtx11extras.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtxmlpatterns.nixdeleted−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/srcs.nixdeleted−309
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/default.nix → pkgs/development/libraries/qt-5/5.8/default.nixrenamed+19−20
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.8/fetch.shnew file+3
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtbase/cmake-paths.patch → pkgs/development/libraries/qt-5/5.8/qtbase/cmake-paths-darwin.patchrenamed+115−52
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtbase/cmake-paths.patch → pkgs/development/libraries/qt-5/5.8/qtbase/cmake-paths.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/compose-search-path.patch → pkgs/development/libraries/qt-5/5.8/qtbase/compose-search-path.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/decrypt-ssl-traffic.patch → pkgs/development/libraries/qt-5/5.8/qtbase/decrypt-ssl-traffic.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/default.nix → pkgs/development/libraries/qt-5/5.8/qtbase/default.nixrenamed+103−38
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-dbus.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-dbus.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-gl.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-gl.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-gtkstyle.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-gtkstyle.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-libXcursor.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-libXcursor.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-openssl.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-openssl.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/dlopen-resolv.patch → pkgs/development/libraries/qt-5/5.8/qtbase/dlopen-resolv.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/libressl.patch → pkgs/development/libraries/qt-5/5.8/qtbase/libressl.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/mkspecs-libgl.patch → pkgs/development/libraries/qt-5/5.8/qtbase/mkspecs-libgl.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/nix-profiles-library-paths.patch → pkgs/development/libraries/qt-5/5.8/qtbase/nix-profiles-library-paths.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtbase/series → pkgs/development/libraries/qt-5/5.8/qtbase/seriesrenamed−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtbase/tzdir.patch → pkgs/development/libraries/qt-5/5.8/qtbase/tzdir.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtbase/xdg-config-dirs.patch → pkgs/development/libraries/qt-5/5.8/qtbase/xdg-config-dirs.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtconnectivity.nix → pkgs/development/libraries/qt-5/5.8/qtconnectivity.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtdeclarative/default.nix → pkgs/development/libraries/qt-5/5.8/qtdeclarative/default.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtdeclarative/nix-profiles-import-paths.patch → pkgs/development/libraries/qt-5/5.8/qtdeclarative/nix-profiles-import-paths.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtdeclarative/series → pkgs/development/libraries/qt-5/5.8/qtdeclarative/seriesrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtdoc.nix → pkgs/development/libraries/qt-5/5.8/qtdoc.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtgraphicaleffects.nix → pkgs/development/libraries/qt-5/5.8/qtgraphicaleffects.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtimageformats.nix → pkgs/development/libraries/qt-5/5.8/qtimageformats.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtlocation.nix → pkgs/development/libraries/qt-5/5.8/qtlocation.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtmultimedia.nix → pkgs/development/libraries/qt-5/5.8/qtmultimedia.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtquickcontrols.nix → pkgs/development/libraries/qt-5/5.8/qtquickcontrols.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtquickcontrols.nix → pkgs/development/libraries/qt-5/5.8/qtquickcontrols2.nixrenamed+1−1
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtscript/0001-glib-2.32.patch → pkgs/development/libraries/qt-5/5.8/qtscript/0001-glib-2.32.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtscript/default.nix → pkgs/development/libraries/qt-5/5.8/qtscript/default.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtsensors.nix → pkgs/development/libraries/qt-5/5.8/qtsensors.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtserialport/0001-dlopen-serialport-udev.patch → pkgs/development/libraries/qt-5/5.8/qtserialport/0001-dlopen-serialport-udev.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtserialport/default.nix → pkgs/development/libraries/qt-5/5.8/qtserialport/default.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtsvg.nix → pkgs/development/libraries/qt-5/5.8/qtsvg.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qttools/cmake-paths.patch → pkgs/development/libraries/qt-5/5.8/qttools/cmake-paths.patchrenamed+22−6
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qttools/default.nix → pkgs/development/libraries/qt-5/5.8/qttools/default.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qttools/series → pkgs/development/libraries/qt-5/5.8/qttools/seriesrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qttranslations.nix → pkgs/development/libraries/qt-5/5.8/qttranslations.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtwayland.nix → pkgs/development/libraries/qt-5/5.8/qtwayland.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtwebchannel.nix → pkgs/development/libraries/qt-5/5.8/qtwebchannel.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.8/qtwebengine/default.nixnew file+85
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.7/qtwebengine/qtwebengine-paxmark-mksnapshot.patch → pkgs/development/libraries/qt-5/5.8/qtwebengine/qtwebengine-paxmark-mksnapshot.patchrenamed+2−2
This diff is too big to show here.
pkgs/development/libraries/qt-5/5.5/qtwebkit/0001-dlopen-webkit-nsplugin.patch → pkgs/development/libraries/qt-5/5.8/qtwebkit/0001-dlopen-webkit-nsplugin.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtwebkit/0002-dlopen-webkit-gtk.patch → pkgs/development/libraries/qt-5/5.8/qtwebkit/0002-dlopen-webkit-gtk.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtwebkit/0003-dlopen-webkit-udev.patch → pkgs/development/libraries/qt-5/5.8/qtwebkit/0003-dlopen-webkit-udev.patchrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.7/qtwebkit/default.nix → pkgs/development/libraries/qt-5/5.8/qtwebkit/default.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtwebsockets.nix → pkgs/development/libraries/qt-5/5.8/qtwebsockets.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtx11extras.nix → pkgs/development/libraries/qt-5/5.8/qtx11extras.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.5/qtxmlpatterns.nix → pkgs/development/libraries/qt-5/5.8/qtxmlpatterns.nixrenamed
The content is the same.
pkgs/development/libraries/qt-5/5.8/srcs.nixnew file+325
This diff is too big to show here.
pkgs/development/libraries/qt-5/make-qt-wrapper-darwin.sh+2−2
This diff is too big to show here.
pkgs/development/libraries/qt-5/make-qt-wrapper.sh+12−2
This diff is too big to show here.
pkgs/development/libraries/qt-5/qtbase-setup-hook-darwin.sh+4−1
This diff is too big to show here.
pkgs/development/libraries/qtscriptgenerator/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/qtstyleplugins/default.nix+2−1
This diff is too big to show here.
pkgs/development/libraries/quazip/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/quickder/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/range-v3/default.nixnew file+27
This diff is too big to show here.
pkgs/development/libraries/rocksdb/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/science/math/suitesparse/default.nix+18−1
This diff is too big to show here.
pkgs/development/libraries/serf/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/shapelib/default.nixnew file+19
This diff is too big to show here.
pkgs/development/libraries/skalibs/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/slang/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/snappy/default.nix+9−8
This diff is too big to show here.
pkgs/development/libraries/soprano/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/spice-gtk/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/spice/0001-Adapting-the-following-patch-from-http-pkgs.fedorapr.patchdeleted−56
This diff is too big to show here.
pkgs/development/libraries/spice/default.nix+8−5
This diff is too big to show here.
pkgs/development/libraries/sqlite/default.nix+3−3
This diff is too big to show here.
pkgs/development/libraries/sqlite/sqlite3_analyzer.nix+11−19
This diff is too big to show here.
pkgs/development/libraries/srtp/default.nix+2
This diff is too big to show here.
pkgs/development/libraries/strigi/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/taglib/1.9.nix+1−1
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/tclgpg/default.nixdeleted−37
This diff is too big to show here.
pkgs/development/libraries/tcltls/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/udunits/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/umockdev/default.nixnew file+29
This diff is too big to show here.
pkgs/development/libraries/unittest-cpp/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/uriparser/default.nix+21−5
This diff is too big to show here.
pkgs/development/libraries/urt/default.nixdeleted−61
This diff is too big to show here.
pkgs/development/libraries/urt/gentoo-configdeleted−52
This diff is too big to show here.
pkgs/development/libraries/urt/urt-3.1b-build-fixes.patchdeleted−151
This diff is too big to show here.
pkgs/development/libraries/urt/urt-3.1b-compile-updates.patchdeleted−141
This diff is too big to show here.
pkgs/development/libraries/urt/urt-3.1b-make.patchdeleted−75
This diff is too big to show here.
pkgs/development/libraries/urt/urt-3.1b-rle-fixes.patchdeleted−203
This diff is too big to show here.
pkgs/development/libraries/urt/urt-3.1b-tempfile.patchdeleted−19
This diff is too big to show here.
pkgs/development/libraries/ustr/default.nix−2
This diff is too big to show here.
pkgs/development/libraries/vapoursynth/default.nix+9−4
This diff is too big to show here.
pkgs/development/libraries/vtk/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/vulkan-loader/default.nix+3−2
This diff is too big to show here.
pkgs/development/libraries/vulkan-loader/fallback-paths.patchnew file+52
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/2.12.nixdeleted−57
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/2.14.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/webkitgtk/2.4.nix+9
This diff is too big to show here.
pkgs/development/libraries/wlc/default.nix+5−4
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/wxGTK-2.8/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wxGTK-2.9/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wxGTK-3.0/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/wxSVG/default.nixnew file+34
This diff is too big to show here.
pkgs/development/libraries/xapian/default.nix+20−15
This diff is too big to show here.
pkgs/development/libraries/xbase/default.nix+1−1
This diff is too big to show here.
pkgs/development/libraries/xmlsec/default.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/zeromq/4.x.nix+2−2
This diff is too big to show here.
pkgs/development/libraries/zimlib/default.nix+17−16
This diff is too big to show here.
pkgs/development/lisp-modules/asdf/2.26.nixnew file+41
This diff is too big to show here.
pkgs/development/lisp-modules/asdf/3.1.nixnew file+40
This diff is too big to show here.
pkgs/development/lisp-modules/asdf/default.nix+1
This diff is too big to show here.
pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh+18−5
This diff is too big to show here.
pkgs/development/lisp-modules/clwrapper/common-lisp.sh+1−1
This diff is too big to show here.
pkgs/development/lisp-modules/clwrapper/default.nix+23−2
This diff is too big to show here.
pkgs/development/lisp-modules/clwrapper/setup-hook.sh+4−6
This diff is too big to show here.
pkgs/development/lisp-modules/define-package.nix+38−6
This diff is too big to show here.
pkgs/development/lisp-modules/from-quicklisp/barebones-quicklisp-expression.sh+1−1
This diff is too big to show here.
pkgs/development/lisp-modules/lisp-packages.nix+9−550
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-aliases.nixnew file+13
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/3bmd.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/alexandria.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/anaphora.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/array-utils.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/babel-streams.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/babel.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/blackbird.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/bordeaux-threads.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/caveman.nixnew file+37
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cffi-grovel.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cffi.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/chipz.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/chunga.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/circular-streams.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl+ssl.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-aa.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-annot.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-anonfun.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-ansi-text.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-base.nixnew file+36
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-repl.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-ssl.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async-util.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-async.nixnew file+37
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-base64.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-colors.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-cookie.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-dbi.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-emb.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fad.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fuse-meta-fs.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-fuse.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-json.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-l10n-cldr.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-l10n.nixnew file+36
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-libuv.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-markup.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-mysql.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-paths-ttf.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-postgres.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-ppcre-template.nixnew file+42
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-ppcre-unicode.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-ppcre.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-project.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-reexport.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-smtp.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-store.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-syntax-annot.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-syntax-anonfun.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-syntax-markup.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-syntax.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-test-more.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-unicode.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-unification.nixnew file+38
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-utilities.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-vectors.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cl-who.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clack-v1-compat.nixnew file+44
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clack.nixnew file+38
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/closer-mop.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/closure-common.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clsql.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clss.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clx-truetype.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/clx.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/command-line-arguments.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/css-lite.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cxml-dom.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cxml-klacks.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cxml-test.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cxml-xml.nixnew file+36
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/cxml.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-mysql.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-postgres.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/dbd-sqlite3.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/dexador.nixnew file+39
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/do-urlencode.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/documentation-utils.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/drakma.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/esrap.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/external-program.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/fast-http.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/fast-io.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/flexi-streams.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/form-fiddle.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/http-body.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/hu.dwim.asdf.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/hu.dwim.def.nixnew file+36
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/hunchentoot.nixnew file+42
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/idna.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/iolib.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/ironclad.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/iterate.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/jonathan.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/lack-middleware-backtrace.nixnew file+37
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/lack-util.nixnew file+38
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/lack.nixnew file+38
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/let-plus.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/lev.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/local-time.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/lquery.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/map-set.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/marshal.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/md5.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/metabang-bind.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/myway.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/named-readtables.nixnew file+36
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/nibbles.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/optima.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/parenscript.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/pcall.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/plump.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/proc-parse.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/prove.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/puri.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/query-fs.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/quri.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/rfc2388.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/salza2.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/smart-buffer.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/split-sequence.nixnew file+35
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/sqlite.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/static-vectors.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/stumpwm.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/swap-bytes.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-backtrace.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-features.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-garbage.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-gray-streams.nixnew file+34
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-indent.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-mimes.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-types.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/trivial-utf-8.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/uffi.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/uiop.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/usocket.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/vom.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/woo.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/wookie.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/xmls.nixnew file+32
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/xsubseq.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/yason.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-output/zpb-ttf.nixnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-overrides.lispnew file+7
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-overrides.nixnew file+135
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix-systems.txtnew file+92
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix.nixnew file+1459
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix/invocation.embnew file+8
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix/nix-package.embnew file+33
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix/ql-to-nix.lispnew file+154
This diff is too big to show here.
pkgs/development/lisp-modules/quicklisp-to-nix/top-package.embnew file+14
This diff is too big to show here.
pkgs/development/mobile/androidenv/androidsdk.nix+1−1
This diff is too big to show here.
pkgs/development/node-packages/composition-v4.nix+2−2
This diff is too big to show here.
pkgs/development/node-packages/composition-v6.nix+2−2
This diff is too big to show here.
pkgs/development/node-packages/generate.sh+1−2
This diff is too big to show here.
pkgs/development/node-packages/node-env.nix+99−61
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v4.nix+8509−5639
This diff is too big to show here.
pkgs/development/node-packages/node-packages-v6.nix+4933−3005
This diff is too big to show here.
pkgs/development/node-packages/node-packages.json+2
This diff is too big to show here.
pkgs/development/ocaml-modules/angstrom/default.nix+26
This diff is too big to show here.
pkgs/development/ocaml-modules/async_ssl/default.nix−25
This diff is too big to show here.
pkgs/development/ocaml-modules/bap/default.nix+62
This diff is too big to show here.
pkgs/development/ocaml-modules/base/default.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/bitstring/2.0.4.nix−25
This diff is too big to show here.
pkgs/development/ocaml-modules/bitstring/camlp4.patch−84
This diff is too big to show here.
pkgs/development/ocaml-modules/bitstring/default.nix+6−6
This diff is too big to show here.
pkgs/development/ocaml-modules/bitstring/meta.patch−15
This diff is too big to show here.
pkgs/development/ocaml-modules/bos/default.nix+27
This diff is too big to show here.
pkgs/development/ocaml-modules/camlzip/default.nix+12−9
This diff is too big to show here.
pkgs/development/ocaml-modules/camlzip/makefile_1_06.patch−22
This diff is too big to show here.
pkgs/development/ocaml-modules/cohttp/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/conduit/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/core_extended/default.nix+7
This diff is too big to show here.
pkgs/development/ocaml-modules/cow/default.nix+32
This diff is too big to show here.
pkgs/development/ocaml-modules/cpuid/default.nix+24
This diff is too big to show here.
pkgs/development/ocaml-modules/cstruct/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/ctypes/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/eliom/default.nix+6−3
This diff is too big to show here.
pkgs/development/ocaml-modules/eliom/setup-hook.sh+5
This diff is too big to show here.
pkgs/development/ocaml-modules/extlib/default.nix+6−6
This diff is too big to show here.
pkgs/development/ocaml-modules/ezjsonm/default.nix+5−5
This diff is too big to show here.
pkgs/development/ocaml-modules/fileutils/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/fmt/default.nix+5−4
This diff is too big to show here.
pkgs/development/ocaml-modules/functoria/default.nix+27
This diff is too big to show here.
pkgs/development/ocaml-modules/gapi-ocaml/default.nix+3−3
This diff is too big to show here.
pkgs/development/ocaml-modules/hex/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/higlo/default.nix+29
This diff is too big to show here.
pkgs/development/ocaml-modules/higlo/install.patch+14
This diff is too big to show here.
pkgs/development/ocaml-modules/inifiles/default.nix+28
This diff is too big to show here.
pkgs/development/ocaml-modules/io-page/default.nix+4−4
This diff is too big to show here.
pkgs/development/ocaml-modules/ipaddr/2.6.1.nix+32
This diff is too big to show here.
pkgs/development/ocaml-modules/ipaddr/default.nix+7−15
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/async_kernel-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/async_ssl.nix+16
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/core-113_33_02.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/core-extended.nix+7
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/core_kernel-113_33_01.nix+25
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ocaml-compiler-libs.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_ast.nix+24
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_bench-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_bin_prot-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_compare-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_core-113_33_01.nix+20
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_custom_printf-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_enumerate-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_expect-113_33_01.nix+22
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_fail-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_fields_conv-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_inline_test-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_jane-113_33_00.nix+24
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_let-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_optcomp-113_33_01.nix+34
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_pipebang-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_sexp_conv-113_33_01.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_sexp_message-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_sexp_value-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_traverse_builtins.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_type_conv-113_33_02.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix+21
This diff is too big to show here.
pkgs/development/ocaml-modules/janestreet/sexplib-113_33_00.nix+18
This diff is too big to show here.
pkgs/development/ocaml-modules/llvm/default.nix+13−11
This diff is too big to show here.
pkgs/development/ocaml-modules/logs/default.nix+40
This diff is too big to show here.
pkgs/development/ocaml-modules/mparser/default.nix+25
This diff is too big to show here.
pkgs/development/ocaml-modules/mysql/default.nix+5−10
This diff is too big to show here.
pkgs/development/ocaml-modules/nocrypto/default.nix+16−15
This diff is too big to show here.
pkgs/development/ocaml-modules/ocaml-migrate-parsetree/default.nix+31
This diff is too big to show here.
pkgs/development/ocaml-modules/ocamlgraph/default.nix+6−10
This diff is too big to show here.
pkgs/development/ocaml-modules/ocf/default.nix+36
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-server/default.nix+3−2
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-start/default.nix+34
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-start/templates-dir.patch+13
This diff is too big to show here.
pkgs/development/ocaml-modules/ocsigen-toolkit/default.nix+33
This diff is too big to show here.
pkgs/development/ocaml-modules/ojquery/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/piqi-ocaml/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/piqi/default.nix+7−2
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_deriving/default.nix+7−6
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_deriving_yojson/default.nix+32
This diff is too big to show here.
pkgs/development/ocaml-modules/ppx_tools/default.nix+9−4
This diff is too big to show here.
pkgs/development/ocaml-modules/rresult/default.nix+24
This diff is too big to show here.
pkgs/development/ocaml-modules/sedlex/default.nix+2
This diff is too big to show here.
pkgs/development/ocaml-modules/stdio/default.nix+22
This diff is too big to show here.
pkgs/development/ocaml-modules/tuntap/default.nix+2−2
This diff is too big to show here.
pkgs/development/ocaml-modules/uri/default.nix+22−9
This diff is too big to show here.
pkgs/development/ocaml-modules/xtmpl/default.nix+31
This diff is too big to show here.
pkgs/development/perl-modules/perl-opengl.patch+3−1
This diff is too big to show here.
pkgs/development/pharo/launcher/default.nix+14−1
This diff is too big to show here.
pkgs/development/pharo/vm/build-vm.nix+1−1
This diff is too big to show here.
pkgs/development/pure-modules/octave/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/aenum/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/ansible/2.1.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/ansible/2.2.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/astroid/default.nix+34
This diff is too big to show here.
pkgs/development/python-modules/bap/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/btrees-py35.patch−79
This diff is too big to show here.
pkgs/development/python-modules/btrees/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/channels/default.nix+23
This diff is too big to show here.
pkgs/development/python-modules/configparser/0001-namespace-fix.patch+42
This diff is too big to show here.
pkgs/development/python-modules/daphne/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/dateutil/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/dbus/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/django-raster/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/django/1_10.nix+35
This diff is too big to show here.
pkgs/development/python-modules/django_guardian.nix+2−2
This diff is too big to show here.
pkgs/development/python-modules/djangorestframework/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/ds4drv.nix+27
This diff is too big to show here.
pkgs/development/python-modules/edward/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/first/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/flake8-blind-except/default.nix+16
This diff is too big to show here.
pkgs/development/python-modules/flake8-debugger/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/hieroglyph/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/hypothesis.nix+8−4
This diff is too big to show here.
pkgs/development/python-modules/keras/default.nix+43
This diff is too big to show here.
pkgs/development/python-modules/koji/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/leather/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/libais/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/libarcus/default.nix+33
This diff is too big to show here.
pkgs/development/python-modules/libasyncns/default.nix+25
This diff is too big to show here.
pkgs/development/python-modules/libasyncns/libasyncns-fix-res-consts.patch+14
This diff is too big to show here.
pkgs/development/python-modules/libnacl/default.nix+31
This diff is too big to show here.
pkgs/development/python-modules/libsexy/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/llvmlite/default.nix+3−3
This diff is too big to show here.
pkgs/development/python-modules/matplotlib/default.nix+3−1
This diff is too big to show here.
pkgs/development/python-modules/mnemonic.nix+21
This diff is too big to show here.
pkgs/development/python-modules/nltk.nix+30
This diff is too big to show here.
pkgs/development/python-modules/numba/default.nix+4−5
This diff is too big to show here.
pkgs/development/python-modules/pandas/default.nix+4−1
This diff is too big to show here.
pkgs/development/python-modules/pep257.nix+1−1
This diff is too big to show here.
pkgs/development/python-modules/pip-tools/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/podcastparser/default.nix+27
This diff is too big to show here.
pkgs/development/python-modules/poezio/fix_plugins_imports.patch−80
This diff is too big to show here.
pkgs/development/python-modules/poezio/make_default_config_writable.patch−25
This diff is too big to show here.
pkgs/development/python-modules/protobuf.nix+46
This diff is too big to show here.
pkgs/development/python-modules/pyGithub/default.nix+28
This diff is too big to show here.
pkgs/development/python-modules/pyaes.nix+18
This diff is too big to show here.
pkgs/development/python-modules/pycairo/default.nix+19−15
This diff is too big to show here.
pkgs/development/python-modules/pycassa/default.nix+26
This diff is too big to show here.
pkgs/development/python-modules/pyext/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/pygame/default.nix+5−10
This diff is too big to show here.
pkgs/development/python-modules/pygobject/3.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/pygobject/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/pygtksourceview/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/pyhepmc_export_edges.patch+204
This diff is too big to show here.
pkgs/development/python-modules/pyhepmc_export_flow.patch+20
This diff is too big to show here.
pkgs/development/python-modules/pylibmc/default.nix+21
This diff is too big to show here.
pkgs/development/python-modules/pylint/default.nix+42
This diff is too big to show here.
pkgs/development/python-modules/pyqt/4.x.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/pyqt/5.x.nix+5−4
This diff is too big to show here.
pkgs/development/python-modules/pyrax.nix+33
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/pyside/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/pytest-django/default.nix+33
This diff is too big to show here.
pkgs/development/python-modules/python-jose/default.nix+29
This diff is too big to show here.
pkgs/development/python-modules/python-jose/pycryptodome.patch+37
This diff is too big to show here.
pkgs/development/python-modules/python-sql/default.nix+16
This diff is too big to show here.
pkgs/development/python-modules/python-stdnum/default.nix+18
This diff is too big to show here.
pkgs/development/python-modules/pyudev.nix+35
This diff is too big to show here.
pkgs/development/python-modules/pywebdav/default.nix+17
This diff is too big to show here.
pkgs/development/python-modules/pyxml/default.nix+3−2
This diff is too big to show here.
pkgs/development/python-modules/pyzufall/default.nix+30
This diff is too big to show here.
pkgs/development/python-modules/rackspace-novaclient.nix+151
This diff is too big to show here.
pkgs/development/python-modules/relatorio/default.nix+20
This diff is too big to show here.
pkgs/development/python-modules/scrapy/default.nix+38
This diff is too big to show here.
pkgs/development/python-modules/scrapy/permissions-fix.patch+28
This diff is too big to show here.
pkgs/development/python-modules/simpleeval/default.nix+16
This diff is too big to show here.
pkgs/development/python-modules/sip/default.nix+6−5
This diff is too big to show here.
pkgs/development/python-modules/snakeviz/default.nix+22
This diff is too big to show here.
pkgs/development/python-modules/tables/default.nix+4−4
This diff is too big to show here.
pkgs/development/python-modules/tensorflow/default.nix+126
This diff is too big to show here.
pkgs/development/python-modules/trezor.nix+26
This diff is too big to show here.
pkgs/development/python-modules/typed-ast/default.nix+19
This diff is too big to show here.
pkgs/development/python-modules/uranium/default.nix+37
This diff is too big to show here.
pkgs/development/python-modules/vowpalwabbit/default.nix+32
This diff is too big to show here.
pkgs/development/python-modules/wxPython/3.0.nix+19−4
This diff is too big to show here.
pkgs/development/python-modules/zeep/default.nix+91
This diff is too big to show here.
pkgs/development/qtcreator/default.nix+1−1
This diff is too big to show here.
pkgs/development/r-modules/README.md+2−3
This diff is too big to show here.
pkgs/development/r-modules/bioc-annotation-packages.nix+252−230
This diff is too big to show here.
pkgs/development/r-modules/bioc-experiment-packages.nix+294−258
This diff is too big to show here.
pkgs/development/r-modules/bioc-packages.nix+1211−1104
This diff is too big to show here.
pkgs/development/r-modules/cran-packages.nix+4978−2860
This diff is too big to show here.
pkgs/development/r-modules/default.nix+509−1093
This diff is too big to show here.
pkgs/development/r-modules/generate-r-packages.R+7−4
This diff is too big to show here.
pkgs/development/r-modules/generate-shell.nix+2−1
This diff is too big to show here.
pkgs/development/r-modules/irkernel-packages.nix−13
This diff is too big to show here.
pkgs/development/r-modules/patches/gmatrix.patch−48
This diff is too big to show here.
pkgs/development/r-modules/patches/gputools.patch−13
This diff is too big to show here.
pkgs/development/ruby-modules/bundler/default.nix+2−2
This diff is too big to show here.
pkgs/development/ruby-modules/gem-config/default.nix+5−5
This diff is too big to show here.
pkgs/development/tools/analysis/flow/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/frama-c/default.nix+13−9
This diff is too big to show here.
pkgs/development/tools/analysis/jdepend/default.nix+24−14
This diff is too big to show here.
pkgs/development/tools/analysis/massif-visualizer/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/analysis/qcachegrind/default.nix+43
This diff is too big to show here.
pkgs/development/tools/analysis/radare2/default.nix+5−5
This diff is too big to show here.
pkgs/development/tools/analysis/valgrind/default.nix+23−4
This diff is too big to show here.
pkgs/development/tools/analysis/valgrind/valgrind-bzero.patch+37
This diff is too big to show here.
pkgs/development/tools/boomerang/default.nix+1
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/default.nix+69−56
This diff is too big to show here.
pkgs/development/tools/build-managers/bazel/java_stub_template.patch−16
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/default.nix+72−66
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/plugins.nix+8−12
This diff is too big to show here.
pkgs/development/tools/build-managers/buildbot/worker.nix+6−7
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/2.8.nix+1−1
This diff is too big to show here.
pkgs/development/tools/build-managers/cmake/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/build-managers/gn/default.nix−80
This diff is too big to show here.
pkgs/development/tools/build-managers/gradle/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/build-managers/jam/default.nix+20−17
This diff is too big to show here.
pkgs/development/tools/build-managers/redo-sh/default.nix+31
This diff is too big to show here.
pkgs/development/tools/clog-cli/default.nix+25
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/gitlab-runner/v1.nix+66
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/coursier/default.nix+29
This diff is too big to show here.
pkgs/development/tools/database/sqlitebrowser/default.nix+15−5
This diff is too big to show here.
pkgs/development/tools/delve/default.nix+4−3
This diff is too big to show here.
pkgs/development/tools/documentation/gnome-doc-utils/default.nix+2−1
This diff is too big to show here.
pkgs/development/tools/electron/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/erlang/cuter/default.nix+37−35
This diff is too big to show here.
pkgs/development/tools/github/cligh/default.nix+32
This diff is too big to show here.
pkgs/development/tools/glide/default.nix+5
This diff is too big to show here.
pkgs/development/tools/go2nix/default.nix+7−2
This diff is too big to show here.
pkgs/development/tools/gocode/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/guile/guile-lint/default.nix+1
This diff is too big to show here.
pkgs/development/tools/haskell/tinc/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/heroku/default.nix+15−2
This diff is too big to show here.
pkgs/development/tools/hexio/default.nix+5−4
This diff is too big to show here.
pkgs/development/tools/java/jclasslib/builder.sh−22
This diff is too big to show here.
pkgs/development/tools/java/jclasslib/default.nix−13
This diff is too big to show here.
pkgs/development/tools/kube-aws/default.nix+14−8
This diff is too big to show here.
pkgs/development/tools/misc/arcanist/default.nix+5−5
This diff is too big to show here.
pkgs/development/tools/misc/autogen/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/automoc4/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/binutils/default.nix+3−5
This diff is too big to show here.
pkgs/development/tools/misc/coccinelle/default.nix+20−19
This diff is too big to show here.
pkgs/development/tools/misc/creduce/default.nix+60
This diff is too big to show here.
pkgs/development/tools/misc/d-feet/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/misc/gede/build.patch+11
This diff is too big to show here.
pkgs/development/tools/misc/gede/default.nix+31
This diff is too big to show here.
pkgs/development/tools/misc/global/default.nix+4−1
This diff is too big to show here.
pkgs/development/tools/misc/grafana/default.nix−30
This diff is too big to show here.
pkgs/development/tools/misc/hydra/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/itstool/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/kibana/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/lit/default.nix+22
This diff is too big to show here.
pkgs/development/tools/misc/loccount/default.nix+35
This diff is too big to show here.
pkgs/development/tools/misc/lttng-tools/default.nix+6−9
This diff is too big to show here.
pkgs/development/tools/misc/lttng-ust/default.nix+3−2
This diff is too big to show here.
pkgs/development/tools/misc/objconv/default.nix+26−13
This diff is too big to show here.
pkgs/development/tools/misc/opengrok/default.nix+14−3
This diff is too big to show here.
pkgs/development/tools/misc/pmccabe/default.nix+24−13
This diff is too big to show here.
pkgs/development/tools/misc/pmccabe/getopt_on_darwin.patch+15
This diff is too big to show here.
pkgs/development/tools/misc/sipp/default.nix+23−10
This diff is too big to show here.
pkgs/development/tools/misc/stlink/default.nix+15−12
This diff is too big to show here.
pkgs/development/tools/misc/swig/2.x.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/swig/3.x.nix+1−1
This diff is too big to show here.
pkgs/development/tools/misc/tokei/default.nix+10−9
This diff is too big to show here.
pkgs/development/tools/misc/travis/Gemfile.lock+13−13
This diff is too big to show here.
pkgs/development/tools/misc/travis/gemset.nix+18−18
This diff is too big to show here.
pkgs/development/tools/misc/trv/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/misc/usb-modeswitch/data.nix+13−15
This diff is too big to show here.
pkgs/development/tools/misc/usb-modeswitch/default.nix+14−13
This diff is too big to show here.
pkgs/development/tools/misc/xxdiff/tip.nix+36
This diff is too big to show here.
pkgs/development/tools/misc/ycmd/2-ycm-cmake.patch−40
This diff is too big to show here.
pkgs/development/tools/misc/ycmd/default.nix+4−4
This diff is too big to show here.
pkgs/development/tools/misc/ycmd/dont-symlink-clang.patch+16
This diff is too big to show here.
pkgs/development/tools/msgpack-tools/default.nix+27−5
This diff is too big to show here.
pkgs/development/tools/mypy/default.nix+5−6
This diff is too big to show here.
pkgs/development/tools/ocaml/camlp4/default.nix+9−4
This diff is too big to show here.
pkgs/development/tools/ocaml/jbuilder/default.nix+23
This diff is too big to show here.
pkgs/development/tools/ocaml/ocaml-top/default.nix+8−9
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlbuild/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlify/default.nix+2
This diff is too big to show here.
pkgs/development/tools/ocaml/ocamlmod/default.nix+2
This diff is too big to show here.
pkgs/development/tools/ocaml/ocp-build/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/ocaml/ocsigen-i18n/default.nix+27
This diff is too big to show here.
pkgs/development/tools/ocaml/utop/default.nix+17−7
This diff is too big to show here.
pkgs/development/tools/packer/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/parsing/jshon/default.nix+12−3
This diff is too big to show here.
pkgs/development/tools/parsing/peg/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/profiling/EZTrace/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/profiling/heaptrack/default.nix+31
This diff is too big to show here.
pkgs/development/tools/rtags/default.nix+4−8
This diff is too big to show here.
pkgs/development/tools/rust/bindgen/default.nix+7−9
This diff is too big to show here.
pkgs/development/tools/rust/racer/default.nix+7−8
This diff is too big to show here.
pkgs/development/tools/rust/rustfmt/default.nix+6−8
This diff is too big to show here.
pkgs/development/tools/scalafmt/default.nix+3−3
This diff is too big to show here.
pkgs/development/tools/simavr/default.nix+6−4
This diff is too big to show here.
pkgs/development/tools/skopeo/default.nix+11−4
This diff is too big to show here.
pkgs/development/tools/slimerjs/default.nix+12−8
This diff is too big to show here.
pkgs/development/tools/tora/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/unity3d/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/vim-vint/default.nix+38
This diff is too big to show here.
pkgs/development/tools/vndr/default.nix+1−1
This diff is too big to show here.
pkgs/development/tools/vogl/default.nix+47
This diff is too big to show here.
pkgs/development/tools/vultr/default.nix+2−2
This diff is too big to show here.
pkgs/development/tools/xcbuild/default.nix+9
This diff is too big to show here.
pkgs/development/tools/xcbuild/return-false.patch+13
This diff is too big to show here.
pkgs/development/tools/xcbuild/toolchain.nix+18−7
This diff is too big to show here.
pkgs/development/tools/xcbuild/wrapper.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/web/nodejs/v4.nix+2−2
This diff is too big to show here.
pkgs/development/web/nodejs/v6.nix+2−4
This diff is too big to show here.
pkgs/development/web/nodejs/v7.nix+2−2
This diff is too big to show here.
pkgs/development/web/remarkjs/node-packages.nix+396−414
This diff is too big to show here.
pkgs/development/web/remarkjs/nodepkgs.nix+2−2
This diff is too big to show here.
pkgs/games/0ad/game.nix+1−1
This diff is too big to show here.
pkgs/games/amoeba/data.nix+24
This diff is too big to show here.
pkgs/games/amoeba/default.nix+45
This diff is too big to show here.
pkgs/games/amoeba/include-string-h.patch+12
This diff is too big to show here.
pkgs/games/arx-libertatis/default.nix+7−6
This diff is too big to show here.
pkgs/games/atanks/default.nix+3−7
This diff is too big to show here.
pkgs/games/btanks/default.nix+12−3
This diff is too big to show here.
pkgs/games/bzflag/default.nix+13−8
This diff is too big to show here.
pkgs/games/cockatrice/default.nix+3−3
This diff is too big to show here.
pkgs/games/endless-sky/default.nix+4−4
This diff is too big to show here.
pkgs/games/freecell-solver/default.nix+10−7
This diff is too big to show here.
pkgs/games/garden-of-coloured-lights/default.nix+27
This diff is too big to show here.
pkgs/games/gargoyle/darwin.patch+97
This diff is too big to show here.
pkgs/games/gargoyle/darwin.sh+54
This diff is too big to show here.
pkgs/games/gargoyle/default.nix+60
This diff is too big to show here.
pkgs/games/hawkthorne/default.nix+1
This diff is too big to show here.
pkgs/games/hexen/default.nix+1
This diff is too big to show here.
pkgs/games/ja2-stracciatella/default.nix+19
This diff is too big to show here.
pkgs/games/lgogdownloader/default.nix+4−4
This diff is too big to show here.
pkgs/games/lincity/default.nix+18−5
This diff is too big to show here.
pkgs/games/micropolis/default.nix+1−1
This diff is too big to show here.
pkgs/games/mnemosyne/default.nix+5
This diff is too big to show here.
pkgs/games/multimc/default.nix+9−11
This diff is too big to show here.
pkgs/games/multimc/multimc.patch−24
This diff is too big to show here.
pkgs/games/oilrush/default.nix+1−1
This diff is too big to show here.
pkgs/games/openspades/default.nix+25−31
This diff is too big to show here.
pkgs/games/openspades/git.nix−48
This diff is too big to show here.
pkgs/games/scid/default.nix+2
This diff is too big to show here.
pkgs/games/scummvm/default.nix+3−3
This diff is too big to show here.
pkgs/games/sgt-puzzles/default.nix+2−2
This diff is too big to show here.
pkgs/games/speed-dreams/default.nix+47−14
This diff is too big to show here.
pkgs/games/steam/runtime-wrapped.nix+3−2
This diff is too big to show here.
pkgs/games/tome4/default.nix+22−11
This diff is too big to show here.
pkgs/games/trigger/default.nix+5−8
This diff is too big to show here.
pkgs/games/ultrastardx/default.nix+1
This diff is too big to show here.
pkgs/games/urbanterror/default.nix+6−6
This diff is too big to show here.
pkgs/games/warmux/gcc-fix.patch+1−1
This diff is too big to show here.
pkgs/games/widelands/bincmake.patch+21
This diff is too big to show here.
pkgs/games/widelands/default.nix+25−12
This diff is too big to show here.
pkgs/games/zdoom/zdbsp.nix+27
This diff is too big to show here.
pkgs/misc/cups/cups-pk-helper.nix+4−3
This diff is too big to show here.
pkgs/misc/cups/default.nix+28−11
This diff is too big to show here.
pkgs/misc/cups/drivers/dymo/default.nix+28
This diff is too big to show here.
pkgs/misc/cups/drivers/dymo/fix-includes.patch+67
This diff is too big to show here.
pkgs/misc/cups/drivers/estudio/default.nix+54
This diff is too big to show here.
pkgs/misc/cups/drivers/samsung/4.00.39/default.nix+1−1
This diff is too big to show here.
pkgs/misc/cups/drivers/samsung/default.nix+2−2
This diff is too big to show here.
pkgs/misc/drivers/epson-escpr/default.nix+12−4
This diff is too big to show here.
pkgs/misc/drivers/foo2zjs/default.nix+1−1
This diff is too big to show here.
pkgs/misc/drivers/hplip/default.nix+5−4
This diff is too big to show here.
pkgs/misc/emulators/dolphin-emu/default.nix+5
This diff is too big to show here.
pkgs/misc/emulators/dolphin-emu/master.nix+6
This diff is too big to show here.
pkgs/misc/emulators/higan/default.nix+11−11
This diff is too big to show here.
pkgs/misc/emulators/mess/default.nix+5−4
This diff is too big to show here.
pkgs/misc/emulators/pcsxr/default.nix+2
This diff is too big to show here.
pkgs/misc/emulators/pcsxr/uncompress2.patch+20
This diff is too big to show here.
pkgs/misc/emulators/ppsspp/default.nix+7−5
This diff is too big to show here.
pkgs/misc/emulators/retroarch/cores.nix+59−20
This diff is too big to show here.
pkgs/misc/emulators/vbam/default.nix+1−1
This diff is too big to show here.
pkgs/misc/emulators/wine/sources.nix+6−6
This diff is too big to show here.
pkgs/misc/emulators/wxmupen64plus/default.nix+3−2
This diff is too big to show here.
pkgs/misc/emulators/zsnes/default.nix+1−1
This diff is too big to show here.
pkgs/misc/freestyle/default.nix+3−2
This diff is too big to show here.
pkgs/misc/ghostscript/default.nix+4
This diff is too big to show here.
pkgs/misc/jackaudio/unstable.nix+3−3
This diff is too big to show here.
pkgs/misc/lilypond/fonts.nix+140
This diff is too big to show here.
pkgs/misc/lilypond/unstable.nix+20
This diff is too big to show here.
pkgs/misc/lilypond/with-fonts.nix+35
This diff is too big to show here.
pkgs/misc/logging/filebeat/default.nix+25
This diff is too big to show here.
pkgs/misc/logging/heartbeat/default.nix+25
This diff is too big to show here.
pkgs/misc/logging/metricbeat/default.nix+25
This diff is too big to show here.
pkgs/misc/logging/packetbeat/default.nix+36
This diff is too big to show here.
pkgs/misc/long-shebang/default.nix+2−2
This diff is too big to show here.
pkgs/misc/mxt-app/default.nix+6−6
This diff is too big to show here.
pkgs/misc/screensavers/vlock/default.nix+2
This diff is too big to show here.
pkgs/misc/screensavers/vlock/eintr.patch+34
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/screensavers/xscreensaver/default.nix+1−1
This diff is too big to show here.
pkgs/misc/sound-of-sorting/default.nix+11−10
This diff is too big to show here.
pkgs/misc/themes/blackbird/default.nix+4−4
This diff is too big to show here.
pkgs/misc/themes/greybird/default.nix+4−4
This diff is too big to show here.
pkgs/misc/themes/gtk2/oxygen-gtk/default.nix−24
This diff is too big to show here.
pkgs/misc/themes/gtk3/oxygen-gtk3/default.nix−23
This diff is too big to show here.
pkgs/misc/themes/numix/default.nix+3−3
This diff is too big to show here.
pkgs/misc/themes/qtcurve/default.nix−43
This diff is too big to show here.
pkgs/misc/themes/qtcurve/qtcurve-1.8.18-install-paths.patch−24
This diff is too big to show here.
pkgs/misc/themes/qtcurve/qtcurve-1.8.18-toolbar-alpha.patch−34
This diff is too big to show here.
pkgs/misc/themes/zuki/default.nix+6−6
This diff is too big to show here.
pkgs/misc/uboot/default.nix+15−4
This diff is too big to show here.
pkgs/misc/vim-plugins/default.nix+524−436
This diff is too big to show here.
pkgs/misc/vim-plugins/patches/youcompleteme/2-ycm-cmake.patch−36
This diff is too big to show here.
pkgs/misc/vim-plugins/vim-plugin-names+9
This diff is too big to show here.
pkgs/misc/vim-plugins/vim-utils.nix+71−11
This diff is too big to show here.
pkgs/misc/vim-plugins/vim2nix/additional-nix-code/clang_complete+4
This diff is too big to show here.
pkgs/misc/vim-plugins/vim2nix/additional-nix-code/youcompleteme+4−23
This diff is too big to show here.
pkgs/misc/vim-plugins/vim2nix/autoload/nix.vim+2−2
This diff is too big to show here.
pkgs/os-specific/darwin/apple-sdk/default.nix+23−5
This diff is too big to show here.
pkgs/os-specific/darwin/apple-sdk/frameworks.nix+3
This diff is too big to show here.
pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix+2−1
This diff is too big to show here.
pkgs/os-specific/darwin/command-line-tools/default.nix−45
This diff is too big to show here.
pkgs/os-specific/darwin/khd/default.nix+3−8
This diff is too big to show here.
pkgs/os-specific/darwin/osx-sdk/default.nix−25
This diff is too big to show here.
pkgs/os-specific/linux/915resolution/default.nix+11−7
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/ati-drivers/default.nix+4−1
This diff is too big to show here.
pkgs/os-specific/linux/ati-drivers/patches/4.9-get_user_pages.patch+28
This diff is too big to show here.
pkgs/os-specific/linux/batman-adv/alfred.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/batman-adv/batctl.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/batman-adv/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/bluez/bluez5.nix+5−1
This diff is too big to show here.
pkgs/os-specific/linux/bluez/bluez5_28.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/bluez/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/conky/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/crda/default.nix+6
This diff is too big to show here.
pkgs/os-specific/linux/criu/default.nix+3
This diff is too big to show here.
pkgs/os-specific/linux/cryptodev/default.nix+2
This diff is too big to show here.
pkgs/os-specific/linux/dmtcp/default.nix+14−8
This diff is too big to show here.
pkgs/os-specific/linux/drbd/default.nix+4−4
This diff is too big to show here.
pkgs/os-specific/linux/dstat/default.nix+2−1
This diff is too big to show here.
pkgs/os-specific/linux/e1000e/default.nix+7−4
This diff is too big to show here.
pkgs/os-specific/linux/earlyoom/default.nix+26
This diff is too big to show here.
pkgs/os-specific/linux/exfat/default.nix+11−4
This diff is too big to show here.
pkgs/os-specific/linux/fatrace/default.nix+3
This diff is too big to show here.
pkgs/os-specific/linux/fbterm/default.nix+6−2
This diff is too big to show here.
pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/firmware/fwupd/default.nix+38
This diff is too big to show here.
pkgs/os-specific/linux/firmware/fwupd/localstatedir-check-perms.patch+12
This diff is too big to show here.
pkgs/os-specific/linux/firmware/fwupdate/default.nix+35
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/firmware/rtl8192su-firmware/default.nix+36
This diff is too big to show here.
pkgs/os-specific/linux/fuse/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/hdparm/default.nix+9−7
This diff is too big to show here.
pkgs/os-specific/linux/hostapd/default.nix+14−7
This diff is too big to show here.
pkgs/os-specific/linux/hwdata/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/iio-sensor-proxy/default.nix+47
This diff is too big to show here.
pkgs/os-specific/linux/iputils/default.nix+13−13
This diff is too big to show here.
pkgs/os-specific/linux/ixgbevf/default.nix+4−2
This diff is too big to show here.
pkgs/os-specific/linux/jool/default.nix+2
This diff is too big to show here.
pkgs/os-specific/linux/jool/source.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/common-config.nix+23−5
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-3.10.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-3.12.nix−18
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-4.10.nix+3−3
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-grsecurity.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-rpi.nix+4−4
This diff is too big to show here.
pkgs/os-specific/linux/kernel/linux-testing.nix+4−4
This diff is too big to show here.
pkgs/os-specific/linux/kernel/manual-config.nix+16−14
This diff is too big to show here.
pkgs/os-specific/linux/kernel/p9-fixes.patch+85
This diff is too big to show here.
pkgs/os-specific/linux/kernel/patches.nix+12−8
This diff is too big to show here.
pkgs/os-specific/linux/kmod-blacklist-ubuntu/default.nix+12−8
This diff is too big to show here.
pkgs/os-specific/linux/kmod/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/kmscube/default.nix+6−7
This diff is too big to show here.
pkgs/os-specific/linux/libnl/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/libsmbios/default.nix+7−7
This diff is too big to show here.
pkgs/os-specific/linux/lttng-modules/default.nix+6−6
This diff is too big to show here.
pkgs/os-specific/linux/lvm2/default.nix+3−2
This diff is too big to show here.
pkgs/os-specific/linux/lxc/default.nix+13
This diff is too big to show here.
pkgs/os-specific/linux/lxcfs/default.nix+10−7
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/mdadm/4.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/mdadm/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/microcode/intel.nix+3−3
This diff is too big to show here.
pkgs/os-specific/linux/msr-tools/default.nix+26
This diff is too big to show here.
pkgs/os-specific/linux/mwprocapture/default.nix+66
This diff is too big to show here.
pkgs/os-specific/linux/nvidia-x11/builder.sh+9−2
This diff is too big to show here.
pkgs/os-specific/linux/nvidia-x11/default.nix+11−10
This diff is too big to show here.
pkgs/os-specific/linux/nvidia-x11/generic.nix+9−1
This diff is too big to show here.
pkgs/os-specific/linux/nvidia-x11/legacy173.nix+1
This diff is too big to show here.
pkgs/os-specific/linux/nvidia-x11/settings.nix+15−4
This diff is too big to show here.
pkgs/os-specific/linux/nvidiabl/default.nix+11−6
This diff is too big to show here.
pkgs/os-specific/linux/open-isns/default.nix+6−3
This diff is too big to show here.
pkgs/os-specific/linux/openvswitch/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/pam/default.nix+1−1
This diff is too big to show here.
pkgs/os-specific/linux/pam_ssh_agent_auth/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/pam_ssh_agent_auth/multiple-key-files.patch+150−123
This diff is too big to show here.
pkgs/os-specific/linux/pax-utils/default.nix+14−10
This diff is too big to show here.
pkgs/os-specific/linux/phc-intel/default.nix+4−4
This diff is too big to show here.
pkgs/os-specific/linux/radeontools/default.nix+1
This diff is too big to show here.
pkgs/os-specific/linux/reptyr/default.nix+6
This diff is too big to show here.
pkgs/os-specific/linux/s6-linux-utils/default.nix+3−2
This diff is too big to show here.
pkgs/os-specific/linux/sch_cake/default.nix+34
This diff is too big to show here.
pkgs/os-specific/linux/syscall_limiter/default.nix+9−11
This diff is too big to show here.
pkgs/os-specific/linux/sysdig/default.nix+5−10
This diff is too big to show here.
pkgs/os-specific/linux/syslinux/default.nix+11−2
This diff is too big to show here.
pkgs/os-specific/linux/systemd/default.nix+2−2
This diff is too big to show here.
pkgs/os-specific/linux/tp_smapi/default.nix+8−6
This diff is too big to show here.
pkgs/os-specific/linux/tp_smapi/update.nix+3−16
This diff is too big to show here.
pkgs/os-specific/linux/trinity/default.nix+9−2
This diff is too big to show here.
pkgs/os-specific/linux/util-linux/default.nix+3−3
This diff is too big to show here.
pkgs/os-specific/linux/v4l-utils/default.nix+25−29
This diff is too big to show here.
pkgs/os-specific/linux/wireguard/default.nix+3−3
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/xf86-input-multitouch/default.nix+6−1
This diff is too big to show here.
pkgs/os-specific/linux/xf86-input-wacom/default.nix+1−1
This diff is too big to show here.
pkgs/servers/apache-kafka/default.nix+5−5
This diff is too big to show here.
pkgs/servers/asterisk/default.nix+12−6
This diff is too big to show here.
pkgs/servers/atlassian/crowd.nix+2−2
This diff is too big to show here.
pkgs/servers/consul/default.nix+14−2
This diff is too big to show here.
pkgs/servers/coturn/default.nix+1−1
This diff is too big to show here.
pkgs/servers/dns/bind/default.nix+2
This diff is too big to show here.
pkgs/servers/dns/coredns/default.nix+3−5
This diff is too big to show here.
pkgs/servers/dns/coredns/deps.nix+124−260
This diff is too big to show here.
pkgs/servers/dns/coredns/pull-278.patch−153
This diff is too big to show here.
pkgs/servers/dns/knot-dns/default.nix+9−11
This diff is too big to show here.
pkgs/servers/dns/knot-resolver/default.nix+4−4
This diff is too big to show here.
pkgs/servers/emby/default.nix+2−2
This diff is too big to show here.
pkgs/servers/firebird/default.nix+2−2
This diff is too big to show here.
pkgs/servers/http/apache-httpd/2.4.nix+3
This diff is too big to show here.
pkgs/servers/http/couchdb/2.0.0.nix+53
This diff is too big to show here.
pkgs/servers/http/couchdb/jsapi.patch+60
This diff is too big to show here.
pkgs/servers/http/hiawatha/default.nix+51
This diff is too big to show here.
pkgs/servers/http/jboss/default.nix+3
This diff is too big to show here.
pkgs/servers/http/nginx/generic.nix+1−1
This diff is too big to show here.
pkgs/servers/http/nginx/mainline.nix+2−2
This diff is too big to show here.
pkgs/servers/http/pshs/default.nix+12−9
This diff is too big to show here.
pkgs/servers/http/tomcat/default.nix+8−15
This diff is too big to show here.
pkgs/servers/http/tomcat/jdbc/mysql/default.nix+2−2
This diff is too big to show here.
pkgs/servers/interlock/default.nix+1−1
This diff is too big to show here.
pkgs/servers/irc/ircd-hybrid/default.nix+5−4
This diff is too big to show here.
pkgs/servers/irc/ngircd/default.nix+2−2
This diff is too big to show here.
pkgs/servers/irker/default.nix+45
This diff is too big to show here.
pkgs/servers/jackett/default.nix+30
This diff is too big to show here.
pkgs/servers/kwakd/default.nix+28
This diff is too big to show here.
pkgs/servers/mail/exim/default.nix+3−3
This diff is too big to show here.
pkgs/servers/mail/mlmmj/default.nix+7−1
This diff is too big to show here.
pkgs/servers/mail/petidomo/default.nix+1−1
This diff is too big to show here.
pkgs/servers/mail/postfix/0001-Fix-build-with-unbound-1.6.1.patch+54
This diff is too big to show here.
pkgs/servers/mail/postfix/pfixtools.nix+2
This diff is too big to show here.
pkgs/servers/matrix-synapse/default.nix+2−2
This diff is too big to show here.
pkgs/servers/mattermost/default.nix+2−2
This diff is too big to show here.
pkgs/servers/mattermost/matterircd.nix+2−2
This diff is too big to show here.
pkgs/servers/meteor/default.nix+4−4
This diff is too big to show here.
pkgs/servers/minio/default.nix+3−3
This diff is too big to show here.
pkgs/servers/monitoring/grafana/default.nix+4−4
This diff is too big to show here.
pkgs/servers/monitoring/munin/default.nix+5−4
This diff is too big to show here.
pkgs/servers/monitoring/nagios/plugins/official-2.x.nix+2−2
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/bind-exporter.nix+24
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/default.nix+3−3
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/fritzbox-exporter.nix+24
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/unifi-exporter/default.nix+26
This diff is too big to show here.
pkgs/servers/monitoring/prometheus/unifi-exporter/deps.nix+75
This diff is too big to show here.
pkgs/servers/monitoring/sensu/Gemfile.lock+62−58
This diff is too big to show here.
pkgs/servers/monitoring/sensu/default.nix+14−13
This diff is too big to show here.
pkgs/servers/monitoring/sensu/gemset.nix+91−147
This diff is too big to show here.
pkgs/servers/monitoring/uchiwa/bower-packages.nix+23
This diff is too big to show here.
pkgs/servers/monitoring/uchiwa/bower.json+6
This diff is too big to show here.
pkgs/servers/monitoring/uchiwa/default.nix+50
This diff is too big to show here.
pkgs/servers/monitoring/uchiwa/src.nix+4
This diff is too big to show here.
pkgs/servers/monitoring/uchiwa/update.sh+31
This diff is too big to show here.
pkgs/servers/mpd/default.nix+11−3
This diff is too big to show here.
pkgs/servers/mpd/x86.patch+12
This diff is too big to show here.
pkgs/servers/nextcloud/default.nix+2−2
This diff is too big to show here.
pkgs/servers/nosql/apache-jena/binary.nix+2−2
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/cassandra/1.2.nix−6
This diff is too big to show here.
pkgs/servers/nosql/cassandra/2.0.nix−6
This diff is too big to show here.
pkgs/servers/nosql/cassandra/2.2.nix+6
This diff is too big to show here.
pkgs/servers/nosql/neo4j/default.nix+3−3
This diff is too big to show here.
pkgs/servers/nosql/redis/default.nix+2−2
This diff is too big to show here.
pkgs/servers/nosql/riak/2.2.0.nix+10−10
This diff is too big to show here.
pkgs/servers/quagga/default.nix+6−5
This diff is too big to show here.
pkgs/servers/radarr/default.nix+31
This diff is too big to show here.
pkgs/servers/sabnzbd/default.nix+10−7
This diff is too big to show here.
pkgs/servers/samba/4.x.nix+2−1
This diff is too big to show here.
pkgs/servers/search/elasticsearch/plugins.nix+1−1
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/serf/default.nix+14−7
This diff is too big to show here.
pkgs/servers/serf/deps.nix−137
This diff is too big to show here.
pkgs/servers/sip/freeswitch/default.nix+5−5
This diff is too big to show here.
pkgs/servers/sks/default.nix+2−2
This diff is too big to show here.
pkgs/servers/sonarr/default.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/mysql/5.7.x.nix+2−2
This diff is too big to show here.
pkgs/servers/sql/postgresql/default.nix+8
This diff is too big to show here.
pkgs/servers/sql/postgresql/pgjwt/default.nix+25
This diff is too big to show here.
pkgs/servers/sql/postgresql/tsearch_extras/default.nix+29
This diff is too big to show here.
pkgs/servers/sql/virtuoso/6.x.nix+1−1
This diff is too big to show here.
pkgs/servers/sql/virtuoso/7.x.nix+1−1
This diff is too big to show here.
pkgs/servers/tvheadend/default.nix+1−1
This diff is too big to show here.
pkgs/servers/uftp/default.nix+3−5
This diff is too big to show here.
pkgs/servers/unifi/default.nix+2−2
This diff is too big to show here.
pkgs/servers/varnish/default.nix+3
This diff is too big to show here.
pkgs/servers/web-apps/pump.io/composition.nix+2−2
This diff is too big to show here.
pkgs/servers/web-apps/pump.io/generate.sh+11−3
This diff is too big to show here.
pkgs/servers/web-apps/pump.io/node-packages.nix+1328−962
This diff is too big to show here.
pkgs/servers/web-apps/wordpress/default.nix+12
This diff is too big to show here.
pkgs/servers/x11/xorg/default.nix+105−83
This diff is too big to show here.
pkgs/servers/x11/xorg/overrides.nix+10−9
This diff is too big to show here.
pkgs/servers/x11/xorg/tarballs-7.7.list+29−27
This diff is too big to show here.
pkgs/servers/x11/xorg/xwayland.nix+2−2
This diff is too big to show here.
pkgs/servers/xmpp/prosody/default.nix+2−2
This diff is too big to show here.
pkgs/servers/zookeeper/default.nix+2−1
This diff is too big to show here.
pkgs/shells/bash-completion/default.nix+4
This diff is too big to show here.
pkgs/shells/bash/4.4.nix+1−8
This diff is too big to show here.
pkgs/shells/bash/bash-4.4-patches.nix+7
This diff is too big to show here.
pkgs/shells/dgsh/default.nix+41
This diff is too big to show here.
pkgs/shells/elvish/default.nix+4−4
This diff is too big to show here.
pkgs/shells/oh-my-zsh/default.nix+3−3
This diff is too big to show here.
pkgs/stdenv/generic/default.nix+60−12
This diff is too big to show here.
pkgs/stdenv/linux/bootstrap-files/aarch64.nix+3−3
This diff is too big to show here.
pkgs/tools/X11/ffcast/default.nix+1−1
This diff is too big to show here.
pkgs/tools/X11/nitrogen/default.nix+2−5
This diff is too big to show here.
pkgs/tools/X11/obconf/default.nix+3−2
This diff is too big to show here.
pkgs/tools/X11/primus/default.nix+4−1
This diff is too big to show here.
pkgs/tools/X11/wayv/default.nix+33
This diff is too big to show here.
pkgs/tools/X11/x11vnc/default.nix+2−2
This diff is too big to show here.
pkgs/tools/X11/xannotate/default.nix+24
This diff is too big to show here.
pkgs/tools/X11/xbindkeys/default.nix+2−1
This diff is too big to show here.
pkgs/tools/X11/xkbset/default.nix+33
This diff is too big to show here.
pkgs/tools/X11/xpra/default.nix+12−16
This diff is too big to show here.
pkgs/tools/X11/xrectsel/default.nix+1−1
This diff is too big to show here.
pkgs/tools/admin/certbot/default.nix+3−3
This diff is too big to show here.
pkgs/tools/admin/dehydrated/default.nix+2−2
This diff is too big to show here.
pkgs/tools/admin/google-cloud-sdk/default.nix+10−5
This diff is too big to show here.
pkgs/tools/admin/gtk-vnc/default.nix+3−3
This diff is too big to show here.
pkgs/tools/admin/intecture/agent.nix+29
This diff is too big to show here.
pkgs/tools/admin/intecture/auth.nix+29
This diff is too big to show here.
pkgs/tools/admin/intecture/cli.nix+32
This diff is too big to show here.
pkgs/tools/admin/salt/pepper/default.nix+22
This diff is too big to show here.
pkgs/tools/admin/simp_le/default.nix+17−9
This diff is too big to show here.
pkgs/tools/admin/tigervnc/default.nix+4−4
This diff is too big to show here.
pkgs/tools/archivers/afio/afio-2.5.1-install.patch+48
This diff is too big to show here.
pkgs/tools/archivers/afio/default.nix+31
This diff is too big to show here.
pkgs/tools/archivers/dar/default.nix+7−5
This diff is too big to show here.
pkgs/tools/archivers/undmg/default.nix+9−8
This diff is too big to show here.
pkgs/tools/archivers/unshield/default.nix+4−11
This diff is too big to show here.
pkgs/tools/archivers/zip/default.nix+1−1
This diff is too big to show here.
pkgs/tools/audio/beets/default.nix+11−2
This diff is too big to show here.
pkgs/tools/audio/gvolicon/default.nix+3−1
This diff is too big to show here.
pkgs/tools/audio/mpdris2/default.nix+4
This diff is too big to show here.
pkgs/tools/audio/pnmixer/default.nix+5−9
This diff is too big to show here.
pkgs/tools/backup/borg/default.nix+2−2
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/duplicity/default.nix+27−21
This diff is too big to show here.
pkgs/tools/backup/restic/default.nix+32
This diff is too big to show here.
pkgs/tools/backup/s3ql/default.nix+17−5
This diff is too big to show here.
pkgs/tools/bluetooth/bluedevil/default.nix−24
This diff is too big to show here.
pkgs/tools/bluetooth/blueman/default.nix+3−2
This diff is too big to show here.
pkgs/tools/bluetooth/bluez-tools/default.nix+13−11
This diff is too big to show here.
pkgs/tools/bootloaders/refind/default.nix+1
This diff is too big to show here.
pkgs/tools/cd-dvd/cdi2iso/default.nix+24
This diff is too big to show here.
pkgs/tools/cd-dvd/dvdisaster/default.nix+1−1
This diff is too big to show here.
pkgs/tools/compression/advancecomp/default.nix+22−27
This diff is too big to show here.
pkgs/tools/compression/brotli/default.nix+7−9
This diff is too big to show here.
pkgs/tools/compression/bsc/default.nix+25
This diff is too big to show here.
pkgs/tools/compression/dtrx/default.nix+1−1
This diff is too big to show here.
pkgs/tools/compression/lzbench/default.nix+28
This diff is too big to show here.
pkgs/tools/compression/lzfse/default.nix+3−3
This diff is too big to show here.
pkgs/tools/compression/lzham/default.nix+28
This diff is too big to show here.
pkgs/tools/compression/lzip/default.nix+3−2
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/compression/zstdmt/default.nix+36
This diff is too big to show here.
pkgs/tools/compression/zsync/default.nix+1−1
This diff is too big to show here.
pkgs/tools/filesystems/btrfs-dedupe/default.nix+26
This diff is too big to show here.
pkgs/tools/filesystems/e2fsprogs/default.nix+17−12
This diff is too big to show here.
pkgs/tools/filesystems/gitfs/default.nix+6−6
This diff is too big to show here.
pkgs/tools/filesystems/glusterfs/default.nix+4−5
This diff is too big to show here.
pkgs/tools/filesystems/glusterfs/default.upstream+4−3
This diff is too big to show here.
pkgs/tools/filesystems/jfsutils/default.nix+1−1
This diff is too big to show here.
pkgs/tools/filesystems/mhddfs/default.nix+4
This diff is too big to show here.
pkgs/tools/filesystems/mhddfs/fix-format-security-error.patch+12
This diff is too big to show here.
pkgs/tools/filesystems/mtools/UNUSED-darwin.patch+11
This diff is too big to show here.
pkgs/tools/filesystems/mtools/default.nix+8−1
This diff is too big to show here.
pkgs/tools/filesystems/ntfs-3g/default.nix+1−1
This diff is too big to show here.
pkgs/tools/filesystems/s3backer/default.nix+4−4
This diff is too big to show here.
pkgs/tools/filesystems/s3fs/default.nix+17−8
This diff is too big to show here.
pkgs/tools/filesystems/snapraid/default.nix+9−5
This diff is too big to show here.
pkgs/tools/filesystems/unionfs-fuse/default.nix+6−4
This diff is too big to show here.
pkgs/tools/filesystems/zkfuse/default.nix+3−8
This diff is too big to show here.
pkgs/tools/filesystems/zkfuse/zookeeper-1929.patch−15
This diff is too big to show here.
pkgs/tools/graphics/asymptote/default.nix+4−4
This diff is too big to show here.
pkgs/tools/graphics/bins/cp-dash-f.patch+11
This diff is too big to show here.
pkgs/tools/graphics/bins/default.nix+2−1
This diff is too big to show here.
pkgs/tools/graphics/dcraw/default.nix+1−1
This diff is too big to show here.
pkgs/tools/graphics/enblend-enfuse/default.nix+2−2
This diff is too big to show here.
pkgs/tools/graphics/fast-neural-doodle/default.nix+1
This diff is too big to show here.
pkgs/tools/graphics/flam3/default.nix+1−1
This diff is too big to show here.
pkgs/tools/graphics/netpbm/default.nix+8−5
This diff is too big to show here.
pkgs/tools/graphics/panomatic/default.nix−18
This diff is too big to show here.
pkgs/tools/graphics/ploticus/default.nix+6
This diff is too big to show here.