mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-26 04:44:53 +00:00
a6551ce043
jellyfin security update also view.mappings.list nvim-tree deprecated also partition type removed from disko
43 lines
960 B
Nix
43 lines
960 B
Nix
{ disk, ... }: {
|
|
disk = {
|
|
boot = {
|
|
type = "disk";
|
|
device = disk;
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
# Boot partition
|
|
{
|
|
name = "ESP";
|
|
start = "0";
|
|
end = "512MiB";
|
|
fs-type = "fat32";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
extraArgs = [ "-n boot" ];
|
|
};
|
|
}
|
|
# Root partition ext4
|
|
{
|
|
name = "root";
|
|
start = "512MiB";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
extraArgs = [ "-L nixos" ];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|