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
153fda0b68
commit
c4f002b98b
|
@ -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