diff --git a/hosts/production/hardware-configuration.nix b/hosts/production/hardware-configuration.nix new file mode 100644 index 0000000..58dcda4 --- /dev/null +++ b/hosts/production/hardware-configuration.nix @@ -0,0 +1,14 @@ +{ config, lib, modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; + + boot.loader.grub.enable = true; + boot.loader.grub.devices = [ "/dev/vda" ]; + + networking.useDHCP = lib.mkDefault true; +} diff --git a/hosts/staging/hardware-configuration.nix b/hosts/staging/hardware-configuration.nix new file mode 100644 index 0000000..dab1e7d --- /dev/null +++ b/hosts/staging/hardware-configuration.nix @@ -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; +}