nixos-config/configs/disko/laptop-ssd/default.nix

37 lines
764 B
Nix
Raw Permalink Normal View History

{ disk ? "/dev/nvme1n1", ... }:
2024-11-21 03:51:25 +00:00
{
disko.devices = {
disk."ni-secondary" = {
2024-11-21 03:51:25 +00:00
device = disk;
type = "disk";
content = {
type = "gpt";
partitions = {
data = {
size = "100%";
type = "8300";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountOptions = [
"rw"
"user"
"noauto"
"nofail"
"compress=zstd:10"
];
mountpoint = "/media/laptop-ssd";
2024-11-21 03:51:25 +00:00
};
};
};
};
};
};
};
};
}