<{^_^}>
[nixpkgs] @fpletz pushed to master « hwloc-nox: remove, x11 now disabled by default »: https://git.io/fpAvM
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayhewluke has joined #nixos
ktor has quit [Quit: leaving]
Dagger2 has quit [Excess Flood]
kvda has joined #nixos
Dagger2 has joined #nixos
<makefu>
i really like the nixpkgs PR notice bot but in the last weeks there was just so much activity at the repo that the messages became somewhat spammy. maybe it should only show closed PRs (minus the "pushed X commits to master")?
apaul1729 has joined #nixos
cyounkins has quit [Remote host closed the connection]
<qyliss>
You should be able to filter out the messages in your IRC client if you don't want to see them
<qyliss>
A lot of us probably like to see, eg, PRs being opened, because we can review and merge them
cyounkins has joined #nixos
<{^_^}>
[nixpkgs] @mat8913 opened pull request #52413 → vagrant: build and install vagrant-libvirt plugin → https://git.io/fpAvN
<gchristensen>
I wish it was possible to show pushes which were not PRs, plus merged PRs, plus opened PRs
<makefu>
gchristensen: yeah that is what i also think is useful
<qyliss>
Like, when I'm on IRC, if I see a small PR opened by reading this channel, I'll just go ahead and merge it
<makefu>
i think it is especially disturbing for new people with some questions regaring nixos
<qyliss>
I probably wouldn't see it otherwise
<qyliss>
It could be in a different channel, though
<apaul1729>
Hey guys, im currently writing a pkg for nixpkgs. I have arguments with default boolean values of "true", but when i trying testing with `nix-build . -A mypackage --arg withJava false` the build behavior doesnt chnage at all. Am i passing the arg wrong somehow
<makefu>
sure, openend PRs is fine too, but the "pushed to <branch>" messages do not really provide some added value for most users, right?
<qyliss>
gchristensen: you could filter out merges by checking how many parents the commit had
<qyliss>
wouldn't be fool-proof, of course
cyounkins has quit [Ping timeout: 268 seconds]
<gchristensen>
I don't want to ignore all merges, just merges not from PRs
jluttine has joined #nixos
<mayhewluke>
Anyone getting issues with the radeon drivers recently? I was on 18.03 and when the screensaver would kick in (putting the displays to sleep) the system would become unresponsive. Switched to 18.09 and now it seems to log me out when the screensaver kicks in. journalctl on 18.03 had messages about some radeon ring failure, now on 18.09 they've got "GPU fault detected". Is my graphics card dying? It works fine
<qyliss>
Merges not from PRs?
<mayhewluke>
under Windows...
scribbler has joined #nixos
<qyliss>
Do we often have those?
<gchristensen>
qyliss: we might if a shady person wanted to hide a push to master
<qyliss>
oh, right
<qyliss>
Do we give shady people commit access? P:
<qyliss>
*:P
<gchristensen>
mmmno
<apaul1729>
Ohhh i understand now. Cool
<infinisil>
Of course not! *hides stash of weed*
<gchristensen>
but qyliss maybe infinisil is shady and we just don't know it yet, because he's a sleepr! :P
<qyliss>
he certainly seemed shady when I met him at Nixcon...
<infinisil>
I guess we could check whether the PR corresponding to the commit is closed
<gchristensen>
not sure you can go from a commit -> PR #
<qyliss>
GitHub does it in their UI
<qyliss>
IDK if it's a public API though
<samueldr>
and they talk about one of my project the 10 minutes I go away from my computer...
<qyliss>
It does it over a XHR, though...
<qyliss>
Oh nice, I managed to build Firefox nightly from source with Nix
<gchristensen>
back to: "the bot could keep a local queue of push messages and only send them if a corresponding merge message isn't received in 5s" -- both sets of message include hashes *slaps hand away for procrastinating again*
<qyliss>
Wonder if the nixpkgs-mozilla folks would be interested in from-source derivations as well as the binary ones
<gchristensen>
it is a cool problem that we merge too many PRs
<qyliss>
yeah
<gchristensen>
remember when it was a problem that the original GitHub bot would send 3 messages per PR merge, for each commit (max of 3)
<samueldr>
plus join/part
<gchristensen>
ohy eah
<qyliss>
join/part?
<gchristensen>
goodness *GRACIOUS* last I looked at PR "insights" we were about 1,000 PRs/mo merged and proposed, -- we've merged 1,250 this month.
<samueldr>
the official(?) github irc bot joined, spewed messages, then left
<gchristensen>
(this month == last 30d or so)
<qyliss>
oh, right, that one
<qyliss>
Yeah, it's weird
<qyliss>
they have like, loads of different ones, right?
<samueldr>
a bit worrying, there was another file out of dezgeg's files which's hash changed recently (weeks), I'm thinking the file server hosting the files could be having issues?
<qyliss>
is there a nox-style tool I can run that will just tell me if _my change_ broke any packages? Nox will fail even if a package was already broken
<{^_^}>
[nixpkgs] @fpletz pushed 2 commits to release-18.09: https://git.io/fpAJr
<petersjt014>
beyond that, nixos works pretty much fine on raspi zero tho
<samueldr>
qyliss: not sure if https://github.com/Mic92/nix-review will help, but it's been written as a replacement to nox for reviewing things
<qyliss>
ooh, okay
<samueldr>
haven't taken time to look at it yet
<petersjt014>
any was I can workaround this by forcing a manual compile? I seem to remember a no-substitutes flag or something
<petersjt014>
I can only think of two other options really
<petersjt014>
contact the guy and harrangue him about his server issues
<samueldr>
hmm, weird!
<petersjt014>
or, turn my spare webserver into another machine to make cached binaries
<petersjt014>
thanks, I'll try that once I get it working
hedning has quit [Quit: hedning]
jperras has joined #nixos
jperras has quit [Client Quit]
<petersjt014>
on a side note, are there easy-ish instructions on setting up an armv6l/7l build/cache? I got a spare server lying around that I could put to use
<samueldr>
not that I know of :/
<samueldr>
the common way to do so is setup the whole hydra thing, which I have no experience in
<petersjt014>
As long as I only have to do it once and can leave with a config file I'm good
<{^_^}>
[nixpkgs] @ivan opened pull request #52428 → firejail: disable parallel building → https://git.io/fpAOh
doyougnu has quit [Ping timeout: 246 seconds]
sbdchd has quit [Remote host closed the connection]
orivej has joined #nixos
Ariakenom has quit [Quit: Leaving]
sbdchd has joined #nixos
slack1256 has quit [Ping timeout: 240 seconds]
reinhardt has joined #nixos
sbdchd has quit [Ping timeout: 250 seconds]
juhe has joined #nixos
epicmetal has joined #nixos
chimay has joined #nixos
<ivan>
I think there's a bug (?) in Hydra where it does not restart a build on the next evaluation when the `url` on a src changes but the hash stays the same
<teto>
ivan: I think it's normal nix behavior
<ivan>
thanks
chimay has quit [Quit: WeeChat 2.3]
Goldsum has quit [Ping timeout: 256 seconds]
<eyJhb>
Anyone have any good cli based email clients they want to share?
<petersjt014>
I knew of one neat looking one from a bit ago
<lassulus>
mutt?
<petersjt014>
cant remember the name
<petersjt014>
it was something like...aerc?
<eyJhb>
lassulus: currently looking at mutt and considering it
<{^_^}>
[nixpkgs] @7c6f434c pushed 2 commits to master:
jackdk_ has joined #nixos
<jackdk_>
how do I set my window manager in nixos config? I have set services.xserver.windowManager.i3.enable = true and services.xserver.windowManager.default = "i3" but I still get an unmanaged xterm when I log in
<symphorien>
Your display manager should offer you i3 but my default to xterm
<jackdk_>
symphorien: damnnit, that was it! I'd been pulling my hair out all night!
<jackdk_>
next question: I normally use termite as my terminal emulator, but the startup time on a raspberry pi isn't ideal. anyone have a good recommendation?
<lo_mlatu>
Hi everyone, I'm learning some nix-expressions, what does `builtins.unsafeDiscardStringContext` do? Why is it labeled `unsafe`?
<symphorien>
It fakes that a string does not depends on some store paths
<LnL>
that discards dependencies, which unless you're doing something very specific will be required for the result
<symphorien>
So you can end up with software without its dependencies
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LnL>
if you add eg. postInstall = '' ${hello}/bin/hello ''; to a derivation, hello will be in the string context of postInstall and thus end up as a build dependency of the package
<LnL>
but if you don't it will not causing the command to fail
ThatDocsLady_ has quit [Ping timeout: 252 seconds]
<lo_mlatu>
So, "${builtins.unsafeDiscardStringContext drv}" will evaluated to the outPath of `drv` but `drv` is not built?
<lo_mlatu>
wait
<LnL>
yeah, so you can't assume it's actually there
<lo_mlatu>
I see, that's why it's unsafe?
<LnL>
it can lead to very unexpected results if used incorrectly
ThatDocsLady_ has joined #nixos
<lo_mlatu>
Got it, thank you all!
orivej has quit [Ping timeout: 245 seconds]
rawreraw has joined #nixos
thc202 has joined #nixos
Guanin has joined #nixos
civodul has joined #nixos
betaboon has joined #nixos
jackdk_ has quit [Remote host closed the connection]
Dedalo has joined #nixos
jasongrossman has joined #nixos
lo_mlatu has quit [Quit: Page closed]
johanot has joined #nixos
reinhardt has joined #nixos
jbgi has joined #nixos
<CMCDragonkai>
I noticed that ZFS is already in the 18.09 minimal installation ISO
<CMCDragonkai>
I thought you always needed to get `boot.supportedFilesystems ...` before you could use it
<CMCDragonkai>
what happened to allow zfs into the distribution?
betaboon has quit [Ping timeout: 250 seconds]
<hyper_ch2>
it is? Interesting... haven't noticed that
<LnL>
yeah, that changed recently
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tzemanovic has quit [Remote host closed the connection]
<qyliss^work>
hyper_ch2: oh I just `loadkeys dvorak` as soon as I boot the ISO
<qyliss^work>
I touched my yubikey
<__monty__>
So that's your passphrase?
<qyliss^work>
no, it's a one-time password
<qyliss^work>
But I don't use the OTP functionality for anything
<qyliss^work>
so it doesn't matter that I just posted it
<infinisil>
I see another enlightened dvorak user
ng0 has joined #nixos
<__monty__>
Hmm, truth or misdirection?
<__monty__>
We are legion, infinisil.
<hyper_ch2>
qyliss^work: Why not build in dvorak into your custom live iso?
<hyper_ch2>
btw, how did you transition from qwery/z to dvorak?
<qyliss^work>
hyper_ch2: because that would be significantly more typing than just typing `loadkeys dvorak` once
<infinisil>
Let's go to -chat for these offtopic stories
<hyper_ch2>
qyliss^work: why more typing? it's just one small change in your config that builds the live iso and then never again you need to type it
<qyliss^work>
I don't have a persistent ISO config, because I don't need much in the way of changes
<hyper_ch2>
I see
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
jbgi has quit [Ping timeout: 252 seconds]
nD5Xjz has quit [Ping timeout: 250 seconds]
<ramses_>
Hi guys, I noticed that on my headless servers, nixos installs a lot of graphical libraries (like libXext, libXmu, libXrandr, gdk-pixbuf, pango, ... lots of others). Is this normal? Is there any way to avoid installing all these libraries?
<hyper_ch2>
well, seems some stuff you install seems to require those
<sphalerite>
ramses_: yes, it is normal. You can explore the dependency graph using nix-store -q --graph /run/current-system
devhell has quit [Ping timeout: 268 seconds]
fusion809 has joined #nixos
<sphalerite>
ramses_: the *reason* this happens is that some software on your system uses gtk, probably, and that the package doesn't separate the (presumably headless) part which doesn't use gtk from the (presumably graphical) part that does.
iyzsong has quit [Read error: Connection reset by peer]
<ottidmes>
ramses_: I was curious if I had pango on my server as well, this command is useful as well: nix why-depends /run/current-system /nix/store/2rafsmql17xfvd871zawrh3jsb4fgr4y-pango-1.42.1
<hyper_ch2>
ottidmes: sphalerite: nice, thx
<ramses_>
ottidmes: sphalerite: Thanks!
<ramses_>
It's due to network manager, apparently. I'll have to see if I can avoid using network manager
<sphalerite>
oh yeah, of course! forgot about why-depends
iyzsong has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<hyper_ch2>
ramses_: you don't really need network manager on a headless system anyway IMHO
Anton-Latukha has joined #nixos
tzemanovic has joined #nixos
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « libsolv: 0.7.1 -> 0.7.2 »: https://git.io/fpAr4
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « parallel: 20181022 -> 20181122 »: https://git.io/fpAoa
stigo has quit [Quit: WeeChat 2.2]
betaboon has joined #nixos
stigo has joined #nixos
<betaboon>
hello. i have a module that has an option defined with `type = types.attrs;`. i have a config that configures that module. i have a host that imports that config. now in that host i want to override an option within that attrs-option. how would i acchieve that ?
<sphalerite>
I don't think you can, you'd need to make the type more specific.
<sphalerite>
Not sure though.
<betaboon>
I'm later on writing that attrs-option to a json-file to feed it into an application as config-file.
fusion809 has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
<sphalerite>
ramses_: if you use (vimUtils.makeCustomizable vim) instead of vim_configurable it'll use a vim build with no GUI
stigo has quit [Client Quit]
<ramses_>
sphalerite: ah, how does that work exactly? Is there some documentation somewhere on how to use that?
stigo has joined #nixos
stigo has quit [Client Quit]
<sphalerite>
ramses_: unfortunately not, as far as I can see. I seem to have got that from the definition of vim_configurable in pkgs/top-level/all-packages.nix
stigo has joined #nixos
fusion809 has joined #nixos
morr has quit [Quit: WeeChat 2.3]
morr has joined #nixos
<ramses_>
sphalerite: Thanks! You have an example you can link to?
<fusion809>
Anyone have a solution to this problem? Without pip3 my NixOS experience is going to be poorer than it would be with it.
<infinisil>
betaboon: you just need to give the typeof the attributes values
<infinisil>
attrsOf != submodule
<infinisil>
E.g. 'attrsOf str' or 'attrsOf (either int str)'
<fusion809>
Ah, the error was due to me using Python 2.7 virtualenv, but I just switched to Python 3.7 virtualenv, with pip3 being for Python 3.7 too, and I'm getting a different error now https://gist.github.com/652938f6d61d60e59f8384a46b75306a.
Synthetica has joined #nixos
<betaboon>
infinisil: so i can do `type = with types; attrsOf (either int str list attrs);` instead of `type = types.attrs;` and i should be fine ?
<betaboon>
ah no. either does not support a list, but only two
<Synthetica>
betaboon: Shouldn't be too hard to make, just `fold either void` or something like that
devhell has quit [Quit: WeeChat 2.2]
Guanin has quit [Remote host closed the connection]
fendor has joined #nixos
{`-`} has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
waleee has joined #nixos
Mrmaxmeier has quit [Remote host closed the connection]
alex`` has joined #nixos
agander has quit [Ping timeout: 250 seconds]
scribbler has quit [Remote host closed the connection]
scribbler has joined #nixos
Mrmaxmeier has joined #nixos
fendor_ has quit [Ping timeout: 250 seconds]
kreisys has joined #nixos
alex`` has quit [Read error: Connection reset by peer]
<rycwo>
I'm wondering if I'm using the wrong drivers. But it looks like setting the driver on networking.wireless.driver should be picked up by NetworkManager.
<rycwo>
I'm also wondering if there's a chance it is a result of agressive powersaving.
ThatDocsLady_ has quit [Read error: Connection reset by peer]
ThatDocsLady_ has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<goibhniu>
rycwo: do you see anything interesting in the journal e.g. `journalctl -u network-manager`?
alex`` has joined #nixos
<etu>
rycwo: If you can connect I would assume that you use the correct drivers.
<etu>
rycwo: But drivers can in some cases be buggy as well :-)
<rycwo>
Maybe it's just my lemonbar script needs to be tweaked.
ma9e has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @vdemeester opened pull request #52441 → buildkit: init at v0.3.3 → https://git.io/fpAH5
ma9e has joined #nixos
ma9e has quit [Client Quit]
ma9e has joined #nixos
tzemanov_ has quit [Remote host closed the connection]
reinhardt has quit [Quit: Leaving]
iu_ has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
robstr has quit [Ping timeout: 256 seconds]
fendor_ has joined #nixos
crmlt has quit [Ping timeout: 246 seconds]
tilpner has joined #nixos
<tilpner>
Activation step "Reload user units" is done with a login shell. What's the reason for that? It can be quite annoying if your .profile is broken
xAFFE has left #nixos ["Error from remote client"]
orivej has joined #nixos
<pietranera>
Hi, how can I pass an actual list of attributes to nix-shell rather than just strings?
<pietranera>
for example, I'd like to do something like `nix-shell --arg myList [a b c]`
scribbler has quit [Remote host closed the connection]
<pietranera>
e.g. to concatenate extra packages to a derivation
<tilpner>
If that can work, it would probably be --arg myList '[a b c]'
<tilpner>
But I have never tried
<pietranera>
mmm, I think that that didn't work (can't remember right now)
<pietranera>
I am using getAttr and lib.splitString at the moment
<pietranera>
but it's a bit ugly
<clever>
tilpner: that should work perfectly
<clever>
pietranera: just note, that only works if `shell.nix` begins with { myList ? [] }:
<tilpner>
clever: Are you referring to pietraneras problem, or to mine (reload user units with broken .profile)?
<clever>
pietranera's
periklis has joined #nixos
<pietranera>
ok clever
<pietranera>
I have `{pkgs ? import <nixpkgs> {}, extraPkgsStr ? []}:`
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « umockdev: 0.12 -> 0.12.1 »: https://git.io/fpA5A
ThatDocsLady_ has quit [Remote host closed the connection]
endformationage has joined #nixos
ThatDocsLady_ has joined #nixos
<pietranera>
Another question please... I'd like to launch a shell with a Python environment *and* R packages, the docks mention rWrapper, but I'm not sure how I can use it together with python.withPackages in my shell.nix
<pietranera>
/s/docks/docs
<clever>
pietranera: put both into buildInputs?
<pietranera>
inside an mkDerivation call>
<pietranera>
?
<clever>
yep
<pietranera>
cool, I'll try that... thanks again... I'm still getting my head around this stuff
<samueldr>
here I'm thinking that *somehow* the bot got a build right (looking at its PR body), but *something* made the hash wrong? after all, after `nix-store --realise`ing the build it works :/
<samueldr>
(looks like it's 11.2)
<samueldr>
weird!
<qyliss^work>
Marking as failed rather than neutral for failed builds would probably help imo
<samueldr>
though not all failures are failures :/
<qyliss^work>
yeah
<dmj`>
I'm trying to push a nix store to s3, but am hanging on ghc-8.4.4 to do so. Does anyone know what could be blocking this network I/O?
<qyliss^work>
"Not supported on this platform" should be neutral
* dmj`
looks at gchristensen
<samueldr>
a sea of failure would be as ignored as a sea of neutral :/
<qyliss^work>
ghc is huge, are you sure it's hanging?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<tilpner>
I think at least some of them could be detected reliably. Is it just a "nobody has done it yet" thing, or "it can't be done robustly"?
<tilpner>
If the ratio of false-negatives could be brought down, failures could be made red. Unless failures block merging on the GH UI, not sure
<samueldr>
AFAIK it would require parsing the output from the build; I don't think there's a formal for-machine-use "channel" in nix, only the exit code, and I don't know if there are exit codes useful here :/
graphene has quit [Remote host closed the connection]
<tilpner>
But if ofborg built all the dependencies of a package separately, and then the full build failed, it could be sure the error was in the package
<dgarzon>
Is there any way to install gunzip using nixpkgs? I found `gzip`, but I am looking for the actual `gunzip`
<simpson>
dgarzon: `gzip` will have a gunzip command.
<simpson>
,locate bin gunzip
<{^_^}>
Found in packages: gzip, busybox, klibcShrunk
<dgarzon>
Oh, sorry, my bad!
<dgarzon>
There are multiple binaries in the derivation result :)
<dgarzon>
Thank you guys :)
<simpson>
No worries. In general, a derivation will output an entire tree of files and directories.
<dgarzon>
simpson it seems as if the version being pulled on a linux machine does not comply with https://linux.die.net/man/1/gunzip as running `gunzip -V` yields `unrecognized option: V` :(
<simpson>
dgarzon: I'm at work on a Darwin machine. I get GNU gzip, and `gunzip -V` gives the FSF's copyright notice.
<dgarzon>
Very strange, using the same derivation is yielding different results for me :(
<gchristensen>
what about /nix/store/ix13jm9a1jfkcg1fs3skagyz4s1w77r6-gzip-1.9/bin/gunzip -V
<dgarzon>
Same as before
<gchristensen>
......
<samueldr>
using nix-store --realise, then `cd` into the folder your `pwd` sees and `./gunzip -V` works?
random_yanek has quit [Ping timeout: 250 seconds]
<samueldr>
ah!
<samueldr>
I got it
<samueldr>
`nix-shell -p busybox` then tried the same thing
<samueldr>
looks like `gunzip` uses whatever is on PATH to find `gzip`
<gchristensen>
:o
<samueldr>
this is... bad
<gchristensen>
:O
xourt has quit [Quit: WeeChat 1.4]
<gchristensen>
:O!!!
<samueldr>
but unsurprising :/
<bennofs[m]>
what's the correct way to check for architecture (in my case, a binary package where upstream provides different binaries for different architectures)? stdenv.hostPlatform.system ?
<samueldr>
dgarzon: you're not going mad, gunzip is scheming against you :/
<dgarzon>
Wow! samueldr this indeed sounds bad :(
<gchristensen>
samueldr: down with PATH and environment variables!
<dgarzon>
Is there any way to get around this issue? I do see busybox in my path, but I am using the https://hub.docker.com/r/nixos/nix/ so I don’t know if I can remove it :(
morr has joined #nixos
<samueldr>
so it would be the busybox shipping from alpine AFAIUI
<dgarzon>
I was able to fix it with a diry hack :) Replaced the ones in my path with the ones provided by nixpkgs, and now it workd!
nDuff has joined #nixos
<gchristensen>
yay
<gchristensen>
great!
<dgarzon>
Thank you samueldr and gchristensen:
<dgarzon>
Much appreciated :)
<nDuff>
Hmm. I think I've been misunderstanding something fundamental.
dermetfan has quit [Ping timeout: 250 seconds]
<nDuff>
My understanding is that "nix gc" should avoid deleting anything referenced from a protected root -- but one of my builds that has symlinks to other locations in the store had those links broken by a "nix gc".
agander has joined #nixos
random_yanek has joined #nixos
jeremejevs has joined #nixos
<gchristensen>
that should not have happened
<{^_^}>
[nixpkgs] @jabranham opened pull request #52448 → Emacs site-start: Use correct feature name → https://git.io/fpxmh
<azazel>
is it possible to reference a an option that's a part of an "attrsOf (submodule foo)"?
<cransom>
o
<cransom>
oops. i've been noticing that on my hydra box, when hydra-update-gc-roots comes along, sometimes it notices outputs having disappeared (and i didn't disappear them). if i gc, some of my builds rerun
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
acarrico has quit [Ping timeout: 245 seconds]
sigmundv_ has joined #nixos
<srhb>
cransom: iirc hydra removes all the roots and rebuilds them from the database on each update-gc-roots
<srhb>
I'm not sure there's any sort of atomicity in that operation.
<srhb>
Worth checking out at least.
hyperfekt has joined #nixos
dermetfan has joined #nixos
sigmundv_ has quit [Ping timeout: 250 seconds]
tzemanovic has quit [Remote host closed the connection]
<ottidmes>
azazel: you mean its config, or the actual option? and what is the use case?
tzemanovic has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
<azazel>
ottidmes: the use case is to use mkAliasDefinitions to aggregate configs of the tree config.my.sites.foo.virtualHosts (and bar.virtualHosts and so on) to config.services.nginx.virtualHosts .... but after trying for some time I'm thinking of using plain mkMerge
<cyounkins>
I must be doing something stupid. nix-shell should build the dependencies for the target but not the target itself, right? Why does `nix-shell -I nixpkgs=/root/nixpkgs/ -p mupdf --pure` try to build mupdf?
dgarzon has left #nixos [#nixos]
jbgi has quit [Ping timeout: 264 seconds]
<cyounkins>
I guess I was using -E "with import <nixpkgs> {}; callPackage ./default.nix {}" before - shouldn't they do the same thing?
sigmundv_ has quit [Read error: Connection reset by peer]
jbgi has joined #nixos
dermetfan has quit [Ping timeout: 250 seconds]
reinhardt has quit [Quit: Leaving]
drakonis has joined #nixos
<ottidmes>
cyounkins: nix-shell -p and -E are not the same, with -p, mupdf becomes a build dependency rather than the subject for which the dependencies are build
<cyounkins>
I see, thank you.
<ottidmes>
cyounkins: if you check out the examples section of the nix-shell manpage you can see why
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<dmj`>
So, I can't sign a binary cache because the user on my nixos machine says its not privileged, despite it being in the wheel group
<dmj`>
How do I sign a store path
<cyounkins>
ottidmes: Right right. I wonder if there should be a simpler syntax for "build env with dependencies of X". The man page documentation is confusing to me "build the dependencies of the specified derivation" - I assumed -p specified the derivation. That being said the explanation of --packages / -p is clear. It's also a bit confusing that --expr / -E is not part of the synopsis.
crmlt has joined #nixos
EoF has joined #nixos
pietranera has quit [Ping timeout: 246 seconds]
EoF has quit [Client Quit]
Rusty1 has quit [Quit: Konversation terminated!]
ntd has joined #nixos
dermetfan has joined #nixos
ntd has quit [Remote host closed the connection]
ntd has joined #nixos
disasm_ has joined #nixos
Dedalo has joined #nixos
rawreraw has joined #nixos
disasm has quit [Ping timeout: 250 seconds]
<dmj`>
nevermind I got it
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
crmlt has quit [Ping timeout: 250 seconds]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<sphalerite>
dmj`: would be nicer if there were any response :p
dermetfan has joined #nixos
simendsjo has quit [Ping timeout: 240 seconds]
<dmj`>
indeed
<dmj`>
one man can only do so much
graphene has quit [Remote host closed the connection]
orivej has joined #nixos
jasongrossman has quit [Ping timeout: 250 seconds]
graphene has joined #nixos
stigo has quit [Quit: WeeChat 2.2]
<dmj`>
sphalerite: have you ever generated a keypair to be used to sign a cache
graphene has quit [Remote host closed the connection]
<sphalerite>
dmj`: yes. Using nix-store --generate-binary-cache-key
stigo has joined #nixos
<dmj`>
sphalerite: the secret key that gets generated is prepended with bytes that are not base64 encoded, notably the ':' character, should I strip this
<sphalerite>
dmj`: no
graphene has joined #nixos
<dmj`>
so nix will strip it for me?
<sphalerite>
dmj`: it's important for identifying the key, e.g. the private key for the official binary cache also starts with cache.nixos.org-1:
<dmj`>
sphalerite: ok, but I was getting errors related to the secret key not being base 64 encoded
<sphalerite>
dmj`: that's weird, are you sure you're using the right file?
<dmj`>
error: invalid character in Base64 string
<dmj`>
is exactly what I get
<{^_^}>
[nixpkgs] @cyounkins opened pull request #52451 → haskellPackages.megaparsec: disable tests on version 6.5 → https://git.io/fpx4r
<dmj`>
sphalerite: I'm using what that command generated
<sphalerite>
dmj`: are you using the right part of the key? How did you invoke --generate-binary-cache key and the signing command?
<dmj`>
nix-store --generate-binary-cache-key name secret public
lord| has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<sphalerite>
dmj`: and how are you trying to sign paths?
vk3wtf has quit [Ping timeout: 252 seconds]
sigmundv_ has joined #nixos
<dmj`>
I put the secret key in ~/.secret-cache-key
asymmetric_ has quit [Ping timeout: 250 seconds]
civodul has joined #nixos
<sphalerite>
right, and what command are you running to generate signatures?
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.atdgen: init at 2.0.0 »: https://git.io/fpxR6
tzemanov_ has quit [Remote host closed the connection]
<sphalerite>
mojjoo_: how is it not recognising the filesystems?
<mojjoo_>
it's the suggestion from the manual minus a swap
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<mojjoo_>
sphalerite: I would expect something like ` fileSystems."/" = .... ` and ` fileSystems."/boot" = ` in there... but none of it..
tzemanovic has quit [Remote host closed the connection]
<sphalerite>
mojjoo_: can you gist it or something?
tzemanovic has joined #nixos
<mojjoo_>
the hardware-config.nix ?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<catern>
hmm, is there some way to get all the nice features of Nix like modularity through function composition and building incrementally, while running arbitrary code with arbitrary network access etc?
tzemanovic has joined #nixos
janneke has joined #nixos
<catern>
essentially I just want to promise that this code is reproducible
tzemanovic has quit [Remote host closed the connection]
<janneke>
o/
arjen-jonathan has quit [Ping timeout: 252 seconds]
<sphalerite>
catern: disable the snadbox
<sphalerite>
catern: minus typos
<sphalerite>
mojjoo_: yes
<catern>
also, somewhat relatedly, how does Hydra achieve distributing a Nix build over multiple machines? It doesn't use the build hook mechanism right? IIRC it handles taking the low-level derivations and distributing them and building them itself?
<dmj`>
sphalerite: now I get "does not have a valid signature for bash<hash>"
<dmj`>
etc.
<__red__>
soooo
<gchristensen>
catern: it basically runs nix-store --realize /path/to/.drv
<sphalerite>
dmj`: couldyou run `nix path-info --sigs <path> --store <substituter>`?
<catern>
gchristensen: for each drv in the tree?
<__red__>
A week or so ago I comitted to writing a wiki article on using mediawiki (Done). I also comitted to moving it out of the apache subservices and into its own thing.
<gchristensen>
catern: yeah
<__red__>
Can someone link me an example of something that would be a good model for me to adopt for how to apply mediawiki please/
<catern>
gchristensen: so - you said basically - it does actually use Nix to do the build? or does it handle parsing the build itself?
<gchristensen>
catern: on the remote, it is bog standard nix doing the building
<catern>
er, parsing the drv itself and running it itself*
<catern>
I'm considering doing execution of a low-level-derivation "outside Nix" - parsing the drv in whatever way then just directly forking and execing it
<catern>
(oh, and also realising the inputs first)
<gchristensen>
catern: on the hydra side, it is doing the same thing as if you were using nix-build with an /etc/nix/machines file and regular remote building setup up ... but instead as part of a hydra-queue-runner process for Large Scale Nix Building.
<catern>
gchristensen: ah sure I see
<gchristensen>
but the queue runner is C++ building against Nix itself, so it really is just using Nix -- just a tiny bit differently.
kvda has joined #nixos
__monty__ has quit [Quit: leaving]
rawreraw has joined #nixos
<pmade>
Anyone have any links or ideas about using NixOps/Disnix + auto scaling to replace k8s?
<kvda>
Has anyone used Nix with Python? I have a fairly basic derivation that doesn't let me install any python packages due to permission errors.. Is there a way of particular way that you need to set up python so 'pip install ...' will work?
<kvda>
Thanks ivan cyounkins, somehow I missed that in my searches
<simpson>
pmade: I'd go the other direction, frankly. What are you hoping to gain?
soc8es has joined #nixos
soc8es has quit [Read error: Connection reset by peer]
soc8es has joined #nixos
<pmade>
simpson: The ability to use NixOS modules to configure services, and deploy them to an environment that scales with load automatically.
<simpson>
pmade: Ah, interesting. I've been using kubenix for that recently. It has a bit of a learning curve and no docs, though.
rawreraw has quit [Ping timeout: 240 seconds]
<cyounkins>
Does Hydra re-build failed derivations if nothing changes?
soc8es has quit [Client Quit]
<pmade>
simpson: Hmm. I (briefly) looked at kubenix but it didn't look like I could use NixOS modules. I'm guessing I can't since NixOS doesn't run in Docker. How do you define your services with kubenix?
<Ralith>
rycee: do you ever have issues with home-manager-managed gpg-agent needing to be killed after upgrades?
<unacceptable>
Reading the nix expression leads me to believe I should add 'hardware.ckb-next.enable = true;' in my confguration.nix, but nixos-rebuild dislikes this and says it doesn't exist
<simpson>
pmade: At any rate, systemd is essential to NixOS and not really available on k8s.
<pmade>
Which is a bummer. For all the crap it gets I like systemd.
<unacceptable>
what have I done wrong? D:
ddellacosta has joined #nixos
<makefu>
unacceptable: probably discrepancy between the sources you've read and the channel you are using
cyounkins has quit [Remote host closed the connection]
<unacceptable>
hmm
<unacceptable>
Let me look in my actual nix store then
<unacceptable>
well
cyounkins has joined #nixos
<unacceptable>
the nixpkgs under root
<unacceptable>
ahhhh
<unacceptable>
Thank you makefu - it's just 'ckb' in there
jbgi has quit [Ping timeout: 250 seconds]
<unacceptable>
I don't want to state how long I've been looking at that :P
<unacceptable>
It also took me too long to figure out 32-bit GPU drivers for steam XD
<unacceptable>
I love learning!
cyounkins has quit [Ping timeout: 240 seconds]
<mbrgm>
hey! how can I put a shell script on my path using nix-env? I used to put them in some dir and then add that dir to the path, but I guess there must be a more elegant solution by creating a derivation and adding that to nix-profile/bin? maybe someone has an example snippet?
<rycee>
Ralith: Hmm, no I haven't noticed any such issue with gpg-agent. What kind of symptoms are you seeing?
slack1256 has quit [Ping timeout: 244 seconds]
<makefu>
unacceptable: there is https://nixos.wiki/wiki/Steam (and of course the many other sites with quirks there)
<{^_^}>
[nixpkgs] @fpletz pushed 4 commits to release-18.09: https://git.io/fpxg2
<unacceptable>
makefu, thanks, I'm quite new to nix in general. Toyed with it for a bit a year or so ago, but functional programming is almost entirely new to me
<unacceptable>
Think I'm starting to get it though
<makefu>
i am trying to promote the wiki whenever i get the chance
<unacceptable>
It's good!
<unacceptable>
I've started to understand a lot about nix expression syntax, mostly from the slant of "I want this, how do I get nixos to give me it"
<unacceptable>
It _does_ take a bit of effort, that
simukis has quit [Quit: simukis]
<Ralith>
rycee: I often have gpg-agent stop responding, with attempts to access it via ssh hanging for a long time then finally dying with `sign_and_send_pubkey: signing failed: agent refused operation`, which is corrected by killing the gpg-agent process. My unconfirmed suspicion is that this happens I've ran `home-manager switch` and gotten a gpg-agent update, but the gpg-agent service was not restarted to use the new update.
<unacceptable>
Like it's working really hard to search the packages, harder than say apt-get has to search
<Ralith>
not a huge deal, but odd
sbdchd has quit [Remote host closed the connection]
<rycee>
Ralith: No, I haven't seen that before. Do you have `systemd.user.startServices = true` in your configuration?
<Ralith>
I thought I did, but looks like no
<Ralith>
that might be it, thanks
<Ralith>
must've gotten lost when I was switching back and forth between stable and master
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fpx2o
<rycee>
Ralith: Hope it works better now 🙂
<Ralith>
kind of curious how gpg-agent has been getting started at all now
<rycee>
Ralith: It is socket activated.
<rycee>
So it'll start automatically if anything wants to talk to it.
<Ralith>
ah
rfold has quit [Quit: leaving]
<ldlework>
hiya rycee
sbdchd has joined #nixos
<rycee>
ldlework: Howdy!
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<rycee>
mbrgm: Assuming your scripts are in ./bin then perhaps installing something like `(runCommand "my-scripts" {} ''mkdir $out/bin; cp ${./bin}/* $out/bin;'')` would work.
<clever>
rycee: ./. is going to have the identical effect, without any runCommand (if bin is the only thing in . )
<mbrgm>
rycee: I found pkgs.writeScriptBin in the meantime... seems like this is meant for what I'm trying to do?
<rycee>
clever: True, that is certainly shorter 🙂
Ariakenom has quit [Quit: Leaving]
<rycee>
mbrgm: Yeah, writeScriptBin is quite convenient but does one script at a time and takes a string containing the script as argument.
dslegends has quit [Quit: dslegends]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
elgoosy has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « olm: 2.3.0 -> 3.0.0 »: https://git.io/fpxwz
<apaul1729>
testing out a package with nix-build that uses `make` but has a non-default checkPhase. why is the stdout from checkPhase shown but not the stdout from the buildPhase (`make`)?