mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:58:44 +08:00
11 lines
352 B
Nix
11 lines
352 B
Nix
inputs:
|
|
{
|
|
options.nixos.system.envfs = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{ type = types.nullOr (types.submodule {}); default = {}; };
|
|
config = let inherit (inputs.config.nixos.system) envfs; in inputs.lib.mkIf (envfs != null)
|
|
{
|
|
services.envfs.enable = true;
|
|
environment.variables.ENVFS_RESOLVE_ALWAYS = "1";
|
|
};
|
|
}
|