mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
hosts/plover: update hardware config according to Hetzner Cloud defaults
This commit is contained in:
parent
533995eb09
commit
e90a719ca8
@ -1,16 +1,19 @@
|
|||||||
{ lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
# Most of the filesystems listed here are supposed to be overriden to default
|
# Most of the filesystems listed here are supposed to be overriden to default
|
||||||
# settings of whatever image format configuration this host system will import
|
# settings of whatever image format configuration this host system will import
|
||||||
# from nixos-generators.
|
# from nixos-generators.
|
||||||
|
#
|
||||||
|
# Take note that this hardware configuration is mostly considered with Hetzner
|
||||||
|
# Cloud hardware server settings in mind. Be sure to replace it whenever you
|
||||||
|
# update your cloud provider.
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/sda";
|
||||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
|
boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_scsi" "xhci_pci" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ "nvme" ];
|
boot.initrd.kernelModules = [ "nvme" ];
|
||||||
|
|
||||||
fileSystems."/" = lib.mkOverride 2000 {
|
fileSystems."/" = lib.mkOverride 2000 {
|
||||||
@ -24,10 +27,14 @@
|
|||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap = {
|
||||||
swapDevices = [{
|
enable = true;
|
||||||
label = "swap";
|
numDevices = 1;
|
||||||
options = [ "defaults" ];
|
};
|
||||||
priority = 5;
|
|
||||||
}];
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.interfaces.ens3.useDHCP = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user