mirror of
https://codeberg.org/muon/home.git
synced 2026-03-09 03:53:11 +00:00
25 lines
404 B
Nix
25 lines
404 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.mods.server.murmur;
|
|
in
|
|
with lib; {
|
|
options.mods.server = {
|
|
murmur = {
|
|
enable = mkEnableOption {
|
|
default = false;
|
|
description = "enables murmur server";
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.murmur = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
}
|