Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m0nsterrr/nixos-home

My NixOS home configuration
https://github.com/m0nsterrr/nixos-home

Last synced: about 2 months ago
JSON representation

My NixOS home configuration

Awesome Lists containing this project

README

        

# Install

1. Flash NixOS ISO Image to an USB stick
2. Boot into it
3. Setup wifi (if needed)
1. Start wpa_supplicant > `systemctl start wpa_supplicant`
2. Enable a wireless network > `wpa_cli`
```
add_network 0
set_network 0 ssid "SSID"
set_netwwork 0 psk "PSK"
set_network 0 key_mgmt WPA-PSK
enable_network 0
```

4. Partition the system

```bash
sudo nix --experimental-features 'nix-command flakes' run github:nix-community/disko -- --mode disko --flake github:m0nsterrr/nixos-home#
```

5. Generate a hardware-configuration.nix

```bash
sudo nixos-generate-config --root /mnt
```

6. Build the system

```bash
sudo nixos-install
```

7. Reboot (be sure to turn off secureboot as it's not configured yet but in setup mode to be able to enroll key)

8. Login with the root account and fetch the flake template

```bash
nix --experimental-features 'nix-command flakes' flake new -t github:m0nsterrr/nixos-home ./nixos-home && cd nixos-home
```

9. Follow [Lanzaboot quickstart](https://github.com/nix-community/lanzaboote/blob/master/docs/QUICK_START.md)
If sbctl is not available in the current context you can do `nix-shell -p sbctl --run "sbctl create-keys"`

10. Update nixos config as needed

```bash
nixos-rebuild switch --flake '.#'
```

11. Reboot, login with `lortega` user with password `temp123` and don't forget to change it !

12. GG 🥳

# Update
If you need to update the configuration at anytime.

```bash
sudo nixos-rebuild switch --flake github:m0nsterrr/nixos-home#
```