From 0dae391f43406c3bf8b48a3194523ff720351747 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Mon, 21 Aug 2023 21:41:39 -0700 Subject: [PATCH] add hardware --- provision/nixos/hosts/bulwark/hardware.nix | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 provision/nixos/hosts/bulwark/hardware.nix diff --git a/provision/nixos/hosts/bulwark/hardware.nix b/provision/nixos/hosts/bulwark/hardware.nix new file mode 100644 index 00000000..2fe63f61 --- /dev/null +++ b/provision/nixos/hosts/bulwark/hardware.nix @@ -0,0 +1,38 @@ +# 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 = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/1fddaaed-6ad9-4e7f-b613-3059e2cb019b"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AA59-9D24"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/a7cd6a07-c564-4056-a1b5-69a71effd237"; } + ]; + + # 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}