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

67 lines
2.2 KiB
Nix
Raw Permalink Normal View History

2024-11-10 15:47:39 +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 = [ "vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
2025-05-14 17:35:29 +08:00
# added snd_hda_intel for microphone
boot.kernelModules = [ "kvm-intel" "snd_hda_intel"];
2024-11-10 15:47:39 +08:00
boot.extraModulePackages = [ ];
2025-05-14 17:35:29 +08:00
#microphone start
2025-05-16 18:25:29 +08:00
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"
# ];
2025-05-14 17:35:29 +08:00
# microphone stuff end
2024-11-10 15:47:39 +08:00
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;
2024-12-05 18:57:12 +08:00
# bluetooth
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
2025-05-14 17:35:29 +08:00
# for sound drivers
hardware.enableAllFirmware = true;
2024-11-10 15:47:39 +08:00
}