1
1
Fork 0
nixos/options/custom/containers/actualbudget.nix
Myned e98e4f41f3
containers: rename sevices to arion-*
Signed-off-by: Myned <dev@bjork.tech>
2024-10-08 18:23:50 -05:00

26 lines
808 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.containers.actualbudget;
in {
options.custom.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.settings.services = {
actualbudget.service = {
container_name = "actualbudget";
image = "actualbudget/actual-server:24.9.0";
ports = ["5006:5006"];
restart = "unless-stopped";
volumes = ["${config.custom.containers.directory}/actualbudget/data:/data"];
# TODO: Set up trusted proxies
};
};
};
}