diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-12-03 16:20:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 16:20:08 +0100 |
commit | d85c6853204399ba215865c67c7598e732dcdaef (patch) | |
tree | 8556b8cbe10bf8cbaa1338717a1bc4f8ad7e48b8 /nixos | |
parent | 79ea4b7e4911d95bd4ac3a88b5dc47c945dc3086 (diff) | |
parent | 0b5a0cbc69f18f2a123bf4ae0751ee718ef04e53 (diff) |
Merge pull request #201380 from Ma27/installer/vim-with-nix-support
nixos/profiles/base: install vim w/nix-syntax plugin
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/profiles/base.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/profiles/base.nix b/nixos/modules/profiles/base.nix index c415ca857437b..eebc0df1040c4 100644 --- a/nixos/modules/profiles/base.nix +++ b/nixos/modules/profiles/base.nix @@ -20,7 +20,13 @@ pkgs.mkpasswd # for generating password files # Some text editors. - pkgs.vim + (pkgs.vim.customize { + name = "vim"; + vimrcConfig.packages.default = { + start = [ pkgs.vimPlugins.vim-nix ]; + }; + vimrcConfig.customRC = "syntax on"; + }) # Some networking tools. pkgs.fuse |