diff options
| author | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-02-08 18:03:39 +0100 |
| commit | 2c8a4dd99efd61298bc18393e7fcbf6063db8671 (patch) | |
| tree | 1efd5ac8f5bcf7b1611cec1beaa545e6a2c14160 /hm/soft | |
| parent | eb95abfc230dc239122f1e89e90cd9a998491a2f (diff) | |
...
Diffstat (limited to 'hm/soft')
| -rw-r--r-- | hm/soft/easyeffects.nix | 12 | ||||
| -rw-r--r-- | hm/soft/media.nix | 50 | ||||
| -rw-r--r-- | hm/soft/obs.nix | 9 | ||||
| -rw-r--r-- | hm/soft/soft.nix | 1 |
4 files changed, 55 insertions, 17 deletions
diff --git a/hm/soft/easyeffects.nix b/hm/soft/easyeffects.nix deleted file mode 100644 index ab16736..0000000 --- a/hm/soft/easyeffects.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.hm.soft.easyeffects; -in -{ - options.hm.soft.easyeffects.enable = lib.mkEnableOption "EasyEffects audio equalizer"; - config = lib.mkIf cfg.enable { - services.easyeffects = { - enable = true; - }; - }; -} diff --git a/hm/soft/media.nix b/hm/soft/media.nix index 8dcd6de..b307904 100644 --- a/hm/soft/media.nix +++ b/hm/soft/media.nix @@ -3,15 +3,61 @@ lib, pkgs, ... -}: let +}: +let cfg = config.hm.soft.media; -in { +in +{ options.hm.soft.media.enable = lib.mkEnableOption "media cli tools"; config = lib.mkIf cfg.enable { + programs.zathura = { + enable = true; + package = pkgs.zathura.override { + plugins = with pkgs.zathuraPkgs; [ + zathura_pdf_mupdf + zathura_cb + ]; + }; + options = { + selection-clipboard = "clipboard"; + + incremental-search = true; + highlight-active-color = "#fabd2f"; + highlight-color = "#fe8019"; + + recolor = true; + recolor-keephue = true; + + default-bg = "#282828"; + default-fg = "#ebdbb2"; + recolor-lightcolor = "#282828"; + recolor-darkcolor = "#ebdbb2"; + + render-loading = false; + scroll-step = 50; + statusbar-h-padding = 10; + statusbar-v-padding = 10; + }; + + mappings = { + "u" = "scroll half-up"; + "d" = "scroll half-down"; + "D" = "toggle_page_mode"; + "r" = "reload"; + "R" = "rotate"; + "K" = "zoom in"; + "J" = "zoom out"; + "i" = "recolor"; + }; + }; home.packages = with pkgs; [ + nsxiv pinta ffmpeg imagemagick + exiftool + mediainfo + sox syncplay-nogui ]; }; diff --git a/hm/soft/obs.nix b/hm/soft/obs.nix index 29c82a4..8d968e4 100644 --- a/hm/soft/obs.nix +++ b/hm/soft/obs.nix @@ -2,10 +2,13 @@ config, lib, pkgs, + osConfig, ... }: let cfg = config.hm.soft.obs; + + obsPass = osConfig.sops.placeholdder."obs/websocket_password" or null; in { options.hm.soft.obs.enable = lib.mkEnableOption "enables obs video recording and clipping"; @@ -16,9 +19,11 @@ in obs-pipewire-audio-capture ]; }; + home.packages = [ pkgs.obs-cmd ]; - home.sessionVariables = { - OBS_WEBSOCKET_URL = "obsws://localhost:4455/3uE66N4j0bTv2W1M"; + + home.sessionVariables = lib.mkIf (obsPass != null) { + OBS_WEBSOCKET_URL = obsPass; }; }; } diff --git a/hm/soft/soft.nix b/hm/soft/soft.nix index 4372d3f..0d74669 100644 --- a/hm/soft/soft.nix +++ b/hm/soft/soft.nix @@ -2,7 +2,6 @@ { imports = [ ./browser.nix - ./easyeffects.nix ./email.nix ./kdenlive.nix ./mangohud.nix |
