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
|
2024-08-04 14:43:14 +08:00
|
|
|
{ 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
|
|
|
}
|