dotfiles/cranberry/hardware.nix

32 lines
801 B
Nix
Raw Normal View History

2024-06-12 23:47:00 +02:00
{ pkgs, lib, config, nixos-hardware, ... }:
{
config = {
boot = {
# From nixos-generate-config
initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ];
kernelModules = [ "kvm-amd" ];
2024-06-12 23:47:00 +02:00
};
# Needed for Wi-Fi
hardware.enableRedistributableFirmware = true;
2024-06-12 23:47:00 +02:00
frogeye.desktop = {
x11_screens = [ "eDP-1" ];
maxVideoHeight = 1080;
};
# Alt key swallowed the Meta one
home-manager.users.geoffrey = { ... }: {
xsession.windowManager.i3.config.modifier = "Mod1";
};
2024-06-12 23:47:00 +02:00
};
imports = [
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-amd
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-ssd
# TODO Fix sound
2024-06-12 23:47:00 +02:00
];
}