3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

10968 commits

Author SHA1 Message Date
Tmplt 1b9888aaa0 nixos/compton: fix corrupt colours with Mesa 18 on AMD
On AMD hardware with Mesa 18, compton renders some colours incorrectly
when using the glx backend. This patch sets an environmental variable
for compton so colours are rendered correctly.

Topical bug: <https://bugs.freedesktop.org/show_bug.cgi?id=104597>
2018-10-19 15:42:11 -05:00
gnidorah d75b725497
kvmgt module: add service restart on failure
(cherry picked from commit a6603fd8a8)
2018-10-19 10:45:31 +01:00
Jörg Thalheim cde886e7c6
tinc: remove unnecessary networking.interfaces
This breaks with networking backends enabled and
also creates large delays on boot when some services depends
on the network target. It is also not really required
because tinc does create those interfaces itself.

fixes #27070

(cherry picked from commit 5a1f0f9aa3)
2018-10-19 08:36:34 +01:00
Michael Raitza cb996fdb60
nixos/openafs: Add defaultText to avoid evaluating packages
(cherry picked from commit 290a7d2ee9)
2018-10-18 16:11:57 +01:00
Maximilian Bosch bfb61a7709
nixos/weechat: add setuid wrapper for `screen' to ensure true multiuser capabilities
Previously you either had to set the setuid bit yourself or workaround
`isSystemUser = true` (for a loginable shell) to access the weechat
screen.

`programs.screen` shouldn't do this by default to avoid taking too much
assumptions about the setup, however `services.weechat` explicitly
requires tihs.

See #45728

(cherry picked from commit 018573b757)
2018-10-17 23:43:46 +02:00
clefru 20ebe73f91 Fix hostapd's place in systemd dependency tree. (#45464)
* nat/bind/dhcp.service:
  Remove. Those services have nothing to do with a link-level service.

* sys-subsystem-net-devices-${if}.device:
  Add as BindsTo dependency as this will make hostapd stop when the
  device is unplugged.

* network-link-${if}.service:
  Add hostapd as dependency for this service via requiredBy clause,
  so that the network link is only considered to be established
  only after hostapd has started.

* network.target:
  Remove this from wantedBy clause as this is already implied from
  dependencies stacked above hostapd. And if it's not implied than
  starting hostapd is not required for this particular network
  configuration.

(cherry picked from commit 725fcdef3f)
2018-10-17 16:53:49 +02:00
Eelco Dolstra b5380ae736 ec2-amis.nix: Add 18.09 images
(cherry picked from commit 47dfe25e1b)
2018-10-15 22:52:23 +02:00
Léo Gaspard 3b65a51174 release-notes/18-09: add licenses marked as unfree
(cherry picked from commit 2a2c99673b)
2018-10-16 00:07:45 +09:00
Ambroz Bizjak 195a573cc8 nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
This adds configuration options which automate the configuration of NVIDIA Optimus using PRIME. This allows using the NVIDIA proprietary driver on Optimus laptops, in order to render using the NVIDIA GPU while outputting to displays connected only to the integrated Intel GPU. It also adds an option for enabling kernel modesetting for the NVIDIA driver (via a kernel command line flag); this is particularly useful together with Optimus/PRIME because it fixes tearing on PRIME-connected screens.

The user still needs to enable the Optimus/PRIME feature and specify the bus IDs of the Intel and NVIDIA GPUs, but this is still much easier for users and more reliable. The implementation handles both the X configuration file as well as getting display managers to run certain necessary `xrandr` commands just after X has started.

Configuration of commands run after X startup is done using a new configuration option `services.xserver.displayManager.setupCommands`. Support for this option is implemented for LightDM, GDM and SDDM; all of these have been tested with this feature including logging into a Plasma session.

Note: support of `setupCommands` for GDM is implemented by making GDM run the session executable via a wrapper; the wrapper will run the `setupCommands` before execing. This seemed like the simplest and most reliable approach, and solves running these commands both for GDM's X server and user X servers (GDM starts separate X servers for itself and user sessions). An alternative approach would be with autostart files but that seems harder to set up and less reliable.

Note that some simple features for X configuration file generation (in `xserver.nix`) are added which are used in the implementation:
- `services.xserver.extraConfig`: Allows adding arbitrary new sections. This is used to add the Device section for the Intel GPU.
- `deviceSection` and `screenSection` within `services.xserver.drivers`. This allows the nvidia configuration module to add additional contents into the `Device` and `Screen` sections of the "nvidia" driver, and not into such sections for other drivers that may be enabled.
2018-10-14 20:06:12 -05:00
volth eb1dc551af bootStage1: fix cross build (@matthewbauer's solution)
(cherry picked from commit b3dff39105)
2018-10-14 02:03:23 -04:00
volth e1fbfca6e0 bootStage1: fix cross build
(cherry picked from commit 9dd5dc57a7)
2018-10-14 02:03:18 -04:00
Alexander V. Nikolaev 29b9fee3fc
nixos/rmilter: don't enable by default, if rspamd enabled
(cherry picked from commit b61dd2bcb7)
2018-10-12 23:54:13 +01:00
Uli Baum 589d270ce4 nixos/network-interfaces-scripted: fix container networking bug
When a bridge interface was reconfigured, running containers using
this bridge lost connectivity: restarting network-addresses-brN.service
triggered a restart of network-setup.service via a "partOf" relationship
introduced in 07e0c0e0a2.
This in turn restarted brN-netdev.service.
The bridge was thus destroyed and recreated with the same name but a new
interface id, causing attached veth interfaces to lose their connection.

This change removes the "partOf" relationship between
network-setup.service and network-addresses-brN.service for all bridges.

(cherry picked from commit 2742063677)
2018-10-12 10:50:52 +02:00
Niklas Hambüchen 6e2c08b68c
nix-daemon service: Ensure ssh is on PATH. Fixes #46038.
This fixes a regression introduced in commit
  700e21d6da

nix needs ssh on path for the SSH substituter functionality,
not only the distributed builds functionality.

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
(cherry picked from commit 31919bce6b)
2018-10-11 21:53:00 +02:00
Michael Raskin 1a75f83903 Merge pull request #48189 from aanderse/redmine
redmine: refactor, cleanup, bug fix, and add functionality
(cherry picked from commit a29603344a)
2018-10-11 20:53:00 +03:00
WilliButz 2cae2b9a84
nixos/tests: add test for prometheus exporters
(cherry picked from commit 0febc64ed1)
2018-10-11 16:00:02 +02:00
WilliButz 7277b1d908
nixos/prometheus-exporters: fix unapplied service config
Prior to this commit, the default values for `Restart`, `PrivateTmp` and
`WorkingDirectory` were falsely ignored.

I also added myself as maintainer.

(cherry picked from commit fbb7e0c82f)
2018-10-11 16:00:01 +02:00
WilliButz 59940fbcd6
nixos/prometheus-varnish-exporter: avoid crash on restart
(cherry picked from commit 24320f4a9e)
2018-10-11 16:00:00 +02:00
Samuel Dionne-Riel 8cfce968b1 nixos/doc: Actually fix partitioning instructions.
The previous tentative to the fix got the order mixed up a bit. This
new fix has been re-verified to get them in the good order as per the
instructions in the following chapters.

(cherry picked from commit 467bec34bb)
2018-10-09 23:02:00 -04:00
lassulus c93665d440
nixos/gnome3: don't autoenable gdm
This seems to cause problems if people have other display-managers
enabled

(cherry picked from commit 5a752ad879)
2018-10-09 23:31:04 +01:00
Vincent Ambo 59fe4c7f17 journaldriver: 1.0.0 -> 1.1.0 (#48106)
Included changes:

* upstream repository has moved, URLs changed accordingly
* journaldriver bumped to new upstream release

The new release includes an important workaround for an issue that
could cause log-forwarding to fail after service restarts due to
invalid journal cursors being persisted.

(cherry picked from commit 5ead27394d)

backported because of moved upstream repo
2018-10-09 23:46:38 +02:00
Arian van Putten 1ada6fcde1 nixos/containers: Add regression test for #40355
(cherry picked from commit 0668906e84)
2018-10-08 17:00:33 -04:00
Arian van Putten cf9b801b60 Revert "Revert "Revert "doc: Update section about imperative containers"""
nixos-container can now execute nix commands again inside the container

This reverts commit 9622cd3b38.

(cherry picked from commit bb31835b1d)
2018-10-08 17:00:33 -04:00
Arian van Putten 76c1cd35d0 nixos-container: Force container to talk to host nix-daemon
When logging into a container by using
  nixos-container root-login
all nix-related commands in the container would fail, as they
tried to modify the nix db and nix store, which are mounted
read-only in the container.  We want nixos-container to not
try to modify the nix store at all, but instead delegate
any build commands to the nix daemon of the host operating system.

This already works for non-root users inside a nixos-container,
as it doesn't 'own' the nix-store, and thus defaults
to talking to the daemon socket at /nix/var/nix/daemon-socket/,
which is bind-mounted to the host daemon-socket, causing all nix
commands to be delegated to the host.

However, when we are the root user inside the container, we have the
same uid as the nix store owner, eventhough it's not actually
the same root user (due to user namespaces). Nix gets confused,
and is convinced it's running in single-user mode, and tries
to modify the nix store directly instead.

By setting `NIX_REMOTE=daemon` in `/etc/profile`, we force nix
to operate in multi-user mode, so that it will talk to the host
daemon instead, which will modify the nix store for the container.

This fixes #40355

(cherry picked from commit 3624bb5362)
2018-10-08 17:00:33 -04:00
lassulus 617607e043 charybdis service: bin/charybdis-ircd -> bin/charybdis
(cherry picked from commit 99c8dc4a11)
2018-10-07 20:44:43 +01:00
Andrew Childs 2b3b607ea9 nixos/prometheus-snmp-exporter: fix command line argument format
(cherry picked from commit c477d6658c)
2018-10-07 11:50:35 +01:00
Samuel Dionne-Riel f4bb9c421f
Merge pull request #47956 from samueldr/18.09/backport-46443
[backport] Miniupnpd and bittorrent improvements (#46443)
2018-10-06 12:27:07 -04:00
Bob van der Linden fc8769dbfc tests: bittorrent: add bobvanderlinden as maintainer
(cherry picked from commit 5fbc521bf9)
2018-10-06 00:36:38 -04:00
Bob van der Linden b453212005 tests: bittorrent: improve stability
This attempts to improve stability of the test by using existing
services for miniupnpd and transmission.

It also uses explicit addresses for the network interfaces so that the
external IP addresses are valid internet addresses (thus fixing
validation problems from upnpc).

Also disable eth0 from being used to transfer torrents over without that
being the intention.

(cherry picked from commit 276ffc5656)
2018-10-06 00:36:38 -04:00
Bob van der Linden 3ab4c76382 tests: upnp: init test for upnp using miniupnpd / miniupnpc
(cherry picked from commit 32c63c6905)
2018-10-06 00:36:38 -04:00
Bob van der Linden 4342bdd79d nixos: miniupnpd: use iptables scripts
(cherry picked from commit d3eff01076)
2018-10-06 00:36:37 -04:00
Samuel Dionne-Riel 6a3f5bcb06 nixos/doc: Updates release date for 18.09
(cherry picked from commit 82d1bf9691)
2018-10-05 18:33:19 -04:00
Samuel Dionne-Riel 0ea9623aa4 Updates 18.09 release notes for release.
(cherry picked from commit 6487a47996)
2018-10-05 18:19:39 -04:00
Graham Christensen 09b8ed042a
version.nix: extract revision-fetching function
(cherry picked from commit 4312cfdbda)
2018-10-05 13:14:07 -04:00
Peter Hoeg c8b3a26aec plasma5: run kbuildsycoca5 in the user context
(cherry picked from commit 4dada63a17)
2018-10-05 11:27:17 +08:00
Peter Hoeg 092f82b803 switch-to-configuration.pl: activate the nixos-activation.service user service
(cherry picked from commit 8118d6eb2e)
2018-10-05 11:27:03 +08:00
Peter Hoeg c5b97d47b8 system-activation: support script fragments to run in a user context
(cherry picked from commit 1353ba2678)
2018-10-05 11:26:22 +08:00
Vladimír Čunát 8dae912c28
Merge #47699: nixos on hyperv improvements 2018-10-05 00:11:57 +02:00
Vladimír Čunát c78e3b7cfb
nixos-option: fix #47722 when missing ~/.nix-defexpr/channels
The problem was that the non-fatal warning was not omitted
from the output when constructing a nix expression.
Now it seems OK for me.  When return code is OK,
the warnings don't get passed anywhere, but I expect
that won't matter for this utility.  Fatal errors are still shown.

(cherry picked from commit de93b32f90)
2018-10-04 17:22:05 +02:00
Samuel Dionne-Riel 91c3bc1dfe
doc: installing-usb: removes notes about unetbootin.
They are known to cause more issues than solving issues; futhermore
using `dd` should work everywhere without fail.

(cherry picked from commit 8467dc857b)
2018-10-03 22:57:04 -04:00
Samuel Dionne-Riel 9da278dc38
doc: Reviews partitioning instructions to use parted.
The tests in <nixos/tests/installer.nix> are using `parted`, so they are
bound to be better tested than `fdisk`.

This is brought on by a couple issues, plus reports on IRC that the
`fdisk` instructions didn't work as expected.

 * #39354
 * #46309
 * #39942
 * #45478

Care was taken so that the other documented steps did not need changes.

In all this kerfufle, a slight re-organization of the Chapter has been
made, allowing better deep linking.

(cherry picked from commit 6cfbf403ca)
2018-10-03 22:57:00 -04:00
Samuel Dionne-Riel 292d4fce90
nixos/doc: Adds sub-folder to input files.
(cherry picked from commit 2c0d56f007)
2018-10-03 22:56:54 -04:00
Samuel Dionne-Riel 59f5dea6bd
doc: installing-usb make macOS note a note.
While it seemingly brings more attention to the macOS notes with the
default docbook template, it better represents which parts of the
section are about macOS, and which parts are simply in the flow of the
text; otherwise the last paragraph may be lost into the details for
macOS.

(cherry picked from commit 8192fcd0fd)
2018-10-03 22:56:33 -04:00
Márton Boros 1ae800be28
Fix systemd timer unit documentation
Fixes #36210

(cherry picked from commit d8a555d819)
2018-10-03 08:46:40 -04:00
zimbatm 6e0c9ffbd4 google-compute-engine: 20180510 -> 20180905
The list of corresponding NixOS services are also updated

(cherry picked from commit 9fb79868ab)
2018-10-03 14:11:36 +02:00
Maximilian Bosch 6e93cdfe35 nixos/activation: fix systemd-user daemon-reload in auto-upgrade service (#47695)
The autoupgrade service defined in `system.autoUpgrade`
(`nixos/modules/installer/tools/auto-upgrade.nix`) doesn't have `su` in
its path and thus yields a warning during the `daemon-reload`.

Specifying the absolute path fixes the issue.

Fixes #47648

(cherry picked from commit 7297cc5501 and
resolved conflict)
2018-10-03 12:43:20 +02:00
Peter Hoeg 9ffdaa1f19 nixos on hyperv: hot-add CPU
(cherry picked from commit 6e3e136f77)
2018-10-03 11:46:48 +08:00
Peter Hoeg 18ae457bc7 nixos-installer: use the hyperv module on hyperv
(cherry picked from commit ca6d41ae65)
2018-10-03 11:46:42 +08:00
Peter Hoeg 42968c07c5 nixos on hyperv: load modules and set video mode
(cherry picked from commit 3a76bc7a79)
2018-10-03 11:46:36 +08:00
Franz Pletz 66fd61163a
nixos/clamav: fix freshclam service if db up to date
(cherry picked from commit 11ba2f270f)
2018-10-02 00:27:24 +02:00