mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-12-19 13:48:48 +00:00
♻️ Remove obsolete options and clean up nesting/comments
This commit is contained in:
parent
8a3989ce0b
commit
4b5b7e41f4
2 changed files with 31 additions and 39 deletions
|
|
@ -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,25 +24,20 @@
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
"wheel"
|
"wheel"
|
||||||
"docker"
|
"docker"
|
||||||
|
"www-data"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
archetypes.laptop.enable = true;
|
archetypes.laptop.enable = true;
|
||||||
system.kernel.version = "linuxPackages_6_17";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
boot = {
|
|
||||||
# Grub configuration
|
|
||||||
loader.grub = {
|
|
||||||
# Minecraft bootloader theme
|
# Minecraft bootloader theme
|
||||||
minegrub-theme = {
|
boot.loader.grub.minegrub-theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
splash = "100% Flakes!";
|
splash = "100% Flakes!";
|
||||||
background = "background_options/1.18 - [Caves And Cliffs 2].png";
|
background = "background_options/1.18 - [Caves And Cliffs 2].png";
|
||||||
boot-options-count = 4;
|
boot-options-count = 4;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "puzzlevision";
|
networking.hostName = "puzzlevision";
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
# Enable OpenGL and install additional drivers for intel video acceleration
|
# Increase swappiness, if ZRAM swap is enabled,
|
||||||
hardware = {
|
# as it doesn't come with the same "speed" caveats as standard swap.
|
||||||
graphics = {
|
kernel.sysctl = mkIf config.zramSwap.enable {
|
||||||
enable = true;
|
"vm.swappiness" = 140;
|
||||||
extraPackages = with pkgs; [
|
};
|
||||||
intel-ocl
|
|
||||||
intel-media-driver
|
|
||||||
libva-vdpau-driver
|
|
||||||
libvdpau-va-gl
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Broader firmware and hardware support
|
# Broader firmware and hardware support
|
||||||
|
hardware = {
|
||||||
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"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue