nixos-config/system/containers.nix

31 lines
593 B
Nix
Raw Normal View History

2025-01-10 11:06:58 -03:00
{ pkgs, lib, ... }:
{
services.flatpak.enable = true;
2024-06-11 09:30:29 -03:00
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "monthly";
flags = [
"--all"
"--volumes"
];
};
daemon.settings = {
# needed by bitbucket runner ???
log-driver = "json-file";
log-opts = {
max-size = "10m";
max-file = "3";
};
};
2024-06-11 09:30:29 -03:00
};
2025-01-10 11:06:58 -03:00
networking.firewall.extraCommands = lib.getExe pkgs._docker-block-external-connections;
programs.extra-container.enable = true;
programs.firejail.enable = true;
}