-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.nix
223 lines (192 loc) · 4.58 KB
/
packages.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{ config, pkgs, ... }:
let
unstable = import <unstable> { config = { allowUnfree = true; }; };
subtube = import ./subtube.nix;
mpv_history = import ./mpv_history.nix;
torque = import ./torque.nix;
overriden-yt-dlp = unstable.yt-dlp.override { withAlias = true; };
# import package from specific revision of nixpkgs
#
# myNixpkgs = import (builtins.fetchGit {
# name = "nixos-unstable-2022-04-18";
# url = https://github.com/nixos/nixpkgs/;
# rev = "33cf95ef36d9e2e7aec511297de9a845d6b729fe";
# }) {};
# overridenFuzzel = unstable.fuzzel.overrideAttrs (oldAttrs: rec {
# version = "1.7.x";
# src = pkgs.fetchFromGitea {
# domain = "codeberg.org";
# owner = "dnkl";
# repo = "fuzzel";
# rev = "8e09393463a00fd233b8d3b2ac316c2cfea6c791";
# sha256 = "1ywknv374yca0w862njlyn3bzcvigw3fskpa34ak8hycm05s2jfm";
# };
# });
# overridenLazygit = unstable.lazygit.overrideAttrs (oldAttrs: rec {
# src = pkgs.fetchFromGitHub {
# owner = "jesseduffield";
# repo = "lazygit";
# rev = "09bc6f2aef2bc0c0d76d0b12498ec8976c822ff2";
# sha256 = "sha256-LJXXS+nfQvdesRC3+WU1MVRm3nhrUcTTOF3jKzCHLpE=";
# };
#
# });
personalPackages = with pkgs; [
subtube
mpv_history
torque
];
wayland = true;
work = false;
my-python-packages = python-packages: with python-packages; [
numpy
pillow
pygame
];
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
basePackages = with pkgs; [
neovim
unstable.lazygit
unstable.yarn
unstable.fuzzel
tesseract
rpi-imager
rustc
cargo
rust-analyzer
ncdu
gammastep
rofi-wayland
sxiv
wget
google-chrome
git
qutebrowser
gopls
mpv
overriden-yt-dlp
lsd
zsh
zsh-powerlevel10k
gcc
zig
killall
lua
stow
neofetch
dmenu
vifm
tmux
ffmpeg
docker
docker-compose
fzf
htop
nodePackages.npm
nodePackages.typescript
nodePackages.prettier
nodejs
pavucontrol
yt-dlp
zsh-fzf-tab
rnix-lsp
pipewire
libnotify
dunst
spotify
pamixer
postman
transmission
ripgrep
z-lua
jq
nix-prefetch-scripts
steam
stig
zip
unzip
file
sumneko-lua-language-server
gh
gimp
];
waylandSwitch = with pkgs;
if wayland then [
foot
sway
waybar
grim
slurp
wf-recorder
] else [
polybar
alacritty
xorg.xbacklight
xclip
sxhkd
xdo
];
workSwitch = with pkgs;
if !work then [ ] else [
jetbrains.datagrip
slack
];
in
{
nixpkgs.overlays = [
(self: super: {
neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAttrs: {
version = "master";
src = builtins.fetchGit {
url = https://github.com/neovim/neovim/;
rev = "ab1f96e1d5ba6d6664eb472c2eaade4f91982734";
};
});
})
];
environment.systemPackages = basePackages
++ personalPackages
++ [ python-with-my-packages ]
++ waylandSwitch
++ workSwitch;
services.pipewire.enable = true;
environment.etc."zsh-fzf-tab/fzf-tab.plugin.zsh".source = "${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh";
programs.zsh.enable = true;
programs.zsh.promptInit = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
programs.waybar.enable = true;
programs.light.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true; # so that gtk works properly
extraPackages = with pkgs; [
swaylock
swayidle
wl-clipboard
];
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
services.transmission = {
enable = true;
settings.download-dir = "${config.users.users.infiniter.home}/Videos/Movies";
user = "infiniter";
settings = {
script-torrent-done-enabled = true;
script-torrent-done-filename = "${config.users.users.infiniter.home}/.scripts/torrent_done";
};
};
virtualisation.docker.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
services.openssh.enable = true;
}