diff --git a/host/home/Backup.nix b/host/home/Backup.nix index 01edd3c7..4548cb1d 100644 --- a/host/home/Backup.nix +++ b/host/home/Backup.nix @@ -14,6 +14,9 @@ gawk pv ]; + environment = { + BASH_PATH = ../../module/common/bash; + }; # wantedBy = [ "multi-user.target" ]; }; diff --git a/host/home/Nextcloud.nix b/host/home/Nextcloud.nix index 79123a24..95c8a6cf 100644 --- a/host/home/Nextcloud.nix +++ b/host/home/Nextcloud.nix @@ -10,6 +10,9 @@ bashInteractive docker ]; + environment = { + BASH_PATH = ../../module/common/bash; + }; # wantedBy = [ "multi-user.target" ]; }; diff --git a/host/home/bin/Backup b/host/home/bin/Backup index 2178f54e..5f16ef31 100755 --- a/host/home/bin/Backup +++ b/host/home/bin/Backup @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Source modules. -for file in /etc/bash/module/*.sh; do +for file in ${BASH_PATH}/module/*.sh; do source "${file}" done diff --git a/host/home/bin/Nextcloud b/host/home/bin/Nextcloud index 404d7768..605e0b8c 100755 --- a/host/home/bin/Nextcloud +++ b/host/home/bin/Nextcloud @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Source modules. -for file in /etc/bash/module/*.sh; do +for file in ${BASH_PATH}/module/*.sh; do source "${file}" done