diff --git a/nixos/modules/programs/nh.nix b/nixos/modules/programs/nh.nix index fd9229bd71d1..f50e7a9dcea9 100644 --- a/nixos/modules/programs/nh.nix +++ b/nixos/modules/programs/nh.nix @@ -99,6 +99,7 @@ in script = "exec ${lib.getExe cfg.package} clean all ${cfg.clean.extraArgs}"; startAt = cfg.clean.dates; path = [ config.nix.package ]; + after = [ "multi-user.target" ]; serviceConfig.Type = "oneshot"; };