graphene has quit [Remote host closed the connection]
graphene has joined #nixos
andymandias has quit [Ping timeout: 268 seconds]
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi has joined #nixos
Neo-- has quit [Ping timeout: 264 seconds]
sbdchd has joined #nixos
andymandias has joined #nixos
pie_ has quit [Ping timeout: 260 seconds]
testuser has quit [Ping timeout: 244 seconds]
erratic has joined #nixos
cottongin191811 has joined #nixos
mekeor has quit [Ping timeout: 265 seconds]
<cottongin191811>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
cottongin191811 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
Neo-- has joined #nixos
Guest90715 has quit [Ping timeout: 248 seconds]
<kalbasit>
has anyone created a script that finds outdated derivations?
galaxite has joined #nixos
<dweller>
it shouldnt be that hard
<kalbasit>
but I hate to re-invent the wheel :)
<dweller>
although afaik version definition isnt standardized
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fNrLB
obadz has quit [Ping timeout: 264 seconds]
hiroshi has quit [Ping timeout: 240 seconds]
hiroshi has joined #nixos
dbmikus_ has joined #nixos
obadz has joined #nixos
aanderse-laptop has joined #nixos
dbmikus_ has quit [Ping timeout: 256 seconds]
<galaxite>
I'm still having trouble with my nvidia card. I've tried loading nvidia drivers, nvidia and intel drivers, using bumblebee, and using the nvidia PRIME solution provided by the wiki. The one thing I haven't been able to try is ambrop72's solution here: https://github.com/NixOS/nixpkgs/issues/24711
<{^_^}>
#24711 (by ghost, open): Nvidia, Bumblebee, Hybrid Graphics, Nothing Working on NixOS 17.03
<galaxite>
It says that hardware.nvidia.optimus_prime doesn't exist
<galaxite>
The error message when I try to run nixos-rebuild, that is.
<galaxite>
Is there a version of nixos where it's possible for me to try that fix?
m71218 has joined #nixos
<m71218>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<m71218>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<dweller>
i know nix is functional language but still
<dweller>
you could do better
Neo-- has quit [Ping timeout: 244 seconds]
<emily>
better than what?
pie__ has joined #nixos
<dweller>
haskell
07IADHJKA has joined #nixos
<07IADHJKA>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<07IADHJKA>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<JamesR1917186>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<JamesR1917186>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<07IADHJKA>
A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<JamesR1917186>
A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
92AADMI8H has joined #nixos
<92AADMI8H>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<92AADMI8H>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<{^_^}>
#43691 (by Ma27, open): termite: factor wrapper out into its own file
<samueldr>
for that terminal session you will "login"
<iqubic>
So I have to actually shut down my graphical environment?
<demize>
If you just need it in one terminal you can also use newgrp to 'log in' to a group.
<iqubic>
No.
burnout_28281456 has joined #nixos
07EABRUKM has joined #nixos
07EABRUKJ has joined #nixos
07EABRUKI has joined #nixos
<07EABRUKI>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<07EABRUKJ>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<samueldr>
demize: TIL
<07EABRUKM>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<burnout_28281456>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<07EABRUKI>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<07EABRUKJ>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<07EABRUKM>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<burnout_28281456>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<07EABRUKJ>
A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
the has quit [Excess Flood]
<burnout_28281456>
A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
<07EABRUKM>
A fascinating blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/
blonkhart has joined #nixos
07EABRUKI has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07EABRUKM has quit [Killed (Sigyn (Spam is off topic on freenode.))]
burnout_28281456 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
07EABRUKJ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<iqubic>
I'm trying to get QEMU working in my graphical environment so I can test out GuixSD.
<samueldr>
and they HAD to come and ruin the party :(
<samueldr>
iqubic: try demize's suggestion
<iqubic>
what was demize's suggestion?
<samueldr>
[21:30:51] <demize> If you just need it in one terminal you can also use newgrp to 'log in' to a group.
<iqubic>
Oh. I see.
<iqubic>
I'm not sure how that would help me with QEMU.
<demize>
samueldr: It's sort of an archaic command these days, but things like it are the reason that /etc/groups has a password field. If you know the password, you can newgrp a group that your user isn't "in".
<demize>
iqubic: You can run whichever QEMU UI from the terminal you newgrp in.
<iqubic>
demize: I don't actually know how QEMU works.
<iqubic>
This is the first virtual machine that I've made.
<iqubic>
samueldr: What program is that in that image?
<samueldr>
virt-manager
<iqubic>
Should I use that?
<iqubic>
And will I be able to follow the instructions on the GuixSD page that I linked?
<samueldr>
no idea as I haven't read that page yet (I will in a few minutes)
<iqubic>
It looks pretty straight forward.
<iqubic>
Thank you for trying to help me.
<samueldr>
what I personally would do is use either virtualbox or virt-manager, but only because I'm lazy to figure out the qemu flags
<iqubic>
I see.
<iqubic>
Doesn't virt-manager run on qemu?
<samueldr>
virt-manager uses qemu as its virtualization backend
<samueldr>
kind of like a library
<iqubic>
I see. I think I'll try that and see if I can get GuixSD to work.
sir_guy_carleton has joined #nixos
<samueldr>
well, I looked at the page
<samueldr>
since the flags are figured out for the user
<demize>
More specifically, virt-manager uses libvirtd, which supports KVM through QEMU, as well as Xen and VirtualBox.
<samueldr>
demize: right
<samueldr>
I'm currently wgetting the guix iso to try the command
<samueldr>
see if it works
<demize>
It sort of supports pretty much any hypervisor you can think of, but dealing with the XML for some of them is rather annoying and really badly documented IIRC.
<iqubic>
samueldr: Thank you for trying to help me.
<samueldr>
no worries, at least if you know it should work, you're not working in vain
<iqubic>
The guide says it should work, so I think there must be *some* way to make it work.
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « python.futures: disable tests on darwin »: https://git.io/fNrYQ
<ekleog>
(untested, there most likely exists a better solution)
<samueldr>
ekleog: are you seriously implying "../" works with those?
<sjanssen>
my computer locked up and rebooted during a nix-build and now I'm getting an error like "/nix/store/3b3bpdjp9isz1jmg8d334g3cy0vjdqlk-msodbcsql17-17.2.0.1-1.drv". Can I do something to clean up whichever corrupted files were left behind?
<samueldr>
(never tried either)
<ekleog>
samueldr: I haven't tried, but wouldn't think the implementation specifically forbids it, and by default it'd likely work
* samueldr
gets all sorts of weird ideas
<ekleog>
my $target = "/etc/$fn";
<ekleog>
(in nixos/modules/system/etc/setup-etc.pl)
<ekleog>
so I'd say it's likely to work :°
<ekleog>
(or maybe break your system in an unrecoverable way apart from reinstalling from scratch, who knows?)
<samueldr>
didn't break, but no file
<iqubic>
samueldr: I now have the iso fetched, and unpacked.
<iqubic>
What should I do now?
<samueldr>
ekleog: next if $name eq "." || $name eq "..";
<samueldr>
iqubic: I used the two commands in the page you linked to me earlier
<samueldr>
making sure to replace `system` in the iso file name
<samueldr>
and it worked
<ekleog>
oh :'(
<iqubic>
Really, that's all.
<iqubic>
??
<mdash>
ekleog: just irritated that there's not a good way to configure the service provided by this nixos module from a nix expr
<iqubic>
Should I install virt-manager at some point?
<samueldr>
iqubic: if your system is configured right, it should
<samueldr>
iqubic: no real need to in that case
<samueldr>
iqubic: but if you're in interested with playing around with virtualization, it's a tool you can try to use
<iqubic>
Really, but how will I launch the VM if I don;t have virt-manager?
<ekleog>
mdash: yes, I agree I don't get either why NixOS environment.etc is restricted to /etc
<samueldr>
iqubic: using the command
<iqubic>
Which command?
<samueldr>
qemu-system-x86_64 [...]
<ekleog>
mdash: a work-around could be to just add a systemd service that pushes your file in the right location
<ekleog>
it won't delete it when it's no longer needed like make-etc.pl does, but that's maybe not a big deal
<samueldr>
I think generally preparing the environment for /var is implemented using systemd
<sjanssen>
nix-store --verify fixed my issue
<ekleog>
(also, anyway make-etc.pl wouldn't delete it, because you don't want random stuff in /var being deleted, usually)
<iqubic>
samueldr: I don't have qemu-img or qemu-system on my $PATH. I assume that means they aren't installed.
<samueldr>
ah, right, that's something you'll need
<samueldr>
,locate bin qemu-img
<{^_^}>
Found in packages: kvm, qemu, qemu_xen, qemu_test
<iqubic>
,locate qemu-system
<{^_^}>
Found in packages: kvm, xen, qemu, qemu_xen, firejail, qemu_test, multibootusb, and 1 more
<samueldr>
,locate bin qemu-system-x86_64
<{^_^}>
Found in packages: kvm, qemu, qemu_xen, qemu_test
<iqubic>
Looks like I'm going to install qemu than.
<samueldr>
yes
<samueldr>
qemu is the right one AFAIK
<samueldr>
"kvm" is an alias to "kvm = qemu_kvm;"
<samueldr>
and qemu_kvm is qemu without other architectures compiled in (at first glance)
<iqubic>
Cool.
graphene has quit [Remote host closed the connection]
<iqubic>
Now, when I run the qemu-img command, what will that do?
graphene has joined #nixos
<samueldr>
may I ask of you that you look it up? `man qemu-img` could be a first thing to look at
<samueldr>
(learn a man how to fish, etc...)
<iqubic>
Alright, so I'm confused.
<iqubic>
qemu-img create -f qcow2 guixsd.img 50G
<iqubic>
That's the command.
<gchristensen>
you should probably ask the guixsd people how to run their image
<iqubic>
How does it know to use the guixsd iso that I have when creating the VM?
realrokka has quit [Read error: Connection reset by peer]
<mdash>
ekleog: the particular thing is gateone, which takes a 'settingsDir' argument, I guess I'll just give it an /etc path
<ekleog>
mdash: oh, that's likely the easiest, if it's a possibility, indeed :)
graphene has quit [Remote host closed the connection]
semilattice has quit [Ping timeout: 240 seconds]
garbas has quit [Quit: WeeChat 2.1]
revtintin has joined #nixos
sbdchd has quit [Remote host closed the connection]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
halfbit has quit [Ping timeout: 256 seconds]
dmc has quit [Quit: WeeChat 2.2]
igo95862 has joined #nixos
shiver has quit [Remote host closed the connection]
d6e has quit [Quit: WeeChat 2.1]
halfbit has joined #nixos
trevthedev has joined #nixos
<trevthedev>
hi
<trevthedev>
someone opened up an issue on nixos for OpenMW being version 42.0 despite the store saying 43.0, and they fixed it by changing the actual version you download to be 43.0, but even after updating, i still just have 42.0
<samueldr>
trevthedev: the usual suspects is either not using the right (nixos) channel
<trevthedev>
I'm on 2.0.4
<samueldr>
or not having updated said channels
<trevthedev>
and I ran nix-channel --update nixpkgs
<trevthedev>
still won't update
<samueldr>
you have a `nixpkgs` channel?
<trevthedev>
wym
<samueldr>
nix-channel --list should list the channels you currently have
<iqubic>
samueldr: I just got the guixsd installer running.
<trevthedev>
guixsd is nice
<trevthedev>
i've a friend who uses it
<trevthedev>
it's the Lispy Nix
<samueldr>
iqubic: 🎉 many here cannot help you with GuixSD specifics, but nice that you got it working
<samueldr>
did you hit any particular snag while setting it up?
<iqubic>
samueldr: I'll go ask people in #guix than.
<iqubic>
,locate cler
<iqubic>
,locate clear
<{^_^}>
Found in packages: clerk, egoboo
<{^_^}>
Found in packages: irssi, meteor, keymon, gitlab, busybox, ncurses6, libreswan, and 2 more
<trevthedev>
How can I update my nix version if I did it wrong?
<trevthedev>
the man says nix-channel --update nixpkgs
<samueldr>
(hmm, pretty sure "clear" won't really be in those)
<samueldr>
,locate bin clear
<{^_^}>
Found in packages: busybox, ncurses6
<samueldr>
part of ncurses6, as usual, don't use busybox :/
<iqubic>
Why is that a part of ncurses? That seems odd for such a common system utility.
<samueldr>
weird, maybe it is also for other distros?
<iqubic>
"clear" just clears the terminal output.
<samueldr>
trevthedev: first off, you're on nixos or using nix on another linux distro?
<trevthedev>
nixos
<samueldr>
good, then a couple assumptions can be made
<trevthedev>
18.03
<samueldr>
the instructions "nix-channel --update nixpkgs" are for users that have installed nix on non-nixos
<trevthedev>
ooh
<trevthedev>
my bad
<samueldr>
(or added such a channel manually)
<trevthedev>
what do i do for nixos then?
<samueldr>
no worries, I see how it could be confused
<samueldr>
when you run "nix-channel --list" are there any listed?
<samueldr>
those are the channels for your user
<trevthedev>
nix-channel --update now throws an error and tries to download from nixos.org/channels/nixos-10.03
<samueldr>
(if there are)
<trevthedev>
hmmm
<samueldr>
10.03 smells like a typo
<trevthedev>
my channel is now 10.03...........
<trevthedev>
how can i fix that?
<trevthedev>
used to be 18.03 xd
<iqubic>
It should be 18.03
<trevthedev>
yea
<samueldr>
you can --remove it and then --add it
<trevthedev>
i haven't ran any commands to change it
<trevthedev>
alright
<samueldr>
(even updating channels is made that way)
<ldlework>
verbs tell you what the places do: vecnu - x1 sells x2 to buyer x3 for price x4
<ldlework>
[seller] vecnu [good] [buyer] [price]
<rotaerk>
at this point though, I don't think I could take the time to learn it; I'd have more use for Japanese with all the anime I watch, but I haven't taken the time tto learn that
<ldlework>
mi vecnu ti do = i sold this to you
<ldlework>
lo VERB ku makes a noun from the X1 of a verb
<ldlework>
nu PROPOSITION kei makes a verb from a whole sentence
<ldlework>
so
<ldlework>
mi morji lo nu do vecnu ti
<ldlework>
"I remember when: you sold this"
<rotaerk>
ah
<ldlework>
subordination
<ldlework>
try to teach subordination of any other language in less than three minutes
<ldlework>
rotaerk: i actually know a guy in #lojban who only speaks lojban and japanese
<rotaerk>
heh
<ldlework>
neither of us have time to learn a second real language
<rotaerk>
I used to hang out there, so long ago
<rotaerk>
I remember one name ... Broca
<{^_^}>
[nixpkgs] @Ekleog opened pull request #44288 → global-platform-pro: init at 0.3.10-rc11 → https://git.io/fNrck
<ldlework>
they're still around
<rotaerk>
nice
<rotaerk>
though, ultimately I think learning a language isn't an intellectual process, but an intuitive one, based entirely on exposure and practice rather than grammatical analysis
aminechikhaoui has quit [Ping timeout: 255 seconds]
<rotaerk>
because when you speak, you don't really think about grammar rules, you just naturally say what you think
<ldlework>
only because grammars are typically so complex
<ldlework>
and exceptional
<rotaerk>
yeah
<rotaerk>
though human brains are good at handling such languages
<ldlework>
like with lojban, you have the same exact problem with vocabulary as you do with any language. but you can learn the grammar, even semi-advanced grammar, in just one sitting. including conversational devices. so with a dictionary of content words you can hold a conversation fairly fast.
<ldlework>
i'm not saying it should be an international language, but it would certainly be something that people could realistically teach each other in short order and actually order some food or something
<rotaerk>
heh
<ldlework>
but for me it was just a gateway to Berkeley and Oxford style Philosophy of Language and then western philosophy as a whole
<ldlework>
more of a item of study
<ldlework>
i really challenge people to read la karda, for just like 5 minutes and contemplate how many months it would take to get the same features from any other natural second language
<coconnor>
and the execution of individual VMs; including persistence configuration
<coconnor>
EG: having hte VM start on boot etc
<iqubic>
why would i want a VM running at boot?
<coconnor>
in the case of NixOS: it is a mystery
<coconnor>
for other OSs it gives VMs a service like interface
<coconnor>
for NixOS... well.. I dunno. creating services is easier IMO
<coconnor>
although, I do like having a Kubuntu VM always available
<iqubic>
I just want a VM where I can test GuixSD
<coconnor>
(pause/suspend work as expected)
<coconnor>
libvirt does not target the everyday VM users IMO.
<coconnor>
it's complete... but.. I mean.. I'm sure I can find a hammer in a professional shop but if all I want is a hammer it's a lot of shit to go through
<coconnor>
anyways,
<iqubic>
what would you recommend for the average user?
<coconnor>
virtmanager attempts to put a nice interface on that
<coconnor>
I'm not sure NixOS users count as average? ;)
<coconnor>
if you want everyday VM's to run nice
<coconnor>
virtualbox
<coconnor>
virtualisation.virtualbox.host.enable
<iqubic>
I'm fine with libvirtd.
orivej has quit [Ping timeout: 240 seconds]
hakujin3 has joined #nixos
<coconnor>
I think it's pretty nice... but a bit of a learning curve
<coconnor>
unless you use libvirt only via root/sudo
<coconnor>
add user to libvirtd group
<coconnor>
libvirt also supports running VMs as non-root. Using files stored in the user's home folder etc
<coconnor>
this is too much trouble for me, so I recommend using "virsh -c qemu:///system" or "virt-manager -c qemu:///system"
igo95862 has joined #nixos
<coconnor>
kinda a systemd thing with the --user and --system controls
hakujin3 has quit [Ping timeout: 256 seconds]
igo95862 has quit [Quit: igo95862]
<{^_^}>
[nixpkgs] @mankyKitty opened pull request #44292 → Added bash to generate nix for updating installed vscode-extensions → https://git.io/fNrlF
<{^_^}>
[nixpkgs] @Mic92 pushed 4 commits to release-18.03: https://git.io/fNr8C
<ejpcmac>
Hi! I’m new to Nix and yesterday I discovered that updates take quite a lot of bandwidth. This is due to new derivation being build on each dependencies updates. In the mean time I discovered `nix-store --optimise` which creates hard links and show files as hashes in `/nix/store/.links`. Wouldn’t be possible to optimise the network usage by building these file hashes thanks to hydra and download only the ones not present i
<ejpcmac>
the machine?
reflog has joined #nixos
<ejpcmac>
Red-Hat–based distrubution have DRPM to save bandwidth. While we may think this is a bit overkill there, I think some optimisation at this level would be great in Nix because new derivations are created really often.
<sphalerite>
ejpcmac: there's nix#1644 which talks about a significant optimisation that could be made
<{^_^}>
nix#1644 (by dezgeg, open): Strip out path references from NAR serializations
<sphalerite>
oh wait it was just slow
Anton-Latukha has quit [Quit: Leaving.]
<ejpcmac>
sphalerite: Oh, great! I’ve looked at the issues but couldn’t find one on network optimisation.
<sphalerite>
it's only discussion so far though, no actual implementation yet
philippD has joined #nixos
tzemanovic has quit []
<sphalerite>
what's nice about this approach is that it doesn't introduce dependencies between the different versions, it just takes advantage of how they happen to end up with the same "normalisation"
<sphalerite>
buuuut it's not perfectly general, and doesn't provide as big savings as full-on delta updates
<reflog>
hi! a total nixos noob here, with a question, hope someone can help: I've installed jetbrains.webstorm nixpkg and it appears at version 2018.1 while on github nixpkgs repo I can see that it was updated to 2018.2 . I'm on an unstable channel - how can I upgrade?
<srhb>
reflog: There are multiple ways to do this, but possibly you could just wait for the channel to reach that commit.
<srhb>
reflog: Actually, unstable has already reached that commit yesterday. Have you updated your channel since then?
<srhb>
And by unstable I mean nixos-unstable
<reflog>
not yet. let me try :)
<srhb>
reflog: The other general way to do this is to create an overlay (read the overlays section in the nixpkgs manual) that bumps the version of your specific package.
<srhb>
Just for reference. :)
<reflog>
awesome. will read into that as well.
Thra11 has joined #nixos
palo has quit [Ping timeout: 248 seconds]
reardencode has quit [Ping timeout: 245 seconds]
<reflog>
yep. it was updated. very cool. thanks @srhb
<srhb>
reflog: No problem. :)
<srhb>
reflog: Here's how I checked: nix eval -f channel:nixos-unstable nixpkgs.jetbrains.webstorm.name
<srhb>
Izorkin_: That patch url is broken. Same issue as yesterday.
<testuser>
Hi, I've written the following definition for python module: http://dpaste.com/2AC3Y3S , which compiles fine with nix-build. However how can I enter an environment with nix-shell (or any other command) so that I'll be able to just start python and "import alsaaudio" ?
<testuser>
srhb, I do know that this is possible with python.withPackages, however beforehand I need to compile the module on my own, prior to being able to just include it into this environment, not sure how to go about that part.
<{^_^}>
[nixpkgs] @Mic92 merged pull request #44214 → Update Bitcoin and its MiniUPnPc dependency → https://git.io/fN2Bw
<srhb>
testuser: You'll be using the definition you already pasted here :)
<fendor>
kalbasit, thank you! now I registered my nickname :)
<Izorkin_>
srhb: left to fix bazaar
<testuser>
srhb, do I need a separate .nix file and include the previous .nix file or can I do it in the same file .. ?
<srhb>
testuser: You can do it in the same file.
<testuser>
srhb, http://dpaste.com/3891Y8B -> this gives me the "default.nix|4 col 13| syntax error, unexpected '=', expecting $end" error, any ideas why?
<testuser>
srhb, what's with the '.env' anyway, what does that do ?
<srhb>
testuser: In very broad strokes it creates a shell env where the package is "installed" fsvo "installed." It's approximately the difference between nix-shell '<nixpkgs>' -A hello and nix-shell -p hello. In the former, you have the dependencies for hello available, in the latter you have hello available
<srhb>
testuser: You could do this by hand with mKDerivation by having pyalsaaudio and python be buildInputs to your shell. That might ease understanding the difference :)
<{^_^}>
[nixpkgs] @xeji merged pull request #44283 → cups-filters: fix the build with poppler-0.67.0 → https://git.io/fNrtX
<testuser>
srhb, and now I can simply do "nix-build ./default", then "nix-shell ./default" right?
<srhb>
testuser: Yup, pkgs.lib.inNixShell will dispatch to one or the other :)
<srhb>
if you name it default.nix you can just run "nix-build" or "nix-shell" without any arguments.
<testuser>
srhb, so I don't actually need the "nix-build" beforehand, I can directly run "nix-shell" and will be build automatically?
<srhb>
Yes.
<testuser>
srhb, thank you, I appreciate it!
<srhb>
It's a dependency of the shell, so it will be built beforehand.
<srhb>
No problem, enjoy :)
aarvar has quit [Ping timeout: 248 seconds]
orivej has joined #nixos
nschoe has joined #nixos
Anton-Latukha has joined #nixos
goibhniu1 has joined #nixos
<lutzmor>
morning, i have a short question :D i'm a bit confused ... i have a python script (never worked with python before) that need pyudev and what i learned is pip wont work if i install pyton-3.6-pyudev the script still say he need it. I want to run the script as daemon to controll my backlight over a sensor in my device. But i'm a bit lost how to get it running :)
goibhniu1 is now known as goibhniu
aminechikhaoui has joined #nixos
<{^_^}>
[nixpkgs] @xeji pushed to master « memo: don't use ag alias »: https://git.io/fNrzA
<{^_^}>
[nixpkgs] @Izorkin opened pull request #44298 → Fix build pckages edk2 and bazaar → https://git.io/fNrge
<kamme>
is it possible to use libvirt on a remote machine? For example on my laptop create config for a lxc container on a remote nixos machine with lxd+libvirt running
<woffs>
how to access a remote store in a separate --store /mystore dir? ssh://myhost/mystore does not work and tries to connect to host myhost/mystore
adisbladis has quit [Remote host closed the connection]
<woffs>
do I have to use ugly things like nfs or sshfs, or patch nix-serve?
<etu>
Ah, dang. Thanks Mic92 for merging that. It's for the greater good but I'm still using 7.0 at work. So now I have to override it until we upgrade :D
ericsagnes has joined #nixos
<etu>
I can probably just pick up PHP 7.0 from 18.03 stable and use that, that way I don't have to compile it :)
Ridout has quit [Quit: Lost terminal]
troydm has joined #nixos
__Sander__ has quit [Ping timeout: 256 seconds]
fuzzy-id has joined #nixos
<fuzzy-id>
we are running on ec2 with 2gigs of ram, since we added `haskellPackages.jenkinsPlugins2nix' to `environment.systemPackages', we observe "error: Nix daemon out of memory"
jtojnar has joined #nixos
<Myrl-saki>
fuzzy-id: Is this on nixops?
<fuzzy-id>
we already added a gigabyte of swap to the system, but looks like the nix-daemon isn't swapping
<fuzzy-id>
Myrl-saki: nope, this is normal `nixos-rebuild boot'
<fuzzy-id>
i actually also get this error when i try to install jenkinsPlugins2nix via nix-env
<Myrl-saki>
fuzzy-id: FWIW, Nix can take a lot of memory. Someone over here reported using 8 GB >
<fuzzy-id>
it works fine locally, though.
<fuzzy-id>
should adding swap-space fix this?
<Myrl-saki>
Yeah, it should. Try larger values.
jperras has joined #nixos
iyzsong has joined #nixos
<fuzzy-id>
yeah, it worked. it just needed more swap. :)
gspia has joined #nixos
johnw has quit [Ping timeout: 240 seconds]
<betaboon>
hello #nixos, is anyone using RDS-postgresql with nixops? i am wondering how to create databases(not rds-instances) in a programmatical manner (thus not using psql manually). any hints?
anderslundstedt has quit [Ping timeout: 260 seconds]
joelpet has quit [Ping timeout: 244 seconds]
silver_ has joined #nixos
MuffinPimp_ has joined #nixos
goodwill_ has joined #nixos
CcxWrk_ has joined #nixos
CcxWrk has quit [Killed (card.freenode.net (Nickname regained by services))]
CcxWrk_ is now known as CcxWrk
freeman42x]NixOS has joined #nixos
pie__ has quit [Ping timeout: 256 seconds]
<qknight>
betaboon: how long did that take?
crmlt_ has joined #nixos
<betaboon>
qknight: don't remember. not too long
<Myrl-saki>
fuzzy-id: Great!
<Myrl-saki>
fuzzy-id: If it didn't work, I'd have been worried that you might be using a 32-bit system. :P
<betaboon>
qknight: i did rewrite taiga-events in python tho. which i have been running for quite a while. I'm not currently running any taiga-instances tho. that's why i never got around to finish that PR
gspia has quit [Quit: Leaving]
jperras has quit [Ping timeout: 248 seconds]
deni_ has joined #nixos
CcxWrk has quit [Max SendQ exceeded]
nocoolnametom_ has joined #nixos
<qknight>
betaboon: so you replaced pip with setuptools in your PR, right?
swflint_away has joined #nixos
^il has joined #nixos
<betaboon>
qknight: yeah. i just created a setup.py. i don't like the pip way of doing things. i asked the taiga maintainers to provide a setup.py. which they never did tho
coffeecupp has joined #nixos
silver has quit [*.net *.split]
thc202 has quit [*.net *.split]
crmlt has quit [*.net *.split]
daGrevis has quit [*.net *.split]
swflint has quit [*.net *.split]
nocoolnametom has quit [*.net *.split]
drbrule has quit [*.net *.split]
m0rphism has quit [*.net *.split]
ben has quit [*.net *.split]
viric has quit [*.net *.split]
jasom has quit [*.net *.split]
coffeecupp__ has quit [*.net *.split]
ryantm has quit [*.net *.split]
Leo` has quit [*.net *.split]
adamCS has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
astsmtl has quit [*.net *.split]
arahael has quit [*.net *.split]
ent has quit [*.net *.split]
azdle has quit [*.net *.split]
brodul has quit [*.net *.split]
cybrian has quit [*.net *.split]
deni has quit [*.net *.split]
ajp has quit [*.net *.split]
goodwill has quit [*.net *.split]
azazel has quit [*.net *.split]
buhman has quit [*.net *.split]
sdemos has quit [*.net *.split]
jcrben has quit [*.net *.split]
vil has quit [*.net *.split]
le_jonge has quit [*.net *.split]
mitchty has quit [*.net *.split]
Martin89 has quit [*.net *.split]
Guest57550 has quit [*.net *.split]
helpusobi_ has quit [*.net *.split]
Phlogistique has quit [*.net *.split]
MuffinPimp_ is now known as MuffinPimp
goodwill_ is now known as goodwill
swflint_away is now known as swflint
azdle has joined #nixos
jcrben has joined #nixos
fiddlerwoaroof has quit [Ping timeout: 260 seconds]
<betaboon>
qknight: i currently don't have a need to run my own solution. my current employer just uses github issues and the github kanban-board. if i would have the need, i would run taiga again :)
<qknight>
betaboon: what you did is good work btw
<qknight>
betaboon: i think we will merge this into nixcloud-webservices and maintain that
<qknight>
betaboon: are you a freelancer?
<betaboon>
qknight: go ahead and make good use of it :) (it was one of the first things i packages for nix)
<qknight>
betaboon: ;-)
<betaboon>
qknight: no I'm not currently freelancing.
<qknight>
betaboon: ok, if so i would have asked you if you wanted to help
<{^_^}>
[nixpkgs] @xeji pushed commit from @mat8913 to master « ffmpeg: 3.4.3 -> 3.4.4 (bugfix) (#44267) »: https://git.io/fNr5I
<{^_^}>
[nixpkgs] @pvgoran opened pull request #44303 → nixos/tomcat: Delete baseDir before (re-)creating it → https://git.io/fNr5Y
<{^_^}>
[nixpkgs] @xeji merged pull request #44302 → plasma-nm: fix path to mobile broadband provider file → https://git.io/fNrMi
<{^_^}>
[nixpkgs] @xeji pushed commit from @Yarny0 to master « plasma-nm: fix path to mobile broadband provider file (#44302) »: https://git.io/fNr5G
wigust has joined #nixos
Fare has joined #nixos
<betaboon>
qknight: btw here is the python implementation of py-taiga-events https://github.com/betaboon/py-taiga-events ( no tests, not maintained, just a weekend project)
<{^_^}>
[nixpkgs] @xeji pushed commit from @leenaars to master « ipgrep: init at 1.0 (#43887) »: https://git.io/fNrF2
init_6 has joined #nixos
<Mic92>
etu: if you use nixpkgs from git instead of an channel, you can just use git-revert.
Denommus has joined #nixos
<etu>
Mic92: At work I don't, but I'll sort it out. :-)
<binaryphile>
say, what command would build everything in a channel?
<binaryphile>
it's a small, private channel
<infinisil>
binaryphile: You mean like a bunch of nix expressions?
<binaryphile>
it's an actual channel, structured like nixpkgs or any other channel. importing it, for example, gives a set of derivations
<binaryphile>
so i could build one package by cd'ing into its directory (one way of doing it) and saying "nix-build -A mypackage
<binaryphile>
"
<binaryphile>
I just want nix-build to build everything in the set in one shot
endformationage has joined #nixos
johnw has quit [Ping timeout: 260 seconds]
<binaryphile>
i guess technically its a function which evaluates to a set of derivations
<binaryphile>
there's no, like, "nix-build -A '*'", is there?
<symphorien>
nix-build file.nix should be enough
<infinisil>
binaryphile: When you call nix-build on an attrsets expression it will build all of the values
<binaryphile>
ah, haven't tried that, thx
<binaryphile>
was hoping there was a simple answer
<infinisil>
How much simpler can it be than that??
lutzmor has quit [Quit: Page closed]
<binaryphile>
sorry, was saying my hopes were satisfied
<{^_^}>
[nixpkgs] @xeji merged pull request #43691 → termite: factor wrapper out into its own file → https://git.io/fNsHm
<{^_^}>
[nixpkgs] @xeji pushed commit from @Ma27 to master « termite: factor wrapper out into its own file (#43691) »: https://git.io/fNrAi
<srhb>
binaryphile: nix-build -A '*' is morally just nix-build. Whether the expression is an attrset or a list :)
<srhb>
(of derivations, that is.)
<binaryphile>
thank you all
silver_ has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 256 seconds]
clever has joined #nixos
<woffs>
srhb, ?store= is accepted but does not do what I want. root= is "unknown setting". Mounting via sshfs on ~/fuse and using --extra-substituters ~/fuse works ...
galaxite has quit [Remote host closed the connection]
galaxite has joined #nixos
derped has quit [Remote host closed the connection]
dbmikus has joined #nixos
<woffs>
I wonder why this does not work ("... var/nix/db/big-lock': Read-only file system") with a r/o mount. http is readonly too and does not need r/w for substituting.
<domenkozar>
gchristensen: can you add it on PR please :)
<gchristensen>
Sonarpulse: ^ want to do that?
<Sonarpulse>
hi
* Sonarpulse
scrolls back
<Sonarpulse>
let me ask
<Sonarpulse>
thanks for the tip
<Sonarpulse>
domenkozar: is there a theme this week on nix in prod?
<domenkozar>
isn't that every week?
<gchristensen>
domenkozar++
<{^_^}>
domenkozar's karma got increased to 1
Ariakenom_ has quit [Ping timeout: 244 seconds]
<Denommus>
hey
<Denommus>
I'm trying to use node2nix to build rocket.chat
tusj has joined #nixos
<Denommus>
but I'm getting error: 'buildNodePackage' at /home/<user>/Projetos/rocket.chat-nixops/bundle/programs/server/node-env.nix:313:5 called without required argument 'version', at /nix/store/nxyl60r46yz7fg3z6r8hnbi2x3gqz7ic-nixpkgs-18.09pre147559.ab3eeb4c9cc/nixpkgs/lib/customisation.nix:69:12
<mdash>
in typical IBM fashion, they used the term "control program"
<coconnor>
On the NixOS side I just noticed - virtualbox is in "applications/virtualization/virtualbox" the setting is in "config.virtualisation.virtualbox"
<coconnor>
there must be some history to this... wat...
<coconnor>
right well... that's one way to settle the debate. do both! i'm off to breakfast...
drakonis has joined #nixos
<joepie91>
lol
Twey has quit [Ping timeout: 240 seconds]
bfrog has quit [Quit: WeeChat 1.9.1]
<tenten8401[m]>
reminds me of the debate between colour and color
<tenten8401[m]>
although I think colour is slowly losing since color is shorter
<samueldr>
yeah, but isn't the wiki on one of those obscure TLD, nobody will ever find it
<clever>
jtojnar: one anoying thing ive noticed, if any of the enabled desktop envs lack support to set the wallpaper, an image util is added to systemPackages, and used to blank the root window
<clever>
jtojnar: the "none" desktop env is unconditionally enabled, and doesnt support that
<clever>
so the whole point of that image util being optional is moot
<infinisil>
samueldr: Pretty sure people don't go looking over all domains in a TLD to find new websites lol
<clever>
infinisil: and nixos.com was not work safe for several years
<infinisil>
Huh?
<clever>
infinisil: it was a french porn site :P
<infinisil>
Haha
<gchristensen>
that was true until around February this year
<jtojnar>
clever: hmm, that is interesting, maybe we can fix that in the next iteration
<worldofpeace>
clever: Hmm can you elaborate? I'm having a similar issue
<clever>
jtojnar: ah, there is a seperate needBGCond that controls the running of feh
<clever>
and a now useless needBGPackages, that installed it system wide
<clever>
so it still depends on feh, its just not in the default PATH now
hakujin1 has quit [Ping timeout: 276 seconds]
xy2_ has quit [Ping timeout: 276 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #44314 → xfce4-13.xfce4-pulseaudio-plugin: init at 0.4.1 → https://git.io/fNoVI
<{^_^}>
[nixpkgs] @volth opened pull request #44315 → xfce4-13.xfce4-netload-plugin: init at 1.3.1 → https://git.io/fNoVm
<{^_^}>
[nixpkgs] @volth opened pull request #44316 → xfce4-13.xfce4-cpufreq-plugin: init at 1.2.0 → https://git.io/fNoVY
<{^_^}>
[nixpkgs] @volth opened pull request #44317 → xfce4-13.xfce4-whiskermenu-plugin: init at 2.2.0 → https://git.io/fNoVG
<{^_^}>
[nixpkgs] @volth opened pull request #44318 → xfce4-13.xfce4-session: init at 4.13.0 → https://git.io/fNoVZ
<{^_^}>
[nixpkgs] @volth opened pull request #44319 → xfce4-13.xfce4-clipman-plugin: init at 1.4.2 → https://git.io/fNoVc
<{^_^}>
[nixpkgs] @volth opened pull request #44320 → xfce4-13.xfce4-xkb-plugin: init at 0.8.1 → https://git.io/fNoVl
trevthedev has joined #nixos
<trevthedev>
Well, I'm sadly not on IRC often thesedays but I wanna go ahead and thank @samueldr for helping me out, I can now use 43.0! Cheers everyone! :D
trevthedev has quit [Client Quit]
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
now now, they did say "not on IRC often"
<matthewbauer>
vcunat: one thing the Emacs devs did for last release was ask users to proofread sections of the manual (https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00483.html). it might be a good idea to try something similar. could be helpful in nixpkgs by dividing up sections. mainly looking just for spelling, grammer, missing words, etc.
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « proselint: 0.9.0 -> 0.10.0 (#44313) »: https://git.io/fNoom
<vcunat>
Hmm, yes, we could try catching interest in that. Maybe a label for it and then open one GitHub issue per section.
<d1rewolf>
I notice in that if I create a new user in user.users.username in my configuration.nix, their PATH variable isn't set. what's the appropriate way to do this?
<clever>
d1rewolf: did you set isNormalUser = true; ?
crmlt has quit [Ping timeout: 240 seconds]
<d1rewolf>
clever: no, I don't believe so. one sec
<d1rewolf>
clever: actually, yes I did
<clever>
d1rewolf: how did you get a shell as that user?
<d1rewolf>
clever: su'd to them from root
<clever>
d1rewolf: try `sudo -u username -i`
<d1rewolf>
that did it. thanks very much
pie___ has joined #nixos
<d1rewolf>
I'd like to create a user who has password-less sudo access. How can one do this declaratively?
pie__ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to master « xfce4-13.xfce4-pulseaudio-plugin: init at 0.4.1 (#44314) »: https://git.io/fNoiT
<cransom>
does `nix-store --gc --print-dead` also include `unused links`? i'm hitting something where i'm making disk images and on a fresh image, i can nix-collect-garbage immediately on boot (or, nixos-enter rather) and it frees space, but claims to delete no store paths.
<samueldr>
[16:54:13] <antrg> How do I get the sha256 for dependencies (fetchgx)
<samueldr>
the easiest way is to use tofu
<samueldr>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<samueldr>
I personally set my editor in replace mode, replace a couple of the chars with zeroes, then it will fail and tell me which sha256 is expected
<samueldr>
(it is important that the hash be the right length)
<aanderse-laptop>
show adding the following items to a container be enough to make the container have its own ip address separate from the host?
<aanderse-laptop>
privateNetwork = true;
<aanderse-laptop>
localAddress = "10.233.0.2";
<aanderse-laptop>
hostAddress = "10.233.0.1";
<antrg>
Thank you <samueldr>, I'll give it a try now
<gchristensen>
(no need for the < and > antrg :) )
sophiag has quit [Ping timeout: 248 seconds]
wpcarro has joined #nixos
dmc has joined #nixos
trcc has joined #nixos
baconicsynergy has joined #nixos
mub has joined #nixos
<mub>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<mub>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
mub has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<epta>
during the compilation of a haskell project inside a nix-shell on OSX I see these warnings - ld: warning: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation, ignoring unexpected dylib file
<epta>
Any ideas why this happening and how to fix it?
<epta>
And this - /nix/store/xnb5bnkqysrlc9siyk0jxxv2yls5syxp-cdb-1.0.0.0/lib/ghc-8.4.3/x86_64-osx-ghc-8.4.3/libHScdb-1.0.0.0-K2SfepDp2dnAu8qG0vhBuE-ghc8.4.3.dylib: fixing dylib
iceychris has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil opened pull request #44322 → nix: Put config builder into pkgs → https://git.io/fNoXO
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
vcunat has quit [Ping timeout: 245 seconds]
alanz has joined #nixos
wpcarro has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @xeji pushed commit from @q3k to master « icestorm: 2018.05.03 -> 2018.08.01 (#44321) »: https://git.io/fNo1B
ambro718 has joined #nixos
tertle||eltret has joined #nixos
tusj has joined #nixos
halfbit has quit [Ping timeout: 256 seconds]
sviteri has joined #nixos
simukis has quit [Quit: simukis]
jelly1 has joined #nixos
<jelly1>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
jelly1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
tusj has quit [Ping timeout: 268 seconds]
<sviteri>
Quick question --
<sviteri>
I am using the nix-shell shebang functionality
<tinyhippo5>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
<tinyhippo5>
I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/
<samueldr>
infinisil: --pure could cause issues if things generally thought to be present in the environment are expected to be present
<samueldr>
like SSH_AGANE
<samueldr>
derp, SSH_AGENT
<LnL>
so it might be an incompatible version you didn't test or might not even be present
<samueldr>
(or whatever the right env var)
<infinisil>
samueldr: Correction then: --pure is recommended if it works for you
<samueldr>
:)
<samueldr>
--pure is preferred if you don't rely on the environment
<sviteri>
Ok -- I ran the shebang file and echoed $(which zsh)
<sviteri>
I got ~/.nix-profile/bin/zsh
trisk28 has joined #nixos
<sviteri>
So this is my local version
<trisk28>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
trisk28 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
worldofpeace has quit [Remote host closed the connection]
<samueldr>
yeah, nix relies on PATH (through `exec`) for whatever it will run
<sviteri>
And if I understand correctly, you are saying that pure will stop this
<sviteri>
samueldr: what do you mean through exec
<samueldr>
(I wasn't directly replying to your last question, juste confirming my initial suspicions)
<samueldr>
--pure will clear the environment before starting the shell
<sviteri>
running with pure receives an error 'exec: zsh: not found'
<sviteri>
as expected!
<sviteri>
why is this not default
<samueldr>
and "through exec"; it's that nix-shell, through nix, will create a wrapper script for your nix-shell, when using `-i` it ends up appending `exec your interpreter` and other things
<samueldr>
sviteri: because sometimes you need the environment often times nix tries to not break expectations from other things, at the cost of purity
<samueldr>
(some would say "why do I have to --keep-environment with nix-shell? I always need it for $usecase")
<sviteri>
I see
<sviteri>
Hence the recommendation by infinisil
<samueldr>
I think for that particular case (--pure) it's really a case of half cases needing it, other half wouldn't
<sviteri>
Use --pure if you can for your particular situation
<infinisil>
Discovered this through a while of debugging..: --pure breaks Haskell's readFile from Data.Text.IO because of an unset LC_ALL
<sviteri>
interesting
<samueldr>
makes me think: adding --keep-env=SSH_AUTH_SOCK would be good for this
<samueldr>
--pure except for what you want
<infinisil>
Oh nice, didn't know about thaot
worldofpeace has joined #nixos
<samueldr>
doesn't exist
<samueldr>
an idea I just had
knupfer has joined #nixos
<sviteri>
If I understand correctly, I like this idea
<samueldr>
TIL, there's also the (undocumented) --impure argument
<samueldr>
when you want it to be extra impure
<sviteri>
Is it that you have --pure in combination with --keep-env of whatever environment vars you need?
<sviteri>
samueldr: and does this really not already exist?
<samueldr>
yeah, sounds about what I have in mind for a worthwhile addition
<gchristensen>
samueldr++ I love people who will just go dive in to the code
<sviteri>
so you could have --keep-env extend the keepVars set
* infinisil
is sad that that doesn't exist
<samueldr>
that's mildly trivial
cryptomonoid has joined #nixos
<samueldr>
I may actually look at it tonight
<samueldr>
the nix source code is really well maintained, it's relatively easy to find things and figure out if possible
<samueldr>
so that's nix++
<infinisil>
You could do it with `--argstr keep-env "FOO BAR BAZ"`, then use the argument to set `mkDerivation { FOO = builtins.getEnv "FOO"; BAR = ...; }`
<samueldr>
now now, workaround-pal strikes again :)
knupfer has quit [Ping timeout: 265 seconds]
<infinisil>
:P
halfbit has quit [Ping timeout: 276 seconds]
<sviteri>
There's a line in nix-build.cc that says 'auto shell = getEnv("SHELL", "/bin/sh");' explicitly
bennofs has quit [Quit: WeeChat 2.0]
<samueldr>
sviteri: good catch
<sviteri>
but then the shell variable is not used anywhere else in the file ...
<samueldr>
so the first `shell` you see is for `nix-build`
iqubic has joined #nixos
<samueldr>
or uh, it would have been
<samueldr>
if it was used
<samueldr>
(looks like dead code?)
<sviteri>
samueldr: I agree on the dead code assertion
<sviteri>
samueldr: the next place it is to reset it in the if(runEnv) section
<sviteri>
samueldr: *the next place it is used
<samueldr>
it's even a new variable
<samueldr>
so it's not even used
antrg has quit [Ping timeout: 252 seconds]
aristid has quit [Ping timeout: 265 seconds]
aristid has joined #nixos
<iqubic>
I'm finding virt-manager to be confusing.
<iqubic>
What do I want to select for "network selection"
ng0 has quit [Quit: Alexa, when is the end of world?]
<sviteri>
samueldr: I'm building the nix repo now so I can check that nothing breaks when I remove the line
NSCLRP-1 has joined #nixos
<samueldr>
same thing here
<NSCLRP-1>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
NSCLRP-1 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
bennofs has joined #nixos
<sviteri>
samueldr: In the meantime, what is the connection between shebang lines and nix-build
<samueldr>
sviteri: have you ever worked with busybox?
<sviteri>
samueldr: No I haven't
bennofs has quit [Client Quit]
iceychris has left #nixos [#nixos]
<samueldr>
dang, then the analogy won't be *that* much help, but I'll continue
sam__ has quit [Quit: sam__]
<samueldr>
some tools, like busybox, are in fact multiple tools, but compiled under one binary
<samueldr>
I'm not sure what advantages it has, but one is that you can easily copy one binary
<sviteri>
samueldr: I'm looking at busybox, and I think I get the idea
<samueldr>
then symlink it for other things
<samueldr>
well, looks like nix-build and nix-shell share a bunch of code through similar trickery
<infinisil>
I'd really like to know the advantages of that..
<infinisil>
For the nix-shell/nix-build case
<samueldr>
could it help by having one binary image in memory at all time?
<samueldr>
(for general use)
<infinisil>
What's the advantage of that?
<samueldr>
not sure!
pjan has quit [Quit: さようなら]
<samueldr>
I'm sure a particularly clever user would know
pjan has joined #nixos
<{^_^}>
[nixpkgs] @markuskowa opened pull request #44325 → openmolcas: init at 20180529 → https://git.io/fNoHa
agjacome has quit [Remote host closed the connection]
<{^_^}>
[nix] @samueldr opened pull request #2322 → Removes unused variable from `nix-build/nix-shell` → https://git.io/fNoHr
<samueldr>
sviteri: confirmed it builds, and al tests pass
m4v25 has joined #nixos
<m4v25>
With our IRC ad service you can reach a global audience of entrepreneurs and fentanyl addicts with extraordinary engagement rates! https://williampitcock.com/
m4v25 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<sviteri>
samueldr: So I was asking my previous question at a different level -- like where in the code can I look and find that nix-build is being called
<samueldr>
sviteri: uh, I saw how it looked at argv[0], that's how you would implement such a feature
<samueldr>
then I used readlink -f $(which nix-shell) to confirm my suspicion
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @eonpatapon to release-18.03 « nixos/kubernetes: fix kubelet cgroup stats »: https://git.io/fNoQv
halfbit has joined #nixos
<samueldr>
not sure if this answers the question?
__monty__ has quit [Quit: leaving]
<samueldr>
(I knew based off of previous knowledge)
etrepum has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #44248 → doc: add darwin installCheckTarget example → https://git.io/fNaxU
<{^_^}>
[nixpkgs] @markuskowa opened pull request #44326 → beegfs/module-18.03: Fix a typo in meta.conf generation (#40979) → https://git.io/fNoQy
xy2_ has quit [Ping timeout: 240 seconds]
mekeor has joined #nixos
<sviteri>
samueldr: in the gist, both other and awesome-nix-shell are pointing to the nix-build location
orivej has quit [Ping timeout: 244 seconds]
<samueldr>
yes
<sviteri>
samueldr: but for some reason awesome-nix-shell looks like it is pointing at the nix-shell location
<samueldr>
no
<samueldr>
argv[0] will contain `./awesome-nix-shell` IIRC
<samueldr>
if you regex /nix-shell$/ on that, it'll match
<sviteri>
samueldr: Oh I see what's going on
<samueldr>
sviteri: updated the gist with a comment
<samueldr>
wherever the started binary points isn't relevant
<samueldr>
the started file used for the command*
glguy has left #nixos [#nixos]
<samueldr>
POSIX says: "The value in argv[0] should point to a filename string that is associated with the process being started by one of the exec functions.
<sviteri>
samueldr: but it looks like myName is only used in --help and --version
xy2_ has joined #nixos
jasongrossman has joined #nixos
<sviteri>
samueldr: not for actual functionality, but runEnv is used (including to see if we are being invoked as a shebang script thub.com/NixOS/nix/blob/b27431b7cb918e6866f4bb4fa7ec6e23240cfeab/src/nix-build/nix-build.cc#L109-L128))
cryptomonoid has quit [Ping timeout: 248 seconds]
<samueldr>
yeah
xy2_ has quit [Ping timeout: 260 seconds]
init_6 has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
fragamus has joined #nixos
<dtz[m]>
samueldr: if you want a single binary for nix, I got your covered. Well at least started :D. Check it:
<dtz[m]>
and I would love to discuss generating multicall binaries with you and everyone interested :D
<samueldr>
no :) simply analyzing how nix-build and nix-shell works
<dtz[m]>
I'm literally wrapping up a deadline for a paper on this subject
<{^_^}>
nix#1973 (by dtzWill, open): [WIP] [preview] Single static binary for Nix+deps (bash, coreutils, ...) via ALLVM
<sviteri>
dtz[m]: what are the advantages of having a single binary for nix
<dtz[m]>
LMK if you'd be interested in reading the paper-- it'll be publshed soon if I don't manage to mess things up :P
<{^_^}>
[nixpkgs] @primeos pushed to release-18.03 « nixos/switch-to-configuration: Never stop system.slice »: https://git.io/fNo5H
<dtz[m]>
mostly smaller, includes copies of the tools that currently it just "hopes" are around, starts more quickly, runs most everywhere (including Windows! :D)
<dtz[m]>
small note --on the subject-- you'll need a trick to reliably use that as a daemon because nix insists on doing unsafe things and this setup is less "forgiving" of such.
tusj has quit [Ping timeout: 260 seconds]
<dtz[m]>
sorry I really gotta go I just couln't NOT say something when I see "multicalll" and pondering argv[0] and such
johnw has joined #nixos
<infinisil>
dtz[m]: Oh, that also sounds very useful for getting nix to compile nix for a different /nix/store