aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/services
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-26 17:59:09 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-26 17:59:44 -0500
commit5eb63082b564c2b44ff1858a7894d055e006043a (patch)
treedc68167e7b0bc52c75243c8298929498eea5f423 /nixos/.flake/home/services
parent178ef69d9d606fe6c7500a328a822845e73a53b2 (diff)
modularize config
Diffstat (limited to 'nixos/.flake/home/services')
-rw-r--r--nixos/.flake/home/services/core.nix13
-rw-r--r--nixos/.flake/home/services/mpd.nix16
-rw-r--r--nixos/.flake/home/services/syncthing.nix7
3 files changed, 36 insertions, 0 deletions
diff --git a/nixos/.flake/home/services/core.nix b/nixos/.flake/home/services/core.nix
new file mode 100644
index 0000000..132e3e6
--- /dev/null
+++ b/nixos/.flake/home/services/core.nix
@@ -0,0 +1,13 @@
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./mpd.nix
+ ./syncthing.nix
+ ];
+
+ home.packages = with pkgs; [
+ mako # TODO
+ mpdscribble
+ ];
+}
diff --git a/nixos/.flake/home/services/mpd.nix b/nixos/.flake/home/services/mpd.nix
new file mode 100644
index 0000000..a5a5dc0
--- /dev/null
+++ b/nixos/.flake/home/services/mpd.nix
@@ -0,0 +1,16 @@
+{ config, pkgs, ... }:
+
+{
+ services.mpd = {
+ enable = true;
+ musicDirectory = "~/Music";
+ extraConfig = ''
+ audio_output {
+ type "pipewire"
+ name "Pipewire"
+ mixer_type "hardware"
+ enabled "yes"
+ }
+ '';
+ };
+}
diff --git a/nixos/.flake/home/services/syncthing.nix b/nixos/.flake/home/services/syncthing.nix
new file mode 100644
index 0000000..1eccd8d
--- /dev/null
+++ b/nixos/.flake/home/services/syncthing.nix
@@ -0,0 +1,7 @@
+{ config, pkgs, ... }:
+
+{
+ services.syncthing = {
+ enable = true;
+ };
+}