Add systemd repart to grow root partition on boot
parent
843c64f8ed
commit
2ddc792d92
|
@ -21,7 +21,6 @@
|
||||||
services.qemuGuest.enable = lib.mkDefault true;
|
services.qemuGuest.enable = lib.mkDefault true;
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.growPartition = lib.mkDefault true;
|
|
||||||
|
|
||||||
# Allow remote updates with flakes and non-root users
|
# Allow remote updates with flakes and non-root users
|
||||||
nix.settings.trusted-users = [
|
nix.settings.trusted-users = [
|
||||||
|
@ -98,6 +97,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.initrd.systemd.repart.enable = true;
|
||||||
|
systemd.repart.partitions = {
|
||||||
|
"00-esp" = {
|
||||||
|
Type = "esp";
|
||||||
|
SizeMinBytes = "550M";
|
||||||
|
SizeMaxBytes = "550M";
|
||||||
|
Format = "vfat";
|
||||||
|
};
|
||||||
|
"10-root" = {
|
||||||
|
Type = "root";
|
||||||
|
Format = "btrfs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = lib.mkDefault "24.05";
|
system.stateVersion = lib.mkDefault "24.05";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue