intégration des paquets dans la config + reformat
This commit is contained in:
parent
a6f23a39e2
commit
fdb121e0a2
360
config.scm
360
config.scm
|
@ -71,106 +71,310 @@ KERNEL==\"sd?1\", ATTRS{idVendor}==\"20a0\", ATTRS{idProduct}==\"4109\", SYMLINK
|
||||||
|
|
||||||
;; Application de la configuration sudoer personnalisée (définie plus haut)
|
;; Application de la configuration sudoer personnalisée (définie plus haut)
|
||||||
(kernel-arguments
|
(kernel-arguments
|
||||||
(list "modprobe.blacklist=usbmouse,usbkbd,i2c-hid" "psmouse.synaptics_intertouch=1"))
|
(list
|
||||||
|
"modprobe.blacklist=usbmouse,usbkbd,i2c-hid"
|
||||||
|
"psmouse.synaptics_intertouch=1"))
|
||||||
|
|
||||||
(sudoers-file %sudoers-specification)
|
(sudoers-file %sudoers-specification)
|
||||||
|
|
||||||
;; La liste des comptes utilisateurs (« root » est implicite).
|
;; La liste des comptes utilisateurs (« root » est implicite).
|
||||||
(users (cons* (user-account
|
(users
|
||||||
(name "neox")
|
(cons*
|
||||||
(comment "neox")
|
(user-account
|
||||||
(group "users")
|
(name "neox")
|
||||||
(home-directory "/home/neox")
|
(comment "neox")
|
||||||
;; ajout de groupes pour virt-manager
|
(password (crypt "password" "$6$abc"))
|
||||||
|
(group "users")
|
||||||
(supplementary-groups '("wheel" "netdev" "audio" "video" "libvirt" "kvm" "scanner" "spice" "lp")))
|
(home-directory "/home/neox")
|
||||||
%base-user-accounts))
|
(supplementary-groups
|
||||||
|
'("wheel"
|
||||||
|
"netdev"
|
||||||
|
"audio"
|
||||||
|
"video"
|
||||||
|
"libvirt"
|
||||||
|
"kvm"
|
||||||
|
"scanner"
|
||||||
|
"spice"
|
||||||
|
"lp")))
|
||||||
|
%base-user-accounts))
|
||||||
|
|
||||||
;; Quelques paquets installés au niveau du système.
|
;; Quelques paquets installés au niveau du système.
|
||||||
;; On installe notamment network-manager et son extension pour openvpn,
|
;; On installe notamment network-manager et son extension pour openvpn,
|
||||||
;; ou encore libvirt/virt-manager pour la virtualisation
|
;; ou encore libvirt/virt-manager pour la virtualisation
|
||||||
(packages (append (list
|
(packages
|
||||||
(specification->package "nss-certs")
|
(append
|
||||||
(specification->package "qemu")
|
(specifications->packages
|
||||||
(specification->package "virt-manager")
|
(list
|
||||||
(specification->package "libvirt")
|
"adb"
|
||||||
(specification->package "lvm2")
|
"alsa-plugins"
|
||||||
(specification->package "mdadm")
|
"alsa-utils"
|
||||||
(specification->package "network-manager")
|
"ardour"
|
||||||
(specification->package "network-manager-openvpn"))
|
"audacity"
|
||||||
%base-packages))
|
"bind:utils"
|
||||||
|
"binutils"
|
||||||
|
"blueman"
|
||||||
|
"bmaptools"
|
||||||
|
"cabextract"
|
||||||
|
"claws-mail"
|
||||||
|
"cmatrix"
|
||||||
|
"cpupower"
|
||||||
|
"cryptsetup"
|
||||||
|
"curl"
|
||||||
|
"cvs"
|
||||||
|
"dconf-editor"
|
||||||
|
"dino"
|
||||||
|
"emacs"
|
||||||
|
"endeavour"
|
||||||
|
"evolution"
|
||||||
|
"exfatprogs"
|
||||||
|
"fastboot"
|
||||||
|
"ffmpeg"
|
||||||
|
"file"
|
||||||
|
"flashrom"
|
||||||
|
"flatpak"
|
||||||
|
"font-awesome"
|
||||||
|
"font-liberation"
|
||||||
|
"font-openmoji"
|
||||||
|
"gallery-dl"
|
||||||
|
"gdb"
|
||||||
|
"ghostscript"
|
||||||
|
"ghostwriter"
|
||||||
|
"gimp"
|
||||||
|
"git"
|
||||||
|
"git-lfs"
|
||||||
|
"git:send-email"
|
||||||
|
"glmark2"
|
||||||
|
"gnome-bluetooth"
|
||||||
|
"gnome-builder"
|
||||||
|
"gnome-font-viewer"
|
||||||
|
"gnome-maps"
|
||||||
|
"gnome-power-manager"
|
||||||
|
"gnome-shell-extension-appindicator"
|
||||||
|
"gnome-shell-extension-blur-my-shell"
|
||||||
|
"gnome-shell-extension-burn-my-windows"
|
||||||
|
"gnome-shell-extension-dash-to-dock"
|
||||||
|
"gnome-shell-extension-night-theme-switcher"
|
||||||
|
"gnome-shell-extension-noannoyance"
|
||||||
|
"gnome-shell-extension-vitals"
|
||||||
|
"gnome-tweaks"
|
||||||
|
"gnupg"
|
||||||
|
"gnuplot"
|
||||||
|
"gparted"
|
||||||
|
"gpgme"
|
||||||
|
"graphviz"
|
||||||
|
"grub"
|
||||||
|
"hexchat"
|
||||||
|
"hplip"
|
||||||
|
"htop"
|
||||||
|
"hwloc"
|
||||||
|
"icecat"
|
||||||
|
"inetutils"
|
||||||
|
"inkscape"
|
||||||
|
"jack"
|
||||||
|
"jp2a"
|
||||||
|
"kajongg"
|
||||||
|
"kcachegrind"
|
||||||
|
"kgraphviewer"
|
||||||
|
"ldns"
|
||||||
|
"libreoffice"
|
||||||
|
"libtree"
|
||||||
|
"libvirt"
|
||||||
|
"lm-sensors"
|
||||||
|
"lsof"
|
||||||
|
"lvm2"
|
||||||
|
"lynx"
|
||||||
|
"make"
|
||||||
|
"man-pages"
|
||||||
|
"mdadm"
|
||||||
|
"mediainfo"
|
||||||
|
"megatools"
|
||||||
|
"meld"
|
||||||
|
"microcom"
|
||||||
|
"minetest"
|
||||||
|
"minicom"
|
||||||
|
"minisat"
|
||||||
|
"mpv"
|
||||||
|
"mtr"
|
||||||
|
"mumble"
|
||||||
|
"nbd"
|
||||||
|
"ncftp"
|
||||||
|
"ndisc6"
|
||||||
|
"neofetch"
|
||||||
|
"network-manager"
|
||||||
|
"network-manager-openvpn"
|
||||||
|
"nextcloud-client"
|
||||||
|
"nitrocli"
|
||||||
|
"nmap"
|
||||||
|
"ntfs-3g"
|
||||||
|
"openssh"
|
||||||
|
"openssl"
|
||||||
|
"openvpn"
|
||||||
|
"pam-u2f"
|
||||||
|
"pandoc"
|
||||||
|
"parted"
|
||||||
|
"patchelf"
|
||||||
|
"pavucontrol"
|
||||||
|
"pkg-config"
|
||||||
|
"poppler"
|
||||||
|
"powertop"
|
||||||
|
"profanity"
|
||||||
|
"python"
|
||||||
|
"python2"
|
||||||
|
"python-logutils"
|
||||||
|
"python-markdown"
|
||||||
|
"python-paramiko"
|
||||||
|
"qbittorrent"
|
||||||
|
"qemu"
|
||||||
|
"qjackctl"
|
||||||
|
"qpdf"
|
||||||
|
"recutils"
|
||||||
|
"rsync"
|
||||||
|
"rubber"
|
||||||
|
"screen"
|
||||||
|
"seahorse"
|
||||||
|
"setxkbmap"
|
||||||
|
"simplescreenrecorder"
|
||||||
|
"sl"
|
||||||
|
"speedtest-cli"
|
||||||
|
"sqlitebrowser"
|
||||||
|
"sshpass"
|
||||||
|
"system-config-printer"
|
||||||
|
"testdisk"
|
||||||
|
"texlive"
|
||||||
|
"texlive-biber"
|
||||||
|
"texmaker"
|
||||||
|
"tig"
|
||||||
|
"tilix"
|
||||||
|
"transmission"
|
||||||
|
"tree"
|
||||||
|
"uefitool"
|
||||||
|
"ungoogled-chromium"
|
||||||
|
"virt-manager"
|
||||||
|
"vlc"
|
||||||
|
"wine64"
|
||||||
|
"xauth"
|
||||||
|
"xdg-desktop-portal"
|
||||||
|
"xdg-desktop-portal-gnome"
|
||||||
|
"xdg-desktop-portal-gtk"
|
||||||
|
"xdg-utils"
|
||||||
|
"xdot"
|
||||||
|
"xdotool"
|
||||||
|
"xeyes"
|
||||||
|
"xmlcopyeditor"
|
||||||
|
"xournalpp"
|
||||||
|
"xrdp"
|
||||||
|
"yt-dlp"
|
||||||
|
"zstd"))
|
||||||
|
%base-packages))
|
||||||
|
|
||||||
;; Services du système.
|
;; Services du système.
|
||||||
;; On en profite pour modifier le comportement par défaut de quelques services.
|
;; On en profite pour modifier le comportement par défaut de quelques services.
|
||||||
(services
|
(services
|
||||||
(modify-services (append (list
|
(modify-services
|
||||||
(service gnome-desktop-service-type)
|
(append
|
||||||
(service bluetooth-service-type)
|
|
||||||
|
|
||||||
;; Service de gestion des clés de chiffrement physique
|
|
||||||
(service pcscd-service-type)
|
|
||||||
|
|
||||||
;; Service d'impression
|
|
||||||
(service cups-service-type
|
|
||||||
(cups-configuration
|
|
||||||
(web-interface? #t)
|
|
||||||
(extensions
|
|
||||||
(list cups-filters epson-inkjet-printer-escpr hplip-minimal))))
|
|
||||||
|
|
||||||
;; Service KVM/Libvirt pour virt-manager
|
|
||||||
(service libvirt-service-type)
|
|
||||||
(service virtlog-service-type)
|
|
||||||
|
|
||||||
;; Application de la configuration spice personnalisée (définie plus haut)
|
|
||||||
(udev-rules-service 'spice %spice-rules #:groups '("spice"))
|
|
||||||
|
|
||||||
;; Modification des limites mémoires pour les accès audio temps réel
|
|
||||||
;; (utile notamment pour Ardour)
|
|
||||||
(pam-limits-service
|
|
||||||
(list
|
(list
|
||||||
(pam-limits-entry "@audio" 'both 'rtprio 99)
|
(service gnome-desktop-service-type)
|
||||||
(pam-limits-entry "@audio" 'both 'memlock 'unlimited)))
|
(service bluetooth-service-type)
|
||||||
|
|
||||||
;; Configuration de l'environnement graphique (notamment clavier)
|
;; Service de gestion des clés de chiffrement physique
|
||||||
(set-xorg-configuration
|
(service pcscd-service-type)
|
||||||
(xorg-configuration (keyboard-layout keyboard-layout))))
|
|
||||||
|
;; Service OpenSSH
|
||||||
|
(service openssh-service-type
|
||||||
|
(openssh-configuration
|
||||||
|
(x11-forwarding? #t)
|
||||||
|
(password-authentication? #f)
|
||||||
|
(permit-root-login 'prohibit-password)))
|
||||||
|
|
||||||
|
;; Service d'impression
|
||||||
|
(service cups-service-type
|
||||||
|
(cups-configuration
|
||||||
|
(web-interface? #t)
|
||||||
|
(extensions
|
||||||
|
(list cups-filters epson-inkjet-printer-escpr hplip-minimal))))
|
||||||
|
|
||||||
|
;; Service KVM/Libvirt pour virt-manager
|
||||||
|
(service libvirt-service-type)
|
||||||
|
(service virtlog-service-type)
|
||||||
|
|
||||||
|
;; Application de la configuration spice personnalisée (définie plus haut)
|
||||||
|
(udev-rules-service 'spice %spice-rules #:groups '("spice"))
|
||||||
|
|
||||||
|
;; Modification des limites mémoires pour les accès audio temps réel
|
||||||
|
;; (utile notamment pour Ardour)
|
||||||
|
(service pam-limits-service-type
|
||||||
|
(list
|
||||||
|
(pam-limits-entry "@audio" 'both 'rtprio 99)
|
||||||
|
(pam-limits-entry "@audio" 'both 'memlock 'unlimited)))
|
||||||
|
|
||||||
|
;; Configuration de l'environnement graphique (notamment clavier)
|
||||||
|
(set-xorg-configuration
|
||||||
|
(xorg-configuration (keyboard-layout keyboard-layout))))
|
||||||
|
|
||||||
|
;; Services par défaut du système
|
||||||
%desktop-services)
|
%desktop-services)
|
||||||
|
|
||||||
;; Configuration du service network-manager pour prendre en charge
|
;; Modification de services par défaut
|
||||||
;; OpenVPN
|
;; Configuration du service upower pour éviter la mise en veille lors
|
||||||
(network-manager-service-type config => (network-manager-configuration
|
;; de la fermeture de capot
|
||||||
(inherit config)
|
(upower-service-type config => (upower-configuration
|
||||||
(vpn-plugins
|
(inherit config)
|
||||||
(list (specification->package "network-manager-openvpn")))))))
|
(ignore-lid? #t)))
|
||||||
|
|
||||||
|
;; Configuration du service elogind pour éviter la mise en veille lors
|
||||||
|
;; de la fermeture du capot
|
||||||
|
(elogind-service-type config => (elogind-configuration
|
||||||
|
(inherit config)
|
||||||
|
(handle-lid-switch 'ignore)
|
||||||
|
(handle-lid-switch-external-power 'ignore)))
|
||||||
|
|
||||||
|
;; Configuration du service network-manager pour prendre en charge
|
||||||
|
;; OpenVPN
|
||||||
|
(network-manager-service-type config => (network-manager-configuration
|
||||||
|
(inherit config)
|
||||||
|
(vpn-plugins
|
||||||
|
(list (specification->package "network-manager-openvpn")))))))
|
||||||
|
|
||||||
;; Chargeur de démarrage (GRUB)
|
;; Chargeur de démarrage (GRUB)
|
||||||
;; On indique ici où il doit être installé et comment le configurer
|
;; On indique ici où il doit être installé et comment le configurer
|
||||||
(bootloader (bootloader-configuration
|
(bootloader
|
||||||
(bootloader grub-efi-bootloader)
|
(bootloader-configuration
|
||||||
(targets (list "/boot/efi"))
|
(bootloader grub-efi-bootloader)
|
||||||
(keyboard-layout keyboard-layout)))
|
(targets (list "/boot/efi"))
|
||||||
|
(keyboard-layout keyboard-layout)))
|
||||||
|
|
||||||
;; Périphériques mappés
|
;; Périphériques mappés
|
||||||
;; On configure notamment ici les partitions chiffrées (LUKS)
|
;; On configure notamment ici les partitions chiffrées (LUKS)
|
||||||
(mapped-devices (list (mapped-device
|
(mapped-devices
|
||||||
(source (uuid
|
(list
|
||||||
"3ea148ff-1d1c-4f8c-a82c-5806b32dd6a0"))
|
(mapped-device
|
||||||
(target "crypthome")
|
(source
|
||||||
(type luks-device-mapping))))
|
(uuid "3ea148ff-1d1c-4f8c-a82c-5806b32dd6a0"))
|
||||||
|
(target "crypthome")
|
||||||
|
(type luks-device-mapping))))
|
||||||
|
|
||||||
|
;; Specify a swap file for the system, which resides on the
|
||||||
|
;; root file system.
|
||||||
|
(swap-devices
|
||||||
|
(list
|
||||||
|
(swap-space
|
||||||
|
(target "/swapfile"))))
|
||||||
|
|
||||||
;; La liste des systèmes de fichiers montés au démarrage
|
;; La liste des systèmes de fichiers montés au démarrage
|
||||||
;; On configure ici le montage des partitions chiffrées et non chiffrées
|
;; On configure ici le montage des partitions chiffrées et non chiffrées
|
||||||
(file-systems (cons*
|
(file-systems
|
||||||
(file-system
|
(cons*
|
||||||
(mount-point "/home")
|
(file-system
|
||||||
(device "/dev/mapper/crypthome")
|
(mount-point "/home")
|
||||||
(type "ext4")
|
(device "/dev/mapper/crypthome")
|
||||||
(dependencies mapped-devices))
|
(type "ext4")
|
||||||
(file-system
|
(dependencies mapped-devices))
|
||||||
(mount-point "/boot/efi")
|
(file-system
|
||||||
(device (uuid "A012-A17A" 'fat32))
|
(mount-point "/boot/efi")
|
||||||
(type "vfat"))
|
(device (uuid "A012-A17A" 'fat32))
|
||||||
(file-system
|
(type "vfat"))
|
||||||
(mount-point "/")
|
(file-system
|
||||||
(device (uuid "dfaec018-b99b-4d34-a206-eec25b833c45" 'ext4))
|
(mount-point "/")
|
||||||
(type "ext4")) %base-file-systems)))
|
(device
|
||||||
|
(uuid "dfaec018-b99b-4d34-a206-eec25b833c45" 'ext4))
|
||||||
|
(type "ext4")) %base-file-systems)))
|
||||||
|
|
Loading…
Reference in New Issue