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