nixfleet/hmModules/spotify/default.nix
Andrea Ciceri a394b9cefd
All checks were successful
/ test (push) Successful in 32s
Reformat everything
2024-09-20 11:37:17 +02:00

26 lines
485 B
Nix

{
lib,
pkgs,
...
}:
let
spotify-adblocked = pkgs.callPackage ../../packages/spotify-adblocked { };
in
{
home.packages = [ spotify-adblocked ];
systemd.user.services.spotify-adblocked = {
Install.WantedBy = [ "graphical-session.target" ];
Unit = {
Description = "Spotify";
PartOf = [ "graphical-session.target" ];
};
Service = {
ExecStart = lib.getExe spotify-adblocked;
Restart = "on-failure";
RestartSec = 3;
};
};
}