2025-01-12 02:57:46 +01:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
master = {
|
|
|
|
type = "disk";
|
2025-01-14 00:16:41 +01:00
|
|
|
device = "/dev/sda"; # [managed by install.sh]
|
2025-01-12 02:57:46 +01:00
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
2025-01-16 19:22:37 +01:00
|
|
|
grub_mbr = {
|
|
|
|
size = "1M";
|
|
|
|
type = "EF02"; # for grub MBR
|
|
|
|
};
|
|
|
|
boot = {
|
|
|
|
size = "1G";
|
2025-01-12 02:57:46 +01:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
2025-01-16 19:22:37 +01:00
|
|
|
format = "ext4";
|
2025-01-12 02:57:46 +01:00
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
2025-01-16 19:42:56 +01:00
|
|
|
mountpoint = "/partition-root";
|
2025-01-12 02:57:46 +01:00
|
|
|
content = {
|
|
|
|
type = "btrfs";
|
2025-01-16 19:42:56 +01:00
|
|
|
extraArgs = [ "-f" "-L nixos" ];
|
2025-01-12 02:57:46 +01:00
|
|
|
subvolumes = {
|
2025-01-16 19:42:56 +01:00
|
|
|
"/rootfs" = {
|
2025-01-12 02:57:46 +01:00
|
|
|
mountpoint = "/";
|
|
|
|
mountOptions = [
|
|
|
|
"noatime"
|
|
|
|
"compress=zstd"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2025-01-16 19:42:56 +01:00
|
|
|
"/nix" = {
|
2025-01-12 02:57:46 +01:00
|
|
|
mountpoint = "/nix";
|
|
|
|
mountOptions = [
|
|
|
|
"noatime"
|
|
|
|
"compress=zstd"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|