-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.nix
100 lines (90 loc) · 1.89 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
{ pkgs, ... }:
{
# Imports
imports = [
./bash
./configs
./fish
./nvim
./tmux
];
# Packages
home.packages =
with pkgs;
let
pythonWithPackages = python3.withPackages (
p: with p; [
requests
pyyaml
# ansible-language-server uses python to get sys.path in order to get collections list
ansible
]
);
terraformAlias = stdenvNoCC.mkDerivation {
pname = "opentofu-alias";
version = "0.1";
src = emptyDirectory;
nativeBuildInputs = [ makeWrapper ];
buildPhase = ''
mkdir -p $out/bin
makeWrapper ${opentofu}/bin/tofu $out/bin/terraform
'';
};
in
[
# Command-line tools
ripgrep
yq-go
# Task runners
gnumake
go-task
lefthook
# C build tools
gcc
autoconf
automake
cmake
bear
# Ansible
ansible
# Containers
podman
# Kubernetes
kubectl
kubernetes-helm
# Languages
pythonWithPackages
opentofu
terraformAlias
nodejs
nodePackages.typescript
];
# Home Manager
programs.home-manager.enable = true;
# User-specific executable files
home.sessionPath = [ "$HOME/.local/bin" ];
# Environment variables
home.sessionVariables = {
# Disable HashiCorp checkpoint service (terraform, packer etc)
CHECKPOINT_DISABLE = 1;
};
# ssh-agent
services.ssh-agent.enable = true;
# Man
programs.man = {
enable = true;
generateCaches = true;
};
# Less, a more advanced file pager than more
programs.less.enable = true;
# Exa, a modern replacement for ls
programs.eza = {
enable = true;
};
# Fd, a simple, fast and user-friendly alternative to find
programs.fd = {
enable = true;
};
# Jq, command-line JSON processor
programs.jq.enable = true;
}