mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 05:39:05 +08:00
system: add envfs
This commit is contained in:
parent
e2674908fb
commit
81521bcd3b
@ -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 ];
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ inputs:
|
||||
./sops.nix
|
||||
./user.nix
|
||||
./sysctl.nix
|
||||
./envfs.nix
|
||||
];
|
||||
config =
|
||||
{
|
||||
|
12
modules/system/envfs.nix
Normal file
12
modules/system/envfs.nix
Normal 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"; }
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user