fschl/systems/common: automatically start sway on tty-login

This commit is contained in:
Frieder Schlesier 2024-06-01 16:28:26 +02:00
parent f0f7764462
commit 8d9be295c1
1 changed files with 19 additions and 14 deletions

View File

@ -48,22 +48,27 @@
("QT_QPA_PLATFORM" . "wayland-egl"))) ("QT_QPA_PLATFORM" . "wayland-egl")))
;; Set up the shell environment ;; Set up the shell environment
;; (service home-bash-service-type (service home-bash-service-type
;; (home-bash-configuration (home-bash-configuration
;; (bash-profile (bash-profile
;; `(,(plain-file "bash-profile-extras" `(,(plain-file "bash-profile-extras"
;; (string-append (string-append
;; ;; Load the Nix profile ;; Load the Nix profile
;; "if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then\n" "if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then\n"
;; " . /run/current-system/profile/etc/profile.d/nix.sh\n" " . /run/current-system/profile/etc/profile.d/nix.sh\n"
;; "fi\n")))) "fi\n"))
;; (bashrc ,(plain-file "bash-sway-login"
;; `(,(local-file "../files/bash-prompt"))))) (string-append
"if [ -z \"$WAYLAND_DISPLAY\" ] && [ \"$XDG_VTNR\" -eq 1 ]; then\n"
" exec sway\n"
"fi\n"))))
(bashrc
`(,(local-file "../files/bash-prompt")))))
;; Place other files ;; Place other files
;; (simple-service 'profile-files-service (simple-service 'profile-files-service
;; home-files-service-type home-files-service-type
;; (list `(".inputrc" ,(local-file "../files/inputrc")))) (list `(".inputrc" ,(local-file "../files/inputrc"))))
;; GnuPG configuration ;; GnuPG configuration
;; (service home-gpg-agent-service-type ;; (service home-gpg-agent-service-type