From c734b8c107684d98454bd8e237cfa11c00c8b392 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sat, 4 Apr 2026 22:57:40 +0200 Subject: Add mystra host configuration for ThinkPad X220 - Added minimal mystra host config with placeholder hardware-configuration.nix - Updated flake.nix to include mystra in nixosConfigurations - Hardware config includes setup instructions for actual X220 --- hosts/mystra/configuration.nix | 7 +++++++ hosts/mystra/hardware-configuration.nix | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 hosts/mystra/configuration.nix create mode 100644 hosts/mystra/hardware-configuration.nix (limited to 'hosts') diff --git a/hosts/mystra/configuration.nix b/hosts/mystra/configuration.nix new file mode 100644 index 0000000..a67cdf3 --- /dev/null +++ b/hosts/mystra/configuration.nix @@ -0,0 +1,7 @@ +{...}: { + imports = [ + ./hardware-configuration.nix + ../../home/rices/nord-blue/system.nix + ]; + networking.hostName = "mystra"; +} diff --git a/hosts/mystra/hardware-configuration.nix b/hosts/mystra/hardware-configuration.nix new file mode 100644 index 0000000..50f0325 --- /dev/null +++ b/hosts/mystra/hardware-configuration.nix @@ -0,0 +1,25 @@ +# PLACEHOLDER - Generate on actual ThinkPad X220 hardware with: +# sudo nixos-generate-config --show-hardware-config > hosts/mystra/hardware-configuration.nix +# +# ThinkPad X220 Expected Hardware: +# - Intel Core i5-2520M (2nd gen Sandy Bridge) +# - Intel HD Graphics 3000 (i915 driver) +# - 4-8GB DDR3 RAM +# - SATA SSD/HDD storage + +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + + # Placeholder - replace with actual hardware scan results + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "sd_mod" ]; + boot.kernelModules = [ "kvm-intel" ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/PLACEHOLDER"; + fsType = "ext4"; + }; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3