Skip to content

refactor(konsole): streamline the module#635

Open
bmrips wants to merge 3 commits into
nix-community:trunkfrom
bmrips:konsole-overhaul
Open

refactor(konsole): streamline the module#635
bmrips wants to merge 3 commits into
nix-community:trunkfrom
bmrips:konsole-overhaul

Conversation

@bmrips

@bmrips bmrips commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Description

This PR streamlines the Konsole module:

  • Remove profiles.*.font.name null checks since this is already caught by the option type.
  • Remove redundant lib.mkMerges.
  • Set the profiles.<name>.name option default to <name>.
  • Use the submodule to merge profiles.*.extraConfig with settings derived from profiles.*.(colorScheme|command|font|name).
  • Rename profiles.*.extraConfig to profiles.*.settings to match the typical naming of RFC42-style options.

While at it, I also did two small treewide refactorings:

  • Combine adjacent inherits.
  • Customize the attrsOf placeholder texts.

Backwards Compatibility

To the best of my knowledge, these changes are backwards-compatible with one exception.

Merging profiles.*.settings with the other profiles.* options may result into conflicting definitions if profiles.*.settings contains definitions that are derived from the other options, e.g. General.Name, which requires the user to explicitly override those. However, I personally prefer explicit overrides to implicit overrides.

Testing

I successfully build my own configuration against these changes.

@bmrips bmrips force-pushed the konsole-overhaul branch from bffdce6 to 6f8ab28 Compare July 8, 2026 20:10
bmrips added 3 commits July 9, 2026 08:21
- Remove `profiles.*.font.name` null checks since this is already caught
  by the option type.
- Remove redundant `lib.mkMerge`s.
- Set the `profiles.<name>.name` option default to `<name>`.
- Use the submodule to merge `profiles.*.extraConfig` with settings
  derived from `profiles.*.(colorScheme|command|font|name)`.
- Rename `profiles.*.extraConfig` to `profiles.*.settings` to match the
  typical naming of RFC42-style options.
@bmrips bmrips force-pushed the konsole-overhaul branch from 6f8ab28 to 7474e04 Compare July 9, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant