[Nix-dev] Re: optionally copying configuration.nix into system derivation

Ludovic Courtès ludo at gnu.org
Tue Apr 27 10:23:26 CEST 2010


Hi,

Marc Weber <marco-oweber at gmx.de> writes:

> Do you mind me comitting this to NixOS ?
>
> commit 776312087c01271ea127daa92abe5742ba53b230
> Author: Marc Weber <marco-oweber at gmx.de>
> Date:   Tue Apr 27 03:40:54 2010 +0200
>
>     add system.extraSystemBuilderCmds option which can be used to copy
>     configuration.nix to the system store path. This may be helpful to track
>     down regressions faster.

Wouldn’t it be friendlier to have a specific option, like
‘copySystemConfiguration’?

> +      description = ''
> +        You can add additional commands which will be executed when creating
> +        the system derivation. One usage example is:
> +        cp /etc/nixos/configuration.nix $out

The command should be enclosed in a <command> tag.

Thanks,
Ludo’.




More information about the nix-dev mailing list