[Nix-dev] Problem starting X11

martin automaton8 at gmail.com
Sat Aug 23 13:46:23 CEST 2014


Hi

I'm a new nixos user and I have some trouble getting X11 started. I run 
nixos from qemu/kvm. I installed according to the instructions in the 
manual and everything went fine. I can startup to the console without 
problems. However the display-manager.service refuses to start. I'm 
using qxl for graphics, not sure if that could be the problem.

Here is my /etc/nixos/configuration.nix:
==============================
# 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 GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/vda";

networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless.

# Select internationalisation properties.
i18n = {
consoleFont = "lat9w-16";
consoleKeyMap = "sv-latin1";
defaultLocale = "en_US.UTF-8";
};

# List packages installed in system profile. To search by name, run:
# -env -qaP | grep wget
environment.systemPackages = with pkgs; [
wget rsync screen emacs
];

# 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.enable = true;
services.xserver.layout = "se";
services.xserver.xkbOptions = "eurosign:e";

# Enable the KDE Desktop Environment.
# services.xserver.displayManager.kdm.enable = true;
services.xserver.desktopManager.xfce.enable = true;
services.xserver.displayManager.slim.enable = true;
services.xserver.autorun = true;

# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.guest = {
name = "martin";
group = "users";
uid = 1000;
createHome = true;
home = "/home/martin";
shell = "/run/current-system/sw/bin/bash";
extraGroups = [ "wheel" ];
};

}

and here is the output from: systemctl status display-manager.service
===========================================
display-manager.service - X11 Server
Loaded: loaded 
(/nix/store/6n3drdrhz7zzv0rlwhbi5fwxcmmfjlvd-unit/display-manager.service)
Active: failed (Result: start-limit) since Sat 2014-08-23 13:23:14 CEST; 
2min 33s left
Process: 1469 
ExecStart=/nix/store/6p6nigcxr24l1bi9v81mzh83lp9vdqds-unit-script/bin/display-manager-start 
(code=exited, status=1/FAILURE)
Process: 1465 
ExecStartPre=/nix/store/c1qnx60gsvlqpmiimhhdwh08c6mx8f0a-unit-script/bin/display-manager-pre-start 
(code=exited, status=0/SUCCESS)
Main PID: 1469 (code=exited, status=1/FAILURE)

Aug 23 13:23:13 nixos systemd[1]: Unit display-manager.service entered 
failed state.
Aug 23 13:23:14 nixos systemd[1]: display-manager.service holdoff time 
over, scheduling restart.
Aug 23 13:23:14 nixos systemd[1]: Stopping X11 Server...
Aug 23 13:23:14 nixos systemd[1]: Starting X11 Server...
Aug 23 13:23:14 nixos systemd[1]: display-manager.service start request 
repeated too quickly, refusing to start.
Aug 23 13:23:14 nixos systemd[1]: Failed to start X11 Server.
Aug 23 13:23:14 nixos systemd[1]: Unit display-manager.service entered 
failed state.




More information about the nix-dev mailing list