refactor(flake-parts): initial flake-parts configuration
This commit is contained in:
		
							parent
							
								
									8f67be9e68
								
							
						
					
					
						commit
						5603001d65
					
				
					 230 changed files with 380 additions and 717 deletions
				
			
		
							
								
								
									
										5
									
								
								inputs/system/modules/base/displayManager/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								inputs/system/modules/base/displayManager/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| { | ||||
|   imports = [ | ||||
|     ./tuigreet | ||||
|   ]; | ||||
| } | ||||
|  | @ -0,0 +1,30 @@ | |||
| { pkgs, lib, config, ... }: | ||||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; | ||||
|   host = config.systemModules.host; | ||||
| in | ||||
| { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     services.greetd = { | ||||
|       enable = true; | ||||
|       settings = { | ||||
|         default_session = { | ||||
|           command = "${tuigreet} --time --remember --cmd Hyprland"; # TODO: dont hardcode this | ||||
|           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; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue