nixos-config/system/spike/hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2020-08-23 23:31:28 +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, ... }:
{
2023-08-26 23:00:18 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2020-08-23 23:31:28 +00:00
2023-08-26 23:00:18 +00:00
boot.initrd.availableKernelModules =
2023-09-18 06:16:42 +00:00
[ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "bcache" ];
boot.initrd.kernelModules = [ ];
2020-08-23 23:31:28 +00:00
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-08-26 23:00:18 +00:00
fileSystems."/" = {
2023-09-18 06:16:42 +00:00
device = "/dev/disk/by-uuid/fc77e1d6-5315-4251-90f7-33f74996ffec";
fsType = "bcachefs";
2023-08-26 23:00:18 +00:00
};
fileSystems."/boot" = {
2023-09-18 06:16:42 +00:00
device = "/dev/disk/by-uuid/307A-16D8";
2023-08-26 23:00:18 +00:00
fsType = "vfat";
};
2020-08-23 23:31:28 +00:00
2023-10-18 19:54:46 +00:00
fileSystems."/media/µsd" = {
device = "/dev/disk/by-uuid/9fc168c9-849d-4897-8f0c-564f0b74b3ef";
fsType = "ext4";
};
2023-09-18 06:16:42 +00:00
swapDevices = [ ];
# 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.eno1.useDHCP = lib.mkDefault true;
2020-08-23 23:31:28 +00:00
2023-09-18 06:16:42 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2020-08-23 23:31:28 +00:00
}