2024-10-14 09:31:19 +02:00
|
|
|
{ system, unstable }:
|
2024-07-03 23:58:26 +02:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
2024-06-23 14:32:47 +02:00
|
|
|
cfg = config.jhome.nvim;
|
2024-07-03 23:58:26 +02:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [ ./options.nix ];
|
2024-02-16 20:10:20 +01:00
|
|
|
|
2024-06-23 14:32:47 +02:00
|
|
|
config.programs.nixvim = lib.mkMerge [
|
2024-10-14 09:31:19 +02:00
|
|
|
(import ./standalone.nix { standalone = false; })
|
2024-06-23 14:32:47 +02:00
|
|
|
(lib.mkIf cfg.enable {
|
2024-10-14 09:31:19 +02:00
|
|
|
nixpkgs = lib.mkForce { pkgs = import unstable { inherit system; }; };
|
2024-06-23 14:32:47 +02:00
|
|
|
enable = true;
|
|
|
|
defaultEditor = lib.mkDefault true;
|
|
|
|
})
|
|
|
|
];
|
2024-02-16 20:10:20 +01:00
|
|
|
}
|