1
Fork 0
nixos-system-config/hosts/puter/disko.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2025-01-08 02:06:46 +01:00
{ ... }:
{
disko.devices = {
2025-01-11 02:00:28 +01:00
disk = {
master = {
type = "disk";
2025-01-15 00:27:29 +01:00
device = ""; # [managed by install.sh]
2025-01-11 02:00:28 +01:00
content = {
type = "gpt";
partitions = {
ESP = {
priority = 1;
name = "efi";
start = "1M";
end = "1024M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"umask=0077"
"noatime"
];
};
2025-01-08 02:06:46 +01:00
};
2025-01-11 02:00:28 +01:00
root = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" "-L nixos" ];
subvolumes = {
"/root" = {
mountpoint = "/";
mountOptions = [
"noatime"
"compress=zstd"
];
};
2025-01-08 02:06:46 +01:00
2025-01-11 02:00:28 +01:00
"/nix" = {
mountpoint = "/nix";
mountOptions = [
"noatime"
"compress=zstd"
];
};
2025-01-08 02:06:46 +01:00
};
};
};
};
};
};
};
};
}