lol

virtualisation.docker: require docker.service for docker-prune.service

else docker-prune fails when docker is not launched. Adjusted the test as well

authored by

Matthieu Coudron and committed by
Bjørn Forsman
fd62fdca d77812e6

+3
+2
nixos/modules/virtualisation/docker.nix
··· 221 221 ''; 222 222 223 223 startAt = optional cfg.autoPrune.enable cfg.autoPrune.dates; 224 + after = [ "docker.service" ]; 225 + requires = [ "docker.service" ]; 224 226 }; 225 227 226 228 assertions = [
+1
nixos/tests/docker.nix
··· 11 11 { pkgs, ... }: 12 12 { 13 13 virtualisation.docker.enable = true; 14 + virtualisation.docker.autoPrune.enable = true; 14 15 virtualisation.docker.package = pkgs.docker; 15 16 16 17 users.users = {