From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hillenbrand Subject: Re: Manage ssh public keys? Date: Fri, 10 Apr 2015 09:47:30 -0700 Message-ID: References: <87oamxpl4o.fsf@gnu.org> <877ftlnlr1.fsf@gnu.org> <87wq1ks571.fsf@gmail.com> <87bniwm5cy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygc5d-000471-UX for guix-devel@gnu.org; Fri, 10 Apr 2015 12:47:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ygc5c-00046V-R7 for guix-devel@gnu.org; Fri, 10 Apr 2015 12:47:33 -0400 In-Reply-To: <87bniwm5cy.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel@gnu.org On Fri, Apr 10, 2015 at 7:21 AM, Ludovic Court=C3=A8s wrote: >> How about use symlinks, but: >> - create them if they are not exists. >> - update them if they are symlinks to /gnu/store. >> - warn and do nothing about them if they aren't symlinks to store. > > The problem is that that would be stateful, and thus not reproducible. > So I think conditionals like this are not desirable. > > Ludo=E2=80=99. 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. The question then is, what happens when the configuration changes from having a "files" argument to not having one. What happens to the links? 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"?