nix/packages/hosts/htpc.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-29 00:51:22 -05:00
{
2024-12-06 08:22:35 -06:00
pkgs,
2024-06-29 00:51:22 -05:00
config,
lib,
...
2025-02-14 13:31:18 -06:00
}:
{
2024-06-29 00:51:22 -05:00
networking.hostName = "htpc";
networking.networkmanager.enable = true;
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
2025-02-14 13:31:18 -06:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [
"8821au"
"8812au"
];
boot.kernelModules = [ "kvm-intel" ];
2024-06-29 00:51:22 -05:00
boot.extraModulePackages = [
# pkgs.rtl8811au
config.boot.kernelPackages.rtl8812au
config.boot.kernelPackages.rtl8821au
];
fileSystems."/" = {
device = "/dev/disk/by-uuid/86d8ded0-1c6f-4a79-901c-2d59c11b5ca8";
fsType = "ext4";
};
2025-02-14 13:31:18 -06:00
swapDevices = [ ];
2024-06-29 00:51:22 -05:00
2024-08-30 13:02:20 -05:00
hardware.bluetooth = {
enable = true;
# package = pkgs.bluez;
settings = {
General = {
AutoConnect = true;
MultiProfile = "multiple";
};
};
};
2024-06-29 00:51:22 -05:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}