Re: [Nix-dev] Linux config options

2015-02-10 Thread Shea Levy
For my own use cases at least, I’ve found that when the generic config is not good enough it’s better to just generate a config on my own the traditional way (via make nconfig or similar) and pass it to manual-config. On Feb 10, 2015, at 1:56 PM, Matthias Beyer m...@beyermatthias.de wrote:

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
I think you are thinking too big-system-design instead of quick-scripting about that. Let's say I don't draw a line between small systems and large systems when it comes to abstractions, because algebraic abstractions are cheap. IMO a minimum requirement for a language to be called functional

Re: [Nix-dev] Unstable Nixpkgs on stable NixOS (was: Automatically locking the screen with xautolock)

2015-02-10 Thread Wout Mertens
Your setting NIX_PATH to `nixpkgs=~/.nix-defexpr/channels/nixpkgs` makes a lot of sense to me and I wouldn't mind it being the default for users... In general though the whole home dir setup could use some love. There's .nix-defexpr/, .nix-channels, .nix-profile@ and .nixpkgs/config.nix, where it

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
Data type declarations are not free in any case, I think. Compared to what? Algebraic abstractions usually compile to exactly the code you would have written if you had not used abstraction. Well, you started talking like you were considering some limitation of XMonad hard to work around.

Re: [Nix-dev] A few questions about ARM support and NixOS on a Chromebook

2015-02-10 Thread Wout Mertens
There's another option : build natively with distcc pointing to cross-compilers on x86 boxes. All the configuration etc happens natively and the compiles themselves are sped up. I wonder if that's the approach Vladimír Čunát took earlier? He made the notes on how to set up distcc for raspberry pi

Re: [Nix-dev] A few questions about ARM support and NixOS on a Chromebook

2015-02-10 Thread Luke Clifton
Yes, I have done this method in the past as well, but like you say, it only helps with C and C++. I'd rather have a set up which works for everything first, and then selectively try and optimise pieces of it (like using distcc). Although I was wondering how this would play with Nix and getting

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
Data type declarations are not free in any case, I think. Compared to what? Algebraic abstractions usually compile to exactly the code you would have written if you had not used abstraction. Data type declarations have to be written. Store-everything-in-hash- tables is slower but quicker

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
It's seldom that you have to write your own data types, if you don't want to. Basic types, functions, products and coproducts can express anything you want that isn't a tightly packed array of machine words. But if you really want to dump everything into a table-like data structure, you can

Re: [Nix-dev] UI management (Was: Use Haskell for Shell Scripting)

2015-02-10 Thread Ertugrul Söylemez
Also, I sometimes tend to use closing unneeded windows as a way of keeping track of short-term TODO list. I think there doesn't have to be semantic difference between closing a window and dropping it into a virtual drawer. Your short-term to-dos would be elsewhere. Unfortunately it entails

[Nix-dev] strongSwan problem

2015-02-10 Thread Bas van Dijk
I was wondering if somebody here has experience with strongSwan on NixOS. I'm having a problem connecting to a gateway as I described in the following mail to the strongSwan mailinglist: https://lists.strongswan.org/pipermail/users/2015-February/007422.html Cheers, Bas

[Nix-dev] Linux config options

2015-02-10 Thread Wout Mertens
Just wondering out loud with probably no actionable change: Why are the kernel options implemented as strings (FOO y) instead of an attribute set ({ foo = y: })? Of course that means you can easily import your own .config file as described at

Re: [Nix-dev] Linux config options

2015-02-10 Thread Eelco Dolstra
Hi, On 10/02/15 14:48, Wout Mertens wrote: Just wondering out loud with probably no actionable change: Why are the kernel options implemented as strings (FOO y) instead of an attribute set ({ foo = y: })? Of course that means you can easily import your own .config file as described at

Re: [Nix-dev] Missing GeoIP databases

