;; This is an operating system configuration template ;; for a "desktop" setup with Plasma. (use-modules (gnu) (gnu system nss) (srfi srfi-1)) (use-service-modules desktop sddm xorg ssh) (use-package-modules gnome ssh admin fonts) (use-package-modules qt xorg tmux linux) (operating-system (host-name "plasma") (timezone "Asia/Shanghai") (locale "en_US.utf8") ;; Assuming /dev/sdX is the target hard disk, and "my-root" ;; is the label of the target root file system. (bootloader (bootloader-configuration (bootloader grub-bootloader) (targets (list "/dev/sdX")))) (file-systems (cons (file-system (device "my-root") (mount-point "/") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "plasma") (password (crypt "plasma" "$6$abc")) (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video"))) %base-user-accounts)) ;; This is where we specify system-wide packages. (packages (cons* neofetch htop tmux xprop strace %base-packages)) (services (cons* ;; for debug ;; (simple-service ;; 'add-qt-debug-env ;; session-environment-service-type ;; '(("QT_MESSAGE_PATTERN" ;; . "[[%{time process} %{type}] %{appname}: %{category} %{function} - %{message}]") ;; ("QT_DEBUG_PLUGINS" . "1") ;; ("QML_IMPORT_TRACE" . "1"))) (service openssh-service-type (openssh-configuration (openssh openssh-sans-x) (port-number 2222))) (service plasma-desktop-service-type) (service sddm-service-type (sddm-configuration (theme "breeze"))) ;; Remove GDM if it's among %DESKTOP-SERVICES; on other ;; architectures, %DESKTOP-SERVICES contains SDDM instead. (remove (lambda (service) (memq (service-kind service) (list gdm-service-type sddm-service-type))) %desktop-services))) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) ;; Local Variables: ;; mode: scheme ;; End: > 2021-11-07guix-install.sh: Undo some bugs introduced by shellcheck....* etc/guix-install.sh: Unquote all file names containing ~root. Tobias Geerinckx-Rice 2021-09-29guix-install.sh: Don't swallow wget errors....Using ‘-q’ suppresses *all* stderr output, including errors. * etc/guix-install.sh (chk_gpg_keyring, guix_get_bin_list, guix_get_bin): Substitute ‘--no-verbose’ for ‘-q’. Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com> Tobias Geerinckx-Rice 2021-07-14guix-install.sh: Untabify....* etc/guix-install.sh (sys_create_build_user): Normalize to spaces. Maxim Cournoyer 2021-07-07guix-install.sh: Prompt for configuring substitutes discovery....Also ensure prompt_yes_no always print the message with a trailing space, which is more pleasing to the eye. * etc/guix-daemon.conf.in <--discover=no>: New guix-daemon option. * etc/guix-daemon.service.in: Likewise. * etc/init.d/guix-daemon.in: Likewise. * etc/openrc/guix-daemon.in: Likewise. * etc/guix-install.sh (configure_substitute_discovery): New procedure. (sys_enable_guix_daemon): Ask the user whether automatic substitute discovery should be enabled. Set the '--discover' argument accordingly. (prompt_yes_no): Add a trailing space to the message. (sys_authorize_build_farms): Remove trailing space from the message argument. * NEWS (Distribution): Add news. Maxim Cournoyer 2021-07-07guix-install.sh: No longer export GUIX_PROFILE....If GUIX_PROFILE is exported here, any subsequent "source /some/other/profile/etc/profile" will set variables pointing to "$HOME/.guix-profile" instead of pointing to the sourced profile. * etc/guix-install.sh (sys_create_init_profile): No longer export GUIX_PROFILE. Hartmut Goebel