some vr config
This commit is contained in:
@@ -26,5 +26,6 @@
|
|||||||
./nightlight.nix
|
./nightlight.nix
|
||||||
./xfce.nix
|
./xfce.nix
|
||||||
./basics.nix
|
./basics.nix
|
||||||
|
./sway.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 ]);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
27
modules/graphical/sway.nix
Normal file
27
modules/graphical/sway.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user