Compare commits

...

2 commits

Author SHA1 Message Date
c612a81db7 snowhawk: enable nix-ld 2024-09-13 16:53:10 -07:00
2b282ab842 nixos: nix-ld module init 2024-09-13 16:52:42 -07:00
2 changed files with 43 additions and 5 deletions

View file

@ -18,6 +18,7 @@
time.timeZone = "America/Los_Angeles";
snowhawk = {
nix-ld.enable = true;
dwm.enable = true;
syncthing.enable = true;
plymouth.enable = true;
@ -36,11 +37,6 @@
services.envfs.enable = true;
programs.nix-ld.enable = true;
# programs.nix-ld.libraries = with pkgs; [
#
# ];
# users sops setup
sops.secrets."passwords/ravenshade".neededForUsers = true;
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
];
};
}