nixos/modules/system/envfs.nix

11 lines
426 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 = null; };
2024-03-25 11:26:53 +08:00
config = let inherit (inputs.config.nixos.system) envfs; in inputs.lib.mkIf (envfs != null) (inputs.lib.mkMerge
2024-02-01 10:03:15 +08:00
[
2024-02-01 11:09:11 +08:00
(builtins.elemAt inputs.topInputs.envfs.nixosModules.envfs.imports 0 inputs)
2024-02-01 10:03:15 +08:00
{ environment.variables.ENVFS_RESOLVE_ALWAYS = "1"; }
2024-03-04 18:29:39 +08:00
]);
2024-02-01 10:03:15 +08:00
}