about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorOpenlab Labtop <kontakt@openlab-augsburg.de>2016-01-16 20:30:43 +0000
committerOpenlab Labtop <kontakt@openlab-augsburg.de>2016-01-16 20:32:40 +0000
commitd99fd1ba860dd513508a7460bf139e9ee990a5d3 (patch)
treef80596706c5269191ac8e001b2af6f3960f768b2 /machines
parentc0d8cedd6c999350496c2afe2fd32b30c3d07c8e (diff)
thinkpad firmware
Diffstat (limited to 'machines')
-rw-r--r--machines/labnet/labtop.nix50
1 files changed, 38 insertions, 12 deletions
diff --git a/machines/labnet/labtop.nix b/machines/labnet/labtop.nix
index db74a1e1..c36bca8a 100644
--- a/machines/labnet/labtop.nix
+++ b/machines/labnet/labtop.nix
@@ -1,6 +1,28 @@
 { pkgs, lib, ... }:
 
 let
+  greybird = pkgs.stdenv.mkDerivation {
+    name = "greybird-xfce-theme";
+
+    src = pkgs.fetchFromGitHub {
+      repo = "Greybird";
+      owner = "shimmerproject";
+      rev = "61ec18d22780aa87998381599c941e0cf4f7bfb5";
+      sha256 = "03h8hba4lfp337a4drylcplrbggry9gz8dq1f3gjy25fhqkgvq05";
+    };
+
+    phases = [ "unpackPhase" "installPhase" ];
+
+    installPhase = ''
+      mkdir -p "$out/share/themes/Greybird" \
+               "$out/share/themes/Greybird-compact/xfwm4"
+      cp -vrt "$out/share/themes/Greybird" \
+        gtk-* metacity-1 unity xfce-notify-4.0 xfwm4
+      cp -vrt "$out/share/themes/Greybird-compact/xfwm4" \
+        xfwm4_compact/*
+    '';
+  };
+
   modulesPath = "${import ../../nixpkgs-path.nix}/nixos/modules";
 
 in {
@@ -24,6 +46,8 @@ in {
     fsType = "ext4";
   };
 
+  vuizvui.hardware.thinkpad.enable = true;
+
   environment.systemPackages = with pkgs; [
     #repetierhost <- TODO
     ack
@@ -62,19 +86,18 @@ in {
     displayManager.auto.enable = true;
     displayManager.auto.user = "openlab";
     desktopManager.xfce.enable = true;
-
-    synaptics.enable = true;
-    synaptics.minSpeed = "0.5";
-    synaptics.accelFactor = "0.01";
+    # synaptics.enable = true;
+    # synaptics.minSpeed = "0.5";
+    # synaptics.accelFactor = "0.01";
   };
 
 
-  hardware.trackpoint = {
-    enable = true;
-    emulateWheel = true;
-    sensitivity = 130;
-    speed = 350;
-  };
+  # hardware.trackpoint = {
+  #   enable = true;
+  #   emulateWheel = true;
+  #   sensitivity = 130;
+  #   speed = 350;
+  # };
 
 
   services.openssh.enable = true;
@@ -82,8 +105,11 @@ in {
   networking.networkmanager.enable = true;
   networking.enableIntel3945ABGFirmware = true;
   networking.hostName = "labtop";
-  networking.firewall.allowedTCPPorts = [ 1337 2342 ];
-  networking.firewall.allowPing = true;
+  networking.firewall = {
+    allowedTCPPorts = [ 1337 2342 ];
+    allowedTCPPortRanges = [ { from = 8000; to = 8005 } ];
+    allowPing = true;
+  };
 
   nix.maxJobs = 2;