tv base: import vim

This commit is contained in:
tv 2015-11-01 13:28:16 +01:00
parent 2977f6d291
commit 9c36073e7b
4 changed files with 9 additions and 16 deletions

View File

@ -110,7 +110,6 @@ with lib;
#minicom #minicom
#mtools #mtools
#ncmpc #ncmpc
#neovim
#nethogs #nethogs
#nix-prefetch-scripts #cvs bug #nix-prefetch-scripts #cvs bug
#openssl #openssl

View File

@ -3,17 +3,13 @@
with builtins; with builtins;
with lib; with lib;
let
# "7.4.335" -> "74"
majmin = x: concatStrings (take 2 (splitString "." x));
in
{ {
krebs.enable = true; krebs.enable = true;
networking.hostName = config.krebs.build.host.name; networking.hostName = config.krebs.build.host.name;
imports = [ imports = [
./vim.nix
{ {
# stockholm dependencies # stockholm dependencies
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -107,10 +103,8 @@ in
lAtr = "ls -lAtr"; lAtr = "ls -lAtr";
# alias ll='ls -l' # alias ll='ls -l'
ls = "ls -h --color=auto --group-directories-first"; ls = "ls -h --color=auto --group-directories-first";
# alias vim='vim -p'
# alias vi='vim'
# alias view='vim -R'
dmesg = "dmesg -L --reltime"; dmesg = "dmesg -L --reltime";
view = "vim -R";
}; };
programs.bash = { programs.bash = {
@ -153,10 +147,6 @@ in
} }
{ {
nixpkgs.config.packageOverrides = pkgs: {
nano = pkgs.vim;
};
services.cron.enable = false; services.cron.enable = false;
services.nscd.enable = false; services.nscd.enable = false;
services.ntp.enable = false; services.ntp.enable = false;

View File

@ -7,6 +7,13 @@ let
vim' 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"; environment.variables.EDITOR = mkForce "vim";
}; };

View File

@ -6,9 +6,6 @@ lib // rec {
inherit lib pkgs; inherit lib pkgs;
}; };
# "7.4.335" -> "74"
majmin = with lib; x : concatStrings (take 2 (splitString "." x));
# TODO deprecate shell-escape for lass # TODO deprecate shell-escape for lass
shell-escape = lib.shell.escape; shell-escape = lib.shell.escape;
} }