about summary refs log tree commit diff
path: root/nixos/beta/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/beta/hardware-configuration.nix')
-rw-r--r--nixos/beta/hardware-configuration.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/beta/hardware-configuration.nix b/nixos/beta/hardware-configuration.nix
new file mode 100644
index 0000000..9191ca6
--- /dev/null
+++ b/nixos/beta/hardware-configuration.nix
@@ -0,0 +1,26 @@
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+  boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
+      fsType = "ext4";
+    };
+
+  swapDevices = [ ];
+
+  # The global useDHCP flag is deprecated, therefore explicitly set to false here.
+  # Per-interface useDHCP will be mandatory in the future, so this generated config
+  # replicates the default behaviour.
+  networking.useDHCP = lib.mkDefault false;
+  networking.interfaces.eth0.useDHCP = lib.mkDefault true;
+  networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
+
+  powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
+  # high-resolution display
+  hardware.video.hidpi.enable = lib.mkDefault true;
+}