_module.args

Additional arguments passed to each module in addition to ones like lib, config, and pkgs, modulesPath.

This option is also available to all submodules. Submodules do not inherit args from their parent module, nor do they provide args to their parent module or sibling submodules. The sole exception to this is the argument name which is provided by parent modules to a submodule and contains the attribute name the submodule is bound to, or a unique generated name if it is not bound to an attribute.

Some arguments are already passed by default, of which the following cannot be changed with this option:

For NixOS, the default value for this option includes at least this argument:

Type: lazy attribute set of raw value

Declared by:

nixjail.bwrap.profiles

Configure profiles for the packages list, using the further options to configure them with bwrap

Type: list of (submodule)

Default: [ ]

Declared by:

nixjail.bwrap.profiles.*.packages

Packages to be wrapped with bwrap using the configs on the profile

Type: nixpkgs overlay

Default: <function>

Declared by:

nixjail.bwrap.profiles.*.args

arguments to pass to the packages

Type: string

Default: "\"$@\""

Declared by:

nixjail.bwrap.profiles.*.autoBindHome

Automatically creates a home directory on home_dir_root

Type: boolean

Default: true

Declared by:

nixjail.bwrap.profiles.*.defaultBinds

Adds the following read-only binds:

“~/.config/mimeapps.list” “~/.local/share/applications/mimeapps.list” “~/.config/dconf” “~/.config/gtk-3.0/settings.ini” “~/.config/gtk-4.0/settings.ini” “~/.gtkrc-2.0”

Type: boolean

Default: true

Declared by:

nixjail.bwrap.profiles.*.dev

If true add --dev-bind-try /dev /dev

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.dri

If true add --dev-bind-try /dev/dri /dev/dri

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.extraConfig

Extra configs for bwrap

Type: list of string

Default: [ ]

Declared by:

nixjail.bwrap.profiles.*.homeDirRoot

Root for the autoBindHome

Type: string

Default: "~/bwrap"

Declared by:

nixjail.bwrap.profiles.*.install

Add package to environment.systemPackages

Type: boolean

Default: true

Declared by:

nixjail.bwrap.profiles.*.keepSession

Fixes “cannot set terminal process group (-1)” by adding --new-session but is not recommended because of a security issue with TIOCSTI [1] [1] - https://wiki.archlinux.org/title/Bubblewrap#New_session

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.ldCache

Add ld.so.conf and ld.so.cache symlinks (both 32 and 64 bit glibcs)

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.net

If true add --share-net

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.roBinds

Adds --ro-bind-try $(readlink -mn $${cfg.from} $${cfg.to})

Type: list of (string or (submodule))

Default: [ ]

Declared by:

nixjail.bwrap.profiles.*.rwBinds

Adds --bind-try $(readlink -mn $${cfg.from} $${cfg.to})

Type: list of (string or (submodule))

Default: [ ]

Declared by:

nixjail.bwrap.profiles.*.symlinkJoin

If false it will disable the merge of the generated bwrapped package with the original content (like desktop entries, libs and man pages)

Type: boolean

Default: true

Declared by:

nixjail.bwrap.profiles.*.tmp

If true add --bind-try /tmp /tmp

Type: boolean

Default: false

Declared by:

nixjail.bwrap.profiles.*.unshareAll

If false removes --unshare-all, not recommended!

Type: boolean

Default: true

Declared by:

nixjail.bwrap.profiles.*.xdg

If true add --bind-try $XDG_RUNTIME_DIR $XDG_RUNTIME_DIR

Type: boolean or value “ro” (singular enum)

Default: "ro"

Declared by:

nixjail.fhs.profiles

Configure profiles for the packages list, using the further options to configure them with bwrap

Type: list of (submodule)

Default: [ ]

Declared by:

nixjail.fhs.profiles.*.args

arguments to pass to the packages

Type: string

Default: "\"$@\""

Declared by:

nixjail.fhs.profiles.*.autoBindHome

Automatically creates a home directory on home_dir_root

Type: boolean

Default: true

Declared by:

nixjail.fhs.profiles.*.defaultBinds

Adds the following read-only binds:

“~/.config/mimeapps.list” “~/.local/share/applications/mimeapps.list” “~/.config/dconf” “~/.config/gtk-3.0/settings.ini” “~/.config/gtk-4.0/settings.ini” “~/.gtkrc-2.0”

Type: boolean

Default: true

Declared by:

nixjail.fhs.profiles.*.dev

If true add --dev-bind-try /dev /dev

Type: boolean

Default: false

Declared by:

nixjail.fhs.profiles.*.dri

If true add --dev-bind-try /dev/dri /dev/dri

Type: boolean

Default: false

Declared by:

nixjail.fhs.profiles.*.extraConfig

Extra configs for bwrap

Type: list of string

Default: [ ]

Declared by:

nixjail.fhs.profiles.*.homeDirRoot

Root for the autoBindHome

Type: string

Default: "~/bwrap"

Declared by:

nixjail.fhs.profiles.*.install

Add package to environment.systemPackages

Type: boolean

Default: true

Declared by:

nixjail.fhs.profiles.*.keepSession

Fixes “cannot set terminal process group (-1)” by adding --new-session but is not recommended because of a security issue with TIOCSTI [1] [1] - https://wiki.archlinux.org/title/Bubblewrap#New_session

Type: boolean

Default: false

Declared by:

nixjail.fhs.profiles.*.multiPkgs

Packages installed once on x86 systems and twice on x86_64 systems. On x86 they are merged with packages from targetPkgs. On x86_64 they are added to targetPkgs and in addition their 32bit versions are also installed. The final directory structure looks as follows: /lib32 will include 32bit libraries from multiPkgs /lib64 will include 64bit libraries from multiPkgs and targetPkgs /lib will link to /lib32

Type: function that evaluates to a(n) list of package

Default: <function>

Declared by:

nixjail.fhs.profiles.*.name

Name of the FHS

Type: string

Default: null

Declared by:

nixjail.fhs.profiles.*.net

If true add --share-net

Type: boolean

Default: false

Declared by:

nixjail.fhs.profiles.*.profile

Script to run when configuring FHS

Type: string

Default: ""

Declared by:

nixjail.fhs.profiles.*.roBinds

Adds --ro-bind-try $(readlink -mn $${cfg.from} $${cfg.to})

Type: list of (string or (submodule))

Default: [ ]

Declared by:

nixjail.fhs.profiles.*.runScript

Script to run when starting FHS

Type: string

Default: "$TERM"

Declared by:

nixjail.fhs.profiles.*.rwBinds

Adds --bind-try $(readlink -mn $${cfg.from} $${cfg.to})

Type: list of (string or (submodule))

Default: [ ]

Declared by:

nixjail.fhs.profiles.*.targetPkgs

Packages that will only be installed once-matching the host’s architecture (64bit on x86_64 and 32bit on x86)

Type: function that evaluates to a(n) list of package

Default: <function>

Declared by:

nixjail.fhs.profiles.*.tmp

If true add --bind-try /tmp /tmp

Type: boolean

Default: false

Declared by:

nixjail.fhs.profiles.*.unshareAll

If false removes --unshare-all, not recommended!

Type: boolean

Default: true

Declared by:

nixjail.fhs.profiles.*.xdg

If true add --bind-try $XDG_RUNTIME_DIR $XDG_RUNTIME_DIR

Type: boolean or value “ro” (singular enum)

Default: "ro"

Declared by: