refactor(hosts/luna): improve disk layout

This commit is contained in:
Price Hiller 2024-03-08 01:53:03 -06:00
parent 908a9365a7
commit 65c2b9872b
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 12 additions and 4 deletions

View File

@ -41,7 +41,7 @@
environment.persistence.ephemeral = { environment.persistence.ephemeral = {
persistentStoragePath = "${persist-dir}/ephemeral"; persistentStoragePath = "${persist-dir}/ephemeral";
hideMounts = true; hideMounts = true;
directories = [ "/var/lib" "/var/log" "/etc/nixos" ]; directories = [ "/var/lib" "/etc/nixos" ];
}; };
}; };
}; };

View File

@ -1,4 +1,4 @@
{ modulesPath, config, lib, root-disk, persist-dir, ... }: { lib, root-disk, persist-dir, ... }:
{ {
services = { services = {
fstrim.enable = true; fstrim.enable = true;
@ -69,12 +69,20 @@
"/root" = { "/root" = {
mountpoint = "/"; mountpoint = "/";
}; };
"/var-log" = {
mountpoint = "/var/log";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/nix" = { "/nix" = {
mountpoint = "/nix"; mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
"/persist" = { "${persist-dir}" = {
mountpoint = "/persist"; mountpoint = "${persist-dir}";
mountOptions = [ "compress=zstd" "noatime" ];
};
"${persist-dir}/.snapshots" = {
mountpoint = "${persist-dir}/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ]; mountOptions = [ "compress=zstd" "noatime" ];
}; };
}; };