> Hi Rutherther,
>
> Rutherther <ruthert...@ditigal.xyz> writes:
>
>> Hello all,
>>
>> I would like to gc root my operating system derivation to keep all
>> inputs necessary to build the system in store even on gc colleting,
>> preferably also the ungrafted versions. One way would be to make
>> multiple calls to the guix system build and gc root them out of the
>> store myself, but I would rather not use that option, I would like this
>> to be in the operating-system itself.
>
> I have the daemon set up to "keep all the build prerequisites (the
> sources, compiler, libraries, and other build-time tools) of live
> objects in the store", as "(guix) Invoking guix-daemon" puts it.
>
> I'm not 100% sure if that's what you're going for here (I'm tired lol),
> but the end result for me is that I can `guix gc` and not redownload
> anything when I reconfigure again on the same config. I thought I'd
> share anyway in case it helps. I have the following in my
> operating-system form:

Hello,
thanks for showing interest.

It is something like what I am going for, but I don't want to use this.
This keeps ALL prerequisites of gc rooted paths.
I want to achieve to get only the operating-system and home-environment 
prerequisites.

Regards,
Rutherther

>
> --8<---------------cut here---------------start------------->8---
> (services
>   (modify-services base-services
>     (guix-service-type
>      config => (guix-configuration
>                 (inherit config)
>                 (extra-options (list
>                                 "--gc-keep-derivations=yes"  ;default value
>                                 "--gc-keep-outputs=yes"))))))
> --8<---------------cut here---------------end--------------->8---

Reply via email to