All of my computers use a 512MB EFI partition and a ext4 partition with a swapfile that’s double the RAM of my machines (with the exception of my desktop, since the ram is quite large, its swapfile is equal to that of the machine).
Home-manager is configured in standalone mode, so when NixOS is rebuilt Home-manager would then also need to be rebuilt manually with home-manager switch
.
- Download a NixOS ISO or create custom one with nix experimental features and Nvidia drivers installed by following the instructions over under the Tips file; then boot into the ISO’s live image environment
- Download the repo onto the live image copy of NixOS.
- Open the terminal and enter the repo directory.
- Run
nix-shell
ornix develop
to enter environment with all necessary packages to build the config properlynix-shell
is available on any version of nix. However, in order to usenix develop
, you must have nix v2.4+, git, and have enabled theflakes
andnix-command
experimental features. If you are using the custom ISO as stated previously, you can usenix develop
without having to do anything additional as the configs already have the needed configurations and dependencies
- Follow the instructions over in the Partitioning file!
- Run
nixos-generate-config --show-hardware-config --root /mnt
to create a base configuration file that the installer provides. - Add any of the additional kernel modules as exactly as they appear into the
hosts/HOSTNAME/hardware/hardware-configuration
file. - Change the
FLAKE
variable located underhome/USERNAME/global/default.nix
. Some dotfiles are sym-links that aren’t located on nix store and not having the repo in the location that the variable specifies will cause the links to break. This would in turn result in some apps malfunctioning or not have your settings. - Run
nixos-install --flake .#HOSTNAME --root /mnt
to install NixOS with the configuration - If you did not set a user password, make sure you use
nixos-enter
to set a password for the user! - Move repo into the folder located on /mnt that matches your
FLAKE
environment variable - Restart and the system will boot up into NixOS!
Once your system is booted, check out the Post Install file for instructions for system and application setup steps that can only be done once the system is installed and booted.