compatibility module for apple silicon via asahi linux
Find a file
Youwen Wu 8acd1839f7
flake.lock: Update
Flake lock file updates:

• Updated input 'nixos-apple-silicon':
    'github:nix-community/nixos-apple-silicon/357186cca0f4c7801ff16970e4b6a05e74fd88e0?narHash=sha256-0RYmnOk40U4ZGbW/%2B3rHlNndrsuHCz9h%2BxequKWgwHQ%3D' (2026-02-14)
  → 'github:nix-community/nixos-apple-silicon/f76cf1b902f3ab2bc8cd0fab1c9aa87f740459be?narHash=sha256-BAk4UlLaZ5KiDLVpODbOTHSei0KwK5h44T338s132ew%3D' (2026-03-04)
2026-03-05 23:28:17 +08:00
hm-modules feat: commit initial module 2025-12-23 21:13:22 -08:00
nixos-modules fix: apple_dcp -> appledrm 2026-02-19 22:46:44 +08:00
flake.lock flake.lock: Update 2026-03-05 23:28:17 +08:00
flake.nix feat: commit initial module 2025-12-23 21:13:22 -08:00
LICENSE Initial commit 2025-12-23 20:18:56 -08:00
README.md feat: commit initial module 2025-12-23 21:13:22 -08:00

functoros-apple-silicon

compatibility module for apple silicon via asahi linux

usage

You will need to import both the NixOS module and Home Manager module for best results.

# configuration.nix
{
  imports = [
    functoros-apple-silicon.nixosModules.default
  ];
}
# home.nix
{
  imports = [
    functoros-apple-silicon.homeManagerModules.default
  ];
}

main module options

# NixOS module options
{
  functorOS.apple-silicon = {
    # whether to enable the module and set sane defaults
    enable = true;
    # must set to path of firmware directory obtained from installation
    peripheralFirmwareDirectory = ./firmware;

    # you can set battery limits like this.
    # start is threshold when charging begins, end is when charging ends.
    # should be integers 1-100.
    battery.limit = {
      start = 80;
      end = 90;
    };

    # enable the notch, and also some hyprland customizations tailored for it
    # (only if HM module is imported).
    notch.enable = true;
  };
}

You should read the code for the rest of the options.