84 lines
2.8 KiB
Nix
84 lines
2.8 KiB
Nix
# 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 =
|
||
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" "wl" ];
|
||
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
|
||
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/19a0aa4c-8d49-4545-9ed6-cd4a952f9353";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks-08992355-1404-44dc-9bb4-fd32f1d0b62d".device =
|
||
"/dev/disk/by-uuid/08992355-1404-44dc-9bb4-fd32f1d0b62d";
|
||
|
||
fileSystems."/boot" = {
|
||
device = "/dev/disk/by-uuid/F54E-7011";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[{ device = "/dev/disk/by-uuid/c9b7b195-d072-4574-8e39-a5e4f90ca84d"; }];
|
||
|
||
# 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.ens9.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode =
|
||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
boot.loader.systemd-boot.enable = true;
|
||
boot.loader.efi.canTouchEfiVariables = true;
|
||
boot.initrd.luks.devices."luks-d27fc6c5-7edd-4c18-ab70-3ca02a28abcc".device =
|
||
"/dev/disk/by-uuid/d27fc6c5-7edd-4c18-ab70-3ca02a28abcc";
|
||
|
||
nixpkgs.config.packageOverrides = pkgs: {
|
||
intel-vaapi-driver =
|
||
pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
|
||
};
|
||
|
||
hardware.opengl = {
|
||
enable = true;
|
||
extraPackages = with pkgs; [
|
||
intel-media-driver
|
||
intel-vaapi-driver
|
||
libvdpau-va-gl
|
||
];
|
||
};
|
||
|
||
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; };
|
||
|
||
hardware.facetimehd = {
|
||
enable = true;
|
||
withCalibration = true;
|
||
};
|
||
|
||
services.logind = {
|
||
# lidSwitch = "ignore";
|
||
# lidSwitchDocked = "ignore";
|
||
# lidSwitchExternalPower = "ignore";
|
||
extraConfig = ''
|
||
HandlePowerKey=ignore
|
||
HandleSuspendKey=ignore
|
||
'';
|
||
# This goes in the extraConfig section IdleAction=ignore
|
||
};
|
||
environment.systemPackages = with pkgs; [ mbpfan thermald ];
|
||
|
||
boot.blacklistedKernelModules = [ "b43" "ssb" "brcmfmac" "brcmsmac" "bcma" ];
|
||
|
||
nixpkgs.config.permittedInsecurePackages =
|
||
[ "broadcom-sta-6.30.223.271-57-6.12.40" ];
|
||
}
|