nix-config/modules2/docker.nix

21 lines
345 B
Nix
Raw Normal View History

2025-07-24 23:53:29 +01:00
{ config, ... }:
{
2025-07-24 23:53:29 +01:00
flake.modules.nixos.pc = {
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
2025-07-24 23:53:29 +01:00
users.users.${config.flake.meta.owner.username}.extraGroups = [ "docker" ];
};
}