Add hardware configuration placeholders for staging and production

This commit is contained in:
Eli Fadi 2026-03-03 11:47:27 +01:00
parent fb5e394dd8
commit daabdc5938
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ config, lib, modulesPath, ... }:
{
# Good defaults for cloud VMs
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
# Placeholder root FS (you MUST replace this on real machines)
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
# Placeholder bootloader target (adjust /dev/vda vs /dev/sda depending on provider)
boot.loader.grub.enable = true;
boot.loader.grub.devices = [ "/dev/vda" ];
networking.useDHCP = lib.mkDefault true;
}