Closed ryanpeach closed 4 years ago
@ryanpeach Have you considered https://github.com/mozilla/nixpkgs-mozilla ?
Where are you getting that version from? Are you accidentally using an old overlayed package, or picking it from an ancient channel?
$ nix-shell -I nixpkgs=channel:nixos-19.09 -p cargo --run 'cargo -vV'
cargo 1.37.0
release: 1.37.0
$ nix-shell -I nixpkgs=channel:nixos-unstable -p cargo --run 'cargo -vV'
cargo 1.39.0
release: 1.39.0
# 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, ... }:
{
# 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;
networking.interfaces.wlp1s0.useDHCP = 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 = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone.
time.timeZone = "America/New_York";
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
hledger # For finances
mmv # Batch move utility
calibre # Books
gcc # Standard compiler
gnumake # Makefiles
libffi
wget # Downloader
vim # Minimal text editor
tmux # Multiplexing
tor # Tor Protocol
brave # Web Browser
fortune # Funny sayings
figlet # Big Font
cowsay # Funny Cow
screenfetch # Show linux info
lolcat # Colors
emacs # OS
git # Version control system
stow # Dotfiles Manager
unzip # Unzips packages
feh # Wallpaper Manager
wine # Windows
riot-desktop # Messaging
xcompmgr # Window Fading
unclutter # Gets rid of mouse
# Media
mpv # Media Player
python37Packages.mps-youtube # Youtube from terminal
spotify # spotify-tui # TODO: Spotify
steam # Steam
# Rust
rustc # TODO: Rust Programming Language
rustup # Rust updater
cargo # Rust language package manager
rustfmt # Rust linter
# Zsh
zsh-powerlevel9k
# Xmonad
xlibs.xmessage
haskellPackages.ghc
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
haskellPackages.xmonad-wallpaper
haskellPackages.xmonad
haskellPackages.xmobar
# Haskell Emacs
haskellPackages.apply-refact
haskellPackages.hlint
haskellPackages.stylish-haskell
haskellPackages.hasktags
haskellPackages.hoogle
thefuck # Corrects bad bash
ranger # TODO: File Browser
# weechat # TODO: IRC & Matrix
# weechat-matrix-bridge # For the weechat matrix library
dmenu # Launch bar
rxvt_unicode # TODO: Terminal Emulator
bc # Basic Calculator
scrot # TODO: Screenshot capturing
physlock # Screen locker
stack # Haskell Environment Handling
ispell # Spelling
xfontsel # Fonts
xlsfonts # Fonts
xclip # Clipboard command line util
xautolock # To lock the screen
# Wifi
networkmanager # For graphical wifi management
# gnome.nm-applet
# Python 3
python37
# python36Packages.poetry
python37Packages.virtualenv
python37Packages.virtualenvwrapper
python37Packages.yapf
python37Packages.flake8
python37Packages.rope
python37Packages.mypy
pulseaudioFull # TODO: Audio
openjdk # JDK
gradle # Java package manager
];
# IN CASE OF EMERGENCY
# nixos-help, nixos-option
# nix-env -qaP
services.nixosManual.showManual = true;
# GUI Network Manager
# nmcli device wifi rescan
# nmcli device wifi list
# nmcli device wifi connect <SSID> password <password>
networking.networkmanager.enable = true;
# 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; };
# Collect nix store garbage and optimize daily
nix.gc.automatic = true;
nix.autoOptimiseStore = true;
# Enable Adobe Flash
nixpkgs.config.firefox.enableAdobeFlash = true;
# Zsh & Bash
programs.zsh = {
enable = true;
ohMyZsh = {
enable = true;
};
promptInit = "source ${pkgs.zsh-powerlevel9k}/share/zsh-powerlevel9k/powerlevel9k.zsh-theme";
};
# Emacs
services.emacs.enable = true;
services.emacs.defaultEditor = true;
services.emacs.install = true;
# Xserver
services.xserver = {
# Enable the X11 windowing system.
enable = true;
layout = "us";
xkbOptions = "eurosign:e";
# X Auto Lock
xautolock.enable = true;
xautolock.time = 15;
xautolock.notify = 10;
# Display Manager
displayManager = {
sddm.enable = true;
sddm.autoNumlock = true;
};
# Desktop Manager
desktopManager = {
plasma5.enable = false;
xterm.enable = false;
};
# XMonad
windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
extraPackages = haskellPackages: [
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
haskellPackages.xmonad-wallpaper
haskellPackages.xmonad
haskellPackages.xmobar
];
};
windowManager.default = "xmonad";
};
# Fonts
fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
ubuntu_font_family
liberation_ttf
powerline-fonts
];
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.rgpeach10 = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
shell = pkgs.zsh;
};
# Weechat
# services.weechat.enable = true;
# packageOverrides = pkgs: rec {
# weechat = pkgs.weechat.override {
# configure = {availablePlugins}: {
# plugins = with availablePlugins: [weechat-matrix-bridge];
# };
# };
# };
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
# OpenVPN
services.openvpn.servers = {
nordVPN = { config = '' config /etc/nixos/openvpn/usa.ovpn ''; };
# nordVPNP2P = { config = '' config /etc/nixos/openpn/usa.p2p.ovpn ''; };
};
}
Thanks Ill try the mozilla overlay
@ryanpeach I suspect your old cargo version might be coming from an ancient rustup toolchain.
Please uninstall (comment) rustup, rebuild, then check again. If that changes the version number, you weren't using nixpkgs-provided cargo.
@ryanpeach Was the issue resolved?
It was, thank you so much. Commenting rustup helped.
Get Outlook for Androidhttps://aka.ms/ghei36
From: Dmitry Kalinkin notifications@github.com Sent: Thursday, December 26, 2019 5:23:48 PM To: NixOS/nixpkgs nixpkgs@noreply.github.com Cc: Ryan Peach ryan.peach@outlook.com; Mention mention@noreply.github.com Subject: Re: [NixOS/nixpkgs] Cargo (Rust) is a very old version v0.13.0-nightly (#75333)
@ryanpeachhttps://github.com/ryanpeach Was the issue resolved?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/NixOS/nixpkgs/issues/75333?email_source=notifications&email_token=ADRGXSL6KCS5U2LSXMLI6F3Q2U4IJA5CNFSM4JYCYXN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHWINEY#issuecomment-569149075, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADRGXSK7WVWVO3GET566DZDQ2U4IJANCNFSM4JYCYXNQ.
Is there any way to update this?