@@ -26,15 +26,13 @@ use tempfile::tempdir;
2626use crate :: nixos;
2727use crate :: shell:: * ;
2828
29- const NIX_VERSION : & str = "2.28.3" ;
30-
3129const NIX_CONF : & str = formatcp ! (
3230 "experimental-features = nix-command flakes
3331extra-nix-path = nixpkgs=github:nixos/nixpkgs/nixos-{}
3432build-users-group =
3533sandbox = false
3634" ,
37- nixos :: NIXOS_VERSION
35+ crate :: NIXOS_VERSION
3836) ;
3937
4038static BASE_SHA256 : & str = "/nix/.base.sha256" ;
@@ -464,16 +462,16 @@ where
464462 let nix_store = dest. join ( "store" ) ;
465463 if !nix_store. exists ( ) {
466464 log:: info!( "installing Nix in {}" , dest. display( ) ) ;
467- let nix_url = nix_installer_url ( NIX_VERSION , arch) ;
468- download_and_install_nix ( NIX_VERSION , arch, & nix_url, dest) ?;
465+ let nix_url = nix_installer_url ( crate :: NIX_VERSION , arch) ;
466+ download_and_install_nix ( crate :: NIX_VERSION , arch, & nix_url, dest) ?;
469467 }
470468
471469 let nix_bin = dest. join ( ".bin" ) ;
472470 let gcroots = dest. join ( "var/nix/gcroots" ) ;
473471 fs:: create_dir_all ( & gcroots) ?;
474472
475473 if !symlink_exists ( & nix_bin) {
476- let nix_store_path = find_nix ( & nix_store, NIX_VERSION ) ?;
474+ let nix_store_path = find_nix ( & nix_store, crate :: NIX_VERSION ) ?;
477475 let nix_path = Path :: new ( "/nix/store" ) . join ( nix_store_path) ;
478476 symlink ( nix_path. join ( "bin" ) , nix_bin) . unwrap ( ) ;
479477 symlink ( & nix_path, gcroots. join ( "nix" ) ) . unwrap ( ) ;
0 commit comments