split shell config, add yazi config and switch from mpdscribble to yams

This commit is contained in:
2026-11-05 15:53:16 +01:00
parent 881b09f50f
commit 6a44651a4d
14 changed files with 798 additions and 56 deletions
+29 -4
View File
@@ -1,4 +1,4 @@
{ ... }:
{ config, ... }:
{
sops = {
defaultSopsFile = ../secrets/secrets.yaml;
@@ -6,12 +6,37 @@
age.keyFile = "/home/user/.config/sops/age/keys.txt";
secrets."lastfm_password" = {
owner = "user";
secrets = {
"lastfm_password" = {
owner = "user";
};
"slskd_secrets" = {
owner = "user";
};
lastfm_api_key = { };
lastfm_api_secret = { };
};
secrets."slskd_secrets" = {
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: 30
session_file: /home/user/.config/yams/.lastfm_session
update_interval: 1
watch_threshold: 5
'';
};
useSystemdActivation = true;