From 8d69273bcd276e18c242974a0c4d0de74c851e1c Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Sat, 14 Sep 2024 11:50:53 +0000 Subject: [PATCH] Add hardware configuration --- hosts/vmware/hardware-configuration.nix | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 hosts/vmware/hardware-configuration.nix diff --git a/hosts/vmware/hardware-configuration.nix b/hosts/vmware/hardware-configuration.nix new file mode 100644 index 0000000..f5f5f48 --- /dev/null +++ b/hosts/vmware/hardware-configuration.nix @@ -0,0 +1,61 @@ +# 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 = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "ahci" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/iso" = + { device = "/dev/disk/by-uuid/1980-01-01-00-00-00-00"; + fsType = "iso9660"; + }; + + fileSystems."/nix/.ro-store" = + { device = "/iso/nix-store.squashfs"; + fsType = "squashfs"; + options = [ "loop" ]; + }; + + fileSystems."/nix/.rw-store" = + { device = "tmpfs"; + fsType = "tmpfs"; + }; + + fileSystems."/nix/store" = + { device = "overlay"; + fsType = "overlay"; + }; + + fileSystems."/mnt" = + { device = "/dev/disk/by-uuid/cc7fc1f5-77b0-4fd6-89c2-dde99d6247ca"; + fsType = "ext4"; + }; + + fileSystems."/mnt/boot" = + { device = "/dev/disk/by-uuid/73DE-6834"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + 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..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens33.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}