LINUX.ORG.RU

Конфиг покажи. А так прозреваю, что у тебя либо кэш отвалился, либо ты флаги для GCC или каких-либо зависимостей в конфиге меняешь.

hateyoufeel ★★★★★
()
Ответ на: комментарий от hateyoufeel
# # List packages installed in system profile. To search, run:
# $ nix search wget

{ config, pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    autoconf
    boost
    cmake
    dmenu
    dwm
    emacs
    file
    gcc
    git
    gnumake
    htop
    iotop
    python2
    python3
    silver-searcher
    lightdm
    st
    tmux
    ycmd
    wget
    xsel
    google-chrome
    firefox
    mpv
    # virtualbox
    vim
    glxinfo
    lutris

    aircrack-ng
    # alsa-tools
    # alsa-utils
    amule
    # anacron
    # android-tools-adb
    # apache2-utils
    aria2
    atop
    audacity
    autocutsel
    # autofs
    autossh
    bash-completion
    # # bind9
    # bind9utils
    bridge-utils
    cabextract
    ccache
    cgdb
    cifs-utils
    # closure-compiler
    cmake
    colordiff
    compton
    # # consolekit
    # corkscrew
    cpufrequtils
    cpulimit
    cryptsetup
    # cstream
    cuetools
    cups
    curl
    dbench
    ddclient
    # default-jdk
    deluge
    # dh-make
    dia
    distcc
    dnsutils
    dos2unix
    dosfstools
    # dpkg-repack
    dtach
    elinks
    enca
    # eog
    ethtool
    expect
    extundelete
    # exuberant-ctags
    # eyed3
    faac
    fail2ban
    # fbless
    fbreader
    fbterm
    fdupes
    ffmpeg
    # firmware-misc-nonfree
    # ftp
    gcc
    gdb
    # geoip-bin
    # getmail4
    gimp
    git
    # # gksu
    goaccess
    # # gocode
    # golang
    gource
    gparted
    # gpick
    # gplaycli
    gpm
    # gtk-chtheme
    hdparm
    hexchat
    hsetroot
    html2text
    htop
    # # icedove
    # # iceweasel
    # # id-utils
    # idle3-tools
    # ifplugd
    iftop
    imagemagick
    imwheel
    # initramfs-tools
    # intel-microcode
    iotop
    iperf
    # iproute2
    iptraf
    # ipython
    # ipython3
    irqbalance
    jfsutils
    jshon
    # jupyter-notebook
    kbdd
    keepassx
    lame
    # ldap-utils
    # # libav-tools
    # libevent-dev
    # libffi-dev
    # libglib2.0-dev
    # libncurses5-dev
    # libnotify-bin
    # libpango1.0-dev
    # libpcap-dev
    libreoffice
    # librrd-dev
    # libx11-dev
    # libxft-dev
    # libxinerama-dev
    # libxml2-dev
    links
    links2
    # linux-headers-amd64
    # linux-image-amd64
    # lm-sensors
    # locate
    # make
    mc
    mcabber
    # # mcelog
    mdadm
    memcached
    # # memcachedb
    # memtest86+
    memtester
    # mencoder
    mercurial
    # mesa-utils
    mktorrent
    # # mongodb
    # # monkeys-audio
    most
    # mpc
    mpd
    mplayer
    msmtp
    # mtp-tools
    mtr
    mutt
    # mz
    ncdu
    ncmpcpp
    netcat
    # nethack-console
    # netselect-apt
    nginx
    ngrep
    nmap
    nodejs
    # notification-daemon
    notify-osd
    # ntfs-3g
    ntp
    # ntpdate
    numlockx
    # openssh-server
    openvpn
    # opus-tools
    p7zip
    parallel
    pass
    pastebinit
    pavucontrol
    # pavumeter
    pdf2djvu
    # pgadmin3
    picard
    # pinentry-curses
    # pinentry-qt
    pkg-config
    # pm-utils
    postgresql
    powertop
    # pppoe
    # pppoeconf
    prelink
    # # preload
    # proftpd-basic
    psi-plus
    # psi-plus-skins
    pv
    pypy
    # python-autopep8
    # python-dev
    # python-ipdb
    # python-mysqldb
    # python-pip
    # python-pyinotify
    # python-virtualenv
    # python3-dev
    # python3-pip
    # python3-tk
    # python3-virtualenv
    qemu
    # qt4-qtconfig
    # quake3
    quilt
    ranger
    # rar
    rcs
    rdesktop
    recode
    # redis-server
    redshift
    reiserfsprogs
    # rkhunter
    rtorrent
    samba
    # sasl2-bin
    screen
    shellcheck
    shntool
    sipcalc
    # # skypeforlinux
    smartmontools
    smbclient
    smplayer
    spamassassin
    sqlitebrowser
    # ssh-askpass
    sshfs
    sshpass
    # # steam
    strace
    stress
    # stumpwm
    subversion
    # suckless-tools
    sudo
    # # sysbench
    syslinux
    # syslinux-utils
    sysstat
    # # task
    tcpdump
    # telegram-desktop
    telnet
    # thunar
    # tidy
    tmux
    tor
    trickle
    # ttf-anonymous-pro
    # ttf-bitstream-vera
    # ttf-dejavu
    # # ttf-freefont
    # # ttf-linux-libertine
    # ttysnoop
    unclutter
    # upx-ucl
    urlview
    uwsgi
    # uwsgi-plugin-python
    # uwsgi-plugin-python3
    # uwsgi-plugin-sqlite3
    # v4l-utils
    vdpauinfo
    # # virtualbox-5.1
    vnstat
    # volti
    vorbis-tools
    vym
    # # w64codecs
    wavpack
    wcalc
    wine
    # # wine32
    # wireless-tools
    wireshark
    # x11-xserver-utils
    xarchiver
    xclip
    # xdm
    xdotool
    # xfburn
    # xfonts-cyrillic
    # xfonts-terminus
    xfsprogs
    # xinit
    # xprintidle
    xscreensaver
    xsel
    # xserver-xephyr
    # xserver-xorg
    # # xtables-addons-common
    # xtightvncviewer
    xxkb
    youtube-dl
    zathura
    # zathura-cb
    # zathura-djvu
    # zathura-ps
    # ttf-mscorefonts-installer
    stellarium
    xboxdrv
    retroarch
    nrg2iso
    # joystick
    lshw
    graphviz
    dnsmasq
    hostapd
    emacs25
    firefox-esr
    ycmd
    docker
    docker-compose
    libvdpau
    vulkan-loader
    vulkan-validation-layers
    vulkan-tools

    # llvmPackages.libclang
  ];
}
bryak ★★★★
() автор топика
Ответ на: комментарий от bryak
# 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
      ./configuration/os/nixos.nix
      ./configuration/os/packages.nix
      ./configuration/services/openssh.nix
      # ./configuration/services/git.nix
    ];

  # Use the GRUB 2 boot loader.
  # boot.loader.grub.enable = true;
  # boot.loader.grub.version = 2;
  
  # boot.kernelPackages = pkgs.linuxPackages_latest;
  # boot.loader.grub.efiSupport = true;
  # boot.loader.grub.efiInstallAsRemovable = true;
  # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  # Define on which hard drive you want to install Grub.
  # boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
  
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.

  # 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 = {
  #   consoleFont = "Lat2-Terminus16";
  #   consoleKeyMap = "us";
  #   defaultLocale = "en_US.UTF-8";
  # };
  
  # 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:
  
  # Open ports in the firewall.
  # networking.firewall.allowedTCPPorts = [ ... ];
  # networking.firewall.allowedUDPPorts = [ ... ];
  # Or disable the firewall altogether.
  # networking.firewall.enable = false;

  # Enable CUPS to print documents.
  # services.printing.enable = true;

  # Enable sound.
  sound.enable = true;
  hardware.pulseaudio.enable = true;

  # Enable the X11 windowing system.
  # services.xserver.enable = true;
  # services.xserver.layout = "us";
  # services.xserver.xkbOptions = "eurosign:e";

  # Enable touchpad support.
  # services.xserver.libinput.enable = true;
  # Enable dwm
  # services.xserver.windowManager.dwm.enable = true;

  ##########################################################
  # services.xserver = {
  #   enable = true;
  #   autorun = true;

  #   displayManager = {
  #     slim = {
        # enable = true;
      # };
    # };

    # windowManager.dwm.enable = true;

    # desktopManager = {
    #   default = "none";
     #  wallpaper.mode = "fill";
     #  xterm.enable = false;
    # };
  # };
  ############################################################
  
  #
  # X Server stuff
  #

  # compton
  # services.compton.enable = true;

  services.xserver = {
    enable = true;
    layout = "us,ru";
    xkbVariant="winkeys";
    xkbOptions = "grp:shift_toggle,grp_led:scroll,ctrl:nocaps";

    # videoDrivers = [ "modesetting" "nvidia" ];
    videoDrivers = [ "nvidia" ];

    windowManager.dwm= {
      enable = true;
    };

    # windowManager.default = "dwm";

    desktopManager.xterm.enable = false;
    # desktopManager.default = "none";
    displayManager.defaultSession = "none+dwm";

    displayManager = {
      lightdm = {
        enable = true;
        ###defaultUser = "ian";
      };
    };
 };

  # nixpkgs.config.packageOverrides = pkgs: {
  #   vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
  # };
  # hardware.opengl = {
  #   enable = true;
  #   extraPackages = with pkgs; [
  #     vaapiVdpau
  #     libvdpau-va-gl
  #   ];
  # };
 
  # Enable the KDE Desktop Environment.
  # services.xserver.displayManager.sddm.enable = true;
  # services.xserver.desktopManager.plasma5.enable = true;
  
  nixpkgs.config.pulseaudio = true;


  nixpkgs.config.packageOverrides = self: {   
  # nixpkgs.config.packageOverrides = self: super: {
    dwm = self.callPackage ./overlay/dwm.nix { };

      hardware.opengl = {
    enable = true;
    driSupport32Bit = true;
    support32Bit = true;
    };
    extraPackages = with pkgs; [
      vaapiVdpau
      libvdpau-va-gl
    ];
  };
  services.xserver.windowManager.session = [{
    name = "dwm";
    # start = ''
    #   ${pkgs.dwm} &
    #   waitPID=$!
    # '';
    start = ''
      ${pkgs.dwm}/bin/dwm &
      waitPID=$!
    ''; 
  }];

    

