2025-03-29 21:53:29 +08:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
imports =
|
|
|
|
|
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
|
|
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
|
|
boot.kernelModules = [ "kvm-intel" "wl" ];
|
2025-11-19 08:34:27 +08:00
|
|
|
|
|
|
|
|
|
|
# change kernel
|
|
|
|
|
|
#boot.kernelPackages = pkgs.linuxPackages_6_1;
|
|
|
|
|
|
|
|
|
|
|
|
# Configure the Broadcom driver
|
2025-11-19 16:01:00 +08:00
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
2025-11-19 08:34:27 +08:00
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
|
|
"broadcom-sta" # aka “wl”
|
|
|
|
|
|
];
|
2025-03-29 21:53:29 +08:00
|
|
|
|
|
|
|
|
|
|
fileSystems."/" =
|
|
|
|
|
|
{ device = "/dev/disk/by-uuid/641ef8a2-88ac-4edf-90f5-74812e8ccf9f";
|
|
|
|
|
|
fsType = "ext4";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
boot.initrd.luks.devices."luks-1463ace0-1e56-4de6-8786-6e1a81218277".device = "/dev/disk/by-uuid/1463ace0-1e56-4de6-8786-6e1a81218277";
|
|
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
|
|
|
|
|
{ device = "/dev/disk/by-uuid/7763-F802";
|
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
swapDevices =
|
|
|
|
|
|
[ { device = "/dev/disk/by-uuid/d5676202-5691-4606-9fdf-8c03c2c7cbea"; }
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
# 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.enp3s0.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
|
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
|
|
|
|
|
|
|
|
}
|