feat(home-manager): add support for spotify-player (#296)
* feat(home-manager): add support for spotify-player * fix: make use of `inherit` Co-authored-by: seth <getchoo@tuta.io> * feat(spotify-player): enable in tests * chore: update spotify-player input --------- Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
32326f7b9b
commit
ff4128f8ea
4 changed files with 30 additions and 0 deletions
|
@ -360,6 +360,18 @@
|
|||
"url": "https://github.com/catppuccin/skim/archive/d39304b5f84721788b19bc40aebcfd7720208d8a.tar.gz",
|
||||
"hash": "1b6cd1wfkprrn7imgf1w1f9a6iqy3bql2ansy7l0k44ps1gwrvxq"
|
||||
},
|
||||
"spotify-player": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "catppuccin",
|
||||
"repo": "spotify-player"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "34b3d23806770185b72466d777853c73454b85a6",
|
||||
"url": "https://github.com/catppuccin/spotify-player/archive/34b3d23806770185b72466d777853c73454b85a6.tar.gz",
|
||||
"hash": "15cz4x432681zwik8dwmjljj628v540c1fz1m4v6nvvw63bdzsbr"
|
||||
},
|
||||
"starship": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
./rio.nix
|
||||
./rofi.nix
|
||||
./skim.nix
|
||||
./spotify-player.nix
|
||||
./starship.nix
|
||||
./swaylock.nix
|
||||
./sway.nix
|
||||
|
|
16
modules/home-manager/spotify-player.nix
Normal file
16
modules/home-manager/spotify-player.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.catppuccin) sources;
|
||||
cfg = config.programs.spotify-player.catppuccin;
|
||||
enable = cfg.enable && config.programs.spotify-player.enable;
|
||||
in
|
||||
{
|
||||
options.programs.spotify-player.catppuccin = lib.ctp.mkCatppuccinOpt { name = "spotify-player"; };
|
||||
|
||||
config = lib.mkIf enable {
|
||||
programs.spotify-player = {
|
||||
settings.theme = "Catppuccin-${cfg.flavor}";
|
||||
inherit (lib.importTOML "${sources.spotify-player}/theme.toml") themes;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -47,6 +47,7 @@
|
|||
rio.enable = true;
|
||||
rofi.enable = true;
|
||||
skim.enable = true;
|
||||
spotify-player.enable = true;
|
||||
starship.enable = true;
|
||||
swaylock.enable = true;
|
||||
tmux.enable = true;
|
||||
|
|
Loading…
Reference in a new issue