diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-23 11:28:10 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-23 11:28:10 +0100 |
commit | 30a783364abd0afe8399d8f39a251c499451c986 (patch) | |
tree | 8a72e45187bdc8db32f3b3559b004a86e9a2ecde /nixops/scripts/setup | |
parent | e2b96bf56f536b3a8db732294ac13977e96cf322 (diff) | |
download | Nix-30a783364abd0afe8399d8f39a251c499451c986.tar.gz Nix-30a783364abd0afe8399d8f39a251c499451c986.tar.zst Nix-30a783364abd0afe8399d8f39a251c499451c986.zip |
Remove dependency on immaeNixpkg in nix-path
Diffstat (limited to 'nixops/scripts/setup')
-rwxr-xr-x | nixops/scripts/setup | 25 |
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 | ||
3 | RemoteRepo="gitolite@git.immae.eu:perso/Immae/Prive/Password_store/Mes_Sites/Paul" | 3 | RemoteRepo="gitolite@git.immae.eu:perso/Immae/Prive/Password_store/Mes_Sites/Paul" |
4 | NixChannelUrl='https://releases.nixos.org/nixos/18.09/nixos-18.09.1834.9d608a6f592' | ||
5 | NixChannelName='immaeNixpkgs' | ||
6 | DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" | 4 | DeploymentUuid="cef694f3-081d-11e9-b31f-0242ec186adf" |
7 | 5 | ||
8 | if ! which nix 2>/dev/null >/dev/null; then | 6 | if ! 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 |
80 | fi | 78 | fi |
81 | 79 | ||
82 | if ! 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 | ||
103 | fi | ||
104 | |||
105 | if ! which nixops 2>/dev/null >/dev/null; then | 80 | if ! which nixops 2>/dev/null >/dev/null; then |
106 | cat <<-EOF | 81 | cat <<-EOF |
107 | nixops is needed: | 82 | nixops is needed: |