old-nixos-greynix/greynix/hardware-configuration.nix

66 lines
2.2 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
# added snd_hda_intel for microphone
boot.kernelModules = [ "kvm-intel" "snd_hda_intel"];
boot.extraModulePackages = [ ];
#microphone start
boot.extraModprobeConfig =''
options snd-hda-intel dmic_detect=0
'';
# boot.extraModprobeConfig = ''
# options snd-hda-intel model=auto
# '';
# boot.kernelParams = [ "snd-intel-dspcfg.dsp_driver=1" ];
# boot.blacklistedKernelModules = [
# "snd_soc_avs"
# ];
# microphone stuff end
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7f9595fb-2076-4f33-8834-ce8485bfc56f";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-1ead6344-6826-436d-9ff8-daa75571966a".device = "/dev/disk/by-uuid/1ead6344-6826-436d-9ff8-daa75571966a";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7361-5788";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/f529a3f7-ceb2-453c-99b3-583e84cf4172"; }
];
# 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.wlo1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# bluetooth
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
# for sound drivers
hardware.enableAllFirmware = true;
}