These are the configuration files for getting a NixOS system up and running my way (to be finished)
In order to automate partition setup as well, the partition-setup.sh
script is there for you. This was made only for me to use, since other people might want to set up their partitions completely differently, but, hey, it's there.
If you need to mount the partitions in a live environment post-install and you have used the partition-setup.sh
script to create your partitions, the mount-partitions.sh
script is there for you.
System update
nh os switch --update -- --impure
Garbage collection
nh clean all --keep 2 && nh clean user --keep 2
Optimise Nix store
doas nix store optimise
Manually add a file to the Nix store
nix-store --add-fixed sha256 filename
nixos-enter somehow doesn't pick up $PATH right
nixos-enter --root /mnt
export PATH=/nix/var/nix/profiles/system/sw/sbin/:/nix/var/nix/profiles/system/sw/bin/:$PATH