From a72d092a118dbe13b9da609d43b01d06b9f7ab54 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 22 Sep 2019 11:40:48 +0200 Subject: l: add hilum.r --- lass/1systems/hilum/config.nix | 28 ++++++++++++++++++++++++++++ lass/1systems/hilum/physical.nix | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 lass/1systems/hilum/config.nix create mode 100644 lass/1systems/hilum/physical.nix (limited to 'lass/1systems/hilum') diff --git a/lass/1systems/hilum/config.nix b/lass/1systems/hilum/config.nix new file mode 100644 index 000000000..998fa1478 --- /dev/null +++ b/lass/1systems/hilum/config.nix @@ -0,0 +1,28 @@ +{ config, ... }: +{ + imports = [ + + + + + + + + + + ]; + + krebs.build.host = config.krebs.hosts.hilum; + + boot.loader.grub.extraEntries = '' + menuentry "grml" { + iso_path=/isos/grml.iso + export iso_path + search --set=root --file $iso_path + loopback loop $iso_path + root=(loop) + configfile /boot/grub/loopback.cfg + loopback --delete loop + } + ''; +} diff --git a/lass/1systems/hilum/physical.nix b/lass/1systems/hilum/physical.nix new file mode 100644 index 000000000..f8bab57d6 --- /dev/null +++ b/lass/1systems/hilum/physical.nix @@ -0,0 +1,35 @@ +{ lib, pkgs, ... }: + +{ + imports = [ + ./config.nix + + ]; + + boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ "dm-snapshot" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + boot.loader.grub.enable = true; + boot.loader.grub.efiSupport = true; + boot.loader.grub.device = "/dev/disk/by-id/usb-General_USB_Flash_Disk_0374116060006128-0:0"; + boot.loader.grub.efiInstallAsRemovable = true; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/6db29cdd-ff64-496d-b541-5f1616665dc2"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."usb_nix".device = "/dev/disk/by-uuid/3c8ab3af-57fb-4564-9e27-b2766404f5d4"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/2B9E-5131"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +} -- cgit v1.2.3