feat: added actual

This commit is contained in:
Nick 2025-10-09 01:45:40 -05:00
parent 61d57e8563
commit 6bcec4faf7
4 changed files with 66 additions and 2 deletions

View file

@ -0,0 +1,24 @@
{ flake, ... }:
let
inherit (flake.config.services.instances) actual web;
service = actual;
localhost = web.ip.address1;
in
{
services = {
actual = {
enable = true;
settings = {
port = service.ports.port0;
hostname = localhost;
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}

View file

@ -49,10 +49,12 @@ in
{
"/var/lib/${service.name}" = {
device = service.paths.path0;
} // settings;
}
// settings;
"/var/cache/${service.name}" = {
device = "${service.paths.path1}";
} // settings;
}
// settings;
};
systemd.tmpfiles.rules = [