54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ config, ... }:
|
|
{
|
|
sops = {
|
|
defaultSopsFile = ../secrets/secrets.yaml;
|
|
defaultSopsFormat = "yaml";
|
|
|
|
age.keyFile = "/home/user/.config/sops/age/keys.txt";
|
|
|
|
secrets = {
|
|
"lastfm_password" = {
|
|
owner = "user";
|
|
};
|
|
"slskd_secrets" = {
|
|
owner = "user";
|
|
};
|
|
lastfm_api_key = { };
|
|
lastfm_api_secret = { };
|
|
};
|
|
|
|
templates."yams.yaml" = {
|
|
path = "/home/user/.config/yams/yams.yml";
|
|
owner = "user";
|
|
|
|
content = ''
|
|
allow_same_track_scrobble_in_a_row: false
|
|
api_key: "${config.sops.placeholder.lastfm_api_key}"
|
|
api_secret: "${config.sops.placeholder.lastfm_api_secret}"
|
|
base_url: http://ws.audioscrobbler.com/2.0/
|
|
disable_log: false
|
|
mpd_host: /tmp/mpd_socket
|
|
mpd_port: '6600'
|
|
no_daemon: false
|
|
real_time: true
|
|
scrobble_min_time: 10
|
|
scrobble_threshold: 40
|
|
session_file: /home/user/.config/yams/.lastfm_session
|
|
update_interval: 1
|
|
watch_threshold: 5
|
|
'';
|
|
};
|
|
|
|
useSystemdActivation = true;
|
|
};
|
|
|
|
systemd.user.services.mpdscribble = {
|
|
requires = [
|
|
"sops-install-secrets.service"
|
|
];
|
|
after = [
|
|
"sops-install-secrets.service"
|
|
];
|
|
};
|
|
}
|