To run the config, download and install Nix and then run for your system:
To install NixOs should be done using the official installer: https://nixos.org/download/
- X11 + i3wm
sudo nixos-rebuild switch --flake "./nix-config#NixosX11"
- Wayland + Sway
sudo nixos-rebuild switch --flake "./nix-config#NixosWayland"
WSL should be installed, and NixOs should be installed from here: https://github.com/nix-community/NixOS-WSL
- Running the flake
sudo nixos-rebuild switch --flake "./nix-config#WSL" --impure
Here is recommended to use the installer from DeterminateSystems, can be found here: https://github.com/DeterminateSystems/nix-installer?tab=readme-ov-file#determinate-nix-installer
This is a especial case, the nix flake isn't able to install homebrew
so it's necesary to run two commands.
- Installing Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Running the flake
nix run nix-darwin -- switch --flake ~/Documents/dotfiles_nixos
The mouse is inverted, it's necessary to change 'Natural scrolling' to false. (and probably to increase the tracking speed).
There is more config, like Chrome windows that require modified shortcuts (still don't know if those are available here).