some vr config
This commit is contained in:
@@ -26,5 +26,6 @@
|
||||
./nightlight.nix
|
||||
./xfce.nix
|
||||
./basics.nix
|
||||
./sway.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ in {
|
||||
options.custom.graphical.games = {
|
||||
enable = mkEnableOption "Enables games";
|
||||
enablePreinstalled = mkEnableOption "Enables preinstalled games";
|
||||
enableVr = mkEnableOption "Enables VR support";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
@@ -24,6 +25,11 @@ in {
|
||||
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 ]
|
||||
++ optionals cfg.enablePreinstalled (with pkgs; [
|
||||
#taisei
|
||||
@@ -35,6 +41,7 @@ in {
|
||||
steamtinkerlaunch
|
||||
#tetrio-desktop #fuck you osk
|
||||
#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;
|
||||
upstream_dns = [
|
||||
"https://dns10.quad9.net/dns-query"
|
||||
"https://doh.tiar.app/dns-query"
|
||||
"https://dns.adguard-dns.com/dns-query"
|
||||
];
|
||||
use_http3_upstreams = true;
|
||||
|
||||
Reference in New Issue
Block a user