diff --git a/hosts/hub/apps/gts.nix b/hosts/hub/apps/gts.nix new file mode 100644 index 0000000..713b1cb --- /dev/null +++ b/hosts/hub/apps/gts.nix @@ -0,0 +1,24 @@ +{ 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 deleted file mode 100644 index 8bf4170..0000000 --- a/hosts/hub/apps/karakeep.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ 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 new file mode 100644 index 0000000..ba55ffd --- /dev/null +++ b/hosts/hub/apps/peertube.nix @@ -0,0 +1,21 @@ +{ 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 5efc676..693c548 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -18,7 +18,6 @@ ../../roles/lldap.nix ../../roles/authelia.nix ../../roles/podman.nix - ../../roles/minio.nix ../../roles/caddy.nix ../../roles/vscode-remote.nix ../../roles/postgres.nix @@ -28,6 +27,8 @@ ./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 94cda20..6aa7785 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -37,4 +37,5 @@ in hub nolan ]; + "thewordnerd_peertube.age".publicKeys = [ hub ]; } diff --git a/secrets/thewordnerd_peertube.age b/secrets/thewordnerd_peertube.age new file mode 100644 index 0000000..2e69507 --- /dev/null +++ b/secrets/thewordnerd_peertube.age @@ -0,0 +1,5 @@ +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 ab329e8..bf78610 100644 --- a/users/root.nix +++ b/users/root.nix @@ -10,11 +10,14 @@ programs.fish.enable = true; - home-manager.users.root.home = { - shellAliases = { - "systemctl" = "systemctl --no-ager -l"; - "journalctl" = "journalctl --no-pager -l"; + home-manager.users.root = { + programs.fish.enable = true; + home = { + shellAliases = { + "systemctl" = "systemctl --no-pager -l"; + "journalctl" = "journalctl --no-pager -l"; + }; + stateVersion = "24.11"; }; - stateVersion = "24.11"; }; }