refactor containers
This commit is contained in:
parent
8a999ac546
commit
a48829bbe6
4 changed files with 40 additions and 27 deletions
32
nixos/viridian/containers/dashboard.nix
Normal file
32
nixos/viridian/containers/dashboard.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
dashboard = {
|
||||
autoStart = true;
|
||||
image = "ghcr.io/ajnart/homarr:latest";
|
||||
ports = [
|
||||
"7575:7575/tcp" # WebUI
|
||||
];
|
||||
volumes = [
|
||||
# Container data
|
||||
"/var/lib/homarr/configs:/app/data/configs:rw"
|
||||
"/var/lib/homarr/icons:/app/public/icons:rw"
|
||||
"/var/lib/homarr/data:/data:rw"
|
||||
# Docker Integration
|
||||
"/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=host"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.persistence."/persist" = {
|
||||
directories = [
|
||||
"/var/lib/homarr/configs"
|
||||
"/var/lib/homarr/icons"
|
||||
"/var/lib/homarr/data"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue