mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
services: Add user-id and group-id configuration options.
This commit is contained in:
7 files changed
+346
-132
No files matched your search
@@ -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)))
|
||||
Reference in new issue
Block a user