1.4 KiB
1.4 KiB
Installing on a new machine
- Install NixOS from an ISO via USB
- Reboot machine
- Edit
/etc/nixos/configurationand addgitto packages - Clone this repo
- Copy new
host/configuration for the new machine - Copy
/etc/nixos/hardware-configurationtohost/<host>/hardware.nix - Edit
flake.nixto point to the newhost git add .- Run
sudo nixos-rebuild switch --flake .#nixos
Building NixOS VM
nix build .#nixosConfigurations.nixosvm.config.system.build.vm
https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf
Building NixOS ISO
nix build .#nixosConfigurations.live.config.system.build.isoImage
Using Standalone Home Manager
- Install Nix via:
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
- Create
~/.config/nix/nix.conffile with the following contents to enable the use of flakes:
experimental-features = nix-command flakes
- Install
git - Clone this repo
- Edit
flake.nixvariables as needed home-manager switch --flake .
Misc
Garbage collection
nix-collect-garbage -d
Fonts
Checking installed fonts
fc-list
Debugging kitty fonts
kitty --debug-font-fallback