From 79f651887b6bd83450aaed2430278d494920abf1 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 13 Feb 2022 10:50:06 +0900 Subject: chore: remove spotify-tui --- home/modules/programs/spotify-tui/default.nix | 57 --------------------------- home/profiles/multimedia/default.nix | 41 ------------------- 2 files changed, 98 deletions(-) delete mode 100644 home/modules/programs/spotify-tui/default.nix (limited to 'home') diff --git a/home/modules/programs/spotify-tui/default.nix b/home/modules/programs/spotify-tui/default.nix deleted file mode 100644 index 1693883..0000000 --- a/home/modules/programs/spotify-tui/default.nix +++ /dev/null @@ -1,57 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - - cfg = config.programs.spotify-tui; - yamlFormat = pkgs.formats.yaml { }; - -in -{ - meta.maintainers = with lib.maintainers; [ boppyt ]; - - options.programs.spotify-tui = { - enable = mkEnableOption "A Spotify client for the terminal written in Rust."; - - package = mkOption { - type = types.package; - default = pkgs.spotify-tui; - defaultText = literalExpression "pkgs.spotify-tui"; - description = "The spotify-tui package to install"; - }; - - settings = mkOption { - type = yamlFormat.type; - default = { }; - description = '' - Configuration written to - $XDG_CONFIG_HOME/spotify-tui/config.yml. See - for a list of available options. - ''; - example = literalExpression '' - { - theme = { - active = "Cyan"; - banner = "LightCyan"; - }; - - behavior = { - seek_milliseconds = 5000; - volume_increment = 10; - }; - } - ''; - }; - }; - - config = mkIf cfg.enable { - - home.packages = [ cfg.package ]; - - xdg.configFile."spotify-tui/config.yml" = mkIf (cfg.settings != { }) { - source = yamlFormat.generate "spotify-tui-config" cfg.settings; - }; - }; -} diff --git a/home/profiles/multimedia/default.nix b/home/profiles/multimedia/default.nix index ccfc8aa..591bff5 100644 --- a/home/profiles/multimedia/default.nix +++ b/home/profiles/multimedia/default.nix @@ -4,7 +4,6 @@ in { imports = [ ../../modules/programs/nixpkgs - ../../modules/programs/spotify-tui ]; options.profiles.multimedia = { @@ -14,45 +13,5 @@ in config = lib.mkIf cfg.enable { home.packages = with pkgs; [ playerctl nuclear ]; - - services.spotifyd = { - enable = true; - - package = (pkgs.spotifyd.override { withMpris = true; }); - - settings = { - global = { - username = "9nko3f7puya1e5bbo9c5ifddy"; - password_cmd = "cat /run/secrets/spotify-password"; # DISCLAIMER: this expects the `spotify` secret to be present (sops-nix) - }; - }; - }; - - programs.spotify-tui = { - enable = true; - - settings = { - theme = { - active = "Blue"; - banner = "LightBlue"; - hovered = "LightBlue"; - inactive = "Blue"; - playbar_background = "Blue"; - playbar_progress = "LightBlue"; - playbar_progress_text = "Black"; - playbar_text = "Blue"; - selected = "LightBlue"; - text = "203, 192, 171"; # Wrong color mappings on white - header = "203, 191, 171"; - }; - - behavior = { - seek_milliseconds = 5000; - volume_increment = 10; - }; - }; - }; - - nixpkgs.allowedUnfree = [ "spotify" "spotify-unwrapped" ]; }; } -- cgit 1.4.1