summaryrefslogtreecommitdiffstats
path: root/audio.nix
diff options
context:
space:
mode:
Diffstat (limited to 'audio.nix')
-rw-r--r--audio.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio.nix b/audio.nix
index f146189..a84bac3 100644
--- a/audio.nix
+++ b/audio.nix
@@ -1,6 +1,7 @@
{
config,
pkgs,
+ username,
...
}: {
services.pipewire = {
@@ -17,7 +18,7 @@
};
};
- hjem.users.andrew = {
+ hjem.users.${username} = {
files = {
".config/mpd/mpd.conf".source = ./dotfiles/mpd/mpd.conf;
@@ -34,7 +35,7 @@
description = "Music Player Daemon";
wantedBy = ["default.target"];
serviceConfig = {
- ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon /home/andrew/.config/mpd/mpd.conf";
+ ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon /home/${username}/.config/mpd/mpd.conf";
Restart = "on-failure";
};
};