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

44 lines
981 B
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
};
2022-07-30 17:49:04 +00:00
}