Continued migration from containers to nixos services
This commit is contained in:
parent
0f5e03aca8
commit
60829f8868
2 changed files with 43 additions and 89 deletions
|
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
paperless-pass.file = ../../../secrets/paperless-pass.age;
|
paperless-pass = {
|
||||||
|
file = ../../../secrets/paperless-pass.age;
|
||||||
|
owner = "paperless";
|
||||||
|
group = "hosted";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -17,10 +21,8 @@
|
||||||
"baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; root = inputs.homepage; };
|
"baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; root = inputs.homepage; };
|
||||||
"cinny.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8002"; };
|
"cinny.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8002"; };
|
||||||
"librespeed.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8003"; };
|
"librespeed.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8003"; };
|
||||||
"pyload.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8005"; };
|
"sync.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8006"; };
|
||||||
"shiori.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8006"; };
|
"whoogle.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8007"; };
|
||||||
"sync.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8007"; };
|
|
||||||
"whoogle.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; locations."/".proxyPass = "http://127.0.0.1:8008"; };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -85,6 +87,17 @@
|
||||||
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.paperless.port}";
|
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.paperless.port}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
shiori = {
|
||||||
|
enable = true;
|
||||||
|
port = 8005;
|
||||||
|
};
|
||||||
|
nginx.virtualHosts."shiori.baduhai.me" = {
|
||||||
|
useACMEHost = "baduhai.me";
|
||||||
|
forceSSL = true;
|
||||||
|
kTLS = true;
|
||||||
|
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.shiori.port}";
|
||||||
|
};
|
||||||
|
|
||||||
minecraft-server = {
|
minecraft-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
eula = true;
|
eula = true;
|
||||||
|
|
@ -126,87 +139,28 @@
|
||||||
"--pull=always"
|
"--pull=always"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# "paperless" = {
|
"syncthing" = {
|
||||||
# image = "lscr.io/linuxserver/paperless-ngx:latest";
|
image = "lscr.io/linuxserver/syncthing:1.20.4";
|
||||||
# environment = {
|
environment = {
|
||||||
# PUID = "1000";
|
PUID = "1000";
|
||||||
# PGID = "100";
|
PGID = "100";
|
||||||
# TZ = "Europe/Berlin";
|
TZ = "Europe/Berlin";
|
||||||
# PAPERLESS_URL = "https://paperless.baduhai.me";
|
};
|
||||||
# PAPERLESS_OCR_LANGUAGE = "eng+deu+por";
|
volumes = [
|
||||||
# DOCKER_MODS = "linuxserver/mods:papermerge-multilangocr";
|
"/data/syncthing/config:/config"
|
||||||
# OCRLANG = "eng,por,deu";
|
"/data/syncthing/data1:/data1"
|
||||||
# };
|
"/data/syncthing/data2:/data2"
|
||||||
# volumes = [
|
"/data/syncthing/notes:/sync/notes"
|
||||||
# "/data/paperless-ngx/config:/config"
|
];
|
||||||
# "/data/paperless-ngx/data:/data"
|
ports = [
|
||||||
# ];
|
"8006:8384"
|
||||||
# ports = [
|
"22000:22000"
|
||||||
# "8005:8000"
|
"21027:21027/udp"
|
||||||
# ];
|
];
|
||||||
# extraOptions = [
|
extraOptions = [
|
||||||
# "--pull=always"
|
"--pull=always"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
# "pyload" = { # Download manager
|
|
||||||
# image = "lscr.io/linuxserver/pyload-ng:latest";
|
|
||||||
# environment = {
|
|
||||||
# PUID = "1000";
|
|
||||||
# PGID = "100";
|
|
||||||
# TZ = "Europe/Berlin";
|
|
||||||
# };
|
|
||||||
# volumes = [
|
|
||||||
# "/data/pyload/config:/config"
|
|
||||||
# "/data/pyload/downloads:/downloads"
|
|
||||||
# ];
|
|
||||||
# ports = [
|
|
||||||
# "8005:8000"
|
|
||||||
# "9666:9666"
|
|
||||||
# ];
|
|
||||||
# extraOptions = [
|
|
||||||
# "--pull=always"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# "shiori" = {
|
|
||||||
# image = "docker.io/nicholaswilde/shiori:latest";
|
|
||||||
# environment = {
|
|
||||||
# TZ = "Europe/Berlin";
|
|
||||||
# PUID = "1000";
|
|
||||||
# PGID = "100";
|
|
||||||
# SHIORI_DIR = "/data";
|
|
||||||
# };
|
|
||||||
# volumes = [
|
|
||||||
# "/data/shiori:/data"
|
|
||||||
# ];
|
|
||||||
# ports = [
|
|
||||||
# "8006:8080"
|
|
||||||
# ];
|
|
||||||
# extraOptions = [
|
|
||||||
# "--pull=always"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# "syncthing" = {
|
|
||||||
# image = "lscr.io/linuxserver/syncthing:1.20.4";
|
|
||||||
# environment = {
|
|
||||||
# PUID = "1000";
|
|
||||||
# PGID = "100";
|
|
||||||
# TZ = "Europe/Berlin";
|
|
||||||
# };
|
|
||||||
# volumes = [
|
|
||||||
# "/data/syncthing/config:/config"
|
|
||||||
# "/data/syncthing/data1:/data1"
|
|
||||||
# "/data/syncthing/data2:/data2"
|
|
||||||
# "/data/syncthing/notes:/sync/notes"
|
|
||||||
# ];
|
|
||||||
# ports = [
|
|
||||||
# "8007:8384"
|
|
||||||
# "22000:22000"
|
|
||||||
# "21027:21027/udp"
|
|
||||||
# ];
|
|
||||||
# extraOptions = [
|
|
||||||
# "--pull=always"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
"whoogle" = {
|
"whoogle" = {
|
||||||
image = "benbusby/whoogle-search:latest";
|
image = "benbusby/whoogle-search:latest";
|
||||||
environment = {
|
environment = {
|
||||||
|
|
@ -219,7 +173,7 @@
|
||||||
WHOOGLE_CONFIG_GET_ONLY = "1";
|
WHOOGLE_CONFIG_GET_ONLY = "1";
|
||||||
};
|
};
|
||||||
ports = [
|
ports = [
|
||||||
"8008:5000"
|
"8007:5000"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--pull=always"
|
"--pull=always"
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@
|
||||||
gid = 1005;
|
gid = 1005;
|
||||||
members = [
|
members = [
|
||||||
"user"
|
"user"
|
||||||
"nginx"
|
"shiori"
|
||||||
"vaultwarden"
|
|
||||||
"minecraft"
|
"minecraft"
|
||||||
"paperless"
|
"paperless"
|
||||||
|
"vaultwarden"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue