feat: mpdscribble
This commit is contained in:
11
flake.lock
generated
11
flake.lock
generated
@@ -23,15 +23,16 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731235328,
|
"lastModified": 1735820701,
|
||||||
"narHash": "sha256-NjavpgE9/bMe/ABvZpyHIUeYF1mqR5lhaep3wB79ucs=",
|
"narHash": "sha256-pr4HFkp/TqgGrVKKedQU+lZQwSQuX1JhqnJyyHxMhyE=",
|
||||||
"owner": "nix-community",
|
"owner": "msyds",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "60bb110917844d354f3c18e05450606a435d2d10",
|
"rev": "6948b7bc94c020d6292ef69f699cf37b9683eec9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "msyds",
|
||||||
|
"ref": "service-mpdscribble",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
impermanence.url = "github:nix-community/impermanence";
|
impermanence.url = "github:nix-community/impermanence";
|
||||||
|
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
# We're using my branch until #6259 is merged.
|
||||||
|
home-manager.url = "github:msyds/home-manager/service-mpdscribble";
|
||||||
|
# home-manager.url = "path:///persist/dots/DELETE-ME/home-manager";
|
||||||
|
|
||||||
niri.url = "github:sodiboo/niri-flake";
|
niri.url = "github:sodiboo/niri-flake";
|
||||||
|
|
||||||
|
|||||||
@@ -62,18 +62,9 @@ in {
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.mpdscribble = mkIf cfg.scrobbling.enable {
|
services.mpdscribble = mkIf cfg.scrobbling.enable {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# endpoints = {
|
endpoints = cfg.scrobbling.endpoints;
|
||||||
# "last.fm" = {
|
};
|
||||||
# passwordFile = "/etc/insecure-bullshit/lastfm-password.lol";
|
|
||||||
# username = "crumb1";
|
|
||||||
# };
|
|
||||||
# "libre.fm" = {
|
|
||||||
# passwordFile = "/etc/insecure-bullshit/librefm-password.lol";
|
|
||||||
# username = "crumbtoo";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,30 +18,9 @@
|
|||||||
sops = {
|
sops = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyFile = "/persist/user-files/${config.home.username}/key.txt";
|
keyFile = "/persist/user-files/${config.home.username}/key.txt";
|
||||||
secrets = {
|
|
||||||
lastfm-password = {};
|
|
||||||
librefm-password = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
mpd = {
|
|
||||||
enable = true;
|
|
||||||
scrobbling.endpoints = {
|
|
||||||
"last.fm" = {
|
|
||||||
passwordFile = config.sydnix.sops.secrets.lastfm-password.path;
|
|
||||||
username = "crumb1";
|
|
||||||
};
|
|
||||||
"libre.fm" = {
|
|
||||||
passwordFile = config.sydnix.sops.secrets.librefm-password.path;
|
|
||||||
username = "crumbtoo";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
|
||||||
];
|
|
||||||
|
|
||||||
# Don't touch!
|
# Don't touch!
|
||||||
home.stateVersion = "18.09";
|
home.stateVersion = "18.09";
|
||||||
};
|
};
|
||||||
|
|||||||
28
users/crumb/programs/mpd.nix
Normal file
28
users/crumb/programs/mpd.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
sydnix.sops.secrets = {
|
||||||
|
lastfm-password = {};
|
||||||
|
librefm-password = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
sydnix.mpd = {
|
||||||
|
enable = true;
|
||||||
|
scrobbling.endpoints = {
|
||||||
|
"last.fm" = {
|
||||||
|
passwordFile =
|
||||||
|
"/home/crumb/.config/sops-nix/secrets/lastfm-password";
|
||||||
|
username = "crumb1";
|
||||||
|
};
|
||||||
|
"libre.fm" = {
|
||||||
|
passwordFile =
|
||||||
|
"/home/crumb/.config/sops-nix/secrets/librefm-password";
|
||||||
|
username = "crumbtoo";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# mpdscribble uses our password files, so it is imperative that the service
|
||||||
|
# runs only after said password files are brought into existence. }:)
|
||||||
|
systemd.user.services.mpdscribble.Unit.After = [ "sops-nix.service" ];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user