flake-parts/setups: fix NixVim importing for home-manager and NixOS setups

This commit is contained in:
Gabriel Arazas 2024-02-03 21:29:36 +08:00
parent 2d8089e821
commit e796aae01f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 6 additions and 2 deletions

View File

@ -150,7 +150,11 @@ let
(lib.mkIf (config.nixvim.instance != null) (lib.mkIf (config.nixvim.instance != null)
({ lib, ... }: { ({ lib, ... }: {
programs.nixvim = { imports = [
inputs.nixvim.homeManagerModules.nixvim
];
config.programs.nixvim = { ... }: {
enable = true; enable = true;
imports = imports =
partsConfig.setups.nixvim.configs.${config.nixvim.instance}.modules partsConfig.setups.nixvim.configs.${config.nixvim.instance}.modules

View File

@ -401,7 +401,7 @@ let
{ config, lib, ... }: { { config, lib, ... }: {
imports = [ inputs.nixvim.nixosModules.nixvim ]; imports = [ inputs.nixvim.nixosModules.nixvim ];
programs.nixvim = { programs.nixvim = { ... }: {
enable = true; enable = true;
imports = imports =
partsConfig.setups.nixvim.${config.nixvim.instance}.modules partsConfig.setups.nixvim.${config.nixvim.instance}.modules