QuantumCoded / nixos-rice

WIP NixOS configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nixos-rice

These are the configuration files for getting a NixOS system up and running my way (to be finished)

Useful extra things

Partition setup shell script

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.

Mount partitions shell script

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.

Useful commands so I don't have to search for them later

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

About

WIP NixOS configuration


Languages

Language:Nix 94.7%Language:Shell 5.3%