summary refs log tree commit diff
path: root/machines/taureau/hardware.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-10-03 17:44:48 +0200
committerMel <mel@rnrd.eu>2025-10-03 17:44:48 +0200
commit79537dae587a8ec0efa7e990ba41eebb51df2019 (patch)
tree1368e34d8b8620149fffbad93f8ada88b4b2c216 /machines/taureau/hardware.nix
parent640a8bd6886c12f48d1f0230d60ed69bd8e46880 (diff)
downloadnetwork-79537dae587a8ec0efa7e990ba41eebb51df2019.tar.zst
network-79537dae587a8ec0efa7e990ba41eebb51df2019.zip
Add new taureau host
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/taureau/hardware.nix')
-rw-r--r--machines/taureau/hardware.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/machines/taureau/hardware.nix b/machines/taureau/hardware.nix
new file mode 100644
index 0000000..bbb60a5
--- /dev/null
+++ b/machines/taureau/hardware.nix
@@ -0,0 +1,30 @@
+# 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 = [ ];
+
+  boot.initrd.availableKernelModules = [ "ahci" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm-amd" ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/c28cc5af-7132-419f-a13f-b67b19838664";
+      fsType = "ext4";
+    };
+
+  swapDevices = [ ];
+
+  # 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.enp6s16.useDHCP = lib.mkDefault true;
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+  virtualisation.hypervGuest.enable = true;
+}