* What is the difference between the directories in / and in /run/current-system/profile? @ 2024-04-27 22:41 Nathan Dehnel 2024-04-29 16:34 ` Felix Lechner via 0 siblings, 1 reply; 4+ messages in thread From: Nathan Dehnel @ 2024-04-27 22:41 UTC (permalink / raw) To: help-guix $ comm -1 -2 <(ls /) <(ls /run/current-system/profile) bin etc var These directories are in both locations. What does it mean for a file to be in one place vs the other? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is the difference between the directories in / and in /run/current-system/profile? 2024-04-27 22:41 What is the difference between the directories in / and in /run/current-system/profile? Nathan Dehnel @ 2024-04-29 16:34 ` Felix Lechner via 2024-04-29 18:31 ` Nathan Dehnel 2024-06-21 16:53 ` takev 0 siblings, 2 replies; 4+ messages in thread From: Felix Lechner via @ 2024-04-29 16:34 UTC (permalink / raw) To: Nathan Dehnel, help-guix Hi Nathaniel, On Sat, Apr 27 2024, Nathan Dehnel wrote: > These directories are in both locations. As you already figured out, they contain different things. > What does it mean for a file to be in one place vs the other? Files in /var and /etc hold some form of local system state, plus logs. Files in your system profile's 'var' provide data that packages are expected to deposit there. For 'etc' it's basically the same, except for configuration files. Many of those are actually in the store by themselves---and that's really the goal for Guix. My /bin is empty, except for /bin/sh. The profile's bin holds symbolic links to all 'bin' files from packages in your current profile. The profile's 'bin' is how your shell finds programs. (It should also look in /run/setuid-programs.) Ideally, / would be empty, except for /gnu/store and mount points for /home and /root. Some folks run / on a tmpfs and manage to get pretty close. One challenge is that we haven't figured out what to do with secrets. The store is public, so they can't go there. Please don't despair. Guix is totally different from other operating systems, but it makes a great deal of sense once you get used to it. That may involve a year of intense adjustment, or more. Kind regards Felix ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is the difference between the directories in / and in /run/current-system/profile? 2024-04-29 16:34 ` Felix Lechner via @ 2024-04-29 18:31 ` Nathan Dehnel 2024-06-21 16:53 ` takev 1 sibling, 0 replies; 4+ messages in thread From: Nathan Dehnel @ 2024-04-29 18:31 UTC (permalink / raw) To: Felix Lechner; +Cc: help-guix Thanks for the info On Mon, Apr 29, 2024 at 11:34 AM Felix Lechner <felix.lechner@lease-up.com> wrote: > > Hi Nathaniel, > > On Sat, Apr 27 2024, Nathan Dehnel wrote: > > > These directories are in both locations. > > As you already figured out, they contain different things. > > > What does it mean for a file to be in one place vs the other? > > Files in /var and /etc hold some form of local system state, plus logs. > > Files in your system profile's 'var' provide data that packages are > expected to deposit there. > > For 'etc' it's basically the same, except for configuration files. Many > of those are actually in the store by themselves---and that's really the > goal for Guix. > > My /bin is empty, except for /bin/sh. The profile's bin holds symbolic > links to all 'bin' files from packages in your current profile. The > profile's 'bin' is how your shell finds programs. (It should also look > in /run/setuid-programs.) > > Ideally, / would be empty, except for /gnu/store and mount points for > /home and /root. Some folks run / on a tmpfs and manage to get pretty > close. One challenge is that we haven't figured out what to do with > secrets. The store is public, so they can't go there. > > Please don't despair. Guix is totally different from other operating > systems, but it makes a great deal of sense once you get used to it. > That may involve a year of intense adjustment, or more. > > Kind regards > Felix ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: What is the difference between the directories in / and in /run/current-system/profile? 2024-04-29 16:34 ` Felix Lechner via 2024-04-29 18:31 ` Nathan Dehnel @ 2024-06-21 16:53 ` takev 1 sibling, 0 replies; 4+ messages in thread From: takev @ 2024-06-21 16:53 UTC (permalink / raw) To: Felix Lechner, Felix Lechner via, Nathan Dehnel, help-guix Just chiming in about the secrets, but I have found that guix-sops works really well so far: https://fishinthecalculator.me/blog/secrets-management-with-sops-guix.html There are a few things I would like to see (i.e. symmetrical encryption, being able to use s-expressions instead of yaml, etc), but for the most part it works very well on my servers. On April 29, 2024 12:34:43 PM EDT, Felix Lechner via <help-guix@gnu.org> wrote: >Ideally, / would be empty, except for /gnu/store and mount points for >/home and /root. Some folks run / on a tmpfs and manage to get pretty >close. One challenge is that we haven't figured out what to do with >secrets. The store is public, so they can't go there. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-21 16:53 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-04-27 22:41 What is the difference between the directories in / and in /run/current-system/profile? Nathan Dehnel 2024-04-29 16:34 ` Felix Lechner via 2024-04-29 18:31 ` Nathan Dehnel 2024-06-21 16:53 ` takev
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.