summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-21 20:30:43 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-21 20:30:43 +0100
commitbd2bca99b5e27f3dc7b657f139947e51458ee8cb (patch)
treefc819a5a679598d8418260be70852b00c9fe438a /hosts
parentfix(system/services/mastodon): Update char patch to v4.3 (diff)
downloadnixos-server-bd2bca99b5e27f3dc7b657f139947e51458ee8cb.tar.gz
nixos-server-bd2bca99b5e27f3dc7b657f139947e51458ee8cb.zip
fix(modules/disko): Remove deprecated legacy type and migrate to `by-name` disko/update
Diffstat (limited to '')
-rw-r--r--hosts/server1/configuration.nix3
-rw-r--r--hosts/server1/hardware.nix8
2 files changed, 6 insertions, 5 deletions
diff --git a/hosts/server1/configuration.nix b/hosts/server1/configuration.nix
index 0bbb993..2d35bd8 100644
--- a/hosts/server1/configuration.nix
+++ b/hosts/server1/configuration.nix
@@ -21,8 +21,5 @@
   networking.hostName = "server1";
   networking.domain = "vhack.eu";
 
-  # FIXME: Find a better way to specify the disk
-  system.disks.disk = "/dev/vda";
-
   system.stateVersion = "22.11";
 }
diff --git a/hosts/server1/hardware.nix b/hosts/server1/hardware.nix
index 6086362..9abc64c 100644
--- a/hosts/server1/hardware.nix
+++ b/hosts/server1/hardware.nix
@@ -3,8 +3,12 @@
     (modulesPath + "/profiles/qemu-guest.nix")
     (modulesPath + "/profiles/headless.nix")
   ];
-  # FIXME: The name of the grub device depends on the disko settings
-  boot.loader.grub.device = "/dev/vda";
+
+  vhack.disko = {
+    enable = true;
+    # FIXME: Find a better way to specify the disk
+    disk = "/dev/vda";
+  };
   boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
   boot.initrd.kernelModules = [];
 }