summaryrefslogtreecommitdiff
path: root/hosts/cloud/hardware-configuration.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-05-17 07:22:02 +0000
committerpolwex <polwex@sortug.com>2025-05-17 07:22:02 +0000
commitbb5002c60d57600ecb812720106a88df80d07362 (patch)
tree94a9800ffcd46da579a784ace3dc5ac0c7e574f8 /hosts/cloud/hardware-configuration.nix
parent6dcb4af2623174c4c52202c7ea064f40a35091ed (diff)
parentf56280c419a9f6c3571739f615d31f7cdae95869 (diff)
Merge branch 'hetzner'
hi
Diffstat (limited to 'hosts/cloud/hardware-configuration.nix')
-rw-r--r--hosts/cloud/hardware-configuration.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/hosts/cloud/hardware-configuration.nix b/hosts/cloud/hardware-configuration.nix
new file mode 100644
index 0000000..f34255a
--- /dev/null
+++ b/hosts/cloud/hardware-configuration.nix
@@ -0,0 +1,24 @@
+# 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 + "/profiles/qemu-guest.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "virtio_scsi" "sr_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.enp1s0.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+}