summary refs log tree commit diff
path: root/machines/renard/hardware.nix
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2024-11-04 03:26:19 +0100
committerMel <einebeere@gmail.com>2024-11-04 03:26:19 +0100
commit9a52eff1c92d63ea7309a4b0768f572973b5a6e6 (patch)
treefe565a90381c7716ba093b4ba11b432f8b0494eb /machines/renard/hardware.nix
parent2fc26761a1e93e6212845ebd005eab71da704d6e (diff)
downloadnetwork-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.tar.zst
network-9a52eff1c92d63ea7309a4b0768f572973b5a6e6.zip
Add basic renard server config
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'machines/renard/hardware.nix')
-rw-r--r--machines/renard/hardware.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/machines/renard/hardware.nix b/machines/renard/hardware.nix
new file mode 100644
index 0000000..5db9ce8
--- /dev/null
+++ b/machines/renard/hardware.nix
@@ -0,0 +1,33 @@
+# 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 = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/258bcc4c-22a7-4c4c-a264-568b7194dffc";
+      fsType = "ext4";
+    };
+
+  swapDevices =
+    [ { device = "/dev/disk/by-uuid/a0b48c9b-9885-4722-a6e1-0e30e657669c"; }
+    ];
+
+  # 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.eth0.useDHCP = lib.mkDefault true;
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}