]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/scripts/setup
Remove dependency on immaeNixpkg in nix-path
[perso/Immae/Config/Nix.git] / nixops / scripts / setup
index c94b72b7e7a54b26eb06147bab1c1d6ebbdba813..381553540296cff702883e7d9678bd2dd4f205bc 100755 (executable)
@@ -1,8 +1,6 @@
 #!/bin/bash
 
 RemoteRepo="gitolite@git.immae.eu:perso/Immae/Prive/Password_store/Mes_Sites/Paul"
-NixChannelUrl='https://releases.nixos.org/nixos/18.09/nixos-18.09.1834.9d608a6f592'
-NixChannelName='immaeNixpkgs'
 DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf"
 
 if ! which nix 2>/dev/null >/dev/null; then
@@ -79,29 +77,6 @@ if [ ! -f /etc/ssh/ssh_rsa_key_nixops ]; then
   fi
 fi
 
-if ! nix-channel --list | grep -q "$NixChannelName $NixChannelUrl"; then
-  cat <<-EOF
-       A new nix channel will be installed (or upgraded) to freeze the packages
-       version:
-       $NixChannelName $NixChannelUrl
-       > nix-channel --add $NixChannelUrl $NixChannelName
-       > nix-channel --update
-       If this step fail, you may have to disable sandboxing in
-       /etc/nix/nix.conf and rerun
-       > nix-channel --update
-       manually.
-       Continue? [y/N]
-       EOF
-  read y
-  if [ "$y" = "y" -o "$y" = "Y" ]; then
-    nix-channel --add $NixChannelUrl $NixChannelName
-    nix-channel --update
-  else
-    echo "Aborting"
-    exit 1
-  fi
-fi
-
 if ! which nixops 2>/dev/null >/dev/null; then
   cat <<-EOF
        nixops is needed: