diff --git a/hosts/ti-clt-lpt01/configuration.nix b/hosts/ti-clt-lpt01/configuration.nix index 74aeb7a..af67d1c 100644 --- a/hosts/ti-clt-lpt01/configuration.nix +++ b/hosts/ti-clt-lpt01/configuration.nix @@ -79,5 +79,24 @@ allowedUDPPorts = [ 80 443 53 ]; }; + # Obs + programs.obs-studio = { + enable = true; + + # optional Nvidia hardware acceleration + package = ( + pkgs.obs-studio.override { + cudaSupport = true; + } + ); + + plugins = with pkgs.obs-studio-plugins; [ + wlrobs + obs-vaapi #optional AMD hardware acceleration + obs-gstreamer + obs-vkcapture + ]; + }; + system.stateVersion = "24.05"; } diff --git a/hosts/ti-clt-lpt01/home.nix b/hosts/ti-clt-lpt01/home.nix index 384f96e..8ed4ca1 100644 --- a/hosts/ti-clt-lpt01/home.nix +++ b/hosts/ti-clt-lpt01/home.nix @@ -35,6 +35,7 @@ applications.wezterm.enable = true; applications.nushell.enable = false; applications.typst.enable = true; + # applications.obs-studio.enable = true; services.nextcloud-sync.enable = true; @@ -61,6 +62,8 @@ unstable.hoppscotch unstable.apostrophe unstable.surfer # waveform viewer + unstable.vscode + pomodoro-gtk # Office libreoffice @@ -68,7 +71,6 @@ # Image editing gimp inkscape - unstable.obs-studio unstable.moonlight-qt diff --git a/modules/home/applications/obs-studio.nix b/modules/home/applications/obs-studio.nix index 3f669a0..8a5d980 100644 --- a/modules/home/applications/obs-studio.nix +++ b/modules/home/applications/obs-studio.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; @@ -18,6 +18,10 @@ in { config = mkIf cfg.enable { programs.obs-studio = { enable = true; + plugins = with pkgs.obs-studio-plugins; [ + wlrobs + obs-vaapi #optional AMD hardware acceleration + ]; }; }; } diff --git a/overlays/default.nix b/overlays/default.nix index 4fe8672..8759a8d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -11,7 +11,7 @@ unstable-packages = final: _prev: { unstable = import inputs.nixpkgs-unstable { system = final.system; - config.allowUnfree = false; + config.allowUnfree = true; }; }; }