-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flake support, project reorganization, asahi overlay (#47)
* add flake.nix * remove default.nix and pins.nix * reorganize the project into `packages`, `nixos-module`, and `installer-bootstrap` note: installer-bootstrap won't build at this commit * fix installer-bootstrap to fit the new project structure * remove the distinction between installer-bootstrap and installer-bootstrap-cross * use nixpkgs `lib.nixosSystem` to build the installer adjust project structure * make the nixos module and installer use our overlay * update flake.nix * update package names * improve flake.nix export m1n1 and uboot-asahi for cross-compilation remove asahi-fwextract from package outputs * nixos-module: add overlay with mkBefore * nixos-module: use `lib.findFirst` in the default firmware directory * set up cross-compilation logic for pure evaluation stop using `pkgsCross.aarch64-multiplatform` * make pkgs more explicit and consistent * remove nixpkgs re-imports * flake.lock: Update Flake lock file updates: • Updated input 'nixpkgs': 'github:nixos/nixpkgs/37b97ae3dd714de9a17923d004a2c5b5543dfa6d' (2023-01-13) → 'github:nixos/nixpkgs/2d38b664b4400335086a713a0036aafaa002c003' (2023-01-17) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/ca474ccdd5f81ed742328e15dae38bb57a1006e3' (2023-01-13) → 'github:oxalica/rust-overlay/5f7315b9800e2e500e6834767a57e39f7dbfd495' (2023-01-19) * simplify flake dependencies * reorganize nixos module use `apple-silicon-support/modules` and `apple-silicon-support/packages` * fix default peripheral firmware paths * fix cross-compilation for packages * fix mesa overlay
- Loading branch information
Showing
25 changed files
with
252 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ ... }: | ||
|
||
{ | ||
imports = [ | ||
./modules/default.nix | ||
]; | ||
} |
6 changes: 4 additions & 2 deletions
6
nix/m1-support/boot-m1n1/default.nix → ...con-support/modules/boot-m1n1/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
final: prev: { | ||
linux-asahi = final.callPackage ./linux-asahi { }; | ||
m1n1 = final.callPackage ./m1n1 { }; | ||
uboot-asahi = final.callPackage ./uboot-asahi { }; | ||
asahi-fwextract = final.callPackage ./asahi-fwextract { }; | ||
mesa-asahi-edge = final.callPackage ./mesa-asahi-edge { inherit (prev) mesa; }; | ||
# TODO: package alsa-ucm-conf-asahi for headphone jack support | ||
} |
11 changes: 4 additions & 7 deletions
11
nix/m1-support/u-boot/default.nix → ...-support/packages/uboot-asahi/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.