From a00086f63df186181c254a164c77b974cc7a5c7c Mon Sep 17 00:00:00 2001 From: Skullheadx Date: Mon, 29 Jun 2026 14:38:08 -0400 Subject: DRY for username --- audio.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'audio.nix') 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"; }; }; -- cgit v1.3.1