feat(nix): add experimental rootless FHS package and desktop launcher

This commit is contained in:
Nicolai Bruns committed 2026-10-18 00:30:14 +02:00
1 parent 2cb353c785
commit 3c0b9cdfd3
28 files changed
+1686 -63

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
: "${DARLING_HOST_UID:?start this environment with darling-lol}"
: "${DARLING_HOST_GID:?start this environment with darling-lol}"
# Carry only namespace-scoped capabilities into the ordinary-user process.
# Darling's shim temporarily switches effective IDs; real IDs stay the user's.
exec setpriv --ruid "$DARLING_HOST_UID" --euid "$DARLING_HOST_UID" \
--rgid "$DARLING_HOST_GID" --egid "$DARLING_HOST_GID" --keep-groups \
--inh-caps +all --ambient-caps +all "$@"