diff --git a/features/server/containers/pihole-exporter.nix b/features/server/containers/pihole-exporter.nix new file mode 100644 index 0000000..5dcfde6 --- /dev/null +++ b/features/server/containers/pihole-exporter.nix @@ -0,0 +1,21 @@ +{ 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/searx.nix b/features/server/searx.nix new file mode 100644 index 0000000..a39faa2 --- /dev/null +++ b/features/server/searx.nix @@ -0,0 +1,18 @@ +{ 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/akkoma.nix b/features/server/services/akkoma.nix deleted file mode 100644 index be07131..0000000 --- a/features/server/services/akkoma.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - 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 diff --git a/features/server/services/default.nix b/features/server/services/default.nix index f9e118f..9c31a01 100644 --- a/features/server/services/default.nix +++ b/features/server/services/default.nix @@ -1,7 +1,6 @@ { config, ... }: { imports = [ - ./akkoma.nix ./homelab-dashboard.nix ./nextcloud.nix # ./photoprism.nix