mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
test: trying to get microVMs to work
This commit is contained in:
parent
a1db19bcd7
commit
6b3a861d28
1 changed files with 7 additions and 6 deletions
|
|
@ -146,7 +146,7 @@ in
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
|
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
|
||||||
"d /mnt/storage 2775 root root -"
|
"d /mnt/storage 2775 root root -"
|
||||||
"d /opt/secrets 2775 root root -"
|
"d /opt/secrets 0755 root root -"
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -154,18 +154,19 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
# sudo mount /dev/disk/by-label/root /mnt
|
# sudo mount /dev/disk/by-label/root /mnt
|
||||||
# sudo btrfs subvolume create /mnt/persistent
|
# sudo btrfs subvolume create /mnt/persist
|
||||||
|
# sudo btsfs subvolume create /mnt/rootDevice
|
||||||
# sudo btrfs subvolume create /mnt/nix
|
# sudo btrfs subvolume create /mnt/nix
|
||||||
# sudo umount /mnt
|
# sudo umount /mnt
|
||||||
|
|
||||||
# sudo mount -o subvol=@ /dev/disk/by-label/root /mnt
|
# sudo mount -o subvol=root /dev/disk/by-label/root /mnt
|
||||||
|
|
||||||
# sudo mount -o subvol=@nix /dev/disk/by-label/root /mnt/nix
|
# sudo mount -o subvol=nix /dev/disk/by-label/root /mnt/nix
|
||||||
# sudo mount -o subvol=@persistent /dev/disk/by-label/root /mnt/persistent
|
# sudo mount -o subvol=persist /dev/disk/by-label/root /mnt/persist
|
||||||
|
|
||||||
# sudo mount /dev/disk/by-label/BOOT /mnt/boot
|
# sudo mount /dev/disk/by-label/BOOT /mnt/boot
|
||||||
|
|
||||||
# sudo mount /dev/disk/by-label/storage /mnt/mnt/storage
|
# sudo nixos-generate-config --root /mnt
|
||||||
|
|
||||||
# sudo nixos-install --root /mnt
|
# sudo nixos-install --root /mnt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue