Files
nix-flake/modules/core.nix
zephrynis b57b5fea7c core: enable redistributable firmware for Realtek dongle
Pulls in the RTL8821CU WiFi/Bluetooth blobs (and other devices).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-28 00:51:35 +01:00

51 lines
1.0 KiB
Nix

{ pkgs, ... }:
{
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
trusted-users = [ "root" "@wheel" ];
};
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
nixpkgs.config.allowUnfree = true;
networking.networkmanager.enable = true; # required by illogical-flake
# Firmware blobs for Realtek RTL8821CU WiFi/Bluetooth dongle (and other devices)
hardware.enableRedistributableFirmware = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
security.rtkit.enable = true;
services.fstrim.enable = true;
# Read the Windows/data partitions when needed
boot.supportedFilesystems = [ "ntfs" ];
environment.systemPackages = with pkgs; [
wget
curl
file
unzip
p7zip
pciutils
usbutils
efibootmgr # check/fix boot order so rEFInd stays first
];
}