From 15dcc2daaecc33a43ec1778d85d9111028dd1679 Mon Sep 17 00:00:00 2001 From: fleaz Date: Tue, 21 Nov 2023 23:38:49 +0100 Subject: [PATCH] add nix-ld module --- modules/nixld.nix | 19 +++++++++++++++++++ roles/all.nix | 3 ++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 modules/nixld.nix diff --git a/modules/nixld.nix b/modules/nixld.nix new file mode 100644 index 0000000..5b7a29a --- /dev/null +++ b/modules/nixld.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: { + # Enable nix ld + programs.nix-ld.enable = true; + + # Sets up all the libraries to load + programs.nix-ld.libraries = with pkgs; [ + stdenv.cc.cc + zlib + fuse3 + icu + zlib + nss + openssl + curl + expat + # ... + ]; +} + diff --git a/roles/all.nix b/roles/all.nix index 65af069..ab09356 100644 --- a/roles/all.nix +++ b/roles/all.nix @@ -23,6 +23,7 @@ in ../modules/gc.nix ../modules/headscale.nix ../modules/sway.nix + ../modules/nixld.nix ../secrets/remote-builder.nix ../users/fleaz.nix @@ -41,7 +42,7 @@ in # GTK settings stuff for e.g. themes programs.dconf.enable = true; - # List packages installed in system profile. To search, run: + # List packages installed in system profile environment.systemPackages = with pkgs; [ vim wget curl git ]; environment.variables = {