diff options
Diffstat (limited to 'nixos/hosts/bin')
| -rw-r--r-- | nixos/hosts/bin/configuration.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/hosts/bin/configuration.nix b/nixos/hosts/bin/configuration.nix index 844b989..2042eb0 100644 --- a/nixos/hosts/bin/configuration.nix +++ b/nixos/hosts/bin/configuration.nix @@ -29,7 +29,7 @@ networking.firewall = { enable = true; - allowedTCPPorts = [ 25565 ]; + allowedTCPPorts = [ 25565 8090 ]; allowedUDPPorts = [ 51820 ]; trustedInterfaces = [ "wg0" ]; }; @@ -113,6 +113,15 @@ }; }; + systemd.services.pocketbase = { + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + serviceConfig = { + ExecStart = "${pkgs.pocketbase}/bin/pocketbase serve --http=0.0.0.0:8090 --dir=/var/lib/pocketbase --publicDir=/var/lib/pocketbase/pb_public"; + Restart = "no"; + }; + }; + documentation.enable = false; documentation.man.enable = false; |
