nix-dotfiles/hosts/goopnet-interface/hardware.nix
2026-06-07 23:15:03 -07:00

56 lines
1.8 KiB
Nix
Executable file

{ inputs, config, lib, pkgs, modulesPath, ... }:
{
imports =
[
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")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = 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 = {
audio.enable = true;
bluetooth.enable = true;
networking.enable = true;
pointer.enable = true;
ios.enable = true;
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/be826617-c861-48a2-b135-87138c3d2c1a";
fsType = "btrfs";
options = [ "noatime" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/BD6E-1D12";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/26ebd42b-1dd4-4f4e-935c-b5f9555562dd"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.end0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
}