add server configurations

This commit is contained in:
Asaki Yuki 2026-04-13 10:41:13 +07:00
parent 6f07cf2b90
commit a442768eac
3 changed files with 158 additions and 1 deletions

View file

@ -0,0 +1,43 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/16cfcdf6-15bb-4b63-835f-044867999510";
fsType = "ext4";
};
"/home/asakiyuki/HOST" = {
device = "/dev/disk/by-uuid/414e2a24-605f-47c3-a325-8db8a4934329";
fsType = "ext4";
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/cfa7f30f-f08a-4400-babe-41357586a6a0"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}