From 86d0cd7c400897d436a3673fe8518be06ee3879c Mon Sep 17 00:00:00 2001 From: idcretard Date: Thu, 1 Apr 2021 09:02:53 +0530 Subject: [PATCH] changed to zen kernel --- Stuff/services.nix | 7 +++++++ Hardware/boot.nix => boot.nix | 17 ++++++++++++++--- configuration.nix | 1 + hardware.nix | 1 - 4 files changed, 22 insertions(+), 4 deletions(-) rename Hardware/boot.nix => boot.nix (64%) diff --git a/Stuff/services.nix b/Stuff/services.nix index 4e07af6..65081c7 100644 --- a/Stuff/services.nix +++ b/Stuff/services.nix @@ -12,6 +12,13 @@ PIDFile = "/run/nbfc.pid"; }; }; + services = { + tor.enable = true; + mysql = { + enable = true; + package = pkgs.mariadb; + }; + }; # services.picom = { # enable = true; # fade = true; diff --git a/Hardware/boot.nix b/boot.nix similarity index 64% rename from Hardware/boot.nix rename to boot.nix index 565d667..156bd0c 100644 --- a/Hardware/boot.nix +++ b/boot.nix @@ -4,12 +4,23 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { + kernelPackages = pkgs.linuxPackages_zen; + kernelPatches = [ + { + name = "zenwithmuqqs"; + patch = null; + structuredExtraConfig = '' + SCHED_MUQQS y + ''; + ignoreConfigErrors = true; + } + ]; initrd={ - availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ]; + availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"]; kernelModules = [ ]; }; - kernelModules = [ "kvm-intel" ]; - extraModulePackages = [ ]; + kernelModules = [ "kvm-intel"]; + extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; loader = { efi = { canTouchEfiVariables = true; diff --git a/configuration.nix b/configuration.nix index cc2e47d..b714563 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,6 +7,7 @@ ./stuff.nix ./pkgs.nix ./networking.nix + ./boot.nix ]; system.stateVersion = "20.09"; } diff --git a/hardware.nix b/hardware.nix index 84a692b..8b7e370 100644 --- a/hardware.nix +++ b/hardware.nix @@ -4,7 +4,6 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") - ./Hardware/boot.nix ./Hardware/power.nix ./Hardware/xorg.nix ./Hardware/graphicshit.nix