First attempt at booting NixOS on curacao directly

This commit is contained in:
Geoffrey Frogeye 2023-12-12 22:03:36 +01:00
parent d98be4eea5
commit 6f9de6cc4c
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 27 additions and 3 deletions

View file

@ -75,7 +75,7 @@ in
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext2"; format = "ext2";
mountpoint = "/boot"; mountpoint = "/mnt/old/boot";
mountOptions = [ mountOptions = [
"rw" "rw"
"relatime" "relatime"
@ -142,6 +142,7 @@ in
type = "luks"; type = "luks";
name = "rapido"; name = "rapido";
initrdUnlock = true; initrdUnlock = true;
passwordFile = passwordFile;
settings = { settings = {
keyFile = "/etc/keys/rapido"; keyFile = "/etc/keys/rapido";
allowDiscards = true; allowDiscards = true;
@ -153,17 +154,28 @@ in
mountOptions = btrfs_args_ssd; mountOptions = btrfs_args_ssd;
subvolumes = { subvolumes = {
archlinux = { archlinux = {
mountpoint = "/"; mountpoint = "/mnt/old";
mountOptions = btrfs_args_ssd;
};
# Should be temporary, to make sure we can revert to Arch anytime
"home.nixos" = {
mountpoint = "/home";
mountOptions = btrfs_args_ssd; mountOptions = btrfs_args_ssd;
}; };
"home.rapido" = { "home.rapido" = {
mountpoint = "/home"; mountpoint = "/home.old";
mountOptions = btrfs_args_ssd; mountOptions = btrfs_args_ssd;
}; };
nix = { nix = {
mountpoint = "/nix"; mountpoint = "/nix";
mountOptions = btrfs_args_ssd; mountOptions = btrfs_args_ssd;
}; };
nixosboot = {
mountpoint = "/boot";
};
nixos = {
mountpoint = "/";
};
}; };
}; };
}; };

View file

@ -10,6 +10,8 @@
grub = { grub = {
enable = true; enable = true;
efiSupport = true; efiSupport = true;
device = "nodev"; # Don't install on MBR
# TODO Maybe we could? In case the HDD doesn't boot anymore?
}; };
}; };
} }

View file

@ -8,4 +8,14 @@
]; ];
networking.hostName = "curacao"; networking.hostName = "curacao";
boot = {
initrd.secrets = {
"/etc/keys/rapido" = "/etc/keys/rapido";
"/etc/keys/rapswap" = "/etc/keys/rapswap";
};
loader = {
grub.enableCryptodisk = true;
efi.efiSysMountPoint = "/efi";
};
};
} }