nixpkgs/nixos/modules
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
..
config iproute2: module to create rt_table file & co 2018-05-15 21:55:04 +09:00
hardware Merge branch 'master' into staging 2018-04-10 09:13:36 +02:00
i18n/input-method Added cross-references to NixOS manual 2018-04-12 09:39:14 +10:00
installer nix: 2.0.3 -> 2.0.4 2018-05-31 11:31:04 +02:00
misc Revert "nixpkgs module: Fix defaulting of localSystem and system" 2018-05-31 15:55:36 -04:00
profiles nixos/installer: Drop dmraid 2018-05-25 01:55:51 +03:00
programs zsh: only do promptInit when TERM!=dumb 2018-05-31 12:34:16 -04:00
security manual: Clarify that limits.conf doesn't apply to systemd services. (#40267) 2018-05-12 17:44:57 +02:00
services dnscrypt-proxy: make man 8 dnscrypt-proxy work (#41039) 2018-05-31 23:15:19 +02:00
system nixos/systemd: Allow to override serviceConfig 2018-06-04 15:34:21 +02:00
tasks nixos.modules.tasks.swraid: add raid10 module to initrd 2018-05-28 23:49:35 +03:00
testing nixos/tests: set default stateVersion in test VMs 2018-05-14 00:01:15 +02:00
virtualisation Update GCE image for 18.03 2018-05-30 19:36:39 +02:00
module-list.nix meguca: init at git-2018-05-17 2018-05-26 07:03:49 -05:00
rename.nix kubernetes: update to 1.10 2018-05-25 10:50:36 +02:00