189 current 2024-07-05 11:29:17 24.11.20240703.9f4128e 6.9.7-zen1 *

This commit is contained in:
sadan 2024-07-05 11:29:22 -04:00
parent 2551359777
commit e9fcaf543f
No known key found for this signature in database
2 changed files with 15 additions and 1 deletions

View file

@ -14,7 +14,7 @@ let
"setopt globstarshort"
];
_z1 = lib.concatMapStrings (x: x + "\n") zshInitArgs;
DES = import ../../common/desktopEntries.nix {};
in
{
nixpkgs.config.allowInsecurePredicate = (pkg: true);
@ -89,6 +89,7 @@ nixpkgs.config.allowInsecurePredicate = (pkg: true);
home.shellAliases = shell.dev.aliases;
home.sessionPath = shell.dev.path;
home.sessionVariables = shell.dev.env;
xdg.desktopEntries = DES;
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;

13
common/desktopEntries.nix Normal file
View file

@ -0,0 +1,13 @@
{}:
{
spotifyOpen = {
type = "Application";
name = "Open in Spotify";
genericName = "Music Player";
icon = "spotify-client";
terminal = false;
categories = [ "Audio" "Music" "Player" "AudioVideo" ];
exec = "qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri %U";
mimeType = [ "x-scheme-handler/spotify" ];
};
}