From a2571ad13a9fd90ed2d89c787f250b1baea92fc1 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 8 Mar 2023 23:46:06 +0800 Subject: [PATCH] profiles/desktop: separate video and documents into separate categories It has gone too big. Not to mention, photos and audio is also multimedia technically so it just makes it more confusing. --- modules/home-manager/profiles/desktop.nix | 38 ++++++++++++++----- users/home-manager/foo-dogsquared/default.nix | 3 +- 2 files changed, 31 insertions(+), 10 deletions(-) diff --git a/modules/home-manager/profiles/desktop.nix b/modules/home-manager/profiles/desktop.nix index de5fc44d..501712f5 100644 --- a/modules/home-manager/profiles/desktop.nix +++ b/modules/home-manager/profiles/desktop.nix @@ -8,8 +8,9 @@ in { graphics.enable = lib.mkEnableOption "installations of graphics-related apps"; audio.enable = lib.mkEnableOption "installations of audio-related apps"; - multimedia.enable = - lib.mkEnableOption "installations for opening multimedia files"; + video.enable = lib.mkEnableOption "installations of video-related apps"; + documents.enable = + lib.mkEnableOption "installations for document-related apps"; }; config = lib.mkIf cfg.enable (lib.mkMerge [ @@ -52,16 +53,24 @@ in { }; }) - (lib.mkIf cfg.multimedia.enable { + (lib.mkIf cfg.video.enable { home.packages = with pkgs; [ - brave # The only web browser that gives me money. - dino # Some modern chat client featuring a dinosaur for what could be considered a dinosaur. - foliate # The prettier PDF viewer. - thunderbird # Email checks. - languagetool # You're personal assistant for proper grammar, - vale # Elevate your fanfics to an arguably higher caliber! + ffmpeg # Ah yes, everyman's multimedia swiss army knife. ]; + # The one-stop shop for your broadcasting and recording needs. Not to be + # confused with the build service. + programs.obs-studio = { + enable = true; + plugins = with pkgs.obs-studio-plugins; [ + droidcam-obs + obs-multi-rtmp + obs-gstreamer + obs-pipewire-audio-capture + wlrobs + ]; + }; + # The modern VLC if you have little sense of design. programs.mpv = { enable = true; @@ -108,6 +117,17 @@ in { youtube-quality ]; }; + }) + + (lib.mkIf cfg.documents.enable { + home.packages = with pkgs; [ + brave # The only web browser that gives me money. + dino # Some modern chat client featuring a dinosaur for what could be considered a dinosaur. + foliate # The prettier PDF viewer. + thunderbird # Email checks. + languagetool # You're personal assistant for proper grammar, + vale # Elevate your fanfics to an arguably higher caliber! + ]; # Some PDF viewer with a penchant for research. programs.sioyek = { diff --git a/users/home-manager/foo-dogsquared/default.nix b/users/home-manager/foo-dogsquared/default.nix index 2709ce14..34363466 100644 --- a/users/home-manager/foo-dogsquared/default.nix +++ b/users/home-manager/foo-dogsquared/default.nix @@ -278,7 +278,8 @@ in enable = true; graphics.enable = true; audio.enable = true; - multimedia.enable = true; + video.enable = true; + documents.enable = true; }; research.enable = true; };