mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-28 01:18:29 +02:00
refactor: ran deadnix
This commit is contained in:
parent
d863cf6688
commit
2fae2a695b
17 changed files with 20 additions and 142 deletions
|
@ -1,15 +1,17 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.spotify-tui ];
|
||||
sops.secrets."spotify" = { };
|
||||
age.secrets.spotify = {
|
||||
file = ../../../../secrets/rouven/spotify.age;
|
||||
};
|
||||
services.spotifyd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
global = {
|
||||
username = config.accounts.email.accounts."gmail".address;
|
||||
password_cmd = "${pkgs.coreutils}/bin/cat $XDG_RUNTIME_DIR/secrets/spotify";
|
||||
password_cmd = "${pkgs.coreutils}/bin/cat ${config.age.secrets.spotify.path}";
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.user.services.spotifyd.Unit.After = [ "sops-nix.service" ];
|
||||
systemd.user.services.spotifyd.Unit.After = [ "agenix.service" ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue