feat: added alvr fork

This commit is contained in:
uttarayan21
2025-05-25 22:56:24 +05:30
parent 85258d02a8
commit fbf6da2a81
9 changed files with 216 additions and 84 deletions

30
nixos/ryu/apps/alvr.nix Normal file
View File

@@ -0,0 +1,30 @@
{
pkgs,
lib,
...
}: {
# package = pkgs.alvr.overrideAttrs (oldAttrs: {
# src = pkgs.fetchFromGitHub {
# owner = "alvr-org";
# repo = "ALVR-nightly";
# rev = "2fded66a929b6eaa7dd9c1cd986f67a6660c01bb";
# fetchSubmodules = true;
# hash = "sha256-x7RSTxHXwdjVVcbKkEA9tgER0gu8rjq0R62SAJWxoo0=";
# };
# });
programs.alvr = {
enable = true;
openFirewall = true;
package = pkgs.alvr-master;
# package = pkgs.alvr.overrideAttrs (oldAttrs: {
# nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [pkgs.cudatoolkit];
# buildInputs = oldAttrs.buildInputs ++ [pkgs.cudatoolkit];
# patches = [
# (pkgs.replaceVars ../../../patches/fix-finding-libs.patch {
# ffmpeg = lib.getDev pkgs.ffmpeg;
# x264 = lib.getDev pkgs.x264;
# })
# ];
# });
};
}

View File

@@ -0,0 +1,9 @@
{
pkgs,
lib,
...
}: {
imports = [
./alvr.nix
];
}

View File

@@ -8,6 +8,7 @@
./ryu.nix
./services
./programs
./apps
# ./vms
];
@@ -36,8 +37,6 @@
polkitPolicyOwners = ["servius"];
};
adb.enable = true;
alvr.enable = true;
alvr.openFirewall = true;
hyprland = {
enable = true;
# withUWSM = true;

View File

@@ -98,7 +98,7 @@
];
boot.kernelParams = [
"intel_iommu=on"
"vfio-pci.ids="
# "vfio-pci.ids="
];
boot.extraModulePackages = [];
# services.udev.packages = [pkgs.yubikey-personalization pkgs.yubikey-personalization-gui pkgs.via];
@@ -158,4 +158,5 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.firmware = [pkgs.linux-firmware];
}