-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
193 lines (157 loc) · 3.75 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
{ config, pkgs, inputs, ... }:
{
imports = [
./hardware-configuration.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos";
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "America/Sao_Paulo";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "pt_BR.UTF-8";
LC_IDENTIFICATION = "pt_BR.UTF-8";
LC_MEASUREMENT = "pt_BR.UTF-8";
LC_MONETARY = "pt_BR.UTF-8";
LC_NAME = "pt_BR.UTF-8";
LC_NUMERIC = "pt_BR.UTF-8";
LC_PAPER = "pt_BR.UTF-8";
LC_TELEPHONE = "pt_BR.UTF-8";
LC_TIME = "pt_BR.UTF-8";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.wacom.enable = true;
# # Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver = {
xkb.layout = "br";
xkb.variant = "nodeadkeys";
};
# Configure console keymap
console.keyMap = "br-abnt2";
# Enable CUPS to print documents.
services.printing.enable = true;
# Bluetooth
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
# Enable sound
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
# Audio fix
hardware.enableAllFirmware = true;
boot.extraModprobeConfig = ''
options snd-intel-dspcfg dsp_driver=1
'';
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
users.users.antonio = {
isNormalUser = true;
description = "Antonio Drumond";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
];
};
programs = {
# Firefox
firefox.enable = true;
# Steam
steam = {
enable = true;
remotePlay.openFirewall = true;
};
# Starship
starship = {
enable = true;
settings = {
add_newline = true;
# "$schema" = "https://starship.rs/config-schema.json";
character = {
success_symbol = "[❯](bold green)";
error_symbol = "[❯](bold bright green)";
};
nix_shell = {
symbol = " ";
heuristic = false;
};
username = {
show_always = true;
style_user = "green bold";
style_root = "bright-red bold";
};
os.disabled = false;
# palette = "catppuccin_${"mocha"}";
};
};
/*
# Eza (Exa) ((Better ls))
eza = {
enable = true;
enableZshIntegration = true;
};
*/
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Global system packages
environment.systemPackages = with pkgs; [
#CLI -> Essential
vim
git
wezterm
fzf
zip
inputs.nixvim.packages.${pkgs.system}.default # NixVim
#CLI -> Pretty and shiny :D
bat
tree
eza # -> better to do in programs. but couldnt yet
neofetch
#Image stuff
pix
rawtherapee
krita
#Non raw text
obsidian
calibre
#Torrenting and stuff
# qbittorrent
# mullvad
#Nonfree entertainment
stremio
discord
spotify
#Hardware/Libs
ventoy-full
gparted
fan2go
#Other
kdePackages.kcalc
cava
];
environment.localBinInPath = true;
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# DO NOT CHANGE
system.stateVersion = "24.05"; # Did you read the comment?
}