Move disk selection to configuration.nix
This commit is contained in:
		
							parent
							
								
									f43d549294
								
							
						
					
					
						commit
						b60e821eaa
					
				| @ -5,9 +5,6 @@ | |||||||
|   boot.loader.grub.enable = true; |   boot.loader.grub.enable = true; | ||||||
|   boot.loader.grub.version = 2; |   boot.loader.grub.version = 2; | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |  | ||||||
|   boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; |  | ||||||
| 
 |  | ||||||
|   # Enable GRUB2 serial console |   # Enable GRUB2 serial console | ||||||
|   boot.loader.grub.extraConfig = '' |   boot.loader.grub.extraConfig = '' | ||||||
|     serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 |     serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 | ||||||
|  | |||||||
| @ -19,6 +19,9 @@ | |||||||
|     <agenix/modules/age.nix> |     <agenix/modules/age.nix> | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|  |   # Select the this using the ID to avoid mismatches | ||||||
|  |   boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; | ||||||
|  | 
 | ||||||
|   systemd.services."serial-getty@ttyS0" = { |   systemd.services."serial-getty@ttyS0" = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     wantedBy = [ "getty.target" ]; |     wantedBy = [ "getty.target" ]; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user