-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
176 lines (142 loc) · 3.05 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
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Networking
networking.hostName = "poseidon";
networking.networkmanager.enable = true;
# Time zone
time.timeZone = "Europe/Lisbon";
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_ADDRESS = "pt_PT.UTF-8";
LC_IDENTIFICATION = "pt_PT.UTF-8";
LC_MEASUREMENT = "pt_PT.UTF-8";
LC_MONETARY = "pt_PT.UTF-8";
LC_NAME = "pt_PT.UTF-8";
LC_NUMERIC = "pt_PT.UTF-8";
LC_PAPER = "pt_PT.UTF-8";
LC_TELEPHONE = "pt_PT.UTF-8";
LC_TIME = "pt_PT.UTF-8";
};
};
# XServer
services.xserver = {
enable = true;
layout = "pt";
xkbVariant = "";
displayManager.defaultSession = "none+i3";
windowManager.i3 = { enable = true; };
};
console.keyMap = "pt-latin1";
services.printing.enable = true;
# Sound
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Enable the Flakes feature and the accompanying new nix command-line tool
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config = {
allowUnfree = true;
pulseaudio = true;
};
nixpkgs.config.permittedInsecurePackages = [
"electron-25.9.0"
];
users.users.francisco = {
isNormalUser = true;
description = "francisco";
extraGroups = [ "networkmanager" "wheel" "video" "wireshark"];
packages = with pkgs; [
# web
firefox
brave
tor-browser
# media
discord
spotify
zoom-us
# dev
vscode
neovim
lazygit
go
gcc
gdb
gnumake
clang
obsidian
# tools
tldr
tmux
ripgrep
htop
unzip
file
neofetch
dunst
nnn
fzf
btop
bat
pavucontrol
# cybersec
traceroute
openvpn
nmap
# graphical
alacritty
dmenu
feh
i3lock-fancy
networkmanagerapplet
];
};
environment.systemPackages = with pkgs; [
# Core
vim
wget
curl
git
# nix
nixfmt
nixpkgs-fmt
# dev
python3
dconf
nodejs
];
hardware = {
bluetooth.enable = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Default editor
environment.variables = {
EDITOR = "vim";
DEV = "/home/francisco/dotfiles/dev-environments/";
NIXPKGS_ALLOW_UNFREE = "1";
};
# Brightness
programs.light.enable = true;
services.actkbd = {
enable = true;
bindings = [
{ keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; }
{ keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; }
];
};
# Don't touch this
system.stateVersion = "24.05";
}