mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
use native kernel
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
nixosConfigurations."chn-PC" = inputs.nixpkgs.lib.nixosSystem
|
||||
{
|
||||
system = "x86_64-linux";
|
||||
specialArgs = inputs;
|
||||
specialArgs = { inherit inputs; };
|
||||
modules =
|
||||
[
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
|
||||
@@ -11,7 +11,18 @@
|
||||
efi.canTouchEfiVariables = efi;
|
||||
};
|
||||
initrd.systemd.enable = true;
|
||||
kernelPackages = inputs.pkgs.linuxPackages_xanmod_latest;
|
||||
kernelPackages = ( inputs.inputs.nixpkgs.lib.nixosSystem
|
||||
{
|
||||
system = "x86_64-linux";
|
||||
modules =
|
||||
[{
|
||||
nixpkgs =
|
||||
{
|
||||
hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}];
|
||||
} ).pkgs.linuxPackages_xanmod_latest;
|
||||
};
|
||||
hardware.enableAllFirmware = true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user