Re: [Nix-dev] Vagrant stuff - images and plugin - still alive?

2015-04-30 Thread Wout Mertens
https://github.com/cstrahan/nix-packer/pull/14 makes it build a 14.12 image

On Tue, Apr 28, 2015 at 12:33 PM Domen Kožar do...@dev.si wrote:

 I'd send emails to both authors asking if they plan to update the images :)

 On Tue, Apr 28, 2015 at 9:45 AM, Rok Garbas r...@garbas.si wrote:

 Quoting Rok Garbas (2015-04-28 09:35:18)
  Quoting Christian Theune (2015-04-25 13:41:19)
   Hi,
  
   I’ve been working on getting vagrant-based setups working nicely in
 the last
   weeks and found
  
   https://github.com/oxdi/vagrant-nixos
   https://github.com/oxdi/nixos
   and
   https://github.com/zimbatm/nixbox
  
   The zimbatm has images available, I didn’t get around to using the
 packer
   templates, yet.
  
   The plugin is nice but is not compatible with NixOS 14.12 in the
 released
   version. The code has everything fixed already and just making a
 release of
   that code works nicely for me. However, I’d love if the gem would be
 publicly
   available.
  
   So, is anyone on this list using Vagrant with NixOS? Is the author of
 the
   plugin still around? Alternatives? Should I fork this and start making
   releases?
  
 
  Hi Christian,
 
  I would suggest to create a wiki page about vagrant+nixos to keep all
 the
  information in one place.
 
  currently there is only about virtualbox, but vagrant is quickly
 mentioned at
  the bottom.
 
 
 https://nixos.org/wiki/Installing_NixOS_in_a_VirtualBox_guest#Vagrant_boxes
 

 also i found https://github.com/cstrahan/nix-packer


 --
 Rok Garbas - http://www.garbas.si

 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev


 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] How to bootstrap a server using Nixops?

2015-04-30 Thread Jeffrey David Johnson
It's possible I'm getting the wrong idea about what nixops is for, but I used
it to set up an Amazon EC2 instance with the idea of logging into the server
and administering it using local commands afterward. The initial install goes
fine. Afterward I clone my nixcfg repo (including nixpkgs submodule) and try to
set it up the way I would a physical machine, by copying everything from
/etx/nixos/* into nixcfg/configs/cyno.nix and modifying it to
point inside the repo:

{ config, pkgs, ... }:

{
  imports = [
../nixpkgs/nixos/modules/virtualization/amazon-config.nix
  ];
  ec2.hvm = true;
  services.journald.rateLimitBurst = 0;
}


When I do a `nixos-rebuild` (part of install.sh) though, it gives this error:

[root@cyno:~/nixcfg]# ./install.sh test
building Nix...
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)
building the system configuration...
error: getting status of 
‘/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix’: No such 
file or directory
(use ‘--show-trace’ to show detailed location information)

Now I notice something strange:
/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix exists, but
`ls` throws an error when listing it:

ls /root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix
ls: cannot access 
/root/nixcfg/nixpkgs/nixos/modules/virtualization/amazon-config.nix: No such 
file or directory

If I approach it slowly by listing /root/nixcfg, then /root/nixcfg/nixpkgs,
all the way to the full path it *does* work. I googled around a little and
according to this:

http://superuser.com/questions/446280/no-such-file-or-directory

The error can also mean a missing dynamically linked library. So I tried ldd as
directed (though I don't understand the output), and got this:

ldd $(which ls)
linux-vdso.so.1 (0x7fff01dec000)
libacl.so.1 = 
/nix/store/6mz0jhl389h7panazs5sayrydajia1s2-acl-2.2.52/lib/libacl.so.1 
(0x7f55d0f54000)
libc.so.6 = 
/nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/libc.so.6 
(0x7f55d0bb7000)
libattr.so.1 = 
/nix/store/ndszpck395bi55jnz50ny99y4pvj6dqn-attr-2.4.47/lib/libattr.so.1 
(0x7f55d09b3000)

/nix/store/93zfs0zzndi7pkjkjxawlafdj8m90kg5-glibc-2.20/lib/ld-linux-x86-64.so.2 
(0x7f55d115c000)

Anyway I think there's something wrong with how the system is set up, but not
sure what. Is there a correct way to bootstrap it to the point of using
the same config as my other machines?

Thanks
Jeff
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev