From ab19dea908c1a1fbd303e611fa225f935037d94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sun, 24 Oct 2021 17:30:24 +0200 Subject: [PATCH] Fix mopidy ownership --- users/ben/home.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/ben/home.nix b/users/ben/home.nix index 8bf73006..404c00bc 100644 --- a/users/ben/home.nix +++ b/users/ben/home.nix @@ -50,6 +50,10 @@ in # xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg; }; - age.secrets.mopidyConf.file = "${self}/secrets/mopidy.conf"; + age.secrets = pkgs.lib.setAttrByPath [ "mopidy.conf" ] { + file = "${self}/secrets/mopidy.conf"; + mode = "700"; + owner = "mopidy"; + }; services.mopidy.extraConfigFiles = [ "/run/secrets/mopidy.conf" ]; }