mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 19:18:47 +08:00
13 lines
438 B
Nix
13 lines
438 B
Nix
inputs:
|
|
{
|
|
options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption
|
|
{
|
|
type = types.nullOr (types.submodule {});
|
|
default = if inputs.config.nixos.packages.packageSet == "workstation" then {} else null;
|
|
};
|
|
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 ]; };
|
|
};
|
|
}
|