[Nix-dev] I've rewritten nixos-checkout

Marc Weber marco-oweber at gmx.de
Sun Aug 17 03:25:55 CEST 2008


See my last commit.

Now you can define a set of repositories for each repo in nixos
nixpkgs and services:

    installer = {
      repos = {
        nixpkgs  = [ { type = "svn"; }
                     { type = "git";
                       initialize = ''git clone git://mawercer.de/nixpkgs $target'';i
                       update = "git pull origin";
                       target = "/etc/nixos/nixpkgs-git";
                       default = true; 
                     } ];
        nixos    = ... 
        services    = ... 
      };
    };

The first repo is used when you run nixos-rebuild unless you add an
attribute default = true;

Instead of the default svn setting { type = "svn"; } you can set url and
target as well to get branch updates

If something is still unlcear let me know.

Sincerly
Marc Weber



More information about the nix-dev mailing list