common/docker: split file, fix auto-prune service
This commit is contained in:
@@ -16,6 +16,7 @@ in {
|
||||
./services/blueman.nix
|
||||
./services/dbus.nix
|
||||
./services/display-manager.nix
|
||||
./services/docker.nix
|
||||
./services/fwupd.nix
|
||||
./services/irqbalance.nix
|
||||
./services/journald.nix
|
||||
@@ -278,11 +279,4 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enableOnBoot = lib.mkDefault false;
|
||||
virtualisation.docker.autoPrune = {
|
||||
enable = lib.mkDefault true;
|
||||
flags = [ "--system" "--all" ];
|
||||
dates = "daily";
|
||||
};
|
||||
}
|
||||
|
12
hosts/common/services/docker.nix
Normal file
12
hosts/common/services/docker.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.virtualisation.docker;
|
||||
in
|
||||
{
|
||||
virtualisation.docker.enableOnBoot = lib.mkDefault false;
|
||||
virtualisation.docker.autoPrune = {
|
||||
enable = lib.mkDefault cfg.enable;
|
||||
flags = [ "--all" ];
|
||||
dates = "daily";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user