Refactor modules style

This commit is contained in:
Julia Lange 2024-04-07 17:08:48 -07:00
parent ed2a7f94cf
commit cc95386f1a
44 changed files with 455 additions and 297 deletions

View file

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
{
options = {
tuigreet.enable = lib.mkEnableOption "enables tuigreet with greetd";
};
config = lib.mkIf config.tuigreet.enable {
services.greetd = {
enable = true;
package = pkgs.greetd.tuigreet;
settings = {
terminal = {
vt = 2;
};
default_session = lib.mkIf config.hyprland.enable {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
user = config.user.name;
};
};
};
};
}