Move scripts for nix to a different location

This commit is contained in:
Manuel Thalmann 2024-09-22 17:54:12 +02:00
parent d0b055140e
commit 985a408900
3 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@
diskVar = ''''${${diskVarName}}'';
diskSelector = ''
. ${./../../../scripts/Common/Scripts/choose-disk.sh};
. ${./choose-disk.sh};
chooseDisk ${diskVarName} "Which disk do you wish to install the OS on?";
'';
@ -176,7 +176,7 @@
else ''
${diskVarName}=${config.devicePath}
${if osDisk then ''
. ${./../../../scripts/Common/Scripts/is-truthy.sh}
. ${./is-truthy.sh}
if [ ! -b ${diskVar} ]; then
function fallback() {
echo "Couldn't find the specified disk \"${diskVar}\"."
@ -357,7 +357,7 @@
] ++
(builtins.map (_: _.deviceScript) disks) ++
lib.optionals ((builtins.length disks) > 0) [
". ${./../../../scripts/Common/Scripts/is-truthy.sh}"
". ${./is-truthy.sh}"
''echo "$(tput setaf 3)==== WARNING ====$(tput sgr0)"''
(''echo "Continuing this script will alter the partitions of '' + (
lib.strings.concatStringsSep ", " (builtins.map (_: "${_.deviceVariable}") (lib.lists.init disks))