nixos/hosts/macbook-air/settings.nix
2026-06-03 20:34:44 +01:00

43 lines
1.2 KiB
Nix

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
...
}:
{
boot.kernelParams = [
"hid_apple.swap_fn_leftctrl=1"
"hid_apple.swap_opt_cmd=1"
"appledrm.show_notch=1"
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = false;
boot.initrd.luks.devices."encrypted".device =
"/dev/disk/by-uuid/ebf580bd-9d71-4a2a-b6ae-a0c7e9a11395";
networking.networkmanager.enable = true;
networking.networkmanager.wifi.backend = "iwd";
networking.wireless.iwd.enable = true;
# Specify path to peripheral firmware files.
#hardware.asahi.peripheralFirmwareDirectory = "./firmware";
# Or disable extraction and management of them completely.
hardware.asahi.extractPeripheralFirmware = true;
nix.settings = {
extra-substituters = [
"https://nixos-apple-silicon.cachix.org"
];
extra-trusted-public-keys = [
"nixos-apple-silicon.cachix.org-1:8psDu5SA5dAD7qA0zMy5UT292TxeEPzIz8VVEr2Js20="
];
};
system.stateVersion = "26.05"; # Did you read the comment?
}