From 253cdf8ede72d466a296a15924a20079104a8790 Mon Sep 17 00:00:00 2001 From: jasmine Date: Tue, 15 Oct 2024 06:27:48 +0800 Subject: [PATCH] remove some unused services/refactor --- ...29661998a1ca74449720287a7d-smb-secrets.age | 8 --- ...8bf86376b696948d4139797cfc8ba-microbin.age | Bin 8473 -> 0 bytes nixos/viridian/configuration.nix | 23 +++---- .../containers/jellyseerr/default.nix | 43 -------------- nixos/viridian/containers/mealie/default.nix | 47 --------------- .../viridian/containers/microbin/default.nix | 47 --------------- .../containers/microbin/environment.age | Bin 8571 -> 0 bytes .../viridian/containers/recyclarr/default.nix | 16 ----- .../jellyfin/default.nix | 0 .../lidarr/default.nix | 0 .../prowlarr/default.nix | 0 .../qbittorrent/default.nix | 0 .../radarr/default.nix | 0 .../sonarr/default.nix | 0 nixos/viridian/services/grafana/default.nix | 56 ------------------ nixos/viridian/services/mysql/default.nix | 7 --- .../viridian/services/prometheus/default.nix | 32 ---------- 17 files changed, 8 insertions(+), 271 deletions(-) delete mode 100644 nixos/common/global/secrets/rekeyed/fuchsia/146f3229661998a1ca74449720287a7d-smb-secrets.age delete mode 100644 nixos/common/global/secrets/rekeyed/viridian/4108bf86376b696948d4139797cfc8ba-microbin.age delete mode 100644 nixos/viridian/containers/jellyseerr/default.nix delete mode 100644 nixos/viridian/containers/mealie/default.nix delete mode 100644 nixos/viridian/containers/microbin/default.nix delete mode 100644 nixos/viridian/containers/microbin/environment.age delete mode 100644 nixos/viridian/containers/recyclarr/default.nix rename nixos/viridian/{containers => multimedia}/jellyfin/default.nix (100%) rename nixos/viridian/{containers => multimedia}/lidarr/default.nix (100%) rename nixos/viridian/{containers => multimedia}/prowlarr/default.nix (100%) rename nixos/viridian/{containers => multimedia}/qbittorrent/default.nix (100%) rename nixos/viridian/{containers => multimedia}/radarr/default.nix (100%) rename nixos/viridian/{containers => multimedia}/sonarr/default.nix (100%) delete mode 100644 nixos/viridian/services/grafana/default.nix delete mode 100644 nixos/viridian/services/mysql/default.nix delete mode 100644 nixos/viridian/services/prometheus/default.nix diff --git a/nixos/common/global/secrets/rekeyed/fuchsia/146f3229661998a1ca74449720287a7d-smb-secrets.age b/nixos/common/global/secrets/rekeyed/fuchsia/146f3229661998a1ca74449720287a7d-smb-secrets.age deleted file mode 100644 index 0d75c86..0000000 --- a/nixos/common/global/secrets/rekeyed/fuchsia/146f3229661998a1ca74449720287a7d-smb-secrets.age +++ /dev/null @@ -1,8 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 jVljVA ILfVChFf5s9U6CODItB/TqS1tUaAEeoLAGiNKPbDclU -MCyVqjOPexZm+is5JWG5zfbS26nJj/Z4mk6SJDufBPM --> RƥՐII9s~a{'<5|o;_*T'|ysvt(X_J.`r`"|*[ \ No newline at end of file diff --git a/nixos/common/global/secrets/rekeyed/viridian/4108bf86376b696948d4139797cfc8ba-microbin.age b/nixos/common/global/secrets/rekeyed/viridian/4108bf86376b696948d4139797cfc8ba-microbin.age deleted file mode 100644 index e9b6d06990f1a1d44c38ce4258a37b20aaaff29a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8473 zcmV+!A?Ds;XJsvAZewzJaCB*JZZ2_GffIPZB$ZLPBmzB zQf@LcOL#(bHZg5TbXsdyWo2?UWmPzCRBTH`YAZ2sY%mHfJ|H4!cy}#la%Ew2Wgskf zbSer{dUIJ$Lo!EkPkClGL^Wq?OEfSzcQbHkGe=W)YC#GuEiE8=W@1NAV|Y|ULpet^ zYE)8bYk5(2YDq6NMmI@HXmvO%MN(sPa(OgbVp$5&r92@zutpjr!h;b+#gB`8ga4w= z)T6)I0;IU*)oJ{rhWR|Jf`j88mD{X}57u(08cX36!!AvR{uE>Jk12I4 zb+m}6gC1-k8Lv;n7q-yWuzQUeT6LDEvI#aF_2Qzu;dS?6^G7QctV(#%exmK|9M`&m zr69WyMM@8k$aFZulEV679)qJV(OP76Kl8z>7OL4 z(Ja&Q4(l4->_dWbx=;Zr9sEx;8M1{)sDg9=o^m-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ridian/configuration.nix +++ b/nixos/viridian/configuration.nix @@ -6,32 +6,25 @@ # Our user configuration and optional user units ../common/users/sajenim - # Containers - ./containers/jellyfin - ./containers/jellyseerr - ./containers/lidarr - ./containers/mealie - ./containers/microbin - ./containers/prowlarr - ./containers/qbittorrent - ./containers/radarr - ./containers/recyclarr - ./containers/sonarr - # Services ./services/borgbackup ./services/crowdsec ./services/forgejo - ./services/grafana ./services/immich ./services/lighttpd ./services/minecraft ./services/mpd - ./services/mysql ./services/paperless-ngx - ./services/prometheus ./services/traefik + # Multimedia + ./multimedia/jellyfin + ./multimedia/lidarr + ./multimedia/prowlarr + ./multimedia/qbittorrent + ./multimedia/radarr + ./multimedia/sonarr + # Setup our hardware ./hardware-configuration.nix ]; diff --git a/nixos/viridian/containers/jellyseerr/default.nix b/nixos/viridian/containers/jellyseerr/default.nix deleted file mode 100644 index 47bb4c5..0000000 --- a/nixos/viridian/containers/jellyseerr/default.nix +++ /dev/null @@ -1,43 +0,0 @@ -{...}: let - port = "5055"; -in { - virtualisation.oci-containers.containers = { - # Request management - jellyseerr = { - autoStart = true; - image = "ghcr.io/hotio/jellyseerr:release-1.9.2"; - ports = [ - "${port}:5055/tcp" # WebUI - ]; - volumes = [ - "/srv/containers/jellyseerr:/config" - ]; - environment = { - PUID = "1000"; - PGID = "100"; - }; - extraOptions = [ - "--network=media-stack" - ]; - }; - }; - - services.traefik.dynamicConfigOptions.http.routers = { - jellyseerr = { - rule = "Host(`jellyseerr.kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - "internal" - ]; - service = "jellyseerr"; - }; - }; - - services.traefik.dynamicConfigOptions.http.services = { - jellyseerr.loadBalancer.servers = [ - {url = "http://127.0.0.1:${port}";} - ]; - }; -} diff --git a/nixos/viridian/containers/mealie/default.nix b/nixos/viridian/containers/mealie/default.nix deleted file mode 100644 index 42a6f7c..0000000 --- a/nixos/viridian/containers/mealie/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{...}: let - port = "9925"; -in { - virtualisation.oci-containers.containers = { - mealie = { - autoStart = true; - image = "ghcr.io/mealie-recipes/mealie:v1.11.0"; - ports = [ - "${port}:9000" - ]; - volumes = [ - "/srv/containers/mealie:/app/data/" - ]; - environment = { - ALLOW_SIGNUP = "false"; - PUID = "1000"; - PGID = "100"; - TZ = "Australia/Perth"; - MAX_WORKERS = "1"; - WEB_CONCURRENCY = "1"; - BASE_URL = "https://mealie.kanto.dev"; - SECURITY_MAX_LOGIN_ATTEMPTS = "3"; - SECRURITY_USER_LOCKOUT_TIME = "72"; - }; - }; - }; - - services.traefik.dynamicConfigOptions.http.routers = { - mealie = { - rule = "Host(`mealie.kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - "crowdsec" - "geoblock" - ]; - service = "mealie"; - }; - }; - - services.traefik.dynamicConfigOptions.http.services = { - mealie.loadBalancer.servers = [ - {url = "http://127.0.0.1:${port}";} - ]; - }; -} diff --git a/nixos/viridian/containers/microbin/default.nix b/nixos/viridian/containers/microbin/default.nix deleted file mode 100644 index 248a623..0000000 --- a/nixos/viridian/containers/microbin/default.nix +++ /dev/null @@ -1,47 +0,0 @@ -{config, ...}: let - port = "8181"; -in { - age.secrets.microbin = { - # Environment variables for microbin - rekeyFile = ./environment.age; - owner = "sajenim"; - group = "users"; - }; - - virtualisation.oci-containers.containers = { - # Self-hosted, open-source pastbin - microbin = { - autoStart = true; - image = "danielszabo99/microbin:2.0.4"; - ports = [ - "${port}:8080/tcp" # WebUI - ]; - volumes = [ - # Container data - "/srv/containers/microbin:/app/microbin_data:rw" - ]; - environmentFiles = [ - config.age.secrets.microbin.path - ]; - }; - }; - - services.traefik.dynamicConfigOptions.http.routers = { - microbin = { - rule = "Host(`bin.kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - "internal" - ]; - service = "microbin"; - }; - }; - - services.traefik.dynamicConfigOptions.http.services = { - microbin.loadBalancer.servers = [ - {url = "http://127.0.0.1:${port}";} - ]; - }; -} diff --git a/nixos/viridian/containers/microbin/environment.age b/nixos/viridian/containers/microbin/environment.age deleted file mode 100644 index 160a5cda76cf8081b6072be12218cd4f0c128341..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8571 zcmV->A%xyxXJsvAZewzJaCB*JZZ2XNM&qj zX=zPzP-%BBK`%mQWLHjUcQiLqMp|MsXLdAmR(5GH3N1b$Xb7dfY zd3R_xE?WvkOH5W~ac+1tOH)EmRzqhtc~Dn$SWGWCa#V0QL@-8jF=BLTWNu4zN@rtA zdPQ<(cx6UHZAv$BVlyy7MQS+;M|Wvba#>77b46u$b$4wtD>F=EP-bFrG%$K+D`a_7 zHBv}7b7E&!ad&VyaYbWtZ%jEn0&Ftv6e(e6%C^=a|7} z;HR?)u66c^ENW9MXRxxasUCP@$+TM`==drpcP+8}8V%KgqPg?z1pDs<`qLjUKzx`M z6eC8pwyu+^Zba;baV|DnLcgEJQ%8Oo0 zpb`l9Hsz!sX=|dmo=6a_hfcq!@)LBXyn14Wq} zRI-)Gnd5>a>1`d$6rX=2wr(DW5KUevUs093oHj)huGKhI5^UDMFwtms$h(;KZn)j* zhtEs>+H=JdTpn8ryH0G%?yc?zAR+8WFtDy~n94=RdybTtCdEkZ*)`PneI_!DRr8-! za-#Ux?>Jv%t>e^wrzlR6U(@|g2)`ieY@Crk=u)^*w?=a#)}p{&QR=0_|+{j^4^eG*=*UG5re$Y z3NQm>3b`k(4oX9u!{0lm0w4jem}F{hRDrPW48u&lLt0Z{CK>GP!)iGZv^Ort;VV^@-r&8kOxn& z{WO~eYzIMj*9Bsjf(LL}VN=L0CFOpdw-$@d(>BiNWi2T24$bVly2L9(fCFB7Ma*>u z^9XtA!D;4NtSEg6p@J1uZn?NU=A8BA`OQC{-bR>Q1Eb-ZZZW~8LmTaRvHumz4Ujh; z>QZa2wLb8c9c9I`deTU81D~{?Z5&2wLs+XSC7{EN zh@}E?^~4;b(;NRqOj1sKJ&H8(Y+q07W2_AbiMCc;( zv(v2+x-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Sf0 zr?M)v6)V`NAzYu2uGh3jVR0@gheWlZUl7u(G&i@={WyTq18b$m2MpLe9$5F$qtpzC z96zg-3?s{W_z!hL6$YC>FS%J8)&nPF+Z(`S>_KVh8ZK((QLIqZ5emQyr`j8dC zMjVd~fiyu7V656fh!dj=RdehwUuSVm7W6MY6`Wa|X>}WqtM9*{fgEYhm)R+t$J@gO z=X9m3{1p`qR!rnQf4O6E2i0_`ta=UN1Y||&#hlwhy>geG0?3(O6h@^mU<|LJ{vDqP zoyuc0iXd;PpC=<-f@%hhS&GEi8f|KgO+RY)BYS_xla+dNQC%r;N1x~2(sKXQ=TQ>TovH(Vg#{ubu2#%Dcf-m?>#vFNJv5ky=u zQ>J_Wt3QvqaX*znb%L^MY;$XjYUg_$GICLu+Rc7?qc}_=>!UdWG#}6t$e5`q1~~BN zbil55@7pQe^l7+Dj}c#T^|6CCT-2T8LAsToEnvT{g4_MWC zcrEdlgP9n}IvRYM;O*G5SxI+PTNd*P%YVa{Bf7K3M4^`g_n$ol#f|{^3ob*g1^({m z(EeoSm9%htTVMAqbi$T9!B_z8aq||W^QQR%be_i|=d&oZXnNIOLeBmV?m03m^2O@ Bpa1{> diff --git a/nixos/viridian/containers/recyclarr/default.nix b/nixos/viridian/containers/recyclarr/default.nix deleted file mode 100644 index cd7aa60..0000000 --- a/nixos/viridian/containers/recyclarr/default.nix +++ /dev/null @@ -1,16 +0,0 @@ -{...}: { - virtualisation.oci-containers.containers = { - # Automatically synchronize recommended settings from the TRaSH guides to your Sonarr/Radarr instances - recyclarr = { - autoStart = true; - image = "ghcr.io/recyclarr/recyclarr:6.0.2"; - volumes = [ - "/srv/containers/recyclarr:/config" - ]; - extraOptions = [ - "--network=media-stack" - ]; - user = "1000:100"; - }; - }; -} diff --git a/nixos/viridian/containers/jellyfin/default.nix b/nixos/viridian/multimedia/jellyfin/default.nix similarity index 100% rename from nixos/viridian/containers/jellyfin/default.nix rename to nixos/viridian/multimedia/jellyfin/default.nix diff --git a/nixos/viridian/containers/lidarr/default.nix b/nixos/viridian/multimedia/lidarr/default.nix similarity index 100% rename from nixos/viridian/containers/lidarr/default.nix rename to nixos/viridian/multimedia/lidarr/default.nix diff --git a/nixos/viridian/containers/prowlarr/default.nix b/nixos/viridian/multimedia/prowlarr/default.nix similarity index 100% rename from nixos/viridian/containers/prowlarr/default.nix rename to nixos/viridian/multimedia/prowlarr/default.nix diff --git a/nixos/viridian/containers/qbittorrent/default.nix b/nixos/viridian/multimedia/qbittorrent/default.nix similarity index 100% rename from nixos/viridian/containers/qbittorrent/default.nix rename to nixos/viridian/multimedia/qbittorrent/default.nix diff --git a/nixos/viridian/containers/radarr/default.nix b/nixos/viridian/multimedia/radarr/default.nix similarity index 100% rename from nixos/viridian/containers/radarr/default.nix rename to nixos/viridian/multimedia/radarr/default.nix diff --git a/nixos/viridian/containers/sonarr/default.nix b/nixos/viridian/multimedia/sonarr/default.nix similarity index 100% rename from nixos/viridian/containers/sonarr/default.nix rename to nixos/viridian/multimedia/sonarr/default.nix diff --git a/nixos/viridian/services/grafana/default.nix b/nixos/viridian/services/grafana/default.nix deleted file mode 100644 index e457450..0000000 --- a/nixos/viridian/services/grafana/default.nix +++ /dev/null @@ -1,56 +0,0 @@ -{config, ...}: { - # Setup grafana our grafana instance. - services.grafana = { - enable = true; - dataDir = "/srv/services/grafana"; - settings = { - server = { - http_addr = "127.0.0.1"; - http_port = 3400; - domain = "kanto.dev"; - root_url = "https://kanto.dev/grafana/"; - serve_from_sub_path = true; - }; - database = { - type = "mysql"; - name = "grafana"; - user = "grafana"; - host = "/var/run/mysqld/mysqld.sock"; - }; - }; - }; - - # Setup our database for grafana. - services.mysql = { - ensureUsers = [ - { - name = "grafana"; - ensurePermissions = { - "grafana.*" = "ALL PRIVILEGES"; - }; - } - ]; - ensureDatabases = ["grafana"]; - }; - - # Setup our traefik router. - services.traefik.dynamicConfigOptions.http.routers = { - grafana = { - rule = "Host(`kanto.dev`)"; - entryPoints = [ - "websecure" - ]; - middlewares = [ - "internal" - ]; - service = "grafana"; - }; - }; - - # Setup our traefik service. - services.traefik.dynamicConfigOptions.http.services = { - grafana.loadBalancer.servers = [ - {url = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}";} - ]; - }; -} diff --git a/nixos/viridian/services/mysql/default.nix b/nixos/viridian/services/mysql/default.nix deleted file mode 100644 index 3ca4267..0000000 --- a/nixos/viridian/services/mysql/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{pkgs, ...}: { - services.mysql = { - enable = true; - package = pkgs.mariadb; - dataDir = "/srv/services/mysql"; - }; -} diff --git a/nixos/viridian/services/prometheus/default.nix b/nixos/viridian/services/prometheus/default.nix deleted file mode 100644 index 38a67aa..0000000 --- a/nixos/viridian/services/prometheus/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{config, ...}: { - services.prometheus = { - enable = true; - port = 9001; # Port to listen on. - - # Valid in all configuration contexts, defaults for other configuration sections. - globalConfig = { - scrape_interval = "15s"; - }; - - # Collect specific metrics, format them, and expose them through HTTP endpoints for prometheus to scrape. - exporters = { - node = { - enable = true; - enabledCollectors = ["systemd" "processes"]; - port = 9100; - }; - }; - - # Specify a set of targets and parameters describing how to scrape them. - scrapeConfigs = [ - { - job_name = "node"; - static_configs = [ - { - targets = ["127.0.0.1:${toString config.services.prometheus.exporters.node.port}"]; - } - ]; - } - ]; - }; -}