Add homepage service
This commit is contained in:
25
ServeNix/services/homepage.nix
Normal file
25
ServeNix/services/homepage.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{config, lib, pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers.homepage = {
|
||||||
|
image = "ghcr.io/benphelps/homepage:latest";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"3000:3000"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"homepage_config:/app/config"
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {};
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
# "--restart=always" # Conflicts with NixOS' default of using --rm
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user