2024-08-02 14:09:42 +02:00
# NixOS Config
2024-08-02 11:12:36 +02:00
IT in a box!
2024-08-02 14:09:42 +02:00
## Bootstrapping from a fresh NixOS installation
1. Install NixOS
2. Clone this repo:
```
2024-09-02 14:43:17 +02:00
nix-shell -p git --command 'git clone https://patagia.dev/dln/nixos-config.git'
2024-08-02 14:09:42 +02:00
```
3. Ensure host configuration exists at `./nixos-config/hosts/${HOSTNAME}` and contains at minimum the hardware configuration. The NixOS installer will write this out to `/etc/nixos/hardware-configuration.nix` .
4. Apply configuration:
```
sudo nixos-rebuild boot --flake ./nixos-config#${HOSTNAME}
```
## Use
1. Clone this repo somewhere convenient, like `~/src/shelman/nixos-config`
2. Apply configuration: `just switch`
## Update
Update nixpkgs and switch: `just update`
# Home Manager
`just home-switch`