mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-11 22:40:05 -05:00
spotifyd Stuff
This commit is contained in:
parent
810bd854d8
commit
a7f18eab61
1 changed files with 25 additions and 10 deletions
|
|
@ -45,6 +45,9 @@
|
||||||
|
|
||||||
# Helper stuff
|
# Helper stuff
|
||||||
pkgs.nixpkgs-fmt
|
pkgs.nixpkgs-fmt
|
||||||
|
|
||||||
|
# Don't know what to call this
|
||||||
|
pkgs.spotifyd
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
|
@ -117,16 +120,28 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.spotifyd = {
|
# Install and setup spotifyd
|
||||||
enable = true;
|
sops.templates."spotifyd.conf".content = ''
|
||||||
settings = {
|
[global]
|
||||||
global = {
|
username = "me@annikamerris.com"
|
||||||
username = "me@annikamerris.com";
|
password = "${config.sops.placeholder."spotifyd/settings/global/password"}"
|
||||||
password = "R%3@TNGQYckkGopY";
|
use_mpris = true
|
||||||
use_mpris = true;
|
device_name = "kim-nix"
|
||||||
device_name = "kim-nix";
|
device_type = "computer"
|
||||||
device_type = "computer";
|
'';
|
||||||
};
|
systemd.user.services.spotifyd = {
|
||||||
|
Unit = {
|
||||||
|
Description = "spotify daemon";
|
||||||
|
Documentation = "https://github.com/Spotifyd/spotifyd";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ "default.target" ];
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart =
|
||||||
|
"${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path ${config.sops.templates."spotifyd.conf".path}";
|
||||||
|
Restart = "always";
|
||||||
|
RestartSec = 12;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue