From 930939172a4db9ba4768d3f1271b24af10fce306 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Thu, 28 May 2015 00:50:01 +0200 Subject: Config changes vor katara --- machines/profpatsch/katara.nix | 55 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 10 deletions(-) (limited to 'machines/profpatsch') diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix index f8ef5241..21a4e7a3 100644 --- a/machines/profpatsch/katara.nix +++ b/machines/profpatsch/katara.nix @@ -1,5 +1,9 @@ -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: +let +crypto = "http://hydra.cryp.to"; + +in { # Kernel boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "firewire_ohci" ]; @@ -11,6 +15,9 @@ boot.loader.grub.device = "/dev/sda"; boot.initrd.luks.devices = [ { device = "/dev/sda2"; name = "cryptroot"; } ]; + # Use this if you want the T400 wifi to work … + hardware.enableAllFirmware = true; + hardware.trackpoint = { enable = true; emulateWheel = true; @@ -29,6 +36,8 @@ }; nix.maxJobs = 2; + #nix.trustedBinaryCaches = [ crypto "https://hydra.nixos.org" ]; + #nix.binaryCaches = [ crypto ]; networking.hostName = "katara"; networking.networkmanager.enable = true; @@ -47,26 +56,38 @@ defaultLocale = "en_US.UTF-8"; }; + # List packages installed in system profile. To search by name, run: # -env -qaP | grep wget - environment.systemPackages = + environment.systemPackages = with pkgs; let + # hopefully temporary, but to make ghc package binaries work: + haskellngPackages = pkgs.haskell-ng.packages.ghc7101; haskellPkgs = with pkgs.haskellngPackages; [ - ghc - cabal-install - cabal2nix +# ghc +# cabal-install +# cabal2nix ]; - in with pkgs; [ + mailPkgs = [ + offlineimap + mutt-with-sidebar + msmtp + ]; + in [ ack curl + chromium + i3lock emacs nix-repl fish + lilyterm mkpasswd git tmux vim wget + xbindkeys zsh ] ++ haskellPkgs; @@ -80,12 +101,26 @@ services.printing.enable = true; # Enable the X11 windowing system. - services.xserver.enable = true; - services.xserver.layout = "de"; - services.xserver.xkbOptions = "eurosign:e"; + services.xserver = { + enable = true; + layout = "de"; + xkbVariant = "neo"; + xkbOptions = "altwin:swap_alt_win"; + serverFlagsSection = '' + Option "StandbyTime" "10" + Option "SuspendTime" "20" + Option "OffTime" "30" + Option "AutoRepeat" "35 250" + ''; + synaptics.enable = true; + synaptics.minSpeed = "0.5"; + synaptics.accelFactor = "0.01"; + videoDrivers = [ "intel" "vesa" ]; + }; # services.xserver.windowManager.xmonad.enable = true; - services.xserver.desktopManager.gnome3.enable = true; + services.xserver.windowManager.i3.enable = true; + # services.xserver.desktopManager.gnome3.enable = true; # redshift services.redshift = { -- cgit 1.4.1