From 6c8c7976d8718870967cdc1e0930c297527b16bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Fri, 16 May 2025 21:33:47 +0200 Subject: [PATCH] vanadium: add extra overlay --- nix/configurations/vanadium.nix | 1 + nix/configurations/vanadium/nixos/overlay.nix | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 nix/configurations/vanadium/nixos/overlay.nix diff --git a/nix/configurations/vanadium.nix b/nix/configurations/vanadium.nix index c5d4ef8b..6d726d0a 100644 --- a/nix/configurations/vanadium.nix +++ b/nix/configurations/vanadium.nix @@ -41,6 +41,7 @@ in ../overlays ../overlays/packages.nix ../overlays/packagesStable.nix + ./vanadium/nixos/overlay.nix ]; # Set NIX_PATH and flake registry at the same time diff --git a/nix/configurations/vanadium/nixos/overlay.nix b/nix/configurations/vanadium/nixos/overlay.nix new file mode 100644 index 00000000..423efbec --- /dev/null +++ b/nix/configurations/vanadium/nixos/overlay.nix @@ -0,0 +1,26 @@ +let + sources = import ../../../sources.nix; + lib = import (sources.nixpkgs + "/lib"); + + infuse-lib = import sources.infuse { + inherit lib; + sugars = infuse-lib.v1.default-sugars; + }; + + infuse = infuse-lib.v1.infuse; +in + # Why shouldn't I go crazy with overlays? + (final: prev: + infuse prev { + cmus.__input.alsaSupport = _: false; + + fish.__input.usePython = _: false; + + tmux.__input.withSixel = _: false; + + ranger.__input.imagePreviewSupport = _: false; + ranger.__input.sixelPreviewSupport = _: false; + + vlc.__input.chromecastSupport = _: false; + vlc.__input.waylandSupport = _: false; + })