Re: [Nix-dev] NixOS after install no login

2015-01-15 Thread MCris
I have dowloaded it about 4 days ago. Should I download a new version?

On Wed, 14 Jan 2015 14:30:45 +0100
Domen Kožar do...@dev.si wrote:

 What's the nixos version of DVD ISO?
 
 On Wed, Jan 14, 2015 at 2:26 PM, MCris mc...@accessmedia.ro wrote:
 
  No, the installer ended without a prompt to set the root passwd. I
  did not set anything about users (mutableusers or else), as I said.
 
  Thank you,
  Cris
 
  From: Jeff Johnson jef...@gmail.com
  Cc: nix-dev@lists.science.uu.nl
  Subject: Re: [Nix-dev] NixOS after install no login
  Date: Tue, 13 Jan 2015 13:51:43 -0800
 
  For me the installer ended with a prompt for setting the root
  password, and then after that I rebooted into the new system. Did
  you not have that?
 
  One other possiblity: did you set `users.mutableUsers = false;`? I
  did and it locked me out of the system because I hadn't included a
  hashed password. Jeff
  ___
  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


Re: [Nix-dev] Encrypted root: LUKS over LVM

2015-01-15 Thread Daniel Bergey
I run LVM over LUKS, but I don't understand the problem Nikita is
having.  My config is at[1] if that's helpful.  I created the LUKS
partition  LVM groups a few years ago, before I was using Nix, and I
don't have useful notes about how I did it.

Daniel

Footnotes: 
[1]  https://github.com/bergey/nix-config/blob/master/laptop.nix

On 2015-01-15 at 05:26, James Cook james.c...@utoronto.ca wrote:
 Sorry, still no idea. I'm using LUKS but not with LVM, and I don't
 have this problem. Is anyone else using LVM over LUKS? Is there
 something strange about Nikit's configuration?
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] per project env conf

2015-01-15 Thread Aaron Levin
I know we had a back-and-forth about this on twitter, but I'd love to know
more about it conflicting with nix-shell and possible other solutions
(specifically ones that don't conflate build deps with development deps).

Thanks!

On Thu, Jan 15, 2015 at 9:24 AM, Domen Kožar do...@dev.si wrote:

 I'd really advise not to tell newcomers to use myEnvFun. It's undocumented
 and doesn't play well with nix-shell.

 On Thu, Jan 15, 2015 at 3:23 PM, Catonano caton...@gmail.com wrote:



 2015-01-15 15:16 GMT+01:00 Luca Bruno lethalma...@gmail.com:

 On 15/01/2015 15:10, Catonano wrote:let pkgs = import nixpkgs {};
 in pkgs.myEnvFun {
 name = openArpa-env;
 buildInputs = with pkgs.python27Packages; [
   python
   xlrd

 ];
 };

 Then nix-shell.


 Thank you

 ___
 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




-- 
Aaron Levin / Weird Canada
www.aaronlevin.ca / www.weirdcanada.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] announce: patch introducing resource tracking

2015-01-15 Thread Marc Weber
The idea is to prevent the admin from starting multiple daemons
accessing the same directories or using the same ports by accident.

My updated mysql.services patch [1] depends on it:
https://github.com/MarcWeber/nixpkgs/commit/301043d68330646cd245657d2b6ea72703558048

I'm little unsure whether tcp/udp should be tracked differentyl or by
keys tcp:80 udp:80 or such.

Are there more resources which are worth tracking ?

I recommend looking at the patch because it could serve as sample for
similar cases such as multiple postgresql instances or whatsoever.

Marc Weber
[1] https://github.com/NixOS/nixpkgs/pull/5542
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Multiple instances - detecting resource collisions - nixos module system question

2015-01-15 Thread Luca Bruno
On 15/01/2015 01:23, Nicolas Pierron wrote:
 On Wed, Jan 14, 2015 at 11:17 PM, Marc Weber marco-owe...@gmx.de wrote:
 If you use multiple apaches/nginx/mysql/postgresql/whatever instances
 its likely to miss adjusting the port or whatsoever. Therefore I'd like
 to implement a simple resource tracking module which fails if a
 resource such as tcp/ip port or socket or such gets used multiple times.
 This is awesome!
