feat: spotifyd

Signed-off-by: jolheiser <john.olheiser@gmail.com>
teamcity
jolheiser 2023-07-11 16:59:51 -05:00
parent 3e3b472e51
commit eaf3787f11
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
5 changed files with 37 additions and 0 deletions

View File

@ -16,6 +16,7 @@
./jq.nix ./jq.nix
./nushell.nix ./nushell.nix
./oh-my-posh.nix ./oh-my-posh.nix
./spotifyd.nix
./ssh.nix ./ssh.nix
./wezterm.nix ./wezterm.nix
./zoxide.nix ./zoxide.nix
@ -31,6 +32,7 @@
du-dust du-dust
fd fd
just just
spotify-tui
ripgrep ripgrep
# LSPs # LSPs

17
apps/spotifyd.nix 100644
View File

@ -0,0 +1,17 @@
{pkgs, ...}: {
services.spotifyd = {
enable = true;
settings.global = {
username = "john.olheiser";
password_cmd = "cat /run/agenix/spotify-pw";
device_name = "nix";
};
};
xdg.configFile."spotify-tui/config.yml".text = builtins.readFile (pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "spotify-tui";
rev = "45a4ef12508784410c516746c9d84862d52e4567";
sha256 = "sha256-RXJ+skwUu2miCbBDLXx0Md0aVgo3iub2rQBzICwYLMU=";
}
+ "/mocha.yml");
}

View File

@ -60,6 +60,10 @@
file = ./secrets/shared/nushell.nu.age; file = ./secrets/shared/nushell.nu.age;
owner = "jolheiser"; owner = "jolheiser";
}; };
spotify-pw = {
file = ./secrets/shared/spotify-pw.age;
owner = "jolheiser";
};
}; };
}; };
}); });

View File

@ -8,4 +8,5 @@ in {
"shared/ssh-config.age".publicKeys = all; "shared/ssh-config.age".publicKeys = all;
"shared/ssh-config-work.age".publicKeys = all; "shared/ssh-config-work.age".publicKeys = all;
"shared/nushell.nu.age".publicKeys = all; "shared/nushell.nu.age".publicKeys = all;
"shared/spotify-pw.age".publicKeys = all;
} }

View File

@ -0,0 +1,13 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IEU4ajYvZyB5MlA0
eGhSSmRPTjc4dDJpZ1dBNlhmS0NDT3VUalloQ0MzNDREZTM1Y1dRCkxsQnJHNlV3
NmlGVVVLUk5VWllmMlR5UXZac0tBejNpTkI1Njh6STV5UzAKLT4gc3NoLWVkMjU1
MTkgam8xTVBBIG9nbVBXLzVmNTROUUU2ZUxZR1dhWkZJSEZ2TDlUNjY5L1pKVytO
WUJlRFkKbjRyc0VYazdIaWpqbkNuZUFvd1JsR21VczF3UGdFNmF3U0J5MjU2ZG95
UQotPiBPNy1ncmVhc2UgZjpTTSlBaCkKaEVDb1NVZ0hyY3o2RE1CTDQxNDN1SnVp
SklKREFwMHg4VklES0V4MWdFVGlROTBkZ25JZG5IS2NUN0lIRlFEbApLYnBEak9x
R3BBdVFjTzhRUVg1U1JEZXRrUEdEQXM2Z0FQR1F2KzhiR2dWZGUzcFRCUFpFTXIw
L2h4NytORm8KLS0tIDVKKzgzR1ZqMkF2RG1OZXoxcFMzMkFIaUdEaVNMb0xpMjVO
VTZ6b0pUVGcKSXvrqA0huEbxdXkW++sACbzvVdFBId2lcQSef3jS1jjseG9tmGX6
z4x2VMvcuskidyihMA==
-----END AGE ENCRYPTED FILE-----