nixos/modules/system/envfs.nix

11 lines
352 B
Nix
Raw Normal View History

2024-02-01 10:03:15 +08:00
inputs:
{
2024-03-25 11:26:53 +08:00
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";
};
2024-02-01 10:03:15 +08:00
}