nix-conf/modules/overlays/default.nix

55 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-02 19:32:20 +01:00
{ config, lib, self, ... }:
let cfg = config.jopejoe1.overlays;
in {
options.jopejoe1.overlays = {
enable = lib.mkEnableOption "Enable Overlays";
};
config = lib.mkIf cfg.enable {
nixpkgs = {
overlays = [
self.inputs.prismlauncher.overlays.default
(_self: super: rec {
2024-01-02 21:36:38 +01:00
firefox-addons = self.inputs.firefox-addons.packages."${config.nixpkgs.hostPlatform.system}";
2024-01-02 19:32:20 +01:00
tela-icon-theme = super.tela-icon-theme.overrideAttrs
(_old: { src = self.inputs.tela-icon-theme; });
2024-01-05 22:37:54 +01:00
openrgb = super.openrgb.overrideAttrs
(_old: { src = self.inputs.openrgb; });
2024-01-02 19:32:20 +01:00
prismlauncher = super.prismlauncher.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
self.inputs.prism-game-options-patch
./prism-ftb.patch
];
});
libadwaita = super.libadwaita.overrideAttrs (old: {
patches = (old.patches or [ ])
++ [ ./adwaita-theming-support.patch ];
doCheck = false;
});
discord = (super.discord.overrideAttrs (old: {
desktopItem = old.desktopItem.override
(old: { exec = old.exec + " --disable-gpu-sandbox"; });
})).override {
withOpenASAR = true;
withVencord = true;
withTTS = true;
};
catppuccin-plymouth =
super.catppuccin-plymouth.override { variant = "frappe"; };
})
];
};
};
}