2015-02-10 Thread Christoph-Simon Senjak
On 10.02.2015 20:01, Vladimír Čunát wrote: On 02/10/2015 07:50 PM, Christoph-Simon Senjak wrote: Is this intentional or is this a bug? I don't know - I don't see any attempt to put the data in there. I just noticed that ntopng does include some geoip data. (I've never used any of the above.)

Re: [Nix-dev] Announcing New Ruby Support

2015-02-10 Thread Cillian de Róiste
Hi! I thought I'd try to package jekyll, but I've run into some trouble... 2015-01-22 5:29 GMT+01:00 Charles Strahan charles.c.stra...@gmail.com: To use the new system, first create (or copy over) a Gemfile describing the required gems. I grabbed the Gemfile from the github repo: $ wget

Re: [Nix-dev] Missing GeoIP databases

2015-02-10 Thread Vladimír Čunát
On 02/10/2015 07:50 PM, Christoph-Simon Senjak wrote: Is this intentional or is this a bug? I don't know - I don't see any attempt to put the data in there. I just noticed that ntopng does include some geoip data. (I've never used any of the above.) Vladimir smime.p7s Description: S/MIME

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
Some of the shell tricks based on expansions are portable to Lisp, not worth it in Julia and definitely too costly in Haskell (learning Template Haskell is definitely outside my plans). I don't really know TH either. Occasionally I use TH actions defined in a library (for example to derive

[Nix-dev] Missing GeoIP databases

2015-02-10 Thread Christoph-Simon Senjak
Hello. I installed geoip, and GEOIPLOOKUP(1) says the databases should be in /nix/store/b952llxwhpd8046r40xkkkjgg1vmcw7q-geoip-1.6.2/share/GeoIP but ... they are not. Is this intentional or is this a bug? Best regards Christoph-Simon Senjak ___

[Nix-dev] Bash completion makes bash startup awefully slow

2015-02-10 Thread Matthias Beyer
Hi, we already had this on this ML, but the question which was posted (not by me, btw) got no answer. I can't live withou bash completion. But using it makes bash awefully slow at startup. Is there a way to enhance this situation? -- Mit freundlichen Grüßen, Kind regards, Matthias Beyer

Re: [Nix-dev] Missing GeoIP databases

2015-02-10 Thread Eelco Dolstra
Hi, On 10/02/15 19:50, Christoph-Simon Senjak wrote: I installed geoip, and GEOIPLOOKUP(1) says the databases should be in /nix/store/b952llxwhpd8046r40xkkkjgg1vmcw7q-geoip-1.6.2/share/GeoIP but ... they are not. Is this intentional or is this a bug? More or less intentional, since the

Re: [Nix-dev] Missing GeoIP databases

2015-02-10 Thread Bjørn Forsman
On 10 February 2015 at 20:34, Eelco Dolstra eelco.dols...@logicblox.com wrote: Hi, On 10/02/15 19:50, Christoph-Simon Senjak wrote: I installed geoip, and GEOIPLOOKUP(1) says the databases should be in /nix/store/b952llxwhpd8046r40xkkkjgg1vmcw7q-geoip-1.6.2/share/GeoIP but ... they are not.

Re: [Nix-dev] UI management (Was: Use Haskell for Shell Scripting)

2015-02-10 Thread Ertugrul Söylemez
Actually, my idea of the core boot sequence is contrary to your goals: for core system I think in terms I want to easily run recovery after a USB boot and I want to describe my system in terms of its imperative recovery procedure started from initramfs. It is likely that my service management

Re: [Nix-dev] Unstable Nixpkgs on stable NixOS (was: Automatically locking the screen with xautolock)

2015-02-10 Thread Jeffrey David Johnson
Wow my approach has been totally different. I think it's better at being declarative, but it doesn't allow getting user vs system packages from different sources so I have to pick between all stable or all unstable, or bother with the details of merging them. I've got everything defined in a

Re: [Nix-dev] Unstable Nixpkgs on stable NixOS (was: Automatically locking the screen with xautolock)

2015-02-10 Thread Kirill Elagin
On Tue Feb 10 2015 at 6:12:58 PM Wout Mertens wout.mert...@gmail.com wrote: where it would be a lot cleaner to have everything under ~/.nix/ `$XDG_CONFIG_HOME/nix`. ___ nix-dev mailing list nix-dev@lists.science.uu.nl

[Nix-dev] Darwin Hydra-builder

2015-02-10 Thread Eric Seidel
Hi all, Since we merged in the new stdenv for darwin, hydra has been unable to build any darwin packages (see, e.g. http://hydra.nixos.org/build/19488052/nixlog/1). The error looks familiar, I believe the issue is that butters doesn't have Apple's CLI tools installed. Could someone with access

Re: [Nix-dev] Announcing New Ruby Support

2015-02-10 Thread Cillian de Róiste
2015-02-10 19:25 GMT+01:00 Cillian de Róiste cillian.deroi...@gmail.com: Hi! I thought I'd try to package jekyll, but I've run into some trouble... 2015-01-22 5:29 GMT+01:00 Charles Strahan charles.c.stra...@gmail.com: To use the new system, first create (or copy over) a Gemfile describing

Re: [Nix-dev] Use Haskell for Shell Scripting

2015-02-10 Thread Ertugrul Söylemez
Oh, Common Lisp (CL) macros don't correspond to TH, but rather to regular functions in Haskell. We have first class actions together with lazy evaluation. What is code is data is code in CL is actions are first class values in Haskell. You only need TH when you need to generate something

Re: [Nix-dev] Announcing New Ruby Support

2015-02-10 Thread Wout Mertens
rb_enc_raise seems to be a ruby 2.0 thing and you're using 1.9.3. Some mixup somewhere? https://bugs.ruby-lang.org/issues/5650 was when it was added to 2.0 3 years ago... On Tue Feb 10 2015 at 11:05:56 PM Cillian de Róiste cillian.deroi...@gmail.com wrote: 2015-02-10 19:25 GMT+01:00 Cillian

[Nix-dev] DNS fails during nixos-install in Virtualbox

2015-02-10 Thread Joe Hillenbrand
I would like to gently bump this issue: https://github.com/NixOS/nixpkgs/issues/6066 I'm currently assigned the project to explore the possibility of replacing all our Puppet+Ubuntu infrastructure with NixOS at my work. We heavily use Vagrant for our configuration management development, so my

Re: [Nix-dev] Linux config options

2015-02-10 Thread Matthias Beyer
On 10-02-2015 14:56:55, Eelco Dolstra wrote: Hi, On 10/02/15 14:48, Wout Mertens wrote: Just wondering out loud with probably no actionable change: Why are the kernel options implemented as strings (FOO y) instead of an attribute set ({ foo = y: })? Of course that means you can