This commit is contained in:
parent
a0575bdb2a
commit
703bf836de
210 changed files with 1 additions and 1 deletions
24
modules/nixvim/use-in-home.nix
Normal file
24
modules/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
|
||||
neovim = inputs.nixvim.legacyPackages.${pkgs.system}.makeNixvimWithModule {
|
||||
inherit pkgs;
|
||||
|
||||
extraSpecialArgs.homeConfig = hmArgs.config;
|
||||
|
||||
module = config.flake.modules.nixvim.custom;
|
||||
};
|
||||
in
|
||||
{
|
||||
home = {
|
||||
packages = [ neovim ];
|
||||
sessionVariables.EDITOR = lib.mkForce (lib.getExe neovim);
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue