nixos/ephemeral: Merge sub‐volume option defaults

This commit is contained in:
Mikael 2024-10-18 19:33:07 +02:00
parent d6e14f8500
commit 8aa858a33e
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -104,25 +104,22 @@ let
subvolumeDefaults = {
"/etc/keys" = {
options = [ "nodev" "noexec" "nosuid" ];
extraOptions = [ "noatime" "compress=zstd" ];
};
"/etc/credstore" = {
options = [ "nodev" "noexec" "nosuid" ];
extraOptions = [ "noatime" "compress=zstd" ];
};
"/etc/credstore.encrypted" = {
options = [ "nodev" "noexec" "nosuid" ];
extraOptions = [ "noatime" "compress=zstd" ];
};
"/nix" = {
options = [ "nodev" "nosuid" ];
extraOptions = [ "noatime" "compress=zstd" ];
};
"/var" = {
options = [ "nodev" "noexec" "nosuid" ];
};
} |> lib.mapAttrs (name: subvol: subvol // {
extraOptions = [ "noatime" "compress=zstd" ];
};
};
});
in {
options = {
ephemeral = {