diff options
Diffstat (limited to 'modules/options/mounts/usb.nix')
| -rw-r--r-- | modules/options/mounts/usb.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/options/mounts/usb.nix b/modules/options/mounts/usb.nix new file mode 100644 index 0000000..1804fd1 --- /dev/null +++ b/modules/options/mounts/usb.nix @@ -0,0 +1,40 @@ +{ lib, ... }: +{ + options.modules.mounts.usb = + let + inherit (lib) mkOption types; + in + { + enable = mkOption { + default = false; + type = types.bool; + }; + + withSamba = mkOption { + default = false; + type = types.bool; + }; + + name = mkOption { + default = null; + type = types.str; + }; + + shareName = mkOption { + default = "usb"; + type = types.str; + }; + + device = mkOption { + default = null; + type = types.str; + }; + + extraOptions = + with types; + mkOption { + default = [ ]; + type = listOf str; + }; + }; +} |