From 496ddb0ac50392033133852db301ee20eda7cf52 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 26 Oct 2020 09:58:10 +0100 Subject: [PATCH] secrets-store: run activation script before "users" --- custom/modules/secrets-store.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom/modules/secrets-store.nix b/custom/modules/secrets-store.nix index f94adf9..20bec88 100644 --- a/custom/modules/secrets-store.nix +++ b/custom/modules/secrets-store.nix @@ -99,8 +99,11 @@ in { ''; }; + # The user activation script may need access to secrets + config.system.activationScripts.users.deps = [ "secretsStore" ]; + config.system.activationScripts.secretsStore = { - deps = [ ]; + deps = [ "stdio" ]; text = '' # Initialise clean directory