Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
feat: spotifyd Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSt0NcACgkQuFOtpdp7 v3rkIQ//X0rie6SGiltnJBfMFXSHPUr3VAc9NUXjc8E2qtD/gR1fg83+RiAZa1e/ VwDhc+rQgN+mb9zxReoGnL3iTck+BqPdbmeGp6clHuydBRgjHGfwGC6phaWNwLoP 1taoZHP5f3kQo4mk04naVps9bV0XuDoZCExxwWovKlm2Je1D7E22+Hj+Om6Qzl/+ mDKm5nKg1eTvH8LzPQm/7umoF7kMFYLxl0ZcRcJxLQJA8aaxJAxoM5nWypGxg8lb lzLi8gb5GdWOMLN8U5xJkZ88l12ZA7PEst+61ym2wr2XJoAwXPxVi1J3ujVXw7OH vL/8T9poG0NlLhRpwbDLdzpnw/18nkAXruhz5Xefq+dq7NoqMclfuwOvMMBsdush 5c6Uh2YCCnu1F8LUjpRWFuu4i+2yi9vJpv8WWvN+J1+R+GNF3xHANVaF5wPApYjA Gt9dBAYUSy7bpCyiSMcWC+i2Uk1ktUIeHYLfo5kAG3yQwFPhHwnc2NU33JReC+ie Cz/a7GmYgHiJNQ5LjMECOEdc0EkMwnYal5Dd+9qXNVeZ6UtezkJTtrF9Qv0NE7cF cTfFbV0t5OfUhXInmkPg0nPrt4f5G0HdGXljpFa+tEWQzMju7qRcuZDuf2UsOAJz KFY6TJ7Je4h/Cx0x9BWl2oIEiHruUg6vFGVWqc94NRS6360Ls50= =PEcy -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
5 changed files, 38 additions(+), 0 deletions(-)
M apps/default.nix -> apps/default.nix
diff --git a/apps/default.nix b/apps/default.nix
index c2743fba5e72c77b94e150e7b7df5f93027254ea..92030e9ee20ada674479506e9473c0512867d6f7 100644
--- a/apps/default.nix
+++ b/apps/default.nix
@@ -16,6 +16,7 @@     ./helix.nix
     ./jq.nix
     ./nushell.nix
     ./oh-my-posh.nix
+    ./spotifyd.nix
     ./ssh.nix
     ./wezterm.nix
     ./zoxide.nix
@@ -31,6 +32,7 @@       duf
       du-dust
       fd
       just
+      spotify-tui
       ripgrep
 
       # LSPs
I apps/spotifyd.nix
diff --git a/apps/spotifyd.nix b/apps/spotifyd.nix
new file mode 100644
index 0000000000000000000000000000000000000000..fc0c170a6969b0e7cd708f3695eadd0684dbb16b
--- /dev/null
+++ b/apps/spotifyd.nix
@@ -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");
+}
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index b3674d13e60ddff14f59a86b6ea522e36aa674d9..779aaf9d40d372b3d1545e55ad07015678f1ebaf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -60,6 +60,10 @@           "nushell.nu" = {
             file = ./secrets/shared/nushell.nu.age;
             owner = "jolheiser";
           };
+          spotify-pw = {
+            file = ./secrets/shared/spotify-pw.age;
+            owner = "jolheiser";
+          };
         };
       };
     });
M secrets/secrets.nix -> secrets/secrets.nix
diff --git a/secrets/secrets.nix b/secrets/secrets.nix
index f4cb906844c3be96cea5484cc5c0b46706581578..a98f2761935d488a0dba2a6daf096ce6c286803a 100644
--- a/secrets/secrets.nix
+++ b/secrets/secrets.nix
@@ -9,4 +9,6 @@   "shared/ssh-config.age".publicKeys = all;
   "shared/ssh-config-work.age".publicKeys = all;
   "shared/nushell.nu.age".publicKeys = all;
 let
+  jolheiser = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrPUqk9v7FE7OgMDaOMdlnItiXSDkmS+eU94RzQFiMS nix";
+let
 let
I secrets/shared/spotify-pw.age
diff --git a/secrets/shared/spotify-pw.age b/secrets/shared/spotify-pw.age
new file mode 100644
index 0000000000000000000000000000000000000000..04895069b3878a2c96818a91ada677ada1917740
--- /dev/null
+++ b/secrets/shared/spotify-pw.age
@@ -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-----