diff --git a/flake.nix b/flake.nix index 197813d..e1b787f 100644 --- a/flake.nix +++ b/flake.nix @@ -137,7 +137,7 @@ modules = [ nixpkgs.nixosModules.notDetected (lib.createSystem "pilot1" { - hardwareConfig = ./hardware-configuration.nix; # TODO + hardwareConfig = ./hardware/pilot1.nix; config = ./work-pc.nix; }) (lib.createUser "felschr" { diff --git a/hardware/pilot1.nix b/hardware/pilot1.nix new file mode 100644 index 0000000..6bd7672 --- /dev/null +++ b/hardware/pilot1.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +{ + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/155b5acf-a0f8-4615-ae03-43a5c193f772"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/31C7-CBD1"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/397a1a92-596f-421b-99e1-c9b2cb821309"; } + ]; + + nix.maxJobs = lib.mkDefault 8; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} diff --git a/work-pc.nix b/work-pc.nix index 9c7d23b..5deb675 100644 --- a/work-pc.nix +++ b/work-pc.nix @@ -21,8 +21,8 @@ hardware.enableAllFirmware = true; hardware.cpu.intel.updateMicrocode = true; - hardware.logitech.enable = true; - hardware.logitech.enableGraphical = true; + hardware.logitech.wireless.enable = true; + hardware.logitech.wireless.enableGraphical = true; services.tlp.enable = true;