nix-conf/hosts/hebesu/hardware-configuration.nix

53 lines
1.7 KiB
Nix
Raw Normal View History

2024-12-17 00:16:21 -05: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-12-20 21:25:22 -05:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usbhid"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
fileSystems."/" = {
2025-08-13 11:25:52 -04:00
device = "/dev/disk/by-uuid/54ac149b-bc06-440c-b832-1af6be370d62";
2024-12-20 21:25:22 -05:00
fsType = "ext4";
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/aa592b0f-13bd-4ae6-af3f-68a8f76f65ae";
fsType = "ext4";
};
2024-12-17 00:16:21 -05:00
boot.initrd.luks.devices."drive".device = "/dev/disk/by-uuid/60d5cc58-4381-4869-a1b5-d4e2bf1afdfd";
2024-12-20 21:25:22 -05:00
fileSystems."/boot" = {
2025-08-13 11:25:52 -04:00
device = "/dev/disk/by-uuid/95E7-3B26";
2024-12-20 21:25:22 -05:00
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
};
2024-12-17 00:16:21 -05:00
2024-12-20 21:25:22 -05:00
swapDevices = [
{device = "/dev/disk/by-uuid/2d015dcd-81a0-4d81-b530-5ea96aa0d953";}
];
2024-12-17 00:16:21 -05: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.enp1s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}