diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-04-04 22:57:40 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-04-04 22:57:40 +0200 |
| commit | c734b8c107684d98454bd8e237cfa11c00c8b392 (patch) | |
| tree | 40d7aed8bd92e4538a148d86d7a4db4416094989 | |
| parent | ed4a6c38185fea741a77e77a4d21f90fb4865e17 (diff) | |
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
| -rw-r--r-- | flake.nix | 1 | ||||
| -rw-r--r-- | hosts/mystra/configuration.nix | 7 | ||||
| -rw-r--r-- | hosts/mystra/hardware-configuration.nix | 25 |
3 files changed, 33 insertions, 0 deletions
@@ -98,6 +98,7 @@ nixosConfigurations = { kronos = mkSystem "kronos"; herra = mkSystem "herra"; + mystra = mkSystem "mystra"; }; }; } 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; +} |
