Created
May 25, 2015 00:26
-
-
Save gilligan/c111210f6e357471dd5d to your computer and use it in GitHub Desktop.
xorg and nixos configuration files
This file contains hidden or 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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
# Use the gummiboot efi boot loader. | |
boot.loader.gummiboot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.loader.gummiboot.timeout = 5; | |
time.timeZone = "Europe/Berlin"; | |
fonts.enableCoreFonts = true; | |
fonts.fonts = with pkgs; [ | |
corefonts | |
liberation_ttf | |
dejavu_fonts | |
terminus_font | |
ubuntu_font_family | |
gentium | |
]; | |
nixpkgs.config.allowUnfree = true; | |
nix.binaryCaches = [ http://cache.nixos.org http://hydra.nixos.org ]; | |
# networking.hostName = "nixos"; # Define your hostname. | |
networking.hostId = "3593dc09"; | |
networking.hostName = "nixoslappy"; | |
networking.wireless.enable = true; # Enables wireless. | |
hardware.bluetooth.enable = true; | |
services.upower.enable = true; | |
services.nixosManual.showManual = true; | |
# Select internationalisation properties. | |
# i18n = { | |
# consoleFont = "lat9w-16"; | |
# consoleKeyMap = "us"; | |
# defaultLocale = "en_US.UTF-8"; | |
# }; | |
# List packages installed in system profile. To search by name, run: | |
# $ nix-env -qaP | grep wget | |
environment.systemPackages = with pkgs; [ | |
wget | |
vim | |
python | |
ruby | |
chromium | |
acpi | |
gitFull | |
tmux | |
awesome | |
]; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
services.openssh.enable = true; | |
# Enable CUPS to print documents. | |
# services.printing.enable = true; | |
# Enable the X11 windowing system. | |
# services.xserver.xkbOptions = "eurosign:e"; | |
services.xserver = { | |
enable = true; | |
layout = "us"; | |
xkbVariant = "mac"; | |
xkbOptions = "terminate:ctrl_alt_bksp, ctrl:nocaps"; | |
videoDrivers = [ "intel" ]; | |
desktopManager.default = "none"; | |
desktopManager.xterm.enable = false; | |
displayManager = { | |
lightdm.enable = true; | |
desktopManagerHandlesLidAndPower = false; | |
}; | |
windowManager.default = "awesome"; | |
windowManager.awesome.enable = true; | |
synaptics.additionalOptions = '' | |
Option "VertScrollDelta "-100" | |
Option "HorizScrollDelta "-100" | |
''; | |
synaptics.buttonsMap = [ 1 3 2 ]; | |
synaptics.enable = true; | |
synaptics.tapButtons = false; | |
synaptics.fingersMap = [ 0 0 0 ]; | |
synaptics.twoFingerScroll = true; | |
synaptics.vertEdgeScroll = false; | |
}; | |
# Enable the KDE Desktop Environment. | |
# services.xserver.displayManager.kdm.enable = true; | |
# services.xserver.desktopManager.kde4.enable = true; | |
security.sudo.enable = true; | |
# security.sudo.wheelNeedsPassword = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
users.mutableUsers = true; | |
users.extraUsers.gilligan = { | |
group = "users"; | |
extraGroups = [ "wheel" ]; | |
createHome = true; | |
isNormalUser = true; | |
uid = 1000; | |
shell = "/run/current-system/sw/bin/zsh"; | |
}; | |
programs.zsh.enable = true; | |
} |
This file contains hidden or 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
# Do not modify this file! It was generated by ‘nixos-generate-config’ | |
# and may be overwritten by future invocations. Please make changes | |
# to /etc/nixos/configuration.nix instead. | |
{ config, lib, pkgs, ... }: | |
{ | |
imports = | |
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> | |
]; | |
boot.initrd.availableKernelModules = [ "xhci_hcd" "ahci" "usbhid" "usb_storage" ]; | |
boot.kernelModules = [ "kvm-intel" "wl" ]; | |
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; | |
fileSystems."/" = | |
{ device = "/dev/disk/by-uuid/e62e432e-eea2-4771-9bc5-8bb3d6cf13f5"; | |
fsType = "ext4"; | |
}; | |
fileSystems."/boot" = | |
{ device = "/dev/disk/by-uuid/67E3-17ED"; | |
fsType = "vfat"; | |
}; | |
swapDevices = | |
[ { device = "/dev/disk/by-uuid/4a2df01d-e104-4b7f-8464-d8a20c3d82da"; } | |
]; | |
nix.maxJobs = 8; | |
} |
This file contains hidden or 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
[ 165.023] | |
X.Org X Server 1.16.4 | |
Release Date: 2014-12-20 | |
[ 165.023] X Protocol Version 11, Revision 0 | |
[ 165.023] Build Operating System: Linux 3.12.27 x86_64 | |
[ 165.023] Current Operating System: Linux nixoslappy 3.14.34 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 | |
[ 165.023] Kernel command line: initrd=\efi\nixos\pnhjgx3v9pkxyhqhjcxh62l2axwnwd3g-initrd-initrd.efi systemConfig=/nix/store/siybfc2y9prrwk6bab8bz8yh0460axwb-nixos-14.12.496.5f7d374 init=/nix/store/siybfc2y9prrwk6bab8bz8yh0460axwb-nixos-14.12.496.5f7d374/init loglevel=4 | |
[ 165.023] Build Date: 01 March 2015 04:27:12AM | |
[ 165.023] | |
[ 165.023] Current version of pixman: 0.32.6 | |
[ 165.023] Before reporting problems, check http://wiki.x.org | |
to make sure that you have the latest version. | |
[ 165.023] Markers: (--) probed, (**) from config file, (==) default setting, | |
(++) from command line, (!!) notice, (II) informational, | |
(WW) warning, (EE) error, (NI) not implemented, (??) unknown. | |
[ 165.023] (==) Log file: "/home/gilligan/.local/share/xorg/Xorg.0.log", Time: Mon May 25 02:07:58 2015 | |
[ 165.024] (==) Using system config directory "/nix/store/byfwj18c0vqv7z23grqjb4zdjkcdfwp5-xorg-server-1.16.4/share/X11/xorg.conf.d" | |
[ 165.024] (==) No Layout section. Using the first Screen section. | |
[ 165.024] (==) No screen section available. Using defaults. | |
[ 165.024] (**) |-->Screen "Default Screen Section" (0) | |
[ 165.024] (**) | |-->Monitor "<default monitor>" | |
[ 165.024] (==) No monitor specified for screen "Default Screen Section". | |
Using a default monitor configuration. | |
[ 165.024] (==) Automatically adding devices | |
[ 165.024] (==) Automatically enabling devices | |
[ 165.024] (==) Automatically adding GPU devices | |
[ 165.024] (==) FontPath set to: | |
[ 165.024] (==) ModulePath set to "/nix/store/byfwj18c0vqv7z23grqjb4zdjkcdfwp5-xorg-server-1.16.4/lib/xorg/modules" | |
[ 165.024] (II) The server relies on udev to provide the list of input devices. | |
If no devices become available, reconfigure udev or disable AutoAddDevices. | |
[ 165.024] (II) Loader magic: 0x80d9c0 | |
[ 165.024] (II) Module ABI versions: | |
[ 165.024] X.Org ANSI C Emulation: 0.4 | |
[ 165.024] X.Org Video Driver: 18.0 | |
[ 165.024] X.Org XInput driver : 21.0 | |
[ 165.024] X.Org Server Extension : 8.0 | |
[ 165.025] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_33 | |
[ 165.025] (II) xfree86: Adding drm device (/dev/dri/card0) | |
[ 165.025] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0 | |
[ 165.026] (--) PCI:*(0:0:2:0) 8086:0d26:106b:012e rev 8, Mem @ 0xa0000000/4194304, 0x90000000/268435456, I/O @ 0x00001000/64 | |
[ 165.026] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) | |
[ 165.026] (II) LoadModule: "glx" | |
[ 165.027] (II) Loading /nix/store/byfwj18c0vqv7z23grqjb4zdjkcdfwp5-xorg-server-1.16.4/lib/xorg/modules/extensions/libglx.so | |
[ 165.029] (II) Module glx: vendor="X.Org Foundation" | |
[ 165.029] compiled for 1.16.4, module version = 1.0.0 | |
[ 165.029] ABI class: X.Org Server Extension, version 8.0 | |
[ 165.029] (==) AIGLX enabled | |
[ 165.029] (==) Matched intel as autoconfigured driver 0 | |
[ 165.029] (==) Matched intel as autoconfigured driver 1 | |
[ 165.029] (==) Matched modesetting as autoconfigured driver 2 | |
[ 165.029] (==) Matched fbdev as autoconfigured driver 3 | |
[ 165.029] (==) Matched vesa as autoconfigured driver 4 | |
[ 165.029] (==) Assigned the driver to the xf86ConfigLayout | |
[ 165.029] (II) LoadModule: "intel" | |
[ 165.030] (WW) Warning, couldn't open module intel | |
[ 165.030] (II) UnloadModule: "intel" | |
[ 165.030] (II) Unloading intel | |
[ 165.030] (EE) Failed to load module "intel" (module does not exist, 0) | |
[ 165.030] (II) LoadModule: "modesetting" | |
[ 165.030] (WW) Warning, couldn't open module modesetting | |
[ 165.030] (II) UnloadModule: "modesetting" | |
[ 165.030] (II) Unloading modesetting | |
[ 165.030] (EE) Failed to load module "modesetting" (module does not exist, 0) | |
[ 165.030] (II) LoadModule: "fbdev" | |
[ 165.030] (WW) Warning, couldn't open module fbdev | |
[ 165.030] (II) UnloadModule: "fbdev" | |
[ 165.030] (II) Unloading fbdev | |
[ 165.030] (EE) Failed to load module "fbdev" (module does not exist, 0) | |
[ 165.030] (II) LoadModule: "vesa" | |
[ 165.030] (WW) Warning, couldn't open module vesa | |
[ 165.030] (II) UnloadModule: "vesa" | |
[ 165.030] (II) Unloading vesa | |
[ 165.030] (EE) Failed to load module "vesa" (module does not exist, 0) | |
[ 165.030] (EE) No drivers available. | |
[ 165.030] (EE) | |
Fatal server error: | |
[ 165.030] (EE) no screens found(EE) | |
[ 165.030] (EE) | |
Please consult the The X.Org Foundation support | |
at http://wiki.x.org | |
for help. | |
[ 165.030] (EE) Please also check the log file at "/home/gilligan/.local/share/xorg/Xorg.0.log" for additional information. | |
[ 165.030] (EE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the same exact issue on a mid 2012 MBP 15" retina. Did specifying videoDrivers = [ "Intel" ]; Solve the problem?