mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 21:42:16 -06:00
feat: added actual
This commit is contained in:
parent
61d57e8563
commit
6bcec4faf7
4 changed files with 66 additions and 2 deletions
24
modules/nixos/services/actual/default.nix
Normal file
24
modules/nixos/services/actual/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue