mirror of https://codeberg.org/anemofilia/zero
operating-systems: buer: Use spawn-shell-command instead of system since a lambda action should be suspendable
parent
ab23d68de3
commit
771fc81d3e
|
@ -30,10 +30,11 @@ next calendar event.")))
|
||||||
(start #~(make-timer-constructor
|
(start #~(make-timer-constructor
|
||||||
(calendar-event #:days-of-month '(1 15))
|
(calendar-event #:days-of-month '(1 15))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(let* ((btrfs "/run/current-system/profile/bin/btrfs")
|
(let ((btrfs "/run/current-system/profile/bin/btrfs")
|
||||||
(date (strftime "%Y-%m-%d" (localtime (current-time)))))
|
(date (strftime "%Y-%m-%d" (localtime (current-time)))))
|
||||||
(system* btrfs "subvolume" "snapshot" "/home"
|
(spawn-shell-command
|
||||||
(string-append "/snapshots/home/" date))))))
|
(string-append btrfs " subvolume snapshot"
|
||||||
|
" /home /snapshots/home/" date))))))
|
||||||
(stop #~(make-timer-destructor))
|
(stop #~(make-timer-destructor))
|
||||||
(actions (list timer-trigger-action))))
|
(actions (list timer-trigger-action))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue