mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Fix murk
This commit is contained in:
parent
97fddca4a4
commit
f7fe0becd1
5 changed files with 71 additions and 23 deletions
|
|
@ -3,7 +3,10 @@
|
|||
```sh
|
||||
git clone https://codeberg.org/muon/home && cd home
|
||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount hosts/$(hostname)/disk-config.nix
|
||||
sudo btrfs subvolume snapshot -r /mnt /mnt/root-blank
|
||||
sudo mkdir /tmp/mnt
|
||||
sudo mount /dev/mapper/crypted /tmp/mnt
|
||||
sudo btrfs subvolume snapshot -r /tmp/mnt/root /tmp/mnt/root-blank
|
||||
sudo umount /tmp/mnt
|
||||
sudo nixos-generate-config --root /mnt
|
||||
cp /mnt/etc/nixos/hardware-configuration.nix hosts/$(hostname)/hardware-configuration.nix
|
||||
sudo nixos-install --root /mnt --no-root-passwd --flake .#$(hostname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue