philr has joined #nix-darwin
trcc has joined #nix-darwin
periklis has joined #nix-darwin
periklis has quit [Ping timeout: 260 seconds]
philr has quit [Quit: WeeChat 2.2]
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 250 seconds]
carlosdagos has quit [Quit: Connection closed for inactivity]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 245 seconds]
trcc has joined #nix-darwin
trcc has quit [Remote host closed the connection]
trcc has joined #nix-darwin
trcc has quit [Ping timeout: 252 seconds]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
<
cransom>
hrm. i should have done a nix upgrade before installing mojave, shouldn't i.
<
nikivi>
I get this when I start the shell. I just upgraded to Mojawe
<
nikivi>
dyld: Library not loaded: /usr/lib/system/libsystem_network.dylib
<
nikivi>
Referenced from: /nix/store/2cqdl7qvk9skzag962v9y2a3ga3sm699-Libsystem-osx-10.11.6/lib/libSystem.B.dylib
<
nikivi>
Reason: image not found
<
nikivi>
anyone else get this?
<
cransom>
yeah. i've got that when i run just a `sudo -s`
<
cransom>
but i'm not on a recent nix
* cransom
installs nix.
<
cransom>
next time around, i'll try a pre-emptive upgrade before the os update
<
nikivi>
I can't run binaries too now
<
nikivi>
get same error
<
nikivi>
cant run anything
<
LnL>
yeah, you need 2.1 and a nixpkgs about <1month old
<
cransom>
i only get that error on some terminals
<
cransom>
if i ssh in, seems fine. different window in iterm2, also fine
<
nikivi>
how can I get 2.1 nix
<
cransom>
that's what i'm currently doing
<
LnL>
yes, but depending on if you had a multi-user install it will complain
<
nikivi>
I did have mutli install
<
nikivi>
should I nuke nix first?
<
cransom>
it won't run unless you purge it, so yes.
<
LnL>
yeah, multi-user needs to start fresh
<
LnL>
the simple single-user install is the default again, it's simpler to upgrade but depending on your usage I'd recommend using the daemon
<
nikivi>
but I will lose all the packages I installed with nix
<
nikivi>
do I have to write them down in notes
<
nikivi>
so I manually instl each one again
<
nikivi>
the worst thing is I dont even know what I have installed now
<
nikivi>
as I can't run any command
<
nikivi>
due to this issue
<
LnL>
before you nuke the store copy ~/.nix-profile/manifest.nix somewhere
<
nikivi>
cant even edit it in vim
<
nikivi>
will try sublime text
<
LnL>
that contains all the metadata of what you currently have installed
<
nikivi>
so rm -rf /nix
<
LnL>
yes, not ideal but sounds like most of it won't work anymore
<
nikivi>
most of it?
<
nikivi>
what do you mean
<
nikivi>
should people use brew for now?
<
nikivi>
I dont think I can run rm -rf
<
nikivi>
as I can't run any command
<
cransom>
i think he meant all of the previous packages installed won't work on mojave.
<
nikivi>
due to above issue
<
cransom>
did you try opening a new terminal?
<
nikivi>
I cant run rm -rf
<
LnL>
nixpkgs-unstable works fine, but you didn't have anything compatible installed
<
LnL>
hmm, coreutils? try /bin/rm
<
nikivi>
oh no rm -"f
<
nikivi>
rm -rf works
<
nikivi>
i get permission deined logs
<
nikivi>
so will try with sudo
<
nikivi>
should of asked you guys if nix was ready for Mojawe
<
nikivi>
didnt think it would mess up everything
<
nikivi>
so now that /nix is gone
<
nikivi>
will I get a choice for multi install there
<
nikivi>
with the daemon thing LnL reccomends
<
nikivi>
why does it default to single user
<
nikivi>
does single user have less bugs
<
LnL>
no but it's easier to manage
<
nikivi>
For some reason, $NIX_REMOTE is set. It really should not be set
<
nikivi>
before this installer runs, and it hints that Nix is currently
<
nikivi>
installed.
<
nikivi>
I nuked /nix
<
nikivi>
with new shell I get
<
nikivi>
There are some relics of a previous installation of Nix at /etc/nix, and
<
nikivi>
this scripts assumes Nix is
_not_ yet installed. Please delete the old
<
nikivi>
Nix installation and start again.
<
LnL>
ah yeah, unsetting NIX_REMOTE might not be fixed yet
<
nikivi>
do I nuke /etc/nix too?
<
nikivi>
I now get why people use brew still :D
<
nikivi>
still fails
<
nikivi>
When this script runs, it backs up the current /etc/bashrc to
<
nikivi>
Please follow these instructions to clean up the old backup file:
<
nikivi>
1. Copy /etc/bashrc and /etc/bashrc.backup-before-nix to another place, just
<
nikivi>
2. Take care to make sure that /etc/bashrc.backup-before-nix doesn't look like
<
nikivi>
it has anything nix-related in it. If it does, something is probably
<
nikivi>
quite wrong. Please open an issue or get in touch immediately.
<
nikivi>
3. Take care to make sure that /etc/bashrc doesn't look like it has
<
nikivi>
anything nix-related in it. If it does, and /etc/bashrc _did not_,
<
nikivi>
will try all 3 steps now
<
LnL>
maybe the multi-user installer is a little overly cautious :)
<
nikivi>
I did all that
<
nikivi>
still fails
<
nikivi>
copied the file in 1.
<
nikivi>
checked 2. and 3.
<
nikivi>
no nix in there
<
cransom>
i dind't have any problem just copy pasting all of the commands it suggests and rerunning.
<
nikivi>
il just try single user install then
<
nikivi>
maybe multi user is bugged
<
cransom>
you didn't if it still asked you to purge /etc/nix
<
nikivi>
well I did that
<
nikivi>
after that I got this 3 step error
<
nikivi>
which I can't pass
<
nikivi>
I get this
<
nikivi>
anyone knows how to solve this?
<
LnL>
^ gchristensen?
<
LnL>
you followed those steps right?
<
cransom>
i've never had the installer cry wolf. if it found something, it was in there and needed to be removed and i could continue on.
<
nikivi>
copied /etc/bashrc and /etc/bashrc.backup-before-nix to Desktop
<
nikivi>
unless I misunderstand what they mean 'contains nix stuff'
<
nikivi>
I dont see nix stuff there
<
nikivi>
but maybe I am wrong
<
nikivi>
and have to nuke something again
<
nikivi>
will running single user install work?
<
nikivi>
I guess I dont need the multi user install and daemon
<
nikivi>
+ LnL says its harder to maintain
<
LnL>
you don't have to, you loose some isolation benefits but it's easier to upgrade
<
nikivi>
I guess I just want nix to work
<
nikivi>
as I miss some core tools
<
nikivi>
and it seems I am blocked as no one here buy gchristensen knows whats going on
<
gchristensen>
hummm
<
gchristensen>
was out on a walk
<
nikivi>
gchristensen can provide any necessary info to solve this
<
nikivi>
as I would love to get nix working smoothly
<
nikivi>
if possible on Mojawe
<
nikivi>
perhaps its not possible
<
gchristensen>
nikivi: delete /etc/bashrc.backup-before-nix and try again?
<
nikivi>
thats fine right?
<
gchristensen>
yep!
<
nikivi>
LnL I just believe LnL when he says its 'better'
<
nikivi>
he seems like a smart guy
<
gchristensen>
he is a smart guy
<
gchristensen>
and it is better
<
gchristensen>
although you can see it isn't a good way to start here :)
<
nikivi>
gchristensen didnt help
<
nikivi>
same error
<
gchristensen>
please paste it again
<
gchristensen>
and /etc/bashrc.backup-before-nix does not exist?
<
nikivi>
it was created
<
nikivi>
when I run it
<
nikivi>
I trashed it
<
nikivi>
actually nvm
<
nikivi>
had to sudo it
<
nikivi>
will try again
<
gchristensen>
ah cool ok
<
nikivi>
didnt help
<
nikivi>
same error
<
nikivi>
/etc/bashrc.backup-before-nix does not exist
<
gchristensen>
paste the erroragain and `stat /etc/bashrc.backup-before-nix`
<
nikivi>
❯ stat /etc/bashrc.backup-before-nix
<
nikivi>
stat: /etc/bashrc.backup-before-nix: stat: No such file or directory
<
gchristensen>
When this script runs, it backs up the current /etc/zshrc to
<
gchristensen>
/etc/zshrc.backup-before-nix. This backup file already exists, though.
<
nikivi>
it does now
<
nikivi>
I did rm -rf it with sudo
<
gchristensen>
it is the same as the bashrc
<
nikivi>
prior to running
<
gchristensen>
try `sudo stat /etc/zshrc.backup-before-nix`
<
nikivi>
❯ sudo stat /etc/zshrc.backup-before-nix
<
nikivi>
16777220 884064 -r--r--r-- 1 root wheel 0 207 "Aug 14 15:39:55 2018" "Aug 14 15:39:55 2018" "Sep 24 23:13:04 2018" "Aug 14 15:39:55 2018" 4096 8 0 /etc/zshrc.backup-before-nix
<
gchristensen>
and does /etc/bashrc.backup-before-nix exist?
<
nikivi>
it does now
<
nikivi>
I just enter path in Alfred and it showed
<
nikivi>
now I do same and it doesnt
<
gchristensen>
so /etc/zshrc.backup-before-nix is from August 14, so it wasn't created today
<
nikivi>
running cat on it gives me stuff
<
gchristensen>
do you have a file at /etc/profile.d/nix.sh?
<
nikivi>
what is this magic
<
gchristensen>
what is what magic?
<
nikivi>
and its there
<
nikivi>
its generated by smth I guess
<
gchristensen>
it isn't generated by anything
<
nikivi>
or I messed up command
<
gchristensen>
you rm'd the bashrc
<
nikivi>
❯ cat /etc/profile.d/nix.sh
<
nikivi>
cat: /etc/profile.d/nix.sh: No such file or directory
<
gchristensen>
❯ sudo rm -rf /etc/bashrc.backup-before-nix
<
gchristensen>
❯ cat /etc/zshrc.backup-before-nix
<
gchristensen>
# Correctly display UTF-8 with combining characters.
<
gchristensen>
you didn't delete the file you thought you did
<
nikivi>
oh you are right
<
nikivi>
should I rm /etc/zshrc.backup-before-nix?
<
nikivi>
and run installer?
<
nikivi>
new error!
<
gchristensen>
what version of macOS?
<
nikivi>
just installed
<
gchristensen>
LnL: ruh roh
<
gchristensen>
better go --no-daemon route :(
<
nikivi>
so just run ^
<
nikivi>
I ran installer
<
nikivi>
Installation finished! To ensure that the necessary environment
<
nikivi>
variables are set, please add the line
<
nikivi>
. /Users/nikivi/.nix-profile/etc/profile.d/nix.sh
<
nikivi>
to your shell profile (e.g. ~/.profile).
<
nikivi>
I don't have `~/.profile`
<
nikivi>
I should make it
<
nikivi>
which nix and which nix-env return nothing for me
<
nikivi>
should I make it?*
<
nikivi>
I did that
<
nikivi>
❯ which nix
<
nikivi>
nix not found
<
nikivi>
❯ cat ~/.profile
<
nikivi>
. /Users/nikivi/.nix-profile/etc/profile.d/nix.sh
<
nikivi>
opened new shell to test
<
nikivi>
installation was very fast though
<
nikivi>
I think it didn't complete fully
<
gchristensen>
your ~/.profile probably wasn't loaded, you'll need to consult the docs for your shell on which file to add the line to
<
nikivi>
so I guess I'll add it to my ~/.zshrc
<
nikivi>
is this a new thing to nix
<
nikivi>
I didn't have this line added anywhere before
<
nikivi>
and it worked
<
nikivi>
its nowhere in my dotfiles
wildsebastian has quit [*.net *.split]
LnL has quit [*.net *.split]
LnL has joined #nix-darwin
<
gchristensen>
you probably had the multi-user version before ,which didn't need anything in your profile
<
gchristensen>
but evidently multi-user installation is broken on the new version
<
nikivi>
okay awesome
<
nikivi>
thank you a lot gchristensen
<
nikivi>
nix and nix-env is in my path
<
nikivi>
is it possible to install all packages I had installed with nix?
<
nikivi>
I have the manifest.nix file
<
nikivi>
I dont remember what I installed
<
nikivi>
and cant retrieve it in any way :(
<
nikivi>
ill do it manually and parse manifest
<
nikivi>
although LnL said I can't install packages?
<
nikivi>
so I can't install things like yarn, fzf
<
nikivi>
I install with `nix-env -f '<nixpkgs>' -iA exa`
<
nikivi>
but `which yarn` returns nothing
<
nikivi>
is it possible to fix this?
<
nikivi>
I want to help because it literally makes nix unusable on nix if you can't install packages
<
gchristensen>
sorry, this is a tough time for support -- it is quite late for most of s
<
nikivi>
yeah it is for me
<
nikivi>
just I got work tomorrow and nix these core tools working
<
gchristensen>
#nixos might be able to help more
<
nikivi>
will ping here tomorrow if thats okay
<
nikivi>
maybe it was my bad installing mojawe
<
nikivi>
I thought nix would work on it
<
nikivi>
as its stable release
<
gchristensen>
unfortunately Apple finds new and exciting ways to break Nix every release as they iOS-ify the OS
<
nikivi>
I wonder if anyone at Apple uses Nix
<
nikivi>
I guess not
<
nikivi>
seems to all use brew
<
nikivi>
or macports
<
nikivi>
thanks for the help though gchristensen
<
nikivi>
I appreciate it
<
gchristensen>
cheers :)
<
gchristensen>
good luck
jtojnar has joined #nix-darwin