Hello Peter, Peter Polidoro <[email protected]> writes:
> A session.scm file, however, is declarative. Guix and other tools > can > inspect and manipulate it from Scheme. With session.scm and guix > session > there is a standard entry point: > > guix session shell # use default session > guix session shell dev > guix session run ci -- make test > guix session inspect I fully support this idea to be part of Guix proper. I think this is one of the features we are missing from Nix (although I'm not a user, so I'm not sure). In Nix, they have declarative shells[1] which allow specifying shell environments with environment variables. > I’d be grateful for any comments, design criticism, or “this is a > bad > idea because…” feedback. The first thing that I've noticed is the naming. I would suggest to name the command "sessions" and the file "sessions.scm", in plural. Since it's a list of "sessions", it conveys better the content, and it's consistent with the naming of "channels.scm". [1] https://nix.dev/tutorials/first-steps/declarative-shell.html#environment-variables Best regards, Sergio
