sys-config/containers/homarr.nix
2025-03-21 18:12:20 +01:00

32 lines
771 B
Nix

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