-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdefault.nix
More file actions
77 lines (67 loc) · 1.46 KB
/
default.nix
File metadata and controls
77 lines (67 loc) · 1.46 KB
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
74
75
76
77
# The main homies file, where homies are defined. See the README.md for
# instructions.
with { fetch = import ./nix/fetch.nix; };
let
# The (pinned) Nixpkgs where the original packages are sourced from
pkgs = import fetch.nixpkgs {};
# The list of packages to be installed
homies = with pkgs;
[
# Customized packages
bashrc
git
snack
tmux
vim
pkgs.curl
pkgs.fzf
pkgs.gitAndTools.gitAnnex
pkgs.gnupg
pkgs.htop
pkgs.jq
pkgs.less
pkgs.nix
pkgs.pass
pkgs.tree
pkgs.xclip
];
## Some cunstomizations
# A custom '.bashrc' (see bashrc/default.nix for details)
bashrc = pkgs.callPackage ./bashrc {};
# Git with config baked in
git = import ./git (
{ inherit (pkgs) 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;
});
snack = (import fetch.snack).snack-exe;
# Vim with a custom vimrc and set of packages
vim = import ./vim
{ inherit (pkgs)
haskellPackages
makeWrapper
symlinkJoin
vimPlugins
vimUtils
vim_configurable;
inherit
git
tmux;
};
in
if pkgs.lib.inNixShell
then pkgs.mkShell
{ buildInputs = homies;
shellHook = ''
$(bashrc)
'';
}
else homies