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 = {
persistentStoragePath = "${persist-dir}/ephemeral";
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 = {
fstrim.enable = true;
@ -69,12 +69,20 @@
"/root" = {
mountpoint = "/";
};
"/var-log" = {
mountpoint = "/var/log";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [ "compress=zstd" "noatime" ];
};
"/persist" = {
mountpoint = "/persist";
"${persist-dir}" = {
mountpoint = "${persist-dir}";
mountOptions = [ "compress=zstd" "noatime" ];
};
"${persist-dir}/.snapshots" = {
mountpoint = "${persist-dir}/.snapshots";
mountOptions = [ "compress=zstd" "noatime" ];
};
};