nixos-config/thelio76/hardware-configuration.nix

50 lines
1.8 KiB
Nix
Raw Normal View History

2024-07-18 00:24:32 +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.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
2024-07-19 15:03:21 +00:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2024-07-18 00:24:32 +00:00
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-07-19 15:03:21 +00:00
{
device = "/dev/disk/by-uuid/5b17c208-6c1b-4317-b59c-6596b1857f1f";
2024-07-18 00:24:32 +00:00
fsType = "ext4";
};
boot.initrd.luks.devices."luks-b748a776-5e2c-4809-927e-1f4c051b9460".device = "/dev/disk/by-uuid/b748a776-5e2c-4809-927e-1f4c051b9460";
fileSystems."/boot" =
2024-07-19 15:03:21 +00:00
{
device = "/dev/disk/by-uuid/EB52-074B";
2024-07-18 00:24:32 +00:00
fsType = "vfat";
};
swapDevices =
2024-07-19 15:03:21 +00:00
[{ device = "/dev/disk/by-uuid/19de8142-e695-4425-a8cc-27e062204882"; }];
2024-07-18 00:24:32 +00:00
fileSystems."/run/media/alex/External" =
2024-07-19 15:03:21 +00:00
{
device = "/dev/disk/by-uuid/5057a0e6-649f-487f-a17c-11e379f9af19";
2024-07-18 00:24:32 +00:00
fsType = "auto";
};
# 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.enp9s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}