Move neovim/nixvim configuration
This commit is contained in:
parent
32e28379e2
commit
6c1b494e82
56 changed files with 438 additions and 404 deletions
24
modules2/nixvim/use-in-home.nix
Normal file
24
modules2/nixvim/use-in-home.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, inputs, lib, ... }:
|
||||
|
||||
{
|
||||
flake.modules.homeManager.base =
|
||||
hmArgs@{ pkgs, ... }:
|
||||
let
|
||||
# Ideally:
|
||||
# nixvim = self.packages.${pkgs.system}.nixvim;
|
||||
# but https://github.com/danth/stylix/pull/415#issuecomment-2832398958
|
||||
nixvim = inputs.nixvim.legacyPackages.${pkgs.system}.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs.homeConfig = hmArgs.config;
|
||||
|
||||
module = config.flake.modules.nixvim.custom;
|
||||
};
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = [ nixvim ];
|
||||
sessionVariables.EDITOR = lib.mkForce (lib.getExe nixvim);
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue