mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
Merge pull request #326385 from Pandapip1/init-nixos-immersed-vr
nixos/immersed-vr: init module
This commit is contained in:
commit
1318ddf6f3
4 changed files with 38 additions and 1 deletions
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
- [ddns-updater](https://github.com/qdm12/ddns-updater), a service to update DNS records periodically with WebUI for many DNS providers. Available as [services.ddns-updater](#opt-services.ddns-updater.enable).
|
- [ddns-updater](https://github.com/qdm12/ddns-updater), a service to update DNS records periodically with WebUI for many DNS providers. Available as [services.ddns-updater](#opt-services.ddns-updater.enable).
|
||||||
|
|
||||||
|
- [Immersed VR](https://immersed.com/), a closed-source coworking platform. Available as [programs.immersed-vr](#opt-programs.immersed-vr.enable).
|
||||||
|
|
||||||
- [Renovate](https://github.com/renovatebot/renovate), a dependency updating tool for various git forges and language ecosystems. Available as [services.renovate](#opt-services.renovate.enable).
|
- [Renovate](https://github.com/renovatebot/renovate), a dependency updating tool for various git forges and language ecosystems. Available as [services.renovate](#opt-services.renovate.enable).
|
||||||
|
|
||||||
- [Music Assistant](https://music-assistant.io/), a music library manager for your offline and online music sources which can easily stream your favourite music to a wide range of supported players. Available as [services.music-assistant](#opt-services.music-assistant.enable).
|
- [Music Assistant](https://music-assistant.io/), a music library manager for your offline and online music sources which can easily stream your favourite music to a wide range of supported players. Available as [services.music-assistant](#opt-services.music-assistant.enable).
|
||||||
|
|
|
@ -213,6 +213,7 @@
|
||||||
./programs/iay.nix
|
./programs/iay.nix
|
||||||
./programs/iftop.nix
|
./programs/iftop.nix
|
||||||
./programs/i3lock.nix
|
./programs/i3lock.nix
|
||||||
|
./programs/immersed-vr.nix
|
||||||
./programs/iotop.nix
|
./programs/iotop.nix
|
||||||
./programs/java.nix
|
./programs/java.nix
|
||||||
./programs/joycond-cemuhook.nix
|
./programs/joycond-cemuhook.nix
|
||||||
|
|
34
nixos/modules/programs/immersed-vr.nix
Normal file
34
nixos/modules/programs/immersed-vr.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.programs.immersed-vr;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
options = {
|
||||||
|
programs.immersed-vr = {
|
||||||
|
enable = lib.mkEnableOption "immersed-vr";
|
||||||
|
|
||||||
|
package = lib.mkPackageOption pkgs "immersed-vr" {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot = {
|
||||||
|
kernelModules = [ "v4l2loopback" "snd-aloop" ];
|
||||||
|
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||||
|
extraModprobeConfig = ''
|
||||||
|
options v4l2loopback exclusive_caps=1 card_label="v4l2loopback Virtual Camera"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [ cfg.package ];
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.maintainers = pkgs.immersed-vr.meta.maintainers;
|
||||||
|
}
|
|
@ -26,7 +26,7 @@ let
|
||||||
description = "VR coworking platform";
|
description = "VR coworking platform";
|
||||||
homepage = "https://immersed.com";
|
homepage = "https://immersed.com";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
maintainers = with maintainers; [ haruki7049 ];
|
maintainers = with maintainers; [ haruki7049 pandapip1 ];
|
||||||
platforms = builtins.attrNames sources;
|
platforms = builtins.attrNames sources;
|
||||||
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue