blob: 5edf5100a8aca5a66f930a7f0949e57566918737 (
plain)
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
# This is your system's configuration file.
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
{
inputs,
lib,
config,
pkgs,
...
}: {
# You can import other NixOS modules here
imports = [
# If you want to use modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd
# inputs.hardware.nixosModules.common-ssd
# You can also split up your configuration and import pieces of it here:
# ./users.nix
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
inputs.serpantinum.nixosModules.default
inputs.spicetify-nix.nixosModules.default
inputs.helium-flake.nixosModules.default
inputs.lanzaboote.nixosModules.lanzaboote
];
nixpkgs = {
# You can add overlays here
overlays = [
# If you want to use overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
permittedInsecurePackages = ["librewolf-152.0.2-1" "librewolf-unwrapped-152.0.2-1"];
};
};
nix = {
settings = {
# Enable flakes and new 'nix' command
experimental-features = "nix-command flakes";
# Opinionated: disable global registry
flake-registry = "";
};
# Opinionated: disable channels
channel.enable = false;
};
# boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.loader.efi.canTouchEfiVariables = true;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
networking.hostName = "phosphophyllite"; # Define your hostname.
programs.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
xwayland.enable = true;
};
services.xserver.enable = true;
services.displayManager.gdm = {
enable = true;
};
services.desktopManager.gnome.enable = false;
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Bratislava";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "sk_SK.UTF-8";
LC_IDENTIFICATION = "sk_SK.UTF-8";
LC_MEASUREMENT = "sk_SK.UTF-8";
LC_MONETARY = "sk_SK.UTF-8";
LC_NAME = "sk_SK.UTF-8";
LC_NUMERIC = "sk_SK.UTF-8";
LC_PAPER = "sk_SK.UTF-8";
LC_TELEPHONE = "sk_SK.UTF-8";
LC_TIME = "sk_SK.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
hardware.graphics = {
enable = true;
enable32Bit = true; # Critical for Steam/Proton performance
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false; # Set to true if you prefer NVIDIA open kernel modules
nvidiaSettings = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users."phos" = {
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [];
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.extraConfig."10-rename-devices" = {
"monitor.alsa.rules" = [
{
matches = [
{
"node.name" = "alsa_output.pci-0000_0a_00.4.analog-stereo";
}
];
actions = {
update-props = {
"node.description" = "Speakers";
};
};
}
{
matches = [
{
"node.name" = "alsa_output.pci-0000_08_00.1.hdmi-stereo";
}
];
actions = {
update-props = {
"device.disabled" = true;
};
};
}
# Example for your HyperX headset (replace with full name from wpctl status):
{
matches = [
{
"node.name" = "alsa_output.usb-HP__Inc_HyperX_Cloud_II_Core_Wireless-00";
}
];
actions = {
update-props = {
"node.description" = "HyperX Cloud II";
};
};
}
];
};
};
services.tailscale = {
# Enable tailscale at startup
enable = true;
useRoutingFeatures = "client";
# If you would like to use a preauthorized key, set
# authKeyFile = "/run/secrets/tailscale_key";
# Note: maximum expire time is 90 days
};
fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono
# If you are on an older NixOS version (24.05 or prior), use this syntax instead:
# (nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
];
environment.systemPackages = with pkgs; [
sbctl
wget
foot
starship
fastfetch
git
neovim
qemu
firefox-bin
cliphist
easyeffects
vscodium
tmux
pulseaudio
inotify-tools
matugen
pipes
vesktop
claude-code
bibata-cursors
wl-clipboard
uv
adw-gtk3
papirus-icon-theme
papirus-folders
glib
cliphist
opencode
gamescope
godot_4-mono
inputs.serpantinum.packages.${pkgs.stdenv.hostPlatform.system}.default
(prismlauncher.override {
# Include required JDKs for various Minecraft versions
jdks = [
zulu8 # < 1.17
zulu17 # 1.18 – 1.20.4
zulu21 # >= 1.20.5
];
# Optional tools needed by specific mods
additionalPrograms = [ ffmpeg ];
})
];
programs.direnv.enable = true;
programs.helium = {
enable = true;
flags = [
"--ozone-platform-hint=auto" # Enables native Wayland for Hyprland
];
};
programs.thunar.enable = true;
services.flatpak.enable = true;
programs.ssh = {
startAgent = true;
};
programs.steam = {
enable = true;
gamescopeSession.enable = true;
};
programs.spicetify = let
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in {
enable = true;
theme = {
name = "Matugen";
src = ./spicetify-theme;
injectCss = true;
replaceColors = true;
overwriteAssets = false;
};
colorScheme = "Matugen";
enabledExtensions = with spicePkgs.extensions; [
adblock
shuffle
];
};
programs.dconf.enable = true;
programs.serpantinum.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "25.11";
}
|