summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/omo/hw/tsp.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-14 09:58:00 +0200
committerlassulus <lass@blue.r>2018-09-14 09:58:00 +0200
commitfcaafab1f12a524198fce909743056d2c5319c9a (patch)
tree157334b9037040d2bafb969daee7771bdb5f9d57 /makefu/1systems/omo/hw/tsp.nix
parent96ea1311d698ec30ab14af0f0169367fc1e6260b (diff)
parentbdf8d7a94d71e82a980392633f84842eb4084291 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/omo/hw/tsp.nix')
-rw-r--r--makefu/1systems/omo/hw/tsp.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/makefu/1systems/omo/hw/tsp.nix b/makefu/1systems/omo/hw/tsp.nix
new file mode 100644
index 000000000..4af0d73fc
--- /dev/null
+++ b/makefu/1systems/omo/hw/tsp.nix
@@ -0,0 +1,32 @@
+{ pkgs, ... }:
+with builtins;
+let
+ disko = import (builtins.fetchGit {
+ url = https://cgit.lassul.us/disko/;
+ rev = "9c9b62e15e4ac11d4379e66b974f1389daf939fe";
+ });
+ cfg = fromJSON (readFile ../../hardware/tsp-disk.json);
+ primaryInterface = "enp1s0";
+ rootDisk = "/dev/sda"; # TODO same as disko uses
+in {
+ imports = [
+ (disko.config cfg)
+ ];
+ makefu.server.primary-itf = primaryInterface;
+ boot = {
+ loader.grub.device = rootDisk;
+
+ initrd.availableKernelModules = [
+ "ahci"
+ "ohci_pci"
+ "ehci_pci"
+ "pata_atiixp"
+ "firewire_ohci"
+ "usb_storage"
+ "usbhid"
+ ];
+
+ kernelModules = [ "kvm-intel" ];
+ };
+
+}