system.nix-ld: init

This commit is contained in:
陈浩南 2024-03-25 12:06:55 +08:00
parent b8b93e2b85
commit 6ccdafbdc4

View File

@ -0,0 +1,9 @@
inputs:
{
options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption
{ type = types.nullOr (types.submodule {}); default = {}; };
config = let inherit (inputs.config.nixos.system) nix-ld; in inputs.lib.mkIf (nix-ld != null)
{
programs.nix-ld = { enable = true; libraries = [ inputs.pkgs.steam-run.fhsenv ]; };
};
}