Remove OBS declarative resolution
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -2,10 +2,7 @@
|
|||||||
user ? throw "user argument is required",
|
user ? throw "user argument is required",
|
||||||
home ? throw "home argument is required",
|
home ? throw "home argument is required",
|
||||||
}:
|
}:
|
||||||
{ config, pkgs, ... }:
|
{ config, ... }:
|
||||||
let
|
|
||||||
hmConfig = config.home-manager.users.${user};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelModules = [ "v4l2loopback" ];
|
kernelModules = [ "v4l2loopback" ];
|
||||||
@@ -19,27 +16,5 @@ in
|
|||||||
"/persist"."${home}/.config/obs-studio" = { };
|
"/persist"."${home}/.config/obs-studio" = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user}.programs.obs-studio.enable = true;
|
||||||
imports = [ ./options.nix ];
|
|
||||||
|
|
||||||
programs.obs-studio.enable = true;
|
|
||||||
|
|
||||||
xdg.configFile."obs-studio/basic/profiles/Untitled/basic.ini".source =
|
|
||||||
(pkgs.formats.ini { }).generate "basic.ini"
|
|
||||||
{
|
|
||||||
SimpleOutput = {
|
|
||||||
FilePath = "${home}/Videos";
|
|
||||||
VBitrate = 4000;
|
|
||||||
ABitrate = 320;
|
|
||||||
RecEncoder = "nvenc_hevc";
|
|
||||||
FileNameWithoutSpace = true;
|
|
||||||
};
|
|
||||||
Video = with hmConfig.programs.obs-studio.resolution; {
|
|
||||||
BaseCX = base.x;
|
|
||||||
BaseCY = base.y;
|
|
||||||
OutputCX = output.x;
|
|
||||||
OutputCY = output.y;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@@ -1,35 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
options.programs.obs-studio.resolution =
|
|
||||||
with lib;
|
|
||||||
with types;
|
|
||||||
{
|
|
||||||
base = {
|
|
||||||
x = mkOption {
|
|
||||||
type = int;
|
|
||||||
description = "Base resolution width.";
|
|
||||||
default = 1920;
|
|
||||||
};
|
|
||||||
|
|
||||||
y = mkOption {
|
|
||||||
type = int;
|
|
||||||
description = "Base resolution height.";
|
|
||||||
default = 1080;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
output = {
|
|
||||||
x = mkOption {
|
|
||||||
type = int;
|
|
||||||
description = "Output resolution width.";
|
|
||||||
default = 1920;
|
|
||||||
};
|
|
||||||
|
|
||||||
y = mkOption {
|
|
||||||
type = int;
|
|
||||||
description = "Output resolution height.";
|
|
||||||
default = 1080;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
@@ -45,21 +45,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.vscode.profiles.default.userSettings."window.zoomLevel" = (1.25 - 1) / 0.2;
|
||||||
vscode.profiles.default.userSettings."window.zoomLevel" = (1.25 - 1) / 0.2;
|
|
||||||
|
|
||||||
obs-studio.resolution = {
|
|
||||||
base = {
|
|
||||||
x = 4096;
|
|
||||||
y = 2560;
|
|
||||||
};
|
|
||||||
|
|
||||||
output = {
|
|
||||||
x = 2048;
|
|
||||||
y = 1280;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
theme.cursor.size = 24;
|
theme.cursor.size = 24;
|
||||||
}
|
}
|
||||||
|
@@ -42,21 +42,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs.vscode.profiles.default.userSettings."window.zoomLevel" = (1.25 - 1) / 0.2;
|
||||||
vscode.profiles.default.userSettings."window.zoomLevel" = (1.25 - 1) / 0.2;
|
|
||||||
|
|
||||||
obs-studio.resolution = {
|
|
||||||
base = {
|
|
||||||
x = 1920;
|
|
||||||
y = 1200;
|
|
||||||
};
|
|
||||||
|
|
||||||
output = {
|
|
||||||
x = 1920;
|
|
||||||
y = 1200;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
theme.cursor.size = 24;
|
theme.cursor.size = 24;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user