1
Fork 0
satellite/modules/overlays/flakes.nix
2022-03-08 23:26:20 +02:00

60 lines
1.1 KiB
Nix

{ system }:
{ home-manager
, nixpkgs
, nixpkgs-unstable
, nixos-unstable
, easy-purescript-nix
, easy-dhall-nix
, z
, fish-plugin-vi-mode
, agnoster
, githubNvimTheme
, vim-extra-plugins
, telescope-file-browser-nvim
, ...
}: self: super:
# installs a vim plugin from git with a given tag / branch
let plugin = name: src: self.vimUtils.buildVimPluginFrom2Nix {
inherit name;
inherit src;
};
in
{
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
config.allowBroken = true;
};
easy-purescript-nix = self.callPackage easy-purescript-nix { };
easy-dhall-nix = self.callPackage easy-dhall-nix { };
myFishPlugins = {
z = {
src = z;
name = "z";
};
vi-mode = {
src = fish-plugin-vi-mode;
name = "vi-mode";
};
themes = {
agnoster = {
src = agnoster;
name = "agnoster";
};
};
};
githubNvimTheme = githubNvimTheme;
# Vim plugins
myVimPlugins = {
telescope-file-browser-nvim =
plugin "file_browser" telescope-file-browser-nvim;
};
}