feat(nixosModules/desktop): add alvr

This commit is contained in:
Mohammad Rafiq 2025-05-25 19:52:23 +08:00
parent 5396f6dd63
commit 1a45001401
No known key found for this signature in database
2 changed files with 15 additions and 1 deletions

View file

@ -1,4 +1,9 @@
{ lib, config, ... }:
{
lib,
config,
pkgs,
...
}:
{
imports = [
./windowManager.nix
@ -18,6 +23,7 @@
notification-daemon = lib.pantheon.mkStrOption;
enableSpotifyd = lib.mkEnableOption "";
enableSteam = lib.mkEnableOption "";
enableVR = lib.mkEnableOption "";
};
config = lib.mkMerge [
@ -27,5 +33,12 @@
gamescopeSession.enable = true;
};
})
(lib.mkIf config.desktop.enableVR {
programs.alvr = {
enable = true;
openFirewall = true;
};
environment.systemPackages = [ pkgs.android-tools ];
})
];
}

View file

@ -34,6 +34,7 @@
};
enableSpotifyd = true;
enableSteam = true;
enableVR = true;
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}