nixos: nix-ld module init
This commit is contained in:
parent
b7d22d3bbb
commit
2b282ab842
2 changed files with 42 additions and 5 deletions
|
@ -36,11 +36,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
42
modules/nix-ld.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue