mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
Expose the generated viml config, this has 2 advantages:
1/ user can choose to write the generated config to a file of its choice
2/ the user can prepend/append to the config before writing it
xdg.configFile."nvim/init.vim".text = ''
" prepend some config
${programs.neovim.generatedConfigViml}
" append some config
'';
NOTE: this was already possible with
xdg.configFile."nvim/init.vim" = mkMerge [
(mkBefore {
text = ''
" prepend some config
'';
})
(mkAfter {
text = ''
" append some config
'';
})
]
|
||
|---|---|---|
| .. | ||
| accounts | ||
| config | ||
| i18n/input-method | ||
| lib | ||
| lib-bash | ||
| misc | ||
| programs | ||
| services | ||
| targets | ||
| default.nix | ||
| files.nix | ||
| home-environment.nix | ||
| manual.nix | ||
| modules.nix | ||
| systemd-activate.rb | ||
| systemd-activate.sh | ||
| systemd.nix | ||
| xcursor.nix | ||
| xresources.nix | ||
| xsession.nix | ||