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
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:
parent
584945f1e8
commit
e03cd65e87
11 changed files with 250 additions and 198 deletions
26
flake-modules/overlays.nix
Normal file
26
flake-modules/overlays.nix
Normal 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
|
||||
;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue