copy-secrets: check if service is enabled
This commit is contained in:
parent
42a0fd4e65
commit
90772971a8
@ -22,11 +22,15 @@ NIX_PATH=$NIX_PATH:nixos-config=$PWD/modules/$system_name
|
||||
NIX_PATH=$NIX_PATH:secrets=$PWD/secrets/$system_name/nix
|
||||
export NIX_PATH
|
||||
|
||||
case $(nixos-query tv.retiolum.enable 2>/dev/null) in true)
|
||||
retiolum_secret=$(nixos-query tv.retiolum.privateKeyFile)
|
||||
retiolum_uid=$(nixos-query users.extraUsers.retiolum-tinc.uid)
|
||||
esac
|
||||
|
||||
case $(nixos-query services.ejabberd-cd.enable 2>/dev/null) in true)
|
||||
ejabberd_secret=$(nixos-query services.ejabberd-cd.certFile)
|
||||
ejabberd_uid=$(nixos-query users.extraUsers.ejabberd.uid)
|
||||
esac
|
||||
|
||||
(set -x
|
||||
rsync \
|
||||
|
Loading…
Reference in New Issue
Block a user