nixos/modules/hardware/chn-PC.nix

28 lines
632 B
Nix
Raw Normal View History

{ 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;
2023-06-17 19:06:03 +08:00
in
{
mono = generic-pkgs.mono;
pandoc = generic-pkgs.pandoc;
2023-06-17 19:20:52 +08:00
fwupd = generic-pkgs.fwupd;
2023-06-17 19:06:03 +08:00
}
)];
};
};
}