fix(common): don't coerce nix to build broken stuff

This commit is contained in:
Cassie Cheung 2025-02-27 20:17:31 +08:00
parent 57cf954dd4
commit 8c9b27dc1b
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -29,6 +29,7 @@
in in
{ {
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style; formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
packages.${system} = lib.genAttrs isos ( packages.${system} = lib.genAttrs isos (
iso: iso:
(lib.nixosSystem { (lib.nixosSystem {

View file

@ -29,10 +29,13 @@
git git
python3 python3
dmg2img dmg2img
(pkgs.callPackage ./pkgs/firmware-script.nix { }) (callPackage ./pkgs/firmware-script.nix { })
]; ];
# ZFS is (sometimes) broken and prevents building without this # Don't actually let broken stuff sneak into the ISO. If ZFS breaks, it actually breaks building the kernel (module)
nixpkgs.config.allowBroken = true; # due to an upstream check and this wouldn't do anything to stop that from happening.
## ZFS is (sometimes) broken and prevents building without this
## nixpkgs.config.allowBroken = true;
nixpkgs.hostPlatform = "x86_64-linux"; # t2 is x86_64-linux only nixpkgs.hostPlatform = "x86_64-linux"; # t2 is x86_64-linux only
} }