mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 06:19:11 +00:00
users/foo-dogsquared: integrate wrapper-manager-fds
This commit is contained in:
parent
c7964d141a
commit
6fd2e28370
@ -32,6 +32,7 @@
|
|||||||
modules = [
|
modules = [
|
||||||
inputs.nur.hmModules.nur
|
inputs.nur.hmModules.nur
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
|
inputs.self.homeModules.wrapper-manager
|
||||||
];
|
];
|
||||||
nixvim = {
|
nixvim = {
|
||||||
instance = "fiesta";
|
instance = "fiesta";
|
||||||
|
@ -4,10 +4,6 @@ let
|
|||||||
userCfg = config.users.foo-dogsquared;
|
userCfg = config.users.foo-dogsquared;
|
||||||
cfg = userCfg.setups.music;
|
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;
|
musicDir = config.xdg.userDirs.music;
|
||||||
playlistsDir = "${musicDir}/playlists";
|
playlistsDir = "${musicDir}/playlists";
|
||||||
in
|
in
|
||||||
@ -21,10 +17,16 @@ in
|
|||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
songrec # SHAZAM!
|
songrec # SHAZAM!
|
||||||
ytdlpAudio # My custom script for downloading music with yt-dlp.
|
|
||||||
picard # Graphical beets.
|
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.
|
# Enable the desktop audio profile for extra auditorial goodies.
|
||||||
suites.desktop.audio = {
|
suites.desktop.audio = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
|
Loading…
Reference in New Issue
Block a user