users/foo-dogsquared: integrate wrapper-manager-fds

This commit is contained in:
Gabriel Arazas 2024-07-05 17:56:38 +08:00
parent c7964d141a
commit 6fd2e28370
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 8 additions and 5 deletions

View File

@ -32,6 +32,7 @@
modules = [
inputs.nur.hmModules.nur
inputs.sops-nix.homeManagerModules.sops
inputs.self.homeModules.wrapper-manager
];
nixvim = {
instance = "fiesta";

View File

@ -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;