system: add envfs

This commit is contained in:
陈浩南 2024-02-01 10:03:15 +08:00
parent e2674908fb
commit 81521bcd3b
3 changed files with 13 additions and 2 deletions

View File

@ -147,7 +147,5 @@ inputs:
};
virtualisation.virtualbox.host = { enable = true; enableExtensionPack = true; };
hardware.nvidia.forceFullCompositionPipeline = true;
environment.variables.ENVFS_RESOLVE_ALWAYS = "1";
};
imports = [ inputs.topInputs.envfs.nixosModules.envfs ];
}

View File

@ -16,6 +16,7 @@ inputs:
./sops.nix
./user.nix
./sysctl.nix
./envfs.nix
];
config =
{

12
modules/system/envfs.nix Normal file
View File

@ -0,0 +1,12 @@
inputs:
{
options.nixos.system.envfs = let inherit (inputs.lib) mkOption types; in
{
enable = mkOption { type = types.bool; default = true; };
};
config = inputs.lib.mkMerge
[
(inputs.topInputs.envfs.nixosModules.envfs inputs)
{ environment.variables.ENVFS_RESOLVE_ALWAYS = "1"; }
];
}