refactor(README): add more content concerning the installation

This commit is contained in:
2025-12-12 14:30:14 +01:00
parent e5d25d27a9
commit 68843be871

View File

@@ -1,31 +1,23 @@
# 0x29a nixos config
personal nixos configuration files
## how to deploy the config
```bash
$ sudo nixos-rebuild switch --flake path:/home/aaron/git/nixconfig#default
```
## how to upgrade the system
```bash
$ sudo nixos-rebuild switch --flake --upgrade path:/home/aaron/git/nixconfig#default
```
My personal nixos configuration files.
## basic system installation
1. the partitioning layout will look like this.
- The installations in this repository are always luks encrypted
- For simplicity I'm using device labels rather than uuids
1. the partitioning layout should look somewhat like this after the installation
```bash
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 233.8G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 0 233.3G 0 part
└─root 254:0 0 233.3G 0 crypt
├─vg-swap 254:1 0 8G 0 lvm [SWAP]
└─vg-root 254:2 0 225.3G 0 lvm /
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 2G 0 part /boot
└─nvme0n1p2 259:2 0 474.9G 0 part
└─cryptroot 254:0 0 474.9G 0 crypt
├─lvmroot-swap 254:1 0 20G 0 lvm [SWAP]
├─lvmroot-home 254:2 0 250G 0 lvm /home
└─lvmroot-root 254:3 0 204.9G 0 lvm /nix/store
```
2. prepare the installation
@@ -105,17 +97,18 @@ cd /mnt
sudo nixos-install
```
## how to install updates
## how to deploy the config
```bash
# update flakes
nix flake update
$ sudo nixos-rebuild switch --flake .#host_name
```
# rebuild system
sudo nixos-rebuild switch --flake ~/git/nixconfig#default
## how to upgrade the system
# update home-manager files
home-manager switch --flake ~/git/nixconfig#aaron
```bash
$ cd /path/to/repo
$ sudo nix flake update
$ sudo nixos-rebuild switch --flake .#host_name
```
## author