all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Store file names / how to intern files in subdirectory?
@ 2023-10-05  6:49 Nils Landt
  2023-10-05  9:08 ` Saku Laesvuori
  0 siblings, 1 reply; 2+ messages in thread
From: Nils Landt @ 2023-10-05  6:49 UTC (permalink / raw)
  To: help-guix@gnu.org

Hello,

I'm working on my home-systemd-service, and systemd cares about the file name behind links. Specifically, it emits a warning when the file name of the link target does not match the link name.
Example:
ls -alh ~/.config/systemd/user/default.target.wants/greenclip.service ->
/home/nl/.config/systemd/user/default.target.wants/greenclip.service -> /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service

results in this log message:
"default.target: Wants dependency dropin /home/nl/.config/systemd/user/default.target.wants/greenclip.service target /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service has different name".

Still, I would like to fix this warning.
The file is a serialized configuration created with (mixed-text-file "greenclip.service" (serialize-configuration ...)).
If I change the first argument to "test/greenclip.service", I get an error, so it's really just the file name, not a path.
I understand it makes no sense to try to get /gnu/store/greenclip.service, but would it be possible to achieve /gnu/store/pznbc8xxhfkwxjbaff9h982cy4df1y1a-greenclip.service/some-directory/greenclip.service? Or are files always saved at the "top level" of the store?

Nils


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-05  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05  6:49 Store file names / how to intern files in subdirectory? Nils Landt
2023-10-05  9:08 ` Saku Laesvuori

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.