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
{
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
packages.${system} = lib.genAttrs isos (
iso:
(lib.nixosSystem {

View file

@ -29,10 +29,13 @@
git
python3
dmg2img
(pkgs.callPackage ./pkgs/firmware-script.nix { })
(callPackage ./pkgs/firmware-script.nix { })
];
# ZFS is (sometimes) broken and prevents building without this
nixpkgs.config.allowBroken = true;
# Don't actually let broken stuff sneak into the ISO. If ZFS breaks, it actually breaks building the kernel (module)
# 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
}