nixos/hosts/prismo/hardware-configuration.nix

55 lines
1.6 KiB
Nix
Raw Normal View History

2024-02-27 03:15:56 +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.
2024-07-17 20:22:04 +00:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
2024-02-27 03:15:56 +00:00
{
2024-02-27 21:20:00 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-02-27 03:15:56 +00:00
2024-02-27 21:26:53 +00:00
boot = {
initrd = {
2024-07-17 20:22:04 +00:00
availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
2024-02-27 21:26:53 +00:00
kernelModules = [ ];
2024-07-17 20:22:04 +00:00
luks.devices."cryptroot".device = "/dev/disk/by-uuid/f71b0ace-f38f-435f-a07a-007f9cfe4919";
2024-02-27 21:26:53 +00:00
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
2024-02-27 03:15:56 +00:00
2024-02-27 21:20:00 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/91a0dbc4-426f-4b7b-a49e-063d1d0e59fb";
fsType = "xfs";
};
2024-02-27 03:15:56 +00:00
2024-02-27 21:20:00 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/AF2D-FAD0";
fsType = "vfat";
};
2024-02-27 03:15:56 +00:00
2024-07-17 20:22:04 +00:00
swapDevices = [ { device = "/dev/disk/by-uuid/67da36a8-69df-4541-88cd-cba7cbc40b4c"; } ];
2024-02-27 03:15:56 +00: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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2024-07-17 20:22:04 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-02-27 03:15:56 +00:00
}