diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-12 04:38:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-14 04:52:49 +0900 |
| commit | 99ac96511bed17f48d908db3d00a1f48579ba011 (patch) | |
| tree | 30d404efb7256c9f053f64192068637d6b846db4 /options.nix | |
| parent | e99d7affb0c128fa82722f9b3d79c99b5e5918cd (diff) | |
hst/fs: interface filesystem config
This allows mount points to be represented by different underlying structs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
| -rw-r--r-- | options.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/options.nix b/options.nix index c6772f69..d5d82496 100644 --- a/options.nix +++ b/options.nix @@ -7,6 +7,7 @@ let mountPoint = let inherit (types) + enum str submodule nullOr @@ -15,6 +16,14 @@ let in listOf (submodule { options = { + type = mkOption { + type = enum [ "bind" ]; + default = "bind"; + description = '' + Type of the mount point; + ''; + }; + dst = mkOption { type = nullOr str; default = null; @@ -32,7 +41,7 @@ let write = mkEnableOption "mounting path as writable"; dev = mkEnableOption "use of device files"; - require = mkEnableOption "start failure if the bind mount cannot be established for any reason"; + optional = mkEnableOption "ignore nonexistent source path"; }; }); in |
