hosts: added vergil host and nixos-server shared configuration

This commit is contained in:
2026-08-16 12:54:40 -04:00
parent e6592ac2bf
commit 009e1b68b9
4 changed files with 335 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
{
pkgs,
inputs,
...
}:
let
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
in
{
imports = [
../shared/nixos-server.nix
];
networking.hostName = "vergil";
}
+63
View File
@@ -0,0 +1,63 @@
{
config,
lib,
modulesPath,
...
}:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd = {
availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ata_piix"
"megaraid_sas"
"usb_storage"
"usbhid"
"sd_mod"
"sr_mod"
];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/bd90d419-2a40-4794-9bcb-2fc9adb92435";
fsType = "btrfs";
};
"/home" = {
device = "/dev/disk/by-uuid/bd90d419-2a40-4794-9bcb-2fc9adb92435";
fsType = "btrfs";
options = [ "subvol=home" ];
};
"/nix" = {
device = "/dev/disk/by-uuid/bd90d419-2a40-4794-9bcb-2fc9adb92435";
fsType = "btrfs";
options = [ "subvol=nix" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/EB35-0126";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}