Change docker name to qbittorrent-vpn
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
cdbdfb278d
commit
c6036bb3a7
5 changed files with 8 additions and 91 deletions
|
@ -119,7 +119,7 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
docker = nixpkgs.lib.nixosSystem {
|
qbittorrent_vpn = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
"${inputs.self}/services"
|
"${inputs.self}/services"
|
||||||
"${inputs.self}/modules"
|
"${inputs.self}/modules"
|
||||||
{
|
{
|
||||||
services.vm_docker = {
|
services.vm_qbittorrent_vpn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ let
|
||||||
forgejo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMf3Cc/S0p/LFcW+RLMEqpxOOv8q/HrKO4I9joHmRxl root@forgejo";
|
forgejo = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILMf3Cc/S0p/LFcW+RLMEqpxOOv8q/HrKO4I9joHmRxl root@forgejo";
|
||||||
nginx = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKX2wkS9bpMy1+ITPtQclRkthOwksWBZOLa3bT9oLAe1 root@nixos-nginx";
|
nginx = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKX2wkS9bpMy1+ITPtQclRkthOwksWBZOLa3bT9oLAe1 root@nixos-nginx";
|
||||||
jellyfin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBiJb+U6LQ3KglTJqdUzwCVkKWqYoBuJXZ8BXXgCMqN5 root@jellyfin";
|
jellyfin = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBiJb+U6LQ3KglTJqdUzwCVkKWqYoBuJXZ8BXXgCMqN5 root@jellyfin";
|
||||||
docker = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB2n8jioazInEa0vfXY5gGcntOH4+yBV9VkdxvwEKCqA root@docker";
|
qbittorrent-vpn = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB2n8jioazInEa0vfXY5gGcntOH4+yBV9VkdxvwEKCqA root@docker";
|
||||||
nixarr = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICbGn92P4OxaGWiQDrAbE8NhFp8UCtkfSzX2fkEv+ckk root@arr-box";
|
nixarr = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICbGn92P4OxaGWiQDrAbE8NhFp8UCtkfSzX2fkEv+ckk root@arr-box";
|
||||||
|
|
||||||
systems = [grafana onlyoffice postgresql forgejo nginx jellyfin];
|
systems = [grafana onlyoffice postgresql forgejo nginx jellyfin];
|
||||||
|
@ -42,9 +42,9 @@ in {
|
||||||
|
|
||||||
"secrets/redis-lapi-key.age".publicKeys = [tbarnouin redis];
|
"secrets/redis-lapi-key.age".publicKeys = [tbarnouin redis];
|
||||||
|
|
||||||
"services/docker/secrets/docker-gluetun-env.age".publicKeys = [tbarnouin docker];
|
"services/qbittorrent_vpn/secrets/docker-gluetun-env.age".publicKeys = [tbarnouin qbittorrent-vpn];
|
||||||
"services/docker/secrets/docker-qbittorrent-env.age".publicKeys = [tbarnouin docker];
|
"services/qbittorrent_vpn/secrets/docker-qbittorrent-env.age".publicKeys = [tbarnouin qbittorrent-vpn];
|
||||||
"secrets/docker-lapi-key.age".publicKeys = [tbarnouin docker];
|
"secrets/docker-lapi-key.age".publicKeys = [tbarnouin qbittorrent-vpn];
|
||||||
|
|
||||||
"secrets/nixarr-lapi-key.age".publicKeys = [tbarnouin nixarr];
|
"secrets/nixarr-lapi-key.age".publicKeys = [tbarnouin nixarr];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,14 +4,10 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.services.vm_docker;
|
cfg = config.services.vm_qbittorrent_vpn;
|
||||||
in {
|
in {
|
||||||
options.services.vm_docker = {
|
options.services.vm_qbittorrent_vpn = {
|
||||||
enable = lib.mkEnableOption "Enable minimal config";
|
enable = lib.mkEnableOption "Enable minimal config";
|
||||||
pgsql_ip = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
description = "docker database IP address";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
|
@ -126,85 +122,6 @@ in {
|
||||||
log-driver = "journald";
|
log-driver = "journald";
|
||||||
extraOptions = ["--network=container:gluetun"];
|
extraOptions = ["--network=container:gluetun"];
|
||||||
};
|
};
|
||||||
"bazarr" = {
|
|
||||||
image = "linuxserver/bazarr";
|
|
||||||
environment = {
|
|
||||||
"PGID" = "1000";
|
|
||||||
"PUID" = "1000";
|
|
||||||
"TZ" = "\"Europe/Paris\"";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/tbarnouin/bazarr:/config:rw"
|
|
||||||
"/mnt/media:/downloads:rw"
|
|
||||||
];
|
|
||||||
ports = [
|
|
||||||
"6767:6767/tcp"
|
|
||||||
];
|
|
||||||
log-driver = "journald";
|
|
||||||
};
|
|
||||||
"jellyseerr" = {
|
|
||||||
image = "fallenbagel/jellyseerr:latest";
|
|
||||||
environment = {
|
|
||||||
"LOG_LEVEL" = "debug";
|
|
||||||
"TZ" = "\"Europe/Paris\"";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/tbarnouin/jellyseerr:/app/config:rw"
|
|
||||||
];
|
|
||||||
ports = [
|
|
||||||
"5055:5055/tcp"
|
|
||||||
];
|
|
||||||
log-driver = "journald";
|
|
||||||
};
|
|
||||||
"prowlarr" = {
|
|
||||||
image = "lscr.io/linuxserver/prowlarr:latest";
|
|
||||||
environment = {
|
|
||||||
"PGID" = "1000";
|
|
||||||
"PUID" = "1000";
|
|
||||||
"TZ" = "\"Europe/Paris\"";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/tbarnouin/prowlarr:/config:rw"
|
|
||||||
"/mnt/media:/downloads:rw"
|
|
||||||
];
|
|
||||||
ports = [
|
|
||||||
"9696:9696/tcp"
|
|
||||||
];
|
|
||||||
log-driver = "journald";
|
|
||||||
extraOptions = ["--dns=192.168.1.90"];
|
|
||||||
};
|
|
||||||
"radarr" = {
|
|
||||||
image = "lscr.io/linuxserver/radarr:latest";
|
|
||||||
environment = {
|
|
||||||
"PGID" = "1000";
|
|
||||||
"PUID" = "1000";
|
|
||||||
"TZ" = "\"Europe/Paris\"";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/tbarnouin/radarr:/config:rw"
|
|
||||||
"/mnt/media:/downloads:rw"
|
|
||||||
];
|
|
||||||
ports = [
|
|
||||||
"7878:7878/tcp"
|
|
||||||
];
|
|
||||||
log-driver = "journald";
|
|
||||||
};
|
|
||||||
"sonarr" = {
|
|
||||||
image = "lscr.io/linuxserver/sonarr:latest";
|
|
||||||
environment = {
|
|
||||||
"PGID" = "1000";
|
|
||||||
"PUID" = "1000";
|
|
||||||
"TZ" = "\"Europe/Paris\"";
|
|
||||||
};
|
|
||||||
volumes = [
|
|
||||||
"/home/tbarnouin/sonarr:/config:rw"
|
|
||||||
"/mnt/media:/downloads:rw"
|
|
||||||
];
|
|
||||||
ports = [
|
|
||||||
"8989:8989/tcp"
|
|
||||||
];
|
|
||||||
log-driver = "journald";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue