diff options
| author | schererleander <leander@schererleander.de> | 2026-02-05 12:03:07 +0100 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2026-02-05 15:19:41 +0100 |
| commit | 3b13d9a2a367db84d48940460532c17a374bb488 (patch) | |
| tree | 599110a39c4baecf3991fe9a58d0103a43c38896 /modules/home/media | |
| parent | 46aa4842b98d9215baca00060c233f386a0c2188 (diff) | |
feat(modules): use dendritic pattern
Diffstat (limited to 'modules/home/media')
| -rw-r--r-- | modules/home/media/jellyfin-mpv-shim/default.nix | 38 | ||||
| -rw-r--r-- | modules/home/media/mpv/default.nix | 67 | ||||
| -rw-r--r-- | modules/home/media/nixcord/default.nix | 31 | ||||
| -rw-r--r-- | modules/home/media/spicetify/default.nix | 39 |
4 files changed, 0 insertions, 175 deletions
diff --git a/modules/home/media/jellyfin-mpv-shim/default.nix b/modules/home/media/jellyfin-mpv-shim/default.nix deleted file mode 100644 index 6594a70..0000000 --- a/modules/home/media/jellyfin-mpv-shim/default.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.nx.media.jellyfin-mpv-shim; - inherit (lib) mkEnableOption mkIf optionalAttrs; -in -{ - options.nx.media.jellyfin-mpv-shim = { - enable = mkEnableOption "Jellyfin MPV Shim"; - }; - - config = mkIf cfg.enable { - systemd.user.services.jellyfin-mpv-shim.Service.Environment = [ - "ENABLE_HDR_WSI=1" - ]; - - services.jellyfin-mpv-shim = { - enable = true; - settings = { - player_name = "mpv-shim"; - allow_transcode_to_h256 = true; - }; - mpvConfig = { - vo = "gpu-next"; - gpu-api = "vulkan"; - target-colorspace-hint = "yes"; - target-peak = 500; - } - // (optionalAttrs false { - target-trc = "pq"; - target-prim = "bt.2020"; - #target-peak = 406; - #tone-mapping = "spline"; - #tone-mapping-mode = "rgb"; - inverse-tone-mapping = "yes"; - }); - }; - }; -} diff --git a/modules/home/media/mpv/default.nix b/modules/home/media/mpv/default.nix deleted file mode 100644 index f6ac360..0000000 --- a/modules/home/media/mpv/default.nix +++ /dev/null @@ -1,67 +0,0 @@ -{ config, lib, ... }: -let - cfg = config.nx.media.mpv; - inherit (lib) - mkEnableOption - types - optional - mkIf - mkOption - ; -in -{ - options.nx.media.mpv = { - enable = mkEnableOption "a free, open source, and cross-platform media player"; - hdrExpansion = mkEnableOption "SDR to HDR inverse tone mapping"; - targetPeak = mkOption { - description = "Peak brightness of the display"; - type = types.int; - default = 500; # For MO27Q28G - }; - }; - config = mkIf cfg.enable { - programs.mpv = { - enable = true; - config = { - vo = "gpu-next"; - gpu-api = "vulkan"; - target-peak = cfg.targetPeak; - target-colorspace-hint = "yes"; - }; - profiles = { - # Dolby Vision profile - "DOVI" = { - profile-restore = "copy"; - profile-cond = "p[\"video-dec-params/gamma\"] == \"auto\""; - target-trc = "pq"; - target-prim = "bt.2020"; - target-peak = cfg.targetPeak; - tone-mapping-mode = "auto"; - }; - - # SDR look while in HDR - "SDR" = { - profile-restore = "copy"; - target-trc = "pq"; - target-prim = "bt.2020"; - target-peak = 207; - tone-mapping = "bt.2390"; - tone-mapping-mode = "rgb"; - inverse-tone-mapping = "yes"; - }; - - # SDR to HDR inverse tone mapping - "SDR_HDR_EFFECT" = { - profile-restore = "copy"; - target-trc = "pq"; - target-prim = "bt.2020"; - target-peak = 406; - tone-mapping = "spline"; - tone-mapping-mode = "rgb"; - inverse-tone-mapping = "yes"; - }; - }; - defaultProfiles = optional cfg.hdrExpansion "HDR_MODE:SDR_HDR_EFFECT"; - }; - }; -} diff --git a/modules/home/media/nixcord/default.nix b/modules/home/media/nixcord/default.nix deleted file mode 100644 index e2390a3..0000000 --- a/modules/home/media/nixcord/default.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ - config, - lib, - ... -}: -let - cfg = config.nx.media.nixcord; - inherit (lib) mkEnableOption mkIf; -in -{ - options.nx.media.nixcord = { - enable = mkEnableOption "nixcord and setup"; - }; - config = mkIf cfg.enable { - programs.nixcord = { - enable = true; - config = { - themeLinks = [ - "https://refact0r.github.io/system24/theme/system24.theme.css" - ]; - frameless = true; - plugins = { - alwaysAnimate.enable = false; - imageLink.enable = true; - imageZoom.enable = true; - translate.enable = true; - }; - }; - }; - }; -} diff --git a/modules/home/media/spicetify/default.nix b/modules/home/media/spicetify/default.nix deleted file mode 100644 index e72f7f3..0000000 --- a/modules/home/media/spicetify/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ - config, - lib, - pkgs, - inputs, - ... -}: - -let - spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; - cfg = config.nx.media.spicetify; - inherit (lib) mkEnableOption mkIf; -in -{ - options.nx.media.spicetify = { - enable = mkEnableOption "Command-line tool to customize the official Spotify client"; - }; - - config = mkIf cfg.enable { - nixpkgs.config.allowUnfree = true; - programs.spicetify = { - enable = true; - enabledSnippets = with spicePkgs.snippets; [ - pointer - sonicDancing - modernScrollbar - nyanCatProgressBar - declutterNowPlayingBar - ]; - - enabledExtensions = with spicePkgs.extensions; [ - keyboardShortcut - ]; - - theme = spicePkgs.themes.sleek; - colorScheme = "Coral"; - }; - }; -} |
