PortValhalla/lib/modules/partition.nix

37 lines
661 B
Nix
Raw Normal View History

{ ... }:
let
fs = import ./partition/fs.nix;
in {
imports = [
./partition/disks.nix
];
config = {
partition = {
2024-06-22 18:45:50 +00:00
os = {
partitions = {
Boot = {
index = 1;
type = "uefi";
size = "+1G";
format = fs.fat32;
2024-06-22 18:46:57 +00:00
mountPoint = "/boot";
2024-06-22 18:45:50 +00:00
};
Swap = {
index = 2;
type = "swap";
};
OS = {
index = 3;
type = "linux";
format = fs.ext4;
2024-06-22 18:46:57 +00:00
mountPoint = "/";
2024-06-22 18:45:50 +00:00
};
};
};
};
};
}