Note
You should review the configuration variables in `flake.nix` before installing.
Also, check the imports at the top of `hosts/Default/configuration.nix`
You can use the install.sh
script while booted into a system or in the live installer.
If you prefer the latter, you can obtain an ISO from https://nixos.org/download.
The minimal ISO is recommended, but you can use any.
git clone https://github.com/Sly-Harvey/NixOS.git ~/NixOS
cd ~/NixOS
./install.sh
There are 4 ways to rebuild.
- Press Super + U.
- Run
rebuild
in the terminal - Execute the
install.sh
script again. - Run
sudo nixos-rebuild switch --flake ~/NixOS#Default
if you installed from the live iso then use /etc/nixos#Default
For a list of keybinds press Super + ? or Super + Ctrl + K
How to Use the Development Shells
- To initialise a new project from a template:
nix flake init -t ~/NixOS#NAME
- Alternatively, use the
new
keyword to create a new directory:
nix flake new -t ~/NixOS#NAME PROJECT_NAME
Replace NAME
with any template defined in dev-shells/default.nix
.
These commands will generate a flake.nix and flake.lock file in your project directory.
To enter the development shell:
- Use direnv if configured, or navigate to the project directory and run:
nix develop
Credit | Reason |
---|---|
Hyprland-Dots | Script and Waybar templates |
HyDE | Some more useful scripts |
rofi | Rofi launcher templates |
dev-templates | Development templates |
Vimjoyer | Short, simple, concise guides and info |