diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-05-09 17:54:45 -0500 |
commit | 4ea08b3976188eb01a74548d68b227a7794b4caa (patch) | |
tree | 505c0df98ed00ed592be15895b8ed3eb7aa9e2c3 /hosts/thyme/hardware.nix | |
download | nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.tar.gz nixos-config-4ea08b3976188eb01a74548d68b227a7794b4caa.zip |
Add current configuration
Diffstat (limited to 'hosts/thyme/hardware.nix')
-rw-r--r-- | hosts/thyme/hardware.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/hosts/thyme/hardware.nix b/hosts/thyme/hardware.nix new file mode 100644 index 0000000..50956c6 --- /dev/null +++ b/hosts/thyme/hardware.nix @@ -0,0 +1,41 @@ +{ pkgs, ... }: + +let swapPart = "/dev/sda5"; +in +{ + boot.initrd.availableKernelModules = []; + boot.initrd.kernelModules = []; + boot.kernelModules = [ + "kvm-intel" + "uinput" # work around rules bug + ]; + boot.extraModulePackages = []; + boot.resumeDevice = swapPart; + + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; + + fileSystems."/home" = { + device = "/dev/sda6"; + fsType = "ext4"; + }; + + swapDevices = [ + { device = swapPart; } + ]; + + hardware.enableAllFirmware = false; + + this.overlays.g45_h264.enable = true; + hardware.graphics.extraPackages = [pkgs.intel-vaapi-driver]; + services.xserver.videoDrivers = ["intel"]; + + hardware.firmware = with pkgs; [ + alsa-firmware + ath9k-htc-blobless-firmware + ]; + + nixpkgs.hostPlatform = "x86_64-linux"; +} |