configuration.nix/nvim/default.nix
Jalil David Salamé Messina 8b2984be90
All checks were successful
/ check (push) Successful in 26s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 1s
fix(nvim): use unstable pkgset
Instead of setting some specific unstable packages, make nixvim always
use packages from nixos-unstable.
2024-10-14 09:32:53 +02:00

17 lines
388 B
Nix

{ system, unstable }:
{ lib, config, ... }:
let
cfg = config.jhome.nvim;
in
{
imports = [ ./options.nix ];
config.programs.nixvim = lib.mkMerge [
(import ./standalone.nix { standalone = false; })
(lib.mkIf cfg.enable {
nixpkgs = lib.mkForce { pkgs = import unstable { inherit system; }; };
enable = true;
defaultEditor = lib.mkDefault true;
})
];
}