rix101/overlays/default.nix
reo101 752f4ea454
feat(flake)!: update
Fix `nixUnstable` -> `nixVersions.latest` (including `*-limited` overlay)
Remove `repl-flake` nix experimental feature (removed as of `2.22.0`)
Remove references to `rnix-lsp` (deprecated)
2024-05-04 22:47:27 +03:00

73 lines
1.9 KiB
Nix

# This file defines overlays
{ inputs, outputs, ... }:
{
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs {
pkgs = final;
};
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
lib = prev.lib // {
maintainers = {
reo101 = {
name = "Pavel Atanasov";
email = "pavel.atanasov2001@gmail.com";
github = "reo101";
githubId = "37866329";
keys = [
{
fingerprint = "8A29 0250 C775 7813 1DD1 DC57 7275 0ABE E181 26D0";
}
];
};
};
};
nix-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
nix = prev.nix;
nix-output-monitor = prev.nix-output-monitor;
};
nixVersions = prev.nixVersions // {
latest-monitored = inputs.nix-monitored.packages.${final.system}.default.override {
nix = prev.nixVersions.latest;
nix-output-monitor = prev.nix-output-monitor;
};
};
himalaya = prev.himalaya.overrideAttrs (oldAttrs: rec {
buildInputs =
(prev.buildInputs or [ ]) ++
final.lib.optionals final.stdenv.isDarwin ([
(with final.darwin.apple_sdk.frameworks; [
Security
])
(with final; [
iconv
])
]);
});
river = prev.river.overrideAttrs (oldAttrs: rec {
xwaylandSupport = true;
});
discord = prev.discord.override {
withOpenASAR = true;
withVencord = true;
};
prismlauncher = prev.prismlauncher.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [
./offline-mode-prism-launcher.diff
];
});
};
}