diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2023-09-29 21:10:20 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2023-09-29 21:10:20 -0600 |
| commit | cc6c2ad12e8df38456d43293d2ad627df80d1c1b (patch) | |
| tree | 369faf5dc4de4d44cee9624d8db371e81a1418de /machines/khad/hardware-configuration.nix | |
| parent | 8a5a019f21e0597dd24588c6364dd1bba075451c (diff) | |
| parent | 5265ac12ec68637b725562e5762d464d57864617 (diff) | |
changing tons of stuff it will definitely break
Diffstat (limited to 'machines/khad/hardware-configuration.nix')
| -rw-r--r-- | machines/khad/hardware-configuration.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/machines/khad/hardware-configuration.nix b/machines/khad/hardware-configuration.nix new file mode 100644 index 0000000..dc32bab --- /dev/null +++ b/machines/khad/hardware-configuration.nix @@ -0,0 +1,50 @@ +# 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 + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/d7025289-0e65-4ff8-a774-1a8a7b104858"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B741-9318"; + fsType = "vfat"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/9aa90dd0-4123-4caf-ac6e-8a299dda3ad4"; + fsType = "ext4"; + }; + + fileSystems."/home/defin/Drives" = + { device = "/dev/disk/by-uuid/ba4e233d-d31a-4e5a-9054-0241bd58ba8e"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/e75daaf1-d6c6-43c3-8a61-ff26b4304f71"; } + ]; + + # 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.eno1.useDHCP = lib.mkDefault true; + # networking.interfaces.enp0s20u4.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
