diff --git a/flake.nix b/flake.nix
index ddbea61fc7f71772579599156838f2cdcabb2c7f..149a8a7105e929d1cb4af40d035ac27ce8f0c941 100644
--- a/flake.nix
+++ b/flake.nix
@@ -116,26 +116,13 @@
             #nativeBuildInputs = gitlabPackages;
 
             shellHook = ''
-            
-            
             set -x
             
             ${pkgs'.coreutils}/bin/printenv
 
             
-            if [ -z "''${GITLAB_TOKEN}" ]; then
-            echo "GITLAB_TOKEN"
-           #   exit 1
-            fi
-            
-            if [ -z "''${CI_REPOSITORY_URL}" ]; then
-            echo "CI_REPOSITORY_URL"
-          #    exit 1
-            fi
-            
-            if [ -z "''${CI_PROJECT_DIR}" ]; then
-            echo "CI_PROJECT_DIR"
-           #   exit 1
+            if [ -z "''${CI_JOB_TOKEN}" ]; then
+               exit 1
             fi
             
             cd ''${CI_PROJECT_DIR} || exit 1
@@ -146,7 +133,7 @@
             ${pkgs'.git}/bin/git config --global pull.rebase true
             ${pkgs'.git}/bin/git config --global http.sslVerify "false"
             
-            ${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
+            ${pkgs'.git}/bin/git remote set-url origin "''${CI_REPOSITORY_URL}"
             
             ${pkgs'.git}/bin/git fetch --all --tags --unshallow
             ${pkgs'.git}/bin/git reset --hard origin/master