diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-19 21:11:14 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-19 22:06:45 +0200 |
commit | c87977e97d97b8036caafb3a7e855c246712d739 (patch) | |
tree | e9954b3f6f34422bc2e787b4d792379066beb058 /nixos/modules/system/boot/resolved.nix | |
parent | f8dbe5f376978947067283c6d03087d7948c50de (diff) |
Don't include networkd units unless enabled
Otherwise, the enabled -> disabled transition won't be handled
correctly (switch-to-configuration currently assumes that if a unit is
running and exists, it should be restarted).
Diffstat (limited to 'nixos/modules/system/boot/resolved.nix')
-rw-r--r-- | nixos/modules/system/boot/resolved.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/resolved.nix b/nixos/modules/system/boot/resolved.nix index cdc76d59f9a8..ecd547322d3c 100644 --- a/nixos/modules/system/boot/resolved.nix +++ b/nixos/modules/system/boot/resolved.nix @@ -18,6 +18,8 @@ with lib; config = mkIf config.services.resolved.enable { + systemd.additionalUpstreamSystemUnits = [ "systemd-resolved.service" ]; + systemd.services.systemd-resolved = { wantedBy = [ "multi-user.target" ]; restartTriggers = [ config.environment.etc."systemd/resolved.conf".source ]; |