diff --git a/hosts/hub/apps/gts.nix b/hosts/hub/apps/gts.nix deleted file mode 100644 index 713b1cb..0000000 --- a/hosts/hub/apps/gts.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ pkgs, ... }: - -let - package = pkgs.unstable.gotosocial; -in -{ - services = { - gotosocial = { - enable = true; - package = package; - settings = { - application-name = "Nolan's Social Media"; - host = "gts.thewordnerd.info"; - port = 8081; - landing-page-user = "nolan"; - }; - }; - - caddy.virtualHosts."gts.thewordnerd.info".extraConfig = '' - reverse_proxy http://localhost:8081 - ''; - }; - environment.systemPackages = [ package ]; -} diff --git a/hosts/hub/apps/karakeep.nix b/hosts/hub/apps/karakeep.nix new file mode 100644 index 0000000..8bf4170 --- /dev/null +++ b/hosts/hub/apps/karakeep.nix @@ -0,0 +1,23 @@ +{ config, ... }: + +{ + systemd.tmpfiles.rules = [ + "d /var/lib/actual 0755 root root" + ]; + + virtualisation.oci-containers.containers.actual = { + image = "actualbudget/actual-server:latest"; + ports = [ + "5006:5006" + ]; + environment = { + ACTUAL_LOGIN_METHOD = "header"; + }; + volumes = [ "/var/lib/actual:/data" ]; + }; + + services.caddy.virtualHosts."https://budget.tailc50184.ts.net".extraConfig = '' + bind tailscale/budget + reverse_proxy http://localhost:5006 + ''; +} diff --git a/hosts/hub/apps/peertube.nix b/hosts/hub/apps/peertube.nix deleted file mode 100644 index ba55ffd..0000000 --- a/hosts/hub/apps/peertube.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, ... }: - -{ - age.secrets.thewordnerd_peertube = { - file = ../../../secrets/thewordnerd_peertube.age; - owner = config.services.peertube.user; - }; - services = { - peertube = { - enable = true; - localDomain = "peertube.thewordnerd.info"; - listenWeb = 443; - redis.createLocally = true; - database.createLocally = true; - secrets.secretsFile = config.age.secrets.thewordnerd_peertube.path; - }; - caddy.virtualHosts."peertube.thewordnerd.info".extraConfig = '' - reverse_proxy http://localhost:9000 - ''; - }; -} diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index 693c548..5efc676 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -18,6 +18,7 @@ ../../roles/lldap.nix ../../roles/authelia.nix ../../roles/podman.nix + ../../roles/minio.nix ../../roles/caddy.nix ../../roles/vscode-remote.nix ../../roles/postgres.nix @@ -27,8 +28,6 @@ ./apps/dev.nix ./apps/nextcloud.nix ./apps/paperless.nix - ./apps/gts.nix - ./apps/peertube.nix ./apps/searxng.nix ./apps/actual.nix ./apps/adguard.nix diff --git a/secrets/secrets.nix b/secrets/secrets.nix index 6aa7785..94cda20 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -37,5 +37,4 @@ in hub nolan ]; - "thewordnerd_peertube.age".publicKeys = [ hub ]; } diff --git a/secrets/thewordnerd_peertube.age b/secrets/thewordnerd_peertube.age deleted file mode 100644 index 2e69507..0000000 --- a/secrets/thewordnerd_peertube.age +++ /dev/null @@ -1,5 +0,0 @@ -age-encryption.org/v1 --> ssh-ed25519 5X7MKw 8HgABUK/pWaX4v3hcf4Q0QKNrvwZfLLGGYNSYEY6eAE -DaPJEDRHG60VWEJCdRxlU+N/gsPL608nqYl4/w0d8fw ---- XdjnYGqiHzc1SCNXV9p08Tonizbg5wXSJiCUV+Sgj2g -*! SS|.{U`Yf~z+K 1jS\/cb^RI&&&ȼsjCxXKVF  \ No newline at end of file diff --git a/users/root.nix b/users/root.nix index bf78610..ab329e8 100644 --- a/users/root.nix +++ b/users/root.nix @@ -10,14 +10,11 @@ programs.fish.enable = true; - home-manager.users.root = { - programs.fish.enable = true; - home = { - shellAliases = { - "systemctl" = "systemctl --no-pager -l"; - "journalctl" = "journalctl --no-pager -l"; - }; - stateVersion = "24.11"; + home-manager.users.root.home = { + shellAliases = { + "systemctl" = "systemctl --no-ager -l"; + "journalctl" = "journalctl --no-pager -l"; }; + stateVersion = "24.11"; }; }