Hi Efraim,

thanks for the very interesting example!

Efraim Flashner <efr...@flashner.co.il> writes:

[...]

> (define %os-release-file
>   (plain-file "os-release"
>               (string-append
>                 "NAME=\"Guix System\"\n"
>                 "PRETTY_NAME=\"Guix System\"\n"
>                 "VERSION=\""((@ (guix packages) package-version) (@ (gnu 
> packages package-management) guix))"\"\n"
>                 "ID=guix\n"
>                 "HOME_URL=\"https://www.gnu.org/software/guix/\"\n";
>                 "SUPPORT_URL=\"https://www.gnu.org/software/guix/help/\"\n";
>                 "BUG_REPORT_URL=\"mailto:bug-g...@gnu.org\"\n";)))
>
> (simple-service 'os-release etc-service-type
>                 `(("os-release" ,%os-release-file)))

[...]

IMHO this is a perfect candidate - whith many other replies in help-guix
- for the Guix Cookbook (thanks Ricardo for creating it!): what about to
expand your example in a patch for the cookbook? :-)

Thanks! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

Reply via email to