From 5fce4b6474ffcd616aeb533a55d9729bdeac5cd9 Mon Sep 17 00:00:00 2001
From: jjanzen <jjanzen@jjanzen.ca>
Date: Mon, 13 Jan 2025 22:42:40 -0600
Subject: system changes

---
 macos.local/.flake/home/programs/core.nix.org    |  1 +
 macos.local/.flake/home/programs/ncmpcpp.nix.org | 28 ++++++++++++++++++++++++
 macos.local/.flake/home/services/core.nix.org    | 12 ++++++++++
 macos.local/.flake/home/services/mpd.nix.org     | 21 ++++++++++++++++++
 4 files changed, 62 insertions(+)
 create mode 100644 macos.local/.flake/home/programs/ncmpcpp.nix.org
 create mode 100644 macos.local/.flake/home/services/core.nix.org
 create mode 100644 macos.local/.flake/home/services/mpd.nix.org

(limited to 'macos.local')

diff --git a/macos.local/.flake/home/programs/core.nix.org b/macos.local/.flake/home/programs/core.nix.org
index 85641d1..5c00cea 100644
--- a/macos.local/.flake/home/programs/core.nix.org
+++ b/macos.local/.flake/home/programs/core.nix.org
@@ -10,6 +10,7 @@ Import configurations for programs and install programs with no configuration.
       ./fastfetch.nix
       ./ghostty.nix
       ./git.nix
+      ./ncmpcpp.nix
       ./neovim.nix
       ./ssh.nix
       ./zsh/core.nix
diff --git a/macos.local/.flake/home/programs/ncmpcpp.nix.org b/macos.local/.flake/home/programs/ncmpcpp.nix.org
new file mode 100644
index 0000000..6c697ef
--- /dev/null
+++ b/macos.local/.flake/home/programs/ncmpcpp.nix.org
@@ -0,0 +1,28 @@
+#+title: =ncmpcpp= Configuration
+
+Enable =vi=-like controls and specify directories and =mpd= address.
+#+begin_src nix
+  { config, pkgs, ... }:
+
+  {
+    programs.ncmpcpp = {
+      enable = true;
+      bindings = [
+        { key = "j"; command = "scroll_down"; }
+        { key = "k"; command = "scroll_up"; }
+        { key = "h"; command = "previous_column"; }
+        { key = "l"; command = "next_column"; }
+        { key = "g"; command = "move_home"; }
+        { key = "G"; command = "move_end"; }
+        { key = "n"; command = "next_found_item"; }
+        { key = "N"; command = "previous_found_item"; }
+      ];
+      mpdMusicDir = "/Volumes/Media/Music";
+      settings = {
+        ncmpcpp_directory = "~/.config/nmcpcpp";
+        mpd_host = "localhost";
+        mpd_port = "6600";
+      };
+    };
+  }
+#+end_src
diff --git a/macos.local/.flake/home/services/core.nix.org b/macos.local/.flake/home/services/core.nix.org
new file mode 100644
index 0000000..d504770
--- /dev/null
+++ b/macos.local/.flake/home/services/core.nix.org
@@ -0,0 +1,12 @@
+#+title: Service Configuration
+
+Load service configurations.
+#+begin_src nix
+  { config, pkgs, ... }:
+
+  {
+    imports = [
+      ./mpd.nix
+    ];
+  }
+#+end_src
diff --git a/macos.local/.flake/home/services/mpd.nix.org b/macos.local/.flake/home/services/mpd.nix.org
new file mode 100644
index 0000000..6d9d6de
--- /dev/null
+++ b/macos.local/.flake/home/services/mpd.nix.org
@@ -0,0 +1,21 @@
+#+title: =mpd= Configuration
+
+Configure =mpd= as a music player.
+#+begin_src nix
+  { config, pkgs, ... }:
+
+  {
+    services.mpd = {
+      enable = true;
+      musicDirectory = "/Volumes/Media/Music";
+      extraConfig = ''
+      audio_output {
+        type "osx"
+        name "CoreAudio"
+        mixer_type "software"
+        enabled "yes"
+      }
+      '';
+    };
+  }
+#+end_src
-- 
cgit v1.2.3