Files
nixos-template-base/environment.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2016-04-23 12:43:24 +02:00
{ config, pkgs, ... }:
{
# Nombre de process d'installation en parrallèle effectués par Nix
nix.buildCores = 0;
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "16.03";
2016-04-23 12:43:24 +02:00
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment = {
systemPackages = with pkgs; [
bind # utilisé pour les utilitaires comme dig
byobu
2016-05-16 15:34:12 +02:00
exfat # Pour monter les FAT avec Fuse
git gitAndTools.gitSVN gitAndTools.tig
2016-04-23 21:40:30 +02:00
gnumake
2016-04-23 12:43:24 +02:00
gnupg
htop
ncdu
nmap
mtr
p7zip
parted
2016-05-10 22:10:41 +02:00
pciutils
2016-04-23 12:43:24 +02:00
python34Packages.glances
pwgen
tmux
tree
2016-05-10 22:10:41 +02:00
usbutils
2016-04-23 12:43:24 +02:00
(import ./vim.nix)
wget
2016-05-04 21:51:52 +02:00
which
2016-04-23 12:43:24 +02:00
];
shellAliases = {
byobu = "byobu-tmux";
tree = "tree -C";
tree1 = "tree -d -L 1";
tree2 = "tree -d -L 2";
tree3 = "tree -d -L 3";
grep = "grep --color=auto";
vi = "vim";
};
etc.gitconfig.text = builtins.readFile ./gitconfig;
};
programs.bash = {
enableCompletion = true;
promptInit = builtins.readFile ./bash-prompt.sh;
interactiveShellInit = builtins.readFile ./bash-interactive-init.sh;
};
}