mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 01:34:08 -05:00
start porting services over
This commit is contained in:
parent
33d6af08af
commit
f0b3b2a4b4
2 changed files with 42 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
|||
- `darwin` - Custom modules specific to dariwn-based hosts
|
||||
- `home` - Custom modules to home-manager
|
||||
- `nixos` - Custom modules specific to nixos-based hosts
|
||||
- `services` - Definitions for hosted services
|
||||
- `overlays` - Custom modifications to upstream packages.
|
||||
- Currently not using overlays.
|
||||
- `pkgs` - Custom packages meant to be shared or upstreamed.
|
||||
|
|
|
|||
41
modules/services/actualbudget/default.nix
Normal file
41
modules/services/actualbudget/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
volumePath = "/overseer/services";
|
||||
in {
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${volumePath}/actualbudget"
|
||||
];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
virtualHosts = {
|
||||
"budget.wanderingcrow.net" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "budget.wanderingcrow.net";
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://10.88.0.12";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
"actualbudget" = {
|
||||
image = "actualbudget/actual-server:latest";
|
||||
volumes = ["${volumePath}/actualbudget:/data"];
|
||||
extraOptions = ["--ip=10.88.0.12"];
|
||||
environment = {
|
||||
ACTUAL_PORT = "80";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue