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

46 lines
1 KiB
Nix
Raw Normal View History

2023-03-13 00:13:25 +00:00
{ pkgs, config, secret, ... }:
2022-07-30 17:49:04 +00:00
{
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 = "21600";
2022-08-04 22:40:11 +00:00
WATCHTOWER_LABEL_ENABLE = "true";
2023-03-12 21:39:27 +00:00
WATCHTOWER_NOTIFICATIONS = "shoutrrr";
2023-03-13 00:13:25 +00:00
WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
2023-03-12 21:39:27 +00:00
WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl;
2022-08-04 22:40:11 +00:00
};
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"/root/.docker/config.json:/config.json:ro"
];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
];
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
};
2023-03-13 09:41:35 +00:00
networking.firewall.interfaces."docker0".allowedTCPPorts = [ 443 ];
2022-07-30 17:49:04 +00:00
}