2024-02-01 10:03:15 +08:00
|
|
|
inputs:
|
|
|
|
{
|
|
|
|
options.nixos.system.envfs = let inherit (inputs.lib) mkOption types; in
|
|
|
|
{
|
2024-03-04 18:29:39 +08:00
|
|
|
enable = mkOption { type = types.bool; default = false; };
|
2024-02-01 10:03:15 +08:00
|
|
|
};
|
2024-03-04 18:29:39 +08:00
|
|
|
config = inputs.lib.mkIf inputs.config.nixos.system.envfs.enable (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
|
|
|
}
|