Created
April 21, 2015 17:21
-
-
Save astahfrom/5a7421c32fb7a4c5035c to your computer and use it in GitHub Desktop.
NixOS configuration.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
imports = [ ./hardware-configuration.nix ]; | |
boot.kernelModules = [ "applesmc" ]; | |
boot.cleanTmpDir = true; | |
boot.loader = { | |
gummiboot.enable = true; | |
efi.canTouchEfiVariables = true; | |
grub.device = "/dev/sda"; | |
}; | |
time.timeZone = "Europe/Copenhagen"; | |
networking.hostName = "from-macbook-nixos"; | |
networking.hostId = "dd1d433a"; | |
networking.networkmanager.enable = true; | |
services.dbus.enable = true; | |
i18n = { | |
consoleFont = "lat9w-16"; | |
consoleKeyMap = "colemak/en-latin9"; | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
nix.binaryCaches = [ http://cache.nixos.org http://hydra.nixos.org ]; | |
nixpkgs.config = { | |
allowUnfree = true; | |
firefox.icedtea = true; | |
packageOverrides = pkgs: { | |
jre = pkgs.oraclejre8; | |
jdk = pkgs.oraclejdk8; | |
}; | |
}; | |
environment.systemPackages = with pkgs; [ | |
bluez5 | |
# clang | |
dropbox | |
(emacs.override { gtk = gtk3; }) | |
firefoxWrapper | |
gcc49 | |
gitFull | |
oraclejdk8 | |
silver-searcher | |
SDL2 | |
valgrind | |
vim | |
wget | |
xlibs.xev | |
xlibs.xmodmap | |
(haskellngPackages.ghcWithPackages (p : with p; [ | |
data-ordlist QuickCheck | |
cabal2nix | |
cabal-install | |
ghc | |
ghc-core | |
hlint | |
# idris | |
pandoc | |
pointfree | |
pointful | |
stylish-haskell | |
])) | |
]; | |
programs.light.enable = true; | |
services.xserver = { | |
enable = true; | |
layout = "us"; | |
xkbVariant = "colemak"; | |
xkbOptions = "eurosign:e"; | |
vaapiDrivers = [ pkgs.vaapiIntel pkgs.vaapiVdpau ]; | |
displayManager.gdm.enable = true; | |
displayManager.desktopManagerHandlesLidAndPower = false; | |
desktopManager.gnome3.enable = true; | |
synaptics = { | |
enable = true; | |
# dev = "/dev/input/event*"; | |
tapButtons = true; | |
twoFingerScroll = true; | |
horizontalScroll = true; | |
vertEdgeScroll = false; | |
accelFactor = "0.00075"; | |
buttonsMap = [1 3 2]; | |
fingersMap = [1 3 2]; | |
additionalOptions = '' | |
Option "VertScrollDelta" "-130" | |
Option "HorizScrollDelta" "-130" | |
''; | |
}; | |
multitouch.enable = true; | |
multitouch.invertScroll = true; | |
}; | |
services.gnome3.gnome-keyring.enable = true; | |
fonts = { | |
enableFontDir = true; | |
enableGhostscriptFonts = true; | |
fonts = with pkgs; [ | |
corefonts | |
inconsolata | |
ubuntu_font_family | |
terminus_font | |
liberation_ttf | |
]; | |
}; | |
services.upower.enable = false; | |
hardware.bluetooth.enable = true; | |
services.redshift = { | |
enable = true; | |
latitude = "55.6468180"; | |
longitude = "12.0577930"; | |
}; | |
users.extraUsers.andreasfrom = { | |
isNormalUser = true; | |
uid = 1000; | |
home = "/home/andreasfrom"; | |
description = "Andreas From"; | |
extraGroups = [ "wheel" "audio" "networkmanager" ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment