nix(cmus): made cmusrc platform dependent

This commit is contained in:
Léana 江 2024-01-21 21:35:36 +01:00 committed by Léana 江
parent 2fee76eef9
commit 32e991b516
5 changed files with 126 additions and 7 deletions

View file

@ -0,0 +1,17 @@
{pkgs, ...}: {
home.packages = with pkgs; [
cmus
cmusfm
];
home.file.cmus = {
recursive = true;
source = let
inherit (pkgs.stdenv) isLinux;
in
if isLinux
then ./cmus-linux
else ./cmus-darwin;
target = ".config/cmus";
};
}