2024-05-07 23:31:41 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-04-16 13:38:31 +02:00
|
|
|
let
|
|
|
|
cfg = config.grimmShared;
|
|
|
|
in
|
|
|
|
{
|
2024-05-07 23:31:41 +02:00
|
|
|
config =
|
|
|
|
with cfg;
|
|
|
|
lib.mkIf (enable && spotify.enable) {
|
|
|
|
environment.systemPackages = [ pkgs.ncspot ] ++ lib.optional graphical pkgs.spotify;
|
2024-04-16 13:38:31 +02:00
|
|
|
|
2024-05-07 23:31:41 +02:00
|
|
|
grimmShared = {
|
|
|
|
sound.enable = true;
|
|
|
|
network = true;
|
|
|
|
};
|
2024-04-16 13:38:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
options.grimmShared.spotify = {
|
|
|
|
enable = lib.mkEnableOption "grimm-spotify";
|
|
|
|
};
|
|
|
|
|
2024-05-07 23:31:41 +02:00
|
|
|
imports = [ ./spotifyd.nix ];
|
2024-04-16 13:38:31 +02:00
|
|
|
}
|