configuration.nix/nvim/default.nix
Jalil David Salamé Messina 369d7f2fd8
All checks were successful
/ check (push) Successful in 48s
/ 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
fix(nvim): forward hm cfg options
Otherwise there is no way to configure nvim from home manager as the
options aren't read.
2024-12-14 23:06:53 +01:00

18 lines
412 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;
jhome.nvim = cfg;
})
];
}