aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/server1
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/server1')
-rw-r--r--hosts/server1/configuration.nix5
-rw-r--r--hosts/server1/hardware.nix1
2 files changed, 4 insertions, 2 deletions
diff --git a/hosts/server1/configuration.nix b/hosts/server1/configuration.nix
index 78eacee..f444715 100644
--- a/hosts/server1/configuration.nix
+++ b/hosts/server1/configuration.nix
@@ -1,4 +1,4 @@
-{pkgs, ...}: {
+{...}: {
imports = [
./networking.nix # network configuration that just works
./hardware.nix
@@ -11,7 +11,8 @@
networking.hostName = "server1";
networking.domain = "vhack.eu";
- system.fileSystemLayouts.mainDisk = "/dev/disk/by-uuid/7d960eb9-9334-4aef-9f7c-9a908a91a6db";
+ # 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 9fabafe..6086362 100644
--- a/hosts/server1/hardware.nix
+++ b/hosts/server1/hardware.nix
@@ -3,6 +3,7 @@
(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";
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
boot.initrd.kernelModules = [];