+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
8dbea4b
main
1{ pkgs , ...} :{ 2imports = [ ../../mixins/nixos/btrfs.nix ]; 3 4boot = { 5# offset from btrfs inspect-internal map-swapfile -r /swap/swapfile 6kernelParams = [ "mem_sleep_default=deep" "resume_offset=92180856" ]; 7resumeDevice = "/dev/disk/by-label/HAL" ; 8initrd . availableKernelModules = [ 9"nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" 10]; 11}; 12 13hardware = { 14bluetooth . enable = true ; 15enableAllFirmware = true ; 16cpu . amd . updateMicrocode = true ; 17amdgpu = { 18overdrive . enable = true ; 19initrd . enable = true ; 20}; 21opentabletdriver = { 22enable = true ; 23blacklistedKernelModules = [ "wacom" ]; 24}; 25}; 26 27services = { 28logind . settings . Login = { IdleAction = "suspend" ; IdleActionSec = "55m" ; }; 29udev . packages = with pkgs ; [ input-integrity stlink ]; 30udev . extraRules = '' 31KERNEL=="hidraw*", TAG+="uaccess" 32SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="17cb", TAG+="uaccess", RUN+="/bin/sh -c 'echo -n %k > /sys/bus/usb/drivers/btusb/unbind'" 33'' ; # bt adapter for wiimotes in dolphin 34 35hardware . openrgb . enable = true ; 36}; 37 38networking . usePredictableInterfaceNames = false ; # I like eth0 39 40fileSystems = { 41"/boot" = { label = "boot" ; fsType = "vfat" ; }; 42"/media/alt" = { label = "alt" ; fsType = "btrfs" ; options = [ "compress=zstd" ]; }; 43"/media/windows" = { label = "windows" ; fsType = "ntfs-3g" ; }; 44"/media/windata" = { label = "windata" ; fsType = "ntfs-3g" ; }; 45}; 46}