gcc: tune arch

This commit is contained in:
Rouven Seifert 2024-01-04 00:17:40 +01:00
parent 60ed410a43
commit ee31ef9c4c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 7 additions and 5 deletions

View file

@ -61,6 +61,7 @@
}@attrs: { }@attrs: {
packages.x86_64-linux = { packages.x86_64-linux = {
iso = self.nixosConfigurations.iso.config.system.build.isoImage; iso = self.nixosConfigurations.iso.config.system.build.isoImage;
thinkpad = self.nixosConfigurations.iso.config.system.build.toplevel;
jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { }; jmri = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/jmri { };
adguardian-term = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/adguardian-term { }; adguardian-term = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/adguardian-term { };
pww = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/pww { }; pww = nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/pww { };

View file

@ -17,6 +17,7 @@
./modules/nginx ./modules/nginx
]; ];
nix.settings.system-features = [ "gccarch-tigerlake" ];
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;

View file

@ -14,11 +14,11 @@
./modules/virtualisation ./modules/virtualisation
]; ];
# nixpkgs.hostPlatform = { nixpkgs.hostPlatform = {
# gcc.arch = "tigerlake"; gcc.arch = "tigerlake";
# gcc.tune = "tigerlake"; gcc.tune = "tigerlake";
# system = "x86_64-linux"; system = "x86_64-linux";
# }; };
nix.settings.system-features = [ "gccarch-tigerlake" ]; nix.settings.system-features = [ "gccarch-tigerlake" ];