This reverts commit c3384bd25cd64d8d4014363d0564534138497cc5. |
||
|---|---|---|
| .vscode | ||
| hosts | ||
| modules | ||
| profiles | ||
| scripts | ||
| users/josh | ||
| .gitignore | ||
| README.md | ||
| build-iso.sh | ||
| build-vm.sh | ||
| flake.lock | ||
| flake.nix | ||
README.md
Installing on a new machine
- Install NixOS from an ISO via USB
- Reboot machine
- Edit
/etc/nixos/configuration.nixand addgitto packages - Clone this repo
- Create a new directory under
hosts/for the new machine - Copy
/etc/nixos/hardware-configuration.nixtohosts/<host>/hardware.nix - Register the host in
flake.nixviamkHost:nixosConfigurations.<host> = mkHost { host = "<host>"; }; git add .- Run
sudo nixos-rebuild switch --flake .#<host>
Building NixOS VM
nix build .#nixosConfigurations.vm.config.system.build.vm
or run ./build-vm.sh (removes ./vm.qcow2 first)
https://gist.github.com/FlakM/0535b8aa7efec56906c5ab5e32580adf
Building NixOS ISO
nix build .#nixosConfigurations.live.config.system.build.isoImage
or run ./build-iso.sh
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 .#josh
Misc
Garbage collection
nix-collect-garbage -d
Fonts
Checking installed fonts
fc-list
Debugging kitty fonts
kitty --debug-font-fallback