igor: Adapt disk layout

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

View file

@ -2,7 +2,7 @@
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/mmcblk0";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
@ -26,18 +26,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";
};
};
};
};