nixconfigs/hosts/thinknix/hardware-configuration.nix
Trolli Schmittlauch b0093ef58f remove deprecated system passing
fixes
'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Wherever possible, it's best to reference the hostPlatform of the
nixpkgs instance directly via `config`. This is only possible in NixOS
systems though, for standalon home-manager configs we need to get that
value through `pkgs.stdenv`.
2025-12-29 02:25:50 +01:00

29 lines
533 B
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
nix.settings.max-jobs = lib.mkDefault 4;
# modesetting is always better than intel (legacy)
services.xserver.videoDrivers = [ "modesetting" ];
}