]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Remove dependency on immaeNixpkg in nix-path
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 23 Mar 2019 10:28:10 +0000 (11:28 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 23 Mar 2019 10:28:10 +0000 (11:28 +0100)
nixops/eldiron.nix
nixops/scripts/nixops_wrap
nixops/scripts/setup

index 44d928b06a6ed5d1f9e2d99dd063f0d0065e0ff3..e95110fad2d1c613b6c81bef81b7656c1d905e75 100644 (file)
@@ -1,4 +1,4 @@
-{ privateFiles ? ./., nixpkgsNext ? null }:
+{ privateFiles ? ./. }:
 {
   network = {
     description = "Immae's network";
@@ -9,7 +9,7 @@
     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 = {
index 914f2cc79faf84d0225884a155f72fa4d7a43258..f61bdf479454ac379e27c4710fb4e6723bdc2ffe 100755 (executable)
@@ -12,7 +12,6 @@ chmod go-rwx $TEMP
 finish() {
   rm -rf "$TEMP"
   nixops set-args --unset privateFiles
-  nixops set-args --unset nixpkgsNext
 }
 
 trap finish EXIT
@@ -28,7 +27,8 @@ for file in $files; do
   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 "$@"
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: