mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nix): ✨ mkOptions ✨
This commit is contained in:
parent
d98d30916b
commit
989d025f56
42 changed files with 80 additions and 78 deletions
23
nix/home/_/cmus/default.nix
Normal file
23
nix/home/_/cmus/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
home = lib.optionalAttrs config.cmus.enable {
|
||||
packages = with pkgs; [
|
||||
cmus
|
||||
cmusfm
|
||||
];
|
||||
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