Set up spotifyd with spotify-qt
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
networking.networkmanager.enable = true;
|
||||
programs.nm-applet.enable = true;
|
||||
|
||||
# A bit confusing but this is required for the home-manager spotifyd :/
|
||||
age.secrets.spotify_pass = {
|
||||
file = ../../../secrets/spotify_pass.age;
|
||||
owner = config.users.users.daniel.name;
|
||||
};
|
||||
|
||||
services = {
|
||||
gnome.gnome-keyring.enable = true;
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ let
|
||||
system2 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwfy5oG1heHoQlZgrTxqlW+oOTB8NdNcNm1IpKyqfIA root@nixos";
|
||||
systems = [system1 system2];
|
||||
in {
|
||||
"spotify_pass.age".publicKeys = systems ++ users;
|
||||
"rclone_password1.age".publicKeys = [user4 system2];
|
||||
"rclone_password2.age".publicKeys = [user4 system2];
|
||||
"dungflix_bucket_account_id.age".publicKeys = [user4 system2];
|
||||
|
||||
18
secrets/spotify_pass.age
Normal file
18
secrets/spotify_pass.age
Normal file
@@ -0,0 +1,18 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 SukvQA pg/PAlDK4u7hUBGCWy/DcsgmNx5EItHOuUtxWLwJeFo
|
||||
tEjr3jiRsNgDR+ygfq5mtO/n5yOaJKjhAIvtCbNbNUo
|
||||
-> ssh-ed25519 GzHGXw OumojtCAEXpYNofHQsu/Pp0gPwBaX1kJxmu1aTbXbVc
|
||||
YSalCfhAWQbd0tmSTb5ZvBtIJhi7JHhF4eUsiFE4anM
|
||||
-> ssh-ed25519 eYYv1Q jYHxI/iaEOUvbK74hcCnE3+5vUktYhW7uEOJMB8cpT8
|
||||
9NnopXUBDKfn+Ece0qIYVUWeA5WcuJUKse7OcXOH5Ss
|
||||
-> ssh-ed25519 Bp5IaA r3eCw5PzJXMlgunlPDL4CRDAsnuGkHMHjEe4J6NbKH4
|
||||
AskQ1RBBrcBTo1wKK1xN57kf7znV2eQxngaiJSKButM
|
||||
-> ssh-ed25519 T/DpgA rGIlJTUCplaLp9J0i7VEdQgOVFgEFLmaDV1HJE4Ysys
|
||||
vS3+yjscM30wzDpK/Nw/f7j0clPysnrWCrM8/9MQ8vQ
|
||||
-> ssh-ed25519 qMgRFg kQsnSSzw8m1SCFlBYA3YlRUaJbKe8sWhnUp+hHO4wlw
|
||||
v49s0QbsVsUUH795fuY/yvSLl+pN7QaG67fRv3y1luk
|
||||
-> G{-grease
|
||||
dfLigYlXuzgNVl+bYuLWYGMoFGdWIu92sAmBR9L2LxeQhlHIDE77RQiuqgiKiLlh
|
||||
xoif51stfS5BNWXBfi71qudhhRK4sheyi6B8yMXGFnI
|
||||
--- jXZppNsn5VlJ0g1ODbnSRDtPVCo+5Ky+JXyavAAqddM
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>V<EFBFBD>/<2F>S<EFBFBD><53>>NM<4E>S<EFBFBD><53>8<EFBFBD><38><EFBFBD><EFBFBD><05>Ħ a<>V<EFBFBD>3<EFBFBD>"&zJ1<4A>5
|
||||
@@ -3,6 +3,7 @@
|
||||
./i3
|
||||
./i3status-rust
|
||||
# ./polybar
|
||||
./spotify
|
||||
./rofi
|
||||
];
|
||||
}
|
||||
|
||||
@@ -199,7 +199,10 @@ in {
|
||||
}
|
||||
{
|
||||
command = "move scratchpad";
|
||||
criteria = {instance = "spotify";};
|
||||
criteria = {
|
||||
instance = "spotify";
|
||||
window_type = "normal";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
{
|
||||
block = "music";
|
||||
player = "spotify";
|
||||
player = "spotifyd";
|
||||
buttons = ["prev" "play" "next"];
|
||||
}
|
||||
{
|
||||
|
||||
21
users/daniel/configs/desktop/spotify/default.nix
Normal file
21
users/daniel/configs/desktop/spotify/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.spotifyd = {
|
||||
enable = true;
|
||||
package = pkgs.spotifyd.override {withMpris = true;};
|
||||
settings = {
|
||||
global = {
|
||||
username = "me@danielpatterson.dev";
|
||||
password_cmd = "cat /run/agenix/spotify_pass";
|
||||
|
||||
initial_volume = "70";
|
||||
|
||||
device_type = "computer";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -58,6 +58,7 @@
|
||||
pamixer
|
||||
pavucontrol
|
||||
playerctl
|
||||
spotify-qt
|
||||
spotify
|
||||
xclip
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user