weee new laptoo

This commit is contained in:
Reid 2026-06-07 23:15:03 -07:00
parent c2af5792d1
commit 38b26a082f
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
14 changed files with 148 additions and 141 deletions

View file

@ -3,27 +3,26 @@
{
imports =
[
inputs.hardware.nixosModules.apple-t2
(inputs.hardware + "/common/cpu/intel/ice-lake")
(inputs.hardware + "/common/gpu/intel/ice-lake")
inputs.asahi.nixosModules.apple-silicon-support
inputs.hardware.nixosModules.common-pc-laptop-ssd
inputs.hardware.nixosModules.common-pc-laptop
(modulesPath + "/installer/scan/not-detected.nix")
./apple-macbook-air-9-1.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.canTouchEfiVariables = false;
# this makes wi-fi and stuff like that work
# of course, as usual, this is broadcom to blame. Thanks!
hardware.asahi.peripheralFirmwareDirectory = "${pkgs.my.apple-silicon-firmware}/firmware";
modules.hardware = {
graphics.i915.enable = true;
audio.enable = true;
bluetooth.enable = true;
networking.enable = true;
@ -32,19 +31,19 @@
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/0f09afdc-88e4-4764-818b-77828931278f";
fsType = "ext4";
{ device = "/dev/disk/by-uuid/be826617-c861-48a2-b135-87138c3d2c1a";
fsType = "btrfs";
options = [ "noatime" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5659-4909";
{ device = "/dev/disk/by-uuid/BD6E-1D12";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/f54a2257-f498-4ca0-82af-58f31705cce7"; }
[ { device = "/dev/disk/by-uuid/26ebd42b-1dd4-4f4e-935c-b5f9555562dd"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
@ -54,6 +53,4 @@
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.end0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}