-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
106 lines (92 loc) · 2.36 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{pkgs, ...}: {
home.username = "jericho";
home.homeDirectory = "/home/jericho";
home.stateVersion = "23.11";
home.file.".ansible.cfg".text = ''
[defaults]
strategy_plugins = ${pkgs.python311Packages.mitogen}/lib/python3.11/site-packages/ansible_mitogen/plugins/strategy/
strategy = mitogen_linear
'';
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
programs.home-manager.enable = true;
programs.rbw = {
enable = true;
settings = {
base_url = "https://pass.jkeyne.dev";
email = "jerichokeyne@gmail.com";
# pinentry = pkgs.mate.mate-polkit;
pinentry = pkgs.pinentry-gnome3;
};
};
programs.direnv = {
enable = true;
enableBashIntegration = true;
enableNushellIntegration = true;
nix-direnv.enable = true;
};
programs.bash = {
enable = true;
enableCompletion = true;
historyControl = ["erasedups" "ignorespace"];
initExtra = ''
export PATH="$HOME/go/bin:$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
export XDG_DATA_DIRS="$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"
export EDITOR="hx"
# For local ROSA testing
export RHCS_CLUSTER_NAME_PREFIX=jkeyne # terraform
export NAME_PREFIX=jkeyne # ROSA CLI
eval $(ssh-agent)
if command -v rosa &>/dev/null; then
source <(rosa completion bash)
fi
if command -v ocm &>/dev/null; then
source <(ocm completion bash)
fi
'';
};
programs.atuin = {
enable = true;
enableBashIntegration = true;
flags = ["--disable-up-arrow"];
settings = {
filter_mode_shell_up_key_binding = "session";
enter_accept = false;
};
};
programs.git = {
enable = true;
delta.enable = true;
userName = "Jericho Keyne";
userEmail = "jkeyne@redhat.com";
ignores = [
"Pipfile"
"justfile"
"*.lock"
"!flake.lock"
"*.swp"
"*~"
".env"
".envrc"
"shell.nix"
];
extraConfig = {
http.sslVerify = false;
push.autoSetupRemote = true;
};
};
programs.zoxide.enable = true;
programs.bat.enable = true;
programs.lsd = {
enable = true;
enableAliases = true;
};
programs.starship = {
enable = true;
enableBashIntegration = true;
};
}