Skip to content

Sly-Harvey/NixOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


My NixOS System

Screenshot Screenshot

More Previews

Screenshot Screenshot Screenshot

Installation

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 here.
The minimal ISO is recommended, but you can use any.

git clone https://github.com/Sly-Harvey/NixOS.git ~/NixOS
cd ~/NixOS
./install.sh

Rebuilding

There are 4 ways to rebuild.

  1. Press Super + U.
  2. Run rebuild in the terminal
  3. Execute the install.sh script again.
  4. 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

Credits/Inspiration

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
Star History Star History Chart