Files
nixos/hosts/isaiah/hardware-configuration.nix
T

68 lines
1.9 KiB
Nix
Raw Normal View History

2023-12-12 16:32:24 -06:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
2023-12-12 16:25:58 -06:00
# to /etc/nixos/configuration.nix instead.
2024-10-19 01:19:59 -05:00
{
config,
lib,
modulesPath,
...
}:
2023-12-12 16:25:58 -06:00
{
2024-10-19 01:19:59 -05:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-12-12 16:25:58 -06:00
2024-10-19 01:19:59 -05:00
boot.initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2023-12-12 16:25:58 -06:00
2024-10-19 01:19:59 -05:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/714744ca-dd9d-4713-b571-c6ccfbf56d79";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
2023-12-12 16:25:58 -06:00
2024-10-19 01:19:59 -05:00
fileSystems."/home" = {
device = "/dev/disk/by-uuid/714744ca-dd9d-4713-b571-c6ccfbf56d79";
fsType = "btrfs";
options = [ "subvol=home" ];
};
2023-12-12 16:25:58 -06:00
2024-10-19 01:19:59 -05:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/29E7-E20C";
fsType = "vfat";
};
2023-12-12 16:25:58 -06:00
2024-10-19 01:19:59 -05:00
fileSystems."/myvol" = {
device = "/dev/nvme0n1p1";
fsType = "btrfs";
};
2023-12-12 16:25:58 -06:00
2025-07-03 01:36:59 -05:00
fileSystems."/var/lib/longhorn" = {
device = "/dev/disk/by-uuid/b9f5ace7-d224-4aff-8770-d5a9d22be2ae";
fsType = "xfs";
};
swapDevices = [ ];
2023-12-12 16:25:58 -06: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.enp38s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp39s0.useDHCP = lib.mkDefault true;
# networking.interfaces.enp42s0f3u5u3c2.useDHCP = lib.mkDefault true;
2023-12-12 16:25:58 -06:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-12-12 16:25:58 -06:00
}