feat(nix): add rrv.sh module and enable for server
This commit is contained in:
parent
c026887236
commit
2710c71820
4 changed files with 51 additions and 0 deletions
23
nix/modules/server/web-apps/rrv-sh.nix
Normal file
23
nix/modules/server/web-apps/rrv-sh.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue