compat: update hardware configuration

This commit is contained in:
Kiana Sheibani 2026-01-28 22:16:23 -05:00
parent abced3e3c4
commit d7b21271bd
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
4 changed files with 7 additions and 2 deletions

View file

@ -18,8 +18,6 @@ in
experimental-features = nix-command flakes ca-derivations experimental-features = nix-command flakes ca-derivations
restrict-eval = false restrict-eval = false
''; '';
nixpkgs.system = if isMobile then "aarch64-linux" else "x86_64-linux";
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader. # Use the systemd-boot EFI boot loader.

View file

@ -5,5 +5,6 @@
fsType = "ext4"; fsType = "ext4";
}; };
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
nix.settings.max-jobs = lib.mkDefault 3; nix.settings.max-jobs = lib.mkDefault 3;
} }

View file

@ -18,6 +18,7 @@
swapDevices = [ ]; swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableRedistributableFirmware = lib.mkDefault true; hardware.enableRedistributableFirmware = lib.mkDefault true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View file

@ -1,5 +1,9 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.loader.grub.useOSProber = true; boot.loader.grub.useOSProber = true;
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
@ -26,6 +30,7 @@
[ { device = "/dev/disk/by-uuid/3a81bb60-49e4-41fc-8716-8db7dd5f698f"; } [ { device = "/dev/disk/by-uuid/3a81bb60-49e4-41fc-8716-8db7dd5f698f"; }
]; ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
virtualisation.hypervGuest.enable = true; virtualisation.hypervGuest.enable = true;
} }