From 7bfbd5981025282007f09225e22e895523d7a7bf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 25 Dec 2025 04:05:54 +0900 Subject: cmd/sharefs: implement shared filesystem This is for passing files between applications, similar to android /sdcard. Signed-off-by: Ophestra --- options.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'options.nix') diff --git a/options.nix b/options.nix index db3f2c21..15e6f9f6 100644 --- a/options.nix +++ b/options.nix @@ -40,6 +40,40 @@ in ''; }; + sharefs = { + user = mkOption { + type = types.str; + default = "sharefs"; + description = '' + Name of the user to run the sharefs daemon as. + ''; + }; + + group = mkOption { + type = types.str; + default = "sharefs"; + description = '' + Name of the group to run the sharefs daemon as. + ''; + }; + + name = mkOption { + type = types.str; + default = "/sdcard"; + description = '' + Host path to mount sharefs on. + ''; + }; + + source = mkOption { + type = types.nullOr types.str; + default = null; + description = '' + Writable backing directory. Setting this to null disables sharefs. + ''; + }; + }; + apps = mkOption { type = let -- cgit v1.3.1