mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
63 lines
1.7 KiB
Nix
63 lines
1.7 KiB
Nix
|
|
_: {
|
||
|
|
disko.devices = {
|
||
|
|
disk = {
|
||
|
|
main = {
|
||
|
|
device = "/dev/disk/by-id/ata-SanDisk_SDSSDXPS240G_153251401377";
|
||
|
|
type = "disk";
|
||
|
|
content = {
|
||
|
|
type = "gpt";
|
||
|
|
partitions = {
|
||
|
|
boot = {
|
||
|
|
name = "boot";
|
||
|
|
size = "1M";
|
||
|
|
type = "EF02";
|
||
|
|
};
|
||
|
|
|
||
|
|
ESP = {
|
||
|
|
size = "512M";
|
||
|
|
type = "EF00";
|
||
|
|
content = {
|
||
|
|
type = "filesystem";
|
||
|
|
format = "vfat";
|
||
|
|
mountpoint = "/boot";
|
||
|
|
mountOptions = ["defaults"];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
luks = {
|
||
|
|
size = "100%";
|
||
|
|
content = {
|
||
|
|
type = "luks";
|
||
|
|
name = "crypted";
|
||
|
|
# Copied by deploy script, otherwise it will prompt for password
|
||
|
|
passwordFile = "/luks-password";
|
||
|
|
settings = {
|
||
|
|
allowDiscards = true;
|
||
|
|
bypassWorkqueues = true;
|
||
|
|
};
|
||
|
|
content = {
|
||
|
|
type = "btrfs";
|
||
|
|
extraArgs = ["-f"];
|
||
|
|
subvolumes = {
|
||
|
|
"@" = {
|
||
|
|
mountpoint = "/";
|
||
|
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
|
};
|
||
|
|
"@nix" = {
|
||
|
|
mountpoint = "/nix";
|
||
|
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
|
};
|
||
|
|
"@home" = {
|
||
|
|
mountpoint = "/home";
|
||
|
|
mountOptions = ["compress=zstd" "noatime"];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|