Setup apple silicon nix support
This commit is contained in:
parent
dd9c5d10d5
commit
c9d664b9c0
21 changed files with 52 additions and 9000 deletions
|
|
@ -1,24 +1,61 @@
|
|||
{ pkgs, ... }:
|
||||
{ apple-silicon-support, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
apple-silicon-support.nixosModules.apple-silicon-support
|
||||
];
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
consoleLogLevel = 0;
|
||||
kernelParams = [ "apple_dcp.show_notch=1" ];
|
||||
loader.efi.canTouchEfiVariables = false;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
asahi = {
|
||||
peripheralFirmwareDirectory = ./firmware;
|
||||
useExperimentalGPUDriver = true;
|
||||
setupAsahiSound = true;
|
||||
withRust = true;
|
||||
};
|
||||
|
||||
graphics.enable = true;
|
||||
|
||||
bluetooth.enable = true;
|
||||
bluetooth.powerOnBoot = true;
|
||||
bluetooth.settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
|
||||
networking.hostName = "asahi-nixos";
|
||||
|
||||
networking = {
|
||||
wireless.iwd = {
|
||||
enable = true;
|
||||
settings.General.EnableNetworkConfiguration = true;
|
||||
};
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
wifi.backend = "iwd";
|
||||
wifi.powersave = true;
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
tlp.enable = true;
|
||||
};
|
||||
|
||||
networking.wireless.iwd = {
|
||||
enable = true;
|
||||
settings.General.EnableNetworkConfiguration = true;
|
||||
};
|
||||
|
||||
users.users.larssonmartin = {
|
||||
isNormalUser = true;
|
||||
home = "/home/larssonmartin";
|
||||
extraGroups = [ "wheel" ];
|
||||
packages = with pkgs; [];
|
||||
packages = [ ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue