feat(nix): add rrv.sh module and enable for server

This commit is contained in:
Mohammad Rafiq 2025-07-09 03:50:34 +08:00
parent c026887236
commit 2710c71820
No known key found for this signature in database
4 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ config, inputs, ... }:
let
inherit (config.flake.lib.services) mkWebApp;
in
{
flake.modules.nixos.default =
{ config, ... }:
let
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;
};
}
// {
imports = [ inputs.rrv-sh.nixosModules.default ];
};
}