configuration.nix/flake-modules/overlays.nix
Jalil David Salamé Messina e03cd65e87
All checks were successful
/ check (push) Successful in 20s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 1s
feat: use flake-parts to clean up the flake.nix
This is much more manageable!
2024-10-04 23:50:12 +02:00

26 lines
637 B
Nix

{ inputs, ... }:
{
# Add unstable packages to overlay
flake.overlays.unstable =
final: prev:
let
unstablePkgs = inputs.unstable.legacyPackages.${prev.stdenv.hostPlatform.system};
in
{
# Get unstable packages
unstable = unstablePkgs;
# Update vim plugins with the versions from unstable
vimPlugins = prev.vimPlugins // unstablePkgs.vimPlugins;
# Get specific packages from unstable
inherit (unstablePkgs)
gitoxide
jujutsu
neovim-unwrapped
ruff # nixpkgs stable version is improperly configured by nixvim
# wezterm
;
};
}