331 current 1970-01-01 01:00:00 23.11.20240518.e7cc617 6.6.30-rt30 *
This commit is contained in:
		| @@ -32,10 +32,6 @@ | ||||
|     ]; | ||||
|   }; | ||||
|  | ||||
|   # Bootloader. | ||||
|   boot.loader.systemd-boot.enable = true; | ||||
|   boot.loader.efi.canTouchEfiVariables = true; | ||||
|  | ||||
|   networking.hostName = "MaxNixosLaptop"; # Define your hostname. | ||||
|   # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant. | ||||
|  | ||||
|   | ||||
							
								
								
									
										21
									
								
								modules/nixos/bootloader.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								modules/nixos/bootloader.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   ... | ||||
| }: let | ||||
|   cfg = config.myConfig.bootloader; | ||||
| in { | ||||
|   options.myConfig.bootloader = { | ||||
|     enable = lib.mkEnableOption "enable systemd bootloader"; | ||||
|   }; | ||||
|  | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     boot.loader = { | ||||
|       timeout = 0; | ||||
|       systemd-boot.enable = true; | ||||
|       systemd-boot.memtest86.enable = true; | ||||
|       systemd-boot.editor = false; | ||||
|       efi.canTouchEfiVariables = true; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| @@ -5,14 +5,16 @@ | ||||
| }: let | ||||
|   cfg = config.myConfig; | ||||
| in { | ||||
|   imports = [./bootloader.nix ./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix]; | ||||
|  | ||||
|   options.myConfig = { | ||||
|     enable = lib.mkEnableOption "my custom config"; | ||||
|     desktop = lib.mkEnableOption "custom config with desktop support"; | ||||
|     laptop = lib.mkEnableOption "extra stuff for laptops like wifi"; | ||||
|   }; | ||||
|   imports = [./greetd.nix ./rebuild.nix ./sops.nix ./sway.nix ./wifi.nix ./music.nix]; | ||||
|  | ||||
|   config.myConfig = lib.mkIf cfg.enable { | ||||
|     bootloader.enable = true; | ||||
|     rebuild.enable = true; | ||||
|  | ||||
|     greetd.enable = lib.mkIf cfg.desktop true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user