feat: init more services
This commit is contained in:
parent
23278892c5
commit
b53c9d597d
6 changed files with 28 additions and 1 deletions
|
@ -2,5 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./traefik.nix
|
./traefik.nix
|
||||||
./homepage.nix
|
./homepage.nix
|
||||||
|
./searxng.nix
|
||||||
|
./hugo.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
0
modules/services/foundry.nix
Normal file
0
modules/services/foundry.nix
Normal 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
10
modules/services/hugo.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
12
modules/services/searxng.nix
Normal file
12
modules/services/searxng.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
0
modules/services/stash.nix
Normal file
0
modules/services/stash.nix
Normal file
Loading…
Reference in a new issue