Joe Hillenbrand <joehil...@gmail.com> skribis:

> Something to keep in mind is what a user means when they add a "files"
> argument to user-account. I take this to mean "I want the operating
> system configurations to manage this file, not the user", which to me
> means, clobber a file if it is already there and symlink it to
> /gnu/store.

Yes.

> The question then is, what happens when the configuration changes from
> having a "files" argument to not having one. What happens to the
> links?

Good point.  I’d say we just remove the symlinks.

> Also on the topic of a "files" option, what about managing a
> collection of files, like a directory of dotfiles or ~/.emacs? Would
> it be possible to use this option with something like "git-fetch"?

It would be possible yes.  Behind the scenes it would use gexp, so any
object whose type has a “gexp compiler” can be used (this includes
<package>, <origin>, and <local-file>.)

I’ll see what I can do if nobody beats me at it.

Thanks,
Ludo’.

Reply via email to