use native kernel

This commit is contained in:
2023-06-13 01:11:02 +08:00
parent 92c0006274
commit 5b12b831fe
2 changed files with 13 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
};