summaryrefslogtreecommitdiff
path: root/hosts/tomato/hardware.nix
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-06-03 15:25:18 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-06-03 15:25:18 -0500
commitb6bcc6af673b2bb3ce40e04349be200cd354eece (patch)
treea3f816dccb3750570ff30fa53a9a1ffeee5c2a5a /hosts/tomato/hardware.nix
parent68e4c11e036856583cbe02fd839eefedb9f8a23e (diff)
downloadnixos-config-b6bcc6af673b2bb3ce40e04349be200cd354eece.tar.gz
nixos-config-b6bcc6af673b2bb3ce40e04349be200cd354eece.zip
hosts/tomato: Add initial configuration
Diffstat (limited to 'hosts/tomato/hardware.nix')
-rw-r--r--hosts/tomato/hardware.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/hosts/tomato/hardware.nix b/hosts/tomato/hardware.nix
new file mode 100644
index 0000000..eec1b89
--- /dev/null
+++ b/hosts/tomato/hardware.nix
@@ -0,0 +1,42 @@
+{ ... }:
+
+let swapPart = "/dev/sda2";
+in
+{
+ boot.initrd.availableKernelModules = [];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = [
+ "kvm-intel"
+ "uinput" # work around rules bug
+ "iwlwifi"
+ ];
+ boot.extraModulePackages = [];
+ boot.resumeDevice = swapPart;
+
+ boot.loader.grub.enable = true;
+ boot.loader.grub.device = "/dev/sda";
+
+ fileSystems."/" = {
+ device = "/dev/sda1";
+ fsType = "ext4";
+ };
+
+ fileSystems."/home" = {
+ device = "/dev/sda3";
+ fsType = "ext4";
+ };
+
+ swapDevices = [
+ { device = swapPart; }
+ ];
+
+ hardware.graphics.extraPackages = [pkgs.intel-vaapi-driver];
+ services.xserver.videoDrivers = ["intel"];
+
+
+ hardware.firmware = with pkgs; [
+ linux-firmware
+ ];
+
+ nixpkgs.hostPlatform = "x86_64-linux";
+}