♻️ Remove obsolete options and clean up nesting/comments

This commit is contained in:
Jo 2025-12-16 01:42:31 +01:00
parent 8a3989ce0b
commit 4b5b7e41f4
2 changed files with 31 additions and 39 deletions

View file

@ -11,6 +11,12 @@
programs.steam.enable = true; programs.steam.enable = true;
# Create some helpful groups for development
# and permission related reasons.
users.groups = {
www-data.gid = 33;
};
puzzlevision = { puzzlevision = {
users.jo = { users.jo = {
enable = true; enable = true;
@ -18,24 +24,19 @@
extraGroups = [ extraGroups = [
"wheel" "wheel"
"docker" "docker"
"www-data"
]; ];
}; };
archetypes.laptop.enable = true; archetypes.laptop.enable = true;
system.kernel.version = "linuxPackages_6_17";
}; };
boot = { # Minecraft bootloader theme
# Grub configuration boot.loader.grub.minegrub-theme = {
loader.grub = { enable = true;
# Minecraft bootloader theme splash = "100% Flakes!";
minegrub-theme = { background = "background_options/1.18 - [Caves And Cliffs 2].png";
enable = true; boot-options-count = 4;
splash = "100% Flakes!";
background = "background_options/1.18 - [Caves And Cliffs 2].png";
boot-options-count = 4;
};
};
}; };
networking.hostName = "puzzlevision"; networking.hostName = "puzzlevision";

View file

@ -1,9 +1,12 @@
{ {
pkgs, lib,
inputs, inputs,
config, config,
... ...
}: }:
let
inherit (lib) mkIf;
in
{ {
imports = [ imports = [
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
@ -26,31 +29,27 @@
blacklistedKernelModules = [ blacklistedKernelModules = [
"rtw88_8821ce" # Block the default network-card driver. "rtw88_8821ce" # Block the default network-card driver.
]; ];
# Increase swappiness, if ZRAM swap is enabled,
# as it doesn't come with the same "speed" caveats as standard swap.
kernel.sysctl = mkIf config.zramSwap.enable {
"vm.swappiness" = 140;
};
}; };
# Enable OpenGL and install additional drivers for intel video acceleration # Broader firmware and hardware support
hardware = { hardware = {
graphics = {
enable = true;
extraPackages = with pkgs; [
intel-ocl
intel-media-driver
libva-vdpau-driver
libvdpau-va-gl
];
};
# Broader firmware and hardware support
enableAllFirmware = true; enableAllFirmware = true;
enableAllHardware = true; enableAllHardware = true;
}; };
environment.sessionVariables = { # Enable ZRAM
LIBVA_DRIVER_NAME = "iHD"; zramSwap = {
enable = true;
priority = 100;
}; };
# Enable ZRAM and disable standard SWAP # Disable standard swap
zramSwap.enable = true;
swapDevices = [ ]; swapDevices = [ ];
services = { services = {
@ -67,7 +66,7 @@
CPU_MIN_PERF_ON_AC = 0; CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100; CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0; CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 30; CPU_MAX_PERF_ON_BAT = 40;
}; };
}; };
@ -75,17 +74,9 @@
power-profiles-daemon.enable = false; power-profiles-daemon.enable = false;
# Kill processes before they can cause an OOM exception # Kill processes before they can cause an OOM exception
earlyoom = { earlyoom.enable = true;
enable = true;
};
# Enable Thermald for improved overheating protection # Enable Thermald for improved overheating protection
thermald.enable = true; thermald.enable = true;
# Instruct XServer to use the correct video drivers
xserver.videoDrivers = [
"i915"
"intel"
];
}; };
} }