nixos/ephemeral: Merge sub‐volume option defaults
This commit is contained in:
parent
d6e14f8500
commit
8aa858a33e
1 changed files with 3 additions and 6 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue