Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
"symlink"
"_intermediate" # TODO find a better name. maybe "structure"?
];
default = "bindmount";
default = config.preservation.defaultHow;
description = ''
Specify how this directory should be preserved.

Expand Down Expand Up @@ -188,7 +188,7 @@ let
"bindmount"
"symlink"
];
default = "bindmount";
default = config.preservation.defaultHow;
description = ''
Specify how this file should be preserved:

Expand Down Expand Up @@ -551,6 +551,18 @@ in
options.preservation = {
enable = lib.mkEnableOption "the preservation module";

defaultHow = lib.mkOption {
type = lib.types.enum [
"bindmount"
"symlink"
];
default = "bindmount";
description = ''
Specify the default value of the `how` option for all preserved files
and directories.
'';
};

preserveAt = lib.mkOption {
type =
with lib.types;
Expand Down
Loading