aboutsummaryrefslogtreecommitdiff
path: root/nixos/server/hardware-configuration.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-08-22 22:24:17 +0500
committerspl3g <spleefer6@yandex.ru>2025-08-22 22:38:35 +0500
commitc7117141d2f42f5be5006d07e6d6476238fb96e6 (patch)
tree3af321b84206cd81da271dcdfcae9f50d9c7c34d /nixos/server/hardware-configuration.nix
parent47e63d8f111bd933ce5f42f0dc31ada473d74167 (diff)
feat: update the server to be my local one
Diffstat (limited to 'nixos/server/hardware-configuration.nix')
-rw-r--r--nixos/server/hardware-configuration.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixos/server/hardware-configuration.nix b/nixos/server/hardware-configuration.nix
new file mode 100644
index 0000000..926b7d7
--- /dev/null
+++ b/nixos/server/hardware-configuration.nix
@@ -0,0 +1,26 @@
+# 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 = [ "ehci_pci" "ata_piix" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ ];
+ boot.extraModulePackages = [ ];
+
+ # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+ # (the default) this is the recommended approach. When using systemd-networkd it's
+ # still possible to use this option, but it's recommended to use it in conjunction
+ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
+ networking.useDHCP = lib.mkDefault true;
+ # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
+ # networking.interfaces.enp0s29u1u3.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}