Commit Graph

9679 Commits (release-18.03-flake)

Author SHA1 Message Date
Rodney Lorrimar 6473360dc7
nixos/buildkite-agent: fix variable expansion in hook scripts
@cleverca found this bug in the declarative hooks config. Any shell
variables referenced in a hook script would get expanded by the hooks
directory builder.

Prevent variable expansion by quoting the here doc limit string.

(cherry picked from commit 3e446ecd564611953c75caf97a855285ef30ba38)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-04-27 12:19:09 +01:00
Franz Pletz 87f64fb0b2
nixos/caddy: fix ca api endpoint, now uses v2
(cherry picked from commit dc62e8509a793097a8b86b3707f876ba1f5532bf)
2018-04-27 01:44:27 +02:00
Vladimír Čunát 9bdca39554
Revert "release-combined: don't include tests.chromium"
This reverts commit f7c8e08c7f.
We now get a build and maybe have a workaround (grandparent commit); /cc #39476.
2018-04-27 01:28:17 +02:00
Robin Gloster 7baa950e72
Revert "gitlab: disable"
This reverts commit 68c4605f1a251b97cb0fcde251ce52d498e2cef8.

Gitlab has been fixed

(cherry picked from commit 94f5e5ad14e99700e82576167515ba784dbfe98b)
2018-04-26 18:43:20 +02:00
Robin Gloster 9f9d9f4805
gitlab module: update to gitlab 10.7
(cherry picked from commit 783fb86de498769dd4c14fd0f3a59c746cec5f95)
2018-04-26 18:43:20 +02:00
Matthew Justin Bauer f7c8e08c7f release-combined: don't include tests.chromium
The chromium package will frequently time out . Note that this is unrelated to the test but a side effect because the test depends on chromium.

https://hydra.nixos.org/job/nixos/trunk-combined/nixos.tests.chromium.x86_64-linux

See also #39476
2018-04-26 11:28:01 -05:00
Ihor Antonov c9ab6a5835 growPartition: fix volume resizing on EC2 NVME instances
The previous code for this accidentally picked up a "p" when computing the partition number.
This logic should be more robust

fixes #39491

(cherry picked from commit 3a47c7e8f67c6ece266f570d6db9598856512ede)
2018-04-25 22:26:43 +01:00
John Ericson 2cbb138147 Merge remote-tracking branch 'upstream/release-18.03' into aarch32-for-18.03 2018-04-25 16:00:44 -04:00
John Ericson b9acfb4ecf treewide: isArm -> isAarch32
Following legacy packing conventions, `isArm` was defined just for
32-bit ARM instruction set. This is confusing to non packagers though,
because Aarch64 is an ARM instruction set.

The official ARM overview for ARMv8[1] is surprisingly not confusing,
given the overall state of affairs for ARM naming conventions, and
offers us a solution. It divides the nomenclature into three levels:

```
ISA:             ARMv8   {-A, -R, -M}
                 /    \
Mode:     Aarch32     Aarch64
             |         /   \
Encoding:   A64      A32   T32
```

At the top is the overall v8 instruction set archicture. Second are the
two modes, defined by bitwidth but differing in other semantics too, and
buttom are the encodings, (hopefully?) isomorphic if they encode the
same mode.

The 32 bit encodings are mostly backwards compatible with previous
non-Thumb and Thumb encodings, and if so we can pun the mode names to
instead mean "sets of compatable or isomorphic encodings", and then
voilà we have nice names for 32-bit and 64-bit arm instruction sets
which do not use the word ARM so as to not confused either laymen or
experienced ARM packages.

[1]: https://developer.arm.com/products/architecture/a-profile

(cherry picked from commit ba52ae50488de85a9cf60a3a04f1c9ca7122ec74)
2018-04-25 15:50:41 -04:00
Sarah Brofeldt d3881bfcb3 Revert "nixos/tests/keymap: improve keymap tests"
This reverts commit d5d2e66a89.
Discussion in #39400
2018-04-24 19:04:08 +02:00
xeji d5d2e66a89 nixos/tests/keymap: improve keymap tests
simplify tests, prevent timeouts and non-deterministic failures

(cherry picked from commit 84a6e18947fe961e97173f031318cd6111a43949)
Backport #39400
2018-04-24 11:44:16 +02:00
Michael Raskin e932b5be26 Merge pull request #39342 from samueldr/fix/nixos-enter-efivarfs
nixos-enter: Ensures presence of full /sys tree. (for efivarfs)
(cherry picked from commit 6048470df168fd146b4c7b96c6254fd9646611e5)
2018-04-24 00:37:35 +02:00
Eric Litak 14656d7031
trezord: Added Trezor Model-T (v2) udev rules
(cherry picked from commit 4bf61fa67adfc39e3ee53934ef2a2cf505137a8c)
2018-04-23 18:54:37 +08:00
Eelco Dolstra f04f75acee
nix: 2.0 -> 2.0.1
(cherry picked from commit 03b36522e7c16ddc692bc7bfb61d848fd1e96832)
Signed-off-by: Domen Kožar <domen@dev.si>
2018-04-23 00:47:18 +01:00
Tuomas Tynkkynen fe0da425ce nixos/installer/channel: Add some files that the channel also has
Nothing probably uses this, but let's be pedantic and have the
pre-included channel on the install media be as close as possible to
what 'nix-channel --update' will give them.

The only remaining difference is that the channel adds programs.sqlite,
which is fundamentally unfixable.

