codedmart has quit [*.net *.split]
manveru has quit [*.net *.split]
sellout- has quit [*.net *.split]
yastero has quit [*.net *.split]
puffnfresh has quit [*.net *.split]
dtz has quit [*.net *.split]
dhess has quit [*.net *.split]
adulteratedjedi has quit [*.net *.split]
pikajude has quit [*.net *.split]
{^_^} has quit [*.net *.split]
fsestini has quit [*.net *.split]
henrytill has quit [*.net *.split]
samueldr has quit [*.net *.split]
nikivi has quit [*.net *.split]
Biappi has quit [*.net *.split]
philipcristiano has quit [*.net *.split]
wavewave has quit [*.net *.split]
LnL has quit [*.net *.split]
seafjord[m] has quit [*.net *.split]
gleber_ has quit [*.net *.split]
zimbatm has quit [*.net *.split]
savanni has quit [*.net *.split]
shlevy has quit [*.net *.split]
stqism has quit [*.net *.split]
ilovezfs_ has quit [*.net *.split]
cbarrett has quit [*.net *.split]
angerman has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
carter has quit [*.net *.split]
gchristensen has quit [*.net *.split]
qqlq has quit [*.net *.split]
disasm has quit [*.net *.split]
ben has quit [*.net *.split]
prooftechnique has quit [*.net *.split]
codyopel has quit [*.net *.split]
mightybyte has quit [*.net *.split]
clever has quit [*.net *.split]
dmj` has quit [*.net *.split]
gaqzi has quit [*.net *.split]
victorbjelkholm has quit [*.net *.split]
copumpkin has quit [*.net *.split]
ambrosia has quit [*.net *.split]
scode has quit [*.net *.split]
justinweiss has quit [*.net *.split]
kaychaks has quit [*.net *.split]
sphalerite has quit [*.net *.split]
elvishjerricco has quit [*.net *.split]
peel[m] has quit [*.net *.split]
ldlework has quit [*.net *.split]
adelbertc has quit [*.net *.split]
benley has quit [*.net *.split]
acowley has quit [*.net *.split]
cransom has quit [*.net *.split]
smj has quit [*.net *.split]
thefloweringash[ has quit [*.net *.split]
ntucker has quit [*.net *.split]
mitchty has quit [*.net *.split]
johnw has quit [*.net *.split]
thefloweringash has quit [*.net *.split]
dredozubov has quit [*.net *.split]
Sonarpulse has quit [*.net *.split]
elasticdog has quit [*.net *.split]
contrapumpkin has quit [*.net *.split]
munch has quit [*.net *.split]
pjan has quit [*.net *.split]
fsestini has joined #nix-darwin
codedmart_ has joined #nix-darwin
elasticdog has joined #nix-darwin
stqism has joined #nix-darwin
sphalerite has joined #nix-darwin
Sonarpulse has joined #nix-darwin
munch has joined #nix-darwin
justinweiss has joined #nix-darwin
adelbertc has joined #nix-darwin
cransom has joined #nix-darwin
cbarrett has joined #nix-darwin
qqlq has joined #nix-darwin
ldlework has joined #nix-darwin
victorbjelkholm has joined #nix-darwin
disasm has joined #nix-darwin
samueldr has joined #nix-darwin
copumpkin has joined #nix-darwin
clever has joined #nix-darwin
elvishjerricco has joined #nix-darwin
peel[m] has joined #nix-darwin
dmj` has joined #nix-darwin
pjan has joined #nix-darwin
gleber_ has joined #nix-darwin
Biappi has joined #nix-darwin
{^_^} has joined #nix-darwin
wavewave has joined #nix-darwin
seafjord[m] has joined #nix-darwin
dredozubov has joined #nix-darwin
pikajude has joined #nix-darwin
ntucker has joined #nix-darwin
angerman has joined #nix-darwin
scode has joined #nix-darwin
ben has joined #nix-darwin
manveru_ has joined #nix-darwin
mitchty has joined #nix-darwin
contrapumpkin has joined #nix-darwin
ilovezfs_ has joined #nix-darwin
acowley has joined #nix-darwin
philipcristiano has joined #nix-darwin
thefloweringash[ has joined #nix-darwin
gridaphobe has joined #nix-darwin
shlevy has joined #nix-darwin
gaqzi has joined #nix-darwin
prooftechnique has joined #nix-darwin
codyopel has joined #nix-darwin
LnL has joined #nix-darwin
kaychaks has joined #nix-darwin
gchristensen has joined #nix-darwin
nikivi has joined #nix-darwin
ambrosia has joined #nix-darwin
savanni has joined #nix-darwin
benley has joined #nix-darwin
carter has joined #nix-darwin
johnw has joined #nix-darwin
smj has joined #nix-darwin
mightybyte has joined #nix-darwin
henrytill has joined #nix-darwin
zimbatm has joined #nix-darwin
thefloweringash has joined #nix-darwin
dustinm has quit [Max SendQ exceeded]
dustinm has joined #nix-darwin
peel[m] has quit [Ping timeout: 256 seconds]
seafjord[m] has quit [Ping timeout: 256 seconds]
copumpkin has quit [Ping timeout: 260 seconds]
thefloweringash[ has quit [Ping timeout: 248 seconds]
codyopel has quit [Ping timeout: 256 seconds]
jtojnar has joined #nix-darwin
seafjord[m] has joined #nix-darwin
codyopel has joined #nix-darwin
dtz has joined #nix-darwin
thefloweringash[ has joined #nix-darwin
copumpkin has joined #nix-darwin
peel[m] has joined #nix-darwin
sellout- has joined #nix-darwin
puffnfresh has joined #nix-darwin
adulteratedjedi has joined #nix-darwin
dhess has joined #nix-darwin
yastero has joined #nix-darwin
puffnfresh has joined #nix-darwin
puffnfresh has quit [Changing host]
puffnfresh has quit [Ping timeout: 246 seconds]
thefloweringash[ has quit [Ping timeout: 245 seconds]
peel[m] has quit [Ping timeout: 255 seconds]
seafjord[m] has quit [Ping timeout: 255 seconds]
copumpkin has quit [Ping timeout: 255 seconds]
codyopel has quit [Ping timeout: 255 seconds]
dtz has quit [Ping timeout: 256 seconds]
seafjord[m] has joined #nix-darwin
<shlevy> Nice!
fsestini has quit [Quit: fsestini]
ryanartecona has joined #nix-darwin
dtz has joined #nix-darwin
codyopel has joined #nix-darwin
thefloweringash[ has joined #nix-darwin
puffnfresh has joined #nix-darwin
copumpkin has joined #nix-darwin
peel[m] has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
ryanartecona has quit [Quit: ryanartecona]
philr has joined #nix-darwin
philr has quit [Quit: WeeChat 2.0.1]
stqism has quit [Ping timeout: 252 seconds]
stqism has joined #nix-darwin
__Sander__ has joined #nix-darwin
manveru_ is now known as manveru
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
ryanartecona has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jtojnar has quit [Remote host closed the connection]
<gchristensen> $ /usr/bin/dscl . -read "/USers/nixbld3" RealName
<gchristensen> RealName:
<gchristensen> Nix build user 3
<gchristensen> is there a way to tell it not to print "RealName:\n " ?
<gchristensen> best I can get to is: $ /usr/bin/dscl -plist . -read "/USers/nixbld3" RealName | plutil -extract dsAttrTypeStandard:RealName json -o - -
<gchristensen> ["Nix build user 3"]
<LnL> not that I know of
<gchristensen> ok well I can get "close enough"
<LnL> there's also -raw or something but that also did something strange
<gchristensen> if poly_user_note_get "$username" | grep -q "Nix build user $coreid" ]; then
<LnL> I'd have to look at nix-darwin
philr has joined #nix-darwin
<gchristensen> holy mother of mercy
<gchristensen> ~> Setting up the build user nixbld26
<gchristensen> /Users/graham/nix-inst/oeu/nix-2.0pre0_0000000-x86_64-darwin/install-multi-user: line 456: [: : integer expression expected
<gchristensen> actual_uid=$(poly_user_id_get "$username")
<gchristensen> if [ "$actual_uid" -ne "$uid" ]; then
<gchristensen> on darwin, evidently, it is possible for a user to exist without a UniqueID
ryanartecona has quit [Quit: ryanartecona]
philr has quit [Ping timeout: 256 seconds]
<LnL> huh
<dhess> LnL: dumb question time. I've upgraded to Nix 2.0 on all of my systems, including my Macs. I am running nix-darwin and that is also using nix.package = nixUnstable. But when I nix-shell, things like nix-instantiate point to the default profile which is still nix-1.1x
<dhess> and I can't figure out how to upgrade it
<dhess> the only channel I have in my user account is nix-darwin. I use nixpkgs from a git checkout
<LnL> darwin-option system.stateVersion
<dhess> 2
<LnL> if you update you might want to bump that
<dhess> bump it to what, 3?
<LnL> yes, check the changelog
<dhess> I have been treating that like the NixOS equivalent, which means I never touch it on threat of death :)
<LnL> what about this: darwin-option nix.version
<dhess> error: attribute 'version' missing, at (string):1:77
<dhess> is there a way to see the changelog from the command line? The only time I see it is when I darwin-rebuild
<LnL> oh, then you're not on the latest version
<dhess> it's been a week or two
<LnL> since when did it break?
<dhess> As far as I know the default profile has been using nix 1.1x since I installed it
<dhess> I only noticed when I started using the 2.0 builtins.fetchTarball stuff to pin dependencies
<LnL> yes, but not if you set nix.package
<dhess> and then when I would nix-shell, nix-instantiate complained that it didn't sexist
<dhess> I do have nix.package set to nixUnstable
<dhess> so that is what I see in my own environment. And "nix" works in a nix-shell. But nix-instantiate is 1.1x in a nix-shell
<LnL> yeah, then it shouldn't use the default profile
<dhess>  nix-instantiate --version
<dhess> nix-instantiate (Nix) 2.0
<dhess>
<LnL> hmm?
<dhess> that's from my normal shell
<dhess> but from inside a nix-shell:
<dhess> $ nix-instantiate --version
<dhess> nix-instantiate (Nix) 1.11.16
<dhess>
<LnL> oh!
<dhess> $ which nix-instantiate
<dhess> /nix/var/nix/profiles/default/bin/nix-instantiate
<dhess>
<LnL> type nix-instantiate
<LnL> what about PATH?
<dhess> nix-instantiate is hashed (/nix/var/nix/profiles/default/bin/nix-instantiate)
<dhess>
<dhess> path is huge
<dhess> let me try the stateVersion
<dhess> see if that changes anything
<dhess> I'll also update nix-darwin
<dhess> (I am having this same problem on my NixOS boxes as well, by the way)
<dhess> but it's not really a problem there as I almost never build on those anymore, now that I've gotten remote builds working so well on macOS
<LnL> yeah I didn't get the nix-shell part at first
<LnL> I think I might know what's going on
<dhess> yeah it's only a problem in nix-shell
<dhess> and I just can't figure out how to upgrade the default profile
<dhess> since I don't have a "root" channel
<LnL> grep IN_NIX_SHELL /etc/bashrc
<dhess> nothing
<LnL> ah you probably didn't overwrite it then
<LnL> grep IN_NIX_SHELL /etc/static/bashrc
<dhess> if test -n "$IN_NIX_SHELL"; then return; fi
<dhess>
<LnL> so I'm guessing something else is prepending PATH anyway
<LnL> maybe from the original installer?
<dhess> so you think it's a path issue?
<dhess> what is your "type nix-instantiate" inside a nix-shell ?
<dhess> oh I see
<dhess> I have "/nix/var/nix/profiles/per-user/root/channels" in my nix.nixPath in darwin-configuration.nix
<dhess> I got that from one of your examples I think
<dhess> maybe that's it
<LnL> I get /run/current-system
<dhess> huh
<LnL> but I use zsh so that might be the reason
<dhess> do you have a nix.nixPath in your darwin-configuration.nix ?
<LnL> yes, but that shouldn't matter
<LnL> NIX_PATH is for nixpkgs lookups etc
<dhess> oh well uhh
<dhess> I just updated the nix-darwin channel and I see this:
<dhess> default nix.package no longer uses the default profile.
<dhess> so like, that's probably it :)
<LnL> that's only about nix.package = mkDefault pkgs.nix
<dhess> err well. no
<LnL> whatever you're running into is something else
<dhess> ok so my original question was, how do I upgrade the default profile?
<dhess> without a root channel?
<LnL> nix-env -p /nix/var/nix/profiles/default ...
<dhess> ok so I think I have identified the issue. In my nix-shell, /run/current-system/sw/bin comes after /nix/var/nix/profiles/default
<dhess> but in my normal shell, it comes *before* /nix/var/nix/profiles/default
<LnL> yeah, question is why
<dhess> what is in your ~/.nix-profile/etc/profile.d directory?
<dhess> Mine has just command-not-found.sh
<dhess> but my .bashrc (written long ago, before the new Nix installer for macOS) looks for ~/.nix-profile/etc/profile.d/nix.sh, which no longer exists
<dhess> has that moved somewhere?
<LnL> you should find those in the default profile
<dhess> hmm ok
jtojnar has joined #nix-darwin
<LnL> with multi-user nix is no longer installed in the user profile
<LnL> but unless those are sourced explicitly somewhere they are not used
<dhess> it was being sourced in my .bashrc
<dhess> ok I'm pointing to the default profile for that now
<LnL> aha
<dhess> but it didn't fix this issue
<LnL> that won't get skipped in nix-shell
<LnL> unlike the darwin parts
<gchristensen> LnL: can you help with a dscl question?
<dhess> what is your NIX_PROFILES env variable? Mine is NIX_PROFILES=/nix/var/nix/profiles/default /run/current-system/sw /Users/dhess/.nix-profile
ryanartecona has joined #nix-darwin
<LnL> gchristensen: eating, ping me in a bit
<dhess> LnL: I'm pretty sure it's nix-daemon.sh that's putting /nix/var/nix/profiles/default ahead of /run/current-system/sw in my nix-shell.
<gchristensen> LnL: no worries :)
<dhess> does my nix-daemon.sh look wrong or out of date?
<dhess> gchristensen: are you running nix-darwin?
<gchristensen> I'm not right now
<dhess> oh ok
<gchristensen> I've erased nix off my laptop about 25,000 times today
<LnL> euh? yes
<dhess> oh that's fun
<dhess> LnL: "euh? yes" what is that in reference to? :)
<LnL> the question if I use nix-darwin myself
<dhess> LnL: I was asking gchristensen of course :)
<LnL> err sorry, I'm distracted thought that was gchristensen asking me
<dhess> hehe no worries
<gchristensen> go eat ;)
<dhess> gchristensen: https://registration.nixcon2018.org is down :(
<dhess> I guess it's not really mean to be public yet? But of course the CFP is so naturally the next place I click is "Register" :)
<dhess> "not really mean*t* to be public" is what I mean*t* :)
<LnL> gchristensen: what's the issue exactly?
<gchristensen> do you know if it is possible to use dscl create and set multiple attributes at a time?
<LnL> I think so yes
<gchristensen> I thought so too, but it doesn't seem to work :P
<gchristensen> hmm ok
<LnL> remember trying to avoid a race condition with ctrl-c
<gchristensen> yeah :|
<gchristensen> exactly
<LnL> also
<LnL> setting membership works regardless if the users actually exist https://github.com/LnL7/nix-darwin/blob/master/modules/users/default.nix#L76
<gchristensen> omg
<LnL> and that is required for the getent call to work IIRC
<gchristensen> cool
<gchristensen> I think my new installer is ready to go!
<gchristensen> my favorite part about `vagrant up` a macos VM is how it absolutely crushes my IO
<dhess> LnL: so any thoughts on this nix-daemon.sh ? Does it look like yours? Pretty sure this is where the injection of the default profile in front of /run/current-system/sw/bin in PATH is coming from. https://gist.github.com/dhess/373d6d4ca0284376be3b8501f7931120
<LnL> removing the nix-daemon.sh lines from your bashrc should fix the problem
<dhess> from the /etc/bashrc you mean?
<LnL> yes
<dhess> ok. So that was inserted by the Nix installer and is not needed by nix-darwin, if it's managing the nix-daemon?
<dhess> sweet, that did the trick. Thanks!
<dhess> I assume this is going to come up for lots of people who installed nix with the Nix installer and then installed nix-darwin after, once they've upgraded to Nix 2.0.
<gchristensen> I thoughtnix-darwin handled it automatically
<LnL> it's not needed in any case, both single and multi user installs work with the bashrc from nix-darwin
<dhess> I never edited that file myself. This was just the result of running the multi-user Nix installer for macOS and then installing nix-darwin
<dhess> and answering "yes" to the question of whether nix-darwin should manage the daemon.
<LnL> yeah, the installer doesn't remove it explicitly
<dhess> to be clear, nix-shell has always worked fine until I upgraded to Nix 2.0. nix-shell still worked after that, *but* the nix-* tools in the nix-shell were using the 1.1x version that was originally installed by the Nix installer, not the 2.0 versions, because of this path issue.
<LnL> if you upgraded the default profile to 2.0 you wouldn't notice it :)
<dhess> yes! But I did not know how to do that since (as I think people have advised with Nix on macOS) I did not have a root channel
<LnL> yeah, I should probably add a warning
<dhess> LnL: does the nix-daemon use the default profile? Or does it have its own?
<LnL> it uses nix.package
<dhess> ok cool
<dhess> thanks for the help!
<dhess> this has been driving me nuts
<gchristensen> LnL: do you have ideas on ways to make the Nix installer nicer for darwin users?
<LnL> provide some way to manage the system nix version and daemon
<gchristensen> :$
<LnL> also a lot of people don't like the fact that they need sudo to update the channel
<gchristensen> that is very nasty
<gchristensen> maybe having Linux users be multi-user will push this problem to the forefront of more people's heads, and will get us a nice solution?
<gchristensen> :%
<gchristensen> ohh just add that to the installer?
<LnL> and don't use sudo for the nix-channel stuff
<gchristensen> that seems harder to change
<LnL> why)
<LnL> ?
<LnL> it's just a file :D
<gchristensen> lol
<gchristensen> not _actually_ change but more thought required behind that change
<LnL> ah, true
<gchristensen> where as
<gchristensen> adding to user's channel location to the NIX_PATH seems much easier
<gchristensen> I thought, though, that we didn't need the user's channels in NIX_PATH, and that it just sort of worked magically?
* gchristensen inspires confidence
jtojnar has quit [Ping timeout: 256 seconds]
<LnL> only for nix-env
<LnL> nix-build '<nixpkgs>' -A hello wouldn't work
<gchristensen> ah
<LnL> and you don't want to make it more complicated and make those different things :p
<gchristensen> :P
<gchristensen> I agree
* LnL reads fpm and runs away...
<gchristensen> lol
<gchristensen> so I think it is a good idea to add that to the NIX_PATH
<gchristensen> perhaps as a follow-up PR to the ones I have in
<gchristensen> I don't want to overload them too much and open their scope too much
<LnL> oh yeah, not saying you have to do it
<gchristensen> I don't have to do anything...
<gchristensen> I'm doing it all because I want to make Nix nicer for people not using NixOS
<LnL> totally agree there, except for the new user stuff
<gchristensen> new user stuff?
<LnL> a single user install is pretty appealing for people trying out nix for the first time
<LnL> since uninstall is a single command
<gchristensen> ahh
<LnL> but the user separation is a really good reason to use the daemon by default
<dhess> except that with multi-user, lots of build stuff runs as root
<dhess> which is arguably even more dangerous than running everything as yourself
<gchristensen> LnL: Would you like to manage <darwin> with nix-channel? [y/n] y
<gchristensen> error: creating directory '/nix/var/nix/channel-cache': Permission denied
<LnL> :/
jtojnar has joined #nix-darwin
<gchristensen> LnL: I love nix-darwin
<gchristensen> thank you so much for it
<gchristensen> it saves me so much headache
<LnL> I'm not following, is the installer broken?
<gchristensen> well, that part didn't seem to work
<gchristensen> I added the darwin channel manually then reran the installer and it worked nicely
<LnL> there's nothing in there on my machines
ryanartecona has quit [Quit: ryanartecona]
<gchristensen> hrm
<gchristensen> I don't know, it is hard to look more right now, I have family visiting
<gchristensen> I can dive in more tomorrow, _maybe_ tonight
yastero has quit [Ping timeout: 246 seconds]
<gchristensen> LnL: I don't want to put more work on your plate, but it'd be really helpful to have a set of acceptance criteria for the installer to flesh out what should and shouldn't work out of the box
<LnL> hmm, can you give an example?
<gchristensen> like the thing about adding a channel as a user should let it work for nix-env and nix-build
<gchristensen> my testing on each of those distros was super manual and a set of commands I ran and looked for normal behavior, but isn't written down anywhere, and it'd be neat to be able to write them down so future changes to the installer can be validated easier
<gchristensen> and validated more consistently
yastero has joined #nix-darwin
pxc has joined #nix-darwin
<LnL> oh, you're not talking about my nix-darwin installer
pxc has quit [Ping timeout: 256 seconds]
pxc has joined #nix-darwin
ryanartecona has joined #nix-darwin
<johnw> shlevy: yeah, there are things I rely on that are marked broken :(
<johnw> guess I have to wait for the libseccomp fix
<LnL> doesn't that mean they are not broken?
<johnw> hah
<johnw> i guess not for me
<johnw> dunno why they're marked that way
<johnw> dovecot-pigeonhole is the one I can't do without
<LnL> probably platforms = platforms.linux;
<johnw> yep!
<johnw> i'll fix that
<LnL> :D
<johnw> I wonder why git-status in my nixpkgs directory is SO SLOW
<johnw> Magit takes over a full minute just to create a commit
<johnw> ok, about 5 packages just needed linux -> unix, pushed that change to master
pxc has quit [Ping timeout: 248 seconds]
<LnL> weird, try a git prune
<johnw> a git peach is tastier
<johnw> the problem is that I'm pulling the PR refspace
<johnw> to make it easier to try out PRs
<johnw> but there are just SO MANY
<johnw> it leads to having 1+ million git objects
<LnL> oh yeah I did that once but removed it pretty quickly afterwards
<johnw> yeah, I'll proabbly ahve to also
<johnw> there are 36,995 refs related to PRs
<LnL> I just do a git fetch origin refs/pull/$pr/head:pr-$pr manually
pxc has joined #nix-darwin
ryanartecona has quit [Quit: ryanartecona]
pxc has quit [Ping timeout: 264 seconds]
ryanartecona has joined #nix-darwin
<johnw> hey, there's an idea
ryanartecona has quit [Quit: ryanartecona]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
pxc has joined #nix-darwin
pxc has quit [Ping timeout: 240 seconds]