aboutsummaryrefslogtreecommitdiff
path: root/nixops/scripts/setup
diff options
context:
space:
mode:
Diffstat (limited to 'nixops/scripts/setup')
-rwxr-xr-xnixops/scripts/setup25
1 files changed, 0 insertions, 25 deletions
diff --git a/nixops/scripts/setup b/nixops/scripts/setup
index c94b72b..3815535 100755
--- a/nixops/scripts/setup
+++ b/nixops/scripts/setup
@@ -1,8 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3RemoteRepo="gitolite@git.immae.eu:perso/Immae/Prive/Password_store/Mes_Sites/Paul" 3RemoteRepo="gitolite@git.immae.eu:perso/Immae/Prive/Password_store/Mes_Sites/Paul"
4NixChannelUrl='https://releases.nixos.org/nixos/18.09/nixos-18.09.1834.9d608a6f592'
5NixChannelName='immaeNixpkgs'
6DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" 4DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf"
7 5
8if ! which nix 2>/dev/null >/dev/null; then 6if ! which nix 2>/dev/null >/dev/null; then
@@ -79,29 +77,6 @@ if [ ! -f /etc/ssh/ssh_rsa_key_nixops ]; then
79 fi 77 fi
80fi 78fi
81 79
82if ! nix-channel --list | grep -q "$NixChannelName $NixChannelUrl"; then
83 cat <<-EOF
84 A new nix channel will be installed (or upgraded) to freeze the packages
85 version:
86 $NixChannelName $NixChannelUrl
87 > nix-channel --add $NixChannelUrl $NixChannelName
88 > nix-channel --update
89 If this step fail, you may have to disable sandboxing in
90 /etc/nix/nix.conf and rerun
91 > nix-channel --update
92 manually.
93 Continue? [y/N]
94 EOF
95 read y
96 if [ "$y" = "y" -o "$y" = "Y" ]; then
97 nix-channel --add $NixChannelUrl $NixChannelName
98 nix-channel --update
99 else
100 echo "Aborting"
101 exit 1
102 fi
103fi
104
105if ! which nixops 2>/dev/null >/dev/null; then 80if ! which nixops 2>/dev/null >/dev/null; then
106 cat <<-EOF 81 cat <<-EOF
107 nixops is needed: 82 nixops is needed: