about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-07-25 16:10:56 +0200
committeraszlig <aszlig@redmoonstudios.org>2014-07-25 16:10:56 +0200
commit88d4697fada799ca9c8a56ee244349744c336145 (patch)
tree27c167118850cfcd64b19a216e1116aa8b01006a /machines
parent6552bb1fa4796dbdb0a5537d21ffb9297857bd90 (diff)
machines: Add arilou, an USB pendrive machine.
I was keeping this one around for some time, but it's really time to
finally add it to my nixconf repository so Hydra builds the machine as
well.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines')
-rw-r--r--machines/arilou.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/machines/arilou.nix b/machines/arilou.nix
new file mode 100644
index 00000000..0cb83031
--- /dev/null
+++ b/machines/arilou.nix
@@ -0,0 +1,47 @@
+{ config, pkgs, ... }:
+
+with pkgs.lib;
+
+let
+  rootUUID = "e9c95c74-e4cf-41f6-bb45-baf8dd579217";
+  swapUUID = "4d172959-5cfd-4164-a46e-fa7be0dfd03a";
+  diskID = "usb-Lexar_USB_Flash_Drive_201303211246293590E4-0:0";
+in {
+  imports = [
+    ../common.nix
+    <nixpkgs/nixos/modules/profiles/all-hardware.nix>
+  ];
+
+  boot = {
+    kernelPackages = pkgs.linuxPackages_latest;
+    initrd.kernelModules = [ "fbcon" "usb_storage" ];
+    loader.grub.device = "/dev/disk/by-id/${diskID}";
+    loader.grub.memtest86.enable = true;
+  };
+
+  networking.hostName = "arilou";
+  networking.wireless.enable = true;
+  networking.enableB43Firmware = true;
+
+  fileSystems."/".device = "/dev/disk/by-uuid/${rootUUID}";
+  fileSystems."/".fsType = "btrfs";
+  fileSystems."/".options = concatStringsSep "," [
+    "ssd"
+    "space_cache"
+    "compress-force=zlib"
+    "noatime"
+  ];
+
+  fileSystems."/tmp".device = "none";
+  fileSystems."/tmp".fsType = "tmpfs";
+  fileSystems."/tmp".options = "nosuid,nodev,relatime";
+
+  swapDevices = singleton {
+    device = "/dev/disk/by-uuid/${swapUUID}";
+  };
+
+  services.openssh.enable = mkForce false;
+  services.xserver.videoDrivers = [ "intel" "ati" "nouveau" ];
+
+  nix.maxJobs = mkForce 2;
+}