services: Add user-id and group-id configuration options.

This commit is contained in:
Hilton Chain committed 2025-11-04 16:54:55 +08:00
1 parent 0d15cfdb28
commit ee65ec0e89
7 files changed
+346 -132

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
(define-module (rosenthal utils predicates)
#:use-module (guix gexp)
#:export (file-object?
user-and-group-id?))
(define (file-object? val)
(or (string? val)
(file-like? val)))
(define (user-and-group-id? val)
(or (integer? val)
(eqv? val #f)))