diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-29 03:06:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-29 03:06:49 +0900 |
| commit | f7bd28118c4ac34a9a444073b31ca8f2579188f3 (patch) | |
| tree | d094700b4d367250e9de16226cc7cc49a0dc3b55 /options.nix | |
| parent | 940ee00ffee9208a244a99ff085a981c1af1d7c4 (diff) | |
hst: configurable wait delay
This is useful for programs that take a long time to clean up.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
| -rw-r--r-- | options.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/options.nix b/options.nix index 17c55372..90ad3565 100644 --- a/options.nix +++ b/options.nix @@ -76,6 +76,7 @@ in type = let inherit (types) + int ints str bool @@ -195,7 +196,16 @@ in ''; }; - immediate_termination = mkEnableOption "immediate termination of the container on interrupt"; + wait_delay = mkOption { + type = nullOr int; + default = null; + description = '' + Duration to wait for after interrupting a container's initial process in nanoseconds. + A negative value causes the container to be terminated immediately on cancellation. + Setting this to null defaults to five seconds. + ''; + }; + devel = mkEnableOption "debugging-related kernel interfaces"; userns = mkEnableOption "user namespace creation"; tty = mkEnableOption "access to the controlling terminal"; |
