-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.nix
More file actions
151 lines (126 loc) · 3.19 KB
/
configuration.nix
File metadata and controls
151 lines (126 loc) · 3.19 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{ pkgs, ... }: {
system.stateVersion = 5;
# services.nix-daemon.enable = true;
programs.zsh.enable = true;
nix = {
package = pkgs.nix;
settings.trusted-users = [ "root" "neuro" ];
};
fonts = {
packages = with pkgs; [
anonymousPro
nerd-fonts.fira-code
nerd-fonts.hack
nerd-fonts.jetbrains-mono
];
};
users.users.neuro = {
name = "neuro";
home = "/Users/neuro";
};
security.pam.services.sudo_local.touchIdAuth = true;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.neuro = { pkgs, fenix, ... }: {
# stateVersion reflects the initial home-manager setup version; do not bump
home.stateVersion = "22.05";
home.sessionPath = [ "$HOME/.local/bin" "$HOME/.cargo/bin" ];
home.packages = with pkgs; [
cachix jq
tig gh
mc xz htop
wget curl
gmailctl jsonnet
# rclone restic
podman qemu
google-cloud-sdk
python3 poetry ruff pyright
openssl gnupg
# (pkgs.callPackage ./ossl.nix { })
# Rust: https://github.com/nix-community/fenix
(fenix.stable.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer
];
manual.manpages.enable = false;
manual.html.enable = false;
manual.json.enable = false;
programs.git = {
enable = true;
lfs.enable = true;
ignores = [
".DS_Store"
];
signing = {
format = "openpgp";
key = "134C02E813889057DA2F3FDBEDDD4C5DAA149BBE";
signByDefault = true;
signer = "/etc/profiles/per-user/neuro/bin/gpg";
};
settings = {
user.name = "Anton Arapov";
user.email = "anton@deadbeef.mx";
init.defaultBranch = "master";
core.editor = "vim";
core.whitespace = "trailing-space,space-before-tab";
url."git@github.com:" = {
insteadOf = "https://github.com/";
};
pull.ff = "only";
push.autoSetupRemote = true;
};
};
programs.neovim = {
enable = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
vim-nix vim-jsonnet
];
};
programs.starship = {
enable = true;
enableZshIntegration = true;
# Configuration written to ~/.config/starship.toml
settings = {
add_newline = false;
character = {
success_symbol = "[➜](bold green)";
error_symbol = "[➜](bold red)";
};
};
};
programs.zsh = {
enable = true;
autosuggestion.enable = true;
sessionVariables = {
EDITOR = "vim";
};
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
#default
};
"github.com" = {
hostname = "github.com";
user = "git";
identityFile = [ "~/.ssh/id_rsa" ];
identitiesOnly = true;
};
"github.openssl.org" = {
hostname = "github.openssl.org";
user = "git";
identityFile = [ "~/.ssh/id_rsa" ];
identitiesOnly = true;
};
};
};
};
}