mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 18:08:45 +08:00
23 lines
552 B
Nix
23 lines
552 B
Nix
{ pkgs, ... }@inputs:
|
|
{
|
|
config =
|
|
{
|
|
nix.settings.system-features = [ "gccarch-alderlake" ];
|
|
nixpkgs =
|
|
{
|
|
hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
|
|
config.allowUnfree = true;
|
|
overlays =
|
|
[(
|
|
final: prev: let generic-pkgs = (inputs.inputs.nixpkgs.lib.nixosSystem
|
|
{
|
|
system = "x86_64-linux";
|
|
specialArgs = { inputs = inputs.inputs; };
|
|
modules = [{ config.nixpkgs.config.allowUnfree = true; }];
|
|
}).pkgs;
|
|
in { mono = generic-pkgs.mono; }
|
|
)];
|
|
};
|
|
};
|
|
}
|