From 518ef4d8d87d763acec0b0c8e4c1bd19ca2f6373 Mon Sep 17 00:00:00 2001 From: Mike Placentra Date: Thu, 1 Dec 2022 00:51:00 -0500 Subject: [PATCH] nixos/roon-server: persist installation ID to avoid re-login Set environment variable ROON_ID_DIR to the same value as ROON_DATA_DIR so that it knows it's the same installation after a restart. Otherwise, each time the server process restarts, the user will need to log in, and configure any server-local audio devices, again. This environment variable was found in Roon's "easy installer" script: https://help.roonlabs.com/portal/en/kb/articles/linux-install#The_Easy_Installer_Recommended --- nixos/modules/services/audio/roon-server.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/audio/roon-server.nix b/nixos/modules/services/audio/roon-server.nix index 4764ee3e598f..74cae909f5db 100644 --- a/nixos/modules/services/audio/roon-server.nix +++ b/nixos/modules/services/audio/roon-server.nix @@ -40,6 +40,7 @@ in { wantedBy = [ "multi-user.target" ]; environment.ROON_DATAROOT = "/var/lib/${name}"; + environment.ROON_ID_DIR = "/var/lib/${name}"; serviceConfig = { ExecStart = "${pkgs.roon-server}/bin/RoonServer";