diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-12-08 08:03:50 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-12-08 08:53:04 +0900 |
| commit | 87781c765844409226804157546753b84ef3c6b4 (patch) | |
| tree | 4fa7bdbe890979badada6c36183a2ff25b7b85a8 /internal/outcome/spruntime.go | |
| parent | 0c38fb7b6a17bed9392a4cf46fc752bc2de8eb18 (diff) | |
treewide: include PipeWire op and enforce PulseAudio check
This fully replaces PulseAudio with PipeWire and enforces the PulseAudio check and error message. The pipewire-pulse daemon is handled in the NixOS module.
Closes #26.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/spruntime.go')
| -rw-r--r-- | internal/outcome/spruntime.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/outcome/spruntime.go b/internal/outcome/spruntime.go index 1e066bd4..6ec532bb 100644 --- a/internal/outcome/spruntime.go +++ b/internal/outcome/spruntime.go @@ -91,6 +91,9 @@ func (s *spRuntimeOp) toSystem(state *outcomeStateSys) error { return nil } +// xdgRuntimeDirSize is the size of the filesystem mounted on inner XDG_RUNTIME_DIR. +const xdgRuntimeDirSize = 1 << 24 + func (s *spRuntimeOp) toContainer(state *outcomeStateParams) error { state.runtimeDir = fhs.AbsRunUser.Append(state.mapuid.String()) state.env[envXDGRuntimeDir] = state.runtimeDir.String() @@ -108,7 +111,7 @@ func (s *spRuntimeOp) toContainer(state *outcomeStateParams) error { } - state.params.Tmpfs(fhs.AbsRunUser, 1<<12, 0755) + state.params.Tmpfs(fhs.AbsRunUser, xdgRuntimeDirSize, 0755) if state.Container.Flags&hst.FShareRuntime != 0 { _, runtimeDirInst := s.commonPaths(state.outcomeState) state.params.Bind(runtimeDirInst, state.runtimeDir, std.BindWritable) |
