1
0
Fork 0
dotfiles/system/nixos/arion.nix

38 lines
676 B
Nix
Raw Normal View History

2022-07-30 17:49:04 +00:00
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.arion
];
2022-08-04 22:40:11 +00:00
virtualisation = {
docker = {
enable = true;
2022-12-01 21:48:43 +00:00
autoPrune = {
enable = true;
flags = [ "--all" ];
};
2022-08-04 22:40:11 +00:00
};
oci-containers = {
backend = "docker";
containers.watchtower = {
image = "containrrr/watchtower";
environment = {
WATCHTOWER_POLL_INTERVAL = "28800";
WATCHTOWER_LABEL_ENABLE = "true";
};
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/root/.docker/config.json:/config.json:ro"
];
2022-08-04 22:40:11 +00:00
};
};
2022-07-30 18:27:33 +00:00
2022-08-04 22:40:11 +00:00
arion = {
backend = "docker";
};
2022-07-30 18:27:33 +00:00
};
2022-07-30 17:49:04 +00:00
}