<{^_^}>
→ b72a8a41 by @xeji: Merge pull request #40725 from yurrriq/update/autojump
dispanser has joined #nixos
<{^_^}>
[nixpkgs] @zx2c4 opened pull request #40903 → wireguard: fix up text, maintainer, and version → https://git.io/vhvq9
<{^_^}>
[nixpkgs] @matthewbauer pushed 6 commits to master: https://git.io/vhvqh
<{^_^}>
→ 3dc8328b by @matthewbauer: sfml: support darwin
<{^_^}>
→ 50c158de by @matthewbauer: enet: supports darwin
<{^_^}>
→ f2dc1970 by @matthewbauer: spidermonkey_38: add darwin support
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #40904 → Freeciv: enable on darwin → https://git.io/vhvmv
hotfuzz has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #40903 → wireguard: fix up text, maintainer, and version → https://git.io/vhvq9
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhvmq
<{^_^}>
→ 8d575415 by @zx2c4: wireguard: fix up text, maintainer, and version
<{^_^}>
→ ed826749 by @yegortimoshenko: Merge pull request #40903 from zx2c4-forks/wireguard-fixes
ericsagnes has joined #nixos
<johnw>
is there any reason why overrideScope takes a function with argument order super: self: while overrides and extends want functions taking self: super: ?
<{^_^}>
[nixpkgs] @Pneumaticat opened pull request #40905 → kubernetes-dashboard: raise memory limit to 250MB → https://git.io/vhvm2
olto has quit [Ping timeout: 248 seconds]
oltoAltn has joined #nixos
Rusty1_ is now known as Rusty1
mbrgm has quit [Ping timeout: 245 seconds]
mbrgm has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<iqubic>
Can I just add a .Xcompose file to my ~/ dir? How would I go about sourcing that and putting it into the currect scope?
<iqubic>
I.E. making the bindings work in the way I want them to?
acarrico has joined #nixos
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #40906 → db dependees: fix regression from introducing multiple outputs → https://git.io/vhvYq
<azazel>
anyone knows how to calculate the sha256 parameter in function pullImage?
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #40907 → wireguard-tools: clean up, wrap w/ wireguard-go on Darwin → https://git.io/vhvYs
<gchristensen>
!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.
<azazel>
gchristensen: mmm
simpson has joined #nixos
<azazel>
gchristensen: thanks, I'll try tomorrow
<simpson>
Oh ew, Ember insists on having a global NPM: "Ember CLI is now using the global npm, but was not able to find it."
<simpson>
What do?
<simpson>
dash: Lesson: Ambient authority to the package manager is a Bad Idea.
<azazel>
gchristensen: so I have to enable that module, let it install, fail because of the wrong sha and then fix it? there isn't a way to get it berfore doing the fail step, so avoiding it?
<simpson>
It appears to be okay with *an* npm binary, even if it's not global. Okay.
<azazel>
simpson: "global" means it's in the path?
silver_ has quit [Quit: rakede]
<azazel>
i mean... $PATH
<simpson>
azazel: Apparently! I thought it meant `npm -g` or writing to the Nix store or something like that, but I am lucky today and it just wants npm and node on the $PATH.
<azazel>
i think npm -g means to install a /package/ in the "global" space, i.e. /usr/local/lib/node/somewhere in traditional distros... you were luck, anyway ;-)
<romildo>
What tools are available in nixpkgs to help updating packages?
<johnw>
for Emacs I wrote nix-update.el
<johnw>
to make it easier to update fetch* statements in place
sigmundv__ has quit [Ping timeout: 260 seconds]
sbdchd has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
* acowley
+1's nix-update.el
<dash>
nice, i need that
sigmundv_ has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #40907 → wireguard-tools: clean up, wrap w/ wireguard-go on Darwin → https://git.io/vhvYs
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhvO1
<{^_^}>
→ e9e044ab by @yegortimoshenko: wireguard-tools: clean up, wrap w/ wireguard-go on Darwin
<{^_^}>
→ 5cd1e345 by @yegortimoshenko: Merge pull request #40907 from yegortimoshenko/20180522.041617/wireguard-tools-cleanup
spear2 has quit [Quit: Leaving]
agile has quit [Quit: v]
agile has joined #nixos
Ralith_ has quit [Remote host closed the connection]
Supersonic has quit [Ping timeout: 260 seconds]
dbmikus has quit [Ping timeout: 252 seconds]
Supersonic has joined #nixos
toby1851 has quit [Remote host closed the connection]
toby1851 has joined #nixos
romildo has quit [Quit: Leaving]
<andreabedini>
what is the difference between `nix-env -f "<nixpkgs>" -qaP -A haskellPackages` and `nix-env -qaP -A nixpkgs.haskellPackages`
baconicsynergy has joined #nixos
<elvishjerricco>
andreabedini: I don't think there is a difference. Mainly it's just that `nix-env` by default operates on the NIX_PATH, which is identical to operating on <nixpkgs> if you start your attrpath with nixpkgs.
<clever>
andreabedini: the first loads the nixpkgs entry from $NIX_PATH, the 2nd loads the nixpkgs entry from ~/.nix-defexpr/
<elvishjerricco>
oh, I'm wrong :P
<andreabedini>
elvishjerricco clever: thanks
<andreabedini>
ah, my ~/.nix-defexpr and $NIX_PATH point to the same path (channels)
griff_ has joined #nixos
griff__ has joined #nixos
pxc1 has joined #nixos
griff_ has quit [Ping timeout: 245 seconds]
griff__ is now known as griff_
pxc1 has quit [Ping timeout: 245 seconds]
MP2E has joined #nixos
sanscoeur has joined #nixos
fooz has joined #nixos
<fooz>
how can i get the path of `systemctl` in a services definition?
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhvG3
<{^_^}>
→ 5aa53cc9 by R. RyanTM: maven: 3.5.2 -> 3.5.3
<{^_^}>
→ c68996f1 by @yegortimoshenko: Merge pull request #40869 from r-ryantm/auto-update/apache-maven
<Ralith>
almost went off on a huge thing to EFI-ify my existing legacy image but then I remembered I'm replacing this hard drive in the near future anyway
fooz has joined #nixos
<fooz>
help! i'm locked out of my nixos system
<fooz>
i did `systemctl stop display-manager` and got into a state where there's no way for me to input anything
<fooz>
if i hit the power button, it hibernates and resumes to this state
<fooz>
i'm afraid i'll have to take the laptop apart to cause a hard-reset (shut down w/o hibernate)
<sir_guy_carleton>
you can't remove the battery?
<fooz>
sir_guy_carleton: yes, i'm sure i can.. but i was wondering if maybe somebody could tell me how to get out of the state which i entered by doing `systemctl stop display-manager`
<fooz>
it's not a virtual-console; it's displaying the last line of boot text
blankhart has joined #nixos
<gchristensen>
what about alt-F1/2/3?
<simpson>
fooz: Oh! Ctrl+Alt+F2 ?
<fooz>
simpson: no lock
<fooz>
no luck *
<fooz>
ctl+alt+ f[1-6] doesn't switch to a vconsole
<simpson>
Perhaps holding the power button down for four-five seconds will hard halt?
<gchristensen>
how about Ctrl-L
<fooz>
it seems that consistently initiates a hibernate
<fooz>
i'll try ctl-l
<fooz>
no response
<fooz>
just "[ OK ] Started powertop tunings" and a blinking cursor
<simpson>
It might *initiate* a hibernate, but many firmwares will also respond to a held power button like that by fully powering off, even if the kernel is trying to do a hibernate.
<fooz>
simpson: well, that worked.. but i tried it several times before coming on irc
<fooz>
not sure what happened this last time, but it didn't resume thankfully
<simpson>
fooz: You weren't trying it with the certainty and knowledge of some strangers' advice on IRC.
<fooz>
simpson: clearly that was the missing ingredient! it so often is
<fooz>
alright, updated the config so that the power button just shuts down..
<fooz>
i can reproduce this issue easily
<bhipple[m]>
The patient's always healthy when the doctor's around!
<simpson>
I haven't been a GPU doctor ever since GPU 'Nam.
<fooz>
1. log in to a v-console, 2. systemctl stop display-manager 3. try switching v-consoles (you are now locked out)
<simpson>
fooz: Do you know your GPU make? One GPU or is it hybrid?
<fooz>
it's a Intel UHD 620 GPU
<simpson>
Hm. Yes, I see. I'm sorry, but there's nothing I can do.
<fooz>
don't tell me, we're going to have to amputate?
<simpson>
No, just don't try switching back to text mode or turning off the display manager. Get your setup figured out, and then stick with it.
<simpson>
I mean, yes, we must amputate~
pxc has joined #nixos
<sir_guy_carleton>
how do you add a pre-existing git repo onto github without creating the repo github first?
schoppenhauer has quit [Ping timeout: 252 seconds]
<simpson>
You have to create the repo on Github somehow. You could use the API instead of a Web browser; there are tools like `hub` for that.
<johnw>
i've never been able to get 'hub create' to work
schoppenhauer has joined #nixos
steell has joined #nixos
<sir_guy_carleton>
hmm, that werid, i feel like i was able to do that earlier and i've just forgotten the exact commands
<johnw>
maybe you dreamed it?
<johnw>
I'm surprised I haven't had a dream yet where I suddenly remember that I have a repo full of pull requests whose name I can't remember
<sir_guy_carleton>
maybe, or maybe i just forgot making the repository on the website
<sir_guy_carleton>
anyway no big deal, just makes life a bit more inconvient
fooz has quit [Ping timeout: 260 seconds]
fooz has joined #nixos
aminechikhaoui has quit [Ping timeout: 276 seconds]
fooz has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @emmanuelrosa opened pull request #40908 → purple-xmpp-http-upload: init at 178096c → https://git.io/vhvZQ
steell has quit [Ping timeout: 248 seconds]
gm152 has quit [Quit: WeeChat 2.1]
<pxc>
Dezgeg: hey! I just got a chance to try the updated nix-multiuser-fpm deb. Thanks for resolving both of the issues that I found. :-)
<pxc>
Dezgeg: btw, it didn't build right away when I went to try it out, because the FPM source in pkgs/.../fpm/gemset.nix has the wrong sha256 hash in the checkout of Nixpkgs that nix-fpm-multiuser uses
blankhart has quit [Quit: WeeChat 1.9.1]
<cbarrett>
anyone up for trying to help me repair my nix configuration? it's not working right after high sierra
<cbarrett>
darwin-rebuild switch fails with error: file 'darwin' was not found in the Nix search path (add it using $NIX_PATH or -I)
orivej has quit [Ping timeout: 260 seconds]
<colemickens>
When I do `nixos-rebuild switch`, it starts building qemu.
<colemickens>
How can I: (1) determine why it's building qemu from scratch instead of the binary cache (2) figure out what is pulling in qemu at all?
aminechikhaoui has joined #nixos
emmanuelrosa has joined #nixos
burton__ has quit [Ping timeout: 252 seconds]
burton_ has joined #nixos
emmanuelrosa has quit [Client Quit]
sauyon has quit [Ping timeout: 245 seconds]
rauno has quit [Ping timeout: 245 seconds]
jperras has joined #nixos
Ross has quit [Ping timeout: 245 seconds]
Ross has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
jD91mZM2 has joined #nixos
sbdchd has quit [Remote host closed the connection]
dispanser has quit [Remote host closed the connection]
drakonis has quit [Read error: Connection reset by peer]
dispanser has joined #nixos
xy2_ has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
pxc1 has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<cbarrett>
ok i've got that fiured out
jperras has joined #nixos
<cbarrett>
I think I'm still in a weird state though, wrt permissions and build users.
pxc1 has quit [Ping timeout: 260 seconds]
PCChris has quit [Remote host closed the connection]
mahalel_ has quit [Ping timeout: 260 seconds]
PCChris has joined #nixos
Maxdaman1us has joined #nixos
Maxdamantus has quit [Ping timeout: 260 seconds]
jperras has quit [Ping timeout: 252 seconds]
<colemickens>
I figured out the answer to #2 at least. `sudo nixos-rebuild dry-build` then take the nix store path it's going to build and feed it to `nix-store -q --graph ` and then parse the dot file to determine that `cloud-utils` was pulling in qemu.
<colemickens>
Still not sure why it's building qemu on my machine. `qemu` is free, so I'd expect it to be availalbe...
robstr has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
jasongrossman has quit [Ping timeout: 245 seconds]
PCChris has quit [Remote host closed the connection]
<cbarrett>
ls -la /nix sez that /nix/store is owned by root:nixbld
<cbarrett>
🤔
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
jasongrossman has joined #nixos
PCChris has quit [Remote host closed the connection]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
PCChris has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
rauno has joined #nixos
pxc has quit [Ping timeout: 245 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<{^_^}>
[nixpkgs] @vbgl opened pull request #40909 → coqPackages.iris: init at 3.1.0 → https://git.io/vhv8C
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
jperras has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
jperras has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @vbgl opened pull request #40910 → ocamlPackages.imagelib: init at 20171028 → https://git.io/vhv4s
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
boxofrox has quit [Ping timeout: 256 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
lord| has quit [Ping timeout: 245 seconds]
boxofrox has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
mmlb has quit [Ping timeout: 276 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
mmlb has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
woodson has joined #nixos
kmels has quit [Read error: Connection reset by peer]
PCChris has quit [Remote host closed the connection]
reinzelmann has joined #nixos
PCChris has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
hyper_ch2 has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
alex`` has joined #nixos
jedai has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acarrico has quit [Ping timeout: 248 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
klntsky has quit [Ping timeout: 250 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
periklis has joined #nixos
klntsky has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
seafood has joined #nixos
<seafood>
Can anyone help me do a remote build using Nix 2.0.2?
xy2_ has quit [Ping timeout: 260 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
acarrico has joined #nixos
PCChris has quit [Remote host closed the connection]
<sphalerite>
seafood: yes.
<sphalerite>
,ask
<{^_^}>
Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
PCChris has joined #nixos
fxr has joined #nixos
<seafood>
sphalerite: I’m trying to use “nix build"
<seafood>
(not nix-build)
<seafood>
And it doesn’t appear that you can pass “—option builders <something>” to that command
<sphalerite>
--builders :)
<Myrl-saki>
There's also some incompatibility with the new configuration and the old.
<Myrl-saki>
seafood: When in doubt, `grep /etc/nix/nix.conf`
<Myrl-saki>
Assuming NixOS.
<seafood>
sphalerite: —builders is not an option to “nix build” either.
<seafood>
sphalerite: Try “nix build --help"
<seafood>
(this is on Nix 2.0.2 on Mac OS X)
<sphalerite>
that's two dashes
<sphalerite>
two minus symbols
<seafood>
sphalerite: I know that. my autocorrect replaces - - with —
<Myrl-saki>
seafood: Btw, nix-build --help does not list all options. I sometimes forget to put --options, and --builders also works. In my experience.
<sphalerite>
<_<
<seafood>
Myrl-saki: Why does it not list all optoins!
amir has quit [Ping timeout: 256 seconds]
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
seafood: Well, the more proper is way probably --options.
<sphalerite>
seafood: Note: this program is EXPERIMENTAL and subject to change.
<Myrl-saki>
And that too. :P
<sphalerite>
seafood: it's not completely implemented, subject to change, and not fully documented yet.
PCChris has joined #nixos
<sphalerite>
But the bottom line is that *any* options you set in nix.conf can also be set using --<option name> from 2.0 onwards
<seafood>
That answer helps me but it doesn’t make this less frustrating.
<Myrl-saki>
seafood:
<Myrl-saki>
seafood: You might not be a trusted user
<seafood>
Okay, I just tried “nix build —options ‘ssh://somemachineiown x86_64-linux’ and … nothing appeared to happen.
<Myrl-saki>
You have to be a trusted user to do a remote build.
<sphalerite>
^
<seafood>
Myrl-saki: What is a trusted user?
<sphalerite>
man nix.conf
Maxdaman1us is now known as Maxdamantus
seafood has quit [Quit: seafood]
<Myrl-saki>
seafood: Also, you said you're in Mac OS X. You're trying to remote build for Linux. Remote building is not for building on a specific architecture, it's for building the package on the archictecture is menat for.
<Myrl-saki>
seanparsons: Meaning you have to override nixpkgs to build for Linux, before it builds on the Linux box.
<Myrl-saki>
Assuming you haven't done that before.
<Myrl-saki>
seanparsons: Sorry for the accidental ping.
<Myrl-saki>
OTOH, I feel like that needs to be documented more.
PCChris has quit [Remote host closed the connection]
klntsky has quit [Remote host closed the connection]
BigMassive has quit [Quit: Leaving]
PCChris has joined #nixos
<Myrl-saki>
I asked this on another channel. Aside from buying raw, does anyone have any idea of what massively multi core box I can buy for cheaper than TR?
<adisbladis>
Myrl-saki: I dunno really.. When I had that stuff at home I wasn't the one paying the bills
<jD91mZM2>
:facepalm:
<Myrl-saki>
adisbladis: I mean, do I have to buy something to mount it on? How about the PSU?
<sphalerite>
jD91mZM2: oh yeah, I didn't actually mention it in the post at all, but as adisbladis says, less heat — in fact, the laptop is entirely passively cooled
<Myrl-saki>
I could just set it on WoL.
<adisbladis>
Myrl-saki: PSU is integrated in the server. What you _might_ want to get for your rack is a PDU/UPS
<sphalerite>
♥ complete silence
<angerman>
is there some standard postInstall stuff I can use to have `$out/lib/gcc/$host/$version/` bemoved to `$out/lib`, and `$out/$host/lib/*` be moved to `$out/lib` as well? Or is there some other hook, such that those folders are put into NIX_LDFLAGS?
<Myrl-saki>
adisbladis: I only want it to accelerate my Nix builds and/or as my main computer when not having to game.
<Myrl-saki>
Actually, scratch the main computer part.
<sphalerite>
jD91mZM2: but also just because it's not mainstream
<Myrl-saki>
I don't want the electricity bill.
<Myrl-saki>
I'm thinking of setting it on Wakeup on Lan + nix build.
<jD91mZM2>
sphalerite: I see you are an adventurer
<sphalerite>
Myrl-saki: chromebook as main computer 10/10 :p
<Myrl-saki>
hipster
<adisbladis>
I'd love an ARM laptop.. Too bad no one makes them with decent keyboards
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
If you're feeling adventurous, that is.
<adisbladis>
Myrl-saki: That would make everything far less portable though
<Myrl-saki>
adisbladis: I know. :x
<{^_^}>
[nixpkgs] @Mic92 pushed to master « purple-xmpp-http-upload: use date of commit as version »: https://git.io/vhvz5
<Myrl-saki>
hmm
<jD91mZM2>
sphalerite: Wow okay so chromebooks are actually really nice if you ignore the default operating system?
PCChris has quit [Remote host closed the connection]
coot has joined #nixos
PCChris has joined #nixos
fxr has quit [Remote host closed the connection]
<Czen>
chromebooks are nice because you can put libreboot on them without disassembling them
<sphalerite>
jD91mZM2: yeah they're not bad. I have had some problems too though — performance isn't amazing (better than I would have expected though), hardware difficulties (I can't use the eMMC, it tends to hang the kernel after a while reading from it)
<sphalerite>
jD91mZM2: it's far from perfect but I do like it a lot.
<Myrl-saki>
adisbladis: Also, the PE2950 was released before 2006. :P
<adisbladis>
Myrl-saki: Oh :P Then they kept the model name around for some time
<Myrl-saki>
adisbladis: I just made you feel old. Muahahahaha.
<Myrl-saki>
That aside.
<sphalerite>
And for stuff that requires compute performance I use a dedicated server that I admin for my dad :p
<Myrl-saki>
adisbladis: Interesting how servers really are comparable to more modern conusmer hardware.
Ariakenom has joined #nixos
<Myrl-saki>
I mean, that's such an obvious thing to notice, but buying used servers is actually a viable solution if you're on the cheap.
PCChris has quit [Remote host closed the connection]
<adisbladis>
Yeah buying used servers is great
<Czen>
if you don't mind the noise and power draw
<adisbladis>
Because most businesses wont consider it, there is a huge secondary market with huge price drops after just a year or two
PCChris has joined #nixos
<Myrl-saki>
Czen true
jperras has joined #nixos
<Czen>
OEM desktops are worth looking into too
phreedom has joined #nixos
<Czen>
you can get a pc with an older i7 for next to nothing
<sphalerite>
heh, I run my uni's computing society's servers. They're all donations from companies that didn't want them anymore, and mostly very loud and warm and not very powerful :p
<Czen>
dell optiplex and such
<adisbladis>
Czen: Where I live there are shops that sell stacks of 1 to 2 generations old thinkpads for next to nothing :)
<Czen>
here it's dominated by people who regulate the thinkpad market so there are no "deals" left :(
<Myrl-saki>
oh okay.. shit. i think i messed up.
<Czen>
still worth it though
<Myrl-saki>
I just checked our electricity bill and we're paying $500 for this month.
<Myrl-saki>
uhh
<Myrl-saki>
it's summer and it's hot tho
<adisbladis>
Czen: Too bad :( Where is that?
<Myrl-saki>
sphalerite: So basically, a more useful heater?
<adisbladis>
I just saw a stack of intel dev desktops up for sale in the same place the other week
<adisbladis>
Looks funny when "For internal use only" is engraved into the chassis
<sphalerite>
Myrl-saki: yes! Incredibly high compute performance in comparison to other space heaters.
<Myrl-saki>
sphalerite: Haha. :D
PCChris has quit [Remote host closed the connection]
<sphalerite>
We've got some old sun servers there as well, which are noisy and hot even when idle
<adisbladis>
I miss sun hardware :(
<adisbladis>
It's just not the same when your server is not on wheels
burton_ has quit [Quit: This computer has gone to sleep]
<sphalerite>
the ones we have are rack servers
<Myrl-saki>
sphalerite: I guess we get why they're called sun now. Ayyyyy
<sphalerite>
2 SunFire V440s (one seems to be broken), one SunFire V240, and 6-8 assorted StorEdge boxes (I don't know the details and they're not running, because I don't know how to work them :D )
PCChris has quit [Remote host closed the connection]
<sphalerite>
oh yeah, also on the chromebook: I don't know if they're underselling it or if chrome os just uses more power, but I tend to get 10-14 hours from it rather than 8 as they advertise
<Myrl-saki>
Realy though, let's appreciate that x86 has some degree of efficency nowadays.
smallville7123 has quit [Quit: rosa]
<Myrl-saki>
sphalerite: In my experience, ARCH
<Myrl-saki>
Err
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
Wait, still adjusting to new keyboard
<adisbladis>
Myrl-saki: My laptop is currently 6w
PCChris has joined #nixos
<adisbladis>
The whole damn thing, with bluetooth, wifi & everything you'd normally expect from a laptop
<adisbladis>
I'm super impressed
<Myrl-saki>
sphalerite: In my experience, armv7 is more reliable as long as you don't hit the 32-bit barrier.
smallville7123 has joined #nixos
<sphalerite>
Myrl-saki: that 32-bit barrier which the firefox build hits :'(
<Myrl-saki>
adisbladis: What laptop?
<adisbladis>
Myrl-saki: Thinkpad 25
<Myrl-saki>
I'm thinking of getting a Chromebook, but can't justify it.
<Myrl-saki>
adisbladis: Ohhh. Wtf.
<Myrl-saki>
adisbladis: I heard bad things from Rossman about that, but it was a surface level analysis. What do you think about it?
<sphalerite>
adisbladis: nice video
<adisbladis>
Myrl-saki: Bad things like what?
<Myrl-saki>
adisbladis: I guess there's a difference between not fulfilling what it's supposed to be(a callback to retro thinkpad) and being a good product in general.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<adisbladis>
Myrl-saki: Ahh.. It's a great laptop. But I think calling it a retro thinkpad is disingenuous
<Myrl-saki>
adisbladis: It was mostly "you removed some things from the older thinkpad to make your newer thinkpads, you should have unremoved those things for the Thinpkad 25."
<Myrl-saki>
I'll go look for some chromebooks.
maingo has quit [Quit: Connection closed for inactivity]
<adisbladis>
Myrl-saki: Yeah. It's not the retro thinkpad that I wanted. But it is the only laptop without a screwed up keyboard
<adisbladis>
So I went with it anyway
<Myrl-saki>
adisbladis: True. :P He actually complained about the keyboard too, well not the keyboard itself, but the layout.
<{^_^}>
[nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/vhv2w
<{^_^}>
→ 856ffc63 by @offlinehacker: Merge pull request #40905 from Pneumaticat/patch-2
<{^_^}>
→ b6f2e75d by @Pneumaticat: kubernetes-dashboard: raise memory limit to 250MB
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
adisbladis: What's the battery life of that thing/
PCChris has joined #nixos
<adisbladis>
Myrl-saki: Btw, there is also a number of cheap laptop-ish chinese devices
<Myrl-saki>
This is making me sad, there's less and less of ARM Chromebooks in my place. :(
<Myrl-saki>
They mostly used Cherry trail.
<adisbladis>
Myrl-saki: I dont really know. I can go a full day of light use (not much compiling or running heavy test suites)
<Myrl-saki>
adisbladis: Do you use the trackpoint?
<adisbladis>
Myrl-saki: I'm using NixOS on a cherry trail :)
<adisbladis>
Myrl-saki: Yeah
<adisbladis>
As a matter of fact I have made the touchpad a huge scrollwheel
<Myrl-saki>
adisbladis: Yeah, but a cherry trail is not ARM. :(
amir has quit [Read error: Connection reset by peer]
<adisbladis>
It is indeed not :P
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<Myrl-saki>
adisbladis: wtfff, the thinkpad25 actually supports the dual battery system??
<adisbladis>
Yes, one internal and one external
<adisbladis>
All modern thinkpads have this
<adisbladis>
So you can hotswap batteries
<Myrl-saki>
adisbladis: Yep. Okay, that will probably get me back to Thinkpads, once I can afford them.
vaninwagen has joined #nixos
<Myrl-saki>
tmw I searched chromebook in my local online store. And I get Windows 10 laptops. Nice.
<Myrl-saki>
adisbladis: i feel like what happened was that people bought chromebooks and were disappointed because they're not Windows, causing some to back off.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<sphalerite>
heh
<Myrl-saki>
sphalerite: That happens. :(
thc202 has joined #nixos
<Myrl-saki>
I guess it's the same concept as "make wrong things hard to do" in programming.
<Myrl-saki>
Doesn't matter if it's the user's fault, it's still your fault. :P
<{^_^}>
→ 41344b8d by @xeji: Merge pull request #40886 from Synthetica9/atom-1-27-1
Synthetica has joined #nixos
mahalel_ has left #nixos [#nixos]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<nschoe>
Hi everyone, I have a quick question regarding the "correct", nix-ish way of doing something:
PCChris has quit [Remote host closed the connection]
<nschoe>
I needed to install kicad, so I installed it via nix-env -iA nixos.kicad. Fine, this works. Now in kicad, I need to use a plugin that uses 'xsltproc'. So I then used nix-env -iA nixos.libxslt. Now what is the "correct" way of "requiring" libxlst when I install kicad?
PCChris has joined #nixos
pxc1 has joined #nixos
ThatDocsLady has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
pxc1 has quit [Ping timeout: 260 seconds]
tertle||eltret has quit [Quit: Connection closed for inactivity]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<sphalerite>
nschoe: if it's a built-in plugin, probably modifying the kicad expression so it refers to xsltproc through its full path
<sphalerite>
nschoe: but for run-time composition the answer tends to be "it's complicated".
<sphalerite>
There's nothing wrong with how you did it, if it works.
<nschoe>
sphalerite, actually the "plugin" part is irrelevant. My real question is how can I add a dependency to an existing nix expression?
<sphalerite>
it depends on how it uses it. If it's a build-time dependency that gets linked in, just add it to buildInputs. In this case, it's a bit more complicated since it usually just searches on $PATH
PCChris has quit [Remote host closed the connection]
<sphalerite>
so either you wrap the executable with something that adds ${libxslt}/bin to $PATH, or you substitute ${libxslt}/bin/xsltproc for xsltproc in the project's code.
PCChris has joined #nixos
<nschoe>
sphalerite, okay so the "correct" way would be to edit kicad's default.nix, and add this dependecy in the buildInputs? Okay that seems good to me.
<sphalerite>
oh or there's propagatedUserEnvPackages but that's nasty and discouraged AFAIK
<nschoe>
Okay I had not heard of it, so I'll keep avoiding it for now :P
<nschoe>
sphalerite, and in the same kind of spirit: how would one go about installing firefox with several video plugins (suppose one wants h264 or equivalent). Is there common ways of achieving this?
PCChris has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dotlambda pushed to master « youtube-dl: use toPythonApplication (#40831) »: https://git.io/vhvPl
<sphalerite>
Generally the approach for that kind of stuff is to have a separate derivation which wraps the "raw" executables to add the plugins to some environment variable or similar
<sphalerite>
So that you can alter the plugin set without having to rebuild the software from source
lonokhov has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
vskilet[m] has joined #nixos
<nschoe>
sphalerite, okay I see, so one would not "nix-env -i firefox", but rather "nix-env -i my-wrapper-firefox" :)
<sphalerite>
but yeah, you might have an overlay that defines exactly how you want it wrapped. Hypothetically (I don't know how firefox wrapping actually works), you'd have an overlay that looks like self: super: { my-firefox = self.firefox.override {plugins = ["h264"];};}
<sphalerite>
then you could do `nix-env -f '<nixpkgs>' -iA my-firefox` to install it
PCChris has quit [Remote host closed the connection]
<sphalerite>
or you can have a firefox.nix like with import <nixpkgs> {}; firefox.override { plugins = ["h264"];} and install it using nix-env -f firefox.nix -i
PCChris has joined #nixos
jensens has joined #nixos
jperras has joined #nixos
<nschoe>
okay I see.
<nschoe>
Thanks for your answers.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<nschoe>
Sorry again, one last question (that has nothing to do with it): how do I know the derivation path used for my installed program? For instance, how do I the nix store's path for my currently installed kicad version?
<sphalerite>
just see where the symlink points. ls -l $(which kicad)
jperras has quit [Ping timeout: 252 seconds]
PCChris has quit [Remote host closed the connection]
<__monty__>
Having some trouble understanding this rust error is this jus
<__monty__>
t nixpkgs having a broken rust-libsodium-sys? http://ix.io/1aYS
<sphalerite>
__monty__: Failed to run `\"pkg-config\" \"--libs\" \"--cflags\" \"libsodium\"`: No such file or directory (os error 2)" looks like it's missing pkgconfig
<__monty__>
I tried in a nix-shell with pkgconfig and got the same problem. I should've added it to buildinputs, right? -.-
<tilpner>
nativeBuildInputs
PCChris has quit [Remote host closed the connection]
<sphalerite>
what are you trying to build and how?
PCChris has joined #nixos
<sphalerite>
oh right, rust-wireguard
<sphalerite>
yeah. Add it to the nativeBuildInputs for rust_libsodium as tilpner says.
<{^_^}>
→ 9064dd2f by @edolstra: Merge pull request #2173 from dtzWill/fix/serialise-read-unbuffered
<{^_^}>
→ b08923b4 by @dtzWill: serialise: fix buffer size used, hide method for internal use only
<__monty__>
tilpner, sphalerite: It looks like pkgconfig's already a build depency for libsodium in the wireguard.nix generated by carnix: http://ix.io/1b2Z
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @lsix to master « pythonPackages.timeout-decorator: 0.3.2 -> 0.4.0 (#40914) »: https://git.io/vhvSd
betaboon has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<betaboon>
hello. is it possible that builtins.match behaves differently on macos than on linux ? oO
<tilpner>
Both running the same Nix version?
<betaboon>
tilpner: yes both running nix2
<tilpner>
Hmm, do you have a small example of such a difference?
<__monty__>
Hmm, this is how I edited the .nix: http://ix.io/1b31 and this is the same error I get: http://ix.io/1b32 Not sure where else propagatedNativeBuildInputs should be added?
<__monty__>
DAE have trouble reading nix because the syntax is so lightweight?
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
Neo-- has quit [Ping timeout: 252 seconds]
guillaum2 has joined #nixos
PCChris has quit [Remote host closed the connection]
adisbladis has quit [Read error: Connection reset by peer]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
xy2_ has joined #nixos
<betaboon>
tilpner: yeah sorry for the confusion, just got more infos after answering your initial question, on ubuntu+Nix2.0.2 it works, on Nixos+Nix2.0.1 it works. on macos+Nix2.0.1 it fails, on macos+Nix1.11.16 it fails.
<__monty__>
sphalerite, tilpner: Is there any reasoning I can apply to figure out where I should be adding propagatedNativeBuildInputs?
<betaboon>
tilpner: what exactly is expected ?
<tilpner>
betaboon - Sorry for the snark, I'm kind of grumpy right now (primusrun broke again). Behaviour of match changed between 1.* and 2.*, but I don't have an explanation for a difference between platforms (but on the same versions)
PCChris has quit [Remote host closed the connection]
<betaboon>
tilpner: no problem. not every day is created equal XD
PCChris has joined #nixos
<tilpner>
Let's try this manually, what's the pname where it fails?
<tilpner>
Then we can run match against it on both platforms and observe the differences
<betaboon>
ouh yeah. good idea. stupid me
<betaboon>
tilpner: I'll try to figure out what the pname was, will take some time. gotta do this on a collegues macbook. brb
<tilpner>
Replace pname with (builtins.trace pname pname), then look for the last pname before the error
<sphalerite>
__monty__: personally I have no idea how to do that for carnix stuff, sorry
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<sphalerite>
maybe pemeunier is around and can help? (how to add pkgconfig to propagatedNativeBuildInputs for rust pkg_config crate in carnix output)
<tilpner>
Oh, I was trying to tab-complete pmeunier...
<tilpner>
pemeunier - Your carnix crate metadate for the homepage and repository point to 404s
simukis has joined #nixos
<sphalerite>
__monty__: as for syntax difficulty: I don't generally find that, but yeah autogenerated nix like that from carnix can be painful to read
PCChris has quit [Remote host closed the connection]
jedai has quit [Ping timeout: 260 seconds]
PCChris has joined #nixos
<sphalerite>
out of curiosity, what sort of "less light" syntax do you think would make nix easier to read?
<betaboon>
tilpner: replacing pname with builtins.trace ... didnt get me any result, i guess due to the regex being validated prior to the value being evaluated. doing a seperate builtins.trace returns the package name "ml-package-name" (which is the name of the package i want to build using mkYarnPackage)
<__monty__>
sphalerite: {}: {} for functions is confusing imo, it's hard to see where the body begins and ends. Haskell's \ x y z -> body is easier to parse because it's less symmetrical. Python's would probably be even easier to spot.
PCChris has quit [Remote host closed the connection]
<tilpner>
Nah, my first thought was "must be using it wrong somehow", instead of "is actually broken", too :)
<{^_^}>
[nixos-homepage] @edolstra merged pull request #218 → add discourse to community page → https://git.io/vpppn
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vhv5y
<{^_^}>
→ 9a5581ca by @ryantm: add discourse to community page
<{^_^}>
→ 36af20c3 by @edolstra: Merge pull request #218 from ryantm/discourse
PCChris has quit [Remote host closed the connection]
* sphalerite
has just come up with a fun game: grep for specific people performing ACTIONs in the IRC logs. If you read all the actions for a single user it sometimes ends up looking like a very strange, sometimes funny story
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vhv55
<{^_^}>
→ 79e29c41 by @zimbatm: news: add nixcon 2018
<{^_^}>
→ 3de581af by @edolstra: Merge pull request #219 from zimbatm/nixcon-2018
PCChris has joined #nixos
sbdchd has quit [Ping timeout: 245 seconds]
<betaboon>
tilpner: consens on that issue seems to be "Empty regular expressions are not allowed according to the POSIX extended regex grammar ". but i don't see any empty expressions in the regex i question. am i blind ?
<sphalerite>
oh yeah I don't think that non-greedy thing is POSIX, is it?
<sphalerite>
pretty sure that's a perl thing
<__monty__>
sphalerite: clever seems to be a somnophile. The game's already resulting in deeper psychological understanding of #nixos ; )
PCChris has quit [Remote host closed the connection]
<sphalerite>
lol
PCChris has joined #nixos
<betaboon>
sphalerite: so i guess the proper solution is write a POSIX-conform regex that does the same thing, huh ?
<ocharles>
Hi. I am unable to get nixops to deploy a VirtualBox machine. It gets stuck at "waiting for IP". The machine has booted, but I don't know how to login as root to see what it's IP is. I have the VirtualBox DHCP server enabled, and the VM has two adapters - one is NAT, the other is paravirtualised
<sphalerite>
betaboon: not sure that's actually possible, but if it is, yes
<ocharles>
hmm, my host machine has no vboxnet0 interface though
<tilpner>
betaboon - I was more referring to clacke[m]s theory that "std::regex on Linux comes from libstdc++ and the one on Darwin comes from LLVM", which would answer your initial question of "is it possible that builtins.match behaves differently on macos than on linux"
<betaboon>
tilpner: yeah right
<Dezgeg>
yes, that has already bitten us once
<tilpner>
Now you could verify that theory by writing a C++ program that uses your regex, and compiling that on both platforms
<Dezgeg>
though I thought it was fixed
PCChris has quit [Remote host closed the connection]
<__monty__>
sphalerite: srhb went from being chronically confused to being a yes man to imagining huge trees. Suspicious.
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « altcoins.parity-ui: 0.1.1 -> 0.2.1 (#40647) »: https://git.io/vhvbT
fendor has joined #nixos
Havvy has quit [Read error: Connection reset by peer]
genesis has joined #nixos
PCChris has quit [Remote host closed the connection]
<sphalerite>
__monty__: hodapp is the first person I looked up who hasn't been most frequently encountered in #nixos, and has some, uh, interesting antics going on in #emacs
PCChris has joined #nixos
justbeingglad has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
<sphalerite>
hodapp: I like your /mes. They are entertaining.
<ocharles>
Ok, I found my problem. I have previously done `ifconfig vboxnet0 down` on the host
justbeingglad has left #nixos [#nixos]
<srhb>
__monty__: Wut
* srhb
tries to find the context :P
<sphalerite>
srhb: rg '\*\s+srhb' ~/.weechat/logs
asuryawanshi has quit [Remote host closed the connection]
<srhb>
What's with all you fancy people and your ripgrep
<sphalerite>
__monty__: I learnt vim and have now mostly moved to emacs with evil
PCChris has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<sphalerite>
also used IDEA with the vim emulation for that
<sphalerite>
at work
asuryawanshi has joined #nixos
<srhb>
I did that, now my emacs is a huge ball of confusing elisp and I cba to fix it. I tried switching to spacemacs but all the prefixes were different. Q_Q
<srhb>
I think if you drink *that* koolaid, it's great too.
<sphalerite>
betaboon: yes, it's fine for those cases. Not sure if the non-greediness will bite your at some point, but if so it wouldn't have worked before the fix either :)
<__monty__>
My wrists suffer enough as it is. Can't imagine what C-o C-a C-'' C-c M-d and friends would do to them.
<srhb>
__monty__: That's why evil. :)
fendor has quit [Ping timeout: 264 seconds]
<__monty__>
I've always dismissed evil because I'm sure you can't shoehorn all of emacs into vi keybindings.
<sphalerite>
betaboon: also I think you might want to either double or remove those backslashes, depending on whether you want @foo\ml-package-name to work
<sphalerite>
__monty__: I find myself using a mix now. It's terrible really, because it means I can't even go back to plain vim.
PCChris has quit [Remote host closed the connection]
pxc1 has quit [Ping timeout: 256 seconds]
<sphalerite>
I've often tried doing C-x C-s in vim. Which is particularly irritating when flow control is enabled
PCChris has joined #nixos
<betaboon>
sphalerite: thanks for the thoughts
<__monty__>
My main issue with emacs was that -nw makes for a bad experience.
<sphalerite>
how so?
<__monty__>
Many emacs bindings don't work in terminals, C-s is a good example.
<srhb>
What?
<__monty__>
There's alternatives usually and you can rebind of course but they're all worse.
<srhb>
I mean, that's not true in general.
<sphalerite>
C-x C-s works in emacs -nw for me
<sphalerite>
it seems to disable flow control for me
<srhb>
C-s works in emacs -nw for me
xy2_ has joined #nixos
Ariakenom has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #40873 → vala: 0.36, 0.38 and 0.40 update point releases → https://git.io/vpjVa
<{^_^}>
→ 96897548 by @peterhoeg: vala: 0.36, 0.38 and 0.40 point upgrades
<{^_^}>
→ 015052f4 by @peterhoeg: vala: drop 0.23
<{^_^}>
→ c29d2fde by @xeji: Merge pull request #40873 from peterhoeg/u/vala
<__monty__>
Maybe it was other bindings. Not like I stuck with it for long.
<srhb>
Anymoo. Probably a bit off topic. :D
<srhb>
(What! Editor discussion? Never!)
<__monty__>
Does it capture C-c?
<sphalerite>
but yeah some definitely don't, a friend of mine got rather confused by C-c C-, not working though
<etu>
__monty__: I can't recall any keybindings I have that wouldn't work in emacs -nw
PCChris has quit [Remote host closed the connection]
<sphalerite>
C-, definitely doesn't, there just isn't a standard sequence that C-, is sent as
<etu>
But I mostly use graphical emacs anyways
<srhb>
sphalerite: Works just fine here...
PCChris has joined #nixos
<srhb>
sphalerite: I wonder what you people are doing to your terminals.
<sphalerite>
srhb: huh…? Which terminal are you using?
<srhb>
xterm
<__monty__>
Maybe the problem was ssh in the mix? All I remember is being frustrated enough to switch to the gui version. I rarely use GUI's except for browsers.
nschoe has quit [Ping timeout: 240 seconds]
<srhb>
(Yes, grep over rg, find over fd, xterm over all those fancy new toasters)
<srhb>
:-)
<__monty__>
But embedded image previews, srhb.
<sphalerite>
huh, so it does, xterm sends C-, while st just makes it into ,
<srhb>
If you can't convey it with words, it's not worth conveying!
* sphalerite
edits st
* srhb
is like a million years old
<sphalerite>
huh, does it maybe set a special mode?
<sphalerite>
just putting C-, into cat, even in xterm, just sends a plain ,
<etu>
srhb: What's this fd?
<etu>
never heard of
<srhb>
etu: Apparently a find alternative.
<__monty__>
srhb: But pictures are worth a 1000 words! I'd rather watch a couple silly gifs than read a crime and punishments authored by the lovely people on irc : p
<sphalerite>
>pkgs.fd.description
PCChris has quit [Remote host closed the connection]
<sphalerite>
> pkgs.fd.description
<{^_^}>
attribute 'description' missing, at (string):39:1
<etu>
Why would I need that?
<sphalerite>
> pkgs.fd.meta.description
<{^_^}>
"A simple, fast and user-friendly alternative to find"
PCChris has joined #nixos
<srhb>
I'm really not the right person to argue that case. :P
<sphalerite>
phew
<__monty__>
etu: What I like about it is it Just Works instead of requiring all those weird flags find needs just to find a finding file.
<etu>
__monty__: I have a fish function that is named isfind
<__monty__>
Also, it's a lot faster than find.
<etu>
It does this: find . -iname "*"$argv[1]"*"
<etu>
So I type isfind part-of-filename
freeman42x]NixOS has quit [Ping timeout: 245 seconds]
<sphalerite>
fzf anyone? :p
PCChris has quit [Remote host closed the connection]
<sphalerite>
srhb: ah, but C-; doesn't work even in xterm :p
<__monty__>
etu: See? That'd just be `fd -i partofname` (default is smart-case not ignore-case but you can probably drop -i).
PCChris has joined #nixos
<sphalerite>
srhb: and it seems like tmux and st both don't like C-,
<srhb>
sphalerite: No idea how it works, it's just magical.
<srhb>
Oh, it breaks with tmux for me too. Why is that?
<sphalerite>
I just need to use graphical emacs and make it my terminal as well
<jasongrossman>
I haven't been able to get the new libvterm in emacs to work.
<sphalerite>
hm, I haven't seen much of hyper_ch here recently
<jasongrossman>
And IIRC there haven't been any new commits for it recently.
<jasongrossman>
(I mean upstream, not in nixpkgs.)
<etu>
jasongrossman: Hmm, adisbladis[m] had it working and it's merged into nixpkgs a few days ago
<jasongrossman>
That's good. I'll try it via nixpkgs ... can't think how that could make any difference (compared to getting it straight from melpa) though.
<jasongrossman>
I've been trying to get emacs terminals to work with Mutt. Maybe that's a difficult test.
<jD91mZM2>
srhb: Maybe I should just start using xterm too... It's already saved my skin when st crashed, heh. And it's the only terminal that supports sixels IIRC.
jperras has joined #nixos
<hodapp>
sphalerite: I have no idea of the antics of which you speak
<etu>
jD91mZM2: A friend told me the other day that xterm does support sixels
PCChris has quit [Remote host closed the connection]
<jD91mZM2>
etu: That's what I said?
PCChris has joined #nixos
<sphalerite>
https://github.com/saitoha/libsixel "terminal requirements" lists terminals that support it, mlterm seems to be another candidate
<tilpner>
jD91mZM2 - mlterm and cancer support sixels too
<jD91mZM2>
But has anybody actually heard of those?
<sphalerite>
cancer? What a lovely name
<jD91mZM2>
omg cancer is rust
<jD91mZM2>
rust isn't cancer though don't get me wrong
<__monty__>
Yeah, sounds like jD91mZM2 vehemently opposes sixels : )
<sphalerite>
jD91mZM2: so is alacritty :p
__Sander___ has joined #nixos
<__monty__>
jD91mZM2: TBH rust doesn't seem all it's cracked up to be. Been having muy trouble getting a project to build.
ericsagnes has joined #nixos
<jD91mZM2>
sphalerite: Yeah but does alacritty support sixels? Exactly.
<__monty__>
Kitty actually has a much better protocol for images than sixel.
jperras has quit [Ping timeout: 260 seconds]
PCChris has quit [Remote host closed the connection]
<jD91mZM2>
__monty__: Rust is awesome and if you say otherwise you're wrong
PCChris has joined #nixos
<jD91mZM2>
On serious notes though, what issues were you having?
<sphalerite>
you know what I want? An in-band terminfo protocol of some sort. What is this 80s crap of storing the info in files and setting which files to read from an env var anyway
<etu>
jD91mZM2: ah, I've misinterpered what you said then :)
<sphalerite>
__monty__: it's more of an issue with nix/rust integration than rust itself :p
<Dezgeg>
to keep compatibility with those 80's protocols, of course x)
__Sander__ has quit [Ping timeout: 245 seconds]
mounty has joined #nixos
<jD91mZM2>
we should rewrite the 80's protocols in rust
<adisbladis[m]>
jasongrossman: mutt should work inside libvterm
<adisbladis[m]>
It properly renders everything I've thrown at it so far
__Sander___ has quit [Client Quit]
sbdchd has joined #nixos
* jD91mZM2
is finally done googling what "vehemently" means. Darn captchas.
__Sander___ has joined #nixos
__Sander___ has quit [Client Quit]
<sphalerite>
go team duckduckgo
__Sander__ has joined #nixos
<jD91mZM2>
duckduckgo doesn't have captchas for all VPN users for shits and giggles?
PCChris has quit [Remote host closed the connection]
<__monty__>
sphalerite: The issue I have now, sure. But I tried fixing the master branch of bulletinboard-dht first and the errors were just unending and frankly confusing. And the rust communities on freenode and mozilla were very unhelpful. I'm 100% certain had I asked a similar question in #haskell at least 5 people'd have tried helping. I got more help on rust from here than #rust@freenode #rust@moz and
<__monty__>
#serde@moz combined.
<jD91mZM2>
Welp that's enough to convince me to use duckduckgo, where do I start
PCChris has joined #nixos
<sphalerite>
__monty__: aw, that's a shame. I've found #rust-beginners helpful myself, but that was more for simple questions I guess
<jD91mZM2>
__monty__: Maybe because your compilation issues are NixOS-specific and it's a relatively small community sadly?
sbdchd has quit [Ping timeout: 260 seconds]
<jD91mZM2>
If you have trouble compiling something because libsomething is missing they'll just tell you to install libsomething. That will work on almost all distros - but not NixOS because you don't install libraries as normal packages here
<__monty__>
I'm sure I'm diving in at the deep end, trying to get a neglected project that require(d|s) nightly to compile as my first rust experience. But still, silence is worse than "Those are some mighty weird issues you're having, don't expect anyone can help you."
<sphalerite>
"Request Checksum of Rectangular Area (DECRQCRA), VT420 and up."
<jD91mZM2>
BTW you wouldn't be getting most of your issues if every crate was written in Rust. It's the Rust->C FFI that causes most compilation errors
PCChris has quit [Remote host closed the connection]
<__monty__>
jD91mZM2: That's the kind of issue I'm having now. But I take those issues here. The issues I took to #rust were definitely not nix-related. Things like impl trait missing for ...
<jD91mZM2>
oh
PCChris has joined #nixos
<__monty__>
I understand what the errors mean, I just have no clue how to go about solving them.
<jD91mZM2>
Welp then I'm out of excuses lol
<sphalerite>
jD91mZM2: so you're saying rust's tooling isn't good at interacting with preexisting stuff? ;)
<jD91mZM2>
sphalerite: It is definitely great, but it's not going to replace your package manager and install all the missing C libs for you.
robstr has quit [Ping timeout: 260 seconds]
PCChris has quit [Remote host closed the connection]
<__monty__>
All I needed was a rustacean who could hold my hand rephrasing some error messages in non rust specific words. But I couldn't find any.
PCChris has joined #nixos
<__monty__>
sphalerite and tilpner have helped me most of the way there though.
seafood has joined #nixos
<__monty__>
jD91mZM2: Maybe you know how to specify propagatedNativeBuildInputs for a crate in a carnix generated expression?
<jD91mZM2>
Alright that's a valid complaint. Rust has a kinda steep learning curve. It's be great if the community was nicer there.
<jD91mZM2>
I do not
<jD91mZM2>
To be entirely honest I've never used carnix :P
PCChris has quit [Remote host closed the connection]
xy2_ has quit [Read error: Connection reset by peer]
PCChris has joined #nixos
ThatDocsLady has quit [Quit: Leaving]
xy2_ has joined #nixos
<jD91mZM2>
__monty__: Is there any chance you could wrap your package in an override that adds the necessary things?
<__monty__>
That's what I'm trying to figure out. Currently looking at how to specify crateOverrides for a specific crate.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<jD91mZM2>
I was thinking a normal nix override. Like (callPackage ./default.nix).overrideAttrs(oldAttrs: { ... })
ThatDocsLady has joined #nixos
<{^_^}>
[nixpkgs] @tokudan opened pull request #40919 → systemd-timesyncd.service: use the correct server list → https://git.io/vhfUW
PCChris has quit [Remote host closed the connection]
<__monty__>
jD91mZM2: There's no callPackage call in the generated expression. For reference wireguard-p2p.nix: http://ix.io/1b3p The build error: http://ix.io/1b3q
AluisioASG has quit [Remote host closed the connection]
PCChris has joined #nixos
knupfer has quit [Remote host closed the connection]
AluisioASG has joined #nixos
<jD91mZM2>
__monty__: No, I meant you make a wrapper around that expression
fendor has joined #nixos
pxc1 has joined #nixos
<__monty__>
But I don't want to override it for the entire expression, just the pkg_config expression.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<jD91mZM2>
__monty__: Maybe you should make an issue on the carnix repo (although IIRC it's not on GitHub) if possible?
<{^_^}>
[nixpkgs] @globin pushed commit from @dotlambda to master « home-assistant: deal with multiple packages matching requirement »: https://git.io/vhfZU
<tilpner>
But I'm not even sure what I'd expect nix-instantiate '<nixpkgs>' -E 'something' to do
<boothead>
Hi folks, I'm creating a nix module and I want to debug as I go along... One of the things I'm doing is cfgFile = builtins.toFile "config.json" (builtins.toJSON cfg); I'd like to run that in nix-repl or something to see how the json comes out and if it conforms to the schema I have. Any way to do this?
freeman42x]NixOS has joined #nixos
PCChris has quit [Remote host closed the connection]
<tilpner>
Do you have the module currently imported in your nixos config?
PCChris has joined #nixos
steell has joined #nixos
nD5Xjz has joined #nixos
ajp has quit [Ping timeout: 248 seconds]
<tilpner>
An easy way would be system.build.bootheadsJsonFile = writeText "boothead.json" (builtins.toJSON cfg);, then nix-build '<nixpkgs/nixos>' -A config.system.build.bootheadsJsonFile
<andreabedini>
tilpner: I'm new to nix so I'm trying stuff out (randomly, some times)
<andreabedini>
it works with nix-build and nix-shell so that solves my problem
<tilpner>
andreabedini - nix-instantiate -E 'with import <nixpkgs> {}; haskellPackages.ghcWithPackages (pkgs: [pkgs.mtl])' works too
<andreabedini>
playing with the repl helped a lot!
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<boothead>
tilpner: thanks, presumably I'd have to make sure this module I'm creating is imported (it's in a stand alone git repo and not on my path at the moment). Any way to do this outside of my system's config?
<clever>
boothead: one min
<tilpner>
boothead - Yes, you can use any other system config too, but that's a few minutes more effort
PCChris has quit [Remote host closed the connection]
romildo has joined #nixos
<tilpner>
When I develop modules, I want to switch to them too, so I usually include them in my main config
PCChris has joined #nixos
ajp has joined #nixos
jperras has joined #nixos
<romildo>
Given a package name, is it easy to find the file (*.nix) that defines the package? For instance, for the package lxqt.liblxqt I would get /alt/nixpkgs/pkgs/desktops/lxqt/base/liblxqt/default.nix
PCChris has quit [Remote host closed the connection]
acarrico has joined #nixos
PCChris has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
k0001 has joined #nixos
alaricsp has quit [Remote host closed the connection]
frank87_ has joined #nixos
frank87 has quit [Read error: Connection reset by peer]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
smallville7123 has joined #nixos
<k0001>
I am trying to use builtins.fetchTarball and keep getting this error saying “store path mismatch in file downloaded from…”. Here's a small example: https://gist.github.com/k0001/f484b77971d6a31bb8eba29134780f90 — What is going on? I'm using nix-2.0.1
<nyanloutre[m]>
clever: TIL the bot is amazing :D
<clever>
k0001: you need to hash it with `nix-prefetch-url --unpack`
<sphalerite>
k0001: nix-prefetch-url --unpack
<sphalerite>
aaah too slow x)
<nyanloutre[m]>
> doge = { destination = moon; }
<{^_^}>
error: undefined variable 'moon' at (string):7:25
<clever>
fetchTarball unpacks, and hashes the NAR of the output, but nix-prefetch-url hashes the .tar.gz
PCChris has quit [Remote host closed the connection]
<nyanloutre[m]>
> doge.destination
<{^_^}>
"moon"
<k0001>
clever sphalerite ah, right, thanks :)
PCChris has joined #nixos
orivej has joined #nixos
Tucky has quit [Quit: WeeChat 2.1]
seppellll has quit [Ping timeout: 248 seconds]
iqubic` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
wangoe has quit [Quit: WeeChat 1.9.1]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
dbmikus has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
reinzelmann has quit [Quit: Leaving]
lanelet has joined #nixos
smallville7123 has quit [Quit: rosa]
iyzsong has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
MarcWago has quit [Quit: MarcWago]
smallville7123 has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
Tucky has joined #nixos
smichel17 has quit [Quit: smichel17]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
romildo has quit [Quit: Leaving]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
freeman42x]NixOS has joined #nixos
<rshiny>
Just to see if I understand, is there no function similar to buildPythonPackage for R packages, that can be used in nix-shell? I would like to make a deriveGithub function, similar to the various deriveCran etc here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/r-modules/default.nix , but if mkDerive is exported, I don't know how to find it
<eacameron>
I'm trying to use `--builders` with `nix-build` and I can't convince it to connect. `nix ping-store` comes back without an error (no output though) and `ssh remote` works fine. I get `unable to open SSH connection to 'ssh://nix-docker-build-slave': cannot connect to 'nix-docker-build-slave'; trying other available machines..`
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<srhb>
eacameron: are you going through the nix daemon? In that case, that's who (root, usually) needs to be able to connect passwordlessly and with the host key already verified
<sphalerite>
rshiny: yeah doesn't look like it's exposed to me
seafood has quit [Quit: seafood]
<eacameron>
srhb: Ah interesting. So if I can't do `sudo ssh remote` then I need to get that working
<srhb>
eacameron: Yes, and also you'll probably need to specify a username
<sphalerite>
eacameron: that isn't always enough, as sudo ssh remote will still probably try to use your ssh agent
<eacameron>
srhb: Ah, I have a bunch of stuff in my `~/.ssh/config`
<sphalerite>
eacameron: which the daemon doens't have access to
kreetx has joined #nixos
PCChris has quit [Remote host closed the connection]
<eacameron>
But that probably needs to be in root.
<rshiny>
sphalerite: thanks. What to do in these cases? I could fork and try to expose, but noob here, so even if it works that would probably not be a good solution.
<srhb>
eacameron: Cool :)
<srhb>
The error messaging is sort of atrocious with remote builds. :P
<sphalerite>
rshiny: no, sure, go ahead and try it! you won't be breaking anything for anyone else :) and it shouldn't be too hard, you can just add it on top of the rest of the stuff in _self
<eacameron>
Haha...I noticed. nix-build didn't even attempt to connect until I tacked on `x86_64-linux` to the argument
rolf has joined #nixos
rolf is now known as Guest71970
<sphalerite>
FWIW if you're not working with nixops or somethign else that has some assumptions, you may want to build with `--store ssh-ng://otherhost` then use `nix copy` to get the results back. It has many advantages
PCChris has quit [Remote host closed the connection]
<sphalerite>
A, only runtime deps end up on your machine (with remote builds, all the build deps do too); B, it doesn't require a trusted user on the remote host
kreetx has quit [Remote host closed the connection]
<sphalerite>
ok I think "many" might only be 2. But still! ;p
PCChris has joined #nixos
<sphalerite>
C, it will SSH as your user so there's a little bit less confusion
<sphalerite>
3 :)
erasmas has joined #nixos
<srhb>
There are some pitfalls wrt. copying derivations though, but yes, it's currently much easier in most cases.
schjetne has quit [Quit: No Ping reply in 180 seconds.]
<sphalerite>
also some bugs, it seems to dump the entire output of the build on stderr even with the new tools that have a fancy progress bar
drakonis has joined #nixos
<srhb>
Some might call that a feature! :P
schjetne has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
steell has quit [Ping timeout: 260 seconds]
<__monty__>
tilpner: Just got back. Thanks for looking into it! How do I download a raw version of that paste?
deepfire` has quit [Ping timeout: 245 seconds]
<tilpner>
Uhm, ctrl-A and then xclip -o :/
<eacameron>
srhb: sphalerite: Oh those do sound like good advantages. I've managed to connect via root now. But I'm not sure how to tell --builders to use a non standard ssh port
<tilpner>
Or I'll overwrite it with a plain version
<srhb>
eacameron: I think that's just :port ?
<eacameron>
srhb: sphalerite But I might try that.
<tilpner>
__monty__ - Pastes are plain now
<sphalerite>
eacameron: ^ or just stick it in .ssh/config :)
<srhb>
That may just be a ridiculous assumption on my part though. :P
<eacameron>
srhb: Ok I'll try. Apparently ssh doesn't accept.
<eacameron>
:port
<eacameron>
I.e. the ssh command
<srhb>
it's -p for ssh
<__monty__>
tilpner: Ah, thanks. I'm developing on a remote machine so no X server.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
tilpner has quit [Read error: Connection reset by peer]
tilpner has joined #nixos
Guest71970 has quit [Quit: WeeChat 2.1]
<eacameron>
sphalerite: Does that just unconditionally run the build on the remoet?
<sphalerite>
eacameron: yes, it never touches the local store
<sphalerite>
well, except for the nix copy bit which you may want to do afterwards.
PCChris has quit [Remote host closed the connection]
<tilpner>
__monty__ - Sorry, worst possible timing. Forgot I had a deploy running, which kicked into activate mode when you came back
PCChris has joined #nixos
<tilpner>
__monty__ - Put those two files into your wireguard-p2p checkout, then run nix-build
<eacameron>
sphalerite: The remote may need access to local env vars (for private fetchFromGitHub)
<sphalerite>
eacameron: oh yeah one more advantage actually (I knew there were more than 2!) — you don't even need to be a trusted user on the machine you're copying to as long as the builder has a signing key configured which is trusted locally
<sphalerite>
eacameron: evaluation still happens locally
deepfire` has joined #nixos
<eacameron>
sphalerite: Ah
<sphalerite>
it just doesn't use the local *store*
<sphalerite>
I think I just came up with my new favourite euphemism. "Interesting perfomance characteristics" (= slow). It even abbreviates to IPC.
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
avn has quit [Ping timeout: 260 seconds]
Slabity has quit [Remote host closed the connection]
avn has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
ramses_ has joined #nixos
PCChris has quit [Remote host closed the connection]
<{^_^}>
→ 87125d6d by @symphorien: nix-du: init at 0.1.1
<{^_^}>
→ c8a4562f by @Mic92: Merge pull request #40896 from symphorien/nix-du
PCChris has joined #nixos
<ramses_>
Hi guys, I'm fairly new to NixOS, but I'm wondering what's the usual method for kernel upgrades, I have "kernelPackages = pkgs.linuxPackages_latest;" in my config but this does not seem to give me a 4.16 kernel, is this expected?
<tilpner>
Yes, although that will give you more than their rust overlay
<ramses_>
tilpner: yes indeed, but with latest I would've expected the 4.16 kernel which has been out for a while already. So I was wondering whether kernel upgrades are not happening in between releases or whether it is just somehow taking more time than expected
k0001 has quit [Quit: quit]
<tilpner>
ramses_ - Updates to packages usually happen on master, and then someone backports them to release channels (AFAICT)
<tilpner>
(I don't know the policy for kernel backports)
<infinisil>
tilpner: Yeah, I'll work on the nixbot once I have more free time :)
periklis has quit [Ping timeout: 260 seconds]
PCChris has quit [Remote host closed the connection]
spear2 has joined #nixos
PCChris has joined #nixos
<tilpner>
:)
nschoe has quit [Ping timeout: 245 seconds]
PCChris has quit [Remote host closed the connection]
seafood has joined #nixos
<{^_^}>
[nix] @edolstra pushed to master « Make Env self-describing »: https://git.io/vhfgP
PCChris has joined #nixos
winem_ has joined #nixos
<{^_^}>
[nixpkgs] @jD91mZM2 opened pull request #40924 → cargo-tree: init at 0.18.0 → https://git.io/vhfgy
seafood has quit [Client Quit]
roconnor has quit [Quit: Konversation terminated!]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
burton_ has joined #nixos
<crystalgamma[m]>
Hi … can anyone tell me what expandResponseParams() from pkgs/build-support/wrapper-common/utils.bash does? The error condition in that function fires (spuriously?) while building aws-sdk-cpp …
dbmikus has quit [Ping timeout: 268 seconds]
dbmikus has joined #nixos
sanscoeur has quit [Remote host closed the connection]
nschoe has joined #nixos
emmanuelrosa has joined #nixos
alexteve_ has joined #nixos
alexteves has quit [Read error: Connection reset by peer]
<Myrl-saki>
Not mine, but still relevant until today, 2 years later.
vidbina has quit [Ping timeout: 260 seconds]
iyzsong has quit [Ping timeout: 260 seconds]
<elvishjerricco>
Myrl-saki: There ought to be an issue open on nixpkgs for any arguments that don't work on the wrapped ccs. They are intended to satisfy the CLI you'd expect, so I consider that a bug
<Myrl-saki>
I think scan-build works for non CMake projects.
<elvishjerricco>
(FWIW, this is why I hate cc-wrapper :P But I dunno if there could possibly be a better solution without something like a cc.conf feature being added to C compilers)
<Myrl-saki>
elvishjerricco: I'd actually want a cc.conf.
<elvishjerricco>
Agreed, it'd be a much better answer
vidbina has joined #nixos
<Myrl-saki>
elvishjerricco: In one of our projects, we have a GCC specs file, but clang doesn't have first class support for that.
<Myrl-saki>
Rather, doesn't have *any* support for that.
<elvishjerricco>
I did not know GCC had such a thing. I wonder how hard it would be to make clang support that.
PCChris has quit [Remote host closed the connection]
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
elvishjerricco: If anything, I was suprised Clang doesn't support it.
PCChris has joined #nixos
<elvishjerricco>
Myrl-saki: Agreed. As a hacky solution, I wonder how hard it would be to write a clang wrapper that interprets spec files.
Ariakenom has joined #nixos
<Myrl-saki>
GCC kinda has a reputation of old and clunky, not so much on performance but on usability, but they really mean it when they do the principle of least surprise.
jperras has joined #nixos
emmanuelrosa has joined #nixos
ihar has quit [Ping timeout: 260 seconds]
PCChris has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/vhfpP
<{^_^}>
→ afc439d5 by @Ericson2314: binutils: Always apply Aarch64 patch
<{^_^}>
→ 75638e2d by @Ericson2314: Merge pull request #40930 from obsidiansystems/binutils-always-patch
jperras has joined #nixos
freeman42x]NixOS has joined #nixos
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
Sonarpulse has joined #nixos
waleee has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 pushed 4 commits to staging: https://git.io/vhfjC
<{^_^}>
→ 9247ce46 by @Ericson2314: Merge commit '39df5831cae0dce4628e80cf7f6f5520a9dae18e' into HEAD
<{^_^}>
→ ec421988 by @Ericson2314: Merge commit '62fd669ab709fbe1b1a7a7a9220c6a42a1c57acd' into HEAD
<{^_^}>
→ 2e903444 by @Ericson2314: Merge branch 'binutils-always-patch' into ios-mini-staging
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
vidbina has joined #nixos
olto has joined #nixos
PCChris has quit [Remote host closed the connection]
pxc has joined #nixos
PCChris has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko pushed to yegortimoshenko-patch-3 « nixos/nginx: make sslCertificate and sslCertificateKey nullable »: https://git.io/vhJeS
PCChris has quit [Remote host closed the connection]
<Myrl-saki>
jD91mZM2: I realized that my laptop doesn't have either.
<Myrl-saki>
I'll just go ahead and delete it then hope for the best.
<jD91mZM2>
What could possibly go wrong?
<Myrl-saki>
ikr
<Myrl-saki>
Not like I'll have a dangling path or anything!
<Myrl-saki>
And I was correct, it did work. :)
olto has joined #nixos
tmaekawa has joined #nixos
<tnks>
LnL: do you have an example of these things that use NIX_PROFILES?
<eacameron>
srhb: sphalerite: Apparently :3022 doesn't work for --builders ssh://... I am able to ssh in with sudo ssh etc. -p 3022 but the nix-build can't connect
leat has quit [Ping timeout: 245 seconds]
burton_ has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @peti merged pull request #40929 → ghc, haskell infra: #40642 direct to master → https://git.io/vhfAJ
<samueldr>
hm, I'll need time to verify, but I think my issues needing a restart could have been caused by a previous hack for another bluetooth adapter which didn't handle suspend gracefully :/ (deactivated the hack and now works seemingly great)
<Myrl-saki>
Huh.
sary has joined #nixos
<Myrl-saki>
(import /etc/nixos/configuration.nix) and `{...}: { imports = [ /etc/nixos/configuration.nix ]; }` is not equivalent. Anyone know why?
<clever>
Myrl-saki: how exactly are you measuring a difference?
<Myrl-saki>
clever: Output hash, and the fact that nixos-rebuild switch -p on that output will break my /nix/var/nix/profiles.
<clever>
Myrl-saki: try nixos-rebuild dry-run on each, then use nix-diff
<Myrl-saki>
clever: What does dry-run do that build doesn't?
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhJ2l
<{^_^}>
→ e9868c39 by @teozkr: nixopsUnstable: 1.6pre2276_9203440 -> 1.6.1pre2622_f10999a
<{^_^}>
→ 74083c8c by @yegortimoshenko: Merge pull request #40570 from teozkr/fix/nixops-1.6.1pre2622_f10999a
<symphorien>
ah ok
<symphorien>
maybe you can make a wrapper which removes the pkgs argument if necessary
<johnw>
but how do I tell if it's necesasry
<johnw>
that's the crux of the probelm
<johnw>
I can't query the function
<johnw>
if it takes the parameter, I *need* to pass it
<johnw>
if it doesn't take the parameter, I *can't* pass it
<symphorien>
ah you mean "not always the same function" ?
<johnw>
yeah, sometimes it's a function generated by cabal2nix
<symphorien>
there is a builtin tryEval iirc
<johnw>
sometimes it's a function I've written that is parameterized over which nixpkgs it uses
<johnw>
so, I'm using tryEval
<johnw>
it apparently does not catch this particular error
<johnw>
my stack trace is from the tryEval call!
aarvar has quit [Quit: Leaving.]
<symphorien>
so either your function is that of cabal2nix, or it is yours, with the same signature plus pkgs, right ?
sigmundv__ has quit [Ping timeout: 256 seconds]
<johnw>
yes
<johnw>
not quite, but roughly
pxc has quit [Quit: WeeChat 2.1]
nur0n0 has joined #nixos
<johnw>
i'll try to avoid needing to konw the distunciton
<symphorien>
and are you sure you need these extra params ?
jperras has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
<symphorien>
a ugly hack would be to add an attribute pkgs to one of the original arguments and have your function use it instead of needing an extra argument
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-4: https://git.io/vhJK1
infinisil has joined #nixos
chessai has quit [Remote host closed the connection]
<judson>
Does anyone use Zoom on NixOS?
<infinisil>
,ask judson
<{^_^}>
judson: Don't ask if anyone uses software xyz, just ask your specific question. This helps solve your problem quicker, and allows people who haven't used xyz but may still be able to help you to do so.
<judson>
Zoom seems to utterly fail for me. Chrome wants to use xdg-open which opens an empty chrome window. I installed zoom-us with nix-env. Still no dice with xdg-open, and running `zoom-us` directly crashes with "could not initialize GLX"
<judson>
It looks totally broken, so if no one uses it I wonder if it's a bad expression.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bobvanderlinden has joined #nixos
<judson>
On the other hand, if no one uses it, it may not be worth trying to formulate the exact question for this particular program.
<judson>
Sorry, infinisil, if I'm tetchy. Not a fan of bot auto-answers.
<infinisil>
It's the same in all channels :)
sbdchd has joined #nixos
<infinisil>
Well not the bot, but that you shouldn't ask "does anybody use"
seafood has joined #nixos
aarvar has joined #nixos
<infinisil>
But #emacs has a better response
<infinisil>
,ask = Just ask your question. It's the best way to know if anybody can help.
<{^_^}>
ask defined
<bobvanderlinden>
I see that `builtins.fetchurl` isn't being used that often. However, it seems it does have support for `netrc-file` from `nix.conf`. Basically, when should `builtins.fetchurl` be used over `pkgs.lib.fetchurl` and the other way around?
jasongrossman has joined #nixos
<infinisil>
bobvanderlinden: builtins.fetchurl does the fetching at evaluation time, before any derivation is built, and as such it provides the only way to fetch something without knowing the hash of it
<elvishjerricco>
bobvanderlinden: I may be misremembering, but I believe builtins.fetchurl didn't used to take a sha256 argument, which makes it somewhat impure. For backwards compatibility nixpkgs just doesn't use it.
mjrosenb has joined #nixos
<emmanuelrosa>
judson, I've used zoom on a Mac Mini running NixOS. It worked, but it made the case of the Mac Mini feel like the inside of an oven. So I don't use it anymore. Have you checked your GLX setup with glxinfo?
<elvishjerricco>
infinisil: It can take a sha256 argument now, can't it?
<mjrosenb>
so, I heard that I can install ghcjs through nix. Does anyone know how exactly that can be done?
<infinisil>
bobvanderlinden: So builtins.fetchurl without a hash is also insecure, because the content might change under your nose.
<infinisil>
But with a hash, builtins.fetchurl should be preferred when you need to eval nix inside the fetched url, which avoids the slower import-from-derivation you'd get when you'd use pkgs.fetchurl for it
<bobvanderlinden>
infinisil: alright, so basically we can all start using builtins.fetchurl instead of lib.fetchurl as long as we're using a sha
<elvishjerricco>
infinisil: the sha256 arg is new in 2.0, right? So we can't do that in nixpkgs
<infinisil>
bobvanderlinden: Hmm.. not really, I'd still prefer pkgs.fetchurl if you can
<bobvanderlinden>
and *essentially* builtins.fetchurl without sha should be deprecated
<infinisil>
It has more flexibility I think
<judson>
,xy
<bobvanderlinden>
infinisil: why?
<clever>
pkgs.fetchurl supports a list of mirrors, and downloading the first url from a list that works
<judson>
emmanuelrosa, seems to work fine? I never retain much of the X stuff between problems though.
<bobvanderlinden>
clever: ah that's a good point
<bobvanderlinden>
clever: I'm thinking that lib.fetchurl is a bit of a hack. It runs curl inside of a build environment impurely and then makes it 'safe' by doing its own checks
<mjrosenb>
elvishjerricco: thanks! -- now the obvious question
<mjrosenb>
nix-env -qa ghcjs
<infinisil>
judson: Feel free to add that command :)
<mjrosenb>
error: selector 'ghcjs' matches no derivations
<infinisil>
With -A you can just install it with `nix-env -iA nixos.haskell.compiler.ghcjs`
<bobvanderlinden>
clever: basically nix.conf tells me to use `netrc-file` option. but then when I use that I notice that it only applies to `builtins.fetchurl` and basically everyone/everything is using `lib.fetchurl`, so the option is actually useless
<infinisil>
mjrosenb: ^
hiratara has quit [Ping timeout: 260 seconds]
<elvishjerricco>
infinisil: nixos? Wouldn't it be nixpkgs?
<judson>
Maybe it's more basic than that: > zoom-us => sh: /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libc.so.6: version `GLIBC_2.27' not found (required by /nix/store/fycm4swi722vz4l5ckpqrd4nfzj6av79-v4l-utils-1.12.3/lib/libv4l2.so.0)
<clever>
> lib.fetchurl
<{^_^}>
attribute 'fetchurl' missing, at (string):41:1
<clever>
bobvanderlinden: that function doesnt exist
<bobvanderlinden>
clever: eeh, i'm sorry, I meant the fetchurl from nixpkgs
<desttinghim[m]>
I'm trying to change the channel that nixos is using for installing derivations
<infinisil>
elvishjerricco: Ah right, mjrosenb replace nixos with nixpkgs in your case
<bobvanderlinden>
thought it was inside lib, but it's probably in `pkgs`
hiratara has joined #nixos
<judson>
It looks like v4l wants Glibc 2.27, but nixpkgs has 2.26 :/
<clever>
bobvanderlinden: NIX_CURL_FLAGS should still work with pkgs.fetchurl
<clever>
bobvanderlinden: but it has to be set in the context of nix-daemon
<elvishjerricco>
infinisil: Pretty sure that's what I told them to do :P
<desttinghim[m]>
But for some reason `nix-channel` doesn't seem to be working
<jasongrossman>
desttinghim[m]: And what's going wrong? (My guess is that you're having trouble with the NAMING of channels. That's a problem I had. The manual contains good instructions though.)
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhJ1O
<{^_^}>
→ b7fe62d5 by @dtzWill: bloaty: 2017-10-05 -> 2018-05-22
<infinisil>
elvishjerricco: (Just to mention their nick with it, there's a lot of msgs here rn :))
<{^_^}>
→ 8343b0a7 by @yegortimoshenko: Merge pull request #40940 from dtzWill/update/bloaty-2018-05-22
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bobvanderlinden>
clever: yes, but the netrc file also needs to be inside the derivation. That means that I need to expose my netrc file inside the sandbox. that means that all builders can basically read all my credentials and send them to whereever
<infinisil>
> :u
<clever>
bobvanderlinden: what are you trying to do?
<{^_^}>
Updated nixpkgs
<infinisil>
> pkgs.glibc.name # Judson
<{^_^}>
"glibc-2.27"
cnidario has joined #nixos
<bobvanderlinden>
clever: basically I want my company (or collegues) to use Nix
<clever>
bobvanderlinden: is the source on some git server?
<desttinghim[m]>
jasongrossman: when I install using `nix-env -iA nixos.haxe`, I get an older version than when I do `nix-env -f ~/Documents/nixos/nixpkgs/default.nix -iA haxe`
<infinisil>
judson: Master has the one it needs apparently
<bobvanderlinden>
clever: but they need private packages to be available (build from Github and other binary sources)
<clever>
desttinghim[m]: nix-env -iA nixos.haxe uses the nixos entry in ~/.nix-defexpr/
<clever>
bobvanderlinden: i would use builtins.fetchGit for that, with an ssh based url
<bobvanderlinden>
clever: yes, Github, Gemfury, jfrog, what have you
<clever>
bobvanderlinden: then it will just run `git clone` outside of the sandbox
<infinisil>
When can we finally get rid of this ~/.nix-defexpr :/, it's weird and confusing
<clever>
,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.
<bobvanderlinden>
clever: what about fetchurl (for https sources)
<desttinghim[m]>
jasongrossman: what I'm really looking to do is get a `default.nix` configured for a development environment
<clever>
bobvanderlinden: fetchGit supports using your ssh-agent, and the secrets wont be sent to the remote machine
<jasongrossman>
desttinghim[m]: default.nix rather than /etc/nixos/configuration.nix? The latter is the standard place to put system-wide stuff.
<clever>
bobvanderlinden: for example: builtins.fetchGit { url = "git@github.com:cleverca22/nixos-configs"; }
<bobvanderlinden>
clever: but i still need https sources to be available as well
<jasongrossman>
I'm not sure why you're using ~/Documents/nixos/nixpkgs/default.ni - is there a particular reason, or is that just the first thing you tried? I'm sure it's OK, I just don't think it's normal.
<clever>
bobvanderlinden: what do you need secrets for with https?
<bobvanderlinden>
clever: or at least I don't think it's a viable option to copy everything to git repos
<jasongrossman>
OK, so most people put stuff in /etc/nixos/configuration.nix, although a drawback of that is that everything in there is systemwide (available to all users).
<desttinghim[m]>
That's the git repository
iqubic has joined #nixos
<jasongrossman>
I see. Cool. Suggest you don't add stuff to the clone of the git repository.
<bobvanderlinden>
clever: one I ran into: a Maven repository
jtojnar has quit [Read error: Connection reset by peer]
<bobvanderlinden>
because I love Nix for my own use, but I keep running into problems when I try to implement Nix at work
<jasongrossman>
And you have a choice of adding packages declaratively (by listing them in your config file) or interactively (using nix-env). Declaratively is probably better IMO, but it's up to you. If that all makes sense, read up about channels in the manual and then let us know if you're still having problems.
genesis has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @worldofpeace to master « pythonPackages.asyncssh: init at 1.13.0 (#40527) »: https://git.io/vhJM1
<samueldr>
bobvanderlinden: thanks for the wiki contributions :) if you ever have a question specific to the wiki (e.g. formatting) don't hesitate to ask in #nixos-wiki
<emmanuelrosa>
hudson, if you need zoom to run on NixOS Impala, PM me. glibc 2.26 is available, so this is definately fixable.
<{^_^}>
→ 20c2fd73 by @dezgeg: apr-util: Fixup apu-1-config
<infinisil>
I should make the bot post this url every time somebody misspells definitely :P
knupfer has joined #nixos
<bobvanderlinden>
samueldr: will do, if you have suggestions, i'm all ears ;)
<desttinghim[m]>
jasongrossman: figured it out. I have to use a different prefix e.g. nixpkgs instead of nixos
jtojnar has quit [Quit: jtojnar]
jtojnar_ has joined #nixos
<desttinghim[m]>
thanks for the help
<bobvanderlinden>
clever: I see what you mean now with evaluation time. Nix isn't me giving any output for quite a while now, because it needs to download 1277 packages in one go :-/
<samueldr>
ah nothing, welcoming you since I'm sure some contributors don't know about the IRC channel
jtojnar_ is now known as jtojnar
athan has joined #nixos
<clever>
bobvanderlinden: ah yeah, builtins.fetchurl cant be done in parallel
<clever>
bobvanderlinden: but pkgs.fetchurl can be
<bobvanderlinden>
clever: noooo! haha ok hmm, I guess exposing all credentials in sandbox is more viable then
rain1 has quit [Quit: Leaving]
<clever>
bobvanderlinden: there is a 3rd fetchurl, let me find it
<bobvanderlinden>
clever: still though not really a best practice to dot down in the wiki 8-|
sbdchd has quit [Remote host closed the connection]
<samueldr>
a couple days ago, I asked about cross building, had some good answers, I can build e.g. hello or some other stuff for armv6 or armv7 easily (though verbosely)
<clever>
bobvanderlinden: try switching to import <nix/fetchurl.nix>, i think that one obeys netrc securely, and can be done in parallel
<samueldr>
1) anyone has notes about building a complete os with cross? the sd-images can't build due to asserts, and trying for raspberry pi it looks like the kernel doesn't build (?)
<bobvanderlinden>
clever: wow sneaky
<samueldr>
2) after building an armv6l hello, what would be the most sane way to use it on a target device? Is it possible to initiate the build from the armv6 device?
<bobvanderlinden>
clever: ok lemme try
<bobvanderlinden>
seems to work in nix repl
<samueldr>
(I know about, and I'm not talking about the qemu trick)
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #40942 → pythonPackages.udiskie: replace alias with abort → https://git.io/vhJyK
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhJy1
<{^_^}>
→ 437ee38c by @yegortimoshenko: pythonPackages.udiskie: replace alias with abort
<{^_^}>
→ 81a1dff0 by @yegortimoshenko: Merge pull request #40942 from NixOS/yegortimoshenko-patch-4
hiratara has joined #nixos
sigmundv_ has joined #nixos
<dtz>
weeeeeeeee
<dtz>
<3
<{^_^}>
[nixpkgs] @dotlambda pushed to revert-40942-yegortimoshenko-patch-4 « Revert "pythonPackages.udiskie: replace alias with abort" »: https://git.io/vhJSJ
<{^_^}>
[nixpkgs] @dotlambda pushed to master « Revert "pythonPackages.udiskie: replace alias with abort" »: https://git.io/vhJSY
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhJSl
<{^_^}>
→ d8b96d57 by @dtzWill: nghttp2: 1.31.0 -> 1.32.0
<{^_^}>
→ 3203c12b by @yegortimoshenko: Merge pull request #40943 from dtzWill/update/nghttp2-1.32
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-4: https://git.io/vhJS2
sigmundv__ has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed 0 commits to revert-40942-yegortimoshenko-patch-4: https://git.io/vhJSX
fragamus has joined #nixos
jperras has joined #nixos
__monty__ has quit [Quit: leaving]
xy2_ has quit [Ping timeout: 245 seconds]
<bobvanderlinden>
clever: ok, that seems to have worked! :-| I feel like this is the most undocumented way to retrieve things!
<clever>
time to document it!
<bobvanderlinden>
should people really use `import <nix/fetchurl.nix> { something }`, that feels like it should be wrapped in a function somewhere somehow
<bobvanderlinden>
oh it is also being used in boot.nix
<bobvanderlinden>
i'm on osx currently, so it could be that netrc-file will work on nixos linux, but not on osx
<bobvanderlinden>
oh wait, it's only for bootstrapping
<bobvanderlinden>
alright, nm
<{^_^}>
[nixpkgs] @dotlambda opened pull request #40944 → pythonPackages.udiskie: replace alias by throw → https://git.io/vhJ99
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @yegortimoshenko merged pull request #40944 → pythonPackages.udiskie: replace alias by throw → https://git.io/vhJ99
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhJ9b
<{^_^}>
→ 9e5c5d95 by @dotlambda: pythonPackages.udiskie: replace alias by throw
<{^_^}>
→ 9530d717 by @yegortimoshenko: Merge pull request #40944 from dotlambda/python-udiskie-throw
bennofs has joined #nixos
knupfer has quit [Ping timeout: 245 seconds]
bennofs has quit [Client Quit]
sanscoeur has quit [Ping timeout: 245 seconds]
PCChris has quit [Remote host closed the connection]
PCChris has joined #nixos
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #40945 → sqlite{,-analyzer}: use the same src → https://git.io/vhJQf
emmanuelrosa has left #nixos [#nixos]
<bobvanderlinden>
clever: alright, updated the wiki with the recommendation to use fetchurlBoot for private resources: https://nixos.wiki/wiki/Enterprise. I still need to experiment with using fetchurlBoot for everything though. It would be nice to make that more seamless.
<bobvanderlinden>
that's for another time though. it's way past my self-defined curfew. Thanks again!
<adelbertc>
has anyone seen this error:
<adelbertc>
```
<adelbertc>
/nix/store/73jpvs9j0rk37xs3r61y3aldr9sh741h-stdenv/setup: eval: line 1231: syntax error near unexpected token `('
<adelbertc>
```
<adelbertc>
then i look at line 1231 of that file it is just a blank line