mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
virtualisation.docker: require docker.service for docker-prune.service
else docker-prune fails when docker is not launched. Adjusted the test as well
This commit is contained in:
parent
d77812e649
commit
fd62fdca5b
@ -221,6 +221,8 @@ in
|
||||
'';
|
||||
|
||||
startAt = optional cfg.autoPrune.enable cfg.autoPrune.dates;
|
||||
after = [ "docker.service" ];
|
||||
requires = [ "docker.service" ];
|
||||
};
|
||||
|
||||
assertions = [
|
||||
|
@ -11,6 +11,7 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.docker.autoPrune.enable = true;
|
||||
virtualisation.docker.package = pkgs.docker;
|
||||
|
||||
users.users = {
|
||||
|
Loading…
Reference in New Issue
Block a user