From 9c36073e7b0081eaec37b0de232aeee2dcf5d8ab Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2015 13:28:16 +0100 Subject: tv base: import vim --- tv/2configs/base.nix | 14 ++------------ tv/2configs/vim.nix | 7 +++++++ 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'tv/2configs') diff --git a/tv/2configs/base.nix b/tv/2configs/base.nix index 0a8dbdcc2..41159690d 100644 --- a/tv/2configs/base.nix +++ b/tv/2configs/base.nix @@ -3,17 +3,13 @@ with builtins; with lib; -let - # "7.4.335" -> "74" - majmin = x: concatStrings (take 2 (splitString "." x)); -in - { krebs.enable = true; networking.hostName = config.krebs.build.host.name; imports = [ + ./vim.nix { # stockholm dependencies environment.systemPackages = with pkgs; [ @@ -107,10 +103,8 @@ in lAtr = "ls -lAtr"; # alias ll='ls -l' ls = "ls -h --color=auto --group-directories-first"; - # alias vim='vim -p' - # alias vi='vim' - # alias view='vim -R' dmesg = "dmesg -L --reltime"; + view = "vim -R"; }; programs.bash = { @@ -153,10 +147,6 @@ in } { - nixpkgs.config.packageOverrides = pkgs: { - nano = pkgs.vim; - }; - services.cron.enable = false; services.nscd.enable = false; services.ntp.enable = false; diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 7eb2eb139..74eee0a3b 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -7,6 +7,13 @@ let vim' ]; + # Nano really is just a stupid name for Vim. + # Note: passing just pkgs.vim to cvs to not rebuild it all the time + nixpkgs.config.packageOverrides = pkgs: { + cvs = pkgs.cvs.override { nano = pkgs.vim; }; + nano = vim'; + }; + environment.variables.EDITOR = mkForce "vim"; }; -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/7a300000.lock: No such file or directory (2)