Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering #110

Open
1 task done
yajo opened this issue May 28, 2024 · 2 comments
Open
1 task done

Filtering #110

yajo opened this issue May 28, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@yajo
Copy link

yajo commented May 28, 2024

The Problem

I want to keep some docnf settings dynamic, so I can change them freely with direct OS usage.

For example, some apps store the last window position. Dumping that into a home-manager configuration makes no sense.

I still want other settings stored into home-manager.

The Solution

I'd love to have some filters in dream2nix that allow me to include only certain paths, or exclude certain others. Some examples:

dconf dump / | dconf2nix --include /org/gnome/clocks --exclude /org/gnome/clocks/state

Alternatives

https://gitlab.com/yajoman/minfra/-/commit/415fd867176cdc9a9353538212567918ff9deb35

Additional context

No response

Happens in the latest version

  • Yes, this feature is still missing.
@yajo yajo added the enhancement New feature or request label May 28, 2024
@jtojnar jtojnar added help wanted Extra attention is needed good first issue Good for newcomers labels May 28, 2024
@jtojnar
Copy link
Contributor

jtojnar commented May 28, 2024

Not sure we want to add more features that are not directly related to conversion. This feels like something an external tool could easily handle. On the other hand, this is something that could be common use case so making it convenient would be good.

Not exactly the same but someone used crudini:

dconf dump / | crudini --del - org/gnome/clocks/state/window

initool works for removal too:

dconf dump / | initool delete - org/gnome/clocks/state/window

Neither of the tools is very ergonomic, though.

@jtojnar
Copy link
Contributor

jtojnar commented May 28, 2024

I will accept pull requests for this but will not implement it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants