From 6ccdafbdc4942e8d0805129cc45efc614cd85404 Mon Sep 17 00:00:00 2001 From: chn Date: Mon, 25 Mar 2024 12:06:55 +0800 Subject: [PATCH] system.nix-ld: init --- modules/system/nix-ld.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/system/nix-ld.nix diff --git a/modules/system/nix-ld.nix b/modules/system/nix-ld.nix new file mode 100644 index 00000000..498400c0 --- /dev/null +++ b/modules/system/nix-ld.nix @@ -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 ]; }; + }; +}