-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.nix
executable file
·204 lines (186 loc) · 5.24 KB
/
configuration.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
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ inputs, config, lib, pkgs, system, ... }:
let
reisen = pkgs.callPackage ./reisen/reisen.nix { };
pnpm-shim = pkgs.callPackage ./pnpm-shim.nix { };
in
{
imports =
[
# Include the results of the hardware scan.
./hardware-configuration.nix
./bootloader.nix
./power.nix
./fonts.nix
./language.nix
./de.nix
./nvidia.nix
./shell-environment.nix
./network.nix
./sound.nix
./gaming.nix
./syncthing.nix
./bluetooth.nix
];
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
# Cachix for hyprland - https://wiki.hyprland.org/Nix/Cachix/
# cachic for devenv - https://devenv.sh/guides/using-with-flakes/#modifying-your-flakenix-file
substituters = [
"https://hyprland.cachix.org"
"https://devenv.cachix.org"
"https://ezkea.cachix.org"
"https://cuda-maintainers.cachix.org"
];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Automounting external drives
services.gvfs.enable = true;
services.udisks2.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.jcsan = {
isNormalUser = true;
description = "Jean Carlo M. San Juan";
extraGroups = [ "networkmanager" "wheel" "adbuser" ];
packages = with pkgs; [
];
};
# Add this for xdg settings in home-manager to work
environment.pathsToLink = [ "/share/xdg-desktop-portal" "/share/applications" ];
# List packages installed in system profile. To search, run:
# $ nix search wget
# Note: ./de.nix adds more pkgs
environment.systemPackages = with pkgs; [
## Required Apps
# Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# notif daemon
# mako
libnotify
# Wallpaper
#Clipboards
cliphist
wl-clipboard
wl-clip-persist
# My scripts
reisen
# hyprland's default terminal
kitty
# App launcher
inputs.rofi-vscode-mode.packages.${system}.default
networkmanagerapplet
# nerdfonts
# bar
vim
wget
vlc
piper
## System utils
p7zip
jq
socat
## Development
### Editors
vscode.fhs # IMPORTANT!!!: I NEED FHS for VSCODE
### Version Control
gh
git
### Language Runtimes & Managers
nixd
nodejs_22
pnpm-shim
bun
# (python312.withPackages (ps: with ps; [
# jupyter
# notebook
# pandas
# xlrd # optional dep of pandas for xlsx
# scikit-learn
# matplotlib
# memory-profiler
# numpy
# (buildPythonPackage {
# pname = "envycontrol";
# version = "3.4.0";
# src = fetchTarball {
# url = "https://github.com/bayasdev/envycontrol/archive/refs/tags/v3.4.0.tar.gz";
# sha256 = "sha256-m0ZH6kqLg15IfFtmoBqZgEe7wpIde/bIEyn6YY/L/xU=";
# };
# doCheck = false;
# propogatedBuildInputs = [
# ];
# })
# pyqt6
# ]))
(python311.withPackages (ps: with ps; [
jupyter
notebook
matplotlib
scikit-learn
pandas
numpy
memory-profiler
xlrd # optional dep of pandas for xlsx
labelImg
]))
espeak
krita
fastfetch
inkscape
firefox-bin
discord
speechd
nixpkgs-fmt
google-chrome
celluloid
caprine-bin
qbittorrent
ffmpeg-full
yt-dlp
libreoffice-fresh
hunspell
hunspellDicts.en_US
hyphen
osu-lazer-bin # app image ver w/ online functionality
patchelfUnstable
mullvad-vpn
];
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = with pkgs; [
epson_201207w
gutenprint
gutenprintBin
epson-escpr2
epson-escpr
];
# For Piper to work
services.ratbagd.enable = true;
programs.gamemode.enable = true;
programs.adb.enable = true;
services.logind.extraConfig = ''
# don't shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
programs.direnv.enable = true;
nixpkgs.overlays = [
];
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
}