feat(music): add enable option
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
|
music.enable = true;
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
keepassxc.enable = true;
|
keepassxc.enable = true;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
|
music.enable = true;
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
keepassxc.enable = true;
|
keepassxc.enable = true;
|
||||||
|
|||||||
@@ -65,6 +65,7 @@
|
|||||||
|
|
||||||
browser.primary = "firefox";
|
browser.primary = "firefox";
|
||||||
devenv.enable = true;
|
devenv.enable = true;
|
||||||
|
music.enable = true;
|
||||||
terminal.enable = true;
|
terminal.enable = true;
|
||||||
keepassxc.enable = true;
|
keepassxc.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
{
|
{
|
||||||
dotsPath,
|
config,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
dotsPath,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
cfg = config.music;
|
||||||
spotifyWithWayland = pkgs.symlinkJoin {
|
spotifyWithWayland = pkgs.symlinkJoin {
|
||||||
name = "spotify";
|
name = "spotify";
|
||||||
paths = [ pkgs.spotify ];
|
paths = [ pkgs.spotify ];
|
||||||
@@ -16,12 +19,14 @@ let
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
options.music.enable = lib.mkEnableOption "music";
|
||||||
spotifyWithWayland
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.ncspot = {
|
config = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
home.packages = [ spotifyWithWayland ];
|
||||||
settings = builtins.fromTOML (builtins.readFile (dotsPath + "/.config/ncspot/config.toml"));
|
|
||||||
|
programs.ncspot = {
|
||||||
|
enable = true;
|
||||||
|
settings = fromTOML (builtins.readFile (dotsPath + "/.config/ncspot/config.toml"));
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user