hosts/electra: place boot on a subvolume to avoid wiping grub

This commit is contained in:
Gabriel Fontes
2022-08-12 17:55:58 -03:00
parent 807f88c0ee
commit 518798df53
+9
View File
@@ -1,3 +1,4 @@
{ hostname, ... }:
{
imports = [
../common/optional/btrfs-optin-persistence.nix
@@ -17,6 +18,14 @@
};
};
fileSystems = {
"/boot" = {
device = "/dev/disk/by-label/${hostname}";
fsType = "btrfs";
options = [ "subvol=boot" ];
};
};
hardware.cpu.intel.updateMicrocode = true;
virtualisation.hypervGuest.enable = true;