impermanence-talk/template/README.md

32 lines
799 B
Markdown
Raw Normal View History

2024-04-07 17:34:18 +00:00
# Impermanence Example
## Disk Partitioning
```txt
2024-04-07 19:03:57 +00:00
nix flake new nixos --template git+https://git.krsnik.at/Kristian/impermanence-talk --extra-experimental-features "nix-command flakes"
cd nixos
2024-04-15 17:10:25 +00:00
nix develop .# --extra-experimental-features "nix-command flakes
nix run .#install --extra-experimental-features "nix-command flakes"
2024-04-07 19:03:57 +00:00
cd ..
mv nixos /persist
cd /persist/nixos
2024-04-07 17:34:18 +00:00
```
2024-04-15 17:10:25 +00:00
<!-- While formatting you will be asked for a password which is used for disk encryption with LUKS.
2024-04-07 17:34:18 +00:00
Make sure you have the correct keyboard layout set.
## [Optional] Generate Hardware Configuration (for new Systems)
```txt
2024-04-07 19:03:57 +00:00
sudo nixos-generate-config --no-filesystems --force --root /mnt ./system
2024-04-07 17:34:18 +00:00
```
## Install from Flake
```txt
2024-04-15 17:10:25 +00:00
nix-shell -p git
2024-04-07 19:03:57 +00:00
sudo nixos-install --no-root-password --root /mnt --flake .#
2024-04-15 17:10:25 +00:00
``` -->