This commit is contained in:
2026-05-28 13:26:03 +01:00
parent e45cc182ee
commit acb6fb1677
3 changed files with 71 additions and 69 deletions
+1 -1
View File
@@ -271,7 +271,7 @@
];
settings = {
highlight.enable = true;
indent.enable = true;
indent.enable = false;
};
};
};
+15 -13
View File
@@ -1,14 +1,15 @@
{ den, modules, ... }:
{
den,
modules,
...
}: {
modules.obs = settings: {
homeManager =
{
homeManager = {
pkgs,
lib,
config,
...
}:
{
}: {
programs = {
obs-studio = {
enable = true;
@@ -20,19 +21,20 @@
plugins = with pkgs.obs-studio-plugins; [
obs-pipewire-audio-capture
obs-vkcapture
obs-vaapi #optional AMD hardware acceleration
obs-gstreamer
];
};
};
systemd.user.services =
let
systemd.user.services = let
audio-set = lib.mkIf settings.audio {
pw-discordaudio-virtual-device = {
Unit = {
Description = "OBS daemon";
After = [ "hyprland-session.target" ];
After = ["hyprland-session.target"];
};
Install = {
WantedBy = [ "default.target" ];
WantedBy = ["default.target"];
};
Service = {
ExecStart = "${pkgs.writeShellScript "discord_audio_virt_device" ''
@@ -45,10 +47,10 @@
pw-gameaudio-virtual-device = {
Unit = {
Description = "OBS daemon";
After = [ "hyprland-session.target" ];
After = ["hyprland-session.target"];
};
Install = {
WantedBy = [ "default.target" ];
WantedBy = ["default.target"];
};
Service = {
ExecStart = "${pkgs.writeShellScript "game_audio_virt_device" ''
@@ -60,10 +62,10 @@
};
};
in
lib.mergeAttrsList [ audio-set ];
lib.mergeAttrsList [audio-set];
wayland.windowManager.hyprland.settings = {
exec-once = [ "${config.programs.obs-studio.finalPackage}/bin/obs --startreplaybuffer" ];
# exec-once = ["${config.programs.obs-studio.finalPackage}/bin/obs --startreplaybuffer"];
};
};
};
Generated
+4 -4
View File
@@ -1293,11 +1293,11 @@
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1779840216,
"narHash": "sha256-fU9m8FTjZ94muIKE5jcCYBvdGKs2qzdPgGQfNCuYlzI=",
"lastModified": 1779876223,
"narHash": "sha256-n7kC2IF9jUSnomS+gwwD2tuwBwRiBVNEmVlTUBVqZzs=",
"ref": "main",
"rev": "2213f5814708b2734143f73385a81278d9827a64",
"revCount": 81,
"rev": "f0ebca7595fa8211d1b8eae0cf5850ff45a62d29",
"revCount": 83,
"type": "git",
"url": "https://git.molez.org/mandlm/omp-nix"
},