You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/hardware-configuration.pc.nix

55 lines
1.9 KiB
Nix

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Trying to get suspend working..
# boot.kernelParams = [ "processor.max_cstate=1" ];
boot.kernelParams = [
# "mem_sleep_default=deep" # forces S3 suspend instead of s2idle
# "processor.max_cstate=5" # prevents CPU from going into deep C-states that break resume
# "amd_iommu=off" # optional, can help on some ASUS boards
"btusb.enable_autosuspend=0"
"usbcore.autosuspend=-1"
"btmtk.disable_sco_esco=Y"
];
boot.kernelModules = [ "kvm-amd" "btusb" "btmtk" ];
fileSystems."/" =
{ device = "/dev/mapper/luks-78910c3e-3aec-4122-af7b-8a6e55005f1b";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-78910c3e-3aec-4122-af7b-8a6e55005f1b".device = "/dev/disk/by-uuid/78910c3e-3aec-4122-af7b-8a6e55005f1b";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B0C0-690A";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Trying to get Bluetooth working..
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.enableRedistributableFirmware = true;
hardware.firmware = with pkgs; [
linux-firmware
];
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# services.blueman.enable = true;
}