From 18f3bccd73866acb0b576833cdbe06293c72f581 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Sat, 21 Oct 2023 17:22:06 +0200 Subject: [PATCH] set touchpad scrollings and dark background --- configuration.nix | 11 ++++++++--- hardware-configuration.nix | 21 +++++++++++++++------ home.nix | 10 ++++++++++ 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index d53a950..2e20729 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,9 +12,14 @@ ]; # Bootloader. - boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/sda"; - boot.loader.grub.useOSProber = true; + #boot.loader.grub.enable = true; + #boot.loader.grub.device = "/dev/sda"; + #boot.loader.grub.useOSProber = true; + + boot.loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; # newest kernel boot.kernelPackages = pkgs.linuxPackages_latest; diff --git a/hardware-configuration.nix b/hardware-configuration.nix index c280ffc..8926b0d 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -8,26 +8,35 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "ata_generic" "uhci_hcd" "ehci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/91515d4e-f0c8-4819-8beb-220bc3528146"; + { device = "/dev/disk/by-uuid/104ae3e3-9095-4fcd-a916-6c64a3280e36"; fsType = "ext4"; }; - swapDevices = [ ]; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/CBB7-1A0B"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/de9c4a47-281d-4846-94fc-38d90b627f29"; } + ]; # 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.enp0s25.useDHCP = lib.mkDefault true; - # networking.interfaces.enp0s26f7u2u1u4.useDHCP = lib.mkDefault true; + # networking.interfaces.eno1.useDHCP = lib.mkDefault true; + # networking.interfaces.eth0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/home.nix b/home.nix index d4f655d..2e7e827 100644 --- a/home.nix +++ b/home.nix @@ -14,6 +14,7 @@ color-scheme = "prefer-dark"; enable-hot-corners = true; clock-show-seconds = true; + show-battery-percentage = true; }; "org/gnome/mutter" = { dynamic-workspaces = true; @@ -44,10 +45,19 @@ dconf.settings = { "org/gnome/desktop/background" = { picture-uri = "/home/lukas/.background-image"; + picture-uri-dark = "/home/lukas/.background-image"; }; }; home.file.".background-image" = { source = ./resources/background-hogwartslegacy.png; }; + + # touchpad stuff + dconf.settings = { + "org/gnome/desktop/peripherals/touchpad" = { + natural-scroll = false; + tap-to-click = true; + }; + }; } \ No newline at end of file