about summary refs log tree commit diff
path: root/machines/aszlig/arilou.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-03-18 01:37:41 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-03-18 01:42:55 +0100
commit2b8256b060f1c2fd635e92749d167d9a57268212 (patch)
tree211ae22d25aaa9cecc6a7d261737f53335cc1e7b /machines/aszlig/arilou.nix
parent174317d1489b72687df8559a9cc02ca068e2ba0c (diff)
machines: Move own machines into machines/aszlig.
Introduces callMachine in machines/default.nix, which returns an
attribute set containing the (input) configuration and also a build
attribute containing the output configuration and thus also the builds.

However, we still have references to ../../common-workstation.nix which
we need to refactor very soon.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/aszlig/arilou.nix')
-rw-r--r--machines/aszlig/arilou.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/machines/aszlig/arilou.nix b/machines/aszlig/arilou.nix
new file mode 100644
index 00000000..093934b5
--- /dev/null
+++ b/machines/aszlig/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-workstation.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;
+}