From 43c5cd2effcada4e2b417b692d99c5add88034bc Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Tue, 17 Sep 2024 23:20:31 +0100 Subject: [PATCH] test: switch from using HOME to DATABASE_HOME --- flake.nix | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5debd85..b48d90b 100644 --- a/flake.nix +++ b/flake.nix @@ -75,7 +75,7 @@ cfg = config.services."${package_name}"; # secret options are in the env file(s) loaded separately environment_config = { - HOME = cfg.home; + DATABASE_HOME = cfg.home; DATABASE = "database.db"; }; diff --git a/src/lib.rs b/src/lib.rs index abfc829..3eda4aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,7 +65,7 @@ pub fn get_config() -> Config { wolves_url: "".to_string(), }; - if let Ok(x) = env::var("HOME") { + if let Ok(x) = env::var("DATABASE_HOME") { config.home = x.trim().to_string(); } if let Ok(x) = env::var("DATABASE") {