nixos-config/modules/overlay.nix
2021-03-11 20:28:50 +03:00

50 lines
1.3 KiB
Nix

{ pkgs, config, lib, inputs, ... }:
let
filterGit =
builtins.filterSource (type: name: name != ".git" || type != "directory");
system = "x86_64-linux";
old = import inputs.nixpkgs-old ({
config = config.nixpkgs.config;
localSystem = { inherit system; };
});
in {
nixpkgs.overlays = [
(import inputs.emacs-overlay)
(self: super: rec {
nix = super.nix // {
meta = super.nix.meta // { platforms = lib.platforms.unix; };
};
nur = (import inputs.NUR {
pkgs = old;
nurpkgs = pkgs;
}).repos;
inherit (nur.balsoft.pkgs) termNote nix-patch;
lambda-launcher = inputs.lambda-launcher.defaultPackage.x86_64-linux;
simple-osd = inputs.simple-osd-daemons.packages.x86_64-linux;
inherit old;
yt-utilities = inputs.yt-utilities.defaultPackage.x86_64-linux;
nerdfonts = nur.balsoft.pkgs.roboto-mono-nerd;
weechatScripts.wee-slack = super.weechatScripts.wee-slack.overrideAttrs (oa: {
src = inputs.wee-slack;
patches = [(builtins.elemAt oa.patches 0)];
});
nix-zsh-completions = super.nix-zsh-completions.overrideAttrs (_: {
src = inputs.nix-zsh-completions;
});
})
];
nixpkgs.config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
}