From 88d4697fada799ca9c8a56ee244349744c336145 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 25 Jul 2014 16:10:56 +0200 Subject: 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 --- machines/arilou.nix | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 machines/arilou.nix (limited to 'machines') 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 + + ]; + + 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; +} -- cgit 1.4.1