nixpkgs-suyu/nixos
aszlig 0e7c945e15
nixos/systemd: Allow to override serviceConfig
This has been reported by @qknight in his Stack Overflow question:

https://stackoverflow.com/q/50678639

The correct way to override a single value would be to use something
like this:

systemd.services.nagios.serviceConfig.Restart = lib.mkForce "no";

However, this doesn't work because the check is applied for the attrsOf
type and thus the attribute values might still contain the attribute set
created by mkOverride.

The unitOption type however did already account for this, but at this
stage it's already too late.

So now the actual value is unpacked while checking the values of the
attribute set, which should allow us to override values in
serviceConfig.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @edolstra, @qknight
2018-06-04 15:34:21 +02:00
..
doc Kubernetes: 2018-05-26 11:19:12 +02:00
lib qemu-flags: default to qemu-kvm 2018-05-31 12:34:15 -04:00
maintainers Fix kernel crash caused by absent root device 2018-05-12 02:55:33 +03:00
modules nixos/systemd: Allow to override serviceConfig 2018-06-04 15:34:21 +02:00
tests tests/containers-imperative: Include stdenvNoCC 2018-06-01 08:20:20 +02:00
COPYING
default.nix nixos: export packages of the current configuration (its pkgs argument) 2018-02-09 19:35:27 +00:00
README Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
release-combined.nix nixos/release-combined.nix: fix eval of tested job 2018-05-11 00:47:43 +02:00
release-small.nix Add the boot test to release-small.nix 2018-02-27 20:09:07 +01:00
release.nix Revert "nixos: disable gdk-pixbuf test" 2018-06-01 00:17:38 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.