add grub bootloader device

This commit is contained in:
Dennis Wuitz 2023-12-26 04:07:18 +01:00
parent 671fbfce41
commit 5bb39a58c7
3 changed files with 5 additions and 16 deletions

View File

@ -17,7 +17,7 @@ in
filesystem = lib.mkOption { filesystem = lib.mkOption {
type = lib.types.str; type = lib.types.str;
example = "btrfs"; example = "btrfs";
default = "zfs"; default = "ext4";
description = "The filesystem installed."; description = "The filesystem installed.";
}; };
fullDiskEncryption = libS.mkOpinionatedOption "use luks full disk encrytion"; fullDiskEncryption = libS.mkOpinionatedOption "use luks full disk encrytion";
@ -67,7 +67,6 @@ in
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;
fsIdentifier = "uuid"; fsIdentifier = "uuid";
device = "nodev";
enableCryptodisk = lib.mkIf cfg.fullDiskEncryption true; enableCryptodisk = lib.mkIf cfg.fullDiskEncryption true;
}; };
}; };

View File

@ -1,13 +0,0 @@
let
alice = "ssh-ed25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
dennis = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJFc7O+5G6fwpXv9j/miJzST6g1AKkPTFtKwuj6j8NC+";
allUsers = [alice dennis];
palatine-hill = "ssh-ed25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
photon = "ssh-ed25519 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
allSystems = [palatine-hill photon];
in {
"TEST.age".publicKeys = allUsers ++ [photon];
}

View File

@ -3,7 +3,10 @@
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
console.keyMap = "us"; console.keyMap = "us";
networking.hostId = "dc2f9781"; networking.hostId = "dc2f9781";
boot.zfs.extraPools = [ "ZFS-primary" ]; boot = {
zfs.extraPools = [ "ZFS-primary" ];
loader.grub.device = "/dev/sda";
};
virtualisation = { virtualisation = {
docker = { docker = {