NixOS
Install Gnoblin on NixOS with its flake. See platform support for the supported releases and architectures.
On this page
Install
-
Add Gnoblin to the
inputsof yourflake.nix:Nixinputs.gnoblin.url = "github:kierandrewett/gnoblin";To stay on one release, add a release tag from the Gnoblin releases to the address.
-
Add the module to your host's
nixosSystemdefinition, whereinputsis the set of flake inputs:Nixmodules = [ inputs.gnoblin.nixosModules.default ./configuration.nix { programs.gnoblin.enable = true; } ]; -
Keep your display manager. If you have none, enable GDM in
configuration.nix:Nixservices.displayManager.gdm.enable = true; -
Rebuild from your system configuration directory:
Shellsudo nixos-rebuild switch --flake .
Next steps
Install a desktop shell and log in.
Update
Update the flake input, then rebuild:
Shell
nix flake update gnoblin
sudo nixos-rebuild switch --flake .Log out and back in to use the new version.
Remove
Remove the Gnoblin module and the programs.gnoblin.enable line, then rebuild. Your shell and your configuration
stay.
See troubleshooting if the session does not start.