diff options
-rw-r--r-- | nixos/modules/config/no-x-libs.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/fastfetch/default.nix | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix index ede41747317ec..f03c055a6e1d4 100644 --- a/nixos/modules/config/no-x-libs.nix +++ b/nixos/modules/config/no-x-libs.nix @@ -30,7 +30,7 @@ with lib; beam = super.beam_nox; cairo = super.cairo.override { x11Support = false; }; dbus = super.dbus.override { x11Support = false; }; - fastfetch = super.fastfetch.override { x11Support = false; }; + fastfetch = super.fastfetch.override { waylandSupport = false; x11Support = false; }; ffmpeg_4 = super.ffmpeg_4.override { ffmpegVariant = "headless"; }; ffmpeg_5 = super.ffmpeg_5.override { ffmpegVariant = "headless"; }; # dep of graphviz, libXpm is optional for Xpm support diff --git a/pkgs/tools/misc/fastfetch/default.nix b/pkgs/tools/misc/fastfetch/default.nix index a2ebc67e4191c..bcbdecd6d000c 100644 --- a/pkgs/tools/misc/fastfetch/default.nix +++ b/pkgs/tools/misc/fastfetch/default.nix @@ -28,6 +28,7 @@ , xfce , yyjson , zlib +, waylandSupport ? true , x11Support ? true }: @@ -66,8 +67,9 @@ stdenv.mkDerivation (finalAttrs: { pciutils rpm vulkan-loader - wayland zlib + ] ++ lib.optionals waylandSupport [ + wayland ] ++ lib.optionals x11Support [ libXrandr libglvnd @@ -93,6 +95,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeOptionType "filepath" "CMAKE_INSTALL_SYSCONFDIR" "${placeholder "out"}/etc") (lib.cmakeBool "ENABLE_SYSTEM_YYJSON" true) (lib.cmakeBool "ENABLE_GLX" x11Support) + (lib.cmakeBool "ENABLE_WAYLAND" waylandSupport) (lib.cmakeBool "ENABLE_X11" x11Support) (lib.cmakeBool "ENABLE_XCB" x11Support) (lib.cmakeBool "ENABLE_XCB_RANDR" x11Support) |