#   services.xserver.config = ''
# # Section "ServerLayout"
# #     Identifier     "Layout0"
# #     Screen      0  "Screen0" 0 0
# #     InputDevice    "Keyboard0" "CoreKeyboard"
# #     InputDevice    "Mouse0" "CorePointer"
# # EndSection

# # Section "Files"
# #         # FontPath     "/usr/share/fonts/X11/misc"
# #         # FontPath     "/usr/share/fonts/X11/cyrillic"
# #         # FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
# #         # FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
# #         # FontPath     "/usr/share/fonts/X11/Type1"
# #         # FontPath     "/usr/share/fonts/X11/100dpi"
# #         # FontPath     "/usr/share/fonts/X11/75dpi"
# #         # FontPath     "built-ins"
# #     ModulePath      "/usr/lib/xorg/modules"
# #     FontPath        "/usr/share/fonts/truetype/msttcorefonts"
# #     FontPath        "/usr/share/fonts/X11/misc"
# # EndSection

# # Section "Module"
# #     Load           "glx"
# # EndSection

# # Section "InputDevice"

# #     # generated from default
# #     Identifier     "Mouse0"
# #     Driver         "mouse"
# #     Option         "Protocol" "auto"
# #     Option         "Device" "/dev/psaux"
# #     Option         "Emulate3Buttons" "no"
# #     Option         "ZAxisMapping" "4 5 6 7"
# # EndSection

# # Section "InputDevice"

# #     # generated from default
# #     Identifier     "Keyboard0"
# #     Driver         "kbd"
# # EndSection

# # Section "Monitor"
# #     Identifier     "Monitor0"
# #     VendorName     "Unknown"
# #     ModelName      "Unknown"
# #     HorizSync       28.0 - 33.0
# #     VertRefresh     43.0 - 72.0
# #     Option         "DPMS"
# # EndSection

# Section "Device"
#     Identifier     "Device0"
#     Driver         "nvidia"
#     VendorName     "NVIDIA Corporation"
#     BoardName      "GeForce GTX 1050"
#     Option         "NoLogo" "0"
#     Option         "RenderAccel" "1"
#     Option         "TripleBuffer" "true"
#     Option         "MigrationHeuristic" "greedy"
#     Option         "DPI" "96 x 96"
#     Option         "Coolbits" "28"

# EndSection

# # Section "Screen"
# #     Identifier     "Screen0"
# #     Device         "Device0"
# #     Monitor        "Monitor0"
# #     DefaultDepth    24
# #     Option         "Coolbits" "4"
# #     Option         "AllowIndirectGLXProtocol" "off"
# #     Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
# #     SubSection     "Display"
# #         Depth       24
# #     EndSubSection
# # EndSection
#   '';
  
}
bryak ★★★★
() автор топика
Последнее исправление: bryak (всего исправлений: 1)

Либо конфиг что-то меняет, либо пакета нет в кеше. Самое простое, что можно сделать, это попробовать обновить систему.

quantum-troll ★★★★★
()
Ответ на: комментарий от bryak

Если nix-channel --update не поможет, то могу ещё предложить 0) nix-shell -p gcc - будет собираться или нет? отметь хеш 1) посмотри на Hydra, не фейлится ли сборка этого gcc (маловероятно)

t184256 ★★★★★
()
Ответ на: комментарий от t184256
[root@nixos:~]# nix-shell -p gcc
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
  /nix/store/d43v6bx7r6fcaq3fbbfd5mwh1f5s7rmg-bash-interactive-4.4-p23-dev
copying path '/nix/store/d43v6bx7r6fcaq3fbbfd5mwh1f5s7rmg-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...

bryak ★★★★
() автор топика
Ответ на: комментарий от bryak

Значит твой конфиг требует не просто gcc. Выясни, сначала, что именно его требует (если без понятия вообще, можно делать бисекцию закомментированием и пересборку без применения).

t184256 ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.