mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
37 lines
764 B
Nix
37 lines
764 B
Nix
{ disk ? "/dev/nvme1n1", ... }:
|
|
|
|
{
|
|
disko.devices = {
|
|
disk."ni-secondary" = {
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|