29 lines
		
	
	
	
		
			738 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			738 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, lib, config, ... }:
 | 
						|
let
 | 
						|
  tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
 | 
						|
  cfg = config.systemModules.displayManager.tuigreet;
 | 
						|
in
 | 
						|
{
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
    services.greetd = {
 | 
						|
      enable = true;
 | 
						|
      settings = {
 | 
						|
        default_session = {
 | 
						|
          command = "${tuigreet} --time --remember --cmd Hyprland";
 | 
						|
          user = "greeter";
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
 | 
						|
    systemd.services.greetd.serviceConfig = {
 | 
						|
      Type = "idle";
 | 
						|
      StandardInput = "tty";
 | 
						|
      StandardOutput = "tty";
 | 
						|
      StandardError = "journal"; # Without this errors will spam on screen
 | 
						|
      # Without these bootlogs will spam on screen
 | 
						|
      TTYReset = true;
 | 
						|
      TTYVHangup = true;
 | 
						|
      TTYVTDisallocate = true;
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |