Rottlog was added to base-services
modules/config/os.scm
32 | 32 | #:use-module (gnu packages xdisorg) | |
33 | 33 | #:use-module (gnu packages xfce) | |
34 | 34 | #:use-module (gnu services) | |
35 | + | #:use-module (gnu services admin) | |
35 | 36 | #:use-module (gnu services base) | |
36 | 37 | #:use-module (gnu services dbus) | |
37 | 38 | #:use-module (gnu services desktop) | |
… | |||
54 | 55 | ||
55 | 56 | (define (server-services host-name) | |
56 | 57 | (cons* | |
57 | - | server-rotation-service | |
58 | 58 | (service ntp-service-type) | |
59 | 59 | (service openssh-service-type | |
60 | 60 | (openssh-configuration | |
61 | 61 | (authorized-keys | |
62 | 62 | `(("tyreunom" ,(local-file "../../keys/tyreunom.pub")))))) | |
63 | 63 | (modify-services %base-services | |
64 | + | (rottlog-service-type config => | |
65 | + | server-rotation-service-config) | |
64 | 66 | (login-service-type config => | |
65 | 67 | (login-configuration | |
66 | 68 | (inherit config) | |
… | |||
78 | 80 | (qemu-binfmt-configuration | |
79 | 81 | (platforms (lookup-qemu-platforms "arm" "aarch64" "i686" "ppc")) | |
80 | 82 | (guix-support? #t))) | |
81 | - | desktop-rotation-service | |
82 | 83 | (modify-services %desktop-services | |
84 | + | (rottlog-service-type config => | |
85 | + | desktop-rotation-service-config) | |
83 | 86 | (udev-service-type config => | |
84 | 87 | (udev-configuration | |
85 | 88 | (inherit config) |
modules/config/rotation.scm
22 | 22 | (define-module (config rotation) | |
23 | 23 | #:use-module (gnu services) | |
24 | 24 | #:use-module (gnu services admin) | |
25 | - | #:export (server-rotation-service | |
26 | - | desktop-rotation-service)) | |
25 | + | #:export (server-rotation-service-config | |
26 | + | desktop-rotation-service-config)) | |
27 | 27 | ||
28 | 28 | (define base-rotations | |
29 | 29 | (list | |
… | |||
48 | 48 | (frequency 'daily) | |
49 | 49 | (options '("rotate 1" "log_rotate"))))) | |
50 | 50 | ||
51 | - | (define server-rotation-service | |
52 | - | (service rottlog-service-type | |
53 | - | (rottlog-configuration | |
54 | - | (rotations | |
55 | - | (append | |
56 | - | (list | |
57 | - | (log-rotation | |
58 | - | (files '("/var/log/letsencrypt/letsencrypt.log")) | |
59 | - | (frequency 'daily) | |
60 | - | (options '("rotate 30" "log_rotate" "nocompress"))) | |
61 | - | (log-rotation | |
62 | - | (files '("/var/log/maillog")) | |
63 | - | (options '("rotate 5" "log_rotate")) | |
64 | - | (frequency 'daily)) | |
65 | - | (log-rotation | |
66 | - | (files '("/var/log/nginx/access.log" "/var/log/nginx/error.log")) | |
67 | - | (frequency 'weekly) | |
68 | - | (options '("rotate 1" "log_rotate" "nocompress")))) | |
69 | - | base-rotations))))) | |
51 | + | (define server-rotation-service-config | |
52 | + | (rottlog-configuration | |
53 | + | (rotations | |
54 | + | (append | |
55 | + | (list | |
56 | + | (log-rotation | |
57 | + | (files '("/var/log/letsencrypt/letsencrypt.log")) | |
58 | + | (frequency 'daily) | |
59 | + | (options '("rotate 30" "log_rotate" "nocompress"))) | |
60 | + | (log-rotation | |
61 | + | (files '("/var/log/maillog")) | |
62 | + | (options '("rotate 5" "log_rotate")) | |
63 | + | (frequency 'daily)) | |
64 | + | (log-rotation | |
65 | + | (files '("/var/log/nginx/access.log" "/var/log/nginx/error.log")) | |
66 | + | (frequency 'weekly) | |
67 | + | (options '("rotate 1" "log_rotate" "nocompress")))) | |
68 | + | base-rotations)))) | |
70 | 69 | ||
71 | - | (define desktop-rotation-service | |
72 | - | (service rottlog-service-type | |
73 | - | (rottlog-configuration | |
74 | - | (rotations base-rotations)))) | |
70 | + | (define desktop-rotation-service-config | |
71 | + | (rottlog-configuration | |
72 | + | (rotations base-rotations))) |