summaryrefslogtreecommitdiff
path: root/hosts/dishwasher/hardware-configuration.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2022-06-17 19:29:47 +0200
committerGrigory Shipunov2022-06-18 04:27:35 +0200
commitd8bf46c22d39bbe8db8f74afa5188fe069cf0199 (patch)
tree5646a0f85d598568c1eebac126f98aa578f89350 /hosts/dishwasher/hardware-configuration.nix
parentb31fd6617f2b8ca1f05dc4fee4b1abb9f93c4d38 (diff)
dishwasher: init
Diffstat (limited to 'hosts/dishwasher/hardware-configuration.nix')
-rw-r--r--hosts/dishwasher/hardware-configuration.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/hosts/dishwasher/hardware-configuration.nix b/hosts/dishwasher/hardware-configuration.nix
new file mode 100644
index 0000000..68182c8
--- /dev/null
+++ b/hosts/dishwasher/hardware-configuration.nix
@@ -0,0 +1,50 @@
+# 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")
+ ];
+
+ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
+ fsType = "btrfs";
+ options = [ "subvol=nixos" "compress=zstd" "noatime" ];
+ };
+
+ fileSystems."/var/lib" =
+ { device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
+ fsType = "btrfs";
+ options = [ "subvol=var-lib" "compress=zstd" "noatime" ];
+ };
+
+ fileSystems."/var/log" =
+ { device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
+ fsType = "btrfs";
+ options = [ "subvol=var-log" "compress=zstd" "noatime" ];
+ };
+
+ fileSystems."/nix" =
+ { device = "/dev/disk/by-uuid/2971597a-b364-405d-8bb2-287556e819e1";
+ fsType = "btrfs";
+ options = [ "subvol=nix" "compress=zstd" "noatime" ];
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/2A04-BFAE";
+ fsType = "vfat";
+ };
+
+ swapDevices = [ ];
+
+ powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+ services.logind.lidSwitch = "ignore";
+}