This commit is contained in:
Daniel Ziltener 2024-07-09 12:04:33 +02:00
parent 28da262b65
commit 9e55b23c29
Signed by: zilti
GPG Key ID: B38976E82C9DAE42
1 changed files with 52 additions and 0 deletions

52
disko-nocrypt-config.nix Normal file
View File

@ -0,0 +1,52 @@
{
disko.devices = {
disk = {
main = {
#device = builtins.elemAt disks 0;
device = "/dev/nvme0n1"; # DEVICE_NAME
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/rootfs" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/";
};
"/home" = {
mountOptions = [ "compress=zstd" ];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountpoint = "/nix";
};
"/swap" = {
mountOptions = [ "subvol=swap" ];
mountpoint = "/swap";
};
};
};
};
};
};
};
};
};
}