containers: add homarr
This commit is contained in:
parent
009fa6e39f
commit
389898403a
3 changed files with 35 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
./prowlarr.nix
|
||||
./lidarr.nix
|
||||
./wg-easy.nix
|
||||
./homarr.nix
|
||||
];
|
||||
|
||||
settings.containers = {
|
||||
|
|
@ -14,6 +15,7 @@
|
|||
lidarr.enable = lib.mkDefault false;
|
||||
prowlarr.enable = lib.mkDefault false;
|
||||
wg-easy.enable = lib.mkDefault false;
|
||||
homarr.enable = lib.mkDefault false;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
32
containers/homarr.nix
Normal file
32
containers/homarr.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.settings.containers.homarr = {
|
||||
enable = lib.mkEnableOption "enable homarr arion container";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.containers.homarr.enable {
|
||||
virtualisation.arion.projects.homarr = {
|
||||
settings = {
|
||||
project.name = "homarr";
|
||||
services.homarr = {
|
||||
service.useHostStore = true;
|
||||
service.image = "ghcr.io/homarr-labs/homarr:latest";
|
||||
service.ports = [
|
||||
"7575:7575"
|
||||
];
|
||||
service.volumes = [
|
||||
"/config/homarr:/appdata"
|
||||
];
|
||||
service.environment = {
|
||||
SECRET_ENCRYPTION_KEY = "01661ad7a4b6a838eb49d4d5a5a252499f8602c2d828953045947ee29a1adaf4";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue