nixos/hosts/magicman/hardware-configuration.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-04-18 18:24:29 +00:00
# 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.
{
2024-07-17 20:22:04 +00:00
config,
lib,
pkgs,
2024-04-21 09:46:33 +00:00
modulesPath,
2024-07-17 20:22:04 +00:00
...
}:
2024-04-18 18:24:29 +00:00
2024-07-17 20:22:04 +00:00
{
2024-04-18 18:24:29 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-07-17 20:22:04 +00:00
2024-04-18 18:24:29 +00:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
"sdhci_pci"
2024-07-17 20:22:04 +00:00
];
2024-04-21 09:46:33 +00:00
boot.initrd.kernelModules = [ "i915" ];
2024-04-18 18:24:29 +00:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
2024-04-21 09:46:33 +00:00
device = "/dev/disk/by-uuid/31b20f4c-24bb-4fd1-9a3e-8ccc19fe3d64";
2024-04-18 18:24:29 +00:00
fsType = "xfs";
};
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/4bbadd2c-94dd-4d80-94bf-9332d24b57bd";
fileSystems."/boot" = {
2024-04-21 09:46:33 +00:00
device = "/dev/disk/by-uuid/7FF3-B061";
2024-04-18 18:24:29 +00:00
fsType = "vfat";
};
2024-04-21 09:46:33 +00:00
swapDevices = [ { device = "/dev/disk/by-uuid/6f2c4906-ad88-4d7e-88ec-61cdda41ce28"; } ];
2024-04-18 18:24:29 +00:00
# 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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}