simplify vps system config

This commit is contained in:
Yan Lin 2026-02-17 18:31:13 +01:00
parent 68620b27eb
commit 526d5d4e38

View file

@ -1,12 +1,8 @@
# Hardware configuration for VPS
# This is a generic configuration suitable for most VPS providers
{ config, lib, pkgs, modulesPath, ... }:
{ lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
# Boot configuration - common kernel modules for VPS environments
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
@ -23,20 +19,7 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Filesystems are managed by disko configuration
# No filesystem declarations needed here
# No swap devices configured here - handled by disko
# Networking hardware
networking.useDHCP = lib.mkDefault true;
# Hardware-specific settings
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
# CPU microcode updates
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# Enable firmware updates
hardware.enableRedistributableFirmware = lib.mkDefault true;
}