fschl/systems/common: automatically start sway on tty-login
This commit is contained in:
parent
f0f7764462
commit
8d9be295c1
|
@ -48,22 +48,27 @@
|
|||
("QT_QPA_PLATFORM" . "wayland-egl")))
|
||||
|
||||
;; Set up the shell environment
|
||||
;; (service home-bash-service-type
|
||||
;; (home-bash-configuration
|
||||
;; (bash-profile
|
||||
;; `(,(plain-file "bash-profile-extras"
|
||||
;; (string-append
|
||||
;; ;; Load the Nix profile
|
||||
;; "if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then\n"
|
||||
;; " . /run/current-system/profile/etc/profile.d/nix.sh\n"
|
||||
;; "fi\n"))))
|
||||
;; (bashrc
|
||||
;; `(,(local-file "../files/bash-prompt")))))
|
||||
(service home-bash-service-type
|
||||
(home-bash-configuration
|
||||
(bash-profile
|
||||
`(,(plain-file "bash-profile-extras"
|
||||
(string-append
|
||||
;; Load the Nix profile
|
||||
"if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then\n"
|
||||
" . /run/current-system/profile/etc/profile.d/nix.sh\n"
|
||||
"fi\n"))
|
||||
,(plain-file "bash-sway-login"
|
||||
(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
|
||||
;; (simple-service 'profile-files-service
|
||||
;; home-files-service-type
|
||||
;; (list `(".inputrc" ,(local-file "../files/inputrc"))))
|
||||
(simple-service 'profile-files-service
|
||||
home-files-service-type
|
||||
(list `(".inputrc" ,(local-file "../files/inputrc"))))
|
||||
|
||||
;; GnuPG configuration
|
||||
;; (service home-gpg-agent-service-type
|
||||
|
|
Loading…
Reference in New Issue