{ config, inputs, lib, ... }: with lib; let cfg = config.nixfiles.modules.murmur; in { options.nixfiles.modules.murmur.enable = mkEnableOption "Murmur"; config = mkIf cfg.enable { ark.directories = [ "/var/lib/murmur" ]; secrets.murmur-environment = { file = "${inputs.self}/secrets/murmur-environment"; owner = "murmur"; group = "murmur"; }; services.murmur = { enable = true; openFirewall = true; logDays = -1; registerName = mkDefault my.domain.shire; registerHostname = mkDefault my.domain.shire; bandwidth = 256000; password = "$MURMUR_PASSWORD"; environmentFile = config.secrets."murmur-environment".path; }; }; }