Re: [Nix-dev] disk setup for nixos installation

2013-08-27 Thread Tim Barbour
aszlig writes: So you could use it, but it's not yet ready for being part of the nixos installation procedure. Here is the repository: https://github.com/aszlig/nixpart And it is in nixpkgs as well. Thank you very much. I have had a play, and it looks very helpful. There is one small

Re: [Nix-dev] disk setup for nixos installation

2013-08-19 Thread aszlig
On Sun, Aug 18, 2013 at 07:16:15PM +0200, Aristid Breitkreuz wrote: I believe Aszlig had actually done some work on automated partitioning for Nixops, but I'm not sure how far from ready for primetime it is. Well, it works already but still uses Redhat/Fedoras Kickstart syntax as the input for

Re: [Nix-dev] disk setup for nixos installation

2013-08-18 Thread Shea Levy
Hi Tim, Generally, in NixOS we achieve effects outside of the store in a two-phase process: We have derivations to create data (config files, systemd units, shell scripts, etc.) in the store that represent the end state we want (including a master activation script that joins all the rest

Re: [Nix-dev] disk setup for nixos installation

2013-08-18 Thread Aristid Breitkreuz
I believe Aszlig had actually done some work on automated partitioning for Nixops, but I'm not sure how far from ready for primetime it is. Cheers, Aristid 2013/8/18 Shea Levy s...@shealevy.com Hi Tim, Generally, in NixOS we achieve effects outside of the store in a two-phase process: We

Re: [Nix-dev] disk setup for nixos installation

2013-08-18 Thread Marc Weber
Excerpts from Aristid Breitkreuz's message of Sun Aug 18 19:16:15 +0200 2013: I believe Aszlig had actually done some work on automated partitioning for Nixops, but I'm not sure how far from ready for primetime it is. How to script partitionsing can be looked up in the test cases in nixos. Just

[Nix-dev] disk setup for nixos installation

2013-08-17 Thread Tim Barbour
I would like to be able to boot from nixos installation media, then do automated partitioning, LVM setup and filesystem creation, then let nixops do the rest. What is the best way to automate partitioning, LVM setup and filesystem creation ? I wrote a shell script to do this (just for one disk, so

[Nix-dev] disk setup for nixos installation

2013-08-17 Thread Tim Barbour
On further reflection, I think I see how it almost might work using derivations. Assume it is possible to have a derivation that is only considered to be built (hand-waving part here ...) if the required filesystem exists. Then that derivation depends on another that is only considered to be

Re: [Nix-dev] disk setup for nixos installation

2013-08-17 Thread Domen Kožar
I used something like this to generate an ISO image that would self-install: http://paste.ofcode.org/K9Haex6MiBxygqJDFXkSL7 On Sat, Aug 17, 2013 at 3:22 PM, Tim Barbour t...@categorical.net wrote: I would like to be able to boot from nixos installation media, then do automated partitioning,

[Nix-dev] disk setup for nixos installation

2013-08-17 Thread Michael Raskin
On further reflection, I think I see how it almost might work using derivations. Assume it is possible to have a derivation that is only considered to be built (hand-waving part here ...) if the required filesystem exists. Then that derivation depends on another that is only considered to be

Re: [Nix-dev] disk setup for nixos installation

2013-08-17 Thread Marc Weber
Well - the nixos isos ship with nixos-install. It should be easy to add a script which runs automatically on startup (creating llvm devices and so on) and runs the script afterwards. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl