vim nitpicks

This commit is contained in:
Motiejus Jakštys 2023-08-18 18:50:39 +03:00
parent 74b19c049b
commit 7063b1d84e
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
base = { base = {
zfs.enable = true; zfs.enable = true;
users = { users = {
installVimPlugins = true; devEnvironment = true;
passwd = { passwd = {
root.passwordFile = config.age.secrets.root-passwd-hash.path; root.passwordFile = config.age.secrets.root-passwd-hash.path;
motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path; motiejus.passwordFile = config.age.secrets.motiejus-passwd-hash.path;

View File

@ -6,7 +6,7 @@
... ...
}: { }: {
options.mj.base.users = with lib.types; { options.mj.base.users = with lib.types; {
installVimPlugins = lib.mkOption { devEnvironment = lib.mkOption {
type = bool; type = bool;
default = false; default = false;
}; };
@ -57,7 +57,7 @@
programs.direnv.enable = true; programs.direnv.enable = true;
programs.vim = { programs.vim = {
enable = true; enable = true;
plugins = lib.mkIf config.mj.base.users.installVimPlugins [ plugins = lib.mkIf config.mj.base.users.devEnvironment [
pkgs.vimPlugins.fugitive pkgs.vimPlugins.fugitive
pkgs.vimPlugins.vim-go pkgs.vimPlugins.vim-go
pkgs.vimPlugins.zig-vim pkgs.vimPlugins.zig-vim