70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
fileSystems."/nix".neededForBoot = true;
|
|
|
|
disko.devices = {
|
|
nodev = {
|
|
"/" = {
|
|
fsType = "tmpfs";
|
|
|
|
mountOptions = [
|
|
"size=25%"
|
|
"mode=755"
|
|
];
|
|
};
|
|
};
|
|
|
|
disk.main = {
|
|
device = "/dev/nvme0n1";
|
|
type = "disk";
|
|
|
|
content = {
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
esp = {
|
|
name = "ESP";
|
|
size = "5G";
|
|
type = "EF00";
|
|
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
|
|
root = {
|
|
name = "NIXOS";
|
|
size = "100%";
|
|
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "-f" ];
|
|
|
|
subvolumes = {
|
|
"/persist" = {
|
|
mountOptions = [
|
|
"subvol=persist"
|
|
"noatime"
|
|
];
|
|
|
|
mountpoint = "/persist";
|
|
};
|
|
|
|
"/nix" = {
|
|
mountOptions = [
|
|
"subvol=nix"
|
|
"noatime"
|
|
];
|
|
|
|
mountpoint = "/nix";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|