-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
239 lines (216 loc) · 5.29 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# 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’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Bootloader.
boot.loader.grub = {
enable = true;
device = "/dev/sda";
useOSProber = true;
theme = pkgs.nixos-grub2-theme;
};
boot.plymouth.enable = true;
boot.plymouth.themePackages = [ pkgs.adi1090x-plymouth-themes ];
boot.plymouth.theme = "angular";
boot.tmp.cleanOnBoot = true;
networking.hostName = "TechnicalDC"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.opengl.driSupport32Bit = true;
hardware.pulseaudio.support32Bit = true;
# Set your time zone.
time.timeZone = "Asia/Kolkata";
# Select internationalisation properties.
i18n.defaultLocale = "en_IN";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_IN";
LC_IDENTIFICATION = "en_IN";
LC_MEASUREMENT = "en_IN";
LC_MONETARY = "en_IN";
LC_NAME = "en_IN";
LC_NUMERIC = "en_IN";
LC_PAPER = "en_IN";
LC_TELEPHONE = "en_IN";
LC_TIME = "en_IN";
};
# Configure keymap in X11
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "";
desktopManager.xterm.enable = false;
displayManager = {
defaultSession = "none+bspwm";
autoLogin = {
enable = true;
user = "dilip";
};
sddm = {
enable = true;
theme = "${import ./sddm.nix { inherit pkgs; }}";
};
setupCommands = ''
${pkgs.xorg.xrandr}/bin/xrandr --output Virtual1 --mode 1920x1080 --pos 0x0 --rotate normal
'';
};
};
services.xserver.windowManager = {
qtile = {
enable = true;
configFile = "/home/dilip/.config/qtile/config.py";
# extraPackages = with pkgs.python311Packages; [
# qtile-extras
# ];
};
bspwm = {
enable = true;
configFile = "/home/dilip/.config/bspwm/bspwmrc";
sxhkd.configFile = "/home/dilip/.config/sxhkd/sxhkdrc";
};
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.dilip = {
isNormalUser = true;
description = "dilip";
extraGroups = [ "networkmanager" "wheel" "audio" ];
packages = with pkgs; [];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
documentation.nixos.enable = false; # .desktop
nix = {
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
arandr
bat
btop
# conky
fd
feh
file
fishPlugins.fzf
# gh
gimp-with-plugins
glow
gnugrep
gum
home-manager
hugo
instaloader
jq
killall
libgccjit
libsForQt5.qt5.qtquickcontrols
libsForQt5.qt5.qtgraphicaleffects
libnotify
lxappearance
maim
mpc-cli
mpv
mpvc
ncdu_1
ncmpcpp
neofetch
neovim
nsxiv
# newsboat
nodejs_20
# pinentry
# pinentry-rofi
polkit_gnome
polybarFull
python311Packages.pip
pywal
ripgrep
rofi
telegram-desktop
texlive.combined.scheme-full
tldr
trash-cli
wezterm
wget
whatsapp-for-linux
xclip
];
environment.shellAliases = {
ll = "ls -l";
btop = "btop --utf-force";
};
environment.sessionVariables = {
FZF_DEFAULT_OPTS = "--height 40% --layout=reverse --border";
};
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
nerdfonts
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
];
xdg.portal = {
enable = false;
# wlr.enable = true;
# gtk portal needed to make gtk apps happy
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions
programs.kdeconnect.enable = true;
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
# enableSSHSupport = true;
};
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# services.picom.enable = true;
services.locate = {
enable = true;
interval = "hourly";
};
#services.mpd = {
# enable = true;
# user = "dilip";
# group = "users";
# dbFile = "/home/dilip/.config/mpd/mpd.db";
# musicDirectory = "/home/dilip/Music";
# playlistDirectory = "/home/dilip/Music/Playlist";
# network = {
# listenAddress = "127.0.0.1";
# port = 6600;
# };
# extraConfig = ''
# audio_output {
# type "pulse"
# name "My PulseAudio" # this can be whatever you want
# }
# '';
#};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
system.stateVersion = "23.11"; # Did you read the comment?
}