79 lines
2.0 KiB
Nix
79 lines
2.0 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" "thunderbolt" "nvme" "usb_storage" "usbhid" "sd_mod" "uvcvideo" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.blacklistedKernelModules = [
|
||
"intel_ipu6"
|
||
"intel_ipu6_isys"
|
||
"intel_ipu6_md"
|
||
];
|
||
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{ device = "/dev/disk/by-uuid/64e7369e-c74b-4345-977e-8277f3d16f95";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/DBD9-24B0";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
swapDevices =
|
||
[ { device = "/dev/disk/by-uuid/332e7db3-3f68-4fd7-be2a-0d091ac936ae"; } ];
|
||
|
||
services.udev.extraRules = ''
|
||
SUBSYSTEM=="video4linux", ATTRS{interface}=="Integrated IR Camera", ATTR{index}=="0", SYMLINK+="video-ir"
|
||
KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"
|
||
'';
|
||
|
||
services.howdy = {
|
||
enable = true;
|
||
control = "sufficient";
|
||
settings = {
|
||
video = {
|
||
device_path = "/dev/video-ir";
|
||
};
|
||
};
|
||
};
|
||
|
||
services.linux-enable-ir-emitter.enable = true;
|
||
|
||
powerManagement.resumeCommands = ''
|
||
${pkgs.linux-enable-ir-emitter}/bin/linux-enable-ir-emitter run
|
||
'';
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware = {
|
||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
sensor.iio.enable = true;
|
||
graphics.enable = true;
|
||
|
||
bluetooth = {
|
||
enable = true;
|
||
powerOnBoot = true;
|
||
|
||
settings = {
|
||
General = {
|
||
Experimental = true;
|
||
KernelExperimental = true;
|
||
|
||
ControllerMode = "dual";
|
||
Enable = "Source,Sink,Media,Socket";
|
||
};
|
||
};
|
||
};
|
||
};
|
||
}
|