Re: [Nix-dev] Problem compiling GHC 8.0.1 on Debian

2016-09-20 Thread Jeff Johnson
You're right, thanks! I'll try master before asking next time. Jeff On Tue, Sep 20, 2016 at 4:45 PM, Peter Simons wrote: > Hi Jeff, > > > I'm stuck compiling GHC 8.0.1... the current nixpkgs-unstable version > > gives a hash mismatch. > > that issue was fixed in

Re: [Nix-dev] Problem compiling GHC 8.0.1 on Debian

2016-09-20 Thread Jeff Johnson
, Vladimír Čunát <vcu...@gmail.com> wrote: > On 09/20/2016 09:52 PM, Jeff Johnson wrote: > > Is GHC broken for anyone else? And if not, what makes my setup special? > > Am I being redirected to the wrong patch url somehow? > > That feels like upstream updating the relea

[Nix-dev] Problem compiling GHC 8.0.1 on Debian

2016-09-20 Thread Jeff Johnson
I have NixOS, but am trying to install my existing packages in the home folder of a Debian machine too for work. I'm stuck compiling GHC 8.0.1... the current nixpkgs-unstable version gives a hash mismatch, which I "fixed" like so: diff --git a/pkgs/development/compilers/ghc/8.0.1.nix

Re: [Nix-dev] Current path to installing on Raspberry Pi?

2015-01-23 Thread Jeff Johnson
Oh that makes sense. Might not be too hard to fix either. I'll try when I get home tonight. Thanks! On 1/23/15, Wout Mertens wout.mert...@gmail.com wrote: those errors seem to come from a shell trying to interpret perl source... On Mon Jan 12 2015 at 9:04:34 PM Jeff Johnson jef...@gmail.com

Re: [Nix-dev] How to create dirs needed by a module before it runs?

2015-01-23 Thread Jeff Johnson
, the whole config gets evaluated at once. There's no running in Nix, only side-effects of evaluation. Wout. On Fri Jan 23 2015 at 7:45:38 PM Jeff Johnson jef...@gmail.com wrote: Hi all! I'm trying to set up tarsnap on nixos. This is my tarsnap.nix so far: config: let keySrc

Re: [Nix-dev] How to create dirs needed by a module before it runs?

2015-01-23 Thread Jeff Johnson
In case there isn't a hook I just thought of the obvious solution: wrap `nixos-rebuild` in a shell script. On 1/23/15, Jeff Johnson jef...@gmail.com wrote: Oh weird, maybe I need to go back and see if I did something wrong with the hostname, because now that I think about it you're right

[Nix-dev] How to create dirs needed by a module before it runs?

2015-01-23 Thread Jeff Johnson
Hi all! I'm trying to set up tarsnap on nixos. This is my tarsnap.nix so far: config: let keySrc = ../rawpriv/tarsnap; cacheDir = /var/cache/tarsnap; rcSrc = builtins.toFile tarsnaprc '' aggressive-networking # TODO is this a good idea?

Re: [Nix-dev] How to create dirs needed by a module before it runs?

2015-01-23 Thread Jeff Johnson
That would work except the mkdir commands are evaluated using ${nixVars} so the dirs aren't literally in there. I think I'm more comfortable adding duplicated variables one by one in the shell script than trying to do any magic. Jeff On Fri, Jan 23, 2015 at 11:49 AM, Marc Weber

Re: [Nix-dev] Current path to installing on Raspberry Pi?

2015-01-23 Thread Jeff Johnson
to find them without knowing the hash URL already? Jeff On Fri, Jan 23, 2015 at 11:18 AM, Jeff Johnson jef...@gmail.com wrote: Oh that makes sense. Might not be too hard to fix either. I'll try when I get home tonight. Thanks! On 1/23/15, Wout Mertens wout.mert...@gmail.com wrote: those errors

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

2015-01-14 Thread Jeff Johnson
I just installed NixOS on a couple machines this week, and set them both up this way. I remember seeing that error, but not exactly how I fixed it--sorry, should have taken note! One thing I remember changing is the preLVM. The wiki says to have it there but that didn't work for me. I removed it

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

2015-01-13 Thread Jeff Johnson
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.

[Nix-dev] Current path to installing on Raspberry Pi?

2015-01-12 Thread Jeff Johnson
Hi all! I just tried to install NixOS on my Raspberry Pi following the wiki page (https://nixos.org/wiki/Raspberry_Pi). I think I got pretty close, but not quite all the way. I wrote the image to an sd card, booted it up, logged in as root, changed the nix-channel from unstable to 13.10, and tried