chore: remove used homelab modules

This commit is contained in:
Guz
2024-12-17 21:03:23 -03:00
parent e402af102e
commit 7748ccc6b7
4 changed files with 0 additions and 141 deletions

View File

@@ -1,6 +0,0 @@
{...}: {
imports = [
# ./media_server
./ghostfolio.nix
];
}

View File

@@ -1,44 +0,0 @@
{
config,
lib,
...
}: let
secrets = config.spacestation-secrets.lesser;
ghostfolioSecrets = secrets.guz.services.ghostfolio;
in {
imports = [];
services.ghostfolio.enable = true;
# virtualisation.oci-containers.containers = {
# ghostfolio = {
# image = "ghostfolio/ghostfolio:latest";
# autoStart = true;
# environmentFiles = [
# (/. + config.sops.secrets."ghostfolio/env".path)
# ];
# dependsOn = [
# "ghostfolio-postgres"
# "ghostfolio-redis"
# ];
# ports = [
# "${toString ghostfolioSecrets.port}:3333"
# ];
# };
# ghostfolio-postgres = {
# image = "docker.io/library/postgres:15";
# environmentFiles = [
# (/. + config.sops.secrets."ghostfolio/env".path)
# ];
# volumes = [
# "/var/lib/ghostfolio/postgresql/data:/var/lib/postgresql/data"
# ];
# };
# ghostfolio-redis = {
# image = "docker.io/library/redis:alpine";
# environmentFiles = [
# (/. + config.sops.secrets."ghostfolio/env".path)
# ];
# cmd = ["redis-server" "--requirepass" "$REDIS_PASSWORD"];
# };
# };
}

View File

@@ -1,5 +0,0 @@
{...}: {
imports = [
./jellyfin.nix
];
}

View File

@@ -1,86 +0,0 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
secrets = config.spacestation-secrets.lesser;
qbittorrentSecrets = secrets.guz.services.qbittorrent;
in {
imports = [];
environment.systemPackages = with pkgs; [
jellyfin
jellyfin-web
jellyfin-ffmpeg
qbittorrent-nox
];
services.jellyfin = {
enable = true;
};
services.jellyseerr = {
enable = false;
port = 8097;
openFirewall = true;
};
services.sonarr = {
enable = false;
};
services.radarr = {
enable = false;
};
services.bazarr = {
enable = false;
};
nixpkgs.overlays = [
(final: prev: {
qbittorrent = prev.qbittorrent.override {guiSupport = false;};
})
];
qt.enable = true;
systemd.services.qbittorrent = let
dataDir = "/var/lib/qbittorrent";
configDir = "${dataDir}/.config";
in {
after = ["network.target"];
description = "qBittorrent Daemon";
wantedBy = ["multi-user.target"];
path = [pkgs.qbittorrent-nox];
serviceConfig = {
ExecStart = ''
${pkgs.qbittorrent-nox}/bin/qbittorrent-nox \
--profile=${configDir} \
--webui-port=${toString qbittorrentSecrets.port}
'';
Restart = "on-success";
User = "qbittorrent";
Group = "qbittorrent";
UMask = "0002";
LimitNOFILE = 4096;
};
environment = {
QBT_PROFILE = "/var/lib/qbittorrent";
QBT_WEBUI_PORT = toString qbittorrentSecrets.port;
};
};
users = {
users."qbittorrent" = {
group = "qbittorrent";
home = "/var/lib/qbittorrent";
createHome = true;
description = "qBittorrent Daemon user";
isSystemUser = true;
};
groups."qbittorrent" = {gid = null;};
};
}