diff --git a/hosts/denkbrett/configuration.nix b/hosts/denkbrett/configuration.nix index f034002..da56c5d 100644 --- a/hosts/denkbrett/configuration.nix +++ b/hosts/denkbrett/configuration.nix @@ -36,6 +36,8 @@ security.pam.services.swaylock = { }; + services.fprintd.enable = true; + hardware.usb-modeswitch.enable = true; systemd.services."ModemManager".enable = true; systemd.services."ModemManager".wants = [ "NetworkManager.service" ]; @@ -44,13 +46,17 @@ programs.wireshark.enable = true; boot.resumeDevice = "/dev/disk/by-uuid/4f9e8afa-f8d7-40bf-b3ea-17e8e8fbb694"; - boot.kernelParams = [ "resume_offset=7380652" ]; + boot.kernelParams = [ + "resume_offset=7380652" + "amdgpu.abmlevel=0" + ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; services.blueman.enable = true; environment.systemPackages = [ + pkgs.fprintd pkgs.plantuml pkgs.mqttui pkgs.mobile-broadband-provider-info diff --git a/hosts/denkbrett/hardware-configuration.nix b/hosts/denkbrett/hardware-configuration.nix index 9528956..800ddc9 100644 --- a/hosts/denkbrett/hardware-configuration.nix +++ b/hosts/denkbrett/hardware-configuration.nix @@ -1,82 +1,46 @@ # 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, - ... -}: -{ - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; +{ config, lib, pkgs, modulesPath, ... }: - boot.initrd.availableKernelModules = [ - "xhci_pci" - "nvme" - "usb_storage" - "sd_mod" - "rtsx_pci_sdmmc" - ]; - boot.initrd.kernelModules = [ "i915" ]; - boot.kernelModules = [ "kvm-intel" ]; +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci_renesas" "xhci_pci" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/4f9e8afa-f8d7-40bf-b3ea-17e8e8fbb694"; - fsType = "btrfs"; - options = [ - "subvol=@" - "compress=zstd:3" - "noatime" - ]; - }; + fileSystems."/" = + { device = "/dev/mapper/luks-9cd75cce-6829-4db8-8c5c-a9fb9ec3e122"; + fsType = "btrfs"; + options = [ "subvol=@" ]; + }; - fileSystems."/home" = { - device = "/dev/disk/by-uuid/4f9e8afa-f8d7-40bf-b3ea-17e8e8fbb694"; - fsType = "btrfs"; - options = [ - "subvol=@home" - "compress=zstd:3" - ]; - }; + boot.initrd.luks.devices."luks-9cd75cce-6829-4db8-8c5c-a9fb9ec3e122".device = "/dev/disk/by-uuid/9cd75cce-6829-4db8-8c5c-a9fb9ec3e122"; - fileSystems."/swap" = { - device = "/dev/disk/by-uuid/4f9e8afa-f8d7-40bf-b3ea-17e8e8fbb694"; - fsType = "btrfs"; - options = [ - "subvol=@/@swap" - "noatime" - ]; - }; + fileSystems."/swap" = + { device = "/dev/mapper/luks-9cd75cce-6829-4db8-8c5c-a9fb9ec3e122"; + fsType = "btrfs"; + options = [ "subvol=@/@swap" ]; + }; - boot.initrd.luks.devices."luks-9cd75cce-6829-4db8-8c5c-a9fb9ec3e122".device = - "/dev/disk/by-uuid/9cd75cce-6829-4db8-8c5c-a9fb9ec3e122"; + fileSystems."/home" = + { device = "/dev/mapper/luks-9cd75cce-6829-4db8-8c5c-a9fb9ec3e122"; + fsType = "btrfs"; + options = [ "subvol=@home" ]; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/C6CA-5DE8"; - fsType = "vfat"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C6CA-5DE8"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; - swapDevices = [ - { - device = "/swap/swapfile"; - size = 1024 * 24; - } - ]; - - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking - # (the default) this is the recommended approach. When using systemd-networkd it's - # still possible to use this option, but it's recommended to use it in conjunction - # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wwp0s20f0u2i12.useDHCP = lib.mkDefault true; + swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/modules/desktop/home/niri/input.nix b/modules/desktop/home/niri/input.nix index e93fd3e..ca8c56d 100644 --- a/modules/desktop/home/niri/input.nix +++ b/modules/desktop/home/niri/input.nix @@ -11,6 +11,8 @@ accel-profile = "flat"; }; touchpad = { + accel-profile = "flat"; + accel-speed = 0.5; tap = false; natural-scroll = true; dwt = true;