commit
This commit is contained in:
@@ -319,6 +319,7 @@ windowrule = suppressevent maximize, class:.*
|
|||||||
|
|
||||||
# Gamescope / games on workspace 5
|
# Gamescope / games on workspace 5
|
||||||
windowrule = workspace 5 silent, class:^(gamescope)$
|
windowrule = workspace 5 silent, class:^(gamescope)$
|
||||||
|
windowrule =
|
||||||
|
|
||||||
# Gamescope tearing
|
# Gamescope tearing
|
||||||
windowrule = immediate, class:^(gamescope)$
|
windowrule = immediate, class:^(gamescope)$
|
||||||
|
|||||||
32
nix/home.nix
32
nix/home.nix
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, fetchFromGitHub, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -11,6 +11,8 @@
|
|||||||
./modules/tmux/home.nix
|
./modules/tmux/home.nix
|
||||||
./modules/theme/home.nix
|
./modules/theme/home.nix
|
||||||
./modules/spicetify/home.nix
|
./modules/spicetify/home.nix
|
||||||
|
./modules/obs/home.nix
|
||||||
|
./overlays.nix
|
||||||
];
|
];
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
@@ -81,9 +83,33 @@
|
|||||||
dunst = {
|
dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
arrpc = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.arrpc;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
systemd.user.services.pw-discordaudio-virtual-device = {
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.writeShellScript "discord_audio_virt_device" ''
|
||||||
|
#!/run/current-system/sw/bin/bash
|
||||||
|
pw-loopback -m '[ FL FR]' --capture-props='media.class=Audio/Sink node.name=DiscordSink' -n DiscordSink
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.user.services.pw-gameaudio-virtual-device = {
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "hyprland-session.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
ExecStart = "${pkgs.writeShellScript "game_audio_virt_device" ''
|
||||||
|
#!/run/current-system/sw/bin/bash
|
||||||
|
pw-loopback -m '[ FL FR]' --capture-props='media.class=Audio/Sink node.name=GameAudioSink' -n GameAudioSink
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
};
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,8 @@
|
|||||||
];
|
];
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"suppressevent maximize, class:.*"
|
"suppressevent maximize, class:.*"
|
||||||
"workspace 5 silent, class:^(gamescope)$"
|
"workspace 5, class:^(gamescope)$"
|
||||||
|
"fullscreen, class:^(gamescope)$"
|
||||||
"immediate, class:^(gamescope)$"
|
"immediate, class:^(gamescope)$"
|
||||||
"workspace 6 silent, class:^(steam)$"
|
"workspace 6 silent, class:^(steam)$"
|
||||||
"workspace 8 silent, class:^(vesktop)$"
|
"workspace 8 silent, class:^(vesktop)$"
|
||||||
|
|||||||
16
nix/modules/obs/home.nix
Normal file
16
nix/modules/obs/home.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ inputs, pkgs, ... }: {
|
||||||
|
programs = {
|
||||||
|
obs-studio = {
|
||||||
|
enable = true;
|
||||||
|
package = (
|
||||||
|
pkgs.obs-studio.override {
|
||||||
|
cudaSupport = true;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
|
obs-pipewire-audio-capture
|
||||||
|
obs-vkcapture
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -29,8 +29,7 @@
|
|||||||
keyutils
|
keyutils
|
||||||
mangohud
|
mangohud
|
||||||
gamemode
|
gamemode
|
||||||
(gamescope.overrideAttrs { enableWsi = true; })
|
(gamescope.overrideAttrs { enableWsi = true; NIX_CFLAGS_COMPILE = ["-fno-fast-math"]; })
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
16
nix/overlays.nix
Normal file
16
nix/overlays.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
arrpc_overlay = (self: super: {
|
||||||
|
arrpc = super.arrpc.overrideAttrs (prev: {
|
||||||
|
version = "git";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Doloro1978";
|
||||||
|
repo = "arrpc";
|
||||||
|
tag = "tag3";
|
||||||
|
sha256 = "sha256-9Tnw/BmIAA+RPAfhHFv0kenrRdoxJuUw3iRjKykGxdE=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
});
|
||||||
|
in {
|
||||||
|
nixpkgs.overlays = [ arrpc_overlay ];
|
||||||
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
/nix/store/pgyxzk4kwmbs72sgg51bfqpn2304brq6-home-manager-files/.config/nvim/init.lua
|
/nix/store/w3hgd2jyhil85jbrhr0bahb8pgmlnzj6-home-manager-files/.config/nvim/init.lua
|
||||||
Reference in New Issue
Block a user