From 6693bc981d83a2e9cf75fd639abafb59d2d5817b Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 9 Jun 2025 01:25:32 -0500 Subject: [PATCH] feat: kanboard removed --- modules/config/instances/config/kanboard.nix | 34 ------ modules/nixos/default.nix | 1 - modules/nixos/services/jellyfin/default.nix | 0 modules/nixos/services/kanboard/default.nix | 103 ------------------- 4 files changed, 138 deletions(-) delete mode 100755 modules/config/instances/config/kanboard.nix mode change 100644 => 100755 modules/nixos/services/jellyfin/default.nix delete mode 100755 modules/nixos/services/kanboard/default.nix diff --git a/modules/config/instances/config/kanboard.nix b/modules/config/instances/config/kanboard.nix deleted file mode 100755 index a94b030..0000000 --- a/modules/config/instances/config/kanboard.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ instancesFunctions }: -let - inherit (instancesFunctions) - domain0 - servicePath - sslPath - sopsPath - ; - - kanboardLabel = "Kanboard"; - kanboardName = "kanboard"; - kanboardSubdomain = "todo"; -in -{ - label = kanboardLabel; - name = kanboardName; - email = { - address0 = "noreply@${domain0}"; - }; - sops = { - path0 = "${sopsPath}/${kanboardName}"; - }; - subdomain = kanboardSubdomain; - paths = { - path0 = "${servicePath}/${kanboardLabel}"; - }; - ports = { - port0 = 3128; - }; - ssl = { - cert = "${sslPath}/${kanboardSubdomain}.${domain0}/fullchain.pem"; - key = "${sslPath}/${kanboardSubdomain}.${domain0}/key.pem"; - }; -} diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix index ec84c5a..e171e44 100755 --- a/modules/nixos/default.nix +++ b/modules/nixos/default.nix @@ -89,7 +89,6 @@ in vaultwarden forgejo xserver - kanboard ; }; }; diff --git a/modules/nixos/services/jellyfin/default.nix b/modules/nixos/services/jellyfin/default.nix old mode 100644 new mode 100755 diff --git a/modules/nixos/services/kanboard/default.nix b/modules/nixos/services/kanboard/default.nix deleted file mode 100755 index d7e416d..0000000 --- a/modules/nixos/services/kanboard/default.nix +++ /dev/null @@ -1,103 +0,0 @@ -{ - flake, - config, - ... -}: -let - inherit (flake.config.machines.devices) - ceres - ; - inherit (flake.config.services.instances) smtp kanboard web; - service = kanboard; - localhost = web.localhost.address0; - host = "${service.subdomain}.${web.domains.url0}"; -in -{ - services = { - kanboard = { - enable = true; - domain = web.localhost.address1; - # dataDir = "/var/lib/${service.name}"; - # settings = { - # HTTP_PROXY_HOSTNAME = host; - # HTTP_PROXY_PORT = service.ports.port0; - # MAIL_SMTP_HOSTNAME = smtp.hostname; - # MAIL_TRANSPORT = "smtp"; - # MAIL_SMTP_PORT = smtp.ports.port0; - # MAIL_SMTP_USERNAME = service.email.address0; - # MAIL_FROM = service.email.address0; - # MAIL_SMTP_PASSWORD = config.sops.secrets."${service.name}-smtp".path; - # MAIL_SMTP_ENCRYPTION = "tls"; - # }; - }; - caddy = { - virtualHosts = { - "${host}" = { - extraConfig = '' - reverse_proxy ${localhost}:${toString service.ports.port0} - - route { - encode zstd gzip - - php_fastcgi unix//run/php/php7.2-fpm.sock - - try_files {path} {path}/index.php /index.php?{query} - file_server - } - - tls ${service.ssl.cert} ${service.ssl.key} - ''; - }; - }; - }; - }; - # sops = - # let - # sopsPath = secret: { - # path = "${service.sops.path0}/${service.name}-${secret}"; - # owner = service.name; - # mode = "600"; - # }; - # in - # { - # secrets = builtins.listToAttrs ( - # map - # (secret: { - # name = "${service.name}-${secret}"; - # value = sopsPath secret; - # }) - # [ - # "smtp" - # ] - # ); - # }; - - # fileSystems."/var/lib/${service.name}" = { - # device = service.paths.path0; - # fsType = "none"; - # options = [ - # "bind" - # ]; - # depends = [ - # ceres.storage0.mount - # ]; - # }; - - # systemd.tmpfiles.rules = [ - # "Z ${service.paths.path0} 755 ${service.name} ${service.name} -" - # "Z ${service.sops.path0} 755 ${service.name} ${service.name} -" - # ]; - - # users.users.${service.name}.extraGroups = [ - # "caddy" - # "postgres" - # ]; - - networking = { - firewall = { - allowedTCPPorts = [ - service.ports.port0 - ]; - }; - }; -}