Go to file
2024-04-16 18:34:09 +02:00
slides updated 2024-04-09 14:08:35 +02:00
template updated 2024-04-16 18:34:09 +02:00
.gitignore initial commit 2024-04-07 19:34:18 +02:00
flake.lock initial commit 2024-04-07 19:34:18 +02:00
flake.nix initial commit 2024-04-07 19:34:18 +02:00
README.md fix 2024-04-09 13:54:03 +02:00

Impermanence Talk

Start a NixOS setup with Impermanence

    `nix-shell -p git`
    `nix flake new nixos --template git+https://github.com/Krsnik/impermanence#default --extra-experimental-features "nix-command flakes"`
    `cd nixos`
    `nix develop --extra-experimental-features "nix-command flakes"`
    `[CHANGE SETTINGS]`
    `sudo disko --mode disko ./systems/disko.nix`
    `[ENTER PASSWORD FOR ENCRYPTION]`
    `sudo nixos-generate-config --no-filesystems --force --root /mnt --dir ./system`
    `sudo nixos-install --no-root-password --root /mnt --flake .#default`

    To save the configuration
    `cd ..`
    `sudo mv nixos /mnt/persist/etc`
    `cd /mnt/persist/etc/nixos`

Get cleared files back

cd /tmp
mkdir mnt
sudo btrfs subvolume list /
[NOTE the ID]
sudo mount /dev/mapper/crypted -o subvolid=[ID] mnt/