From 1761c29ad5797f0684d666658be46ea2c44e438a Mon Sep 17 00:00:00 2001 From: kity Date: Mon, 28 Oct 2024 10:59:08 +0100 Subject: [PATCH 1/2] added new feature, planning for firefish migration --- .../server/containers/pihole-exporter.nix | 21 ------------------- features/server/services/akkoma.nix | 17 +++++++++++++++ 2 files changed, 17 insertions(+), 21 deletions(-) delete mode 100644 features/server/containers/pihole-exporter.nix create mode 100644 features/server/services/akkoma.nix diff --git a/features/server/containers/pihole-exporter.nix b/features/server/containers/pihole-exporter.nix deleted file mode 100644 index 5dcfde6..0000000 --- a/features/server/containers/pihole-exporter.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, ... }: - -{ - - sops.secrets.piholeHostname = {}; - sops.secrets.piholePassword = {}; - - virtualisation.oci-containers = { - backend = "docker"; - containers = { - pihole-exporter = { - image = "ekofr/pihole-exporter:latest"; - ports = [ "9617:9617" ]; - environment = { - "PIHOLE_HOSTNAME" = config.sops.secrets.piholeHostname; - "PIHOLE_PASSWORD" = config.sops.secrets.piholePassword; - }; - }; - }; - }; -} diff --git a/features/server/services/akkoma.nix b/features/server/services/akkoma.nix new file mode 100644 index 0000000..be07131 --- /dev/null +++ b/features/server/services/akkoma.nix @@ -0,0 +1,17 @@ +{ + services.akkoma.enable = true; + services.akkoma.config = { + ":pleroma" = { + ":instance" = { + name = "e^akkoma + 1 = 0"; + description = "the cuntiest french akkoma instance<3. centres d'intérêts : la mode, les sciences, la musique. mais ça ne vous empêche pas de parler de n'importe quoi! join us !"; + email = "admin@babychou.me"; + registration_open = false; + }; + + "Pleroma.Web.Endpoint" = { + url.host = "fish.hypervirtual.word"; + }; + }; + }; +} \ No newline at end of file From 63011dfd29442bcab58fc8d49c55203f7deab455 Mon Sep 17 00:00:00 2001 From: kity Date: Mon, 28 Oct 2024 11:06:53 +0100 Subject: [PATCH 2/2] searx suks --- features/server/searx.nix | 18 ------------------ features/server/services/default.nix | 1 + 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 features/server/searx.nix diff --git a/features/server/searx.nix b/features/server/searx.nix deleted file mode 100644 index a39faa2..0000000 --- a/features/server/searx.nix +++ /dev/null @@ -1,18 +0,0 @@ -{ config, ... }: -{ - sops.secrets."searx" = { - sopsFile = ../secrets/searx.env; - format = "dotenv"; - }; - - services.searx = { - enable = true; - redisCreateLocally = true; - settings = { - server.port = 8080; - server.secret_key = builtins.toJSON config.sops.secrets."searx"; - - server.bind_address = "0.0.0.0"; - }; - }; -} diff --git a/features/server/services/default.nix b/features/server/services/default.nix index 9c31a01..f9e118f 100644 --- a/features/server/services/default.nix +++ b/features/server/services/default.nix @@ -1,6 +1,7 @@ { config, ... }: { imports = [ + ./akkoma.nix ./homelab-dashboard.nix ./nextcloud.nix # ./photoprism.nix