2023-09-18 17:14:44 +02:00
|
|
|
# My nix conf
|
|
|
|
|
2023-09-19 05:43:42 +02:00
|
|
|
## 🏠 Home Setup
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nix run home-manager/release-23.05 -- switch --flake .
|
|
|
|
```
|
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
## 🏗️ System Setup
|
2023-09-18 17:14:44 +02:00
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
### 👷 "Manual"
|
2023-09-18 17:14:44 +02:00
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
1. Boot Installer
|
|
|
|
2. Clone repo
|
|
|
|
3. Setup partitions
|
|
|
|
```bash
|
|
|
|
sudo nix run --extra-experimental-features flakes --extra-experimental-features nix-command github:nix-community/disko -- --mode disko --flake path:$PWD#nixos-pulse
|
|
|
|
```
|
|
|
|
4. Run installer
|
|
|
|
```bash
|
|
|
|
sudo nixos-install --flake .#nixos-pulse
|
|
|
|
```
|
2023-09-18 17:14:44 +02:00
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
### 🚀 Fully-Automated
|
2023-09-18 17:14:44 +02:00
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
<sub> 🚨 This will WIPE EVERYTHING on the specified system <br> ⚠️ ensure proper sshd & firewall key setup for remote systems </sub>
|
2023-09-18 17:14:44 +02:00
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
```bash
|
|
|
|
nix run github:numtide/nixos-anywhere -- --flake path:$PWD#nixos-pulse root@1.2.3.4
|
2023-09-18 17:14:44 +02:00
|
|
|
```
|
2023-09-19 00:45:55 +02:00
|
|
|
|
|
|
|
## 🔄 Updates
|
|
|
|
|
|
|
|
Run this to keep your system up-to-date.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
nix flake update
|
2023-09-18 17:14:44 +02:00
|
|
|
sudo nixos-rebuild --flake .#nixos-pulse switch
|
|
|
|
```
|
2023-09-19 00:45:55 +02:00
|
|
|
|
2023-09-19 05:43:42 +02:00
|
|
|
Run this to keep your home up-to-date.
|
|
|
|
```bash
|
|
|
|
nix flake update
|
|
|
|
home-manager switch --flake .
|
|
|
|
```
|
|
|
|
|
2023-09-19 00:45:55 +02:00
|
|
|
## 🙏 Made possible by
|
|
|
|
|
|
|
|
- NixOS: https://nixos.org/
|
|
|
|
- https://github.com/nix-community/nixos-anywhere
|
|
|
|
- https://github.com/nix-community/disko
|
2023-09-19 02:51:21 +02:00
|
|
|
- Countless great examples e.g.:
|
|
|
|
- https://github.com/etu/nixconfig
|
|
|
|
- https://github.com/hlissner/dotfiles
|
2023-09-19 00:45:55 +02:00
|
|
|
- Caffeine https://en.wikipedia.org/wiki/Caffeine
|