forked from aylac.top/nixcfg
this repo has no description
1{ 2 pkgs, 3 lib, 4 config, 5 ... 6}: let 7 pkgsFlac8 = import (builtins.fetchTarball { 8 url = "https://github.com/NixOS/nixpkgs/archive/c2c0373ae7abf25b7d69b2df05d3ef8014459ea3.tar.gz"; 9 sha256 = "sha256:19a98q762lx48gxqgp54f5chcbq4cpbq85lcinpd0gh944qindmm"; 10 }) {inherit (pkgs) system;}; 11in { 12 options.myNixOS.programs.nix-ld.enable = lib.mkEnableOption "so you can run non nix apps!"; 13 14 config = lib.mkIf config.myNixOS.programs.nix.enable { 15 # Enable nix-ld for running non-NixOS binaries like language servers 16 programs.nix-ld = { 17 enable = true; 18 libraries = with pkgs; [ 19 # Common libraries that might be needed by language servers 20 stdenv.cc.cc 21 openssl 22 zlib 23 curl 24 glibc 25 26 # for games like crypt of the necrodancer 27 pkgsFlac8.flac 28 (pkgs.runCommand "steamrun-lib" {} "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib") 29 ]; 30 }; 31 }; 32}