aboutsummaryrefslogtreecommitdiff
path: root/void
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-03-04 12:36:18 -0500
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-03-04 12:36:18 -0500
commitfdbeca13108fac5e5f07fb08d8b28d80ed973c1d (patch)
treea656d95b58ee4502cb5fc5cc834a7f42d74a771d /void
parentcfd09f66cbd48d527f1b9ab02aec2420d3fd7ab8 (diff)
downloadhome-fdbeca13108fac5e5f07fb08d8b28d80ed973c1d.tar.gz
service management wip
Diffstat (limited to 'void')
-rw-r--r--void/home.nix12
-rwxr-xr-xvoid/services/mpd/run3
-rwxr-xr-xvoid/services/pipewire/run3
3 files changed, 18 insertions, 0 deletions
diff --git a/void/home.nix b/void/home.nix
index 78f05fc..50fdb4a 100644
--- a/void/home.nix
+++ b/void/home.nix
@@ -29,5 +29,17 @@
mako.enable = true;
neovide.enable = true;
+
+ services = {
+ enable = true;
+ services = {
+ "pipewire" = {
+ run = "${builtins.readFile ./services/pipewire/run}";
+ };
+ "mpd" = {
+ run = "${builtins.readFile ./services/mpd/run}";
+ };
+ };
+ };
};
}
diff --git a/void/services/mpd/run b/void/services/mpd/run
new file mode 100755
index 0000000..d0c23db
--- /dev/null
+++ b/void/services/mpd/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -e "$TURNSTILE_ENV_DIR" mpd
diff --git a/void/services/pipewire/run b/void/services/pipewire/run
new file mode 100755
index 0000000..1de4c3b
--- /dev/null
+++ b/void/services/pipewire/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec chpst -e "$TURNSTILE_ENV_DIR" pipewire