nixos/configuration/Northstar.nix

23 lines
555 B
Nix

{
config,
pkgs,
niri,
...
}: {
imports = [./laptop.nix];
environment.systemPackages = [niri];
boot = {
initrd.kernelModules = ["amdgpu"];
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
};
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [amdvlk rocmPackages.clr.icd];
extraPackages32 = [pkgs.driversi686Linux.amdvlk];
};
}