Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | Prochaine révision Les deux révisions suivantes | ||
utilisateurs:gonzoleri:config:accueil [10/07/2019 21:34] gonzoleri [/etc/config.scm] |
utilisateurs:gonzoleri:config:accueil [02/08/2019 23:39] gonzoleri [/etc/config.scm] |
||
---|---|---|---|
Ligne 12: | Ligne 12: | ||
===== /etc/config.scm ===== | ===== /etc/config.scm ===== | ||
- | <file scheme nom> | + | <file scheme /etc/config.scm> |
- | ;; Operating system configuration for a full | + | ;; Operating system configuration for a full |
- | ;; "desktop" environment with gnome and | + | ;; "desktop" environment with gnome |
- | ;; gnome-shell | + | |
- | (use-modules (gnu) (gnu system nss)) | + | (use-modules (gnu) (guix) (gnu services mcron) (gnu system nss)) |
(use-service-modules desktop networking ssh) | (use-service-modules desktop networking ssh) | ||
- | (use-package-modules bootloaders certs gnome screen ssh) | + | (use-package-modules bootloaders certs gnome screen ssh base idutils) |
- | ;;(define updatedb-job | + | (define updatedb-job |
;; ;; Run 'updatedb' at 20AM every day. Here we write the | ;; ;; Run 'updatedb' at 20AM every day. Here we write the | ||
;; ;; job's action as a Scheme procedure. | ;; ;; job's action as a Scheme procedure. | ||
- | ;; #~(job '(next-hour '(20)) | + | #~(job '(next-hour '(20)) |
- | ;; (lambda () | + | (lambda () |
- | ;; (execl (string-append #$findutils "/bin/updatedb") | + | (execl (string-append #$findutils "/bin/updatedb") |
- | ;; "updatedb" | + | "updatedb" |
- | ;; "--prunepaths=/tmp /var/tmp /gnu/store")))) | + | "--prunepaths=/tmp /var/tmp /gnu/store")))) |
- | ;;(define garbage-collector-job | + | (define garbage-collector-job |
;; ;; Collect garbage 5 minutes after 17 o'clock every day. | ;; ;; Collect garbage 5 minutes after 17 o'clock every day. | ||
;; ;; The job's action is a shell command. | ;; ;; The job's action is a shell command. | ||
- | ;; #~(job "5 17 * * *" ;Vixie cron syntax | + | #~(job "5 17 * * *" ;Vixie cron syntax |
- | ;; "guix gc -F 5G")) | + | "guix gc -F 5G")) |
- | ;;(define idutils-job | + | (define idutils-job |
;; ;; Update the index database as user "hubert" at 12:15PM | ;; ;; Update the index database as user "hubert" at 12:15PM | ||
;; ;; and 19:15PM. This runs from the user's home directory. | ;; ;; and 19:15PM. This runs from the user's home directory. | ||
- | ;; #~(job '(next-minute-from (next-hour '(12 19)) '(15)) | + | #~(job '(next-minute-from (next-hour '(12 19)) '(15)) |
- | ;; (string-append #$idutils "/bin/mkid src") | + | (string-append #$idutils "/bin/mkid src") |
- | ;; #:user "hubert")) | + | #:user "hubert")) |
(operating-system | (operating-system | ||
Ligne 54: | Ligne 53: | ||
;; target partition for the GuixSD installation. | ;; target partition for the GuixSD installation. | ||
(bootloader (grub-configuration (target "/dev/sda") (menu-entries | (bootloader (grub-configuration (target "/dev/sda") (menu-entries | ||
- | (list | + | (list |
- | (menu-entry | + | (menu-entry |
- | (label "Debian GNU/Linux") | + | (label "Debian GNU/Linux") |
- | (linux "/boot/vmlinuz-4.19.0-1-amd64") | + | (linux "/boot/vmlinuz-4.19.0-1-amd64") |
- | (linux-arguments '("root=/dev/sda1")) | + | (linux-arguments '("root=/dev/sda1")) |
- | (initrd "/boot/initrd.img-4.19.0-1-amd64")))))) | + | (initrd "/boot/initrd.img-4.19.0-1-amd64")))))) |
- | + | | |
(file-systems (cons (file-system | (file-systems (cons (file-system | ||
(device (file-system-label "my-root")) | (device (file-system-label "my-root")) | ||
(mount-point "/") | (mount-point "/") | ||
(type "ext4")) | (type "ext4")) | ||
- | %base-file-systems)) | + | %base-file-systems)) |
(swap-devices '("/dev/sda5")) | (swap-devices '("/dev/sda5")) | ||
Ligne 85: | Ligne 84: | ||
openssh | openssh | ||
%base-packages)) | %base-packages)) | ||
- | | + | |
;; Add GNOME and/or Xfce---we can choose at the log-in | ;; Add GNOME and/or Xfce---we can choose at the log-in | ||
;; screen with F1. | ;; screen with F1. |