nixops: add trantor machine

This commit is contained in:
2026-02-09 19:02:41 +08:00
parent 02208382db
commit 437a6fa26e
2 changed files with 34 additions and 0 deletions

View File

@@ -6,4 +6,5 @@
network.enableRollback = true;
helicon = import ./desktop.nix { host = "helicon"; };
trantor = import ./desktop.nix { host = "trantor"; };
}

View File

@@ -0,0 +1,33 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/5c24fd31-25f4-4c78-995c-dd6d2655627d";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4647-5F3D";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
system.stateVersion = "25.11";
}