mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-13 06:19:01 +00:00
32 lines
666 B
Nix
32 lines
666 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|