From 0b5a0cbc69f18f2a123bf4ae0751ee718ef04e53 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 15 Nov 2022 22:59:44 +0100 Subject: [PATCH] nixos/profiles/base: install vim w/nix-syntax plugin Considering that you most likely edit Nix code in the installer, that seems like a useful thing. The size of the ISO I got from nix-build nixos/release.nix -A iso_minimal.x86_64-linux is still at 877M. --- nixos/modules/profiles/base.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/profiles/base.nix b/nixos/modules/profiles/base.nix index c415ca857437..eebc0df1040c 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