From dcb525cce235eed55c942bda89e888a3626aede6 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 6 Feb 2026 11:11:19 +0100 Subject: [PATCH] feat: set up 'music' module --- dots/.config/ncspot/config.toml | 2 +- dots/.config/ncspot/credentials.toml | 3 --- home/hosts/andromache/default.nix | 1 + home/hosts/astyanax/default.nix | 1 + home/hosts/work/default.nix | 1 + home/modules/music/default.nix | 16 ++++++++++++++++ 6 files changed, 20 insertions(+), 4 deletions(-) delete mode 100644 dots/.config/ncspot/credentials.toml create mode 100644 home/modules/music/default.nix diff --git a/dots/.config/ncspot/config.toml b/dots/.config/ncspot/config.toml index b66d511..975782d 100644 --- a/dots/.config/ncspot/config.toml +++ b/dots/.config/ncspot/config.toml @@ -26,7 +26,7 @@ flip_status_indicators = true "-" = "voldown 1" "/" = "focus search" "Q" = "focus queue" -"L" = "focus library" +# "L" = "focus library" "1" = "focus queue" "2" = "focus library" "h" = "move left 1" diff --git a/dots/.config/ncspot/credentials.toml b/dots/.config/ncspot/credentials.toml deleted file mode 100644 index d3f812c..0000000 --- a/dots/.config/ncspot/credentials.toml +++ /dev/null @@ -1,3 +0,0 @@ -username = 'hektor.misplon@gmail.com' -auth_type = 0 -auth_data = 'KDEzMzc9PXRydTMpPzo=' diff --git a/home/hosts/andromache/default.nix b/home/hosts/andromache/default.nix index 8cd7d8e..57c77d2 100644 --- a/home/hosts/andromache/default.nix +++ b/home/hosts/andromache/default.nix @@ -19,6 +19,7 @@ in ../../modules/git ../../modules/k8s/k9s.nix ../../modules/kitty.nix + ../../modules/music ../../modules/nvim.nix ../../modules/ssh.nix ../../modules/taskwarrior.nix diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index cd65f75..c7c39c3 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -18,6 +18,7 @@ in ../../modules/git ../../modules/k8s/k9s.nix ../../modules/kitty.nix + ../../modules/music ../../modules/nfc ../../modules/nvim.nix ../../modules/ssh.nix diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index 24d06f6..db7baa9 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -25,6 +25,7 @@ in ../../modules/nvim.nix ../../modules/browser ../../modules/shell + ../../modules/music ../../modules/taskwarrior.nix ]; diff --git a/home/modules/music/default.nix b/home/modules/music/default.nix new file mode 100644 index 0000000..1fab813 --- /dev/null +++ b/home/modules/music/default.nix @@ -0,0 +1,16 @@ +{ + dotsPath, + pkgs, + ... +}: + +{ + home.packages = with pkgs; [ + ncspot + # (if config.lib ? nixGL then config.lib.nixGL.wrap spotify else spotify) + ]; + + home.file = { + ".config/ncspot/config.toml".source = dotsPath + "/.config/ncspot/config.toml"; + }; +}