The ls command is returning:
[azareii@nixos:~]$ ls
given is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 140.
when is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 141.
when is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 142.
when is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 143.
given is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 159.
when is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 160.
when is deprecated at /nix/store/2jibkwynkzfbd6xk3fp8097ygsvb4dsg-perl5.38.2-cope-unstable-2015-01-29/lib/perl5/site_perl/5.38.2/App/Cope/Extra.pm line 161.
Executable not in $PATH: ls at /run/current-system/sw/bin/ls line 66.
This behavior is not present when run through the nix-shell
command, where it performs normally:
[azareii@nixos:~]$ nix-shell -p vim --run 'ls'
Apps Desktop Documents Downloads Games Music Pictures Programs Public Templates Videos
For added context, 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 =
[
./hardware-configuration.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable networking
networking = {
hostName = "nixos";
wireless.networks = {
Springer = {
pskRaw = "d4b182e59b04349a7bc131857f5c814aadbfe2b9d48420f8f845d5d05046a3bd";
};
};
networkmanager.enable = true;
interfaces.wlp3s0.ipv4.addresses = [ {
address = "10.0.0.89";
prefixLength = 24;
} ];
defaultGateway = "10.0.0.1";
nameservers = [ "10.0.0.53" ];
firewall = {
enable = true;
allowPing = true;
};
};
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.blueman.enable = true;
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable";
# Set your time zone.
time.timeZone = "America/Denver";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
services.xserver = {
enable = true;
xkb.layout = "us";
xkb.variant = "";
windowManager.i3.enable = true;
displayManager.defaultSession = "none+i3";
};
services.gvfs.enable = true;
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
security = user
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 192.168.0. 127.0.0.1 localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares = {
public = {
path = "/mnt/Shares/Public";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "username";
"force group" = "groupname";
};
private = {
path = "/mnt/Shares/Private";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "username";
"force group" = "groupname";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
users.users.azareii = {
isNormalUser = true;
description = "Azareii";
extraGroups = [ "networkmanager" "wheel" "input" ];
packages = with pkgs; [];
};
# Enable automatic login for the user.
services.getty.autologinUser = "azareii";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
environment.interactiveShellInit = ''
alias s='sudo'
alias svim='sudo nvim'
alias sysup='sudo nixos-rebuild switch'
alias cfg='sudo nvim /etc/nixos/configuration.nix'
alias i3cfg='nvim /home/azareii/.config/i3/config'
alias gendir='cd /nix/var/nix/profiles'
alias gc='nix store gc'
alias joblist='nvim /home/azareii/Documents/joblist.txt'
'';
programs.steam.enable = true;
# programs.neovim = {
# enable = true;
# configure = {
# customRC = ''
# set number
# set ai
# '';
# };
# defaultEditor = true;
# viAlias = true;
# vimAlias = true;
# };
environment.systemPackages = with pkgs; [
#Utilities
libinput-gestures
i3status
xfce.thunar-volman
xfce.thunar-archive-plugin
xfce.thunar-media-tags-plugin
xfce.xfconf
gvfs
lxqt.lxqt-policykit
feh
autotiling
alsa-utils
cope
ripgrep
nerdfonts
# coreutils-full
#CLI Apps
wget
git
fwupd
autoPatchelfHook
neofetch
cmus
btop
brightnessctl
playerctl
unzip
cargo
rustup
#GUI Apps
kitty
pavucontrol
i3lock-blur
j4-dmenu-desktop
vivaldi
flameshot
gimp
xorg.xev
lutris
krita
musescore
xfce.thunar
];
#Required at bottom of file; do not edit or remove.
system.stateVersion = "23.11";
}