31 lines
1.0 KiB
Markdown
31 lines
1.0 KiB
Markdown
# Installing on a new machine
|
|
|
|
1) Install [NixOS](https://nixos.org/) from an ISO via USB
|
|
2) Reboot machine
|
|
3) Edit /etc/nixos/configuration and add `git` to packages
|
|
4) Clone this repo
|
|
5) Copy new `host/` configuration for the new machine
|
|
6) Copy /etc/nixos/hardware-configuration to `host/<host>/hardware.nix`
|
|
7) Edit `flake.nix` to point to the new `host`
|
|
8) `git add .`
|
|
9) 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`
|
|
|
|
# Misc
|
|
## Garbage collection
|
|
`nix-collect-garbage -d`
|
|
## Fonts
|
|
### Checking installed fonts
|
|
`fc-list`
|
|
### Debugging kitty fonts
|
|
`kitty --debug-font-fallback`
|
|
|
|
## SDDM virtual keyboard ??ZZ
|
|
- https://unix.stackexchange.com/questions/43976/list-all-valid-kbd-layouts-variants-and-toggle-options-to-use-with-setxkbmap
|
|
- https://github.com/NixOS/nixpkgs/issues/254523 |