Skip to content

Commit f5c3f08

Browse files
Merge pull request #321015 from Pandapip1/init-envision
envision: init at 0-unstable-2024-06-23
2 parents feeebf9 + 2e8c8e4 commit f5c3f08

File tree

6 files changed

+2769
-0
lines changed

6 files changed

+2769
-0
lines changed

nixos/doc/manual/release-notes/rl-2411.section.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
- [wg-access-server](https://github.com/freifunkMUC/wg-access-server/), an all-in-one WireGuard VPN solution with a web ui for connecting devices. Available at [services.wg-access-server](#opt-services.wg-access-server.enable).
2626

27+
- [Envision](https://gitlab.com/gabmus/envision), a UI for building, configuring and running Monado, the open source OpenXR runtime. Available as [programs.envision](#opt-programs.envision.enable).
28+
2729
- [Playerctld](https://github.com/altdesktop/playerctl), a daemon to track media player activity. Available as [services.playerctld](option.html#opt-services.playerctld).
2830

2931
## Backward Incompatibilities {#sec-release-24.11-incompatibilities}

nixos/modules/module-list.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
./programs/dublin-traceroute.nix
181181
./programs/ecryptfs.nix
182182
./programs/environment.nix
183+
./programs/envision.nix
183184
./programs/evince.nix
184185
./programs/extra-container.nix
185186
./programs/fcast-receiver.nix
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}:
7+
8+
let
9+
cfg = config.programs.envision;
10+
in
11+
{
12+
13+
options = {
14+
programs.envision = {
15+
enable = lib.mkEnableOption "envision";
16+
17+
package = lib.mkPackageOption pkgs "envision" {};
18+
19+
openFirewall = lib.mkEnableOption "the default ports in the firewall for the WiVRn server" // {
20+
default = true;
21+
};
22+
};
23+
};
24+
25+
config = lib.mkIf cfg.enable {
26+
services.avahi = {
27+
enable = true;
28+
publish = {
29+
enable = true;
30+
userServices = true;
31+
};
32+
};
33+
34+
environment.systemPackages = [ cfg.package ];
35+
36+
networking.firewall = lib.mkIf cfg.openFirewall {
37+
allowedTCPPorts = [ 9757 ];
38+
allowedUDPPorts = [ 9757 ];
39+
};
40+
};
41+
42+
meta.maintainers = pkgs.envision.meta.maintainers;
43+
}

0 commit comments

Comments
 (0)