mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-28 17:19:16 -05:00
36 lines
687 B
Nix
36 lines
687 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}: {
|
|
imports = [
|
|
self.nixosModules.hw-common
|
|
self.nixosModules.hw-common-amd-cpu
|
|
self.nixosModules.hw-common-amd-gpu
|
|
self.nixosModules.hw-common-bluetooth
|
|
self.nixosModules.hw-common-laptop
|
|
self.nixosModules.hw-common-ssd
|
|
];
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = ["nvme" "sd_mod" "thunderbolt" "usb_storage" "xhci_pci"];
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
supergfxctl
|
|
];
|
|
|
|
networking.networkmanager = {
|
|
enable = true;
|
|
|
|
wifi = {
|
|
backend = "iwd";
|
|
powersave = true;
|
|
};
|
|
};
|
|
|
|
services.supergfxd.enable = true;
|
|
}
|