{ config, pkgs, lib, ... }: let cfg = config.reborn.greetd; in { options.reborn.greetd = { enable = lib.mkEnableOption "Reborn greetd config"; command = lib.mkOption { description = "Default session command"; type = lib.types.str; default = "sway"; }; }; config = lib.mkIf cfg.enable { services.greetd = { enable = true; vt = 6; settings.default_session.command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd ${cfg.command}"; }; }; }