summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-07-03 11:39:10 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-07-03 11:39:10 -0400
commit422269e7eea09bad976107f38425d4f36c821dfb (patch)
treea736931e5a787cef5f98d301dad3ced57288cbf6 /machines
parent58bcad42524c52f294b8d02d3e94c5e676e87598 (diff)
dragon updates
Diffstat (limited to 'machines')
-rw-r--r--machines/dragon.nix14
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 = [ ];