-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdefault.nix
73 lines (63 loc) · 1.32 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# The main homies file, where homies are defined. See the README.md for
# instructions.
let
# The (pinned) Nixpkgs where the original packages are sourced from
pkgs = import ./nixpkgs {};
# The list of packages to be installed
homies = with pkgs;
[
# Customized packages
bashrc
git
tmux
vim
pkgs.curl
pkgs.htop
pkgs.nix
pkgs.pass
pkgs.tree
pkgs.xclip
];
## Some cunstomizations
# A custom '.bashrc' (see bashrc/default.nix for details)
bashrc = import ./bashrc (with pkgs;
{ inherit
writeScriptBin
;
});
# Git with config baked in
git = import ./git (with pkgs;
{ inherit
makeWrapper
symlinkJoin
;
git = pkgs.git;
});
# Tmux with a custom tmux.conf baked in
tmux = import ./tmux (with pkgs;
{ inherit
makeWrapper
symlinkJoin
writeText
;
tmux = pkgs.tmux;
});
# Vim with a custom vimrc and set of packages
vim = import ./vim (with pkgs;
{inherit
symlinkJoin
makeWrapper
vim_configurable
vimUtils
vimPlugins
haskellPackages;
});
in
if pkgs.lib.inNixShell
then pkgs.mkShell
{ buildInputs = homies;
shellHook = ''
$(bashrc)
'';
}
else homies