#!/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
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: