MP2E has joined #nixos
notdaniel has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
<antonv> tanonym: thank you.
bfrog has joined #nixos
asuryawanshi has joined #nixos
liny01 has quit [(Ping timeout: 248 seconds)]
asuryawanshi has quit [(Ping timeout: 268 seconds)]
thblt has quit [(Ping timeout: 255 seconds)]
vidbina has quit [(Ping timeout: 248 seconds)]
bfrog has quit [(Ping timeout: 240 seconds)]
vidbina has joined #nixos
asuryawanshi has joined #nixos
rogue_koder_ has quit [(Remote host closed the connection)]
tanonym has quit [(Quit: Konversation terminated!)]
sigmundv__ has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
liny01 has joined #nixos
ylwghst has joined #nixos
vandenoever has quit [(Ping timeout: 248 seconds)]
jb55 has joined #nixos
rogue_koder_ has joined #nixos
sigmundv__ has quit [(Ping timeout: 248 seconds)]
Ivanych has quit [(Ping timeout: 240 seconds)]
rogue_koder has joined #nixos
rogue_koder_ has quit [(Ping timeout: 240 seconds)]
Ivanych has joined #nixos
vidbina has quit [(Remote host closed the connection)]
jb55 has quit [(Ping timeout: 255 seconds)]
orivej has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
<laggy_wifi_> lol is this a questionar antonv? XD
<laggy_wifi_> or a quiz? cx
ylwghst has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 260 seconds)]
<laggy_wifi_> btw how does nix lock root user from modifying nix/store in any way
asuryawanshi has joined #nixos
manoj has joined #nixos
<manveru> laggy_wifi_: well, it's mounted read-only
<laggy_wifi_> can root remount it?
<manveru> well, sure
<laggy_wifi_> XD
<manveru> can't protect yourself from yourself :P
<laggy_wifi_> xP
<manveru> and someone has to write into it or you can't install anything
asuryawanshi has quit [(Ping timeout: 248 seconds)]
thc202 has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
ilja_kuklic has quit [(Ping timeout: 260 seconds)]
jb55 has joined #nixos
<neonfuz> my ntfs hard drive is mounting as read only, any idea why?
<andi-> neonfuz: ntfs3g
jb55 has quit [(Ping timeout: 248 seconds)]
jb55 has joined #nixos
Sonarpulse has quit [(Ping timeout: 255 seconds)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
griff_ has quit [(Quit: griff_)]
ylwghst has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
myrl-saki has quit [(Read error: Connection reset by peer)]
asuryawanshi has quit [(Ping timeout: 260 seconds)]
jb55 has quit [(Ping timeout: 268 seconds)]
<manoj> samueldr: thanks for your reply
aanderse has quit [(Remote host closed the connection)]
aanderse has joined #nixos
stephaneyfx has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<gchristensen> dtzWill: means someone broke master :)
dieggsy has joined #nixos
astronavt has quit [(Quit: Leaving...)]
<gchristensen> useless github issue search of the day: "https://github.com/nixos/nix/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+nix"
ylwghst has joined #nixos
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
ylwghst has quit [(Remote host closed the connection)]
azdle has quit [(Remote host closed the connection)]
astronavt has joined #nixos
dieggsy has joined #nixos
Havvy has quit [(Remote host closed the connection)]
Havvy has joined #nixos
Ankhers has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
erictapen has joined #nixos
Ankhers has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<dhess> hey if a package uses cpp at runtime for preprocessing, which package should it depend on to get cpp?
<dhess> like, what's the canonical package for cpp in Nix
dfranke has joined #nixos
<dfranke> I'm trying to package a Python application which doesn't use the standard Python build framework. I'm having trouble getting it to set PYTHONPATH appropriately at runtime. I tried adding wrapProgram $prog --prefix PYTHONPATH : "$(toPythonPath "${python36Packages.pyqt5}")" in postFixup, and that's allowing it to find PyQt5, but not the recursive dependencies thereof. Is there a recipe for this somewhere?
Supersonic112 has quit [(Disconnected by services)]
mekeor has quit [(Remote host closed the connection)]
<dhess> looks like maybe just stdenv.cc
asuryawanshi has quit [(Ping timeout: 260 seconds)]
Supersonic112_ has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
Supersonic112_ is now known as Supersonic112
onethirtyfive has joined #nixos
<onethirtyfive> Is anyone here super familiar with pypi2nix? (https://github.com/garbas/pypi2nix/)
asuryawanshi has joined #nixos
<onethirtyfive> I'm having an error downloading dependencies, described here: https://github.com/garbas/pypi2nix/issues/163
<onethirtyfive> Hoping someone here can tell me I'm missing something obvious. :)
mizu_no_oto has joined #nixos
asuryawanshi has quit [(Ping timeout: 255 seconds)]
markus1199 has joined #nixos
lambdamu has joined #nixos
griff_ has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
lambdamu_ has quit [(Ping timeout: 248 seconds)]
nuncanada has quit [(Quit: Leaving)]
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
<Lisanna> Hey, could use some advice.
<Lisanna> I'm working on trying to get Intel Parallel Studio into nixpkgs, but looks like it's going to be an uphill fight the whole way. Its installer program unpacks things and tries to immediately run them, but the binaries need to have their interpreter changed in order to run. Is using buildFHSChrootEnv my best bet here?
asuryawanshi has joined #nixos
<gchristensen> hmm no place to squeeze a patchshebangs in?
<Lisanna> sorry, binary interpreter :)
<Lisanna> it's unpackign ELFs and executing them
<Lisanna> and the thing that does the unpacking is itself a binary
<Lisanna> so no patching
<dfranke> gross
<gchristensen> ouch
<Lisanna> yep ):
<dfranke> alright, looks like I've solved my Python dependency problem. Build a python environment using pkgs.python36.withPackages and then give the environment as a build input.
<gchristensen> Lisanna: and you're _sure_ there is no option to unpack then stop?
CMCDragonkai1 has quit [(Ping timeout: 260 seconds)]
<gchristensen> Lisanna: I don't suppose you could unpack, patchelf, repack, then execute? :):
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<Lisanna> gchristensen: just had that thought... that MIGHT be possible, let me look
ertes has joined #nixos
notdaniel has quit [(Quit: Leaving)]
<Lisanna> well, there's about 187 RPMs in here, and a number of other strange packages that look like some weird mutant cross between XML, bash scripts, and some kind of binary, which I think is responsible for driving the installer / TUI interface renderer
<gchristensen> oh my word
<Lisanna> I'm thinking I might have more luck with buildFHSChrootEnv
<Lisanna> although I've never used it before
<Lisanna> Steam uses that right?
asuryawanshi has joined #nixos
<gchristensen> yeah probably your best bet :)
<Lisanna> so much for a short weekend project
<Lisanna> lol
<gchristensen> :$ good luck :) good night
<Lisanna> alright, I'll go study the steam package implementation and see if I can't put together an environment that will work... and this doesn't even cover all the patching I'll need to do post-install on all the binaries it installs
<Lisanna> okay, goodnight :)
asuryawanshi has quit [(Ping timeout: 248 seconds)]
mahalel_ has joined #nixos
iyzsong has joined #nixos
arkad has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
arkad has quit [(Quit: WeeChat 1.9.1)]
<jeaye> Has the problem of installing software for each user, declaratively, from configuration.nix been solved?
<jeaye> Every per-user approach I've seen has relied on some imperative steps, I think, beyond `nixos-rebuild switch`.
<jeaye> I don't really need users to add their own packages, so I'm fine with it being in configuration.nix, but I don't want all of the packages to be global.
<jeaye> Ideally having `nixos-rebuild switch` also build the packages in each user's `~/.nixpkgs/config.nix` or something would do the trick. I don't think an activation script is a good solution to that.
<dhess> Anyone here running NixOS on OVH/Kumsufi?
<manoj> Hello, how to get the list of all services?
<manoj> the content of the variable config.services?
<samueldr> dhess: yes
<Lisanna> manoj: hacky way: use one of the debugging trace functions in lib
<dhess> samueldr: any tips/tricks for installing? Did you use nixos-infect?
<samueldr> on kimsufi, my own server, and on soyoustart, another server
<samueldr> dhess: give me ~5 minutes to fish out my notes
<samueldr> but no, I've used a... pretty peculiar method
<samueldr> but that method might be REALLY useful once you fuck up in the future with the server :)
<manoj> thanks
<samueldr> (I haven't had time to re-do them properly to add them to the wiki)
mahalel_ has quit [(Ping timeout: 248 seconds)]
<samueldr> though, if it's a new machine, do try nixos-infect, it might work properly
<samueldr> the jist of it is that I boot on the rescue iso, download the nixos iso, start qemu-kvm with vnc on localhost, forward through ssh
<samueldr> this will allow you to fix your server (by rolling back and fixing on qemu) when you eventually break it :)
<samueldr> (there's no serial access or remote console access with kimsufi)
<samueldr> you probably can nuke the disk entirely, haven't tried that yet
<jeaye> michalrus: ping
asuryawanshi has joined #nixos
sary has quit [(Ping timeout: 240 seconds)]
dieggsy has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
jb55 has joined #nixos
sary has joined #nixos
<dhess> samueldr: thanks!
asuryawanshi has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Quit: griff_)]
asuryawanshi has joined #nixos
jb55 has quit [(Ping timeout: 268 seconds)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
dieggsy has quit [(Read error: Connection reset by peer)]
jb55 has joined #nixos
revtintin has quit [(Quit: WeeChat 1.9.1)]
asuryawanshi has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
manoj has quit [(Ping timeout: 255 seconds)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
drakonis has quit [(Read error: Connection reset by peer)]
<vaibhavsagar> is nixos-17.09 quite far behind release-17.09?
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<vaibhavsagar> I had a change that was merged into release-17.09 a few days ago but I don't see it in nixos-17.09 and I would expect it to be there
bfrog has joined #nixos
<samueldr> looks like 17.09 hasn't advanced in a while
<samueldr> (or that tool broke)
<samueldr> the channel should be at this release: https://github.com/NixOS/nixpkgs-channels/tree/nixos-17.09
<samueldr> this commit*
<samueldr> (12 days ago)
asuryawanshi has joined #nixos
sary has quit [(Ping timeout: 248 seconds)]
<vaibhavsagar> thanks samueldr, I'm getting the same info from http://howoldis.herokuapp.com/
sary has joined #nixos
asuryawanshi has quit [(Ping timeout: 255 seconds)]
asuryawanshi has joined #nixos
oahong has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 255 seconds)]
asuryawanshi has joined #nixos
bfrog has quit [(Ping timeout: 246 seconds)]
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
antonv has quit [(Ping timeout: 240 seconds)]
CMCDragonkai1 has joined #nixos
asuryawanshi has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
CMCDragonkai1 has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
CMCDragonkai1 has joined #nixos
onethirtyfive has left #nixos []
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
Lisanna2 has joined #nixos
hamishmack has joined #nixos
ilyaigpetrov has joined #nixos
ob7 has joined #nixos
asuryawanshi has joined #nixos
zhavypath[m] has joined #nixos
<andromeda-galaxy> so I was trying to build chromium (from development) in NixOS... I haven't been able to figure out a good way to get depot-tools packaged/usable in the (to be written) chromium development derivation... has anyone managed to build devel chromium on nixos?
asuryawanshi has quit [(Ping timeout: 255 seconds)]
<ob7> anyone here have info on installing deb packages with nix?
jmeredith has joined #nixos
asuryawanshi has joined #nixos
ob7 has quit [(Quit: WeeChat 1.9.1)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
hamishmack has quit [(Quit: hamishmack)]
stephaneyfx has quit [(Quit: Leaving)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
notdaniel has joined #nixos
freusque has quit [(Ping timeout: 255 seconds)]
playX has joined #nixos
hamishmack has joined #nixos
asuryawanshi has joined #nixos
<playX> Hello everyone, i want to write a package, i need to make option "sha256 =" if i'm fetch from URL?
<hyper_ch> yes
asuryawanshi has quit [(Ping timeout: 248 seconds)]
freusque has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
remexre has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
orivej has joined #nixos
freusque has quit [(Ping timeout: 260 seconds)]
freusque has joined #nixos
aarand has joined #nixos
<jeaye> No PS1 or bash_profile or anything; over 11 seconds to start an interactive shell.
<jeaye> Non-interactive: 15ms
asuryawanshi has joined #nixos
<playX> what i'm doin wrong? http://i.imgur.com/g68iMhA.png
hamishmack has quit [(Quit: hamishmack)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<playX> fixed first error gets another "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)". That's a default.nix: https://pastebin.com/H5uUqd1d
hamishmack has joined #nixos
<playX> how i can fix that error?
remexre has joined #nixos
<hedning[m]> jeaye: there's an issue about slow bash startup with enableCompletion, might be what you're running into: https://github.com/NixOS/nixpkgs/issues/22648
<hedning[m]> jeaye: reading that indicates that having `bash-completion` in systemPackages might be the culprit
<jeaye> Neat, thanks. I'll try removing it.
orivej has quit [(Ping timeout: 240 seconds)]
<playX> clever: i'm used your default.nix to create a ftb laucher nixpkg, maybe you can say what's wrong?
<jeaye> hedning[m]: That did the trick!
<jeaye> I'll follow up on that ticket.
asuryawanshi has joined #nixos
<neonfuz> Any idea how to build an x86 iso on a amd64 machine?
endformationage has quit [(Quit: WeeChat 1.9.1)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<neonfuz> like, which option controls architecture?
griff_ has joined #nixos
Itkovian has joined #nixos
dejanr has joined #nixos
orivej has joined #nixos
Itkovian has quit [(Client Quit)]
ssmike has joined #nixos
cement has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
<neonfuz> found it
b has quit [(Quit: Lost terminal)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 250 seconds)]
ma27 has joined #nixos
vidbina has joined #nixos
asuryawanshi has joined #nixos
manoj has joined #nixos
manoj has quit [(Client Quit)]
vcunat has joined #nixos
asuryawanshi has quit [(Ping timeout: 250 seconds)]
proteusguy has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #31182: chroot-user: rewrite in C, drop CHROOTENV_EXTRA_BINDS (master...chroot-user/c-rewrite) https://git.io/vFnEi
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Ping timeout: 260 seconds)]
oahong has quit [(Ping timeout: 240 seconds)]
asuryawanshi has joined #nixos
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<Wizek> hello
<Wizek> if I do `nix-shell -p 'haskell.packages.ghc822.developPackage { root = ./.; }' -j4 --run 'cabal new-repl'`
<Wizek> what might an error like this mean? `variable $src or $srcs should point to the source`
<srhb> Wizek: Usually that src and srcs are unset.
<srhb> In the call to mkDerivation
<Wizek> srhb: do you mean like this? nix-shell -p 'haskell.packages.ghc822.developPackage { root = ./.; src = ./.; }' -j4 --run 'cabal new-repl'
<srhb> I'm not familiar with developPackage, but if it passes that on to mkDerivation, yes
asuryawanshi has joined #nixos
<Wizek> srhb: I'm not familiar yet either. Where may I find its source, would you know?
griff_ has quit [(Quit: griff_)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<Wizek> I also have a different question: in nix-repl, can I somehow always import nixpkgs?
<vcunat> nix-repl '<nixpkgs>'
<Wizek> vcunat: thanks! Can I somehow put the builtins in scope too upon launch?
<vcunat> wizek: it will be best to run (say) nix-repl repl.nix
asuryawanshi has joined #nixos
<vcunat> and fill repl.nix with whatever you like
<Wizek> vcunat: okay
<vcunat> wizek: I suppose you know the command
<vcunat> :a builtins
<vcunat> (you might also like :a lib)
<Wizek> vcunat: not yet, still familiarizing myself with the repl. Will check it out
<vcunat> see :?
<hedning[m]> I'm trying modify the bash module locally, but nixos-rebuilt isn't picking it up (with -I nixpkgs=/path/to/repo), any pointers?
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<vcunat> hedning[m]: the invocation seems OK
<vcunat> so I suppose the modification is the problem
<hedning[m]> it doesn't complain, though it now didn't pickup a change I made to my configuration, so something funny is up, will investigate
<hedning[m]> uhm, sorry, picked up `--rollback` from my shell history...
<vcunat> :-)
<hedning[m]> there we go :)
asuryawanshi has joined #nixos
Itkovian has joined #nixos
sary has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<srhb> Er, is there no way to see issues I've subscribed to on github? >>
asuryawanshi has joined #nixos
<vcunat> srhb: https://github.com/NixOS/nixpkgs/issues?utf8=✓&q=is:issue+is:open+involves:srhb
<vcunat> but it might not be what you want exactly
<srhb> vcunat: Ah, no, not quite, but it's a lot better than what I had. Thank you!
<vcunat> :-)
<srhb> Anyone more experienced than me want to review https://github.com/NixOS/nixpkgs/pull/32422 ? I feel it's a great addition (although it's placement may be a bit weird) and I'm afraid it might scroll into obscurity. :)
<srhb> (That's the one I was searching for)
<vcunat> there's also mentions:srhb
simendsjo has joined #nixos
<srhb> It's weird there's no subscribed: but yeah, I can work with that :)
hiratara has quit [(Ping timeout: 258 seconds)]
hiratara_ has joined #nixos
hiratara_ is now known as hiratara
simendsjo has quit [(Remote host closed the connection)]
<srhb> vcunat: Thanks :-)
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<vcunat> there are more weird things, e.g. I've been wanting a button to trigger the "participating" status for me
<vcunat> (I had to make a comment instead)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbBb0
<NixOS_GitHub> nixpkgs/master b6bf8db Orivej Desh: Revert "gmime: 3.0.1 -> 3.0.5"...
NixOS_GitHub has left #nixos []
<srhb> Oh, yeah, that's would also be really handy!
CMCDragonkai1 has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<neonfuz> do you need to make a firewall exception to access ssh by default? or would enabling the service add the rule to the firewall?
JosW has joined #nixos
<srhb> neonfuz: ssh is the one and only port that is by default opened in the firewall
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hedning opened pull request #32534: nixos/programs/bash: Let bash-completion lazy load scripts (master...bashstartup) https://git.io/vbBb9
NixOS_GitHub has left #nixos []
<vcunat> in general, IIRC it's by design that you have set firewall rules explicitly
<srhb> Yeah.
<vcunat> s/have/have to/
<srhb> sshd is the one service iirc that sets networking.firewall.allowedTCPPorts on enable.
Itkovian has joined #nixos
<srhb> To avoid nasty surprises :-)
simendsjo has joined #nixos
<srhb> A quick grep shows that's not _quite_ the case, but almost.
<srhb> neonfuz: iow, enabling sshd does open the relevant port or ports in the firewall, as a special case. :)
vidbina has quit [(Ping timeout: 255 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
phdoerfler has joined #nixos
playX has quit [(Quit: Page closed)]
dejanr has quit [(Quit: WeeChat 1.9.1)]
vidbina has joined #nixos
<srhb> neonfuz: By the way, there's usually a nice way to open additional ports since you can refer to the port of the service itself. So you don't need magical constants littered there :)
Itkovian has joined #nixos
<neonfuz> nice
<neonfuz> is sshd different than openssh?
<neonfuz> like the options
Itkovian has quit [(Client Quit)]
asuryawanshi has joined #nixos
Itkovian has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<srhb> neonfuz: No, services.sshd is an alias of services.openssh
<srhb> Or rather, some of the suboptions of openssh are aliased to corresponding sshd options.
<srhb> I think it's mostly just legacy :)
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<srhb> (So use openssh, not sshd)
<neonfuz> ah
<neonfuz> cool
asuryawanshi has joined #nixos
dywedir has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
dywedir has joined #nixos
asuryawanshi has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ilya-kolpakov closed pull request #32416: pythonPackages.pymc3: init at 3.2 (master...pythonPackages.pymc3) https://git.io/vbWio
NixOS_GitHub has left #nixos []
asuryawanshi has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Ping timeout: 260 seconds)]
Ivanych has quit [(Ping timeout: 248 seconds)]
aarvar has quit [(Ping timeout: 260 seconds)]
Ivanych has joined #nixos
ottidmes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbBxk
<NixOS_GitHub> nixpkgs/release-17.09 ab84b53 Vladimír Čunát: openexr: upstream security patch...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
<neonfuz> ugh, I think it's my router blocking the ssh
<vcunat> it's common to block all connections from outside
<vcunat> (unless they seem just answers to packets from inside)
<srhb> Often they have an option to dmz everything for one host (or add specific port mappings)
_rvl_ has joined #nixos
_rvl has quit [(Ping timeout: 252 seconds)]
asuryawanshi has joined #nixos
rogue_koder has quit [(Remote host closed the connection)]
rogue_koder has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
nallar has joined #nixos
asuryawanshi has joined #nixos
Ross has quit [(Ping timeout: 240 seconds)]
nallar is now known as Ross
astronavt has quit [(Ping timeout: 255 seconds)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<jluttine> i'm packaging monero-gui. it has a build.sh script for building. how can i easily patch it's /bin/bash shebang?
<srhb> jluttine: patchShebangs?
<jluttine> srhb: perhaps. no idea how to use that though. where is it documented?
<srhb> Basically just apply it to the file you want patched.
asuryawanshi has joined #nixos
<jluttine> srhb: ok, thanks! so i added: `patchPhase = "patchShebangs .";`
<srhb> jluttine: Note that overriding patchPhase will disable the automatic patching in of patches, if you need it. :)
<jluttine> i have no idea whether i need it or not..
<srhb> postPatch might be more appropriate.
<jluttine> ok
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
asuryawanshi has quit [(Ping timeout: 255 seconds)]
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
vandenoever has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
dupndrop has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
asuryawanshi has joined #nixos
<ottidmes> Does anyone have an example of booting the NixOS iso via a loopback device with Grub2, it seems every distribution expects different arguments, but I have unable to find an example of this for NixOS, for Arch Linux and Ubuntu there are plenty
Mateon3 has joined #nixos
coot_ has joined #nixos
Mateon1 has quit [(Ping timeout: 255 seconds)]
Mateon3 is now known as Mateon1
asuryawanshi has quit [(Ping timeout: 250 seconds)]
<srhb> ottidmes: Just in case, are you trying to create a rescue booter?
<srhb> ottidmes: (Because clever has a better option for that)
<ottidmes> srhb: Just creating a convenient USB stick containing the installers of Ubuntu, Arch and NixOS
<srhb> Ah.
<vcunat> nixos ISO works with unetbootin
<srhb> Well I would imagine the arguments passed after mounting the iso are the same as if it were the only system in grub.
<vcunat> but I don't know of a simple combining option
<ottidmes> srhb: After dd'ing my USB stick many times in a row, because I had to switch OS'es frequently in a row, I thought, doing it like this should be better
* srhb nods
<vcunat> I use unetbootin when I also want the remaining space to use simply to transfer files
<ottidmes> vcunat: That is a good plan B, just create a partition for NixOS, but use an iso for the rest
asuryawanshi has joined #nixos
<ottidmes> I can get it to boot via the iso loopback, but it fails to mount the root device properly, not sure what that should be in the case of a loopback iso
<srhb> Hmm, is the label missing perhaps?
asuryawanshi has quit [(Ping timeout: 268 seconds)]
<ottidmes> Well, what I tried was the partition that held the iso, but I understand how that won't work, since it should point to the root of the installer partition, which you get with dd because it also copies the partition table, but with a loopback iso, you just mount the contents as far as I understand, so I am not quite sure what the root should be
<ottidmes> the iso itself?
<srhb> Normally it would be the label of the root partition yeah
<srhb> If the loopback mount exposes that, I would use it
<srhb> As in root=LABEL=labelofdevice
<ottidmes> srhb: I will try that :)
coot_ has quit [(Read error: No route to host)]
coot_ has joined #nixos
<srhb> I think it might be cleaner to generate the entire thing with the iso utilities in nixpkgs.
<srhb> It should be relatively simple to embed the other installers like memtest is.
<srhb> And then you get all the nix goodies for configuring grub.
<srhb> (Simple in theory, if you haven't touched the infrastructure before it may be a bit daunting)
<ottidmes> srhb: I will definitely give it a look, but first I will see if I can make this approach to work, thanks for the tip!
<srhb> :)
coot_ has quit [(Read error: No route to host)]
coot_ has joined #nixos
leat has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
oida has quit [(Ping timeout: 248 seconds)]
Kingsquee has joined #nixos
asuryawanshi has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
coot_ has quit [(Read error: No route to host)]
thc202 has joined #nixos
ilja_kuklic has joined #nixos
Kingsquee has quit [(Client Quit)]
coot_ has joined #nixos
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vbReB
<NixOS_GitHub> nixpkgs/master 746d9d1 Vincent Laporte: ocamlPackages.markup: 0.7.4 -> 0.7.5
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Ping timeout: 246 seconds)]
asuryawanshi has joined #nixos
stanibanani has joined #nixos
<sphalerite> I've just tried rebuilding my system config and got a "TOS hash mismatch" on the ACME cert services. Has anyone else had this issue?
<sphalerite> I'm guessing they've updated their terms of service
<sphalerite> err… just noticed that the machine is still on 17.03 D:
<infinisil> A few weeks ago I said using stack on nixos totally works fine
<infinisil> Well now I changed my opinion, as it's been a pain to deploy
<ottidmes> sphalerite: I had trouble with ACME cert services as well, but updating to the 17.09 fixed that for me, so it indeed is likely just matter of updating
<infinisil> to deploy a stack haskell project, i need to build it with sandbox disabled. It then takes a whole while to download the stack build plan and build all dependencies, no caching
coot has joined #nixos
simukis has joined #nixos
coot_ has quit [(Ping timeout: 250 seconds)]
test8888 has quit [(Quit: Connection closed for inactivity)]
leat has joined #nixos
coot has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Remote host closed the connection)]
simendsjo has quit [(Ping timeout: 268 seconds)]
coot has joined #nixos
<michalrus> jeaye: pong, what’s up? :)
<michalrus> Declarative user packages in configuration.nix are solved in current master. Just do `users.users.jeaye.packages = [ pkgs.htop ]`
<michalrus> It’ll modify $NIX_PROFILES, which in turn modifies PATH and all other important env vars.
bennofs has joined #nixos
<michalrus> I don’t know if that’s immutable enough, but probably as immutable as possible.
drakonis has joined #nixos
<michalrus> If you’re not using master (like me), add `fetchurl { … https://github.com/michalrus/dotfiles/blob/ede923fd1475759f53aebac588fe482042abd12e/nixos-config/modules/user-profiles.nix }` to your `imports`. You can’t add the Nixpkgs module, because it’s not in a separate file.
<michalrus> jeaye: if you want declarative user packages, BTW, you might also want https://github.com/michalrus/dotfiles/blob/ede923fd1475759f53aebac588fe482042abd12e/nixos-config/modules/dotfiles.nix
<michalrus> :]
mrkgnao has joined #nixos
mrkgnao has quit [(Remote host closed the connection)]
nixer01 has joined #nixos
ylwghst has joined #nixos
<nixer01> Hey! Does anyone know what is actually written in "/nix/var/log/nix/*" and how to clean its contents? I assume, this are build logs and it looks like they are not automatically cleaned. Thanks!
<LnL> that only contains build logs AFAIK
vidbina has quit [(Ping timeout: 246 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<nixer01> LnL: thanks! I am trying to get a sorted listing right now, fiddling with sort right now: "ls -a */* | sort -k..". Do you know any standard command that cleans those logs, they seem to grow in size.
thblt has joined #nixos
coot has quit [(Read error: No route to host)]
coot has joined #nixos
<LnL> don't know, but if you don't care about the drv logs you can remove all of them
<nixer01> LnL: Thanks! Why do you call them "drv" logs, if I may ask?
<LnL> for each derivation you built locally there will be a logfile like that with the build output
<nixer01> LnL: Ah, "drvs" stands for derivations, I get it, thank you!
<LnL> you can query it with nix-store -l /nix/store/fsnp7r8cmm0nl26cfwi7p0qysc7nggmi-hello-2.10.drv
<nixer01> awesome, thank you!
MP2E has quit [(Remote host closed the connection)]
phdoerfler has quit [(Quit: Leaving.)]
sigmundv_ has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
clever has quit [(Ping timeout: 248 seconds)]
drakonis has quit [(Ping timeout: 250 seconds)]
clever has joined #nixos
kreetx has joined #nixos
vidbina has joined #nixos
mrkgnao has joined #nixos
drakonis has joined #nixos
fendor has joined #nixos
clever has quit [(Ping timeout: 255 seconds)]
clever has joined #nixos
<sphalerite> Having some trouble upgrading a server to 17.09 — I can't ssh into it after the upgrade, and it doesn't respond to pings. I can restore it to 17.03 by booting Hetzner's rescue system and removing the 17.09 boot entries from grub.cfg, but I still don't know how to fix the networking issues…
<sphalerite> By the looks of it it's not connecting to the internet at all, a bunch of services that try to access the internet also fial
<clever> sphalerite: there was a network config change that renamed some interfaces i believe
<sphalerite> That only affected qemu as far as I can tell from the release notes https://nixos.org/nixos/manual/release-notes.html#sec-release-17.09-incompatibilities
<sphalerite> yeah no it's still called enp3s0 as before
asuryawanshi has joined #nixos
<sphalerite> oh, huh
<sphalerite> Dec 10 13:43:18 lugn kernel: r8169 0000:03:00.0 enp3s0: link down
<sphalerite> after the link is brought up
<sphalerite> or not… idk, I'm just going to try rebooting it again x)
ylwghst has quit [(Remote host closed the connection)]
stphrolland has joined #nixos
drakonis_ has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
drakonis has quit [(Ping timeout: 255 seconds)]
ylwghst has joined #nixos
<nixer01> LnL: I am trying to get a sorted list right now, sorted by package name. Right now, the best command I found out to be is: "ls -pR /nix/var/log/nix/ | grep -v / | sort -f -k1.31" What this does is - list and sort of derivation logs alphabetically, skipping the hash and directory names. Perhaps this could be interesting for someone.
<nixer01> ls -pR /nix/var/log/nix/ | grep -v / | sort -f -k1.31
<nixer01> ^^^ for visibility. Thank you, LnL
<nixer01> btw, is there a faster way to search through packages, than "nix-env -qa"? Like cached accelerated search function? The package search currently takes a lot of time.
rogue_koder has quit [(Ping timeout: 260 seconds)]
nixer01 has quit [(Quit: Konversation terminated!)]
ixxie has joined #nixos
nuncanada has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rnhmjoj opened pull request #32540: nixos/doc: document the firewall port ranges options (master...portrange) https://git.io/vbRTq
NixOS_GitHub has left #nixos []
<sphalerite> clever: got it fixed… turns out it was a behaviour change in the DHCP client
<clever> ah
<clever> ive been busy dealing with ddos and monero today
b has joined #nixos
clever has quit [(Quit: Reconnecting)]
clever has joined #nixos
vidbina has quit [(Remote host closed the connection)]
babyflakes has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbRIB
<NixOS_GitHub> nixpkgs/master f601ecf Orivej Desh: qt4: fix qmake on darwin and delete custom install phase...
NixOS_GitHub has left #nixos []
<Mic92> pmeunier: I have questions regarding crate feature flags in buildRustPackage. Would be your feature resolving equivalent to: crate_a = { features = ["foo"];}; crate_b = { dependencies = [ (crate_a.override { features = ["bar"];} ) ] };
<aristid> Mic92: i fixed awesome 3.5 exactly the same way as you fixed 4.0... but only afterwards i noticed that you did that for 4 as well :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 3 new commits to master: https://git.io/vbRIo
<NixOS_GitHub> nixpkgs/master 9988224 Tor Hedin Brønner: nixos/programs/bash: Let bash-completion lazy load scripts...
<NixOS_GitHub> nixpkgs/master 42973be Orivej Desh: nixos/programs/bash: document that /etc/bash_completion.d is obsolete...
<NixOS_GitHub> nixpkgs/master 8168671 Orivej Desh: Merge pull request #32534 from hedning/bashstartup...
NixOS_GitHub has left #nixos []
<aristid> Mic92: why did this weird double-quoting cause problems now and never before?
<aristid> (or triple-quoting, as it was double quotes inside single quotes :D)
<Mic92> aristid: I was asking myself the same question.
<aristid> also, is awesome 4 worth the migration work? :)
<aristid> lol, "Awesome 4.0 has been released on 2016-12-25" - looks like i'm a bit late in noticing this release
<orivej> the effect of quoting has been changed in https://github.com/NixOS/nixpkgs/pull/31497
<Mic92> aristid: it did not break anything as far as I remember
<aristid> orivej: ah, thanks!
civodul has joined #nixos
<stphrolland> does anyone here use vimPlugins.vundle package, for managing vim plugins ? After installing the package, it doesn't work out of the box with my old .vimrc file. So I'm wondering if anyone uses somethingelse as a vim package manager, and who would advise me to use it.
<aristid> Mic92: that doesn't sound like you were extremely overwhelmed with the new features though ;-)
<stphrolland> when I say old, I mean, my vimrc file coming from ubuntu
rosegal has joined #nixos
<srhb> stphrolland: I use Nix as a Vim package manager.
<srhb> stphrolland: (Surprise surprise)
<Mic92> I prefer nix as a vim plugin manager instead https://github.com/Mic92/dotfiles/blob/master/nixpkgs-config/home.nix#L19
<Mic92> it also take care of system dependencies
bennofs1 has joined #nixos
iyzsong has quit [(Read error: Connection reset by peer)]
<stphrolland> nixer01: to speedup the search for packages, I have nix-env -qaP >> list-packages.log into the directory of my nixconfig managed by git. Now when I grep on it, it's 1000x faster than waiting for nix-env -qaP to finish (I think).
rosegal has left #nixos []
bennofs has quit [(Ping timeout: 250 seconds)]
ylwghst has quit [(Remote host closed the connection)]
<orivej> stphrolland: `nox` provides fast package search and better UI
<FRidh> The new `nix search` (1.12) also uses a cache
JosW has quit [(Quit: Konversation terminated!)]
<Acou_Bass> eey folks, weird issue... both chromium and firefox crash out completely when i do a 'save X as...' from anything (eg. right-click a photo), i guess the file picker popup thingy isnt coming up?
ylwghst has joined #nixos
<aristid> Acou_Bass: no crash for me, and i do get the file picker, weird
<Acou_Bass> im using version 57 from the mozilla overlay... could be it XD
rihards has joined #nixos
<aristid> Acou_Bass: i use 57 from official nixpkgs :)
<aristid> (no chrome)
<Acou_Bass> 17.09 repo still has 56 though
vcunat has quit [(Ping timeout: 246 seconds)]
dupndrop2 has joined #nixos
<stphrolland> orijev: when i type nix search, nixos tells me to install nixUnstable. Do you think it's stable enough so as I include it in my system ?
<drakonis_> its really just up to date packages
coot has quit [(Ping timeout: 246 seconds)]
bennofs1 has quit [(Quit: WeeChat 1.9.1)]
nix-gsc-io`bot has joined #nixos
bennofs has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/9b7a7027484 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
ylwghst has quit [(Remote host closed the connection)]
ixxie has quit [(Quit: Lost terminal)]
<orivej> stphrolland: it is stable enough, and unless you uninstall nixStable, the only command provided by nixUnstable will be `nix`
ylwghst has joined #nixos
<stphrolland> Mic92: thanks, I have bookmarked your nix config for home. I keep it for learning nix, for the moment what I read is not straightforward for me.
<stphrolland> orivej: fair enough... and what other advantages for nixUnstable, not counting nix search ? The main advantage for you.
<catern> hmmmm
<catern> maybe this is overreaching and over-applying "Nix solves everything!"
<catern> but I see all this monorepo vs many repos talk on hacker news, and I wonder... isn't "a good package manager" the traditional solution to managing many repositories/many projects?
<orivej> stphrolland: at the moment I occasionally use `nix` for `nix edit`, `nox` for search, `nix-repl` for repl, and Nix 1.11 for everything else, but I'm ready to switch. `nix build` is pretty
<LnL> 1.12 still has the old commands
ilja_kuklic has quit [(Ping timeout: 246 seconds)]
ylwghst has quit [(Remote host closed the connection)]
<Mic92> stphrolland: that one is more straight forward: https://nixos.wiki/wiki/Vim_plugins
<orivej> catern: Nixpkgs is a monorepo of the open source because it ties dependencies together in a coherent versionless rolling world.
coot has joined #nixos
drakonis_ has quit [(Read error: Connection reset by peer)]
proteusguy has joined #nixos
ylwghst has joined #nixos
<catern> orivej: well, I don't think "monorepo" is the right term for Nixpkgs; you might as well call Debian or Fedora a monorepo, then. which might be reasonable!
stphrolland has quit [(Remote host closed the connection)]
vcunat has joined #nixos
<orivej> catern: I meant that an important benefit of a monorepo is that almost everything exists in one version and projects depend on each other only by name. Nixpkgs have this benefit and others don't.
i-am-the-slime has joined #nixos
stphrolland has joined #nixos
magnetophon has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
<catern> orivej: well, traditional distributions also have that benefit!
<catern> in a way :) because you can only have one version installed at a time!
clever has quit [(Changing host)]
clever has joined #nixos
dieggsy has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
<catern> hmm
<catern> in other news
<catern> I am still wondering how to depend on binaries using absolute paths in Python
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5b53774f89e (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<catern> so I don't have to put them in propagatedBuildInputs, but rather they just automatically get picked up by the dep scanning
<catern> should I make a build process for my python code, I guess?
<vcunat> the scanning done by nix is only for references that the build process makes somehow
<vcunat> (but that part may be automatizable for some languages)
<catern> yes, so what's an appropriate way to add a Python build process?
<catern> what do you mean by "that part"?
<catern> (currently the "build process" just runs setuptools stuff which doesn't actually do anything substantial... hmm wait maybe I should have setuptools do the baking-in of paths, somehow?)
griff_ has joined #nixos
ilja_kuklic has joined #nixos
<vcunat> catern: the manual suggests that for python the way is propagatedBuildInputs https://nixos.org/nixpkgs/manual/#reference
<vcunat> I don't know much about our python packaging, so better not trust me on that point
<catern> I am aware, that is why I said "so I don't have to put them in propagatedBuildInputs" :)
<catern> which, is not a huge annoyance, but, it's a minor benefit to have the build process actually bake in the PATHs, so Python can be treated normally instead of using propBuildIn
<FRidh> catern: typically you would have to patch the code to hardcode the paths. In certain cases it is possible to creete wrappers
<catern> FRidh: right, this is my own library though, so I can do whatever I want. including, for example, creating a "config.py" (akin to config.h) which is created by setuptools
<catern> FRidh: what's your thought on the most idiomatic way with setuptools+Nix to hardcode the paths?
<catern> one which would be nicely portable to other distributions :)
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
<Acou_Bass> i feel like I've had this issue before but can't put my finger on it... when i do anixos rebuild switch, it either fails to restart all the systemd units or completely hangs when i do the command, and so networkmanager goes off until i restart... anyone know where to begin looking to fix that? xD
<FRidh> catern: in my opinion, if python packages depend on external executables, then they should have somewhere MYPROGRAM = "program" so that it is easily patchable
<catern> FRidh: hmm, so you do promote patching as the correct way to do it? or, I guess the easiest way would be a locations_of_external_executables.py that can be wholly replaced with a Nix-derived thing?
<FRidh> catern: it is the only solution for scripts
<grw> why wouldnt you just use PATH and eg shutil.which()?
<catern> FRidh: yeah, but this is a library, my own library, so I can do whatever I want
<FRidh> catern: still
<catern> grw: PATH is unnecessary when you have Nix :)
<sphalerite> grw: because even if it's a hard dependency it isn't encoded well and it won't get pulled in by nix
Dr8128 has quit [(Ping timeout: 255 seconds)]
<sphalerite> if it's a soft dependency that makes sense, but if it's required for the library to function you shouldn't leave it up to the user to install it
<FRidh> won't work with modules where you cannot wrap any executable
<grw> isnt that what propogatedBuildInputs does?
<clever> grw: propogatedBuildInputs only makes it available at build time, for things down the line
stanibanani has quit [(Ping timeout: 248 seconds)]
<clever> grw: nothing will persist at runtime
<catern> FRidh: so do you think generating a locations_of_external_executables.py is a good idea or not?
asuryawanshi has quit [(Ping timeout: 240 seconds)]
Lisanna2 has quit [(Ping timeout: 248 seconds)]
<grw> ah, didnt realise that. you can use wrapper and mkEnv or something to persist at runtime?
<clever> grw: in the case of python libraries, the problem is that you need to wrap the final executable that winds up using your library
<clever> grw: and thats not always easy
<FRidh> catern: sure, why not
Itkovian has quit [(Quit: Textual IRC Client signing off)]
<catern> ¯\_(ツ)_/¯ i'm really looking for something that is more obviously the correct solution than "expert says sure, why not"
<FRidh> catern: the correct solution is to do a substitution in order to hardcode a path. There is just no other otion
<clever> tep
<clever> yep*
<catern> hmm, okay, fair enough, at least that way there's no weird logic or setup in Python code, all the weirdness is in the Nix package
amfl has quit [(Read error: Connection reset by peer)]
<catern> though, wait a second! what about when I want to run the program under nix-shell?
bfrog has joined #nixos
<clever> nix-shell will create a build-time env, and obey propogatedBuildInputs
<catern> I don't think substitution is fully general - it requires actually running the Nix builder, before you run the stuff
<catern> clever: sure but nix-shell won't patch files for you
<clever> correct
amfl has joined #nixos
<catern> this again suggests that the way to do it is, to do it in setup.py
<catern> because that way it can be auto-done on setup.py develop which is run by nix-shell in a Python project
asuryawanshi has joined #nixos
Itkovian has joined #nixos
<FRidh> If you have a Python package, you first build it, and then you can use it with nix-shell -> it ispatched
<catern> right but I want to hack on it in-place under nix-shell
<datakurre> catern: I did miss what does not work for you under nix-shell for a developed Python package currently? Would you mind to repeat :)
<catern> using native executable deps not through PATH
<datakurre> catern: You mean a non-python dependency in package's propagatedBuildInputs?
<datakurre> catern: Sorry, I did not get that. "native executables"?
<FRidh> catern: so you're using "editable" mode then
<datakurre> I've been working a lot with my Python development setup for Nix lately, so I'm interested, if I have missed something.
<catern> FRidh: well, not in any serious way
<catern> that's just a useful hook I could use to set up the executable deps
<Wizek> Hello.
<Wizek> How could I debug an error like this? `variable $src or $srcs should point to the source`
<Wizek> it happens when I run `nix-shell -p 'haskell.packages.ghc822.developPackage { root = ./.; }' -j4 --run 'cabal new-repl'` in a hs project folder
<vcunat> I would expect src = ./. instead of root = ./.
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 268 seconds)]
<dupndrop2> Hi, is there a good way to run emacs such that it will use a nix-shell environment as if it were the global system?
i-am-the-slime has joined #nixos
ylwghst has quit [(Ping timeout: 276 seconds)]
cement has joined #nixos
dieggsy has quit [(Read error: Connection reset by peer)]
i-am-the-slime has quit [(Ping timeout: 255 seconds)]
<bgamari> is there any way to ensure that a builder is run as root?
<clever> bgamari: why does it need to run as root?
<gchristensen> bgamari: no, nix won't allow a build to run as root
<LnL> nix bails out if it runs as root
<bgamari> clever, I'm trying to automate the creation of an image with debootstrap
i-am-the-slime has joined #nixos
<clever> bgamari: then you need to use a vm, one min
<LnL> yeah, there's runInLinuxVM
<gchristensen> bgamari: what kind of image?
<bgamari> gchristensen, ARM
<bgamari> from stretch
<gchristensen> ah
<clever> bgamari: vmTools.runInLinuxVM
<manveru> dupndrop2: yo
<clever> nix-repl> vmTools.runInLinuxVM pkgs.hello
<clever> «derivation /nix/store/wflfll34ycw8hbhj4cn79czd12dsj1ph-hello-2.10.drv»
<manveru> dupndrop2: i use nix-sandbox for that
<clever> bgamari: this function can be applied to any derivation, and it will run that builder as root inside a qemu sandbox
<bgamari> cool
<gchristensen> shlevy: around?
erictapen has quit [(Ping timeout: 260 seconds)]
<clever> bgamari: nixpkgs also already has expressions to generate a debian image from .deb files
<clever> nix-repl> vmTools.diskImages.debian8x86_64
<bgamari> ahh, lovely
<gchristensen> might be tough to produce an ARM one though, I'm not sure we've done that for ARM
<bgamari> hmm, no armhf sadly
<gchristensen> hmm and armhf seems like even more of a stretch
<bgamari> clever, is there any way to inject non-.deb packages into the image?
markus1199 has quit [(Ping timeout: 248 seconds)]
<clever> bgamari: nix packages?
<bgamari> yes
<shlevy> gchristensen: pong
<clever> bgamari: not sure
<clever> bgamari: you would need to setup a /nix in the image and copy things into it with nix copy
<bgamari> right
<dupndrop2> manveru: yes i've seen that package. I think it comes with spacemacses' nix layer but i'm not sure how to use it. ... actually i see now i don't have the "nix-shell-command" command but i do have "nix-shell" (in M-x)
<gchristensen> shlevy: mind merging an _easy_ PR right quick? :) https://github.com/NixOS/nixops/pull/807
<gchristensen> shlevy: ack! please hold!
<gchristensen> shlevy: I missed one
<bgamari> clever, even just a kernel
<shlevy> :(
<manveru> dupndrop2: well, the question is what you want to use it for
<shlevy> too late
<gchristensen> shlevy: its okay, I'll send a follow-up :D
<dupndrop2> manveru: for now just run the python interpreter from my nix-shell env
thblt has quit [(Ping timeout: 240 seconds)]
<clever> bgamari: if you just want a kernel + initrd, and dont care about them being managed by nix, you can copy them from a derivation to /boot in the image
<bgamari> yeah, seems like this might be the easiest approach
<bgamari> ahh, thanks!
<dupndrop2> manveru: but in general i think i just want $PATH to be the same as in the nix-shell env but for some reason it isn't
<clever> that takes the kernel, initrd, and kernel params, from a nixos build, and copies them to a new storepath
<clever> but at this point, nix can leave the picture and you could just throw them into a tar
markus1189 has joined #nixos
<clever> bgamari: also, the nixos initrd likely wont be happy with an ubuntu root, so youll want to use a different initrd
<manveru> i have this here to make finding the shell more predictable
<bgamari> duly noted
<clever> bgamari: an example of how to make your own initrd: https://github.com/cleverca22/not-os/blob/master/stage-1.nix#L175
<bgamari> indeed, not-os has been quite helpful
<bgamari> I'm still hoping that I'll be able to build a proper nixos image
<bgamari> but I'm exploring the debian option as a fallback
<manveru> dupndrop2: apart from that, $PATH won't change, you have to actively make sure you're looking up the path via nix-executable-find or nix-shell-command
<clever> bgamari: nixos also has expressions to auto-generate an entire disk image with nixos already on it
<bgamari> right
<bgamari> I've been playing around with the ARM sd image expression
<bgamari> unfortunately getting this to play well with cross-compilation has been a challenge
<clever> bgamari: this one generates a full nixos disk image, with xen, and then boots that xen under qemu
<gchristensen> shlevy: sorry for the incomplete first one
<manveru> btw, i finally got calamares to build :D
<bgamari> wow
<dupndrop2> manveru: ok, but say i'll get this to work, spacemacses' command aliases will keep using the python from the global system. if i understand correctly what it does, i'm not sure
<manveru> dupndrop2: yes, so you need to configure your python package to use your lookup instead
<manveru> dupndrop2: one example is the flymake they have on the nix-emacs site
<manveru> here's how i get it to work with rubocop for example
i-am-the-slime has quit [(Quit: Konversation terminated!)]
<dupndrop2> manveru: Hmm i see. i really rather just make emacs look all executables in the nix-shell first (when in a project)
<manveru> yeah... i tried that too via direnv-mode, but it wasn't very reliable
<manveru> if you find a way, please let me know :)
<dupndrop2> manveru: I definitely will but don't count on it, there is also actual work to get done... haha
<manveru> hehe
<gchristensen> maybe today I'll try getting NixOS running on my old HP box ...
<dupndrop2> manveru: anyway thanks for the help
<manveru> yeah, apart from this, spacemacs has been pretty nice, using it for about 3 weeks now
<dupndrop2> spacemacs is pretty nice yeah
Dr8128 has joined #nixos
drakonis has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<avn> (semi-offtopic) Folks, does anyone here have some expirience with modern (pci-e) scsi controllers/cables etc?
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
griff_ has quit [(Client Quit)]
<gchristensen> LnL: did you mention it'd be not-too-hard to do a thing-like-nixops with nix-darwin?
<LnL> hmm, did I?
hotfuzz has joined #nixos
<gchristensen> maybe enot :P
<LnL> what are you thinking, keeping a network up to date or doing the bootstrapping?
<gchristensen> deploying ofborg to my mac and keeping it up to date without having to do too much by hand
hotfuzz_ has quit [(Ping timeout: 250 seconds)]
vcunat1 has joined #nixos
vcunat has quit [(Ping timeout: 240 seconds)]
vcunat1 has quit [(Client Quit)]
vcunat has joined #nixos
<LnL> well, running $out/activate and nix-env --set $out /nix/var/nix/profiles/system is mostly what happens when switching generations
<gchristensen> hmm that seems perfectly doable
<LnL> so you could do that after copying the closure over
<LnL> I did move the user stuff to a separate script but I want to get rid of that again
<bennofs> anyone here using android studio on nixos?
griff_ has joined #nixos
<Yaniel> yes, it's cancer
<bennofs> how did you get it to work?
<bennofs> i get a gradle sync failed with no log at all
<infinisil> I tried to run android-studio once, but it showed nothing but white windows
<infinisil> doesn't seem to like my X11 setup (Xmonad)
boxofrox has quit [(Ping timeout: 240 seconds)]
<Yaniel> after telling it to download a toolchain & stuff that part just worked
<Yaniel> huh
ylwghst has joined #nixos
<Yaniel> also gradlew stuff like grpc mock servers are a lost cause - they'd require binary patching potentially after every change to the project
<bennofs> on nixos-unstable, android-studio uses an fhs user env
<bennofs> so no binary patching should be necessary
bfrog has quit [(Ping timeout: 258 seconds)]
endformationage has joined #nixos
<Yaniel> hmm? guess there's still some nix-shell incantation I haven't tried yet
<bennofs> here's what I get (in idea.log): https://gist.github.com/bennofs/c49bb540bca9d4ddfef88b18086254db
stephaneyfx has joined #nixos
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
clever has quit [(Ping timeout: 240 seconds)]
griff_ has joined #nixos
<srhb> s
<srhb> Woops
griff_ has quit [(Client Quit)]
clever has joined #nixos
clever has quit [(Changing host)]
clever has joined #nixos
ixxie has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
Turion has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
leat has quit [(Ping timeout: 240 seconds)]
<gchristensen> nixos is so cool
<bennofs> Oh I found gradle logs in ~/.gradle/daemon/**/*.log
<FRidh> I need some testers. Can you run the following. It should not result in a stack overflow.
<FRidh> nix-env -f https://github.com/FRidh/nixpkgs/archive/pythonmodule.tar.gz -qa --show-trace --drv-path -v >/dev/null
<ottidmes> FRidh: error: while evaluating ‘callPackageWith’ at /nix/store/5ncma8gysijsswp8qwik63n1mssgvddq-pythonmodule.tar.gz/lib/customisation.nix:113:35
<ottidmes> FRidh: attempt to call something which is not a function but a string, at /nix/store/5ncma8gysijsswp8qwik63n1mssgvddq-pythonmodule.tar.gz/pkgs/development/interpreters/python/mk-python-derivation.nix:57:1
<FRidh> ottidmes: also with nix-env -f https://github.com/FRidh/nixpkgs/archive/93e619359806b71d5199a5cb27bc4edcac26e764.tar.gz -qa --show-trace --drv-path -v >/dev/null
<Turion> Why is wine automatically 32 bit? Is it possible to install a 64-bit wine?
<FRidh> ottidmes: what Nix version do you have?
<ottidmes> FRidh: nix-env (Nix) 1.11.15
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
<ottidmes> FRidh: Same error with that second URL
<FRidh> ottidmes: I can reproduce it with 1.11. Funny it doesn't occur with 1.12.
<ottidmes> FRidh: You are on unstable? Because 17.09 should still be on 1.11 right (I have updated recently)
<FRidh> ottidmes: no, I run 17.09 but with nixUnstable
<ottidmes> FRidh: Ah ok, if you want me to try that, let me know
<FRidh> ottidmes: I'll see if I can fix this issue first. Thanks!
<Acou_Bass> is there any reason firefox doesnt want to play html5 video? just about every site except youtube complains about missing flashplayer (even sites i know to have a html5 video player) - its as though the codec isnt installed
proteusguy has quit [(Ping timeout: 240 seconds)]
<FRidh> Acou_Bass: did you disable flash in your config?
<Acou_Bass> i never enabled it to begin with because every site i use, the html5 player works fine (usually) :P
<Acou_Bass> but now theyre not using the html5 player, and are seemingly trying to fallback to flash, which causes issues because there is no flash (i would much prefer to not use flash, and instead get the html5 playback working)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #32543: graphicsmagick: 1.3.26 -> 1.3.27 (fixes CVE-2017-11102 amongst others) (master...graphicsmagick) https://git.io/vbRlO
NixOS_GitHub has left #nixos []
griff_ has joined #nixos
<Turion> FRidh: Thanks! That's very helpful
<FRidh> oh, right, nix 1.11 doesn't like x:x
<vcunat> that x:x change was reverted on 1.12, too
<vcunat> it turned out the feature is unintentionally used way more often than anticipated
<bennofs> what "feature"? :)
<vcunat> x:x is parsed as a string
<vcunat> (because it fits the URI scheme)
<vcunat> (i.e. you don't need quotes around)
<bennofs> oh i thought that was a smiley X)
<FRidh> second try. Please test nix-env -f https://github.com/FRidh/nixpkgs/archive/95282cf325ac031355ea9bacc835ca7e1cfc01bd.tar.gz -qa --show-trace --drv-path -v >/dev/null
nuncanada has quit [(Read error: Connection reset by peer)]
<ottidmes> FRidh: error: while querying the derivation named ‘py-env’: while evaluating the attribute ‘pkgs’ of the derivation ‘py-env’ at /nix/store/8s2p3fp1z4krvs2bzi1vf19bn2yhdapf-95282cf325ac031355ea9bacc835ca7e1cfc01bd.tar.gz/pkgs/stdenv/generic/make-derivation.nix:98:11:
<ottidmes> cannot convert a function to JSON
bennofs has quit [(Ping timeout: 246 seconds)]
<orivej> FRidh: it does not crash for me, but I'd like to review the code
<FRidh> hmm, I have that neither with 1.11 nor 1.12
<ottidmes> FRidh: And I do not know if this is relevant, but I also got: skipping derivation named ‘ocaml-cohttp-0.19.3’ which gives an assertion failure, for quite a few derivations
<FRidh> ottidmes: no, that is irrelevant.
<laggy_wifi_> in a dynamic library is there any section/byte range in wich a NEEDED depandancy is garenteed to be located in?
oida has quit [(Ping timeout: 248 seconds)]
Oida has joined #nixos
<orivej> laggy_wifi_: the needed dependencies are in the .dynamic section, it does not have a fixed byte offset
<ottidmes> FRidh: It was my nixpkgs configuration interfering
<laggy_wifi_> what would be the fastest way to extract the 1st NEEDED
<ottidmes> FRidh: It completed now
<FRidh> ottidmes: great, thanks
<gchristensen> laggy_wifi_: #nixos also isn't an appropriate place to ask questions about things unrelated to the Nix ecosystem (for example: your project to reimplementation of Nix)
<laggy_wifi_> ok
remexre has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
mrkgnao has quit [(Ping timeout: 248 seconds)]
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbR8r
<NixOS_GitHub> nixpkgs/release-17.09 4d0875a Tim Steinbach: docker: 17.09.0 -> 17.09.1...
NixOS_GitHub has left #nixos []
ssmike has quit [(Quit: ssmike)]
ssmike has joined #nixos
astronavt has joined #nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
leat has joined #nixos
griff__ has joined #nixos
aarvar has joined #nixos
griff_ has quit [(Ping timeout: 248 seconds)]
griff__ is now known as griff_
<pie_> god bless pypi2nix, cant believe i didnt know about it earlier
ixxie has quit [(Quit: Lost terminal)]
mahalel_ has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
jb55 has joined #nixos
stephaneyfx has quit [(Ping timeout: 248 seconds)]
jb55 has quit [(Ping timeout: 268 seconds)]
magnetophon has joined #nixos
jsgrant has quit [(Ping timeout: 240 seconds)]
katyucha has quit [(Quit: Lost terminal)]
<jeaye> michalrus: Yep, I found that after pinging you and didn't unping. Thank you for the awesome configs!
Isorkin has joined #nixos
<jeaye> `users.user.<name>.packages` is superb.
marantz has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
stephaneyfx has joined #nixos
<marantz> I just did an instalaion of nixos on laptop, but `nix-env -q` only returns a single added even though I added 15 via environment.systemPackages in configuration.nix Any idea how to diagnose or fix this?
<samueldr> environment.systemPackages packages won't be in nix-env -q
<samueldr> they are tracked and handled separately
ilja_kuklic has quit [(Remote host closed the connection)]
<marantz> is these a way to see all installed packages then?
<samueldr> "installed packages" is somewhat vague with nixos, in some ways
<samueldr> is there something specific you're looking for?
<samueldr> (as an example, packages can be present in the store for other packages, without being directly accessible in the PATH)
<marantz> the short story is that I am trying to know what software I want/need to install without having to do which for all of them. also various guides recomend installing different package, but they are old recomendations, so I may not need to
<samueldr> do you mean that you want to have the same setup than with another nixos machine?
Sonarpulse has joined #nixos
stephaneyfx has quit [(Ping timeout: 256 seconds)]
mizu_no_oto has joined #nixos
<marantz> I'm trying to get a resonable setup, but I din't really know what that means (e.g. I needed to install networkmanager-applet). as you might guess I'm pretty new to nixos and more use ubuntu or debian where there is a "standard" base collection of stuff
<srk> marantz: I slowly built a complete configuration after few months adding things when I needed them
ilja_kuklic has joined #nixos
<srk> getting pretty much the same setup as on fedora before was pretty easy
astronavt has quit [(Remote host closed the connection)]
<gchristensen> marantz: there is a standard list, let me find it. it is very minimal though, so if you need it, you'll probably need to add it
<marantz> seems like a lo of effort, but I guess I will too
Itkovian has joined #nixos
<gchristensen> that isn't complete, as some nixos module options add extra things to it depending on what you enable.
<gchristensen> typically as I find a tool I need, I either add it to systemPackages or use nix-shell to get it
<samueldr> e.g.: enabling a DE will add most of what you'd call "standard collection of stuff" for that DE
<marantz> sgtm. thanks guys. btw, I'm using a new lenove t470 and haven't found any real problems yet. although I still haven't tried the camera and fingerprint reader
<gchristensen> it is a bit ugly, but running nixos-option environment.systemPackages | less will show you a full list of derivations in your systemPackages (ugly because it doesn't show package names, instead shows nix store paths)
<gchristensen> nice!
<pie_> ( domenkozar, ) is there a package for python3 pypy?
<marantz> some distros collect reports of installs, doesn't seem that nixos does, I just find random blog posts. if there is such a place, I'll update it
astronav_ has joined #nixos
<pie_> nvm my bad i just looked at the 2.7 in the name and figured it didnt support 3, but afaict pypy supports 2 and 3 with the same binaries?
<gchristensen> I could make a wiki page real fast for you :)
<samueldr> right now, random blog posts, but I was thinking about how the wiki could serve for this purpose
<marantz> samueldr btw what is DE?
<samueldr> Gnome, KDE, XFCE are all DE, Desktop Environments
<samueldr> shamefully linking to another wiki: https://wiki.archlinux.org/index.php/desktop_environment
<samueldr> DEs will generally include the window manager, the base UI/UX and some base software (like image viewers, etc)
erictapen has joined #nixos
<samueldr> oh, nixos options use desktopManager for the configuration option: https://nixos.org/nixos/options.html#.xserver.+.enable+desktopmanager
<marantz> ok. more to read (lots of that ;-) )
<samueldr> plasma is the one that would have been called KDE before
<samueldr> if there's anything precise you're searching for or want, don't hesitate to ask
<marantz> yep, even I know that
<marantz> will do and thanks again
astronav_ has quit [(Remote host closed the connection)]
<gchristensen> I didn't learn that Plasma was KDE until I asked in #kde about KDE5 and they were grumpy with me :$
MinceR has quit [(Ping timeout: 260 seconds)]
<marantz> I think the Nix manual says so
<samueldr> I only mentioned it because I previously said KDE instead of plasma :)
erictapen has quit [(Ping timeout: 260 seconds)]
MinceR has joined #nixos
m has joined #nixos
m is now known as Guest77439
<gchristensen> I think it has been a challenging transition for the KDE community
Ross has quit [(Ping timeout: 240 seconds)]
Ross has joined #nixos
<Guest77439> hi! is it possible to bootstrap a nix virtual machine for a specific configuration.nix just from nix-env? Say, in the style of `nixos-rebuild build-vm; result/bin/run-vm`. I'm using nix-env on a OSX machine to manage my and I'm curious if I can easily write a nix expression, that does the above..
<gchristensen> I've never understood why HP's URLs are such a cluster "http://h20000.www2.hp.com"
<Guest77439> *my packages
astronavt has joined #nixos
<Guest77439> I came across nixpkgs/nixos/modules/virtualisation/qemu-vm.nix but it's a module and hence needs nixos, which I don't have in the above setting.
<Guest77439>
Guest77439 is now known as Guest96194`
Guest96194` is now known as mojjo
astronavt has quit [(Remote host closed the connection)]
griff_ has quit [(Ping timeout: 248 seconds)]
fenedor has joined #nixos
<samueldr> is there a way to query the nix daemon for the currently running builds?
astronavt has joined #nixos
<samueldr> (nix 1.11)
<manveru> quite weird error message on `nix-env -i` https://www.irccloud.com/pastebin/sDsPNYAi/
fendor has quit [(Ping timeout: 240 seconds)]
<LnL> there was an issue with nix-env on 1.12 recently
<LnL> but I don't remember if that was the error
<manveru> yeah, just found it
<manveru> worked around it via nix-shell
astronavt has quit [(Remote host closed the connection)]
marantz has left #nixos []
<manveru> first time someone runs the new calamares on nixos ;D
coot has quit [(Quit: coot)]
<manveru> now... time to learn some python
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<gchristensen> anyone here unable to call ofborg who feel like they should be able to?
aristid has quit [(Quit: WeeChat 1.9.1)]
<mojjo> how can I build a custom nixos ISO image?
<Rovanion> Does anyone what the adb package is called?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<jeaye> Rovanion: I'd try androidsdk
griff_ has joined #nixos
<manveru> it's at least in adbfs-rootless according to nix-locate
<Rovanion> jeaye: Thank you!
stephaneyfx has joined #nixos
<mojjo> samueldr: nice!
Isorkin has joined #nixos
bitchecker has quit [(Remote host closed the connection)]
bitchecker has joined #nixos
aristid has joined #nixos
bitchecker has quit [(Remote host closed the connection)]
bitchecker has joined #nixos
astronavt has joined #nixos
<jeaye> Is there a nix approach to running services within nix-shell? For example, I want a nix-shell for development which is also running postgres as per some configs. I can see this working with containers or docker, but I wonder if there's a lighter way.
<pstn> Anybody else here having trouble sometimes with nixos containers on private network interfaces that just can't get a network interface up?
<pie_> anyone know how to fix this?: http://lpaste.net/3256996807204405248 "pypi2nix -V "3.6" -e pyjq -e js2py -E jq" results in "error: [Errno 2] No such file or directory: 'autoreconf'"
<Lisanna> pstn: I've struggled with the private network interfaces for containers, but I think it's mostly a matter of I have no idea what I'm doing most of the time ^^
<aminechikhaoui> jeaye: not that I'm aware of, but would be a neat feature
mojjo has quit [(Remote host closed the connection)]
<pstn> Lisanna: There is something bugged in there but I can't figure it out. Sometimes even adding rules to the firewall without actually enabling it can lead to breakage.
<Lisanna> pstn: now this is just a guess, but maybe you need to add autoreconf to the dependency list, wherever that is?
<Lisanna> oops, last one was meant for pie_
stephaneyfx has quit [(Ping timeout: 248 seconds)]
<pie_> Lisanna, yup :P
jb55 has joined #nixos
<samueldr> it's been so long (~24 hours) that I almost forgot what to do when the 4.15 aarch64 kernel finishes building
<pie_> doesnt loook like a package? :x well https://nixos.org/nixos/packages.html only lists some kind of hook...
<pie_> samueldr, sacrifice goats and virgins in elation
<Lisanna> pie_: autoconf, automake, libtool
<samueldr> messy
<pstn> Lisanna: At this point I'd actually try to add autoreconf to the container and wouldn't be surprised if it fixed it ^^
<Lisanna> those are the things I install to be able to run autotools
<pie_> im guessing those might be part of stdenv?
<pie_> though i find the message itself a bit odd
<samueldr> nah, flash it to the emmc, then boot, hoping that ethernet works
<Lisanna> well, you're getting the message when you run pypi2nix on your regualr shell, right
<Lisanna> not as part of a build
<pie_> yeah
<Lisanna> okay, so you need those things installed for that to work. I suggest making a shell.nix file that installs those, and then run it from a nix shell
<pie_> but id expect pypi2nix to import stdenv because its basically required for building python pckages? i mean of course i can give it a shot
<Lisanna> how would pypi2nix import stdenv, or anything?
<Lisanna> it's not doing a nix build
<Lisanna> it's generating Nix code
<pie_> well yeah
<pie_> huh i guess you have a point
<pie_> i figured the nix files it generates do the building >_>
<FRidh> pie_: try passing -E autoreconfHook
<FRidh> or -E autoconf
<Turion> Very ironic: cabal just failed to download the package "fail"
<pie_> \o/ progress
<pie_> Can't exec "aclocal": No such file or directory at /nix/store/dl7l5rb02q2vhfg43grnrldv980505xk-autoconf-2.69/share/autoconf/Autom4te/FileUtils.pm line 32
kreetx has quit [(Ping timeout: 240 seconds)]
<pie_> so now we know the phrasing is just weird and it actually cant find the executables
griff_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej closed pull request #32543: graphicsmagick: 1.3.26 -> 1.3.27 (fixes CVE-2017-11102 amongst others) (master...graphicsmagick) https://git.io/vbRlO
NixOS_GitHub has left #nixos []
sigmundv_ has quit [(Ping timeout: 258 seconds)]
griff_ has joined #nixos
ssmike1 has joined #nixos
<pie_> Lisanna, yay it worked
<pie_> FRidh, ^
ssmike has quit [(Ping timeout: 276 seconds)]
ssmike1 is now known as ssmike
ylwghst has quit [(Remote host closed the connection)]
Dr8128 has quit [(Ping timeout: 260 seconds)]
townsend has joined #nixos
<samueldr> sorry for repeating myself, but is there anyway to query the nix daemon / nix builders for currently running builds, to query/stream the logs while they build?
<samueldr> hydra does something similar, but it might be doing the heavy lifting itself, while I would prefer it to work on a "normal" nixos-rebuild
Dr8128 has joined #nixos
ylwghst has joined #nixos
Dr8128 has quit [(Ping timeout: 255 seconds)]
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
FRidh has quit [(Remote host closed the connection)]
patrl has joined #nixos
hiratara has joined #nixos
<patrl> I keep getting a zipimport error since a few days back with dropbox on 17.09. Anyone else?
boxofrox has joined #nixos
dan_b has joined #nixos
stephaneyfx has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
sigmundv_ has joined #nixos
Turion has left #nixos []
phreedom has quit [(Ping timeout: 240 seconds)]
* joepie91 subscribes to samueldr's question
townsend has quit [(Quit: leaving)]
<gchristensen> not that I know of, samueldr, joepie91
<joepie91> hey, subscribing in IRC works! :)
zzamboni has joined #nixos
dan_b has quit [(Ping timeout: 248 seconds)]
fenedor has quit [(Quit: Leaving)]
<gchristensen> :)
<Lisanna> pie_: cool!
ghostyy has quit [(Read error: Connection reset by peer)]
<Lisanna> samueldr: couldn't you just query linux for all the processes owned by nixbld* ?
ghostyy has joined #nixos
<LnL> samueldr: joepie91: tailing the drv log might work
<samueldr> that's what I was thinking, but how do I know which drv log to follow?
<clever> samueldr: i just look at /tmp/
<sphalerite> LnL: nope because bzip2
rihards has quit [(Quit: rihards)]
<pie_> well you could combine what Lisanna with lsof maybe
<pie_> sphalerite, oh
<samueldr> error: build log of derivation ‘/nix/store/iym5kc6jfixvsnjp1g90rpk0vm3l8fd8-nixos-system-nedflanders-18.03.git.3eccd0b.drv’ is not available
<samueldr> (using nix-store --read-log)
<sphalerite> it's kind of horrible but you could strace the daemon's child process to see what it's reading in xD
<samueldr> hydra seems to be able to tail/read bzip2 logs, (but again, hydra might do some heavy listing)
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<sphalerite> it also doesn't seem to actually write-through the logs…
<Lisanna> sphalerite: you don't need strace for that, you can just look in /proc and get the list of files it has open
<ottidmes> joepie91: BTW, I was ati-radeon on my laptop at the time, I looked further into my GPU (HD7870 XT) issue, as it happens, I have one of the very few cards that has not worked with the open source Linux driver since it came out: https://bugs.freedesktop.org/show_bug.cgi?id=60879, so that is why we were unable to get it to work
<clever> samueldr: when hydra is involved, hydra initiates the ssh links for build slaves
<clever> samueldr: and hydra then imports the resulting .nar into /nix/store when its done
<clever> samueldr: but nix doesnt allow importing the logs
<clever> so hydra stores the logs in a different place
<sphalerite> Lisanna: that won't necessarily help you get the data if it's a pipe
<sphalerite> Lisanna: it is indeed a pipe. So the only way AFAIK to intercept the data is with ptrace
<Lisanna> huh, okay
zzamboni has quit [(Quit: Leaving.)]
<samueldr> hmm, it seems I can tail the stderr/stdout of the nix-store --realize process
<samueldr> (through /proc)
<samueldr> when using a nixos-rebuild --build-host, where will the log be made?
<clever> on the build host you specified
simukis has quit [(Ping timeout: 248 seconds)]
<gleber_> I am trying to use `git-crypt` and somehow `git` invocations manage to try to run git-crypt binary from non-existing store path :/
<sphalerite> ok, `tail -f -n +0 /nix/var/log/drvs/xx/xxx….bz2 | bunzip2` works too, but depending on how compressible the data is, compression + buffering might stop anything useful from appearing
zzamboni has joined #nixos
<samueldr> (assuming this all can work, I'll disable compression if I do anything useful with the knowledge)
hiratara has quit [(Quit: ZNC - http://znc.in)]
<gleber_> ah, as soon as I posted here, found the culprit - `$REPO/.git/config` has that non-existing path stored
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbRwR
<NixOS_GitHub> nixpkgs/master 4561d6c Orivej Desh: uclibc: avoid "Error in reading or end of file" warnings...
NixOS_GitHub has left #nixos []
Dr8128 has joined #nixos
hyper_ch has left #nixos ["Konversation terminated!"]
<samueldr> hmmm, the log file for the drv is currently empty, as in 0 bytes bzip2 file
hyper_ch has joined #nixos
<samueldr> (I don't think it would be THAT compressible, but it possibly is all in ram)
vcunat has quit [(Quit: Leaving.)]
vcunat has joined #nixos
<vcunat> samueldr: for builds in progress you don't really get anything in the file
<sphalerite> samueldr: yeah I think it depends largely on how generous glibc is with its buffering. Easiest way to see if anything's going on would probably be strace
<vcunat> probably due to buffering or something
<sphalerite> vcunat: you do if there's enough going on
<sphalerite> e.g. `with import <nixpkgs> {}; runCommand "test" {} "od /dev/random"`
<vcunat> for me the time to get first output was always way too long
<vcunat> but you can do a non-quiet build and redirect output...
<vcunat> (if you know *ahead* that you want it in-progress)
<samueldr> yeah, that's it, if I know ahead :)
<sphalerite> yeah that's the thing... you need to know ahead of time
<samueldr> though, parallel builds would still cause problems right?
<samueldr> if I could stream logs, I could stream per-build
<sphalerite> There must be a tool out there that uses ptrace to just capture the output of a process on one of its fds…
<vcunat> well, you can realize derivations one-by-one
<sphalerite> Or we could patch nix to make logs more accessible
<samueldr> sphalerite: catting /proc/*/fd/2 I was able to follow the output
<vcunat> Hydra does this somehow
<sphalerite> samueldr: for which process?
<vcunat> (Hydra probably just realizes one-by-one and streams the output)
<samueldr> `sudo less -f /proc/$(pgrep -f "nix-store -r" | head -1)/fd/2`
<samueldr> probably
<sphalerite> oh right but that doesn't fix it for parallel builds
<sphalerite> huh so apparently you can intercept piped data through /proc/fd. Interesting
<samueldr> oh right
<vcunat> the output is passed from the builders somehow - probably some FD, too
<sphalerite> it works for the nix-daemon child process responsible for the building too, so you can follow individual builds with it
vcunat has quit [(Quit: Leaving.)]
<sphalerite> so if you look for a process like "nix-daemon 3216" and cat its /proc/pid/fd/2 you get the individual build's log
<sphalerite> I think…
<sphalerite> wait no that's for all the builds at once too
<samueldr> ah!
<samueldr> nix-daemon looks like a better solution!
<samueldr> I'm seeing the log file for the drv, at least
<samueldr> ah, it's the same (previously) empty file though, I got excited for nothing
<sphalerite> oh, hm, one issue with that… it intercepts the log completely, i.e. stops it from going to the thing that started the instantiation in the first place
<sphalerite> which is probably not what you want >.>
<samueldr> reading the fd stops it from going where it should?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<sphalerite> yeah
<samueldr> aah, that's bad! (for my use case)
<samueldr> and yes, just verified
* sphalerite uploaded a video: intercept.webm (307KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/XRaIUxkXTyFXKwCDTUDflMIb>
<sphalerite> Presumably it then also doesn't go to the build log that you'll later get when trying to read it, so yeah really not ideal
<sphalerite> so I'd say either use ptrace, or modify nix to allow streaming the log from the daemon in multiple places
<sphalerite> getting information about in-progress builds would generally be nice
<sphalerite> AFAIK there's no way to find out which derivation is currently being built either?
<samueldr> afaik too, that was part of my initial question
patrl has quit [(Quit: WeeChat 1.9.1)]
<sphalerite> well you could always use gdb on the nix daemon :p
<sphalerite> it must keep that information somewhere, since it won't try to build the same derivation twice simultaneously
<samueldr> I'd wager on the .lock files
<sphalerite> Also, has anyone using tmux ever seen it just stop updating the window width?
<clever> sphalerite: one anoying issue ive noticed with tmux, is that it always matches the size of the smallest client
<clever> while screen lets you forcibly resize it
<sphalerite> clever: I'm fine with that, the problem is it sometimes stops updating the size for the things running inside it even though it updates just fine for itself
<sphalerite> hm, closing some other panes seems to have fixed it
<sphalerite> odd
<clever> it could be the apps inside getting desynced with the size
<sphalerite> no it's literally reporting the wrong size in response to the ioctl
* sphalerite uploaded a video: columns.webm (206KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/vBJhcHtQkRuzMOgzFsqIKojs>
Bane^ has quit [(Ping timeout: 260 seconds)]
<sphalerite> strace suggests it was busy while it was doing that though. Closing a bunch of unrelated panes fixed it, but I still don't know what was the actual culprit
Bane^ has joined #nixos
thblt has joined #nixos
ssmike has quit [(Ping timeout: 240 seconds)]
dan_b has joined #nixos
antonv has joined #nixos
<antonv> hello, can anyone help with Nixos install?
<antonv> I'm installing on an old laptop
<antonv> the temp file system created by the installer image is not enought to copy the nix store during installation
thc202 has quit [(Ping timeout: 240 seconds)]
{^_^} has quit [(Remote host closed the connection)]
{^_^} has joined #nixos
{^_^} has quit [(Changing host)]
{^_^} has joined #nixos
<antonv> at the same time, I have around 30GB free on flash drive
<antonv> how to extend the tempfs and use this free space?
stphrolland has quit [(Quit: leaving)]
ssmike has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<samueldr> will you be using a swap partition with your install? if so, you probably can mkswap then swapon thar partition
<gchristensen> garbas: here?
<garbas> gchristensen: hey!
<gchristensen> hi!
<gchristensen> garbas: want to give your build command another try?
<garbas> gchristensen: started the build
<gchristensen> looks like it went through
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #32549: gcc: Don't choke if there is no lib output (staging...gcc-without-lib-output) https://git.io/vbRwD
NixOS_GitHub has left #nixos []
griff_ has quit [(Ping timeout: 248 seconds)]
<gchristensen> I'd like to have grahamcofborg "thumb" your comment when it starts, but the API implementation I have doesn't support that yet
<garbas> i think your work so far is amazing! i was always hoping we will have something like this for nixpkgs
<gchristensen> :D I'm so glad!
<garbas> oh i see some rust in ofborg repo :)
<gchristensen> almost entirely :)
<gchristensen> there is 1 more bit of PHP I can and would like to replace with rust ...