diff options
author | Florian Klink <flokli@flokli.de> | 2020-05-21 10:29:37 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-05-21 10:29:37 +0200 |
commit | 8aaca0addc8827ed37035b5297a21605b8980a71 (patch) | |
tree | 964823302439a2724f9453babd219503c4aa6ac7 /nixos/modules | |
parent | ea462c742e5faa418650ffa3b49d3319167fe848 (diff) | |
download | nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar.gz nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar.bz2 nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar.lz nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar.xz nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.tar.zst nixpkgs-8aaca0addc8827ed37035b5297a21605b8980a71.zip |
nixos/docker-registry: always run systemctl of the currently running systemd
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/misc/docker-registry.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/docker-registry.nix b/nixos/modules/services/misc/docker-registry.nix index 89bac4f47d7..1c2e2cc5359 100644 --- a/nixos/modules/services/misc/docker-registry.nix +++ b/nixos/modules/services/misc/docker-registry.nix @@ -138,7 +138,7 @@ in { script = '' ${pkgs.docker-distribution}/bin/registry garbage-collect ${configFile} - ${pkgs.systemd}/bin/systemctl restart docker-registry.service + /run/current-system/systemd/bin/systemctl restart docker-registry.service ''; startAt = optional cfg.enableGarbageCollect cfg.garbageCollectDates; |