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;
|
||||
|
||||
# Create some helpful groups for development
|
||||
# and permission related reasons.
|
||||
users.groups = {
|
||||
www-data.gid = 33;
|
||||
};
|
||||
|
||||
puzzlevision = {
|
||||
users.jo = {
|
||||
enable = true;
|
||||
|
|
@ -18,24 +24,19 @@
|
|||
extraGroups = [
|
||||
"wheel"
|
||||
"docker"
|
||||
"www-data"
|
||||
];
|
||||
};
|
||||
|
||||
archetypes.laptop.enable = true;
|
||||
system.kernel.version = "linuxPackages_6_17";
|
||||
};
|
||||
|
||||
boot = {
|
||||
# Grub configuration
|
||||
loader.grub = {
|
||||
# Minecraft bootloader theme
|
||||
minegrub-theme = {
|
||||
enable = true;
|
||||
splash = "100% Flakes!";
|
||||
background = "background_options/1.18 - [Caves And Cliffs 2].png";
|
||||
boot-options-count = 4;
|
||||
};
|
||||
};
|
||||
# Minecraft bootloader theme
|
||||
boot.loader.grub.minegrub-theme = {
|
||||
enable = true;
|
||||
splash = "100% Flakes!";
|
||||
background = "background_options/1.18 - [Caves And Cliffs 2].png";
|
||||
boot-options-count = 4;
|
||||
};
|
||||
|
||||
networking.hostName = "puzzlevision";
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkIf;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd
|
||||
|
|
@ -26,31 +29,27 @@
|
|||
blacklistedKernelModules = [
|
||||
"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 = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-ocl
|
||||
intel-media-driver
|
||||
libva-vdpau-driver
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
|
||||
# Broader firmware and hardware support
|
||||
enableAllFirmware = true;
|
||||
enableAllHardware = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
LIBVA_DRIVER_NAME = "iHD";
|
||||
# Enable ZRAM
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
priority = 100;
|
||||
};
|
||||
|
||||
# Enable ZRAM and disable standard SWAP
|
||||
zramSwap.enable = true;
|
||||
# Disable standard swap
|
||||
swapDevices = [ ];
|
||||
|
||||
services = {
|
||||
|
|
@ -67,7 +66,7 @@
|
|||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
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;
|
||||
|
||||
# Kill processes before they can cause an OOM exception
|
||||
earlyoom = {
|
||||
enable = true;
|
||||
};
|
||||
earlyoom.enable = true;
|
||||
|
||||
# Enable Thermald for improved overheating protection
|
||||
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