Here is my entire NixOS system.
- Install NixOS conventionally with your desired partitioning.
- Clone this repo to your home directory.
- Run
~/nixos/scripts/install.sh. It'll create the hardware configuration, bind the existing partitions and install everything. - Reboot.
- Run
nh clean all -k 0to get rid of all the fluff from the old system.
There are some aliases I added to enhance my workflow:
| alias | description |
|---|---|
%rebuild |
rebuilds the system and updates configs |
%edit |
opens the system flake on an editor |
%config-reload |
updates all configs without a system update |
%list-packages |
list all installed packages |
%clear-backups |
brings up a prompt to remove the old instances of every replaced config |
%devel |
brings up a fuzzy finder to select between my projects |
%env |
opens a Nix shell with desired package(s) in PATH |
%logs |
prints out the last 10 lines of nixos/log.txt |