diff --git a/hosts/T430/default.nix b/hosts/T430/default.nix index b5dddcc..3a2ef89 100644 --- a/hosts/T430/default.nix +++ b/hosts/T430/default.nix @@ -43,6 +43,8 @@ jackett.enable = true; syncthing.enable = true; }; + + bsprak.enable = true; }; } diff --git a/modules/core/bsprak.nix b/modules/core/bsprak.nix new file mode 100644 index 0000000..c73f799 --- /dev/null +++ b/modules/core/bsprak.nix @@ -0,0 +1,46 @@ +{ lib, pkgs, ... }: +{ + + options.bchmnn = { + bsprak = { + enable = lib.mkEnableOption "bsprak"; + }; + }; + + config = { + environment = { + # Tell nix to link header files of all installed packages + # in /run/current-system/sw/include + pathsToLink = [ "/include" ]; + variables = { + # Tell compilers where to find the header files + CPATH = "/run/current-system/sw/include"; + # Tell linker where to find shared objects + LIBRARY_PATH = "/run/current-system/sw/lib"; + }; + systemPackages = with pkgs; [ + git + gcc + gnumake + cmake + python3 + ninja + texinfo + pkg-config + bison + flex + curl + + # the `.dev` syntax tells nix to also provide header files + gmp.dev + mpfr.dev + libmpc + glib.dev + pixman + expat.dev + ncurses5.dev + ]; + }; + }; + +} diff --git a/modules/core/default.nix b/modules/core/default.nix index 09ea2e2..d35fcb6 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -4,6 +4,7 @@ ./applications.nix ./audio.nix ./bluetooth.nix + ./bsprak.nix ./keyd.nix ./network.nix ./nvidia.nix