Use upstream nixos-m1 :D
This commit is contained in:
parent
b98e7ab879
commit
4bc8d6f85f
10
flake.lock
10
flake.lock
|
@ -273,15 +273,15 @@
|
||||||
"nixos-m1": {
|
"nixos-m1": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1665997276,
|
"lastModified": 1667100472,
|
||||||
"narHash": "sha256-vkhyCTxRC7yEW7iNfGjbJCtiakPzz9+bCgB3QOXdsPA=",
|
"narHash": "sha256-wDeb4UY7Ba5KzebGpL4OK0rkp4GLOhTM+z1RbNyDIXU=",
|
||||||
"owner": "natsukagami",
|
"owner": "tpwrules",
|
||||||
"repo": "nixos-m1",
|
"repo": "nixos-m1",
|
||||||
"rev": "8d3b6911f2957537bf148e3953684391b6f55336",
|
"rev": "263cbee781a254e9161acc319e28808d1a4063cf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "natsukagami",
|
"owner": "tpwrules",
|
||||||
"repo": "nixos-m1",
|
"repo": "nixos-m1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
kakoune.flake = false;
|
kakoune.flake = false;
|
||||||
kak-lsp.url = github:kak-lsp/kak-lsp;
|
kak-lsp.url = github:kak-lsp/kak-lsp;
|
||||||
kak-lsp.flake = false;
|
kak-lsp.flake = false;
|
||||||
nixos-m1.url = github:natsukagami/nixos-m1;
|
nixos-m1.url = github:tpwrules/nixos-m1;
|
||||||
nixos-m1.flake = false;
|
nixos-m1.flake = false;
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
[
|
[
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# Firmware extracted manually
|
|
||||||
./m1-support/firmware
|
|
||||||
# Fonts
|
# Fonts
|
||||||
../modules/personal/fonts
|
../modules/personal/fonts
|
||||||
../modules/services/swaylock.nix
|
../modules/services/swaylock.nix
|
||||||
|
@ -22,16 +20,9 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = false;
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
|
|
||||||
# boot.kernelBuildIsCross = true;
|
# Asahi kernel configuration
|
||||||
boot.kernelBuildIs16K = false;
|
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
|
||||||
|
hardware.asahi.use4KPages = true;
|
||||||
boot.kernelPatches = [{
|
|
||||||
name = "enable_uinput";
|
|
||||||
patch = null;
|
|
||||||
extraConfig = ''
|
|
||||||
CONFIG_INPUT_UINPUT m
|
|
||||||
'';
|
|
||||||
}];
|
|
||||||
|
|
||||||
networking.hostName = "kagami-air-m1"; # Define your hostname.
|
networking.hostName = "kagami-air-m1"; # Define your hostname.
|
||||||
|
|
||||||
|
|
3
kagami-air-m1/extract_firmware.sh
Executable file
3
kagami-air-m1/extract_firmware.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mkdir -p firmware && cp /boot/asahi/{all_firmware.tar.gz,kernelcache*} firmware
|
BIN
kagami-air-m1/firmware/all_firmware.tar.gz
Executable file
BIN
kagami-air-m1/firmware/all_firmware.tar.gz
Executable file
Binary file not shown.
BIN
kagami-air-m1/firmware/kernelcache.release.mac13g
Executable file
BIN
kagami-air-m1/firmware/kernelcache.release.mac13g
Executable file
Binary file not shown.
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
{
|
|
||||||
hardware.firmware = [
|
|
||||||
(pkgs.stdenvNoCC.mkDerivation {
|
|
||||||
name = "firmware";
|
|
||||||
buildCommand = ''
|
|
||||||
mkdir -p $out/lib/firmware
|
|
||||||
FIRMWARE='${./firmware.tar}'
|
|
||||||
if [ -e "$FIRMWARE" ]; then
|
|
||||||
tar xf "$FIRMWARE" -C $out/lib/firmware
|
|
||||||
else
|
|
||||||
# stop nixos infra from breaking when it doesn't have any firmware
|
|
||||||
touch $out/lib/firmware/.dummy
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
Binary file not shown.
Loading…
Reference in a new issue