Created
March 16, 2021 16:06
-
-
Save klautcomputing/f79fa096e3d8d3bd5bc5ccb0b34f59da to your computer and use it in GitHub Desktop.
X1 nano X troubles
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
# 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 systemd-boot EFI boot loader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.kernelPackages = pkgs.linuxPackages_latest; | |
boot.initrd.luks.devices = | |
{ | |
root = { | |
device = "/dev/disk/by-uuid/91f605f7-1d54-4b59-b47e-26b872561a18"; | |
preLVM = true; | |
allowDiscards = true; | |
}; | |
}; | |
# networking.hostName = "nixos"; # Define your hostname. | |
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
# Set your time zone. | |
# time.timeZone = "Europe/Amsterdam"; | |
# The global useDHCP flag is deprecated, therefore explicitly set to false here. | |
# Per-interface useDHCP will be mandatory in the future, so this generated config | |
# replicates the default behaviour. | |
networking = { | |
useDHCP = false; | |
interfaces.enp0s13f0u3.useDHCP = true; | |
interfaces.wlp0s20f3.useDHCP = true; | |
nameservers = ["8.8.8.8" "8.8.4.4"]; | |
extraHosts = '' | |
127.0.0.1 reddit.com | |
127.0.0.1 www.reddit.com | |
127.0.0.1 facebook.com | |
127.0.0.1 www.facebook.com | |
127.0.0.1 heise.de | |
127.0.0.1 www.heise.de | |
127.0.0.1 zeit.de | |
127.0.0.1 www.zeit.de | |
127.0.0.1 blog.fefe.de | |
127.0.0.1 taz.de | |
127.0.0.1 www.taz.de | |
''; | |
hostName = "xray"; | |
networkmanager.enable = true; | |
}; | |
# Configure network proxy if necessary | |
# networking.proxy.default = "http://user:password@proxy:port/"; | |
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | |
# Select internationalisation properties. | |
# i18n.defaultLocale = "en_US.UTF-8"; | |
# console = { | |
# font = "Lat2-Terminus16"; | |
# keyMap = "us"; | |
# }; | |
# Enable the X11 windowing system. | |
# services.xserver.enable = true; | |
services = { | |
udev.packages = [ | |
pkgs.android-udev-rules | |
]; | |
blueman.enable = true; | |
xserver = { | |
enable = true; | |
windowManager.i3 = { | |
enable = true; | |
extraPackages = with pkgs; [ | |
dmenu | |
i3status | |
i3lock | |
]; | |
}; | |
desktopManager.xterm.enable = false; | |
displayManager.defaultSession = "none+i3"; | |
videoDrivers = ["intel"]; | |
layout = "us,de"; | |
# swap caps and escape | |
xkbOptions = "caps:swapescape, eurosign:e, compose:menu, grp:alt_space_toggle"; | |
displayManager = { | |
sessionCommands = '' | |
xset b off | |
xset s noblank | |
xset s off | |
ulimit -c unlimited | |
''; | |
lightdm = { | |
enable = true; | |
}; | |
autoLogin = { | |
enable = true; | |
user = "leex"; | |
}; | |
}; | |
}; | |
printing = { | |
enable = true; | |
drivers = [ pkgs.gutenprint pkgs.hplip pkgs.epson-escpr ]; | |
}; | |
}; | |
# Configure keymap in X11 | |
# services.xserver.layout = "us"; | |
# services.xserver.xkbOptions = "eurosign:e"; | |
# Enable CUPS to print documents. | |
# services.printing.enable = true; | |
# Enable sound. | |
# sound.enable = true; | |
# hardware.pulseaudio.enable = true; | |
hardware = { | |
enableAllFirmware = true; | |
bluetooth = { | |
enable = true; | |
# extraConfig = " | |
# [General] | |
# Enable=Source,Sink,Media,Socket | |
# "; | |
}; | |
# x1 trackpoint | |
trackpoint = { | |
enable = true; | |
# middle mouse button scroll | |
emulateWheel = true; | |
}; | |
opengl = { | |
enable = true; | |
driSupport32Bit = true; | |
extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; | |
}; | |
pulseaudio = { | |
enable = true; | |
support32Bit = true; | |
extraModules = [ pkgs.pulseaudio-modules-bt ]; | |
package = pkgs.pulseaudioFull; | |
extraConfig = " | |
load-module module-switch-on-connect | |
"; | |
}; | |
# pulseaudio.support32Bit = true; | |
# opengl.driSupport32Bit = true; | |
# sane.enable = true; | |
cpu.intel.updateMicrocode = true; | |
}; | |
time.timeZone = "Canada/Mountain"; | |
powerManagement = { | |
enable = true; | |
powertop.enable = true; | |
}; | |
nixpkgs.config = { | |
allowUnfree = true; | |
}; | |
nix = { | |
gc = { | |
automatic = true; | |
dates = "monthly"; | |
options = "--delete-older-than 7d"; | |
}; | |
daemonIONiceLevel = 7; | |
daemonNiceLevel = 19; | |
}; | |
# Enable touchpad support (enabled default in most desktopManager). | |
# services.xserver.libinput.enable = true; | |
# Define a user account. Don't forget to set a password with ‘passwd’. | |
# users.users.jane = { | |
# isNormalUser = true; | |
# extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. | |
# }; | |
users.extraUsers.leex = { | |
isNormalUser = true; | |
extraGroups = ["wheel" "networkmanager" "vboxusers" "docker" "adbusers"]; | |
shell = pkgs.zsh; | |
openssh.authorizedKeys.keys = [ | |
]; | |
}; | |
# List packages installed in system profile. To search, run: | |
# $ nix search wget | |
# environment.systemPackages = with pkgs; [ | |
# wget vim | |
# firefox | |
# ]; | |
environment = { | |
pathsToLink = [ "/share/zsh" ]; | |
systemPackages = with pkgs; [ | |
# system tools | |
pciutils usbutils hdparm ntfs3g lm_sensors | |
xorg.xkill psmisc wirelesstools pmount | |
acpi | |
# defaults | |
wget curl htop atop netcat nmap calc tree inotify-tools unzip | |
]; | |
sessionVariables = { | |
SUDO_EDITOR = "vim"; | |
EDITOR = "vim"; | |
BROWSER = "firefox"; | |
}; | |
}; | |
# Some programs need SUID wrappers, can be configured further or are | |
# started in user sessions. | |
# programs.mtr.enable = true; | |
# programs.gnupg.agent = { | |
# enable = true; | |
# enableSSHSupport = true; | |
# }; | |
# List services that you want to enable: | |
# Enable the OpenSSH daemon. | |
# services.openssh.enable = true; | |
# Open ports in the firewall. | |
# networking.firewall.allowedTCPPorts = [ ... ]; | |
# networking.firewall.allowedUDPPorts = [ ... ]; | |
# Or disable the firewall altogether. | |
# networking.firewall.enable = false; | |
# This value determines the NixOS release from which the default | |
# settings for stateful data, like file locations and database versions | |
# on your system were taken. It‘s perfectly fine and recommended to leave | |
# this value at the release version of the first install of this system. | |
# Before changing this value read the documentation for this option | |
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | |
system.stateVersion = "20.09"; # Did you read the comment? | |
system.autoUpgrade.enable = true; | |
} |
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
[ 1556.352] | |
X.Org X Server 1.20.10 | |
X Protocol Version 11, Revision 0 | |
[ 1556.352] Build Operating System: Linux 5.4.100 x86_64 | |
[ 1556.352] Current Operating System: Linux xray 5.4.104 #1-NixOS SMP Tue Mar 9 10:09:39 UTC 2021 x86_64 | |
[ 1556.352] Kernel command line: initrd=\efi\nixos\n15r50d8y6rcj1rrfffl3ijcrwk3gfyd-initrd-linux-5.4.104-initrd.efi systemConfig=/nix/store/fanhgv441c77jj7gx05a18cqmz4b3xqy-nixos-system-xray-20.09.3456.bba2f2bdc4d init=/nix/store/fanhgv441c77jj7gx05a18cqmz4b3xqy-nixos-system-xray-20.09.3456.bba2f2bdc4d/init loglevel=4 | |
[ 1556.352] Build Date: 01 December 2020 04:33:29PM | |
[ 1556.352] | |
[ 1556.352] Current version of pixman: 0.38.4 | |
[ 1556.352] Before reporting problems, check http://wiki.x.org | |
to make sure that you have the latest version. | |
[ 1556.352] Markers: (--) probed, (**) from config file, (==) default setting, | |
(++) from command line, (!!) notice, (II) informational, | |
(WW) warning, (EE) error, (NI) not implemented, (??) unknown. | |
[ 1556.352] (++) Log file: "/var/log/X.0.log", Time: Tue Mar 16 09:55:53 2021 | |
[ 1556.352] (++) Using config file: "/nix/store/b27js1qfh6pg19ymala4fx8q9iz8f6jr-xserver.conf" | |
[ 1556.352] (==) Using config directory: "/etc/X11/xorg.conf.d" | |
[ 1556.352] (==) Using system config directory "/nix/store/2m8pdgh7v3j1jn277846pgr1swp0ymxl-xorg-server-1.20.10/share/X11/xorg.conf.d" | |
[ 1556.352] (==) ServerLayout "Layout[all]" | |
[ 1556.352] (**) |-->Screen "Screen-intel[0]" (0) | |
[ 1556.352] (**) | |-->Monitor "<default monitor>" | |
[ 1556.353] (**) | |-->Device "Device-intel[0]" | |
[ 1556.353] (==) No monitor specified for screen "Screen-intel[0]". | |
Using a default monitor configuration. | |
[ 1556.353] (**) Option "DontZap" "on" | |
[ 1556.353] (**) Option "AllowMouseOpenFail" "on" | |
[ 1556.353] (==) Automatically adding devices | |
[ 1556.353] (==) Automatically enabling devices | |
[ 1556.353] (==) Automatically adding GPU devices | |
[ 1556.353] (==) Max clients allowed: 256, resource mask: 0x1fffff | |
[ 1556.353] (**) FontPath set to: | |
/nix/store/rifrcwvvik8dp5kwlg7fd5aasf8sn030-font-bh-lucidatypewriter-100dpi-1.0.3/lib/X11/fonts/100dpi, | |
/nix/store/hdi9qg6nyamj97j6z9n87cnksz2x89km-font-bh-lucidatypewriter-75dpi-1.0.3/lib/X11/fonts/75dpi, | |
/nix/store/hgy3dg9cr6w7cbgmp0f82xrbdwwqnz53-font-bh-100dpi-1.0.3/lib/X11/fonts/100dpi, | |
/nix/store/iqz617a3295s5fl4qknb2af1r3zh9dis-font-misc-misc-1.1.2/lib/X11/fonts/misc, | |
/nix/store/bm3dk5qjhqny28czd29bzjwc5gzzfbm3-font-cursor-misc-1.0.3/lib/X11/fonts/misc, | |
/nix/store/bclvc9l2ccq037gyzxyc096zp8h689pv-unifont-13.0.01/share/fonts, | |
/nix/store/ap1db9gm81vcxp66l5zrw3lv240c9wgg-font-adobe-100dpi-1.0.3/lib/X11/fonts/100dpi, | |
/nix/store/41yjjcf2dinzk1dihm0dkxnmchyksgk5-font-adobe-75dpi-1.0.3/lib/X11/fonts/75dpi | |
[ 1556.353] (**) ModulePath set to "/nix/store/apvc8npzqs6018zrlkn5b277zr5dc5wh-xf86-video-intel-2019-12-09/lib,/nix/store/apvc8npzqs6018zrlkn5b277zr5dc5wh-xf86-video-intel-2019-12-09/lib/xorg/modules/drivers,/nix/store/2m8pdgh7v3j1jn277846pgr1swp0ymxl-xorg-server-1.20.10/lib/xorg/modules,/nix/store/2m8pdgh7v3j1jn277846pgr1swp0ymxl-xorg-server-1.20.10/lib/xorg/modules/drivers,/nix/store/2m8pdgh7v3j1jn277846pgr1swp0ymxl-xorg-server-1.20.10/lib/xorg/modules/extensions,/nix/store/p99fqa63s62a9mwpdjcxzn1b2r57p1lh-xf86-input-evdev-2.10.6/lib/xorg/modules/input" | |
[ 1556.353] (II) The server relies on udev to provide the list of input devices. | |
If no devices become available, reconfigure udev or disable AutoAddDevices. | |
[ 1556.353] (II) Loader magic: 0x625d40 | |
[ 1556.353] (II) Module ABI versions: | |
[ 1556.353] X.Org ANSI C Emulation: 0.4 | |
[ 1556.353] X.Org Video Driver: 24.1 | |
[ 1556.353] X.Org XInput driver : 24.1 | |
[ 1556.353] X.Org Server Extension : 10.0 | |
[ 1556.353] (++) using VT number 7 | |
[ 1556.353] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration | |
[ 1556.355] (--) PCI:*(0@0:2:0) 8086:9a40:17aa:22c7 rev 1, Mem @ 0x603c000000/16777216, 0x4000000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/131072 | |
[ 1556.355] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) | |
[ 1556.355] (II) "glx" will be loaded by default. | |
[ 1556.355] (II) LoadModule: "glx" | |
[ 1556.355] (II) Loading /nix/store/2m8pdgh7v3j1jn277846pgr1swp0ymxl-xorg-server-1.20.10/lib/xorg/modules/extensions/libglx.so | |
[ 1556.356] (II) Module glx: vendor="X.Org Foundation" | |
[ 1556.356] compiled for 1.20.10, module version = 1.0.0 | |
[ 1556.356] ABI class: X.Org Server Extension, version 10.0 | |
[ 1556.356] (II) LoadModule: "intel" | |
[ 1556.356] (II) Loading /nix/store/apvc8npzqs6018zrlkn5b277zr5dc5wh-xf86-video-intel-2019-12-09/lib/xorg/modules/drivers/intel_drv.so | |
[ 1556.357] (II) Module intel: vendor="X.Org Foundation" | |
[ 1556.357] compiled for 1.20.10, module version = 2.99.917 | |
[ 1556.357] Module class: X.Org Video Driver | |
[ 1556.357] ABI class: X.Org Video Driver, version 24.1 | |
[ 1556.357] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets: | |
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, | |
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, | |
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, | |
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43 | |
[ 1556.357] (II) intel: Driver for Intel(R) HD Graphics | |
[ 1556.357] (II) intel: Driver for Intel(R) Iris(TM) Graphics | |
[ 1556.357] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics | |
[ 1558.381] intel: waited 2020 ms for i915.ko driver to load | |
[ 1558.383] (EE) No devices detected. | |
[ 1558.383] (EE) | |
Fatal server error: | |
[ 1558.383] (EE) no screens found(EE) | |
[ 1558.383] (EE) | |
Please consult the The X.Org Foundation support | |
at http://wiki.x.org | |
for help. | |
[ 1558.383] (EE) Please also check the log file at "/var/log/X.0.log" for additional information. | |
[ 1558.383] (EE) | |
[ 1558.387] (EE) Server terminated with error (1). Closing log file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment