From e540227a19a626af93232d26dbc20b86291254f0 Mon Sep 17 00:00:00 2001 From: kptltd00m Date: Sun, 28 Jun 2026 19:25:53 +0200 Subject: [PATCH] feat(gaming): fix hyprland mouse acceleration & mnt hdd on home-pc setup --- home/system/hyprland/default.nix | 4 +- hosts/home-pc/hardware-configuration.nix | 69 +++++++++++++----------- 2 files changed, 40 insertions(+), 33 deletions(-) mode change 100644 => 100755 hosts/home-pc/hardware-configuration.nix diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix index 7e9f18b..1870635 100644 --- a/home/system/hyprland/default.nix +++ b/home/system/hyprland/default.nix @@ -154,7 +154,9 @@ in { kb_options = "caps:escape"; follow_mouse = 1; - sensitivity = 0.5; + sensitivity = 0.0; # or whatever speed you prefer + accel_profile = "flat"; + repeat_delay = 300; repeat_rate = 50; numlock_by_default = true; diff --git a/hosts/home-pc/hardware-configuration.nix b/hosts/home-pc/hardware-configuration.nix old mode 100644 new mode 100755 index dfcd5db..ad7e461 --- a/hosts/home-pc/hardware-configuration.nix +++ b/hosts/home-pc/hardware-configuration.nix @@ -1,45 +1,50 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + { - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ahci" - "nvme" - "usb_storage" - "usbhid" - "sd_mod" - ]; - boot.initrd.kernelModules = []; - boot.kernelModules = ["kvm-amd"]; - boot.extraModulePackages = []; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/5dbf85d3-d236-4af8-b489-d6066bfe1eb7"; + fileSystems."/" = + { device = "/dev/disk/by-uuid/4eb8dac5-6a57-4cfd-a5f7-e0a74e72d9db"; + fsType = "btrfs"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/4eb8dac5-6a57-4cfd-a5f7-e0a74e72d9db"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/4eb8dac5-6a57-4cfd-a5f7-e0a74e72d9db"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E823-261A"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + fileSystems."/mnt/hdd" = { + device = "/dev/disk/by-uuid/8b6e4527-2ea7-4f08-9f86-12a766e39313"; fsType = "ext4"; }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/043E-1755"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" + swapDevices = + [ { device = "/dev/disk/by-uuid/d0243bc0-10fb-4fa6-9933-945eb2965385"; } ]; - }; - - swapDevices = []; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }