services.xserver.displayManager.startx.enable = true; does not work on i686 linux
Steps To Reproduce
use following config
cat /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-local.nix
./guix.nix
./network.nix
];
Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.efiSupport = false;
boot.kernelPackages = pkgs.linuxPackages_5_13;
boot.extraModulePackages = with config.boot.kernelPackages; [ netatop ];
boot.kernelPatches = [ {
name = "local-config";
patch = null;
extraConfig = ''
SECURITY_APPARMOR y
SECURITY_APPARMOR_HASH y
SECURITY_APPARMOR_HASH_DEFAULT y
DEFAULT_SECURITY_APPARMOR y
'';
} ];
boot.initrd.compressor = "gzip";
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
security.apparmor = {
enable = true;
enableCache = true;
};
programs.firejail.enable = true;
programs.light.enable = true;
services.acpid.enable = true;
programs.tmux = {
enable = true;
historyLimit = 8192;
extraConfig = ''
set -g mouse on
set -g set-titles on
set -g mode-keys vi
set -g xterm-keys on
set -g allow-rename on
set -g alternate-screen on
'';
clock24 = true;
};
2. run startx or xinit
3. we will have error like this:
startx
/home/sss/.nix-profile/bin/startx: line 168: /bin/mcookie: No such file or directory
Couldn't create cookie
xinit
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
Build Operating System: Nix
Current Operating System: Linux sss-netbook 5.13.12 #1-NixOS SMP Wed Aug 18 07:07:08 UTC 2021 i686
Kernel command line: BOOT_IMAGE=(hd0,gpt2)//kernels/7i1qgpa1ciygq0zml4bnnzp8qizl30m1-linux-5.13.12-bzImage init=/nix/store/b1k0bkx4f6z4l4j8f7yxmf3xwc3ia5mw-nixos-system-sss-netbook-21.11pre311289.503209808cd/init loglevel=4 apparmor=1 security=apparmor
Build Date: 29 July 2021 06:48:50PM
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/sss/.local/share/xorg/Xorg.0.log", Time: Fri Aug 27 01:57:32 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/nix/store/71cf2dvr08k7alxrws4c5sk55cq8y5zi-xorg-server-1.20.13/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/home/sss/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
if manually change permissions for /dev/tty[0-9] X does start via xinit (startx still have same error), but incorrectly:
xinit
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
Build Operating System: Nix
Current Operating System: Linux sss-netbook 5.13.12 #1-NixOS SMP Wed Aug 18 07:07:08 UTC 2021 i686
Kernel command line: BOOT_IMAGE=(hd0,gpt2)//kernels/7i1qgpa1ciygq0zml4bnnzp8qizl30m1-linux-5.13.12-bzImage init=/nix/store/b1k0bkx4f6z4l4j8f7yxmf3xwc3ia5mw-nixos-system-sss-netbook-21.11pre311289.503209808cd/init loglevel=4 apparmor=1 security=apparmor
Build Date: 29 July 2021 06:48:50PM
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/sss/.local/share/xorg/Xorg.0.log", Time: Fri Aug 27 01:58:58 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/nix/store/71cf2dvr08k7alxrws4c5sk55cq8y5zi-xorg-server-1.20.13/share/X11/xorg.conf.d"
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
The XKEYBOARD keymap compiler (xkbcomp) reports:
Warning: Could not resolve keysym XF86BrightnessAuto
Warning: Could not resolve keysym XF86DisplayOff
Warning: Could not resolve keysym XF86Info
Warning: Could not resolve keysym XF86AspectRatio
Warning: Could not resolve keysym XF86DVD
Warning: Could not resolve keysym XF86Audio
Warning: Could not resolve keysym XF86ChannelUp
Warning: Could not resolve keysym XF86ChannelDown
Warning: Could not resolve keysym XF86Break
Warning: Could not resolve keysym XF86VideoPhone
Warning: Could not resolve keysym XF86ZoomReset
Warning: Could not resolve keysym XF86Editor
Warning: Could not resolve keysym XF86GraphicsEditor
Warning: Could not resolve keysym XF86Presentation
Warning: Could not resolve keysym XF86Database
Warning: Could not resolve keysym XF86Voicemail
Warning: Could not resolve keysym XF86Addressbook
Warning: Could not resolve keysym XF86DisplayToggle
Warning: Could not resolve keysym XF86SpellCheck
Warning: Could not resolve keysym XF86ContextMenu
Warning: Could not resolve keysym XF86MediaRepeat
Warning: Could not resolve keysym XF8610ChannelsUp
Warning: Could not resolve keysym XF8610ChannelsDown
Warning: Could not resolve keysym XF86Images
Warning: Could not resolve keysym XF86NotificationCenter
Warning: Could not resolve keysym XF86PickupPhone
Warning: Could not resolve keysym XF86HangupPhone
Warning: Could not resolve keysym XF86Fn
Warning: Could not resolve keysym XF86Fn_Esc
Warning: Could not resolve keysym XF86FnRightShift
Warning: Could not resolve keysym XF86Numeric0
Warning: Could not resolve keysym XF86Numeric1
Warning: Could not resolve keysym XF86Numeric2
Warning: Could not resolve keysym XF86Numeric3
Warning: Could not resolve keysym XF86Numeric4
Warning: Could not resolve keysym XF86Numeric5
Warning: Could not resolve keysym XF86Numeric6
Warning: Could not resolve keysym XF86Numeric7
Warning: Could not resolve keysym XF86Numeric8
Warning: Could not resolve keysym XF86Numeric9
Warning: Could not resolve keysym XF86NumericStar
Warning: Could not resolve keysym XF86NumericPound
Warning: Could not resolve keysym XF86NumericA
Warning: Could not resolve keysym XF86NumericB
Warning: Could not resolve keysym XF86NumericC
Warning: Could not resolve keysym XF86NumericD
Warning: Could not resolve keysym XF86CameraFocus
Warning: Could not resolve keysym XF86WPSButton
Warning: Could not resolve keysym XF86CameraZoomIn
Warning: Could not resolve keysym XF86CameraZoomOut
Warning: Could not resolve keysym XF86CameraUp
Warning: Could not resolve keysym XF86CameraDown
Warning: Could not resolve keysym XF86CameraLeft
Warning: Could not resolve keysym XF86CameraRight
Warning: Could not resolve keysym XF86AttendantOn
Warning: Could not resolve keysym XF86AttendantOff
Warning: Could not resolve keysym XF86AttendantToggle
Warning: Could not resolve keysym XF86LightsToggle
Warning: Could not resolve keysym XF86ALSToggle
Warning: Could not resolve keysym XF86Buttonconfig
Warning: Could not resolve keysym XF86Taskmanager
Warning: Could not resolve keysym XF86Journal
Warning: Could not resolve keysym XF86ControlPanel
Warning: Could not resolve keysym XF86AppSelect
Warning: Could not resolve keysym XF86Screensaver
Warning: Could not resolve keysym XF86VoiceCommand
Warning: Could not resolve keysym XF86Assistant
Warning: Could not resolve keysym XF86BrightnessMin
Warning: Could not resolve keysym XF86BrightnessMax
Warning: Could not resolve keysym XF86KbdInputAssistPrev
Warning: Could not resolve keysym XF86KbdInputAssistNext
Warning: Could not resolve keysym XF86KbdInputAssistPrevgroup
Warning: Could not resolve keysym XF86KbdInputAssistNextgroup
Warning: Could not resolve keysym XF86KbdInputAssistAccept
Warning: Could not resolve keysym XF86KbdInputAssistCancel
Warning: Could not resolve keysym XF86RightUp
Warning: Could not resolve keysym XF86RightDown
Warning: Could not resolve keysym XF86LeftUp
Warning: Could not resolve keysym XF86LeftDown
Warning: Could not resolve keysym XF86RootMenu
Warning: Could not resolve keysym XF86MediaTopMenu
Warning: Could not resolve keysym XF86Numeric11
Warning: Could not resolve keysym XF86Numeric12
Warning: Could not resolve keysym XF86AudioDesc
Warning: Could not resolve keysym XF863DMode
Warning: Could not resolve keysym XF86NextFavorite
Warning: Could not resolve keysym XF86StopRecord
Warning: Could not resolve keysym XF86PauseRecord
Warning: Could not resolve keysym XF86VOD
Warning: Could not resolve keysym XF86Unmute
Warning: Could not resolve keysym XF86FastReverse
Warning: Could not resolve keysym XF86SlowReverse
Warning: Could not resolve keysym XF86Data
Warning: Could not resolve keysym XF86OnScreenKeyboard
Warning: Could not resolve keysym XF86PrivacyScreenToggle
Warning: Could not resolve keysym XF86SelectiveScreenshot
Warning: Could not resolve keysym XF86Macro1
Warning: Could not resolve keysym XF86Macro2
Warning: Could not resolve keysym XF86Macro3
Warning: Could not resolve keysym XF86Macro4
Warning: Could not resolve keysym XF86Macro5
Warning: Could not resolve keysym XF86Macro6
Warning: Could not resolve keysym XF86Macro7
Warning: Could not resolve keysym XF86Macro8
Warning: Could not resolve keysym XF86Macro9
Warning: Could not resolve keysym XF86Macro10
Warning: Could not resolve keysym XF86Macro11
Warning: Could not resolve keysym XF86Macro12
Warning: Could not resolve keysym XF86Macro13
Warning: Could not resolve keysym XF86Macro14
Warning: Could not resolve keysym XF86Macro15
Warning: Could not resolve keysym XF86Macro16
Warning: Could not resolve keysym XF86Macro17
Warning: Could not resolve keysym XF86Macro18
Warning: Could not resolve keysym XF86Macro19
Warning: Could not resolve keysym XF86Macro20
Warning: Could not resolve keysym XF86Macro21
Warning: Could not resolve keysym XF86Macro22
Warning: Could not resolve keysym XF86Macro23
Warning: Could not resolve keysym XF86Macro24
Warning: Could not resolve keysym XF86Macro25
Warning: Could not resolve keysym XF86Macro26
Warning: Could not resolve keysym XF86Macro27
Warning: Could not resolve keysym XF86Macro28
Warning: Could not resolve keysym XF86Macro29
Warning: Could not resolve keysym XF86Macro30
Warning: Could not resolve keysym XF86MacroRecordStart
Warning: Could not resolve keysym XF86MacroRecordStop
Warning: Could not resolve keysym XF86MacroPresetCycle
Warning: Could not resolve keysym XF86MacroPreset1
Warning: Could not resolve keysym XF86MacroPreset2
Warning: Could not resolve keysym XF86MacroPreset3
Warning: Could not resolve keysym XF86KbdLcdMenu1
Warning: Could not resolve keysym XF86KbdLcdMenu2
Warning: Could not resolve keysym XF86KbdLcdMenu3
Warning: Could not resolve keysym XF86KbdLcdMenu4
Warning: Could not resolve keysym XF86KbdLcdMenu5
Errors from xkbcomp are not fatal to the X server
/home/sss/.xinitrc: строка 29: /etc/X11/chooser.sh: No such file or directory
xrdb: No such file or directory
xrdb: can't open file '/home/sss/.Xresources'
/home/sss/.xinitrc: строка 45: xhost: команда не найдена
2021-08-27 01:59:05 W: awesome: a_glib_poll:437: Last main loop iteration took 1.160924 seconds! Increasing limit for this warning to that value.
kbdd pid: 1925
Не найдены доступные значки!
at least input devices like keyboard/mouse/touchpad does not work
Expected behavior
X server + ~/.xninitrc should be launched
nix-env --version output
nix-env --version
nix-env (Nix) 2.3.15
i have similar config for x86_64 and it seems does not have this problem.
I don't think this is related to nix, please report to https://github.com/nixos/nixpkgs instead. Nixpkgs is the package repository and contains recipes for nix packages and for nixos modules.
Describe the bug
services.xserver.displayManager.startx.enable = true; does not work on i686 linux
Steps To Reproduce
{ config, pkgs, ... }:
{ imports = [ # Include the results of the hardware scan. ./hardware-configuration-local.nix ./guix.nix ./network.nix ];
Use the GRUB 2 boot loader.
boot.loader.grub.enable = true; boot.loader.grub.version = 2; boot.loader.grub.efiSupport = false; boot.kernelPackages = pkgs.linuxPackages_5_13; boot.extraModulePackages = with config.boot.kernelPackages; [ netatop ]; boot.kernelPatches = [ { name = "local-config"; patch = null; extraConfig = '' SECURITY_APPARMOR y SECURITY_APPARMOR_HASH y SECURITY_APPARMOR_HASH_DEFAULT y DEFAULT_SECURITY_APPARMOR y ''; } ];
boot.initrd.compressor = "gzip";
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only security.apparmor = { enable = true; enableCache = true; };
programs.nm-applet.enable = true; programs.usbtop.enable = true;
services.tor.enable = true; services.tor.client.enable = true; services.tor.client.dns.enable = true; services.tor.settings.DNSPort = [ { addr = "127.0.0.1"; port = 5354; } ]; services.dnscrypt-proxy2.enable = true; services.dnscrypt-proxy2.settings = { listen_addresses = [ "127.0.0.1:5353" ]; };
services.unbound.enable = true; services.unbound.settings.forward-zone = [{ name = "."; forward-addr = [ "127.0.0.1@5353" "127.0.0.1@5354" ]; }];
services.unbound.extraConfig = ''
server:
num-threads: 1
prefer-ip4: yes
prefetch: yes
prefetch-key: yes
verbosity: 3
'';
hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = false; services.blueman.enable = true;
Select internationalisation properties.
i18n.defaultLocale = "ru_RU.utf8";
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
Set your time zone.
time.timeZone = "Europe/Moscow"; time.hardwareClockInLocalTime = false;
environment.systemPackages = with pkgs; [ wget rsync (neovim.override { viAlias = true; vimAlias = true; withRuby = false; }) atop git psmisc atop openvpn iperf lm_sensors ncdu i3lock-color fzf ];
};
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;
}; security.sudo.enable = false; security.sudo.package = ""; services.gnome.gnome-keyring.enable = true; services.chrony.enable = true; services.chrony.servers = [ "pool.ntp.org" "time-a-g.nist.gov" "time-d-g.nist.gov" "time-a-b.nist.gov" "ut1-time.colorado.edu" "ut1-wwv.nist.gov" "time.cloudflare.com" "time.windows.com" "time.apple.com" "clepsydra.dec.com" "clepsydra.labs.hp.com" "clepsydra.hpl.hp.com" "ntp1.vniiftri.ru" "ntp1.niiftri.irkutsk.ru" "vniiftri.khv.ru" "ntp.mobatime.ru" "ntp1.stratum1.ru" "ntp2.stratum2.ru" "stratum1.net" "ntp.ru" "ts1.aco.net" "ntp1.net.berkeley.edu" "ntp.gsu.edu" "ntp.rsu.edu.ru" "ntp.nict.jp" "ntp.se" "ntp.ripe.net" "clock.isc.org" "ntp0.as34288.net" "ntp1.jst.mfeed.ad.jp" "ntp.neel.ch" ];
services.openssh.enable = true; services.openssh.passwordAuthentication = false; services.openssh.forwardX11 = true; networking.wireguard.enable = true; services.lvm.dmeventd.enable = false; services.flatpak.enable = true; xdg.portal.enable = true; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
programs.firejail.enable = true; programs.light.enable = true; services.acpid.enable = true; programs.tmux = { enable = true; historyLimit = 8192; extraConfig = '' set -g mouse on set -g set-titles on set -g mode-keys vi set -g xterm-keys on set -g allow-rename on set -g alternate-screen on ''; clock24 = true; };
Enable CUPS to print documents.
services.printing.enable = true;
Enable sound.
sound.enable = true; hardware.pulseaudio.enable = false; zramSwap.enable = true;
services.xserver.enable = true; services.xserver.layout = "us,ru"; services.xserver.xkbOptions = "grp:alt_shift_toggle"; services.xserver.xkbVariant = "winkeys";
services.xserver.libinput.enable = true;
services.xserver.displayManager.startx.enable = true; services.xserver.windowManager.awesome.enable = true; services.xserver.useGlamor = false;
services.xserver.videoDrivers = [ "intel" ];
hardware.opengl = { enable = true; extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
};
Define a user account. Don't forget to set a password with ‘passwd’.
users.users.sss = { isNormalUser = true; extraGroups = [ "wheel" "audio" "video" "plugdev" "networkmanager" ]; };
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.03"; # Did you read the comment?
nix.buildMachines = [ { hostName = "192.168.0.2"; systems = [ "x86_64-linux" "i686-linux" ];
if the builder supports building for multiple architectures,
nixpkgs.config.packageOverrides = pkgs: { nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { inherit pkgs; }; }; powerManagement.cpuFreqGovernor = "schedutil"; }
{config, pkgs, ...}: { imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> ./livecd-packages-common.nix
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
]; nixpkgs.config.allowUnfree = true; boot.kernelPackages = pkgs.linuxPackages_5_13; boot.extraModulePackages = with config.boot.kernelPackages; [ netatop ]; boot.kernelPatches = [ { name = "local-config"; patch = null; extraConfig = '' SECURITY_APPARMOR y SECURITY_APPARMOR_HASH y SECURITY_APPARMOR_HASH_DEFAULT y DEFAULT_SECURITY_APPARMOR y ''; } ]; security.apparmor = { enable = true; enableCache = true;
}; boot.kernelModules = [ "netatop" ]; powerManagement.cpuFreqGovernor = "schedutil"; programs.traceroute.enable = true; programs.atop.netatop.enable = true; hardware.ksm.enable = true; zramSwap.enable = true; services.acpid.enable = true; users.extraUsers.root.password = "root"; services.xserver.displayManager.startx.enable = true; services.xserver.windowManager.awesome.enable = true; services.xserver.enable = true; services.xserver.layout = "us,ru"; services.xserver.xkbOptions = "grp:alt_shift_toggle"; services.xserver.xkbVariant = "winkeys"; services.printing.enable = true; sound.enable = true; hardware.pulseaudio.enable = true; services.xserver.libinput.enable = true; xdg.portal.enable = true; hardware.opengl.enable = true; hardware.opengl.driSupport = true; programs.light.enable = true; programs.nm-applet.enable = true; services.tor.enable = true; services.tor.client.enable = true; services.tor.client.dns.enable = true; services.tor.settings.DNSPort = [ { addr = "127.0.0.1"; port = 5354; } ]; services.dnscrypt-proxy2.enable = true; services.dnscrypt-proxy2.settings = { listen_addresses = [ "127.0.0.1:5353" ]; }; services.unbound.enable = true; services.unbound.settings.forward-zone = [{ name = "."; forward-addr = [ "127.0.0.1@5353" "127.0.0.1@5354" ]; }]; hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = false; services.blueman.enable = true; networking.wireguard.enable = true; programs.neovim = { defaultEditor = true; withRuby = false; }; time.timeZone = "Europe/Moscow"; time.hardwareClockInLocalTime = false; services.chrony.enable = true; services.chrony.servers = [ "pool.ntp.org" "time-a-g.nist.gov" "time-d-g.nist.gov" "time-a-b.nist.gov" "ut1-time.colorado.edu" "ut1-wwv.nist.gov" "time.cloudflare.com" "time.windows.com" "time.apple.com" "clepsydra.dec.com" "clepsydra.labs.hp.com" "clepsydra.hpl.hp.com" "ntp1.vniiftri.ru" "ntp1.niiftri.irkutsk.ru" "vniiftri.khv.ru" "ntp.mobatime.ru" "ntp1.stratum1.ru" "ntp2.stratum2.ru" "stratum1.net" "ntp.ru" "ts1.aco.net" "ntp1.net.berkeley.edu" "ntp.gsu.edu" "ntp.rsu.edu.ru" "ntp.nict.jp" "ntp.se" "ntp.ripe.net" "clock.isc.org" "ntp0.as34288.net" "ntp1.jst.mfeed.ad.jp"
"ntp.neel.ch" ]; networking.hostName = "nixos-live"; programs.tmux = { enable = true; historyLimit = 8192; extraConfig = '' set -g mouse on
set -g set-titles on set -g mode-keys vi set -g xterm-keys on set -g allow-rename on set -g alternate-screen on ''; clock24 = true; }; programs.zsh = { enable = true; zsh-autoenv.enable = true; ohMyZsh.enable = true; }; users.defaultUserShell = pkgs.zsh; }
startx /home/sss/.nix-profile/bin/startx: line 168: /bin/mcookie: No such file or directory Couldn't create cookie
xinit
X.Org X Server 1.20.13 X Protocol Version 11, Revision 0 Build Operating System: Nix Current Operating System: Linux sss-netbook 5.13.12 #1-NixOS SMP Wed Aug 18 07:07:08 UTC 2021 i686 Kernel command line: BOOT_IMAGE=(hd0,gpt2)//kernels/7i1qgpa1ciygq0zml4bnnzp8qizl30m1-linux-5.13.12-bzImage init=/nix/store/b1k0bkx4f6z4l4j8f7yxmf3xwc3ia5mw-nixos-system-sss-netbook-21.11pre311289.503209808cd/init loglevel=4 apparmor=1 security=apparmor Build Date: 29 July 2021 06:48:50PM
Current version of pixman: 0.38.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/sss/.local/share/xorg/Xorg.0.log", Time: Fri Aug 27 01:57:32 2021 (==) Using config file: "/etc/X11/xorg.conf" (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/nix/store/71cf2dvr08k7alxrws4c5sk55cq8y5zi-xorg-server-1.20.13/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied) (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/home/sss/.local/share/xorg/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file.
xinit
X.Org X Server 1.20.13 X Protocol Version 11, Revision 0 Build Operating System: Nix Current Operating System: Linux sss-netbook 5.13.12 #1-NixOS SMP Wed Aug 18 07:07:08 UTC 2021 i686 Kernel command line: BOOT_IMAGE=(hd0,gpt2)//kernels/7i1qgpa1ciygq0zml4bnnzp8qizl30m1-linux-5.13.12-bzImage init=/nix/store/b1k0bkx4f6z4l4j8f7yxmf3xwc3ia5mw-nixos-system-sss-netbook-21.11pre311289.503209808cd/init loglevel=4 apparmor=1 security=apparmor Build Date: 29 July 2021 06:48:50PM
Current version of pixman: 0.38.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/sss/.local/share/xorg/Xorg.0.log", Time: Fri Aug 27 01:58:58 2021 (==) Using config file: "/etc/X11/xorg.conf" (==) Using config directory: "/etc/X11/xorg.conf.d" (==) Using system config directory "/nix/store/71cf2dvr08k7alxrws4c5sk55cq8y5zi-xorg-server-1.20.13/share/X11/xorg.conf.d" xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted) The XKEYBOARD keymap compiler (xkbcomp) reports:
Expected behavior
X server + ~/.xninitrc should be launched
nix-env --version
outputi have similar config for x86_64 and it seems does not have this problem.