(cherry picked from commit bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd)
2018-04-22 20:45:25 +03:00
Giumo X. Clanjor (哆啦比猫/兰威举) 0517698587 systemd.nspawn: fix missing suffix
Fix files placed in `/etc/systemd/nspawn/` missing `.nspawn` suffix

(cherry picked from commit 87cbb862148fac257c991949f6cebd9ce6c51a2a)
2018-04-22 15:22:33 +01:00
Silvan Mosberger df4eae6a01
nixos/systemd: Fix environment type -> allows overriding
(cherry picked from commit e9fc2558f95152020e8b588f92563d6664f4c3c3)
2018-04-21 19:52:22 +02:00
Russell O'Connor 24eb7a974f
trezord: 1.2.1 -> 2.0.12
The old trezord is obsolete and no longer functions with Trezor's password manager app.

(cherry picked from commit a60e17438ea38d048b690d4fa6c2c67053479463)
2018-04-20 10:51:17 +08:00
Bas van Dijk 2fb4bf7299 elasticsearch6: fix startup due to missing jvm.options
(cherry picked from commit ae94825b4a1aa3c5a8344beb91a139467352f53b)
2018-04-18 11:19:58 +02:00
Vladimír Čunát 4dd40e05d3
Merge branch 'staging-18.03' into release-18.03 2018-04-17 20:39:52 +02:00
Matthieu Coudron 7df808da0e
kernel: fix boot.consoleLogLevel description
The current description describes the opposite influence of the setting
https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt

(cherry picked from commit 9f7eabcc21e1a2aa1fe834193bbd20b0c1d1208f)
2018-04-17 08:51:25 -04:00
Christian Kauhaus b065fd7bdd
Clarify installation steps w.r.t. disk partitions
- mkfs.fat needs `-n` to set a partition label, not `-L`.
- create /mnt/boot before mounting
- leave out detailed LVM example as advanced users already how to create
  LVs while it is detracting for novices.

Re #38674

(cherry picked from commit bca80d67a065de4b875a131ef97dd11cb29c46ba)
2018-04-17 08:50:07 -04:00
Nikolay Amiantov c3799d33d3 acme service: generate a CA for self-signed certificate
This is needed because simp_le expects two certificates in fullchain.pem, leading to error:

> Not enough PEM encoded messages were found in fullchain.pem; at least 2 were expected, found 1.

We now create a CA and sign the key with it instead, providing correct fullchain.pem.

Also cleanup service a bit -- use PATH and a private temporary directory (which
is more suitable).

(cherry picked from commit 4fc0b4edca7e48755538d4436b98baff5901a752)
2018-04-17 12:54:22 +03:00
Vladimír Čunát 8102a41bb4
Merge branch 'release-18.03' into staging-18.03
Not many rebuilds, but let's sync anyway.
2018-04-17 10:00:34 +02:00
Daiderd Jordan dfa8a5e9dc
docker-tools: add a test for permissions issues with AUFS/overlay
docker# [   11.054736] d24d6cdd57c9[763]: /bin/bash: error while loading
shared libraries: libreadline.so.7: cannot open shared object file:
Permission denied
docker# /bin/bash: error while loading shared libraries:
libreadline.so.7: cannot open shared object file: Permission denied
docker: exit status 127
docker: output:
error: command `docker run --rm -u 1000:1000 bash /bin/bash --version'
did not succeed (exit code 127)
command `docker run --rm -u 1000:1000 bash /bin/bash --version' did not
succeed (exit code 127)

(cherry picked from commit d538fc06e2be5a0e02d8c84b88442c44bb726bb6)
2018-04-16 20:04:05 +02:00
Tim Steinbach e3fa856c14
Fix kernel-copperhead test
(cherry picked from commit 3b0180fb95493d6afbf535dafcdaa77859019295)
2018-04-13 09:02:32 -04:00
Nikolay Amiantov 4f5b9016ec dnscache service: fix bug with several assigned DNS servers
(cherry picked from commit 98270cb95939600f26f227fc40c73406b91c4d94)
2018-04-13 15:36:02 +03:00
Ben Wolsieffer f956b4fa6c grafana: support socket protocol
(cherry picked from commit ed6f1761ccbd8635a9c53dd7743b656d5f60d62c)
2018-04-13 11:14:51 +01:00
Tuomas Tynkkynen c5575c46db nixos/make-ext4-fs: Use closureInfo
exportReferencesGraph is deprecated and doesn't have the generated
initial Nix database contain the SHA256 of the contents of the store
paths, which breaks various things under Nix 2.0.

(cherry picked from commit 487be791d783c706369a1a0740e03a0bb60d8f1f)
2018-04-13 01:59:02 +03:00
Vladimír Čunát 563ee7f808
Merge branch 'release-18.03' into staging-18.03 2018-04-12 23:34:51 +02:00
Tuomas Tynkkynen 06ba591a85 nixos/release.nix: Fix eval
ac3d9c3d13 merged some stuff renaming things without renaming all
the things.
2018-04-09 02:11:54 +03:00
Vladimír Čunát 39809e31d6
Merge branch 'release-18.03' into staging-18.03 2018-04-08 13:40:45 +02:00
aszlig 7361cadca8
Increase max group name length to 32 characters
With #36556, a check was introduced to make sure the user and group
names do not exceed their respective maximum length. This is in part
because systemd also enforces that length, but only at runtime.

So in general it's a good idea to catch as much as we can during
evaluation time, however the maximum length of the group name was set to
16 characters according groupadd(8).

