dotfiles/configs/thilo-pc/hardware-configuration.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

2023-10-28 23:16:29 +02: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-02-27 02:54:02 +01:00
{ config, lib, modulesPath, ... }:
2023-10-28 23:16:29 +02:00
{
2024-02-27 02:54:02 +01:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-10-28 23:16:29 +02:00
2024-02-27 02:54:02 +01:00
boot = {
initrd = {
availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "usb_storage" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
2023-10-28 23:16:29 +02:00
2024-02-27 02:54:02 +01:00
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/34eb30d5-5faa-409f-81ee-7b996d37534a";
2023-10-28 23:16:29 +02:00
fsType = "btrfs";
options = [ "subvol=@" ];
};
2024-02-27 02:54:02 +01:00
"/data" = {
2023-10-28 23:16:29 +02:00
device = "/dev/disk/by-uuid/91f64815-1d3c-4032-960f-0a53eb3b01ab";
fsType = "btrfs";
};
2024-02-27 02:54:02 +01:00
"/boot" = {
device = "/dev/disk/by-uuid/0EB3-BFB0";
2023-10-28 23:16:29 +02:00
fsType = "vfat";
};
2024-02-27 02:54:02 +01:00
};
2023-10-28 23:16:29 +02:00
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.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-02-27 02:54:02 +01:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-10-28 23:16:29 +02:00
}