summary refs log tree commit diff
path: root/nixos/modules/profiles
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2022-11-15 22:59:44 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2022-12-03 16:05:01 +0100
commit0b5a0cbc69f18f2a123bf4ae0751ee718ef04e53 (patch)
treede3bf9d74b809b4776823cc56f4a2012a11ca958 /nixos/modules/profiles
parentef166d7ff3062c70ed60c729dac4cd0962910cef (diff)
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.
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r--nixos/modules/profiles/base.nix8
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