refactor(hosts/luna): improve disk layout
This commit is contained in:
parent
908a9365a7
commit
65c2b9872b
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user