2023-07-16 16:43:13 +03:00
# NixOS Configuration files.
2023-07-30 12:29:22 +03:00
## Deploying
2023-07-30 17:51:12 +03:00
Setup disks, mount root to `/mnt` and `/boot` to `/mnt/boot` and run something like this
2023-07-30 12:44:50 +03:00
2023-07-30 12:29:22 +03:00
```shell
2023-07-30 12:44:50 +03:00
git clone https://github.com/ivabus/nixos /mnt/etc/nixos
nixos-generate-config --show-hardware-config --root /mnt > /mnt/etc/nixos/machines/host/hardware.nix
nixos-install --flake path:.#host
2023-07-30 12:29:22 +03:00
```
## Rebuilding
```shell
nixos-rebuild switch --flake path:/etc/nixos
```
Apple Silicon hosts require additional `--impure` flag for firmware installation. (Firmware should be placed in /etc/nixos/asahi/firmware (ignored by git)).
### Hosts configured
- stella (Random Ryzen 3 3250U laptop)
- vetus (iMac 27" 2017)
- celerrime (MacBook Air M2)
2023-08-13 17:59:59 +03:00
## Shells
I "made" some shell in [shells/ ](./shells ).
2023-07-30 15:21:12 +03:00
## Dotfiles (from `ivabus/dotfiles`)
2023-07-16 16:43:13 +03:00
2023-08-13 17:59:59 +03:00
I install my dotfiles with prepared script
2023-07-30 15:21:12 +03:00
```shell
curl https://iva.bz/nix | sh
```
2023-08-27 18:24:51 +03:00
## Copyright
This configuration is [MIT licensed ](./LICENSE ).
I used [delroth/infra.delroth.net ](https://github.com/delroth/infra.delroth.net ) (MIT license) as a reference for my configuration.