machine/newton: fix disko formatting file

This commit is contained in:
Felix Buehler 2023-11-04 13:04:21 +01:00
parent 8f0a147cb3
commit 507f53fe3c
2 changed files with 59 additions and 61 deletions

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./boot.nix ./boot.nix
./disko-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
./network.nix ./network.nix
./services.nix ./services.nix
@ -9,10 +10,6 @@
./system.nix ./system.nix
]; ];
disko.devices = import ./disko-config.nix {
disks = [ "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0" ];
};
networking.hostName = "newton"; networking.hostName = "newton";
sops = { sops = {

View file

@ -1,9 +1,9 @@
{ disks ? [ "/dev/sda" ], ... }:
{ {
disko.devices = {
disk = { disk = {
vdb = { vdb = {
type = "disk"; type = "disk";
device = builtins.head disks; device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
@ -71,4 +71,5 @@
}; };
}; };
}; };
};
} }