mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue