cmd/sharefs: implement shared filesystem

This is for passing files between applications, similar to android /sdcard.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-12-25 04:05:54 +09:00
parent ea815a59e8
commit 7bfbd59810
13 changed files with 878 additions and 17 deletions

View File

@@ -1,8 +1,9 @@
{ pkgs, ... }:
{
environment.hakurei = {
environment.hakurei = rec {
enable = true;
stateDir = "/var/lib/hakurei";
sharefs.source = "${stateDir}/sdcard";
users.alice = 0;
apps = {
"cat.gensokyo.extern.foot.noEnablements" = {