Switch to tty as dm

This commit is contained in:
Tristan D. 2024-08-07 11:37:31 +02:00
parent fd70eb041a
commit 4ea27fd1f0
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4
2 changed files with 28 additions and 8 deletions

View file

@ -51,15 +51,21 @@ in
enable = true;
package = pkgs.fish;
# TODO: unify into single if
interactiveShellInit = ''
if test -z $INSIDE_EMACS ;
if test $TERM != linux ;
eval (${pkgs.zellij}/bin/zellij setup --generate-auto-start fish | string collect)
end
# TODO do not run on headless systems
function kde_run
${pkgs.kdePackages.plasma-workspace}/libexec/plasma-dbus-run-session-if-needed \
${pkgs.kdePackages.plasma-workspace}/bin/startplasma-wayland
end
any-nix-shell fish --info-right | source
############################################
# Adds a seperating arrow inbetween commands
# ~ ls <----------- at 12:12
# some home folders
# ~ echo 123 <----------- at 12:13
# 123
# ~ _
############################################
function starship_transient_rprompt_func
set width "$(calc "($(tput cols)-12)/2")"
echo -n " <"
@ -67,6 +73,17 @@ in
echo -n " "
starship module time
end
if test -z $INSIDE_EMACS && test $TERM != linux ;
eval (${pkgs.zellij}/bin/zellij setup --generate-auto-start fish | string collect)
end
if test $TERM = linux && test (who am i | string split " ")[2] = tty1;
kde_run && exit
end
any-nix-shell fish --info-right | source
cat /var/lib/rust-motd/motd
'';
loginShellInit = ''

View file

@ -64,14 +64,17 @@
programs.kdeconnect.enable = true;
security.pam.services = {
sddm.kwallet.enable = true;
# sddm.kwallet.enable = true; useless due to tty as dm
kdewallet.kwallet.enable = true;
kdewallet.kwallet.forceRun = true; # tty as dm support
};
services = {
desktopManager.plasma6.enable = true;
desktopManager.plasma6.enableQt5Integration = true;
displayManager.sddm.enable = true;
displayManager.enable = false; # tty as dm ftw
displayManager.sddm.enable = false; # tty as dm ftw
xserver.displayManager.lightdm.enable = false; # tty as dm ftw
xserver = {
enable = true;
xkb = {