nix-config/modules/nixos/services/flood/default.nix
Bruno BELANYI a9a1028164
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: add notes for missing persistence/backup
TODO:
* Look at for more inspiration https://github.com/nix-community/impermanence/pull/108
* Do home-manager
* Common files https://github.com/nix-community/impermanence/issues/10
2024-07-02 16:36:35 +00:00

34 lines
587 B
Nix

# A nice UI for various torrent clients
{ config, lib, ... }:
let
cfg = config.my.services.flood;
in
{
options.my.services.flood = with lib; {
enable = mkEnableOption "Flood UI";
port = mkOption {
type = types.port;
default = 9092;
example = 3000;
description = "Internal port for Flood UI";
};
};
config = lib.mkIf cfg.enable {
services.flood = {
enable = true;
inherit (cfg) port;
};
my.services.nginx.virtualHosts = {
flood = {
inherit (cfg) port;
};
};
# FIXME: persistence?
};
}