Jump to content

NixOS configuration editors: Difference between revisions

From Official NixOS Wiki
imported>Milahu
update GitHub stars
Bittner (talk | contribs)
Graphical editors: Add nix-software-center
 
(One intermediate revision by one other user not shown)
Line 32: Line 32:
* python + qt5 desktop program
* python + qt5 desktop program
* 580+ GitHub stars
* 580+ GitHub stars
=== nix-software-center by snowfallorg ===
* https://github.com/snowfallorg/nix-software-center
* rust + libadwaita + gtk4 + relm4
* 747 GitHub stars


=== nixos-manager by pmiddend ===
=== nixos-manager by pmiddend ===
Line 81: Line 87:
* [[Nixos-rebuild#Specifying a different configuration location]]
* [[Nixos-rebuild#Specifying a different configuration location]]
* https://discourse.nixos.org/t/use-vscode-editor-configuration-nix-cant-save/14119
* https://discourse.nixos.org/t/use-vscode-editor-configuration-nix-cant-save/14119
[[Category:Applications]]

Latest revision as of 21:03, 16 November 2025

Creating graphical editors for NixOS configurations is hard because of the amount and complexity of options and the resulting possibilities.

Text editors

To improve the editing experience of configuration.nix, it is recommend to use a text editor with syntax highlighting and language server (autocompletion, formatting, refactoring).

See also: Editor Modes for Nix Files

Editing as normal user

The configuration files in /etc/nixos/ are owned by root, so for every "save" operation, the editor will ask for the sudo password. To avoid this, we can move the config files to a user's home folder:

mkdir ~/etc
sudo mv /etc/nixos ~/etc/
sudo chown -R $(id -un):users ~/etc/nixos
sudo ln -s ~/etc/nixos /etc/

Now you can run codium /etc/nixos to edit the config with VSCodium, and sudo nixos-rebuild switch to build the config.

It's also a good idea to track the config files with git, and to make backups.

Graphical editors

It is also possible to use a graphical config manager, which can't express all features of NixOS, but is simple to use.

nix-gui by lapp0

nix-software-center by snowfallorg

nixos-manager by pmiddend

nixos-conf-editor by vlinkz

nixui by matejc

Nixos-Gui by Celestialme

Web-based editors

mynixos.com

https://mynixos.com/

"create and share software configurations using the NixOS ecosystem"

See also