igor: Adapt disk layout

This commit is contained in:
Alexander Kobjolke 2024-12-12 22:11:57 +01:00
parent a029bd12e4
commit 685d8ade01
3 changed files with 58 additions and 31 deletions

View file

@ -2,10 +2,14 @@
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/mmcblk0";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
ESP = {
priority = 1;
name = "ESP";
@ -26,18 +30,32 @@
extraArgs = [ "-f" ];
subvolumes = {
"/rootfs" = { mountpoint = "/"; };
"/rootfs" = {
mountpoint = "/";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/home" = {
mountOptions = [ "compress=zstd" ];
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/home";
};
"/nix" = {
mountOptions = [ "compress=zstd" "noatime" ];
mountOptions = [
"compress=zstd"
"noatime"
];
mountpoint = "/nix";
};
"/swap" = {
mountpoint = "/.swapvol";
swap = { swapfile.size = "2G"; };
swap = {
swapfile.size = "2G";
};
};
};
};