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")))
|
("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
|
||||||
|
|
Loading…
Reference in New Issue