forked from UniverseBow/flake
fix nixpkgs rev for t2pkgs
This commit is contained in:
parent
80d7e8489d
commit
a65c2d24a7
8 changed files with 116 additions and 73 deletions
57
hosts/modules/core/t2-firmware/default.nix
Normal file
57
hosts/modules/core/t2-firmware/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# REF: https://github.com/t2linux/nixos-t2-iso
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
t2pkgs,
|
||||
...
|
||||
} @ args: {
|
||||
imports = [
|
||||
(import inputs.nixos-hardware.nixosModules.apple-t2 (args // {pkgs = t2pkgs;}))
|
||||
];
|
||||
|
||||
nix.settings = {
|
||||
trusted-substituters = [
|
||||
"https://t2linux.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"t2linux.cachix.org-1:P733c5Gt1qTcxsm+Bae0renWnT8OLs0u9+yfaK2Bejw="
|
||||
];
|
||||
};
|
||||
|
||||
# cerulean channels configuration
|
||||
nixpkgs.channels.t2pkgs = {
|
||||
source = inputs.nixpkgs-t2-firmware;
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
allowBroken = false;
|
||||
};
|
||||
overlays = [
|
||||
(self: super: {
|
||||
get-apple-firmware = super.callPackage ./get-apple-firmware.nix {};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
# environment.systemPackages = with base; [
|
||||
# python3
|
||||
# dmg2img
|
||||
# get-apple-firmware
|
||||
# ];
|
||||
|
||||
# hardware = {
|
||||
# apple.touchBar.enable = true;
|
||||
|
||||
# # REF: https://github.com/NixOS/nixos-hardware/blob/master/apple/t2/default.nix
|
||||
# apple-t2 = {
|
||||
# # the macbook does not have an AMD dGPU (iGPU)
|
||||
# enableIGPU = false;
|
||||
|
||||
# kernelChannel = "stable";
|
||||
|
||||
# firmware = {
|
||||
# enable = true;
|
||||
# version = "sonoma";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue