modules: system: add docker

This commit is contained in:
Bruno BELANYI 2023-06-11 16:17:42 +01:00
parent 8fcb7f42a6
commit 73fdd4622b
2 changed files with 28 additions and 0 deletions

View file

@ -4,6 +4,7 @@
{ {
imports = [ imports = [
./boot ./boot
./docker
./documentation ./documentation
./language ./language
./nix ./nix

View file

@ -0,0 +1,27 @@
# Podman related settings
{ config, lib, ... }:
let
cfg = config.my.system.docker;
in
{
options.my.system.docker = with lib; {
enable = mkEnableOption "docker configuration";
};
config = lib.mkIf cfg.enable {
virtualisation.docker = {
enable = true;
# Remove unused data on a weekly basis
autoPrune = {
enable = true;
dates = "weekly";
flags = [
"--all"
];
};
};
};
}