From 3c69b7945b083e245f36463f5a7acb09c0b855ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Santiago?= Date: Tue, 21 May 2024 16:13:16 -0400 Subject: [PATCH] Begin tracking hardware-configuration.nix --- hardware-configuration.nix | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 hardware-configuration.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..425c24e --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,48 @@ +# 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" "ahci" "nvme" "usbhid" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/3419ac6f-945f-4bcf-99ef-a7f44f235baa"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-2397dd7e-fa95-4f39-8b3c-da631dd4c057".device = "/dev/disk/by-uuid/2397dd7e-fa95-4f39-8b3c-da631dd4c057"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/B4CB-7B01"; + fsType = "vfat"; + }; + + fileSystems."/run/media/alexuty/ssd" = + { device = "/dev/disk/by-uuid/4ec41e6f-4eb7-4328-a991-51c097acf2ff"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/3262e74a-2050-4ce9-baee-8d44701f19dd"; } + ]; + + # 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.enp4s0.useDHCP = lib.mkDefault true; + # networking.interfaces.tailscale0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}