camsbury has quit [Remote host closed the connection]
camsbury has joined #nixos
tzemanovic has quit []
<rawtaz>
seems like everyone went to bed :D
<rawtaz>
or perhaps home from work
camsbury has quit [Ping timeout: 272 seconds]
Ericson2314 has quit [Ping timeout: 264 seconds]
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
ris has quit [Ping timeout: 260 seconds]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
wpcarro has quit [Ping timeout: 252 seconds]
jperras has joined #nixos
Lisanna has joined #nixos
tzemanovic has joined #nixos
<Lisanna>
Hey, I'm seeing incredibly poor memory performance during evaluation when I have a import statement inside of a function that gets called a very large number of times
tzemanovic has quit [Remote host closed the connection]
<Lisanna>
even though there are only like 5 unique argument combinations that actually get passed in to the function
<Lisanna>
EternalZenith I've heard of stuff like that being done, but never tried it myself since it seems hacky
<EternalZenith>
It certainly feels that way
<Lisanna>
FWIW I always install from some live media, like a USB stick
<EternalZenith>
I might have to do that
<EternalZenith>
I have run into quite a few weird things so far
<EternalZenith>
Time to try and do this booted into nixos, then
EternalZenith has quit [Remote host closed the connection]
fragamus has joined #nixos
<c15ade4>
man, a nixos-vm that works like nixos-container would be so neat
<Lisanna>
yep, memoization fixed it
<clever>
Lisanna: nice
<Lisanna>
clever++
<{^_^}>
clever's karma got increased to 26
<Lisanna>
^^
zanxis has joined #nixos
<zanxis>
Hey
<emily>
Lisanna: you want to create the attrset outside of the function, presumably?
<Lisanna>
emily yeah, I ended up having to go with more or less exactly what nixpkgs does
Cale has quit [Remote host closed the connection]
<emily>
*nods*
<Lisanna>
i.e. don't think there's a way to trick the evaluator into memoizing stuff with some generic approach that you can just write as a pure function
Ericson2314 has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
<emily>
Lisanna: you can build out type-dispatching infrastructure for it like some haskell libraries do
silver has quit [Read error: Connection reset by peer]
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Supersonic has quit [Ping timeout: 250 seconds]
JonReed has quit [Ping timeout: 252 seconds]
Growpotkin has joined #nixos
<Growpotkin>
radical idea: Make Nix a general purpose language AT ALL COSTS
<Growpotkin>
BY ANY MEANS NECESSARY
Supersonic has joined #nixos
jperras has joined #nixos
oldandwise has joined #nixos
<oldandwise>
i enabled services.chrony.enable = true; in /etc/nixos/configuration.nix, but 'systemd-timesyncd' is still running during boot. I have now 2 ntp client.. how to fix?
<Growpotkin>
the department is game to assign new languages all the time. They are into "holistic understanding" less than proficiency in specific languages
<clever>
growpotkin: builtins.importNative("${foo}/lib/libfoo.so") will return an artbitary nix Value*
<clever>
growpotkin: that value can be a set containing more primops (functions that run c++ code)
<clever>
go nuts!
<Growpotkin>
YTMND
<Growpotkin>
gotta run. But thanks again Clever. You're always swooping in with good advice.
<clever>
in theory, you can just eval a file with nix-instantiate, and it would fire up opengl and do anything you want
<gchristensen>
advice yes, good? _usually_ yes ;)
<clever>
you just need to make a primop that accepts a nix function for the state machine and event handling
sigmundv has quit [Ping timeout: 244 seconds]
<clever>
and then run the nix function for any event, and to compute the state changes
<clever>
and with the right code, it can support building derivations to produce values passed to opengl
<clever>
so you could have a derivation to compile the texture from a set of directions
<clever>
and yet i didnt write a single line of code, lol
<Growpotkin>
Would that leverage hashing?
mroth19 has joined #nixos
carlosdagos has joined #nixos
<mroth19>
Allah іs ԁoіᥒɡ
mroth19 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<clever>
yeah, it wold be all of the hashing nix already does
<clever>
nix will hash the build instructions to compute the $out
<Growpotkin>
my god
<Growpotkin>
you're a monster
<Growpotkin>
this is such a good idea
<emily>
nix is not hashing, allah is hashing.
<gchristensen>
emily: :)
<clever>
you basically just have a pkgs.runCommand derivation, that does whatever you want, and produces an image with the texture as $out
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<clever>
and if the args to it havent changed, nix just pulls the old image out of /nix/store/
<clever>
growpotkin: oh god, you could even have a binary cache, lol
<clever>
so it would download pre-rendered game assets on startup
<clever>
but you are free to modify the build instructions for any asset, and it will just rebuild it locally
<gchristensen>
the reason this is in particular interesting to .kkrieger is due to how the game was developed and distributed, which the wiki page describes
<Growpotkin>
yeah im reading the wiki on it now
<Growpotkin>
these nerds killed it
<Growpotkin>
very inspired
<clever>
the basic idea of how they made it so damn small, is to store svg rather then png
<clever>
and just render at startup
<clever>
but extending that to everything, 3d models, textures, map layout, music
<oldandwise>
where can i find `vde_switch` ?
<copumpkin>
is there a nix --store option that will automatically put the result of a build into an S3 binary store as a nar?
<clever>
,locate vde_switch
<{^_^}>
Found in packages: vde2
<clever>
copumpkin: you can probably use `--store s3://` but i would prefer to use `nix copy --to s3://`
<clever>
copumpkin: yeah, not seeing any real way to make it build the thing
<copumpkin>
oh well, not a big deal
<copumpkin>
thanks for taking a look
Dedalo has joined #nixos
Dedalo has quit [Client Quit]
oldandwise has quit [Quit: leaving]
hakujin has quit [Ping timeout: 246 seconds]
lektrik has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46817 → androidndk: Add Darwin support → https://git.io/fADNL
nckx has joined #nixos
thc202 has quit [Ping timeout: 272 seconds]
hakujin has joined #nixos
<adisbladis>
What's a good way to pull in multple sources in to a single package?
<disasm>
Ankhers: if I remember, you were doing some work with elixir a while back. Is trying to get phoenix to work in beam-packages.nix a fools errand that I shouldn't touch? Main goal is to try to get bors-ng derivation for nixos instead of having to use docker or something hacky, like a nix-shell building it on the production host.
daemon2 has joined #nixos
<daemon2>
Ꭺⅼⅼah is ԁoing
daemon2 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #46816 → androidndk: Add Darwin support for 18.09 → https://git.io/fADbd
<{^_^}>
[nixpkgs] @Ericson2314 pushed 2 commits to release-18.09: https://git.io/fADNo
hakujin has joined #nixos
rauno has joined #nixos
EarlDeLaWarr has quit [Ping timeout: 240 seconds]
hakujin has quit [Ping timeout: 246 seconds]
hakujin has joined #nixos
hakujin has quit [Ping timeout: 272 seconds]
EarlDeLaWarr has joined #nixos
hakujin has joined #nixos
hakujin has quit [Ping timeout: 244 seconds]
hakujin has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
Ericson2314 has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Remote host closed the connection]
Growpotkin has left #nixos [#nixos]
rauno has quit [Ping timeout: 240 seconds]
counting1ort has joined #nixos
<adisbladis>
clever: Right. I can migrate to use fetchzip instead :)
oldandwise has joined #nixos
countingsort has quit [Ping timeout: 272 seconds]
<oldandwise>
need some proper howto how to give qemu nixos guest an internet access
mayhewluke has quit [Ping timeout: 252 seconds]
<clever>
oldandwise: by default, qemu sets up userland nat and it just works
<c15ade4>
oldandwise: yeah - i did a hack and used user mode network + a wireguard vpn to give my vpn an ip address
mayhewluke has joined #nixos
<c15ade4>
my vm an ip address*
<c15ade4>
since i didn't know how to use tun/tap and was lazy
<adisbladis>
Oh right, the src hashing is over the output. So I'll have to wrap fetchurl in a derivation to get unpacked sources using the tarball hash
<clever>
adisbladis: fetchurl uses the hash of the file it downloads, fetchzip uses the hash of the NAR that results from unpacking the thing it downloads
<adisbladis>
clever: Yeah. I know =)
<clever>
the only other difference is that fetchzip can support zips
brejoc has joined #nixos
spear2 has quit [Quit: Leaving]
tzemanovic has joined #nixos
sbdchd has quit [Remote host closed the connection]
brejoc has quit [Ping timeout: 240 seconds]
oldandwise has quit [Remote host closed the connection]
ekleog has quit [Quit: WeeChat 2.0]
<jackdk>
,locate tree
<{^_^}>
Found in packages: xsd, jmol, root, tree, atom, saxon, fcppt, and 38 more
<{^_^}>
#22569 (by edanaher, 1 year ago, closed): Python 3.5 bytecode caches not working
endformationage has quit [Quit: WeeChat 1.9.1]
Ariakenom has joined #nixos
hamishmack has quit [Ping timeout: 244 seconds]
Lears has joined #nixos
[Leary] has quit [Ping timeout: 252 seconds]
abueide has joined #nixos
mounty has joined #nixos
kreetx has joined #nixos
<rsa>
anyone got "nvidia prime" working?
Lisanna_ has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<andi->
if I remember correctly thats mixing intel + nouveau? That used to work on my notebook. Haven't checked in a while but just worked out of the box.
[Leary] has joined #nixos
<rsa>
i want to use the nvidia driver by default for the xserver
kreetx has quit [Ping timeout: 240 seconds]
Lears has quit [Ping timeout: 240 seconds]
<andi->
never tried that, there used to be bumblebee for that but it is mostly dead IIRC
<rsa>
yeah, i've been using bumblebee
<andi->
PRIME only works with the mesa/open source drivers AFAIK
<adisbladis>
On my laptop nouveau has about the same performance as intel
<adisbladis>
So I just use the intel card and ignore the nvidia one
<ashkitten>
is there a way to make nix-shell initialize faster? i use a script with a nix-shell shebang for my print screen button, but it takes nearly an entire second to start the shell...
<adisbladis>
ashkitten: Don't use nix-shell for that kind of thing. Why not make a package for your cript?
<ashkitten>
i don't really know how to, tbh
Lisanna_ has quit [Ping timeout: 246 seconds]
hamishmack has joined #nixos
<ashkitten>
like, i know how to write it in the nixpkgs repo, but not as part of the user config or whatever
<adisbladis>
ashkitten: I could help you out. You mind pasting your script?
<ashkitten>
oh, i just walked away from the computer.. wasn't expecting to be doing anything more with it tonight
<ashkitten>
i figured i'd get some info and impl it when im awake
Mateon2 has joined #nixos
<adisbladis>
ashkitten: Pop by any time =) If I'm not here to help you I'm sure someone else will be.
orivej has joined #nixos
matthewbauer has joined #nixos
<ashkitten>
yeah, sure thing
revtintin has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon2 is now known as Mateon1
tertl3 has quit [Quit: Connection closed for inactivity]
trcc has joined #nixos
Ariakenom has joined #nixos
rauno has joined #nixos
kreetx has joined #nixos
lsyoyom has quit [Ping timeout: 244 seconds]
kreetx has quit [Ping timeout: 252 seconds]
Anton-Latukha has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
hyper_ch2 has joined #nixos
xok has joined #nixos
Thra11 has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
xok has quit [Ping timeout: 245 seconds]
Thra11 has quit [Ping timeout: 246 seconds]
jackdk has quit [Ping timeout: 246 seconds]
matthewbauer has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @Mic92 merged pull request #46638 → vimPlugins: warn if alias is used inside overrides → https://git.io/fAPJI
<buckley310>
I am currently getting this error when trying to run a 3rd party binary on my machine and I'm not sure what to do :(. Does this look familiar to anyone?: symbol lookup error: /nix/store/hhncd3f33scx5azdv503s34095wm7llj-glib-2.54.3/lib/libgobject-2.0.so.0: undefined symbol: g_variant_dict_ref
reinzelmann has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<srhb>
buckley310: Try moving the nix lib rpath to the front of the path instead of the end
alex`` has quit [Quit: WeeChat 2.0]
<buckley310>
alright lets see...
<buckley310>
it opens! :D
<srhb>
hoorah
<buckley310>
yay no more windows VM lol
baimafeima2 has quit [Client Quit]
<buckley310>
weird so i guess this client comes with its own copy of glib?
baimafeima3 has joined #nixos
baimafeima3 has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 272 seconds]
baimafeima has joined #nixos
<srhb>
buckley310: It certainly has /view/crtbora/libglib-2.0.so.0
melleb has quit [Ping timeout: 245 seconds]
* emily
blinks at /view
<emily>
what's that from?
<buckley310>
vmware-horizon used to be called vmware-view
<srhb>
But that symbol isn't defined anywhere there and I don't understand how the lookup occurred in libgobject anyway. Honestly, it's beyond my ability. :-)
<srhb>
Fortunately I have +7 to luck when it comes to patchelf.
<buckley310>
well, for posterity, this is the minimum required to run vmware-horizon on nixos http://ix.io/1mUT
<buckley310>
I'm going to bed, thanks very much :)
<srhb>
buckley310: If you're not going to contribute it upstream, could you gist it tomorrow with a nice title? :-)
<srhb>
Would be easier to find in the future then
<srhb>
buckley310: And sleep well
<buckley310>
I will do something with it. upstream sounds good, but its pretty hacky as-is and im very new to nix :D
mayhewluke has joined #nixos
<srhb>
Sure, but a starting point beats nothing :-)
<buckley310>
will do something with it tomorrow.
<srhb>
Great! Thanks!
<buckley310>
also have not tried going past the main menu, not pushing my luck tonight
lopsided98_ has joined #nixos
lopsided98 has quit [Ping timeout: 276 seconds]
goibhniu has joined #nixos
<Aleksejs>
srhb: I've managed to configure audio/mic in skype. I think the problem was not with skype itself but with blueman
<Aleksejs>
I think 8.28.0.41 is good to go
<srhb>
Aleksejs: Please comment on the PR. :) Someone else had the same problem that I did with no UI showing up though..
baimafeima has quit [Read error: Connection reset by peer]
lopsided98_ has quit [Ping timeout: 240 seconds]
<srhb>
Haven't figured out what that is, but it makes me reluctant to merge it.
<srhb>
sphalerite: The problem might be sudo. iirc it used to refuse running as root at some point, but requires sudo?
<sphalerite>
oh
<srhb>
I'm not sure if that's still the case though
<srhb>
It doesn't look like it from a quick glance.
<srhb>
printf '\e[1;31mwarning: installing Nix as root is not supported by this script!\e[0m\n' -- but it's just a warning...
bwellsnc has joined #nixos
<bwellsnc>
Aⅼlah іs ԁοiᥒɡ
bwellsnc has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<srhb>
Ah, the multi user install does barf on having root. Meh.
<srhb>
So in order to make it unattended, it appears sudo must be passwordless.
<sphalerite>
or we could fix the script?
<sphalerite>
for multi-user install having root is desirable anyway, right?
<srhb>
Sure, but this looks like a deliberate decision, so clearly some discussion must take place. :)
<srhb>
failure <<EOF Please do not run this script with root privileges. We will call sudo when we need to.
orivej has quit [Ping timeout: 252 seconds]
<adisbladis>
Thats just plain weird
dbmikus has joined #nixos
<sphalerite>
matto: what you could do is set up a dedicated account with nopasswd sudo rights and run it as that? It's kind of a hack but until (if) the script is changed to allow running as root, it should do as a workaround?
<matto>
yes! Thanks, I was just wondering if there was something that works without workaround ...
<srhb>
matto: Can you open an issue about unattended installs?
<matto>
yes
<srhb>
matto: It will be easier to ping the relevant people there.
<srhb>
Thank you :)
<puffnfresh>
copumpkin: you trying out the linuxkit builder?
<rawtaz>
Aleksejs: would you mind filing a PR for that? you can do it real easily, just edit that file on GitHub (in the master branch) and submit a PR
<rawtaz>
no need to even clone the repo locally
<adamt>
Well, it's more complicated than that, it seems (not the technical part).
<adamt>
The author claims the project is basically dead, and suggests using a different piece of software instead -- actually the one you get at messengerfordesktop.org
<adamt>
Of course the current situation is still wrong
<rawtaz>
right. well regardless of rekommendations ,the current website for the project should be reflected in the nix file i suppose
<Aleksejs>
rawtaz: I don't see that package on master
<mkaito>
I meant it not for nixos specifically, but the tech world in general.
* srhb
nods
<srhb>
I experience similar things as well..
<mkaito>
latest source of extreme worry: Contributor Covenant and the Linux kernel, on the same day Linus decides to stop being the git we all love.
<srhb>
Maybe a good topic for #nixos-chat :)
<mkaito>
I didn't even know that exists
<srhb>
Aha!
<mkaito>
back on topic. bumped my system to nixos-unstable this morning, and a bunch of weird issues cropped up. most notably, gpg-agent doesn't seem to remember the fact that I've unlocked my gpg key and keeps asking for passphrase over and over. `systemctl --user` fails because XDG_RUNTIME_DIR is unset. `poweroff` and `reboot` don't work, probably because something about polkit is borked. I didn't want to go and open
<mkaito>
issues on github before bringing it up here first.
dbmikus_ has joined #nixos
<mkaito>
figured I'd at least ask here before I start bisecting nixpkgs
<srhb>
mkaito: Hmm, I've experienced something similar.. Somehow I had two gpg agents running
<srhb>
But I never found the root cause, and now it seems to be working :/
<mkaito>
last time I had to debug polkit/systemd issues, it was an absolute nightmare.
<qyliss^work>
You might want to have a look in GnuPG's /run directory
<srhb>
mkaito: Yup.
<qyliss^work>
I've had a similar problem when changing my GNUPGHOME
<qyliss^work>
See if there are multiple sets of sockets in different subdirectories or something
<sphalerite>
mkaito: did you reboot after the bump?
<qyliss^work>
pkill gpg-agent might be a simple fix, alternatively
<sphalerite>
mkaito: major upgrades don't tend to work well with nixios-rebuild switch
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fAyzI
hotfuzz has quit [Ping timeout: 245 seconds]
<mkaito>
alright I'll open a bunch of issues then
booglewoogle has joined #nixos
<mkaito>
alright done. I'll try to bisect nixpkgs if I have time.
orivej has joined #nixos
<srhb>
mkaito: Nice, thanks. :)
sbdchd has joined #nixos
<adamt>
re: the 5 mysterious tickets for nixcon I mentioned yesterday: They are going back in the queue once the request has been processed, so get a big cup of coffee and start hitting refresh on the nixcon website. :P
<booglewoogle>
https://nixos.wiki/wiki/Python -- is there any way i can specify my tailored python derivation inside configuration.nix? overrides seem to be used for changing build specifications (or does the way in the link work by simply changing the buildinputs and putting pandas&requests into python's scope that way?).
<srhb>
booglewoogle: Exact same way.
<gchristensen>
adamt: I'm glad I got my ticket :')
<srhb>
adamt++
<{^_^}>
adamt's karma got increased to 1
<srhb>
booglewoogle: When overriding an old package you usually do { ... oldPackage = something to manipulates oldPackage; }
sbdchd has quit [Ping timeout: 272 seconds]
<srhb>
booglewoogle: When creating a new package it's just { ... newPackage = something that creates newPackage; }
<srhb>
booglewoogle: It's quite generic :)
oldandwise has joined #nixos
<booglewoogle>
srhb: okay, perfect! thanks a lot :)
<adamt>
gchristensen: And I'm sorry we were selfish enough to make it hard for you to get in the first place. ;-)
dbmikus_ has quit [Ping timeout: 252 seconds]
camsbury has joined #nixos
<gchristensen>
adamt: I mean, I had entire months to do it and it was my fault.
kiloreux has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fAyaz
<{^_^}>
[nixpkgs] @peti merged pull request #46822 → cabal-install: use newer version of Cabal library → https://git.io/fAyRQ
<kiloreux>
I am using PHP with nix and loading it just correctly. But when I launch my app I always get "call to undefined function yaml_parse_file()"
<kiloreux>
Does anyone ran into this issue before ?
<kiloreux>
(of course I installed yaml with buildPecl)
<mkaito>
as a very php-ingorant person, that doesn't sound like an issue between nix and php, but rather missing libraries for php?
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @adamtulinius to release-18.09 « OVMF: update homepage »: https://git.io/fAya1
<kiloreux>
That's correct. But it's likely something about nix that is causing this problem. Since running "php -r "print_r(get_loaded_extensions());"" show the yaml extension loaded just fine.
<mkaito>
ok then I respectfully delegate to someone who actually knows how php handles extensions
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
<oldandwise>
in my other nixos, once i start 'chronyd' the 'systemd-timesyncd' stops and vice versa. But in one of my laptop, both are running. How to explain this? Is it safe to disable 'systemd-timesyncd' ?
<mkaito>
oldandwise: check `systemctl cat` for both services. probably a missing conflict declaration, is my first guess.
<oldandwise>
i see 'Conflicts=shutdown.target' in systemd-timesyncd.
<Taneb>
I saw the tickets getting refunded and dived on the opportunity
<manveru>
:D
<manveru>
gonna need a bigger venue next time
<jasongrossman>
Hey people. My trackpad has started behaving badly (sometimes scrolls in the wrong direction). Is there an easy way to tell whether there've been any changes to libinput in unstable recently?
<exarkun1>
Where do people keep the persistent state involved in configuring systems with nixops? For example, their keys.
<adamt>
exarkun1: We keep stuff like that in Git
<Myrl-saki>
exarkun1: We don't. :P
<Myrl-saki>
We being me specifically.
<adamt>
exarkun1: Oh wait sorry, read nixops as nixos, we don't use nixops, forget what I said.
<exarkun1>
adamt: ah ok thanks
<exarkun1>
Myrl-saki: Your nixops deployments don't have persistent state?
<Taneb>
exarkun1: keys, we keep in a folder which is not version controlled.
<sphalerite>
jasongrossman: for p in /nix/var/nix/profiles/system* ; do echo $'\n\n$p' ; nix-store -qR $p | grep libinput ; done
<Taneb>
If we lose them it's a huge nuisance but not the end of the world, we'd just generate new keys
<Myrl-saki>
exarkun1: Currently? Nope. Later in the future? Probably, but at that point, we'd probably be using a shared machine for deployment.
<exarkun1>
Taneb: How do they get deployed?
<Myrl-saki>
exarkun1: OTOH, there's git-crypt if you really need it.
<exarkun1>
builtins.readFile + deployment.keys?
<jasongrossman>
sphalerite: Thanks. I've made a note of that.
<Myrl-saki>
exarkun1: deployment.keys has an option that accepts a path, IIRC.
<Taneb>
exarkun1: yeah, that exactly
<adamt>
exarkun1: Be careful your secret keys doesn't end up in the nix store.
<Myrl-saki>
OTOH, we do use builtins.readFile. It works okay, so not much reason to change.
<Myrl-saki>
adamt: ++
<{^_^}>
adamt:'s karma got increased to 1
<Myrl-saki>
adamt: I was thinking of running a cron job.
<sphalerite>
jasongrossman: whoops, the $p in the echo should be outside the quotes
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<romildo>
moredhel, currently I am trying to package https://github.com/linuxdeepin/dde-api. I will upload a working in progress PR so that you can see.
<qyliss^work>
I have nix-env deliberately disabled :P
<qyliss^work>
(I don't like the impurity)
<samueldr>
b-b-but the cheaty backdoor!
<samueldr>
(though you could realistically nix-shell it I guess)
<qyliss^work>
I just overrode src in my overlay :)
kiloreux has quit [Ping timeout: 246 seconds]
<qyliss^work>
Oh, but buildRustPackage isn't overridable
<qyliss^work>
Annoying
spear2 has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kelppo has quit [Ping timeout: 246 seconds]
Kelppo has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 9 commits to haskell-updates: https://git.io/fAyMZ
revtintin has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fAyMW
adamt has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « cabal2nix: update yaml override to the latest version »: https://git.io/fAyMg
endformationage has joined #nixos
kiloreux has joined #nixos
wpcarro has joined #nixos
Dedalo has joined #nixos
<romildo>
I have added a commit by mistake on my PR https://github.com/NixOS/nixpkgs/pull/46833 and as a consequence some review requests were added automatically. How can they be canceled?
<hodapp>
are you manually walking through the individual build steps?
<acowley>
hodapp: I tend not to because they're a of a pain (e.g. do you need to eval a variable or are you calling a function?), and getting through a successful install always leaves me having to rebuild anyway.
emerson has joined #nixos
<acowley>
hodapp: I am willing to accept that that is the best way, btw.
<kiloreux>
Is it possible to use curl to download something thing in postFixup ?
<acowley>
I'm always optimistic that the normal build will work, so I want to avoid the double build I end up having to do when I do a manual step-through that does work.
<acowley>
I suppose I'm being lazy, and just need to accept the way things work.
<Izorkin>
how to fix error - getting attributes of path '/nix/store/bsyhhflcd1f3xg8b5xzc063r4c49p8p7-docbook-xsl-ns-1.79.1': No such file or directory. Not work nixos-rebuild
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<wpcarro>
When I run `nix-repl '<nixpkgs-unstable>'` I'm getting an error about my Nix version needing >= 2.0 ... when I run `nix --version` I get `2.0.4`. Anyone know what might be going on?
waleee has quit [Quit: WeeChat 2.2]
<clever>
wpcarro: nix-repl only uses 1.11, you want nix repl
<wpcarro>
clever: oh those are two different things..?
<clever>
yeah
<wpcarro>
woah...
<clever>
the tab completion and history also behave differently
chessai has quit [Remote host closed the connection]
humanoyd has joined #nixos
Dedalo has joined #nixos
erasmas has joined #nixos
clefru has joined #nixos
jasongrossman has quit [Ping timeout: 240 seconds]
<chaker>
Hey guys, do I need anything specifc to run nixos tests? I thought that using "nix-build -A" would run them?
sbdchd has joined #nixos
<clefru>
chaker: I usually do "nix-build -A stable nixos/tests/zfs.nix" to run this particular test
ajs124 has quit [Quit: Gateway shutdown]
wpcarro has quit [Remote host closed the connection]
<clefru>
How do I make ''${foobar}'' not splice the foobar variable but to output the string literal ${foobar}. I tried \${foobar} $${foobar} $\{foobar} and all do the wrong thing.
wpcarro has joined #nixos
jasongrossman has joined #nixos
<clefru>
Couldn't find anything on that in the manual :/
matto has quit [Quit: WeeChat 1.4]
<samueldr>
,escape'' clefru
<{^_^}>
clefru: '' two single quotes: ''' bash curly bois: ''${} newline: ''\n tab: ''\t any character x: ''\x ''
wpcarro has quit [Remote host closed the connection]
melleb has quit [Ping timeout: 245 seconds]
<chaker>
Sorry I wasn't specific. we have nixos tests to check some nix code that we have internally in the company. the tests start couple of machine and make sure that they can communicate correctly. When I run the tests using "nix-build -A tests" it fails with 'The option `networking.interfaces.eth1.ip4' is used but not defined.'
<samueldr>
what I like to do, when escaping becomes hairy in indented strings (due to mixing single-quotes and bash variables) I will make those segments into an expanded nix expression... like follows:
jperras has quit [Quit: WeeChat 2.2]
<samueldr>
> ''echo ${"''\${somethingHairy}''"}''
<{^_^}>
"echo ''${somethingHairy}''"
<clefru>
samueldr: thanks for the manual! unfortunately the solution ''\${bla}'' doesn't work. That's what should work by my interpretation of "The special characters " and \ and the character sequence ${ must be escaped by prefixing them with a backslash (\)."
<samueldr>
> ''echo ''${bla}''
<{^_^}>
"echo ${bla}"
<samueldr>
the escape sequence is a pair of single-quotes into indented strings
<{^_^}>
[nixpkgs] @xeji pushed commit from @thefloweringash to staging « git: 2.18.0 -> 2.19.0 (#46723) »: https://git.io/fAypY
<clefru>
samueldr: ah, got it. also I was looking at the wrong part of the manual..
<samueldr>
in the chapter I linked, the "Strings can be written in three ways" section starts with "the most common way", which is when using double-quotes "string"
<samueldr>
when using double-single-quotes, this is an indented string
<samueldr>
(and when using a non-monospaced font, it can quickly get confusing!)
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « varnish6: 6.0.0 -> 6.0.1 (#46170) »: https://git.io/fAyp2
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « cstore_fdw: 1.6.1 -> 1.6.2 (#46291) »: https://git.io/fASvL
<haslersn>
Hi, fetchFromGitHub is something from nixpkgs, right? So why is it written in camel case?
<pie_>
ok actually im not sure its a segfault
<das_j>
haslersn: Why not? Is it forbidden?
<haslersn>
das_j: I thought camel case is for builtins. Like builtins.fetchGit and pkgs.fetchgit
<pie_>
something about some udev loader check failed
Thra11 has joined #nixos
<norfumpit>
i ran into problems using nixops to deploy to a remote nixos instance of a different architecture. through some github issues i found to set `nixpkgs.system` and that worked, but is that proper?
<clever>
norfumpit: yeah
<norfumpit>
and is that all i need to set?
<norfumpit>
should this be documented somewhere, or is it treated as a bug?
<norfumpit>
i guess nixops should be able to tell the remote machine architecture
<gchristensen>
it is not a bug. by design, nixops doesn't look at the remote system for any sort of introspection
<d1rewolf>
clever: what's your approach for keeping your systems up-to-date?
<clefru>
d1rewolf: ah no, doesn't fit my character. I want to know when stuff breaks :)
<samueldr>
a drawback I had with autoUpgrade was that it filled a small VM's inode table with rebuilds and all the transient files... so it's probably better to enable it with something that cleans and/or optimises the FS
sbdchd has quit [Ping timeout: 240 seconds]
<clever>
d1rewolf: i nix-channel --update and nixos-rebuild every now and then
<samueldr>
(or not use it)
<clefru>
maybe I'd would run that for a security-updates-only nixpkgs branch. debian had that kind of things
sbdchd has joined #nixos
theodoor has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<d1rewolf>
clefru: that's really what I'm looking for. keeping up to date on security patches
<{^_^}>
[nixpkgs] @FRidh pushed commit from @Assassinkin to master « pythonPackages.fuse: 0.2.1 -> 0.3.1 | refactor | python3 support »: https://git.io/fASTU
<booglewoogle>
is there a way I can point the networking.hosts option to a hosts file in configuration.nix (because it'd be a long list)? or should I do this by creating a module for that purpose?
<clever>
booglewoogle: builtins.readFile ./foo
<clever>
booglewoogle: or import
<booglewoogle>
clever: thanks!
<clever>
extraHosts is just a string, in the standard /etc/hosts format
<booglewoogle>
clever: import would mean creating a module, correct?
<clever>
hosts is a set, so it would need imort
<clever>
doesnt have to be a module
<clever>
you can just networking.hosts = import ./hosts.nix;
jperras has joined #nixos
<clever>
and then hosts.nix contains { "127.0.0.1" = [ "foo.com" ]; }
<booglewoogle>
ah
<booglewoogle>
i see
<booglewoogle>
cool, thanks!
<gchristensen>
is nix-env supposed to use ~/.config/nixpkgs/config.nix ?
<elvishjerricco>
gchristensen: I thought that all non-restricted evaluations of nixpkgs were supposed to.
Twey has joined #nixos
<gchristensen>
me too but it "doesn't work"
<Twey>
What do we do for packages with multiple licenses? Can meta.license be a list?
<maurer>
gchristensen: .... shouldn't it? You'd know better than me, but I could swear I am currently depending on it doing so in order to install unfree packages, and for my customizations...
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « iasl: 20180313 -> 20180629 (#46272) »: https://git.io/fASkU
<maurer>
and they seem to be working
<gchristensen>
right.
<gchristensen>
I must be doing something stupid :)
<clever>
gchristensen: add -v and look for any config.nix's
<{^_^}>
[nixpkgs] @teto opened pull request #46844 → gImageReader: init at 3.2.99 → https://git.io/fASkO
<clefru>
d1rewolf: nix isn't my favorite on security to be honest. there isn't anything to force a 0-day security-update through on a nix-channel release. (at least I haven't seen it)
<d1rewolf>
guys, I'm at work an trying to use this (https://pastebin.com/m6YaTZaL) to build rocketchat. Odd thing is, at home, this worked, but here, I'm getting: /rocketchat.nix:1:1 called with unexpected argument 'config', at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:170:8
<clefru>
if my startup plans go according to plan (long-term profitable), I hope to have my employees ship lots of security improvements into nix.
<d1rewolf>
what's the story with ubuntu+nix and security?
<das_j>
I'm currently trying to deploy a aarch64 system from a x64 system. Now I get "error: a 'x86_64-linux' is required to build '/nix/store/j16l9pjhcbjfjwrbcylwb36b2clll67k-append-initrd-secrets.drv', but I am a 'aarch64-linux'". Do I need to append flags to nixos-rebuild?
<d1rewolf>
do you get the best of both worlds or do they step on eachother?
<clefru>
I guess that you get the worst of both worlds.
<d1rewolf>
clefru: how so? ubuntu at least attempts to patch zero-days quickly
<cransom>
i don't think i've ever seen combining 2 package managers make something more secure. it would always be less so
<maurer>
clefru: The "force a 0day patch through" basically ends up being "one of the people with commit bits sees you poke them and does it"
<maurer>
clefru: At least for vulns I've been aware of and communicated with people about, they seem to get fixed within a day
<maurer>
but it is a best effort basis, project doesn't have the massive staff of debian or ubuntu
<andi->
clefru: what kind of secruity improvements do you have in mind for nix(os)?
alex`` has quit [Quit: WeeChat 2.0]
<gchristensen>
clefru: we can "force" a security patch to a channel, but it doesn't matter anyway. Our security patches land in channels typically faster than RedHat, and on par with Debian / Ubuntu.
<d1rewolf>
I'm wondering if, for production systems, ubuntu or debian + ansible would be better. I really it's not completely reproducible, but I'd bet you could get close
<exarkun1>
what do you do when using vbox and nixops guesses the vm ip wrong?
<d1rewolf>
gchristensen: as a user, how can I keep up with patches? should I be updating from the channel daily?
<gchristensen>
yes
<andi->
there is a handy auto-update option in the nix options
<maurer>
If you follow stable, and do nixos-rebuild --upgrade regularly, little will change other than security
<d1rewolf>
gchristensen: ok, that's a hole in my practices. would autoupgrade be better?
<gchristensen>
depends on your use case
<d1rewolf>
maurer: i'm on unstable on the recommendation of many here
<maurer>
unstable is great for dev
reinzelmann has joined #nixos
<maurer>
but you mentioned production a couple times
<d1rewolf>
gchristensen: I'd like to just make sure my systems are patched with some frequency
<maurer>
For anything production, use stable
<clefru>
maurer: what if hydra is stuck? I don't think that we have a mechanism to force an alternative version for say release-18.03 into channels-18.03 which only has the security things cherry-picked
<d1rewolf>
maurer: yeah, sorry...not using it in production yet
smolboye has quit [Quit: WeeChat 2.2]
<d1rewolf>
just for desktops at home and work so far....
<clefru>
andi-: deterministic builds mostly, similar to the debian deterministic build effort
<maurer>
clefru: gchristensen is better able to answer that, and I haven't heard of that stopping a security update to stable before
smolboye has joined #nixos
<gchristensen>
if there is a big security problem we take great care to make sure things are not stuck
<maurer>
As far as production goes, while I am a huge nix fan in general, 100% of my production systems run debian stable
<clefru>
maurer: I have seen the stable channel stuck for >8-10days in the last years, not only once unfortunately.
<maurer>
This is just a long legacy of debian stable Just Working
<clefru>
maurer: so I guess any security thing would get clogged up as well. yes, I could use the -small branch..
<maurer>
they have gotten so many things right in a row that I am hesitant to switch, even with how great nixos has been for hobbydev
<maurer>
clefru: well, as gchristensen just said, evidently stuff basically gets manually adjusted
<gchristensen>
people are paying attention to problems and working to solve them, with a special eye towards when security sensitive patches need to get out
<{^_^}>
[nixpkgs] @costrouc opened pull request #46846 → [WIP] pythonPackages.ovito: init at 3.0.0 → https://git.io/fASIF
<clefru>
gchristensen: how would you force a security patch to a channel? just push a state untested by hydra? (I am totally fine with that btw)
<clefru>
gchristensen: https://github.com/NixOS/nixpkgs/pull/34385 never got a response, and the underlying https://github.com/NixOS/nixpkgs/issues/34383 took way too long for me to feel comfortable. I do understand that this is a volunteer organization, no hard feelings, no critique. It just does by a long margin not meet my personal requirements on triaging PRs clearly tagged with the security label.
<{^_^}>
#34383 (by clefru, 33 weeks ago, closed): Compile kernel with retpoline GCC support
<gchristensen>
sure
smolboye has joined #nixos
<gchristensen>
understandable
<clefru>
again, if I run my company on nix, I'd be happy to donate some staff to that aspect.
init_6 has quit [Ping timeout: 252 seconds]
<gchristensen>
please do :) I'd love to talk to you about that
<d1rewolf>
guys, I'm at work an trying to use this (https://pastebin.com/m6YaTZaL) to build rocketchat. Odd thing is, at home, this worked, but here, I'm getting: /rocketchat.nix:1:1 called with unexpected argument 'config', at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:170:8
<andi->
disasm: that smells like you are including it as a module instead of building it as a package
<andi->
d1rewolf: ^
<andi->
disasm: sorry, wrong tabcompletion
johanot has joined #nixos
<d1rewolf>
andi-: I am. going to have to go back through my notes on how i installed it at home. thx
wpcarro has quit [Remote host closed the connection]
sbdchd has quit [Remote host closed the connection]
<Twey>
How do I get a gcc with multilibs into my derivation's build environment? multiStdenv doesn't seem to put any 32-bit libgcc_eh.a &c. libraries on the path
jperras has joined #nixos
<Twey>
I have a /nix/store/iws163qgakl4mrlkplp1nk8p3sqxjgmc-gcc-7.3.0/lib/gcc/i686-unknown-linux-gnu/7.3.0/libgcc_eh.a , pulled in by Mono apparently, but I can't seem to reverse-engineer whatever black magic it used to do that
<nikivi>
I want to build a tool that you can use to install any package (with automatic conversion to nix) so you can run 'nixi go github.com/cortesi/modd/cmd/modd' to install the package with nix instead of go
<nikivi>
and do same for npm/rust/..
<nikivi>
is anyone interested in this tool?
<nikivi>
my problem is that I want to use nix for everything but right now it's too painful as so many binary insallations are not easily available on nixpkgs
hotfuzz_ has joined #nixos
anders has joined #nixos
<Twey>
symphorien: Yes, worked with a regen — thank you!
anders is now known as Guest28075
<Twey>
nikivi: The problem is that ‘installing things’ is not really Nix's model…
<acowley>
There's a surprising amount of string matching in there
booglewoogle has joined #nixos
spietz has quit [Ping timeout: 246 seconds]
<acowley>
I've muddled through this before, but I'm hoping things have improved since the last time I did so.
<acowley>
My situation is I have a clang derivative not called clang, and I need it to be able to find header files.
hakujin has quit [Ping timeout: 252 seconds]
hakujin has joined #nixos
<symphorien>
what if you wrap it as "cc" ?
blahdodo has quit [Ping timeout: 252 seconds]
<acowley>
wrapCC leaves me with a wrapper whose bin directory includes only as, c++, cc, clang, clang++, ld, ld.bfd, and ld.gold
<acowley>
The thing I'm wrapping does have clang and clang++ in its bin
<acowley>
But it also has a compiler called `hcc`, which is what I'd like to wrap.
<copumpkin>
hcc! :O
<acowley>
I end up playing games with names to make it work
blahdodo has joined #nixos
<acowley>
But it's quite unsatisfying
<acowley>
copumpkin: It's probably not as exciting as whatever you're thinking
<acowley>
copumpkin: This is AMD's heterogenous compute compiler
<copumpkin>
aw
reinzelmann has quit [Quit: Leaving]
<booglewoogle>
hey, firewall question: it seems nixOS is using iptables, and from what I understand, following the policy chain, it'll default to accepting any inbound connection? am i just reading this wrong? line 3 -> line 13 https://pastebin.com/K7WsgRpv
<andi->
booglewoogle: well the INPUT chain is set to ACCEPT that is corret bu tall packets are being "jumped" into the nixos-fw chain which has a refuse & log at the end.
Guest28075 has quit [Quit: Page closed]
<booglewoogle>
andi-: okay.. i was thinking it'll go through the chain from the top, using the first policy that matches -- in this case i thought that'd be the 'accept' in line 13 since that has no filter specified?
kiloreux has quit [Ping timeout: 252 seconds]
<andi->
booglewoogle: pardon me, you are correct. I was assuming the standard nixos configuration for the firewall
wpcarro has joined #nixos
<{^_^}>
[nixpkgs] @etu opened pull request #46851 → nixos/activation: Switch from bash to sh to avoid reading users bash config → https://git.io/fASnR
<andi->
booglewoogle: actually, add an -v to your iptables command or even better use iptables-save
<andi->
then you see it is just for `lo`
sigmundv__ has quit [Remote host closed the connection]
davenpcm has quit [Remote host closed the connection]
sigmundv has joined #nixos
hakujin has quit [Ping timeout: 264 seconds]
<booglewoogle>
andi-: oh, you're right. i know i'll default to adding -v in the future! hehe. thanks!
klntsky has quit [Remote host closed the connection]
<d1rewolf>
does using nix on ubuntu use the same packages from nixpkgs, or are there ones especially built for ubuntu?
klntsky has joined #nixos
<Twey>
d1rewolf: It will use the same packages
<worldofpeace>
^
<Twey>
d1rewolf: By design, Nix is isolated as much as possible from the outer environment
<Twey>
Obviously things like kernel modules will be affected by the running kernel (so it's up to you to make sure you match kernel versions), but that's about it
<Twey>
The big bug-bear of these is graphics drivers, where you have to make sure your Nix packages are using a graphics driver that's compatible with whatever you're using on your host OS
<srhb>
Twey: Didn't libglvnd ease this significantly?
<exarkun1>
What's the username/password for the nixops virtualbox images?
<Twey>
srhb: Not in practice ☹ libglvnd still has to find a libGL somewhere, and in fact it's worse than before in that libglvnd can only use LD_LIBRARY_PATH to find it
<srhb>
Twey: Ah, right. Thanks. :)
<Twey>
srhb: And you still have the problem that the system libGL is going to require system versions of libraries like glibc, so you have to make sure those libraries are on the LD_LIBRARY_PATH, but those dependencies might be incompatible with your Nix versions, so you can't always load them together…
<d1rewolf>
Twey: ok, thanks very much for that info
<srhb>
Twey: Fun!
<Twey>
srhb: In addition, in practice, you have to pull a bunch of X libraries in from the system as well, because those have to match up
<Twey>
srhb: Stuff like libcapsule/dlmopen might be a solution in the long term, since it lets you load sets of libraries into separate namespaces, but it's not easy work
<Twey>
srhb: I pushed Nix into my workplace and then we started using OpenGL, so this stuff haunts me :þ
<srhb>
Twey: I got that vibe. :D
<srhb>
Twey: Appreciate the overview.
abueide has joined #nixos
chessai has quit [Ping timeout: 252 seconds]
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chessai has joined #nixos
booglewoogle has quit [Quit: Leaving]
john_doe_jr25 has joined #nixos
<john_doe_jr25>
Aⅼlɑһ іs doіng
<john_doe_jr25>
ѕun iѕ ᥒot doinɡ Аlⅼah is ԁoing
john_doe_jr25 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<exarkun1>
Anyone used nixops virtualbox support? Anyone at all?
<exarkun1>
#vbox wants me to believe it's broken and always has been
<cransom>
i can't remark whether it's broken now, but it wasn't always.
<azazel>
exarkun1: never used it, always used nixos own qemu support
<sphalerite>
I'm confused. I ran nixos-generate-config --root /mnt, then nixos-install, and I'm getting "error: selector 'x86_64-linux' matches no derivations"
<sphalerite>
hahaha ok. turns out nixos-install will not run in a nix-shell, because of its use of the `system` shell var. Which just happens to also be an env var which is set in every nix-shell
civodul has joined #nixos
<sphalerite>
kreisys: try adding fontconfig to your nix-shell?
<azazel>
sphalerite: strange
<azazel>
ah
<kreisys>
It did it doesn't help.
<sphalerite>
kreisys: did you rerun npm install?
<sphalerite>
kreisys: you may need to have it rebuild whatever uses fontconfig
<kreisys>
yeah fontconfig is supposed to be a dependency of a dependency not a direct one
trevthedev has joined #nixos
trevthedev has quit [Changing host]
trevthedev has joined #nixos
theodoor has quit [Quit: Leaving]
<kreisys>
cairo's link seem to be fine
BlessJah_ has joined #nixos
<das_j>
Where is the list of UIDs again?
<das_j>
ah nixos/modules/misc/ids.nix
<rawtaz>
what's up, my favourite community folks in my currently favourite linux distribution?
<rawtaz>
(even though hardly anything in it works yet :D)
<{^_^}>
[nixpkgs] @dasJ opened pull request #46856 → nixos/tt_rss: Give a proper UID → https://git.io/fAS8G
<rawtaz>
exarkun1: what's the problem? i never used nixos in virtualbox, im currently trying to make vmware guest tools (open-vm-tools) work properly in nixos under Fusion though.
<exarkun1>
rawtaz: I'm trying to make nixo*P*s deploy some stuff on some VirtualBox VMs.
hitchhikingcoder has quit [Client Quit]
<{^_^}>
[nixpkgs] @xeji merged pull request #46851 → nixos/activation: Switch from bash to sh to avoid reading users bash config → https://git.io/fASnR
<{^_^}>
[nixpkgs] @xeji pushed commit from @etu to master « nixos/activation: Switch from bash to sh to avoid reading users bash config (#46851) »: https://git.io/fAS8g
<{^_^}>
nixops#1009 (by exarkun, 1 hour ago, open): Deploy times out trying to SSH to VirtualBox VM
<exarkun1>
nixops seems to create the VM in NAT networking mode which #vbox assures me does not now nor has it ever allowed inbound connections from the host to the VM
<{^_^}>
[nixpkgs] @xeji pushed commit from @etu to release-18.09 « nixos/activation: Switch from bash to sh to avoid reading users bash config (#46851) »: https://git.io/fAS8i
knupfer has quit [Ping timeout: 264 seconds]
hitchhikingcoder has joined #nixos
<exarkun1>
but nixops needs such connections to finish provisioning the VM
<exarkun1>
I assume there's some random, obscure configuration setting somewhere which just needs to be tweaked to fix things but I have no idea where it is, I'm not really a regular virtualbox user (and #vbox is a little too snooty to help much)
sanscoeur has joined #nixos
<rawtaz>
exarkun1: hm, have you investigated if you can configure a VB VM with NAT *and* port forwarding into it at the same time?
<rawtaz>
btw, VB rules :-)
<exarkun1>
I don't really want to configure VB at all. nixops is supposed to do this for me.
<exarkun1>
The only reason I'm looking at VB at all is to make this experience more repeatable for other developers
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46857 → misc pkgs: various cross fixes in preparation for darwin->linux → https://git.io/fAS8j
<exarkun1>
If they have to reconfigure obscure networking details before it works then the purpose has been soundly defeated
<exarkun1>
(and I hate VB, sorry :/)
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46858 → Darwin to linux prep → https://git.io/fAS4k
<exarkun1>
I'm doing one last look at my system to see if there is some lingering garbage configuration from some other project that might have screwed things up but then I'm tossing the whole idea in the trash.
<Baughn>
This tells me to use the nix binary.
<rawtaz>
i am only suggestion steps to debug the issue, not suggesting something that developers using nixops should have to do in the long run.
<Baughn>
But it doesn't tell me where I'd get one.
<rawtaz>
it seems to me that you are biased by hating VB, and that it's impacting your efforts to debug the issue
FRidh has quit [Quit: Konversation terminated!]
<srhb>
Baughn: Follow the manual instead :)
Ericson2314 has joined #nixos
Ericson2314 has quit [Changing host]
Ericson2314 has joined #nixos
<srhb>
Though that'll bring you to a situation where you need a root install to get the non-root install I guess :P
<exarkun1>
rawtaz: sure, could be. also by #vbox who were kind of jerks.
<Baughn>
srhb: The manual doesn't have a section for this.
<exarkun1>
and also the aggressively awful VB CLI
<rawtaz>
heh, i suggest you ditch this thing youre working on. its probably making you more upset than happy.
<Twey>
Damn, no, it's interpreted with a Nix store path…
<Twey>
What an amusing reversal of the usual frustrations
trcc has joined #nixos
<srhb>
Twey: Down _that_ path lies a lot of "hmm, I wonder how to compile X statically"
knupfer has joined #nixos
<Twey>
I mean, there's an unhappy path here where you strip the rpath off that binary and then use LD_LIBRARY_PATH to feed it all its dependencies
<Twey>
Could work for bootstrap
<Twey>
But it does feel like there should be an FHS-compatible Nix binary tarball lying around somewhere
<{^_^}>
[nixpkgs] @ju1m opened pull request #46859 → dovecot: allow sasl_bind=yes in the LDAP driver. → https://git.io/fASBY
<{^_^}>
[nixpkgs] @xeji opened pull request #46860 → openxpki: fix build, use current python3Packages → https://git.io/fASB0
trevthedev has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @Ma27 opened pull request #46861 → nixos/weechat: backport to 18.09 → https://git.io/fASRI
GiGa|Laptop has joined #nixos
<GiGa|Laptop>
Evening all. Just trying to contribute an update to Keepass in NixPkgs. I've pulled the upstream master but when I try to build Keepass I get "error: error parsing derivation '/nix/store/0621850mygqy4dqgiga9s34fiiq77q58-libXrender-0.9.10.drv': expected string 'Derive(['"
<GiGa|Laptop>
I only touched Keepass' default.nix - can anyone explain what's happening please?
<rawtaz>
GiGa|Laptop: what did you change? that .drv file is a generated one
<GiGa|Laptop>
I didn't
<infinisil>
GiGa|Laptop: What does `nix-info` output?
<GiGa|Laptop>
I only changed pkgs/applications/misc/keepass/default.nix
<infinisil>
Hmm, your nix install doesn't seem botched at least
<Twey>
How can `nix run --store` ever work? There's a catch-22 — you need to have /nix mounted before you can run the binary, because the binary is interpreted with a /nix path
<GiGa|Laptop>
rawtaz: I normally update the hashes after the build fails
<Twey>
Seems like it only works if you already have a global /nix
<infinisil>
GiGa|Laptop: Try nix-store --verify
<rawtaz>
GiGa|Laptop: interesting, that wasnt much of a change :)
<infinisil>
GiGa|Laptop: Or nix-store --verify --check-contents --repair
<infinisil>
Seems like your store is botched
<infinisil>
Maybe
<Baughn>
Twey: I do have user namespaces, but I get 'invalid argument' from that. I don't think I have access to use them.
i0-dfn has quit [Read error: Connection reset by peer]
<GiGa|Laptop>
nix-store --verify gives "reading the Nix store...
<GiGa|Laptop>
checking path existence..."
<GiGa|Laptop>
as my user
<GiGa|Laptop>
Running "nix-store --verify --check-contents --repair" with sudo gives some different output though
<GiGa|Laptop>
things like
<GiGa|Laptop>
path '/nix/store/05s0ysh6vfyjmsyyq9h4sh4hwphz2xga-libsamplerate-0.1.9.drv' was modified! expected hash 'sha256:0kz617y8q26jhsvlv6228mcgcqzdv2fnr7i59w50s749jrxna547', got 'sha256:0ip26j2h11n1kgkz36rl4akv694yz65hr72q4kv4b3lxcbi65b3p'
<{^_^}>
[nixpkgs] @xeji opened pull request #46862 → arelle: fix build, use current python3 → https://git.io/fASRj
<infinisil>
GiGa|Laptop: Let it finish and then try to build it again
<infinisil>
or did it error out because of that error?
Twey has quit [Ping timeout: 245 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
trevthedev has joined #nixos
<{^_^}>
[nixpkgs] @siers opened pull request #46863 → link-grammar: init at 5.5.0 → https://git.io/fAS0S
knupfer has quit [Ping timeout: 252 seconds]
<GiGa|Laptop>
infinisil, OK, it's still going. I'll have to plug in power supply!
<{^_^}>
[nixpkgs] @kalbasit opened pull request #46864 → terraform: update all providers and move terraform-provider-nixos to the list of providers → https://git.io/fAS0F
melleb has quit [Ping timeout: 252 seconds]
<GiGa|Laptop>
infinisil: does the fact that it can't repair these things matter, or will it just re-initialise them, so to speak?
<infinisil>
GiGa|Laptop: I'm not sure, I'd hope it would just delete it so it can reinstantiate it
<infinisil>
Did it delet that path?
<GiGa|Laptop>
infinisil: /nix/store/05s0ysh6vfyjmsyyq9h4sh4hwphz2xga-libsamplerate-0.1.9.drv still exists, but the process is still going
<infinisil>
GiGa|Laptop: Ah, it might do that at the end, let's see
tertl3 has joined #nixos
<symphorien>
GiGa|Laptop: this will also update the sqlite db to match reality
johanot has quit [Quit: leaving]
<GiGa|Laptop>
symphorien: Ah, makes sense
<GiGa|Laptop>
My system.stateVersion is still "16.09"; Haven't spotted anything saying to change it, but not actively looked
<GiGa|Laptop>
Does it need changing yet?
<infinisil>
,stateVersion
<{^_^}>
Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<grp>
I'm developing stuff using nix-shell, but sometimes nix updates system packages behind my back, so I need to wait for nix-shell to download stuff from cache.nixos.org. How can I stop this from happening? By all means, the only time I want my system to update anything at all is when doing nixos-rebuild, nothing else
<makefu>
grp: this normally only happens when your nix-shell packages get garbage-collected
<makefu>
or you update your channel
<grp>
I haven't done any garbage collection lately, maybe it's being done automatically
* grp
will check that
<infinisil>
grp: Yeah, nix doesn't do anything behind your back by default
<elvishjerricco>
grp: If you update your nixpkgs channel without doing a nixos-rebuild, the rest of you nix commands will still see and use the new channel. So in that case, nix-shell may have to download new things
<elvishjerricco>
makefu: That guide is a little off IIRC. It recommends rooting the `.drv` file, which does not keep dependencies rooted.
<elvishjerricco>
(unless you have `keep-outputs = true`, which isn't always good advice)
<makefu>
elvishjerricco: feel free to update the wiki :)
<elvishjerricco>
makefu: I would, but I'm not sure what to update it with
<GiGa|Laptop>
Still running
<das_j>
Hm, is there a way to keep files that are added using nix-prefetch-url?
<grp>
makefu++
<{^_^}>
makefu's karma got increased to 1
<grp>
elvishjerricco++
<{^_^}>
elvishjerricco's karma got increased to 4
flexw_ has joined #nixos
<infinisil>
das_j: --print-path and nix-store --add-root ..
<das_j>
infinisil: Oh, that's easier than expected, thank you
<das_j>
Do I remove that root by just removing the symlink in /nix/var?
<infinisil>
You probaobly want --indirect as well
flexw has quit [Ping timeout: 252 seconds]
<das_j>
infinisil++
<{^_^}>
infinisil's karma got increased to 24
<makefu>
das_j: you can use `nix-store --gc --print-roots` to see all the root symlinks. removing them will `free` the pointer and make everything ready for gc-ing next time
kiloreux has quit [Ping timeout: 272 seconds]
<das_j>
Alright, thanks!
<makefu>
with nix-store --gc --print-roots | grep result you will also find all the `random` result files which you may have created with nix-build
<GiGa|Laptop>
stateVersion's only mentioned in relation to sshd. Won't be touching it
<infinisil>
,root = How to create an indirect gc root to /nix/store/...-hello as a symlink named "foo" in the current directory: nix-store --add-root foo --indirect -r /nix/store/...-hello
<{^_^}>
root defined
flexw has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #46857 → misc pkgs: various cross fixes in preparation for darwin->linux → https://git.io/fAS8j
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #46858 → misc pkgs: various cross fixes in preparation for darwin->linux for 18.09 → https://git.io/fAS4k
<{^_^}>
[nixpkgs] @Ericson2314 pushed 5 commits to release-18.09: https://git.io/fASuN
kiloreux has joined #nixos
kisik21 has quit [Ping timeout: 240 seconds]
hitchhikingcoder has quit [Ping timeout: 252 seconds]
<das_j>
infinisil: So is that what I want? nix-store --add-root displaylink --indirect -r $(nix-prefetch-url --print-path file://$PWD/displaylink.zip | grep /)
<infinisil>
I'd prefer to use | tail -n1, but yeah something like that
<{^_^}>
[nixpkgs] @Ericson2314 pushed 836 commits to staging: https://git.io/fASzs
trcc has quit []
<das_j>
also a good solution. thank you!
<{^_^}>
[nixpkgs] @Ericson2314 pushed 40 commits to staging-18.09: https://git.io/fASzW
<{^_^}>
[nixpkgs] @dtzWill opened pull request #46871 → musl: apply other selected upstream fixes while rebuilding → https://git.io/fASiu
goibhniu has quit [Ping timeout: 252 seconds]
hitchhikingcoder has quit [Quit: hitchhikingcoder]
jperras has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46872 → haskell infra: Also pass `--with-ar` in cross builds → https://git.io/fASip
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #46873 → haskell infra: Also pass `--with-ar` in cross builds for 18.09 → https://git.io/fASPq
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
jluttine has quit [Ping timeout: 244 seconds]
<{^_^}>
[nixpkgs] @xeji opened pull request #46874 → nixos/tests/containers-imperative: fix on i686 → https://git.io/fASPo
peayogurt has quit [Remote host closed the connection]
EarlDeLaWarr has quit [Ping timeout: 244 seconds]
<elvishjerricco>
Is there a convenient way to add patches to a `fetchFromGitHub` result? Or is there a function that makes a derivation that simply applies a patch to another path?
<clever>
elvishjerricco: what about just using the patches arg of mkDerivation?