This commit is contained in:
KaitoTLex 2025-01-22 23:47:07 -08:00
parent bc0725e720
commit 74df3dd11f
2 changed files with 17 additions and 19 deletions

View file

@ -19,38 +19,32 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
virtualisation.waydroid.enable = true; virtualisation.waydroid.enable = true;
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_5_15;
#systemdefaults #systemdefaults
networking.hostName = "kuroko"; # Define your hostname. networking.hostName = "kuroko"; # Define your hostname.
services.ratbagd.enable = true; services.ratbagd.enable = true;
hardware.pulseaudio.support32Bit = true; hardware.pulseaudio.support32Bit = true;
boot.kernelParams = [ boot.kernelParams = [
"quiet"
"splash"
"boot.shell_on_fail"
"rd.systemd.show_status=false"
"rd.udev.log_level=3"
"udev.log_priority=3"
"mem_sleep_default=deep" "mem_sleep_default=deep"
]; ];
systemd.sleep.extraConfig = '' # systemd.sleep.extraConfig = ''
AllowSuspend=yes # AllowSuspend=yes
AllowHibernation=yes # AllowHibernation=yes
AllowHybridSleep=yes # AllowHybridSleep=yes
AllowSuspendThenHibernate=yes # AllowSuspendThenHibernate=yes
''; # '';
#Nvidia Hardware begins #Nvidia Hardware begins
services.xserver.videoDrivers = [ services.xserver.videoDrivers = [
"nvidia" "nvidia"
# "amdgpu" "amdgpu"
]; ];
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true; hardware.graphics.enable32Bit = true;
hardware.nvidia = { hardware.nvidia = {
# custom option defined in graphics/default.nix # custom option defined in graphics/default.nix
usePatchedAquamarine = true; #usePatchedAquamarine = true;
# Modesetting is required. # Modesetting is required.
modesetting.enable = lib.mkForce true; modesetting.enable = lib.mkForce true;
@ -63,7 +57,7 @@
# Fine-grained power management. Turns off GPU when not in use. # Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer). # Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = lib.mkForce true; powerManagement.finegrained = lib.mkForce false;
# Use the NVidia open source kernel module (not to be confused with the # Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver). # independent third-party "nouveau" open source driver).
@ -76,7 +70,7 @@
# Enable the Nvidia settings menu, # Enable the Nvidia settings menu,
# accessible via `nvidia-settings`. # accessible via `nvidia-settings`.
nvidiaSettings = false; nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.beta; package = config.boot.kernelPackages.nvidiaPackages.beta;
@ -88,8 +82,8 @@
}; };
# Make sure to use the correct Bus ID values for your system! # Make sure to use the correct Bus ID values for your system!
#intelBusId = "PCI:"; #intelBusId = "PCI:";
nvidiaBusId = "PCI:01:0:0"; nvidiaBusId = "PCI:01:00:0";
amdgpuBusId = "PCI:08:0:0"; amdgpuBusId = "PCI:08:00:0";
}; };
}; };

View file

@ -223,6 +223,10 @@
enable = true; enable = true;
userName = "KaitoTLex"; userName = "KaitoTLex";
userEmail = "wlin@kaitotlex.systems"; userEmail = "wlin@kaitotlex.systems";
signing = {
signByDefault = true;
key = "2AE6771F14386F9B85E48685A9209668BFA39C0E";
};
}; };
programs.neovim.defaultEditor = true; programs.neovim.defaultEditor = true;