machines/core: move nixpkgs config to nix file and remove redundant hardware setting

This commit is contained in:
Felix Buehler 2023-03-18 19:04:59 +01:00
parent 855f050cd7
commit 0e66ff3967
2 changed files with 1 additions and 6 deletions

View file

@ -1,12 +1,6 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
# Enable all firmware modules, so that bluetooth and wifi modules can load
# https://github.com/NixOS/nixpkgs/issues/85377#issuecomment-616424682
hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true;
nixpkgs.config.allowUnfree = true;
boot.initrd = { boot.initrd = {
availableKernelModules = [ availableKernelModules = [
"ahci" "ahci"

View file

@ -26,6 +26,7 @@
unstable.flake = inputs.nixpkgs-unstable; unstable.flake = inputs.nixpkgs-unstable;
}; };
}; };
nixpkgs.config.allowUnfree = true;
# auto upgrade with own flakes # auto upgrade with own flakes
system.autoUpgrade = { system.autoUpgrade = {