arion-compose-0.2.1.0: src/nix/modules/composition/host-environment.nix
{ lib, ... }:
{
options = {
host.uid = lib.mkOption {
type = lib.types.int;
description = ''
The numeric user id (UID) of the user running arion.
This lets you to write modules that interact with the host
user's files, which is helpful for local development, but not
intended for production-like deployment scenarios.
'';
};
host.nixStorePrefix = lib.mkOption {
type = lib.types.str;
default = "";
example = "/mnt/foo";
description = ''
Prefixes store paths on the host, allowing the Nix store to be
stored at an alternate location without altering the format of
store paths.
For example: instead of mounting the host's `/nix/store` as the
container's `/nix/store`, this will mount `/mnt/foo/nix/store`
as the container's `/nix/store`.
'';
};
};
}