Automatically prune unused Docker images

This commit is contained in:
Oliver Davies 2024-03-18 00:44:00 +00:00
parent bb944db1fe
commit a33c74c580

View file

@ -173,7 +173,14 @@ in {
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
virtualisation.docker.enable = true;
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
programs.zsh.enable = true;
programs.zsh.histSize = 5000;