Something went wrong. Try again.
lol
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ lib, pkgs, config, ...}:
let cfg = config.programs.nvrs; settingsFormat = pkgs.formats.toml { };in{ meta.maintainers = with lib.maintainers; [ koi ];
options.programs.nvrs = { enable = lib.mkEnableOption "nvrs";
package = lib.mkPackageOption pkgs "nvrs" { };
settings = lib.mkOption { type = lib.types.submodule { freeformType = settingsFormat.type; };
default = { }; description = '' Configuration written to {file}`$XDG_CONFIG_HOME/nvrs/config.toml`
See <https://nvrs.adamperkowski.dev/configuration.html> for details. ''; }; };
config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package ];
environment.etc = { "nvrs/nvrs.toml" = lib.mkIf (cfg.settings != { }) { source = settingsFormat.generate "nvrs-config.toml" cfg.settings; }; }; };}