mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-03 15:39:41 +00:00
nix(cmus): made cmusrc platform dependent
This commit is contained in:
parent
2fee76eef9
commit
32e991b516
5 changed files with 126 additions and 7 deletions
17
nix/home/common/cmus/default.nix
Normal file
17
nix/home/common/cmus/default.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue