Add hardware configuration placeholders for staging and production
This commit is contained in:
parent
fb5e394dd8
commit
daabdc5938
2 changed files with 31 additions and 0 deletions
14
hosts/production/hardware-configuration.nix
Normal file
14
hosts/production/hardware-configuration.nix
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
17
hosts/staging/hardware-configuration.nix
Normal file
17
hosts/staging/hardware-configuration.nix
Normal 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;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue