From f9da2f47e5405234478c85ef776d10e7cdaa022a Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:15:59 +1000 Subject: [PATCH] nix: replace greetd with SDDM --- modules/linux/login.nix | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/modules/linux/login.nix b/modules/linux/login.nix index 74fb40a..4c662bd 100644 --- a/modules/linux/login.nix +++ b/modules/linux/login.nix @@ -1,17 +1,20 @@ { config, lib, pkgs, ... }: { - # display manager - services.greetd = { + services.displayManager.sddm = { enable = true; - settings = { - initial_session = { - command = "uwsm start default"; - user = "nico"; - }; - default_session = { - command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --greet-align left"; - }; - }; + wayland.enable = true; + theme = "where_is_my_sddm_theme_qt5"; }; + + environment.systemPackages = with pkgs; [ + (pkgs.where-is-my-sddm-theme.override { + variants = [ "qt5" ]; + themeConfig.General = { + background = pkgs.nixos-artwork.wallpapers.nineish-dark-gray.gnomeFilePath; + backgroundMode = "fill"; + cursorColor = "#ffffff"; + }; + }) + ]; }