aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/services
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/.flake/home/services')
-rw-r--r--macos.local/.flake/home/services/core.nix.org12
-rw-r--r--macos.local/.flake/home/services/mpd.nix.org21
2 files changed, 33 insertions, 0 deletions
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