Compare commits

..

2 commits

Author SHA1 Message Date
Casper V. Kristensen 6fdf162bd0 archiveteam-warrior 2024-05-18 01:39:04 +02:00
Casper V. Kristensen 9b48143208 podman auto update 2024-05-18 01:38:48 +02:00
3 changed files with 30 additions and 2 deletions

View file

@ -0,0 +1,20 @@
{...}: {
virtualisation.oci-containers.containers = {
archiveteam-warrior = {
# https://wiki.archiveteam.org/index.php?title=ArchiveTeam_Warrior#Advanced_usage_(container_only)
image = "atdr.meo.ws/archiveteam/warrior-dockerfile:latest";
labels = {
"io.containers.autoupdate" = "registry";
};
environment = {
# https://wiki.archiveteam.org/index.php/ArchiveTeam_Warrior/Docker_environment_variables
DOWNLOADER = "x34xw9mjrntztxgr"; # nickname
SELECTED_PROJECT = "auto";
};
ports = [
# ssh -L 8001:localhost:8001 sigma
"127.0.0.1:8001:8001"
];
};
};
}

View file

@ -4,6 +4,7 @@
../../modules/base
../../modules/server
./acme.nix
./archiveteam-warrior.nix
./borg.nix
./caddy.nix
./deluge.nix

View file

@ -8,14 +8,21 @@
enable = true;
# Automatically `podman system prune` weekly
autoPrune.enable = true;
# Required for containers under podman-compose to be able to talk to each
# other.
defaultNetwork.settings = {
# DNS is required for containers under podman-compose to be able to talk
# to each other.
dns_enabled = true;
ipv6_enabled = true;
};
};
# Auto-update containers
# https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html
systemd = {
timers.podman-auto-update.enable = true;
units."podman-auto-update.timer".wantedBy = ["timers.target"];
};
# Persist docker volumes
environment.persistence."/nix/persist" = {
directories = [