working on orbi partition type.

feature/clan.lol
Ingolf Wagner 2024-02-26 21:17:02 +01:00
parent 96a7ec46f5
commit e69c5844e0
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 13 additions and 22 deletions

View File

@ -4,7 +4,8 @@
# nixos-install
{ config, lib, ... }:
let
disks = [ "sda" "sdb" ];
#disks = [ "sda" "sdb" ];
disks = [ "sda" ];
in
{
# ZFS already has its own scheduler. Without this my(@Artturin) computer froze for a second when i nix build something.
@ -21,16 +22,17 @@ in
type = "disk";
device = "/dev/${disk}";
content = {
#type = "table";
type = "gpt";
partitions = {
boot = {
priority = 0;
#start = "0";
#end = "1M";
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
priority = 1;
#start = "1M";
#end = "500M";
size = "500M";
@ -39,27 +41,16 @@ in
content = {
type = "filesystem";
format = "vfat";
# mountpoint = "/boot";
mountpoint = "/boot_${disk}";
mountpoint = "/boot";
#mountpoint = "/boot_${disk}";
mountOptions = [ "defaults" ];
};
};
#{
# name = "ESP";
# start = "1M";
# end = "500MiB";
# bootable = true;
# content = {
# type = "filesystem";
# format = "vfat";
# mountpoint = "/boot_${disk}";
# mountOptions = [ "defaults" ];
# };
#}
root = {
#name = "zfs";
#start = "500M";
#end = "500G";
priority = 10;
size = "500G";
# content = {
# type = "luks";
@ -106,7 +97,7 @@ in
zroot = {
type = "zpool";
mode = "mirror";
#mode = "mirror";
rootFsOptions = {
mountpoint = "none";
canmount = "off";

View File

@ -29,14 +29,14 @@ in
{
# needed lvm for raid
#boot.initrd.kernelModules = [ ];
boot.initrd.systemd.users.root.shell = "/bin/cryptsetup-askpass";
boot.initrd.systemd.services.openssh = {
enable = true;
};
#boot.initrd.systemd.users.root.shell = "/bin/cryptsetup-askpass";
#boot.initrd.systemd.services.openssh = {
# enable = true;
#};
# Use GRUB2 as the boot loader.
# We don't use systemd-boot because Hetzner uses BIOS legacy boot.
boot.loader.systemd-boot.enable = false;
#boot.loader.systemd-boot.enable = true;
boot.loader.grub = {
enable = true;
efiSupport = false; # we created a ef02 partition because uefi is not supported on hetzner online machines.