diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-07-03 11:39:10 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-07-03 11:39:10 -0400 |
commit | 422269e7eea09bad976107f38425d4f36c821dfb (patch) | |
tree | a736931e5a787cef5f98d301dad3ced57288cbf6 /machines | |
parent | 58bcad42524c52f294b8d02d3e94c5e676e87598 (diff) |
dragon updates
Diffstat (limited to 'machines')
-rw-r--r-- | machines/dragon.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix index 8414449..fa14d32 100644 --- a/machines/dragon.nix +++ b/machines/dragon.nix @@ -40,7 +40,11 @@ in { ''; loader.grub.enable = true; loader.grub.version = 2; - loader.grub.devices = [ "/dev/sda" "/dev/sdb" ]; + # loader.grub.devices = [ "/dev/sda" "/dev/sdb" ]; + loader.grub.mirroredBoots = [ + { devices = [ "/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKEXU9X" ]; path = "/mnt/boot1"; } + { devices = [ "/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKHV0LS" ]; path = "/mnt/boot2"; } + ]; }; networking = { hostName = lib.mkForce "dragon"; }; @@ -94,6 +98,14 @@ in { "subvol=system/dragon-nixos,device=/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKHV0LS-part3,device=/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKEXU9X-part3,degraded" ]; }; + fileSystems."/mnt/boot1" = { + device = "/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKEXU9X-part4"; + options = ["nofail"]; + }; + fileSystems."/mnt/boot2" = { + device = "/dev/disk/by-id/ata-HGST_HDN724040ALE640_PK1334PCKHV0LS-part4"; + options = ["nofail"]; + }; swapDevices = [ ]; |