Compare commits
2 commits
47017b65f2
...
6fdf162bd0
Author | SHA1 | Date | |
---|---|---|---|
Casper V. Kristensen | 6fdf162bd0 | ||
Casper V. Kristensen | 9b48143208 |
20
hosts/sigma/archiveteam-warrior.nix
Normal file
20
hosts/sigma/archiveteam-warrior.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
../../modules/base
|
||||
../../modules/server
|
||||
./acme.nix
|
||||
./archiveteam-warrior.nix
|
||||
./borg.nix
|
||||
./caddy.nix
|
||||
./deluge.nix
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue