1
1
Fork 0
nixos/options/custom/settings/containers/actualbudget.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

34 lines
915 B
Nix

{
config,
lib,
...
}:
with lib;
let
cfg = config.custom.settings.containers.actualbudget;
in
{
options.custom.settings.containers.actualbudget.enable = mkOption { default = false; };
config = mkIf cfg.enable {
#?? arion-actualbudget pull
environment.shellAliases.arion-actualbudget = "sudo arion --prebuilt-file ${config.virtualisation.arion.projects.actualbudget.settings.out.dockerComposeYaml}";
virtualisation.arion.projects.actualbudget = {
serviceName = "actualbudget";
settings.services = {
actualbudget.service = {
container_name = "actualbudget";
image = "actualbudget/actual-server:24.9.0";
ports = [ "5006:5006" ];
restart = "unless-stopped";
volumes = [ "${config.custom.settings.containers.directory}/actualbudget/data:/data" ];
# TODO: Set up trusted proxies
};
};
};
};
}