mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
test: impermanence
This commit is contained in:
parent
2eadea0a82
commit
4e05093a1d
1 changed files with 42 additions and 44 deletions
|
|
@ -6,13 +6,11 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (flake.config.people) user0;
|
inherit (flake.config.people) user0;
|
||||||
|
|
||||||
|
rootDevice = "/dev/disk/by-uuid/8596aaba-338f-4f9d-ba9d-a63bcbc38523";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
fileSystems =
|
fileSystems = {
|
||||||
let
|
|
||||||
rootDevice = "/dev/disk/by-uuid/8596aaba-338f-4f9d-ba9d-a63bcbc38523";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
"/" = {
|
"/" = {
|
||||||
device = rootDevice;
|
device = rootDevice;
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
@ -54,7 +52,7 @@ in
|
||||||
};
|
};
|
||||||
boot.initrd.postResumeCommands = lib.mkAfter ''
|
boot.initrd.postResumeCommands = lib.mkAfter ''
|
||||||
mkdir /btrfs_tmp
|
mkdir /btrfs_tmp
|
||||||
mount -o subvolid=5 /dev/sda2 /btrfs_tmp
|
mount -o subvolid=5 ${rootDevice} /btrfs_tmp
|
||||||
|
|
||||||
if [[ -e /btrfs_tmp/root ]]; then
|
if [[ -e /btrfs_tmp/root ]]; then
|
||||||
mkdir -p /btrfs_tmp/old_roots
|
mkdir -p /btrfs_tmp/old_roots
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue