feat: use flake-parts to clean up the flake.nix
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

This is much more manageable!
This commit is contained in:
Jalil David Salamé Messina 2024-10-04 23:23:30 +02:00
parent 584945f1e8
commit e03cd65e87
Signed by: jalil
GPG key ID: F016B9E770737A0B
11 changed files with 250 additions and 198 deletions

View file

@ -0,0 +1,26 @@
{ 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
;
};
}