mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
flake-parts/setups: fix NixVim importing for home-manager and NixOS setups
This commit is contained in:
parent
2d8089e821
commit
e796aae01f
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user