Move disk selection to configuration.nix

This commit is contained in:
Rodrigo Arias 2023-04-18 18:28:37 +02:00 committed by Rodrigo Arias Mallo
parent 77f72ac939
commit 9e3bdaabb6
2 changed files with 3 additions and 3 deletions

View File

@ -5,9 +5,6 @@
boot.loader.grub.enable = true;
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
boot.loader.grub.extraConfig = ''
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1

View File

@ -19,6 +19,9 @@
<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" = {
enable = true;
wantedBy = [ "getty.target" ];