mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-08-17 00:20:44 +03:00
19 lines
472 B
Nix
19 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
|
||
|
'';
|
||
|
}
|