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

57 lines
1.7 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-05-28 14:38:22 +02:00
{
config,
lib,
modulesPath,
...
}:
2023-10-28 23:16:29 +02:00
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7b55546f-7bd5-4b46-b5b1-1c81fdd8509c";
fsType = "ext4";
2024-02-27 02:54:02 +01:00
};
2023-10-28 23:16:29 +02:00
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/5A04-0844";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
2023-10-28 23:16:29 +02:00
};
fileSystems = {
2024-02-27 02:54:02 +01:00
"/data" = {
device = "/dev/disk/by-uuid/a13a2cfa-12af-463d-ae5c-d46c881fcdd6";
2023-10-28 23:16:29 +02:00
fsType = "btrfs";
options = [ "nofail" ];
2023-10-28 23:16:29 +02:00
};
2024-02-27 02:54:02 +01:00
};
2023-10-28 23:16:29 +02:00
swapDevices =
[ { device = "/dev/disk/by-uuid/da98aab4-f3a5-439b-aab5-b78624c219d3"; }
];
2023-10-28 23:16:29 +02: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.enp6s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp5s0.useDHCP = lib.mkDefault true;
2023-10-28 23:16:29 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-05-28 14:38:22 +02:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-10-28 23:16:29 +02:00
}