mirror of
https://git.gay/sneexy/nixos.git
synced 2026-01-11 05:03:15 -08:00
59 lines
1.7 KiB
Nix
59 lines
1.7 KiB
Nix
|
|
{
|
||
|
|
disko.devices = {
|
||
|
|
disk = {
|
||
|
|
vdb = {
|
||
|
|
type = "disk";
|
||
|
|
device = "/dev/disk/by-diskseq/1";
|
||
|
|
content = {
|
||
|
|
type = "gpt";
|
||
|
|
partitions = {
|
||
|
|
ESP = {
|
||
|
|
priority = 1;
|
||
|
|
name = "ESP";
|
||
|
|
start = "1MiB";
|
||
|
|
end = "1G";
|
||
|
|
type = "EF00";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "vfat";
|
||
|
|
mountpoint = "/boot";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
root = {
|
||
|
|
size = "100%";
|
||
|
|
content = {
|
||
|
|
type = "btrfs";
|
||
|
|
extraArgs = [ "-f" ]; # Override existing partition
|
||
|
|
# Subvolumes must set a mountpoint in order to be mounted,
|
||
|
|
# unless their parent is mounted
|
||
|
|
subvolumes = {
|
||
|
|
"/rootfs" = {
|
||
|
|
mountOptions = [ "compress=zstd" ];
|
||
|
|
mountpoint = "/";
|
||
|
|
};
|
||
|
|
"/home" = {
|
||
|
|
mountOptions = [ "compress=zstd" ];
|
||
|
|
mountpoint = "/home";
|
||
|
|
};
|
||
|
|
"/nix" = {
|
||
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
|
mountpoint = "/nix";
|
||
|
|
};
|
||
|
|
"/persist" = {
|
||
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
|
mountpoint = "/persist";
|
||
|
|
};
|
||
|
|
"/log" = {
|
||
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
|
mountpoint = "/var/log";
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|