secrets-store: print message once
This commit is contained in:
parent
05d878545c
commit
f42a287ca2
@ -126,13 +126,15 @@ in {
|
||||
# `user` activation script hasn't run yet.
|
||||
config.system.activationScripts.secrets-own = {
|
||||
deps = [ "secrets-copy" "users" ];
|
||||
text = concatMapStrings (pair:
|
||||
text =
|
||||
''
|
||||
echo setting secrets ownership...
|
||||
'' + concatMapStrings (pair:
|
||||
let
|
||||
name = "${concatStringsSep "-" pair.path}";
|
||||
secret = pair.value;
|
||||
in
|
||||
''
|
||||
echo setting secrets store ownership...
|
||||
# Set ownership of ${name}
|
||||
chown ${secret.user}:${secret.group} /run/secrets/${name}
|
||||
'') secretFiles;
|
||||
|
Loading…
Reference in New Issue
Block a user