Skip to content

Commit

Permalink
Ensure to keep /tmp/lima
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Dec 4, 2024
1 parent f7bbc03 commit 0be8245
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home-manager/lima-host.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
];

activation = {
# /tmp/lima will be writable shared by default of lima. However lima does not create the directory, and home-manager file module does not fit under /tmp.
ensureLimaSharedTempdir = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
run mkdir -p /tmp/lima
run touch /tmp/lima/.keep
'';

# Required to avoid missing systemctl in NixOS
# https://github.com/lima-vm/lima/blob/9248baf14a3208249ed38179cdd018ec288d1ef5/pkg/autostart/autostart.go#L91-L92
# In macOS, similar provision for /bin/launchctl
Expand Down

0 comments on commit 0be8245

Please sign in to comment.