enabled ncmpcpp
This commit is contained in:
parent
ef91a2a87c
commit
84d2e9d650
6 changed files with 32 additions and 21 deletions
|
@ -1,16 +1,16 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib; let
|
||||
cfg = config.myOptions.programs.ncmpcpp
|
||||
cfg = config.myOptions.programs.ncmpcpp;
|
||||
username = config.myOptions.other.system.username;
|
||||
in {
|
||||
options.myOptions.programs.ncmpcpp.enable = mkEnableOption "ncmpcpp";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
xdg.configFile."ncmpcpp/config".source = ./config;
|
||||
programs.ncmpcpp = {
|
||||
enable = true;
|
||||
mpdMusicDir = "/home/vali/Nextcloud/Media/Music";
|
||||
xdg.configFile."ncmpcpp/config".source = ./config;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue