Skip to content

bug: broot config unable to override imports #4603

Description

@cgahr

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I used the following config for broot:

programs.broot.settings = {
  imports = [ "verbs.hjson" ];
}

The generated config is

content_search_max_file_size = "10MB"
imports = [
  "verbs.hjson", 
  {file = "skins/dark-blue.hjson", luma = ["dark", "unknown"]}, 
  {file = "skins/white.hjson", luma = "light"}, 
  "verbs.hjson"
]
modal = false
show_selection_mark = true
verbs = []

[skin]

[special_paths]
"/media" = "no-enter"

The problem is, that it is impossible to override the default value for imports. In general, a user might want to set

imports = []

to remove all imports. Afaik, this is not possible right now.

Also, and this is minor, some of the existing default options are not documented:

  • content_search_max_file_size
  • show_selection_mark
  • special_paths

Maintainer CC

@aheaume @dermetfan

System information

- system: `"x86_64-linux"`
- host os: `Linux 6.2.0-35-generic, Ubuntu, 22.04.3 LTS (Jammy Jellyfish), nobuild`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.16.1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Metadata

Metadata

Labels

bugtriageIssues or feature request that have not been triaged yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions