mirror of https://codeberg.org/anemofilia/zero
Compare commits
4 Commits
47dae46b98
...
298c085e02
Author | SHA1 | Date |
---|---|---|
Luis Guilherme Coelho | 298c085e02 | |
Luis Guilherme Coelho | 771fc81d3e | |
Luis Guilherme Coelho | ab23d68de3 | |
Luis Guilherme Coelho | bc36fbc43d |
|
@ -20,10 +20,7 @@ next calendar event.")))
|
||||||
(start #~(make-timer-constructor
|
(start #~(make-timer-constructor
|
||||||
(calendar-event #:hours '(6) #:minutes '(0))
|
(calendar-event #:hours '(6) #:minutes '(0))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(use-modules (ice-9 threads))
|
(spawn-shell-command "mpv --shuffle ~/media/music/by-artist"))))
|
||||||
(parallel
|
|
||||||
(system "foot -He rem")
|
|
||||||
(system "mpv --shuffle ~/media/music/by-artist")))))
|
|
||||||
(stop #~(make-timer-destructor))
|
(stop #~(make-timer-destructor))
|
||||||
(actions (list timer-trigger-action))))
|
(actions (list timer-trigger-action))))
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,6 @@
|
||||||
user:root
|
user:root
|
||||||
%base-user-accounts))
|
%base-user-accounts))
|
||||||
|
|
||||||
#|System level packages|#
|
|
||||||
(packages
|
(packages
|
||||||
(list #|admin |# btop inetutils isc-dhcp shadow zzz
|
(list #|admin |# btop inetutils isc-dhcp shadow zzz
|
||||||
#|base |# coreutils diffutils findutils grep patch sed tar which
|
#|base |# coreutils diffutils findutils grep patch sed tar which
|
||||||
|
@ -171,6 +170,7 @@
|
||||||
|
|
||||||
#|Allow resolution of '.local' host names with mDNS|#
|
#|Allow resolution of '.local' host names with mDNS|#
|
||||||
(name-service-switch %mdns-host-lookup-nss)
|
(name-service-switch %mdns-host-lookup-nss)
|
||||||
|
|
||||||
(essential-services
|
(essential-services
|
||||||
(modify-services
|
(modify-services
|
||||||
(operating-system-default-essential-services this-operating-system)
|
(operating-system-default-essential-services this-operating-system)
|
||||||
|
@ -180,8 +180,6 @@
|
||||||
(services (list shepherd-service:guix-gc
|
(services (list shepherd-service:guix-gc
|
||||||
shepherd-service:snapshot-@home
|
shepherd-service:snapshot-@home
|
||||||
shepherd-service:timer))))))
|
shepherd-service:timer))))))
|
||||||
|
|
||||||
#|System services|#
|
|
||||||
(services
|
(services
|
||||||
(list #|TTY services|#
|
(list #|TTY services|#
|
||||||
(service virtual-terminal-service-type)
|
(service virtual-terminal-service-type)
|
||||||
|
|
|
@ -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