nixos: nix-ld module init

This commit is contained in:
Zynh Ludwig 2024-09-13 16:52:42 -07:00
parent b7d22d3bbb
commit 2b282ab842
2 changed files with 42 additions and 5 deletions

View file

@ -36,11 +36,6 @@
services.envfs.enable = true; services.envfs.enable = true;
programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [
#
# ];
# users sops setup # users sops setup
sops.secrets."passwords/ravenshade".neededForUsers = true; sops.secrets."passwords/ravenshade".neededForUsers = true;
users.mutableUsers = false; users.mutableUsers = false;

42
modules/nix-ld.nix Normal file
View file

@ -0,0 +1,42 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.snowhawk.nix-ld;
in
{
options.snowhawk.nix-ld = {
enable = mkEnableOption "nix-ld nixos module";
};
config = mkIf cfg.enable {
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
glib
nss
nspr
atk
cups
dbus
libdrm
gtk3
pango
cairo
gdk-pixbuf
mesa
expat
alsa-lib
libxkbcommon
xorg.libX11
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
xorg.libxcb
];
};
}