The maximum length of the group names however is a compile-time option
and even systemd allows more than 16 characters. In the mentioned pull
request (#36556) there was already a report that this has broken
evaluation for people out there.

I have also checked what other distributions are doing and they set the
length to either 31 characters or 32 characters, the latter being more
common.

Unfortunately there is a difference between the maximum length enforced
by the shadow package and systemd, both for user name lengths and group
name lengths. However, systemd enforces both length to have a maximum of
31 characters and I'm not sure if this is intended or just a off-by-one
error in systemd.

Nevertheless, I choose 32 characters simply to bring it in par with the
maximum user name length.

For the NixOS assertion however, I use a maximum length of 31 to make
sure that nobody accidentally creates services that contain group names
that systemd considers invalid because of a length of 32 characters.

Signed-off-by: aszlig <aszlig@nix.build>
Closes: #38548
Cc: @vcunat, @fpletz, @qknight
(cherry picked from commit 99ba1cb4245694874d63e84994f32d58d726ed21)
2018-04-08 12:52:34 +02:00
Wout Mertens 2d039bb0c3 google-compute-image: provide correct MTU
(cherry picked from commit fc6ab8dfa7b7cb99e3b44994ebe76f9b637ec2c6)
2018-04-08 09:08:25 +01:00
John Ericson 7060c5261e
Merge pull request #37337 from obsidiansystems/meta-check-18.03
lib: Fix #30902 on 18.03
2018-04-06 16:20:02 -04:00
Rob Vermaas 748d96ffa3
Update create-gce.sh script. Set default option for GCE images to disable host key replacement by service. 2018-04-06 10:56:56 +02:00
Tim Engler 207b429e4b nixos/lxqt: enable upower if config.powerManagement is enabled (#38318)
(cherry picked from commit d488a9dc7ac18d36b8323d6c0e43a74737e53ebe)
2018-04-06 08:50:47 +01:00
Johannes Lötzsch 41a9722917 mate/mate-screensaver: fixed unixAuth
Without this fix, it's not possible to unlock the mate-screensaver.

(cherry picked from commit 1ab373614624078e58542ebbe1abcc533af292ec)
2018-04-05 21:02:58 +01:00
Graham Christensen 4b4bbce199
nixos docs: syntax highlight
- Rectifies diverging CSS by combining
   nixos/nixpkgs docs CSS
 - Moves our custom Highlight.js loader in to
   the hljs package
 - Switches the nixos docs to use SVG
   callouts too

(cherry picked from commit 8f33464ca7a603301cf9a5a213be23ca701d6cce)
2018-04-05 08:39:27 -04:00
Joachim Schiele 0a2663e1d4 nixos/dhcp: fix permissions of statedir
(cherry picked from commit 7be79f22f2c5876af26466902862f323c21e7209)
2018-04-05 14:12:30 +02:00
Rob Vermaas ac3437aa06
gce: needs bigger diskSize 2018-04-05 12:09:23 +02:00
Rob Vermaas e5a4fb31bd
ec2-amis.nix: add 18.03 images 2018-04-05 11:54:55 +02:00
Linus Heckemann 89472dce77
18.03 release notes: fix typo
(cherry picked from commit 0594acc6aa6eaa1a9ca76aa3f3b0771404576345)
2018-04-05 11:01:50 +02:00
volth df66f3111f
network-interfaces-scripted: wlanInterfaces have .device, no "${dev}-netdev.service"
(cherry picked from commit dd9f77650904bd24f96f19f185a4852d8c3c9b6c)
2018-04-05 10:43:43 +02:00
John Ericson ac3d9c3d13 Merge remote-tracking branch 'upstream/release-18.03' into meta-check-18.03 2018-04-04 15:28:17 -04:00
Tim Steinbach 7177defdf1 openldap: Fix test
(cherry picked from commit 5fbf9dbf9b9847d0fb7e9786297c4d001fd06384)
2018-04-04 18:39:07 +03:00
Tuomas Tynkkynen b0ca63cf79 nixos/tests/openldap: Fix name
(cherry picked from commit bbc80227ab58494892c67df84f2671a8255cdf14)
2018-04-04 18:33:05 +03:00
nyanloutre fa4759862e transmission: settings doc location changed
(cherry picked from commit 172ca5884be674452c105285cbd2308ca6ca31e6)
2018-04-04 12:04:43 +01:00
Michael Raskin d78695d195 nixos/tests.chromium: actually notice the tab crash
Argh, debugging NixOS tests takes forever…

(cherry picked from commit 1afb6e790a6a28a4fc5f310a2b0e5e012eb416fd)
2018-04-04 12:19:19 +02:00
Vladimír Čunát 120b013e0c
18.03 release notes: final edits
(cherry picked from commit 0bee079d97f88ce5994b002c462cbadbaf14ad94)
2018-04-04 09:02:31 +02:00
Franz Pletz ca6b64ae7b
nixos/version: fix nixops pre 1.6 compatibility
We should be able to deploy a NixOS 18.03 system with the current nixops
stable release. Some options were renamed, so instead of
`mkRenamedOptionModule` we introduce them as read-only interal options
that won't be rendered in the manual.

Only the options that are needed to make nixops evaluations succeed were
added.

This commit should probably be reverted after or before the 18.09 release,
depending on the nixops 1.6 release.

The user will not get the warning that these have been renamed but
this change is mentioned in the release notes.

Fixes #34253.

(cherry picked from commit 70c6f6572dda0f2516bad812857ef814ec710a12)
2018-04-04 00:10:21 +02:00
Matthieu Coudron d5c26dd063 qemu-vm: passing QEMU_NET_OPTS would fail
because of a change in #36850.
spotted by @jtojnar b7a2333ebe (commitcomment-28134992)

(cherry picked from commit 33b0ad83e976ed6bb22b6862ca0637dd2fb765f7)
2018-04-03 17:57:17 +02:00
Tuomas Tynkkynen 43f1db5b0d nixos/sd-image-*: Raspberry Pi firmware no longer falls under unfree
It's just unfreeRedistributableFirmware now.

(cherry picked from commit 1e5cb384d5bced16f31fd60c60c9583cf027738f)
2018-04-03 00:13:17 +03:00
Tuomas Tynkkynen c51459026a nixos/release.nix: Add Hydra job for AArch64 SD image
Based on how ISO images are added to the release.

(cherry picked from commit 181e0675da948927f63a8bc45d1a8f4116f49d5d)
2018-04-03 00:12:53 +03:00
Tuomas Tynkkynen ac447b0524 nixos/sd-image: Make it more similar to iso-image.nix
- Add `imageName` and `imageBaseName` options similar to the `isoName`
  and `isoBaseName` options
- Make the filename of the iso match what iso-image.nix does
- Generate a nix-support/hydra-build-products like iso-image.nix does

(cherry picked from commit 4c21180a1303fdafa556fb83d9b6839b2eeb0616)
2018-04-03 00:12:18 +03:00
Nikolay Amiantov 47caeb1272 nodePackages.parsoid: pin service-runner to 2.3.0
service-runner had a backwards incompatible update, and parsoid 0.9.0
doesn't work with current stable MediaWiki. Instead use as a source
a repository with 0.8.0 and pinned service-runner version.

(cherry picked from commit 37546be90070173d96e2ffb7080447f23c93df68)
2018-04-02 22:43:02 +03:00
Vladimír Čunát b2bc3db8f5
Revert "systemd: 237 -> 238"
This reverts commit 2d2ab94cd2.
2018-04-02 12:10:54 +02:00
Vladimír Čunát a6d00d0d8f
nixos.tests.containers-imperative: fix impurity failure
I can't claim to fully understand this, but the change seems safe,
and it fixes the test on my machine.

(cherry picked from commit 75e4d3f2f0dd258c296e77b827dfe934472e187f)
2018-04-02 11:43:02 +02:00
Franz Pletz 27974ed369
nixos/unbound: don't fail on root trust anchor updates
Exit code on updates is 1 which makes the inital start of unbound fail.

(cherry picked from commit 35f474d61d8ed34aec8bb72ffc7e7b6d27bbd712)
2018-04-01 23:57:43 +02:00
Joachim Schiele 0a224fe280
user/group assertion to not exceed the 32 character limit
(cherry picked from commit 1b0cb040d9e44910edf8496f517d42c3878e9af2)
(original PR: #36556)
2018-03-31 14:29:14 +02:00
Franz Pletz 69a03de038 nixos/dovecot: set group in config
The dovecot bump to 2.3.1 caused the dovecot service to fail to start
because it would try to chgrp sockets to dovecot whereas our default
dovecot group is called dovecot2.

(cherry picked from commit 6a15c8d6f7b339a542b0f8f25c12a2d6d1969715)
2018-03-29 21:39:22 +02:00
Robin Gloster c30303e038
gitlab: disable
The last rubygems update broke this

(cherry picked from commit 68c4605f1a251b97cb0fcde251ce52d498e2cef8)
2018-03-29 19:18:45 +02:00
Maximilian Bosch 78e13f5da2 Revert restrictive validation behavior for DM/WM defaults in the X module
The original idea behind this change (described in ticket #11064) was to
improve the assertions to avoid that users of the X server accidentally
forget to configure a DM or WM.

However this caused several issues with setups that require X, but no DM
or WM. The keymap testcases became instable as well as now disabling DMs
needs to be done explicitly.
(see https://github.com/NixOS/nixpkgs/pull/31268#issuecomment-347080036)

In the end the idea behind the change and #11064 was obviously a
mistake, so reverting it completely for now should be fine.

(cherry picked from commit 5caa22fe0a908ede1889d32fa773b9aef675a56e)
2018-03-28 20:34:40 +02:00
xeji 255f999541
nixos/tests/atd : remove test of batch command
"batch" executes jobs based on system load.
test was not deterministic.

(cherry picked from commit b08560fb0abcca6f2c704d1d0664e3cd17580172)
2018-03-28 08:44:33 +02:00
Justin Humm be798556eb
apache-httpd: fix typo in config servedFiles
(cherry picked from commit 169468c40681b551ac906dfe68db338c56661c2e)
2018-03-28 08:43:08 +02:00
Nikolay Amiantov d2b6e655ca linuxPackages.nvidia_x11_legacy173: drop
There's no kernel in nixpkgs suitable for this old driver -- tested with 4.4.

(cherry picked from commit 25ac79647cea487127c071f4ae9742e0bc70aab2)
2018-03-27 16:54:35 +03:00
Michael Raskin 741ae94dc0 Merge pull request #35073 from Infinisil/fix/znapzend
nixos/znapzend: fix when no previous zetup

(cherry picked from commit 296dca019bbcd4160e3a6cb3a82bbe6bebae9bbf)
2018-03-25 19:42:25 +02:00
Tuomas Tynkkynen ad027421c3 nixos/tests/misc: Fix on aarch64
The psmouse module is for PS/2 mouse only, which doesn't exist outside
x86. But we can test for the mousedev module just as well which is used
for the '-device usb-tablet' emulated by QEMU.

(cherry picked from commit d27f7942b7ab745c5a00a993e2316c46654117d1)
2018-03-25 18:38:57 +03:00
Tim Steinbach e2b8732980
vault: Fix test
(cherry picked from commit 3aa3738bb2582f9142675c952f7e6e3621081c1e)
2018-03-25 01:01:34 +01:00
Tuomas Tynkkynen be44525d04 nixos/tests/installer: Give eval failure on unsupported boot methods
(cherry picked from commit 3131daace1eed2b642ab56c5843fd2057fbbfde3)
2018-03-24 18:37:20 +02:00
Tuomas Tynkkynen f45bc2b3e4 nixos/tests: Make simpleUefiGrub test work on AArch64
Needs more refactoring for the AArch64 '-enable-kvm' stuff some day...

(cherry picked from commit e58624a877342d1fea39b02a5d6528cd53eefefe)
2018-03-24 16:51:06 +02:00
Matthew Justin Bauer f61244da2e
Merge #33685: amdgpu-pro: 17.10 -> 17.40
(cherry picked from commit ce01740daeaf1288cc973942d80ed8bf69e9d1d1)
> It's definitely less broken than 17.10.
2018-03-24 12:57:47 +01:00
Jörg Thalheim 08101d052d
Merge pull request #37714 from flokli/nuke-networkmanager-pptp-18.03
networkmanager-pptp: remove package (18.03)
2018-03-23 22:58:21 +00:00
Florian Klink fb4847ebdd networkmanager-pptp: remove package
backport of #37712

Currently broken on NixOS due to hardcoded modprobe binary path (see
bug #30756 from Oct 2017), no activity on a proposed fix for months.
As the protocol is terribly broken anyways, let's better remove it
completely, and not talk about anymore ;-)

Closes #30756.

(cherry picked from commit 6ac74d60ad5c8f535ab535a13d8c365dddc6c401)
2018-03-23 23:16:09 +01:00
Nikolay Amiantov 2d2ab94cd2
systemd: 237 -> 238
(cherry picked from commit 0ccab4946d5d0405ebced50a7b7f847730d502a9)
2018-03-22 23:12:42 +01:00
WilliButz b828d00ffd
nixos/prometheus-exporters: add postfix exporter & documentation
(cherry picked from commit c54aa1f2939afeb5d8e32a6f1bba387f6b79ffc2)
2018-03-22 15:24:55 +01:00
WilliButz 135e13f8fc
release notes: add information about prometheus exporters
(cherry picked from commit 8a1310122679b1d646a2c753e869f448f6b99796)
2018-03-22 15:24:55 +01:00
WilliButz 55e97a2ebb
nixos/prometheus-exporters: rewrite and restructure
- prometheus exporters are now configured with
  `services.prometheus.exporters.<name>`
- the exporters are now defined by attribute sets
  from which the options for each exporter are generated
- most of the exporter definitions are used unchanged,
  except for some changes that should't have any impact
  on the functionality.

(cherry picked from commit f4d03b5c9cf2b694792dec88e3ca805cf7b43e3c)
2018-03-22 15:24:55 +01:00
Robin Gloster ba11500aa8
prosody: add test to release.nix
(cherry picked from commit faaf32a0ee3ed3693e87def1fabd6b8a89e29a41)
2018-03-22 14:33:10 +01:00
Robin Gloster 766a80ec84
prosody: improve module handling
(cherry picked from commit 0a80f2c0f4284428235b0f54e228f6e76f1673a7)
2018-03-22 14:33:10 +01:00
Florian Jacob b9084d0160
nixos/prosody: add a basic test
(cherry picked from commit 88f06c5ce9800d661fa85c019838fe67635aa64f)
2018-03-22 14:33:09 +01:00
Florian Jacob 7ef13f58b6
prosody: 0.9.12 -> 0.10.0
updating config options, removing luazlib as mod_compression was removed
for security reasons.

(cherry picked from commit 226965da67c25bbad0c6c0cc6d21b64a647beed8)
2018-03-22 14:33:09 +01:00
Robin Gloster 103e2c4efb
graylog: use jre_headless
(cherry picked from commit fa347164b607df52768fd952d56bd42a90fc9a6a)
2018-03-22 02:32:43 +01:00
Franz Pletz eb80bdc402
gitlab service: use recommended unicorn config
(cherry picked from commit e5a854e740ba2963af85a242229a8a8f3c250136)
2018-03-22 02:32:27 +01:00
Simon Lackerbauer d6595b4d5b
gitlab: 10.3.4 -> 10.5.4
(cherry picked from commit 1b559058064992e5d8cd951f42232793aa99d960)
2018-03-22 02:32:27 +01:00
Robin Gloster 75842fe98c
gitlab-shell: fix config path finding
and remove TimeoutSec for gitlab

(cherry picked from commit 31d77fd4f3d009631e0dc4361bfc0648fadcce4a)
2018-03-22 02:32:26 +01:00
John Ericson 192f4144b2 release-lib: Filter supportedSystems with `meta.platforms`-style patterns
Instead of intersecting system strings, we filter with the sort of
patterns used in `meta.platforms`.

Indicating this change `forTheseSystems` has been renamed to
`forMatchingSystems`, since the given list is now patterns to match, and
not the systems themselves. [Just as with `meta.platforms`, systems
strings are also supported for backwards compatibility.]

This is more flexible, and makes the `forMatchingSystems` and
packagePlatforms` cases more analogous.
2018-03-19 21:32:28 -04:00
Robert Schütz 7a5c7c1818 nixos/borgbackup: init
(cherry picked from commit fdf0f037be55c5c14e24667b1ad7eeedf2057295)
2018-03-19 20:32:43 +01:00
WilliButz 280d762338
grafana: 5.0.1 -> 5.0.3, fix headless phantomjs
(cherry picked from commit ca7b29050fed6283c701148e8135b01d61328379)
2018-03-19 20:00:45 +01:00
Peter Hoeg 6e30c6b265 nixos home-assistant: a couple of fixes (#36338)
a) set path to /run/wrappers so ping works
b) run via a target so we can easily inject other components (config copier,
appdaemon)

(cherry picked from commit 2859483fe952adf3fca90ae6615fec90ef955b4f)
2018-03-18 23:43:24 +08:00
giraffito 0869801a69 nixos/security: fix description of sudo.wheelNeedsPassword
the previous description mistakenly described the opposite semantics

(cherry picked from commit b9639d7e1f2fac0b21d47db2d16683ae9f58b70c)
2018-03-18 12:29:00 +00:00
Andreas Wiese fce096accc nixos/window-managers: actually add evilwm to default.nix
Commit 1f2b938 introduced a module for evilwm as a window-manager, but
did not actually add this module to window-manager's default.nix which
renders it useless.

(cherry picked from commit c7e1dff94e1f1c60d6d3b01a41f3fda874bbcf9a)
2018-03-18 11:13:53 +00:00
Elis Hirwing 280ac9b471 gitea: fix usage over ssh
Using gitea over ssh had two isses:
 1. No shell was set for the user
 2. Gitea tried to write logs to
 /nix/store/x83q12kyd9gw1pay036dxz2dq0apf17h-gitea-1.3.2-bin/log when
 serving the ssh usage.

(cherry picked from commit fa76c9a38554731933d53a41e741266f43f617d0)
2018-03-18 09:42:23 +00:00
Corey O'Connor d64af3e40f jenkins: Add "java.awt.headless=true" to JDK options.
This is consistent with the recommended jenkins startup script. See:

* https://wiki.jenkins.io/display/JENKINS/JenkinsLinuxStartupScript

(cherry picked from commit 28a55f5bd60c5f21139de58ee01eb90e25b20b9d)
2018-03-18 08:54:39 +00:00
Corey O'Connor 83e6969c44 jenkins: Include Deja-Vu fonts in system environment to silence jenkins warning.
(cherry picked from commit 241160aacc8433de07b5d71be98e3c3b677c0533)
2018-03-18 08:54:34 +00:00
Richard Marko 4937ce0100 nixos manual: fix (n)of typo
(cherry picked from commit d5de7bbc920560331bd1ba951a182c2dbe0e8462)
2018-03-18 08:35:45 +00:00
Elis Hirwing 812b2196fc
gitea: enable and configure postgres service if selected as database
(cherry picked from commit 1ad75d0c501fb757c7bceb346efe130bad48db1f)
2018-03-15 14:04:09 -04:00
Tuomas Tynkkynen b26595f873 nixos/qemu-vm: Add virtualized display + HID devices on AArch64
(cherry picked from commit 9e78baf5c75ed87360dfcab4c5eeeee2256be2dc)
2018-03-14 21:55:32 +02:00
aszlig b05df747cb
nixos/tests/virtualbox: Work around test failures
I've started digging into the actual cause of the problem a week ago but
didn't continue fixing this.

The reason why the tests are failing is because
torvalds/linux/commit/72f5e08dbba2d01aa90b592cf76c378ea233b00b has
remapped the location of the TSS into the CPU entry area and we did
update our default kernel to version 4.14 in NixOS/nixpkgs@88530e02b6.

Back to VirtualBox: The guru meditation happens in
selmRCGuestTssPostWriteCheck, which I think is only a followup error. I
believe the right location couldn't be determined by VirtualBox and thus
the write check function triggers that panic because it's reading from
the wrong location.

So the actual problem *only* surfaces whenever we use software
virtualization, which we do for our tests because we don't have nested
virtualization available.

Our tests are also for testing the functionality of VirtualBox itself
and not certain kernel versions or kernel features, so for the time
being and until this is fixed, let's actually use kernel version 4.9 for
the guests within the VM tests. Kernel 4.9 didn't have the mentioned
change of the TSS location and thus the tests succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @dtzWill
(cherry picked from commit ba816ee08721d0c2f5f7e6652091bed085ac7687)
2018-03-13 22:01:22 +01:00
Matthieu Coudron 075908d34b
grub-install.pl: more details on blkid failure
(cherry picked from commit c476d2f592f5fc4ccca10da4d8f45c7d15eb8c5a)
2018-03-13 15:02:05 +01:00
Matthieu Coudron 3264fe594d
build-vm: remove trailing dot from script path
Allow to double click/middle click paste path a bit quicker.

(cherry picked from commit 7b7860ff8958efa70d164f2e8d7477fb6aadfe39)
2018-03-13 15:02:05 +01:00
Matthieu Coudron 2c8a6a879c
qemu-vm: removes warning when running build-vm
get rid of deprecated qemu commands

(cherry picked from commit b7a2333ebe7a0916c9791f3b7a839e8095c39f7f)
2018-03-13 15:02:05 +01:00
Antoine Eiche 763ec32dd7
tests/docker-tools: add onTopOfPulledImage test
(cherry picked from commit bc1e8f95d4c20c996ca14f39331fe23cbb3ffe2c)
2018-03-13 15:02:04 +01:00
WilliButz 442da8b898
grafana: 5.0.0 -> 5.0.1
(cherry picked from commit ef90ff2d8ea13ebf222eb437fb6db8fcbbc1a554)
2018-03-13 00:39:44 +01:00
Franz Pletz a3d87f1ed8
nixos/tests/containers-tmpfs: fix test name
(cherry picked from commit b0fa004fa9247a15c31f4f986791c025f9242c3d)
2018-03-12 22:28:51 +01:00
Sarah Brofeldt 9dbc763949
nixos/tests/acme: use mail-test-srv tls certs from source
(cherry picked from commit df3706c47cbdea7d69b82a7ba857d58f3d4ea51f)
2018-03-12 22:10:20 +01:00
Sarah Brofeldt 665c75eccb
nixos/tests/acme: go compat update, unvendor pkcs11
(cherry picked from commit bd3558086088e36a93590947ce68dc9dad274b8d)
2018-03-12 22:10:20 +01:00
Silvan Mosberger 313dab0c3f resilio: Adjust option description to 3d17573
(cherry picked from commit 86ca617948127236dfb38f6459a6e4926d11dee5)
2018-03-12 11:05:27 +00:00
Silvan Mosberger c536d4030b nixos/network-interfaces: Fix 2 small typos
(cherry picked from commit 08704aa2f71f1d368a0370efeba411a4a8cdeda2)
2018-03-10 15:56:16 +00:00
Vladimír Čunát d9f179252d
WIP:
waiting for https://github.com/NixOS/nixos-org-configurations/pull/39
2018-03-09 20:49:56 +01:00
Matthew Bauer 02a0fb8e74 demo: autologin through xserver
also disable upower on virtualbox
Fixes #36348
2018-03-09 11:37:11 +00:00
Daiderd Jordan a4340341a6
nixos: inline set-environment for bash and zsh
(cherry picked from commit b00a3fc6fd82834114771f2115a2b032f0ebfe29)
2018-03-08 21:07:40 +01:00
Vladimír Čunát 82bb0a18f0
nixos release: more evaluation fixes
... if missing x86 in supportedSystems

(cherry picked from commit eab479a5f0e46ad461ebda9953477be8f1e5e2bb)
2018-03-07 17:32:56 +01:00
Vladimír Čunát aa84b58f00
nixos/release: fix evaluation if missing x86
... in supportedSystems

(cherry picked from commit e59b91bc9a07c643f365cc084850af5a2c2cc04f)
2018-03-07 16:07:02 +01:00
Nikolay Amiantov 6b3d6a9f7a
cups service: fix client sockets
Use systemd to create the directory for UNIX socket. Also use localhost instead
of 127.0.0.1 as is done in default cupsd.conf so that IPv6 is enabled when
available.

(cherry picked from commit 9c1c424e525b637560d91b99430b83cdaed24820)
2018-03-07 13:30:26 +01:00
obadz 4069dab3ca
nixos doc: give context and definition re NIXOS_LUSTRATE
Re #36272

(cherry picked from commit ee9a785c30c1bbc58ed77bd9c08e3cc208727572)
2018-03-07 13:30:23 +01:00
Jörg Thalheim 487731bcd3
Merge pull request #36350 from volth/nix-serve
nix-serve: nix 2.0 fixes
(cherry picked from commit 5fe1be88a53e7213e946600c08b2a9ba793ff921)
2018-03-07 13:30:16 +01:00
Frederik Rietdijk 8bcdb39a27
Merge pull request #27678 from volth/restore-bridge-slaves-dynamically-added-by-libvirt
nixos/networking-scripted: restore bridge slaves dynamically added by…
2018-03-05 17:31:22 +00:00
Dino Dai Zovi ddf13e6646 nixos/initrd-network: add udhcpc.extraArgs option (#36305)
This can be used to fix issues where udhcpc times out before
acquiring a lease. For example of these issues, see:

https://bugs.alpinelinux.org/issues/3105#note-8

Signed-off-by: Dino A. Dai Zovi <ddz@theta44.org>
2018-03-05 15:53:59 +00:00
Franz Pletz 17ba8bb3e0
Merge pull request #30416 from symphorien/luksnokey
nixos/luksroot.nix: fallback to interactive password entry when no keyfile found
2018-03-05 10:02:39 +00:00
Will Fancher 6b9a99e55d LightDM: Set default user session when possible. 2018-03-04 23:54:09 +00:00
Franz Pletz 0f78afdf25
Merge pull request #32248 from awakesecurity/parnell/fetchdocker
Support fetching docker images from V2 registries
2018-03-04 17:10:27 +00:00
Vladimír Čunát 498374a8bd
Merge #35554: nixos/opengl: unhide and document 2018-03-04 17:33:01 +01:00
obadz 9dc62dd915
Merge pull request #36272 from obadz/nixos-lustrate-doc
nixos doc: document the installation process from other distros as well as NIXOS_LUSTRATE
2018-03-04 16:21:54 +00:00
obadz 80ea345494 nixos-enter: specify absolute path to bash
Not doing so makes it impossible to use nixos-enter from a non-NixOS
distro
2018-03-04 16:19:52 +00:00
obadz 7af0aa846e nixos doc: document the installation process from other distros as well as NIXOS_LUSTRATE 2018-03-04 16:19:52 +00:00
Vladimír Čunát 2069a2a002
Merge #35454: nixos/pump.io: remove 2018-03-04 10:49:25 +01:00
Vladimír Čunát a2b8d8fbe2
nixos/pump.io: also comment-out the uid 2018-03-04 10:48:29 +01:00
Jörg Thalheim a5dcde1a6f Revert "networkd: also load builtin modules"
This reverts commit d514dc220e.

breaks unpredicable network interfaces: https://github.com/NixOS/nixpkgs/pull/29768#issuecomment-370172863
2018-03-04 06:29:08 +00:00
Jörg Thalheim 6749f6e26e
Merge pull request #36249 from Ekleog/openldap-module-declarative-contents
Openldap module declarative contents
2018-03-03 19:00:13 +00:00
Jörg Thalheim b2acbe58b2 nixos/openldap: add test 2018-03-03 18:53:52 +00:00
aszlig 0811e7f60e
nixos/netboot: Fix evaluation error
The function arguments for make-squashfs.nix have changed in
df117acab7, so we need to change them here
as well.

The boot.netboot NixOS VM test now succeeds again.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @edolstra
2018-03-03 19:31:19 +01:00
Jörg Thalheim 5d0d140f74
Merge pull request #34070 from lukeadams/prl-improve
Improve parallels-tools
2018-03-03 17:34:57 +00:00
Vladimír Čunát 729d72f9e4
18.03 release notes: nix-2.0 by default 2018-03-03 18:03:13 +01:00
Vladimír Čunát b70c93f211
Merge branch 'master' into nix-2.0 2018-03-03 18:02:35 +01:00
Vladimír Čunát ac3b53707c
18.03 release notes: highlight linux and gcc updates 2018-03-03 18:01:20 +01:00
Vladimír Čunát 7b2cf5b12e
lib.addPassthru: removed as scheduled 2018-03-03 17:57:38 +01:00
Jörg Thalheim 9936ed4920
Merge pull request #31019 from teto/strongswan_rebased
[RFC/RDY] make l2tp work with Strongswan
2018-03-03 15:56:05 +00:00
Léo Gaspard aeef7c91f1
openldap module: allow defining contents declaratively 2018-03-03 15:33:23 +01:00
Léo Gaspard cca9ec2a66
openldap module: cleanup 2018-03-03 15:33:01 +01:00
aszlig 88530e02b6
systemd: Update to latest NixOS branch
Updated to the latest version of the nixos-v237 branch, which fixes two
things:

  * Make sure that systemd looks in /etc for configuration files.
    https://github.com/NixOS/systemd/pull/15
  * Fix handling of the x-initrd.mount option.
    https://github.com/NixOS/systemd/pull/16

I've added NixOS VM tests for both to ensure we won't run into
regressions. The newly added systemd test only tests for that and is by
no means exhaustive, but it's a start.

Personally I only wanted to fix the former issue, because that's the one
I've been debugging. After sending in a pull request for our systemd
fork (https://github.com/NixOS/systemd/pull/17) I got a notice from
@Mic92, that he already fixed this and his fix was even better as it's
even suitable for upstream (so we hopefully can drop that patch
someday).

The reason why the second one came in was simply because it has been
merged before the former, but I thought it would be a good idea to have
tests for that as well.

In addition I've removed the sysconfdir=$out/etc entry to make sure the
default (/etc) is used. Installing is still done to $out, because those
directories that were previously into sysconfdir now get into
factoryconfdir.

Quote from commit NixOS/systemd@98067cc806:

  By default systemd should read all its configuration from /etc.
  Therefore we rely on -Dsysconfdir=/etc in meson as default value.
  Unfortunately this would also lead to installation of systemd's own
  configuration files to `/etc` whereas we are limited to /nix/store. To
  counter that this commit introduces two new configuration variables
  `factoryconfdir` and `factorypkgconfdir` to install systemd's own
  configuration into nix store again, while having executables looking
  up files in /etc.

Tested this change against all of the NixOS VM tests we have in
nixos/release.nix. Between this change and its parent no new tests were
failing (although a lot of them were flaky).

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Mic92, @tk-ecotelecom, @edolstra, @fpletz
Fixes: #35415
Fixes: #35268
2018-03-03 10:39:38 +01:00
Jan Tojnar 618ac29687
cantarell-fonts: rename from cantarell_fonts 2018-03-03 00:36:38 +01:00
Bjørn Forsman 5de8f99f03 nixos/jenkins: ensure postStart follows redirects
Pass the -L flag to curl to make it follow redirects. This fixes an
issue I found when setting up reverse proxy for Jenkins. Without this
fix, the returned HTTP code was stuck at 302, making postStart fail the
service (it expects 200 or 403).
2018-03-02 08:48:38 +01:00
Shea Levy 2802101e9f
Merge branch 'dropbear-2018-76-fix' 2018-03-01 21:35:06 -05:00
Shea Levy f2937b7485
initrd-ssh: Fix for new dropbear version.
For some reason 2018.76 dropped the -m flag.
2018-03-01 21:21:27 -05:00
Luke Adams 52747120c1 parallels: add package config option
allows overriding of package with newer versions
2018-03-01 17:09:13 -06:00
Luke Adams 2c5efdbec4 parallels: add `autoMountShares` option 2018-03-01 16:36:37 -06:00
WilliButz 5ea2c87464
grafana: 4.6.3 -> 5.0.0 2018-03-01 17:50:09 +01:00
lejonet 565f22d27a nixos/ceph: init module (#35299)
All 5 daemon types can be enabled and configured through the module and the module both creates the ceph.conf required but also creates and enables specific services for each daemon, based on the systemd service files that upstream provides.
2018-03-01 11:47:13 +00:00
Jörg Thalheim 12422149a7
Merge pull request #29768 from Mic92/networkd
networkd: also load builtin modules
2018-03-01 09:16:18 +00:00