feat: modified default login daemon to use grueetd

This commit is contained in:
Ceferino Patino 2025-10-09 11:30:43 -05:00
commit e77af9626b
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
2 changed files with 24 additions and 1 deletions

View file

@ -18,7 +18,7 @@ in {
${namespace} = {
desktop = {
env = {
gdm = enabled;
greetd = enabled;
hyprland = enabled;
x11 = enabled;
};

View file

@ -0,0 +1,23 @@
{
config,
lib,
namespace,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
base = "${namespace}.desktop.env.greetd";
cfg = getAttrByNamespace config base;
in {
options = mkOptionsWithNamespace base {
enable = mkEnableOption "greetd";
};
config = mkIf cfg.enable {
services.greetd = {
enable = true;
settings.default_session.command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd Hyprland";
};
};
}