fixes
This commit is contained in:
@@ -271,7 +271,7 @@
|
|||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
highlight.enable = true;
|
highlight.enable = true;
|
||||||
indent.enable = true;
|
indent.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
+15
-13
@@ -1,14 +1,15 @@
|
|||||||
{ den, modules, ... }:
|
|
||||||
{
|
{
|
||||||
|
den,
|
||||||
|
modules,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
modules.obs = settings: {
|
modules.obs = settings: {
|
||||||
homeManager =
|
homeManager = {
|
||||||
{
|
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: {
|
||||||
{
|
|
||||||
programs = {
|
programs = {
|
||||||
obs-studio = {
|
obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -20,19 +21,20 @@
|
|||||||
plugins = with pkgs.obs-studio-plugins; [
|
plugins = with pkgs.obs-studio-plugins; [
|
||||||
obs-pipewire-audio-capture
|
obs-pipewire-audio-capture
|
||||||
obs-vkcapture
|
obs-vkcapture
|
||||||
|
obs-vaapi #optional AMD hardware acceleration
|
||||||
|
obs-gstreamer
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.user.services =
|
systemd.user.services = let
|
||||||
let
|
|
||||||
audio-set = lib.mkIf settings.audio {
|
audio-set = lib.mkIf settings.audio {
|
||||||
pw-discordaudio-virtual-device = {
|
pw-discordaudio-virtual-device = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "OBS daemon";
|
Description = "OBS daemon";
|
||||||
After = [ "hyprland-session.target" ];
|
After = ["hyprland-session.target"];
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "default.target" ];
|
WantedBy = ["default.target"];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${pkgs.writeShellScript "discord_audio_virt_device" ''
|
ExecStart = "${pkgs.writeShellScript "discord_audio_virt_device" ''
|
||||||
@@ -45,10 +47,10 @@
|
|||||||
pw-gameaudio-virtual-device = {
|
pw-gameaudio-virtual-device = {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "OBS daemon";
|
Description = "OBS daemon";
|
||||||
After = [ "hyprland-session.target" ];
|
After = ["hyprland-session.target"];
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
WantedBy = [ "default.target" ];
|
WantedBy = ["default.target"];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = "${pkgs.writeShellScript "game_audio_virt_device" ''
|
ExecStart = "${pkgs.writeShellScript "game_audio_virt_device" ''
|
||||||
@@ -60,10 +62,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mergeAttrsList [ audio-set ];
|
lib.mergeAttrsList [audio-set];
|
||||||
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
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
@@ -1293,11 +1293,11 @@
|
|||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_9"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1779840216,
|
"lastModified": 1779876223,
|
||||||
"narHash": "sha256-fU9m8FTjZ94muIKE5jcCYBvdGKs2qzdPgGQfNCuYlzI=",
|
"narHash": "sha256-n7kC2IF9jUSnomS+gwwD2tuwBwRiBVNEmVlTUBVqZzs=",
|
||||||
"ref": "main",
|
"ref": "main",
|
||||||
"rev": "2213f5814708b2734143f73385a81278d9827a64",
|
"rev": "f0ebca7595fa8211d1b8eae0cf5850ff45a62d29",
|
||||||
"revCount": 81,
|
"revCount": 83,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.molez.org/mandlm/omp-nix"
|
"url": "https://git.molez.org/mandlm/omp-nix"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user