From b8a38781d1f05b8c90f3e85ba5c4a439ae3000d7 Mon Sep 17 00:00:00 2001 From: 7032 <7032@noreply.localhost> Date: Sun, 10 Mar 2024 22:55:56 +0100 Subject: [PATCH] =?UTF-8?q?T=C3=A9l=C3=A9verser=20les=20fichiers=20vers=20?= =?UTF-8?q?"/"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bash_profile | 7 +++ channels.scm | 10 +++ config.scm-dualboot | 139 +++++++++++++++++++++++++++++++++++++++++ home-configuration.scm | 40 ++++++++++++ manifest.scm | 112 +++++++++++++++++++++++++++++++++ 5 files changed, 308 insertions(+) create mode 100644 .bash_profile create mode 100644 channels.scm create mode 100644 config.scm-dualboot create mode 100644 home-configuration.scm create mode 100644 manifest.scm diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..81afb5d --- /dev/null +++ b/.bash_profile @@ -0,0 +1,7 @@ +## ------------------- +## CUSTOM BASH_PROFILE +## ------------------- + +export XDG_DATA_DIRS="$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share:$HOME/.local/share/applications" +export LV2_PATH="~/.guix-profile/lib/lv2" + diff --git a/channels.scm b/channels.scm new file mode 100644 index 0000000..0554922 --- /dev/null +++ b/channels.scm @@ -0,0 +1,10 @@ +(cons* (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + ;; Enable signature verification: + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) + %default-channels) diff --git a/config.scm-dualboot b/config.scm-dualboot new file mode 100644 index 0000000..692f13a --- /dev/null +++ b/config.scm-dualboot @@ -0,0 +1,139 @@ +;; Ceci est une configuration de système d'exploitation générée par +;; l'installateur graphique. +;; +;; Une fois l'installation terminée, vous pouvez apprendre à modifier +;; ce fichier pour ajuster la configuration du système et le passer à +;; la commande « guix system reconfigure » pour rendre vos changements +;; effectifs. + + +;; Indique quels modules importer pour accéder aux variables +;; utilisées dans cette configuration. +(use-modules (gnu)) +(use-modules (srfi srfi-1)) +(use-modules (gnu system setuid) (gnu packages cups)) +(use-modules (nongnu packages linux) (nongnu system linux-initrd)) +(use-service-modules cups desktop networking ssh xorg virtualization vpn security-token) + +(operating-system + (locale "en_US.utf8") + (timezone "Europe/Paris") + (keyboard-layout (keyboard-layout "fr" "oss")) + (host-name "HCX") + + (kernel linux) + + (initrd microcode-initrd) + (firmware (list linux-firmware)) + + ;; La liste des comptes utilisateurs (« root » est implicite). + (users (cons* (user-account + (name "Lcx") + (comment "Lcx") + (group "users") + (home-directory "/home/Lcx") + (supplementary-groups '("users" "wheel" "netdev" "audio" "video" "libvirt" "kvm" "scanner" "spice" "cdrom" "lpadmin"))) + %base-user-accounts)) + + ;; Quelques paquets installés au niveau du système. + ;; On installe notamment network-manager et son extension pour openvpn, + ;; ou encore libvirt/virt-manager pour la virtualisation + (packages (append (list (specification->package "nss-certs") + (specification->package "qemu") + (specification->package "virt-manager") + (specification->package "libvirt") + (specification->package "lvm2") + (specification->package "mdadm") + (specification->package "network-manager") + (specification->package "network-manager-openvpn") + (specification->package "atheros-firmware") + (specification->package "xrandr") + (specification->package "udisks") + (specification->package "gvfs") + (specification->package "ntfs-3g") + (specification->package "testdisk") + (specification->package "openssh") + (specification->package "bind:utils") + (specification->package "gnome-tweaks") + (specification->package "os-prober") + (specification->package "thin-provisioning-tools")) + %base-packages)) + + ;; Voici la liste des services du système. Pour trouver les services disponibles, + ;; lancez « guix system search MOT-CLÉ » dans un terminal. + (services + (modify-services (append (list + (service gnome-desktop-service-type) + + ;; Service de gestion des clés de chiffrement physique + (service pcscd-service-type) + + (service cups-service-type + (cups-configuration + (web-interface? #t) + (extensions + (list cups-filters brlaser epson-inkjet-printer-escpr hplip-minimal)))) + + ;; Service KVM/Libvirt pour virt-manager + (service libvirt-service-type) + (service virtlog-service-type) + + ;; Modification des limites mémoires pour les accès audio temps réel + ;; (utile notamment pour Ardour) + (pam-limits-service + (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)))) + %desktop-services) + + ;; 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"))))) + + (guix-service-type config => (guix-configuration + (inherit config) + (extra-options '("--cores=10")) + (substitute-urls + (append (list "https://substitutes.nonguix.org") + %default-substitute-urls)) + (authorized-keys + (append + (list + (plain-file "non-guix.pub" + (string-append + "(public-key" + " (ecc " + " (curve Ed25519)" + " (q #C1FD53E5D4CE971933EC50C9F307AE2171A2D3B52C804642A7A35F84F3A4EA98#)))"))) + %default-authorized-guix-keys)))))) + + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices (list (mapped-device + (source (uuid + "c2b84995-ab04-401c-a82b-41038b91548b")) + (target "cryptroot") + (type luks-device-mapping)))) + + ;; The list of file systems that get "mounted". The unique + ;; file system identifiers there ("UUIDs") can be obtained + ;; by running 'blkid' in a terminal. + (file-systems (cons* (file-system + (mount-point "/boot/efi") + (device (uuid "1154-7620" + 'fat32)) + (type "vfat")) + (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "ext4") + (dependencies mapped-devices)) %base-file-systems))) diff --git a/home-configuration.scm b/home-configuration.scm new file mode 100644 index 0000000..aa45789 --- /dev/null +++ b/home-configuration.scm @@ -0,0 +1,40 @@ +;; Ce fichier « home-environment » peut être passé à « guix home reconfigure » pour reproduire +;; le contenu de votre profil. Son contenu est « symbolique » : il ne spécifie que les +;; noms des paquets. Pour reproduire exactement le même profil, vous devez aussi +;; retenir les canaux utilisés, ceux renvoyés par « guix describe ». +;; Voir la section « Répliquer Guix » dans le manuel. + + +(use-modules (gnu home) + (gnu services) + (gnu packages) + (gnu packages gnupg) + (guix gexp) + (gnu home services shells) + (gnu home services gnupg)) + +(home-environment + (services + (list (service home-bash-service-type + (home-bash-configuration + (aliases '( + ("clear" . "printf '\\033c'") + ("dir" . "dir --color=auto") + ("egrep" . "egrep --color=auto") + ("fgrep" . "fgrep --color=auto") + ("grep" . "grep --color=auto") + ("la" . "ls -A") + ("ll" . "ls -l") + ("l" . "ls -CF") + ("ls" . "ls -p --color=auto") + ("vdir" . "vdir --color=auto"))) + (bashrc (list (local-file "/home/Larry/.config/guix/.bashrc" "bashrc"))) + (bash-profile (list (local-file + "/home/Larry/.config/guix/.bash_profile" + "bash_profile"))))) + (service home-gpg-agent-service-type + (home-gpg-agent-configuration + (pinentry-program + (file-append pinentry-gnome3 "/bin/pinentry-gnome3")) + (ssh-support? #t)))))) + diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..36270f1 --- /dev/null +++ b/manifest.scm @@ -0,0 +1,112 @@ +;; Ce fichier « manifeste » peut être passé à « guix package -m » pour reproduire +;; le contenu de votre profil. Son contenu est « symbolique » : il ne spécifie que les +;; noms des paquets. Pour reproduire exactement le même profil, vous devez aussi +;; retenir les canaux utilisés, ceux renvoyés par « guix describe ». +;; Voir la section « Répliquer Guix » dans le manuel. + +(specifications->manifest + (list "kdenlive" + "icecat" + "audacity" + "0ad" + "nextcloud-client" + "gnome-font-viewer" + "xdg-desktop-portal" + "xdg-desktop-portal-gtk" + "dino" + "ardour" + "gnome-builder" + "endeavour" + "dconf-editor" + "ffmpeg" + "avidemux" + "mpv" + "ungoogled-chromium" + "ublock-origin-chromium" + "pavucontrol" + "alsa-plugins" + "flatpak" + "yt-dlp" + "vlc" + "musescore" + "mumble" + "gimp" + "ghostwriter" + "supertuxkart" + "supertux" + "seahorse" + "hplip" + "inkscape" + "simplescreenrecorder" + "youtube-dl" + "obs" + "pngquant" + "icedove" + "meld" + "xournalpp" + "libreoffice" + "minetest" + "system-config-printer" + "lm-sensors" + "pinentry" + "gparted" + "gajim" + "gajim-omemo" + "git" + "dosage" + "licensecheck" + "rsync" + "recutils" + "gnupg" + "gzip" + "python" + "pandoc" + "fastboot" + "adb" + "man-pages" + "alsa-utils" + "font-liberation" + "gdb" + "tig" + "bsd-games" + "curl" + "make" + "font-openmoji" + "gnome-shell-extension-transparent-window" + "gnome-shell-extension-appindicator" + "gnome-shell-extension-burn-my-windows" + "gnome-shell-extension-blur-my-shell" + "gnome-shell-extension-just-perfection" + "gnome-shell-extension-clipboard-indicator" + "gnome-shell-extension-dash-to-dock" + "gnome-shell-extension-radio" + "neofetch" + "bash-completion" + "blender" + "aircrack-ng" + "nmap" + "rhythmbox" + "filezilla" + "retroarch" + "clamav" + "calibre" + "bitmask" + "tor-client" + "steam" + "signal-desktop" + "giara" + "pipe-viewer" + "gaupol" + "emacs" + "handbrake" + "darktable" + "krita" + "mediainfo" + "shotcut" + "pdfarranger" + "tuba" + "josm" + "marble-qt" + "deluge" + "lmms" + "komikku"))