diff --git a/wrapperModules/b/bottom/module.nix b/wrapperModules/b/bottom/module.nix new file mode 100644 index 0000000..8e53900 --- /dev/null +++ b/wrapperModules/b/bottom/module.nix @@ -0,0 +1,32 @@ +{ + config, + lib, + wlib, + pkgs, + ... +}: +let + tomlFmt = pkgs.formats.toml { }; +in +{ + imports = [ wlib.modules.default ]; + options = { + settings = lib.mkOption { + type = tomlFmt.type; + default = { }; + description = '' + Configuration passed to `btm` using `--config_location` flag. + + See + for the default configuration. + ''; + }; + }; + config = { + package = pkgs.bottom; + flags = { + "--config_location" = tomlFmt.generate "bottom-config.toml" config.settings; + }; + meta.maintainers = [ wlib.maintainers.rachitvrma ]; + }; +}