noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

NixOS setting "enabled" does not follow standard

Open JoseffRibble opened this issue 1 year ago • 2 comments

Description

When setting Noctalia configs declaratively with the home manager module, values use enabled = true and not the more standard enable = true. This caused some minor confusion as I was configuring Noctalia.

Steps to Reproduce

For example: programs.noctalia-shell.settings.dock.enable = false; won't disable the dock, it must be *.enabled instead.

Expected Behavior

Because home-manager just creates the json as provided, there is no warning for an invalid value and enable = true will simply be ignored.

Screenshots

N/A

Environment

  • Distro: NixOS
  • Compositor: N/A
  • Noctalia-shell Version: 3.3.0

JoseffRibble avatar Nov 24 '25 16:11 JoseffRibble

The project as evolved a lot since v1 and we have a lot of legacy settings, some naming could clearly be improved but that would mean doing a large upgrade pass to avoid breaking everyone's config. I'm not sure this will ever happen...

For most users it's a non issue as they use the UI to configure noctalia.

For nixOS users you should refer to Assets/settings-default.json to ensure you have the proper setting key.

ItsLemmy avatar Nov 24 '25 19:11 ItsLemmy

I use NixOS, but I don't think that's the problem. If you've used NixVim, you might see a lot of "enabled" keys because of nvim API / plugins

fmway avatar Nov 25 '25 12:11 fmway