refactor(rrv.sh): change rrv.sh to use service module

This commit is contained in:
Mohammad Rafiq 2025-06-28 15:54:10 +08:00
parent 7c633c124f
commit 92971a42a7
No known key found for this signature in database
4 changed files with 25 additions and 28 deletions

View file

@ -0,0 +1,16 @@
{ config, lib, ... }:
let
inherit (lib.pantheon.modules) mkWebApp;
cfg = config.server.web-apps.rrv-sh;
in
mkWebApp {
inherit config;
name = "rrv-sh";
defaultPort = 2309;
extraConfig = {
services.rrv-sh = {
enable = true;
inherit (cfg) port;
};
};
}