wrapper-manager/sandboxing/bubblewrap: fix filesystem path types

To enable arguments containing environment variables but at the cost of
lack of validation. I'm fine with this.
This commit is contained in:
Gabriel Arazas 2024-08-05 19:07:29 +08:00
parent 3a4833d46d
commit 73a6dba219
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -21,7 +21,7 @@ let
filesystemSubmodule = { config, lib, name, ... }: { filesystemSubmodule = { config, lib, name, ... }: {
options = { options = {
source = lib.mkOption { source = lib.mkOption {
type = lib.types.path; type = lib.types.str;
description = '' description = ''
The source of the path to be copied from. The source of the path to be copied from.
''; '';
@ -86,7 +86,7 @@ let
binds = { binds = {
ro = lib.mkOption { ro = lib.mkOption {
type = with lib.types; listOf path; type = with lib.types; listOf str;
default = [ ]; default = [ ];
description = description =
if isGlobal if isGlobal
@ -104,7 +104,7 @@ let
}; };
rw = lib.mkOption { rw = lib.mkOption {
type = with lib.types; listOf path; type = with lib.types; listOf str;
default = [ ]; default = [ ];
description = description =
if isGlobal if isGlobal
@ -118,7 +118,7 @@ let
}; };
dev = lib.mkOption { dev = lib.mkOption {
type = with lib.types; listOf path; type = with lib.types; listOf str;
default = [ ]; default = [ ];
description = description =
if isGlobal if isGlobal