forgejo good, nginx coming along
This commit is contained in:
parent
29eb6493be
commit
8fdbb33939
40 changed files with 153 additions and 493 deletions
36
systems/warp.nix
Normal file → Executable file
36
systems/warp.nix
Normal file → Executable file
|
|
@ -1,32 +1,33 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }: {
|
||||
networking.hostName = "warp";
|
||||
|
||||
# CPU Settings for 13th gen Intel Core
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-partlabel/primary";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-partlabel/ESP";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
# CPU Settings for 13th gen Intel Core i5
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# Boot and kernel modules for Intel NUC
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
|
||||
# File system configuration - placeholder for actual hardware
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
boot.initrd.kernelModules = [];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ]; # No graphics drivers needed for headless
|
||||
boot.kernelModules = [ "kvm-intel" ]; # Intel virtualization support
|
||||
boot.extraModulePackages = [];
|
||||
|
||||
# Server-specific kernel parameters
|
||||
boot.kernelParams = [
|
||||
"intel_iommu=on"
|
||||
"intel_iommu=on" # Enable IOMMU for virtualization
|
||||
];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
# No graphics support needed for headless server
|
||||
|
||||
# Power management optimized for server use
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
|
|
@ -46,16 +47,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Swap configuration
|
||||
# Swap configuration (smaller for server use)
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 8192;
|
||||
size = 8192; # 8GB swap for server workload
|
||||
priority = 0;
|
||||
}
|
||||
];
|
||||
|
||||
# Enable hardware monitoring
|
||||
# Enable hardware monitoring (CLI only)
|
||||
hardware.sensor.iio.enable = true;
|
||||
|
||||
# Network performance tuning for server use
|
||||
|
|
@ -70,9 +71,8 @@
|
|||
# Disable unnecessary services for server use
|
||||
services.xserver.enable = lib.mkForce false;
|
||||
services.pipewire.enable = lib.mkForce false;
|
||||
services.flatpak.enable = lib.mkForce false;
|
||||
|
||||
# Enable container support for server services
|
||||
# Enable container support for future server services
|
||||
virtualisation.docker.enable = true;
|
||||
virtualisation.podman.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue