mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
users/foo-dogsquared: integrate wrapper-manager-fds
This commit is contained in:
parent
c7964d141a
commit
6fd2e28370
@ -32,6 +32,7 @@
|
||||
modules = [
|
||||
inputs.nur.hmModules.nur
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.self.homeModules.wrapper-manager
|
||||
];
|
||||
nixvim = {
|
||||
instance = "fiesta";
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user