Last active
January 21, 2025 12:31
-
-
Save ShalokShalom/aa49372b191833b7c5e2cea542abffae to your computer and use it in GitHub Desktop.
Quick installation of Lix + Homemanager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Lix
curl -sSf -L https://install.lix.systems/lix | sh -s -- install
Say no to Flakes and start a new shell.
Find the package you want to install: https://search.nixos.org/packages
Replace everything from line 18 and below in the text file that is shown to you at the end of the last output.
It is
/$HOME/.config/home-manager/home.nix
for me 😃Be sure to put the name of the application within the brackets, like so:
Save the file and then run
home-manager switch
to complete the process.Further documentation: https://nixos-and-flakes.thiscute.world/nixos-with-flakes/start-using-home-manager
GPU-driven apps, who make use of Vulkan and OpenGL for GPU driven computation, do need additional configuration:
https://nix-community.github.io/home-manager/index.xhtml#sec-usage-gpu-non-nixos
It is possible to configure and maintain a lot more, specifically the editor, and also to create a self-contained development container. Overall, this setup here is a nice base for practical development.
To update the packages, run
nix-channel --update
and thenhome-manager switch