18 lines
		
	
	
	
		
			302 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			302 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   config,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib) mkIf;
 | |
|   bootloader = config.ooknet.boot.loader;
 | |
| in {
 | |
|   config = mkIf (bootloader == "systemd") {
 | |
|     boot.loader = {
 | |
|       systemd-boot = {
 | |
|         enable = true;
 | |
|         consoleMode = "max";
 | |
|       };
 | |
|       efi.canTouchEfiVariables = true;
 | |
|     };
 | |
|   };
 | |
| }
 |