feat: add flake-friendly nix-index overlay

See: https://github.com/nix-community/nix-index/pull/227
This commit is contained in:
teutat3s 2023-12-04 12:34:44 +01:00 committed by Hendrik Sokolowski
parent f706733f0b
commit b7ebed04d3

View file

@ -1,5 +1,34 @@
[
(import ../pkgs)
(import ./manix.nix)
(import ./neovim-plugins.nix)
]
{
self,
lib,
inputs,
...
}: {
flake = {
nixosModules = rec {
overlays = ({ ... }: {
nixpkgs.overlays = [
(final: prev:
let
unstable = import inputs.unstable {
system = prev.system;
#config.allowUnfreePredicate = pkg: builtins.elem (prev.lib.getName pkg) [
# "1password-cli"
# "1password"
# "slack"
#];
};
in
{
#slack = unstable.slack;
#vimPlugins = prev.vimPlugins // {inherit (unstable.vimPlugins) nvim-lspconfig;};
})
(import ../pkgs)
(import ./neovim-plugins.nix)
(import ./nix-index.nix)
];
});
};
};
}