diff --git a/configs/flake-parts/home-manager.nix b/configs/flake-parts/home-manager.nix index c067018c..de49fd21 100644 --- a/configs/flake-parts/home-manager.nix +++ b/configs/flake-parts/home-manager.nix @@ -32,6 +32,7 @@ modules = [ inputs.nur.hmModules.nur inputs.sops-nix.homeManagerModules.sops + inputs.self.homeModules.wrapper-manager ]; nixvim = { instance = "fiesta"; diff --git a/configs/home-manager/foo-dogsquared/modules/setups/music.nix b/configs/home-manager/foo-dogsquared/modules/setups/music.nix index a1efdb1f..f1abe148 100644 --- a/configs/home-manager/foo-dogsquared/modules/setups/music.nix +++ b/configs/home-manager/foo-dogsquared/modules/setups/music.nix @@ -4,10 +4,6 @@ let userCfg = config.users.foo-dogsquared; cfg = userCfg.setups.music; - ytdlpAudio = pkgs.writeScriptBin "yt-dlp-audio" '' - ${pkgs.yt-dlp}/bin/yt-dlp --config-location "${../../config/yt-dlp/audio.conf}" $@ - ''; - musicDir = config.xdg.userDirs.music; playlistsDir = "${musicDir}/playlists"; in @@ -21,10 +17,16 @@ in { home.packages = with pkgs; [ songrec # SHAZAM! - ytdlpAudio # My custom script for downloading music with yt-dlp. picard # Graphical beets. ]; + wrapper-manager.wrappers.yt-dlp-audio = { + arg0 = lib.getExe' pkgs.yt-dlp "yt-dlp"; + prependArgs = [ + "--config-location" ../../config/yt-dlp/audio.conf + ]; + }; + # Enable the desktop audio profile for extra auditorial goodies. suites.desktop.audio = { enable = lib.mkDefault true;