From b53c9d597d3a8feb702ea73acbe0281421b68c98 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 13 May 2023 23:20:28 -0400 Subject: [PATCH] feat: init more services --- modules/services/default.nix | 2 ++ modules/services/foundry.nix | 0 modules/services/homepage.nix | 5 ++++- modules/services/hugo.nix | 10 ++++++++++ modules/services/searxng.nix | 12 ++++++++++++ modules/services/stash.nix | 0 6 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 modules/services/foundry.nix create mode 100644 modules/services/hugo.nix create mode 100644 modules/services/searxng.nix create mode 100644 modules/services/stash.nix diff --git a/modules/services/default.nix b/modules/services/default.nix index bddacc8..c4605ac 100644 --- a/modules/services/default.nix +++ b/modules/services/default.nix @@ -2,5 +2,7 @@ imports = [ ./traefik.nix ./homepage.nix + ./searxng.nix + ./hugo.nix ]; } diff --git a/modules/services/foundry.nix b/modules/services/foundry.nix new file mode 100644 index 0000000..e69de29 diff --git a/modules/services/homepage.nix b/modules/services/homepage.nix index da9cb7f..ea065f5 100644 --- a/modules/services/homepage.nix +++ b/modules/services/homepage.nix @@ -2,6 +2,9 @@ virtualisation.oci-containers.containers.homepage = { ports = ["3000:3000"]; image = "ghcr.io/benphelps/homepage"; - volumes = ["/home/notoh/docker/homepage:/app/config" "/var/run/docker.sock:/var/run/docker.sock:ro"]; + volumes = [ + "/home/notoh/docker/homepage:/app/config" + "/var/run/docker.sock:/var/run/docker.sock:ro" + ]; }; } diff --git a/modules/services/hugo.nix b/modules/services/hugo.nix new file mode 100644 index 0000000..fa60e40 --- /dev/null +++ b/modules/services/hugo.nix @@ -0,0 +1,10 @@ +{pkgs, ...}: { + environment.systemPackages = with pkgs; [hugo]; + virtualisation.oci-containers.containers.hugo = { + image = "klakegg/hugo:0.101.0"; + cmd = ["server" "sh"]; + volumes = [ + "/home/notoh/docker/hugo:/src" + ]; + }; +} diff --git a/modules/services/searxng.nix b/modules/services/searxng.nix new file mode 100644 index 0000000..d71cf08 --- /dev/null +++ b/modules/services/searxng.nix @@ -0,0 +1,12 @@ +{...}: { + virtualisation.oci-containers.containers.searxng = { + image = "searxng/searxng"; + ports = ["8085:8080"]; + volumes = [ + "/home/notoh/docker/searxng:/etc/searxng:rw" + ]; + environment = { + INSTANCE_NAME = "test_instance"; + }; + }; +} diff --git a/modules/services/stash.nix b/modules/services/stash.nix new file mode 100644 index 0000000..e69de29