nix-conf/systems/x86_64-linux/kami/hardware.nix

71 lines
1.7 KiB
Nix
Raw Normal View History

2023-02-23 20:34:35 +01:00
{ config, lib, pkgs, modulesPath, inputs, ... }:
let
inherit (inputs) nixos-hardware;
in
{
imports = with nixos-hardware.nixosModules; [
(modulesPath + "/installer/scan/not-detected.nix")
2023-02-24 17:19:53 +01:00
#common-cpu-intel
2023-02-24 16:03:52 +01:00
#common-gpu-nvidia
2023-02-24 17:19:53 +01:00
#common-pc
#common-pc-ssd
2023-02-23 20:34:35 +01:00
];
2023-02-24 17:19:53 +01:00
#hardware.nvidia.prime = {
# offload.enable = false;
#sync.enable = false;
2023-02-23 20:34:35 +01:00
# Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
2023-02-24 17:12:42 +01:00
#intelBusId = "PCI:0:2:0";
2023-02-23 20:34:35 +01:00
# Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
2023-02-24 17:12:42 +01:00
#nvidiaBusId = "PCI:1:0:0";
2023-02-24 17:21:53 +01:00
# };
2023-02-23 20:34:35 +01:00
boot = {
2023-02-24 17:19:53 +01:00
#kernelPackages = pkgs.linuxPackages_5_10;
2023-02-23 20:34:35 +01:00
initrd = {
# kernelModules = [ "amdgpu" ];
availableKernelModules =
[ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" "sr_mod" ];
};
extraModulePackages = [ ];
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/99a47ace-7e69-4520-b914-d4fe5b31dc79";
fsType = "btrfs";
options = [ "subvol=@" ];
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/1F26-8168";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/78d6db21-b823-4ca4-b495-7782d3e56ddc";
fsType = "ext4";
};
swapDevices = [ ];
# @NOTE(jakehamilton): NetworkManager will handle DHCP.
2023-02-24 17:12:42 +01:00
networking.interfaces.enp6s0.useDHCP = true;
networking.interfaces.wlo1.useDHCP = true;
2023-02-23 20:34:35 +01:00
hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
2023-02-24 16:46:29 +01:00
services.xserver.videoDrivers = [ "nvidia" ];
2023-02-24 17:19:53 +01:00
#hardware.bluetooth.enable = false;
2023-02-23 20:34:35 +01:00
}