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 = {
|
subvolumeDefaults = {
|
||||||
"/etc/keys" = {
|
"/etc/keys" = {
|
||||||
options = [ "nodev" "noexec" "nosuid" ];
|
options = [ "nodev" "noexec" "nosuid" ];
|
||||||
extraOptions = [ "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
"/etc/credstore" = {
|
"/etc/credstore" = {
|
||||||
options = [ "nodev" "noexec" "nosuid" ];
|
options = [ "nodev" "noexec" "nosuid" ];
|
||||||
extraOptions = [ "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
"/etc/credstore.encrypted" = {
|
"/etc/credstore.encrypted" = {
|
||||||
options = [ "nodev" "noexec" "nosuid" ];
|
options = [ "nodev" "noexec" "nosuid" ];
|
||||||
extraOptions = [ "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
"/nix" = {
|
"/nix" = {
|
||||||
options = [ "nodev" "nosuid" ];
|
options = [ "nodev" "nosuid" ];
|
||||||
extraOptions = [ "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
"/var" = {
|
"/var" = {
|
||||||
options = [ "nodev" "noexec" "nosuid" ];
|
options = [ "nodev" "noexec" "nosuid" ];
|
||||||
extraOptions = [ "noatime" "compress=zstd" ];
|
|
||||||
};
|
};
|
||||||
};
|
} |> lib.mapAttrs (name: subvol: subvol // {
|
||||||
|
extraOptions = [ "noatime" "compress=zstd" ];
|
||||||
|
});
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
ephemeral = {
|
ephemeral = {
|
||||||
|
|
Loading…
Reference in a new issue