about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-03 06:32:57 +0200
committerene <ene@sils.li>2023-04-03 06:32:57 +0200
commitc6b3547cabb358b26544701656e8b4a8cb78296d (patch)
tree47e56db3bc180cb3dad51a3dabf88b20adf522bc
parentFix(boostrap/install): Enforce applying information (diff)
downloadnixos-config-c6b3547cabb358b26544701656e8b4a8cb78296d.tar.gz
nixos-config-c6b3547cabb358b26544701656e8b4a8cb78296d.zip
Fix(hm/conf/mpd): Move socket to runtime dir
Diffstat (limited to '')
-rw-r--r--home-manager/config/mpd/default.nix3
-rw-r--r--home-manager/default.nix1
2 files changed, 3 insertions, 1 deletions
diff --git a/home-manager/config/mpd/default.nix b/home-manager/config/mpd/default.nix
index 013fe547..4e5195b6 100644
--- a/home-manager/config/mpd/default.nix
+++ b/home-manager/config/mpd/default.nix
@@ -1,6 +1,7 @@
 {
   config,
   pkgs,
+  nixosSystemConfig,
   ...
 }: let
   dataDir = "${config.xdg.dataHome}/mpd";
@@ -10,7 +11,7 @@ in {
     inherit dataDir;
     musicDirectory = "~/media/music";
     network = {
-      listenAddress = "${dataDir}/socket";
+      listenAddress = "/run/user/1000/socket"; # TODO don't hardcode uid
     };
     extraConfig = ''
       metadata_to_use	"artist,album,title,track,name,genre,date,composer,performer,disc,comment"
diff --git a/home-manager/default.nix b/home-manager/default.nix
index b7cf942a..3c8017ca 100644
--- a/home-manager/default.nix
+++ b/home-manager/default.nix
@@ -17,6 +17,7 @@
   stateHome = "${homeDirectory}/.local/state";
   cacheHome = "${homeDirectory}/.cache";
   binHome = "${homeDirectory}/.local/bin";
+  # TODO add XDG_RUNTIME_DIR
 in {
   imports = [
     # inputs.impermanence.nixosModules.home-manager.impermanence