some vr config

This commit is contained in:
Kopatz
2024-12-21 20:48:29 +01:00
parent 786b315fbf
commit 0114a4d6c7
5 changed files with 49 additions and 3 deletions

View File

@@ -26,5 +26,6 @@
./nightlight.nix ./nightlight.nix
./xfce.nix ./xfce.nix
./basics.nix ./basics.nix
./sway.nix
]; ];
} }

View File

@@ -5,6 +5,7 @@ in {
options.custom.graphical.games = { options.custom.graphical.games = {
enable = mkEnableOption "Enables games"; enable = mkEnableOption "Enables games";
enablePreinstalled = mkEnableOption "Enables preinstalled games"; enablePreinstalled = mkEnableOption "Enables preinstalled games";
enableVr = mkEnableOption "Enables VR support";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@@ -24,6 +25,11 @@ in {
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'"; end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
}; };
}; };
nixpkgs.config.permittedInsecurePackages = [
"dotnet-runtime-wrapped-7.0.20"
"dotnet-runtime-wrapped-7.0.20"
"dotnet-runtime-wrapped-7.0.20"
];
environment.systemPackages = [ pkgs.mangohud ] environment.systemPackages = [ pkgs.mangohud ]
++ optionals cfg.enablePreinstalled (with pkgs; [ ++ optionals cfg.enablePreinstalled (with pkgs; [
#taisei #taisei
@@ -35,6 +41,7 @@ in {
steamtinkerlaunch steamtinkerlaunch
#tetrio-desktop #fuck you osk #tetrio-desktop #fuck you osk
#libs #libs
]); ]) ++ optionals cfg.enableVr (with pkgs; [ beatsabermodmanager ]);
}; };
} }

View File

@@ -0,0 +1,27 @@
{ config, pkgs, lib, ... }:
let cfg = config.custom.graphical.sway;
in {
options = {
custom.graphical.sway.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable sway window manager";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
grim # screenshot functionality
slurp # screenshot functionality
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
mako # notification system developed by swaywm maintainer
];
# enable sway window manager
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
};
}

View File

@@ -60,7 +60,6 @@ in {
filtering_enabled = true; filtering_enabled = true;
upstream_dns = [ upstream_dns = [
"https://dns10.quad9.net/dns-query" "https://dns10.quad9.net/dns-query"
"https://doh.tiar.app/dns-query"
"https://dns.adguard-dns.com/dns-query" "https://dns.adguard-dns.com/dns-query"
]; ];
use_http3_upstreams = true; use_http3_upstreams = true;

View File

@@ -61,6 +61,7 @@
games = { games = {
enable = true; enable = true;
enablePreinstalled = true; enablePreinstalled = true;
enableVr = true;
}; };
ime.enable = true; ime.enable = true;
noise-supression.enable = true; noise-supression.enable = true;
@@ -70,6 +71,7 @@
nightlight.enable = true; nightlight.enable = true;
#plasma.enable = true; #plasma.enable = true;
i3.enable = true; i3.enable = true;
sway.enable = true;
hyprland.enable = true; hyprland.enable = true;
#gnome.enable = true; #gnome.enable = true;
#cosmic.enable = true; #cosmic.enable = true;
@@ -91,7 +93,17 @@
ifuse # optional, to mount using 'ifuse' ifuse # optional, to mount using 'ifuse'
]; ];
nixpkgs.config.permittedInsecurePackages = [ "electron-27.3.11" ]; nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
"dotnet-runtime-wrapped-7.0.20"
"dotnet-runtime-7.0.20"
"dotnet-core-combined"
"dotnet-sdk-7.0.410"
"dotnet-sdk-6.0.428"
"dotnet-sdk-wrapped-6.0.428"
"dotnet-sdk-wrapped-7.0.410"
];
networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry networking.firewall.allowedTCPPorts = [ 6567 ]; # mindustry
networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry networking.firewall.allowedUDPPorts = [ 6567 ]; # mindustry