-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.nix
More file actions
89 lines (72 loc) · 2.13 KB
/
dev.nix
File metadata and controls
89 lines (72 loc) · 2.13 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
78
79
80
81
82
83
84
85
86
87
88
89
userName:
{ config, lib, pkgs, ... }:
{
# Provide a nice prompt if the terminal supports it.
programs.bash.promptInit = ''
if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then
PROMPT_COLOR="1;31m"
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
((UID)) && PROMPT_COLOR="1;32m"
if [ -n "$INSIDE_EMACS" ] || [ "$TERM" = "eterm" ] || [ "$TERM" = "eterm-color" ]; then
# Emacs term mode doesn't support xterm title escape sequence (\e]0;)
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
else
. ${pkgs.git}/share/bash-completion/completions/git-prompt.sh
PS1="\n\[\033[$PROMPT_COLOR\][\[\e]0;\u@\h: \w\a\]\u@\h:\w"'$(__git_ps1 ":%s")'"]\\$\[\033[0m\] "
fi
if test "$TERM" = "xterm"; then
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
fi
fi
'';
home-manager.users."${userName}" = { pkgs, ... }: {
programs = {
git = {
enable = true;
settings.user = {
name = "Daniel Rolls";
email = "daniel.rolls.27@googlemail.com";
};
};
neovim = {
plugins = with pkgs.vimPlugins; [
haskell-vim
coc-json
coc-vimlsp
];
extraConfig = "let g:vimwiki_list = [{'path': '/data/wiki/', 'syntax': 'markdown', 'ext': '.md'}]";
};
vscode = {
enable = true;
package = pkgs.vscodium; # free version of vscode
profiles.default.extensions = with pkgs.vscode-extensions; [
github.copilot
haskell.haskell
vscodevim.vim
];
};
};
home.packages = with pkgs; [
stack
];
home.file = {
".haskeline".text = ''
maxHistorySize: Nothing
historyDuplicates: IgnoreConsecutive
editMode: Vi
'';
".stack/config.yaml".text = ''
templates:
params:
author-email: daniel.rolls.27@googlemail.com
author-name: Daniel Rolls
github-username: danielrolls
'';
};
};
environment.systemPackages = with pkgs; [
jrnl
claude-code
];
}