This is a mess:
1) A service can bind to multiple ip and ports.
2) There's not only tcp.
3) A service could start listening dynamically on other ports at runtime.

This is enough for saying it's going to be too complicated to check for
conflicts with little gain and many false positives.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Using Nix with external (but 'pure') dependencies

2015-01-15 Thread Shea Levy
If icc has the same command line interface as gcc, in principle it should work.

 On Jan 14, 2015, at 6:40 PM, Ben Darwin bcdar...@gmail.com wrote:
 
 We could try to compile with ICC instead if that would be the only
 thing we'd have to cp/patchelf.  Is it likely we could re-use library
 derivations with { cc = icc } in that case, or would we have to write
 some for BLAS as well as our own tools?
 
 On 14 January 2015 at 12:41, Luca Bruno lethalma...@gmail.com wrote:
 On 14/01/2015 18:36, Ben Darwin wrote:
 Currently we compile with GCC, and we'd probably be willing to
 continue doing so since libraries do much of our heavy lifting.
 Then you are left with packing the libs as nix derivation with patchelf,
 and pray it works :)
 ___
 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


Re: [Nix-dev] per project env conf

2015-01-15 Thread Luca Bruno
On 15/01/2015 15:10, Catonano wrote:
 Hello,

 how do I set a development environment in my project folder ?

 Ideally I'd like to deploy the env setup together with the code so
 people won't get mad in setting up an env in order to contribute to
 the project

 I set my .nixpkgs/config.nix to

 {
   packageOverrides = pkgs: with pkgs; {
openArpaEnv = pkgs.myEnvFun {
 name = openArpa-env;
 buildInputs = with pkgs.python27Packages; [
   python
   xlrd

 ];
 };
   };
 }

 and it worked

 Then I moved .nixpkgs/config.nix to projects/openArpa/default.nix

 but I can't build the env anymore.
let pkgs = import nixpkgs {};
in pkgs.myEnvFun {
name = openArpa-env;
buildInputs = with pkgs.python27Packages; [
  python
  xlrd

];
};

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


[Nix-dev] per project env conf

2015-01-15 Thread Catonano
Hello,

how do I set a development environment in my project folder ?

Ideally I'd like to deploy the env setup together with the code so people
won't get mad in setting up an env in order to contribute to the project

I set my .nixpkgs/config.nix to

{
  packageOverrides = pkgs: with pkgs; {
   openArpaEnv = pkgs.myEnvFun {
name = openArpa-env;
buildInputs = with pkgs.python27Packages; [
  python
  xlrd

];
};
  };
}

and it worked

Then I moved .nixpkgs/config.nix to projects/openArpa/default.nix

but I can't build the env anymore.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] per project env conf

2015-01-15 Thread Catonano
2015-01-15 15:16 GMT+01:00 Luca Bruno lethalma...@gmail.com:

 On 15/01/2015 15:10, Catonano wrote:let pkgs = import nixpkgs {};
 in pkgs.myEnvFun {
 name = openArpa-env;
 buildInputs = with pkgs.python27Packages; [
   python
   xlrd

 ];
 };

 Then nix-shell.


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


Re: [Nix-dev] per project env conf

2015-01-15 Thread Domen Kožar
I'd really advise not to tell newcomers to use myEnvFun. It's undocumented
and doesn't play well with nix-shell.

On Thu, Jan 15, 2015 at 3:23 PM, Catonano caton...@gmail.com wrote:



 2015-01-15 15:16 GMT+01:00 Luca Bruno lethalma...@gmail.com:

 On 15/01/2015 15:10, Catonano wrote:let pkgs = import nixpkgs {};
 in pkgs.myEnvFun {
 name = openArpa-env;
 buildInputs = with pkgs.python27Packages; [
   python
   xlrd

 ];
 };

 Then nix-shell.


 Thank you

 ___
 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