-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.nix
152 lines (141 loc) · 4.02 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
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
152
{ inputs, config, lib, pkgs, ... }:
let
php = pkgs.php83.buildEnv { extraConfig = "memory_limit = 4G"; };
php81 = pkgs.php81.buildEnv { extraConfig = "memory_limit = 4G"; };
fish = import ./fish.nix;
tmux = import ./tmux.nix;
in {
nixpkgs = {
config.allowUnfree = true;
overlays = [
inputs.neovim-nightly-overlay.overlay
];
};
home.username = "gennadi";
home.homeDirectory = "/home/gennadi";
home.stateVersion = "23.11";
# Required to get the fonts installed by home-manager to be picked up by OS.
fonts.fontconfig.enable = true;
# See https://discourse.nixos.org/t/home-manager-installed-apps-dont-show-up-in-applications-launcher/8523/2.
targets.genericLinux.enable = true;
home.packages = with pkgs; [
# nerdfonts
(nerdfonts.override { fonts = [ "JetBrainsMono" "VictorMono" ]; })
monaspace
babelfish
bottom
coreutils
delta
dfu-programmer
du-dust
fd
gcc
git
# git-lfs
gnumake
gnupg
go
just
jq
lazygit
neovim
neovim-nightly
nodejs_20
php
phpPackages.composer
# php81Packages.composer
# php81
pv
ripgrep
symfony-cli
wl-clipboard
openssl
mysql80
# qmk
];
home.file."${config.xdg.configHome}" = {
source = ./config;
recursive = true;
};
home.file.".editorconfig".source = ./editorconfig;
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
KEYTIMEOUT = 1;
# SHELL = "/home/gennadi/.nix-profile/bin/fish";
};
programs = {
# bash = {
# enable = false;
# };
zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
};
bat = {
enable = true;
config = {
theme = "GitHub";
};
};
home-manager = {
enable = true;
};
eza = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
};
fzf = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
};
starship = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
settings = {
add_newline = true;
};
};
zoxide = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
options = [ "--cmd cd" ];
};
tmux = tmux pkgs;
fish = fish pkgs;
};
dconf.settings = {
"org/gnome/desktop/peripherals/mouse" = { natural-scroll = true; };
"org/gnome/desktop/interface" = { show-battery-percentage = true; };
"org/gnome/desktop/input-sources" = {
xkb-options = ["compose:ralt" "caps:escape"];
};
"org/gnome/mutter" = {
# Enable window snapping to the edges of the screen
# edge-tiling = true;
# Enable fractional scaling
# experimental-features = [ "scale-monitor-framebuffer" ];
# dynamic-workspaces = cfg.desktop.gnome.workspaces.dynamicWorkspaces;
};
"org/gnome/shell" = {
favorite-apps = [
"org.gnome.Nautilus.desktop"
"org.gnome.Calendar.desktop"
"google-chrome.desktop"
"org.gnome.Epiphany.desktop"
"phpstorm.desktop"
"org.gnome.Console.desktop"
"org.wezfurlong.wezterm.desktop"
"teams-for-linux.desktop"
"slack.desktop"
"spotify.desktop"
];
};
};
}