Description
dconf2nix converts dconf settings, such as GNOME Shell configuration, into Nix code that Home Manager can use. Home Manager's dconf.settings option expects this format, so you can dump your dconf settings, convert them and restore them with home-manager switch on the next run. The tool reads from standard input or from a file, and it accepts a custom root with the --root flag. The output covers the complete GVariant text format, with a few minor exceptions such as hexadecimal floats. Because Nix and GVariant data models differ, the generated Nix uses constructor functions where needed. Once you have the dconf.nix file, you import it through Home Manager, either as a standalone setup or through the Home Manager module for NixOS. The author reports that a configuration of about 349 lines, converted into a Nix file of around 433 lines, takes an average of 7.1 milliseconds on their machine, and the README asks readers to take that figure with a grain of salt. The repository has sections for installation, troubleshooting and development. It is open source on GitHub under the nix-community organization.…
Highlights
- Converts dconf dumps to Nix for Home Manager
- Reads from standard input or a file
- Custom root with the --root flag
- Covers the GVariant text format with minor exceptions
- Works with GNOME Shell configuration
Ratings & Reviews
No ratings yet
Be the first to rate Dconf2nix.
People also visit
Advanced Alttab Window Switcher
A highly customizable replacement for Gnome Shell's Alt-Tab window
Dconf2nix FAQ
What does dconf2nix do?
It converts dconf settings into Nix code for Home Manager's dconf.settings option.
How do I run it?
Pipe a dconf dump into dconf2nix on standard input, or pass it an input file. The README shows the commands and lists more options with --help.
Does it support GNOME Shell?
Yes. The README has a section on GNOME Shell configuration that shows how to import the result through Home Manager.
Can I use it with NixOS?
Yes. The README covers importing the output through the Home Manager module for NixOS.
Is it open source?
Yes. It is on GitHub under the nix-community organization.
What are the best Dconf2nix alternatives?
Popular alternatives to Dconf2nix include Extension Manager, Nix Software Center and Plasma Manager. See all Dconf2nix alternatives



