diff options
| author | spl3g <speefer6@yandex.ru> | 2025-09-16 13:09:22 +0300 |
|---|---|---|
| committer | spl3g <speefer6@yandex.ru> | 2025-09-16 13:09:22 +0300 |
| commit | 7c6e3be17875286d25a8ec2a2ad7c71c56258250 (patch) | |
| tree | d206ef69d3d0a927e9e7f840075f91fc573ba185 /nixos | |
| parent | 1ffb0838c880b98fbc9e7229a0a87ac8fc565463 (diff) | |
fix: change up some things for my new laptop
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/general.nix | 7 | ||||
| -rw-r--r-- | nixos/laptop/configuration.nix | 11 | ||||
| -rw-r--r-- | nixos/laptop/hardware-configuration.nix | 12 |
3 files changed, 21 insertions, 9 deletions
diff --git a/nixos/general.nix b/nixos/general.nix index c2fb98a..2162cda 100644 --- a/nixos/general.nix +++ b/nixos/general.nix @@ -87,6 +87,13 @@ pulse.enable = true; jack.enable = true; }; + + programs.gamemode = { + enable = true; + settings = { + gpu.amd_performance_level = "high"; + }; + }; environment.systemPackages = with pkgs; [ neovim diff --git a/nixos/laptop/configuration.nix b/nixos/laptop/configuration.nix index 8cf2afb..518fe20 100644 --- a/nixos/laptop/configuration.nix +++ b/nixos/laptop/configuration.nix @@ -22,18 +22,18 @@ powerManagement.enable = true; services.tlp = { - enable = true; + enable = false; settings = { + CPU_SCALING_GOVERNOR_ON_BAT = "performance"; CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; CPU_MIN_PERF_ON_AC = 0; CPU_MAX_PERF_ON_AC = 100; CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 20; + CPU_MAX_PERF_ON_BAT = 100; USB_AUTOSUSPEND = 0; }; @@ -51,6 +51,9 @@ pkgs.android-udev-rules ]; + programs.hyprland.enable = true; + services.flatpak.enable = true; + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "23.05"; } diff --git a/nixos/laptop/hardware-configuration.nix b/nixos/laptop/hardware-configuration.nix index 3e2957e..f8d847d 100644 --- a/nixos/laptop/hardware-configuration.nix +++ b/nixos/laptop/hardware-configuration.nix @@ -11,6 +11,7 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; + boot.kernelParams = [ "amdgpu.sg_display=0" ]; boot.extraModulePackages = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking @@ -24,15 +25,16 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; - hardware.amdgpu.amdvlk = { - enable = true; - support32Bit.enable = true; - }; + # hardware.amdgpu.amdvlk = { + # enable = true; + # support32Bit.enable = true; + # }; + hardware.graphics = { enable = true; enable32Bit = true; }; - services.xserver.videoDrivers = [ "amdgpu" ]; + services.xserver.videoDrivers = [ "modesetting" ]; hardware.bluetooth.enable = true; } |
