-{ privateFiles ? ./., nixpkgsNext ? null }:
+{ privateFiles ? ./. }:
{
network = {
description = "Immae's network";
with mylibs;
{
_module.args = {
- pkgsNext = if builtins.isNull nixpkgsNext then pkgs else import nixpkgsNext {};
+ pkgsNext = import <nixpkgsNext> {};
mylibs = import ../libs.nix { nixpkgs = pkgs; };
mypkgs = import ../default.nix;
myconfig = {
finish() {
rm -rf "$TEMP"
nixops set-args --unset privateFiles
- nixops set-args --unset nixpkgsNext
}
trap finish EXIT
pass show "$NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/files/$file" > $TEMP/$file
done
nixops set-args --argstr privateFiles "$TEMP"
-nixops set-args --argstr nixpkgsNext "$HOME/.nix-defexpr/channels/immaeNixpkgsNext"
-export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:nixpkgs=$HOME/.nix-defexpr/channels/immaeNixpkgs"
+nixpkgsNext="https://releases.nixos.org/nixos/19.03/nixos-19.03beta171477.5847485e3ec/nixexprs.tar.xz"
+nixpkgs="https://releases.nixos.org/nixos/18.09/nixos-18.09.1834.9d608a6f592/nixexprs.tar.xz"
+export NIX_PATH="ssh-config-file=$(dirname $DIR)/ssh/config:nixpkgs=$nixpkgs:nixpkgsNext=$nixpkgsNext"
nixops "$@"
#!/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: