hosts/plover: update Disko config

This commit is contained in:
Gabriel Arazas 2024-09-20 12:23:44 +08:00
parent 6e26946312
commit 60a3a816e3
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -1,47 +1,59 @@
{ config, lib, ... }: { disk ? "/dev/sda", ... }:
{ {
disko.devices = { disko.devices = {
disk.sda = { disk.primary = {
device = [ "/dev/sda" ]; device = disk;
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
partitions = [ partitions = {
{ boot = {
name = "boot";
start = "0"; start = "0";
end = "1MiB"; end = "1MiB";
part-type = "primary"; type = "EF02";
flags = [ "bios_grub" ]; };
}
{ # You can't really have a btrfs-layered boot so this'll have to do.
name = "ESP"; ESP = {
priority = 1;
start = "1MiB"; start = "1MiB";
end = "256MiB"; end = "256MiB";
bootable = true; type = "EF00";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
format = "vfat";
}; };
flags = [ "esp" ]; };
}
{ root = {
name = "root";
start = "256MiB"; start = "256MiB";
end = "100%"; end = "100%";
part-type = "primary"; type = "8300";
bootable = true;
content = { content = {
type = "filesystem"; type = "btrfs";
format = "ext4"; extraArgs = [ "-f" ];
mountpoint = "/";
subvolumes = [
{
"/root" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/";
};
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" "noacl" ];
mountpoint = "/nix";
};
}
];
}; };
} };
]; };
}; };
}; };
}; };