guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix system init but for guix home


From: Andrew Tropin
Subject: Re: Guix system init but for guix home
Date: Sun, 13 Aug 2023 09:45:48 +0400

On 2023-08-04 20:40, paren@disroot.org wrote:

> Christian Miller <miller.christian@proton.me> writes:
>> Basically my idea would be, that I am on the live ISO and run guix system 
>> init
>> [...] and after that I would run guix home init home.scm /mnt or something 
>> like
>> that.  Now if I reboot in to the actual system, I have my complete setup with
>> EXWM and Emacs completely configured and ready to go.
>
> Something that would cover this use case be a HOME-ENVIRONMENT field for
> user-accounts in /etc/config.scm:
>
>   (user-account
>    (name "paren")
>    ...
>    (home-environment
>     ...))
>
> which could either be a file-like that evaluates to a Scheme file that
> returns a HOME-ENVIRONMENT object, or a HOME-ENVIRONMENT by itself:
>
>   ;; with local-file
>   (home-environment
>    (local-file
>     (string-append (dirname (get-current-filename))
>                    "/home-paren.scm")))
>
>   ;; with home-environment
>   (home-environment
>    (home-environment
>     (services (cons* ...))
>     (packages (list ...))))
>
>   -- (
>

Hi everyone!

The implementation for this functionality is here:

https://git.sr.ht/~abcdw/rde/tree/3b81be46d3d6891663f857172bc00b46f0e1eafa/src/gnu/services/home.scm#L1

The discussion of it is here:

https://issues.guix.gnu.org/56669

-- 
Best regards,
Andrew Tropin

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]