diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-01 11:56:43 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-01 11:56:43 -0700 |
commit | 5555575f63c6ffefac2654e8e5a7a66e2b2e6d08 (patch) | |
tree | 583287b5673b831f64fcdd71e6c3036b0957cefe /users/fcuny | |
parent | swaybar: simplify colors (diff) | |
download | world-5555575f63c6ffefac2654e8e5a7a66e2b2e6d08.tar.gz |
consolidate configuration for music curation
Diffstat (limited to 'users/fcuny')
-rw-r--r-- | users/fcuny/cli/default.nix | 11 | ||||
-rw-r--r-- | users/fcuny/cli/media.nix (renamed from users/fcuny/cli/beets.nix) | 12 | ||||
-rw-r--r-- | users/fcuny/cli/yt-dlp.nix | 9 |
3 files changed, 14 insertions, 18 deletions
diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix index 2478998..77d236e 100644 --- a/users/fcuny/cli/default.nix +++ b/users/fcuny/cli/default.nix @@ -1,15 +1,8 @@ { config, lib, pkgs, ... }: { - imports = [ - ./backups.nix - ./beets.nix - ./git.nix - ./shell.nix - ./ssh.nix - ./tmux.nix - ./yt-dlp.nix - ]; + imports = + [ ./backups.nix ./git.nix ./media.nix ./shell.nix ./ssh.nix ./tmux.nix ]; home.packages = [ pkgs.gcc pkgs.gnumake pkgs.jq pkgs.ripgrep ]; } diff --git a/users/fcuny/cli/beets.nix b/users/fcuny/cli/media.nix index 39802a7..2dc54a5 100644 --- a/users/fcuny/cli/beets.nix +++ b/users/fcuny/cli/media.nix @@ -1,6 +1,18 @@ { config, lib, pkgs, ... }: { + xdg.configFile."yt-dlp/config".source = ../configs/yt-dlp/config; + + home.packages = with pkgs; [ + yt-dlp + flac + abcde + (pkgs.writers.writeDashBin "rip-flac" '' + ${pkgs.abcde}/bin/abcde -Vx -G -a "cddb,read,encode,tag,move,clean" -o flac + '') + ]; + + # inspired from https://blog.yossarian.net/2022/02/21/Enjoying-music-curation-again programs.beets = { enable = true; settings = { diff --git a/users/fcuny/cli/yt-dlp.nix b/users/fcuny/cli/yt-dlp.nix deleted file mode 100644 index d271692..0000000 --- a/users/fcuny/cli/yt-dlp.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - xdg.configFile."yt-dlp/config".source = ../configs/yt-dlp/config; - - home.packages = with pkgs; [ - yt-dlp - ]; -} |