back to greetd, dont need fullfat sddm

This commit is contained in:
William 2024-03-06 18:30:14 -03:00
parent 34add59531
commit c1497790d9
2 changed files with 13 additions and 27 deletions

View file

@ -85,6 +85,6 @@
]; ];
}; };
environment.plasma5.excludePackages = environment.plasma6.excludePackages =
(with pkgs.plasma5Packages; [ elisa gwenview oxygen khelpcenter konsole ]); (with pkgs.kdePackages; [ elisa gwenview oxygen khelpcenter konsole ]);
} }

View file

@ -2,7 +2,7 @@
let let
plasma = pkgs.writeScriptBin "plasma" '' plasma = pkgs.writeScriptBin "plasma" ''
${pkgs.plasma-workspace}/bin/startplasma-wayland &> /dev/null ${pkgs.kdePackages.plasma-workspace}/bin/startplasma-wayland &> /dev/null
''; '';
in { in {
@ -29,33 +29,19 @@ in {
}; };
exportConfiguration = true; exportConfiguration = true;
excludePackages = (with pkgs; [ xterm ]); excludePackages = (with pkgs; [ xterm ]);
displayManager = { displayManager.startx.enable = true;
defaultSession = "plasma"; desktopManager.plasma6.enable = true;
autoLogin = { };
greetd = {
enable = true; enable = true;
settings = {
default_session.command = ''
${pkgs.greetd.tuigreet}/bin/tuigreet --remember --asterisks --time --greeting "Welcome to NixOS" --cmd ${plasma}/bin/plasma'';
initial_session = {
command = "${plasma}/bin/plasma";
user = "user"; user = "user";
}; };
sddm = {
enable = true;
wayland = {
enable = true;
compositorCommand =
"${pkgs.kwin}/bin/kwin_wayland --no-global-shortcuts --no-lockscreen --locale1";
}; };
settings = {
Theme = {
CursorTheme = "breeze_cursors";
CursorSize = "24";
};
General = {
GreeterEnvironment =
"QT_PLUGIN_PATH=${pkgs.plasma5Packages.layer-shell-qt}/${pkgs.plasma5Packages.qtbase.qtPluginPrefix},QT_WAYLAND_SHELL_INTEGRATION=layer-shell,XKB_DEFAULT_KEYMAP=us,XKB_DEFAULT_VARIANT=altgr-intl";
InputMethod = "";
};
};
};
};
desktopManager.plasma6.enable = true;
}; };
}; };