* Questions about guix-home-service-type for multi-user systems
@ 2024-12-04 20:17 Kristoffer Ström
2024-12-05 11:11 ` Edouard Klein
0 siblings, 1 reply; 5+ messages in thread
From: Kristoffer Ström @ 2024-12-04 20:17 UTC (permalink / raw)
To: help-guix
Hello, I am running a multi-user system, and use guix-home-service-type
to setup the user home directories.
One of the users is the "main" user (A) that handle the guix pull, the
editing and setup of system configuration files etc, the other (B) is a user
account that should just be managed by user A.
The problem i'm having is that the packages that user B sees, seems to
be independent of running guix pull and a subsequent sudo -E guix system
reconfigure on user A.
Relative lines from reconfigure:
shepherd: Service user-homes has been started.
shepherd: Starting service guix-home-b...
shepherd: Service guix-home-b has been started.
When i run this in a virtual machine, the user B is instantiated with
the latest version of all packages, however it seems there is some state
persisting in user B that prevents it from seeing the latest version of
packages as provided by the pull and system reconfigure.
I do not want to run an extra guix pull in user B, since this feels like
a waste of resources, and i do want the profiles to be always in sync.
Is there some option i'm missing?
Best, Kristoffer Ström.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about guix-home-service-type for multi-user systems
2024-12-04 20:17 Questions about guix-home-service-type for multi-user systems Kristoffer Ström
@ 2024-12-05 11:11 ` Edouard Klein
2024-12-06 20:00 ` Tomas Volf
0 siblings, 1 reply; 5+ messages in thread
From: Edouard Klein @ 2024-12-05 11:11 UTC (permalink / raw)
To: Kristoffer Ström; +Cc: help-guix
The way I work around this is to use (guix-for-channels ...) in the
sytem's configuration, and never guix pull. The only guix is the
system's: /run/current-system/profile/bin/guix
Kristoffer Ström <kristoffer@rymdkoloni.se> writes:
> Hello, I am running a multi-user system, and use guix-home-service-type
> to setup the user home directories.
>
> One of the users is the "main" user (A) that handle the guix pull, the
> editing and setup of system configuration files etc, the other (B) is a user
> account that should just be managed by user A.
>
> The problem i'm having is that the packages that user B sees, seems to
> be independent of running guix pull and a subsequent sudo -E guix system
> reconfigure on user A.
>
> Relative lines from reconfigure:
>
> shepherd: Service user-homes has been started.
> shepherd: Starting service guix-home-b...
> shepherd: Service guix-home-b has been started.
>
> When i run this in a virtual machine, the user B is instantiated with
> the latest version of all packages, however it seems there is some state
> persisting in user B that prevents it from seeing the latest version of
> packages as provided by the pull and system reconfigure.
>
> I do not want to run an extra guix pull in user B, since this feels like
> a waste of resources, and i do want the profiles to be always in sync.
>
> Is there some option i'm missing?
>
> Best, Kristoffer Ström.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about guix-home-service-type for multi-user systems
2024-12-05 11:11 ` Edouard Klein
@ 2024-12-06 20:00 ` Tomas Volf
2024-12-06 20:19 ` Kristoffer Ström
0 siblings, 1 reply; 5+ messages in thread
From: Tomas Volf @ 2024-12-06 20:00 UTC (permalink / raw)
To: Edouard Klein; +Cc: Kristoffer Ström, help-guix
[-- Attachment #1: Type: text/plain, Size: 497 bytes --]
Edouard Klein <edou@rdklein.fr> writes:
> The way I work around this is to use (guix-for-channels ...) in the
> sytem's configuration, and never guix pull. The only guix is the
> system's: /run/current-system/profile/bin/guix
Out of curiosity, were you able to figure out how to cache the
computation, or do you live with reconfigure being a slow operation?
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Questions about guix-home-service-type for multi-user systems
2024-12-06 20:00 ` Tomas Volf
@ 2024-12-06 20:19 ` Kristoffer Ström
2024-12-07 23:08 ` Tomas Volf
0 siblings, 1 reply; 5+ messages in thread
From: Kristoffer Ström @ 2024-12-06 20:19 UTC (permalink / raw)
To: Tomas Volf, Edouard Klein; +Cc: help-guix
Tomas Volf <~@wolfsden.cz> writes:
> Edouard Klein <edou@rdklein.fr> writes:
>
>> The way I work around this is to use (guix-for-channels ...) in the
>> sytem's configuration, and never guix pull. The only guix is the
>> system's: /run/current-system/profile/bin/guix
>
> Out of curiosity, were you able to figure out how to cache the
> computation, or do you live with reconfigure being a slow operation?
I was just trying this out and ran into this very issue.
Another problem is that a system update no longer works without an
internet connection.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-07 23:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-04 20:17 Questions about guix-home-service-type for multi-user systems Kristoffer Ström
2024-12-05 11:11 ` Edouard Klein
2024-12-06 20:00 ` Tomas Volf
2024-12-06 20:19 ` Kristoffer Ström
2024-12-07 23:08 ` Tomas Volf
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.