feat: init more services

This commit is contained in:
notohh 2023-05-13 23:20:28 -04:00
parent 23278892c5
commit b53c9d597d
Signed by: notohh
GPG key ID: BD47506D475EE86D
6 changed files with 28 additions and 1 deletions

View file

@ -2,5 +2,7 @@
imports = [ imports = [
./traefik.nix ./traefik.nix
./homepage.nix ./homepage.nix
./searxng.nix
./hugo.nix
]; ];
} }

View file

View file

@ -2,6 +2,9 @@
virtualisation.oci-containers.containers.homepage = { virtualisation.oci-containers.containers.homepage = {
ports = ["3000:3000"]; ports = ["3000:3000"];
image = "ghcr.io/benphelps/homepage"; 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"
];
}; };
} }

10
modules/services/hugo.nix Normal file
View file

@ -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"
];
};
}

View file

@ -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";
};
};
}

View file