diff --git a/nixos/desktop/default.nix b/nixos/desktop/default.nix index 0b405486..a324c2a4 100644 --- a/nixos/desktop/default.nix +++ b/nixos/desktop/default.nix @@ -6,6 +6,7 @@ ./fonts.nix ./greetd.nix ./locale.nix + ./non-nix.nix ./plymouth.nix ./tailscale.nix ./wayland.nix diff --git a/nixos/desktop/non-nix.nix b/nixos/desktop/non-nix.nix new file mode 100644 index 00000000..d4c531db --- /dev/null +++ b/nixos/desktop/non-nix.nix @@ -0,0 +1,61 @@ +{ config, pkgs, lib, ... }: + +{ + options.nixos.desktop.non-nix.enable = lib.mkEnableOption "non-Nix config" // { + default = config.nixos.desktop.enable; + }; + + config = lib.mkIf config.nixos.desktop.non-nix.enable { + programs.nix-ld = { + enable = true; + libraries = with pkgs; [ + alsa-lib + at-spi2-atk + at-spi2-core + atk + cairo + cups + curl + dbus + expat + fontconfig + freetype + gdk-pixbuf + glib + gtk3 + icu + libGL + libappindicator-gtk3 + libdrm + libnotify + libpulseaudio + libusb1 + libuuid + libxkbcommon + mesa + nspr + nss + openssl + pango + pipewire + stdenv.cc.cc + systemd + xorg.libX11 + xorg.libXScrnSaver + xorg.libXcomposite + xorg.libXcursor + xorg.libXdamage + xorg.libXext + xorg.libXfixes + xorg.libXi + xorg.libXrandr + xorg.libXrender + xorg.libXtst + xorg.libxcb + xorg.libxkbfile + xorg.libxshmfence + zlib + ]; + }; + }; +}