-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
92 lines (80 loc) · 2 KB
/
home.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ config, pkgs, ... }:
{
home.packages = [
pkgs.htop
pkgs.thefuck
pkgs.python3
pkgs.python
pkgs.ruby
pkgs.yarn
pkgs.exa
];
programs.home-manager.enable = true;
programs.bat.enable = true;
programs.broot.enable = true;
programs.gpg.enable = true;
programs.zsh = {
enable = true;
enableAutosuggestions = true;
sessionVariables = rec {
HOME_MANAGER_CONFIG = "$HOME/.config/nixpkgs/home.nix";
DEV_ALLOW_ITERM2_INTEGRATION = "1";
EDITOR = "nvim";
VISUAL = EDITOR;
GIT_EDITOR = EDITOR;
GOPATH = "$HOME";
PATH="$HOME/bin:$NIX_PATH:$PATH";
};
# this is slow, kill this later
oh-my-zsh = {
enable = true;
plugins = [
"history"
"git"
"command-not-found"
"autojump"
];
};
initExtra = ''
[ -f /opt/dev/dev.sh ] && source /opt/dev/dev.sh
eval $(thefuck --alias)
function squash() { git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD)); }
alias ls="exa -l --icons"
PATH="$HOME/bin:$NIX_PATH:$PATH";
'';
};
programs.go = {
enable = true;
};
programs.git = {
package = pkgs.gitAndTools.gitFull;
extraConfig = ''
[user]
name = Timur Borkhodoev
email = tim.borkhodoev@shopify.com
[core]
editor = nvim
commitGraph = true
excludesfile = /Users/terrpi/.gitignore
[diff]
algorithm = patience
[gc]
writeCommitGraph = true
[protocol]
version = 2
[url "https://github.com/Shopify/"]
insteadOf = git@github.com:Shopify/
insteadOf = git@github.com:shopify/
insteadOf = ssh://git@github.com/Shopify/
insteadOf = ssh://git@github.com/shopify/
[push]
default = current
[credential]
helper = store --file /opt/dev/var/private/git_credential_store
'';
};
programs.starship = {
enable = true;
enableZshIntegration = true;
};
}