nixos/modules/system/nix-ld.nix

10 lines
355 B
Nix
Raw Normal View History

2024-03-25 12:06:55 +08:00
inputs:
{
options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption
{ type = types.nullOr (types.submodule {}); default = {}; };
2024-03-25 12:06:55 +08:00
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 ]; };
};
}