Configuration with flakes and dev shells.
- Install NixOS with defaults, allow unfree software, create user
- Add git, vi, alacritty and rebuild
- Create the
dotfiles
directory and clone the repository. - Copy the configuration.nix to
/etc/nixos
, adjust user name and rebuild - Log out and in
- Switch to
dotfiles
, copy the hardware configuration from/etc/nixos
and rebuild withsudo nixos-rebuild switch --flake .
- Add home-manager channels with
$ nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
$ nix-channel --update
- Add libraries for nixGL
$ nix-channel --add https://github.com/nix-community/nixGL/archive/main.tar.gz nixgl && nix-channel --update
$ nix-env -iA nixgl.auto.nixGLDefault # or replace `nixGLDefault` with your desired wrapper
- Log out and in
- Run
nix-shell '<home-manager>' -A install
- Log out and in
- In
dotfiles
runhome-manager switch --flake .
- Log out an in once more
- The
hardware-configuration.nix
should not be used. NixOS is tightly integrated with git, and adding this file to.gitignore
caused problems. As per the instructions, use the file generated by the install process. - To launch a windows VM use
quickget windows 11
followed byquickemu --vm windows-11.conf
Please let me know if something doesn't work.
Python flake source (Thank you)