guix-glicid/glicid/system/file-systems.scm

33 lines
898 B
Scheme
Raw Normal View History

2022-05-14 19:10:12 +02:00
(define-module (glicid system file-systems)
#:use-module (gnu system file-systems)
#:export (%control-groups)
)
(define %control-groups
(let
((parent (file-system
(device "cgroup")
(mount-point "/sys/fs/cgroup")
(type "tmpfs")
(check? #f)
)))
(cons parent
(map (lambda (subsystem)
(file-system
(device "cgroup")
(mount-point (string-append "/sys/fs/cgroup/" subsystem))
(type "cgroup")
(check? #f)
(options subsystem)
(create-mount-point? #t)
(dependencies (list parent))
)
)
'("blkio" "cpu" "cpuacct" "cpuset" "devices" "freezer" "hugetlb"
2022-05-25 16:58:37 +02:00
"memory" "net_cls" "net_prio" "perf_event" "pids" "systemd")
2022-05-14 19:10:12 +02:00
)
)
)
)