mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
18 lines
472 B
Nix
18 lines
472 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
spotifyd = pkgs.runCommand "spotifyd-0.0.0" {} "mkdir $out";
|
|
in
|
|
|
|
{
|
|
services.spotifyd.enable = true;
|
|
services.spotifyd.package = spotifyd;
|
|
|
|
test = ''
|
|
echo >&2 "checking spotifyd service in ~/Library/LaunchAgents"
|
|
grep "org.nixos.spotifyd" ${config.out}/user/Library/LaunchAgents/org.nixos.spotifyd.plist
|
|
grep "${spotifyd}/bin/spotifyd" ${config.out}/user/Library/LaunchAgents/org.nixos.spotifyd.plist
|
|
'';
|
|
}
|