nix-config/hosts/m920q/hardware-configuration.nix

47 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2025-03-24 10:34:45 +01: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 =
2025-04-07 18:19:32 +02:00
[ (modulesPath + "/installer/scan/not-detected.nix")
2025-03-24 10:34:45 +01:00
];
2025-04-07 18:19:32 +02:00
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
2025-03-24 10:34:45 +01:00
boot.initrd.kernelModules = [ ];
2025-04-16 21:54:10 +02:00
boot.kernelModules = [ "kvm-intel" "v4l2loopback"];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback.out ];
boot.extraModprobeConfig = ''
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
'';
2025-03-24 10:34:45 +01:00
fileSystems."/" =
{ device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
2025-04-07 23:40:03 +02:00
fileSystems."/storage" =
{ device = "/dev/disk/by-label/STORAGE";
fsType = "ext4";
};
2025-03-24 10:34:45 +01:00
swapDevices = [ ];
# 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;
2025-04-07 18:19:32 +02:00
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
2025-03-24 10:34:45 +01:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2025-04-07 18:19:32 +02:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2025-03-24 10:34:45 +01:00
}