stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
pemeunier has quit [Ping timeout: 245 seconds]
stepcut has quit [Ping timeout: 255 seconds]
shibboleth has joined #nixos
Makaveli7 has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @andir pushed commit from @7c6f434c to release-19.03 « pythonPackages.pyside: fix build by passing mesa for GL/gl.h »: https://git.io/fjvGH
jluttine has quit [Ping timeout: 250 seconds]
stepcut has joined #nixos
adam_ has joined #nixos
InFlames has quit [Ping timeout: 272 seconds]
stepcut has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
<manveru>
qyliss: you mean building the manual?
stepcut has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<manveru>
qyliss: it's actually https://github.com/NixOS/nixpkgs/tree/master/doc and you can build it via `nix build -f '<nixpkgs/doc>'` or if you've got a clone of nixpkgs `nix build -f ./doc`
jluttine has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjvGh
drakonis_ has joined #nixos
<colemickens>
does nix pull from binary caches with multiple threads?
jluttine has quit [Ping timeout: 245 seconds]
<qyliss>
manveru: I was just hoping it was already on my system somewhere
<dramforever>
At runtime it seems to want libgbm.so and libEGL.so. It seems like multiple packages provide them. How should I choose?
<dramforever>
Picking random ones leads to error like Failed to swap buffers for context 11789472 current. Error: BAD_SURFACE (Details https://pastebin.com/rGtPsp6Y )
<clever>
/run/opengl-driver/lib/libEGL.so
<clever>
dramforever: nixos puts that into LD_LIBRARY_PATH automatically
<dramforever>
I don't have that file
<clever>
dramforever: are other files present in that dir?
<dramforever>
The top of the backtrace is osuTK.Platform.Egl.EglContext.SwapBuffers()
<dramforever>
So I think it's a libEGL issue
* dramforever
is leaving for lunch
o1lo01ol1o has joined #nixos
<`_>
I've a set of systems in which I previously defined users without uids, however the need for uids has arisen. So, I defined the uids, and I'm seeing "warning: not applying UID change of user 'x' (1000 -> 1004)" when attempting to deploy the systems via nixops. I have confirmed that the uids have not changed. Is there any way to enforce this change?
jasongrossman has joined #nixos
<clever>
`_: nixos avoids changing the uid of users, because the files they own wont be updated, youll need to manually fix the uid in /etc/passwd, /var/lib/nixos/uid-map, and also chown every file the user had, to the new uid
<`_>
AFAIK the users don't have any files so that's fine by me
<`_>
clever: Thanks
<`_>
Err, actually there is the skeleton user stuff so I'll need to be cognizant of that.
slack1256 has quit [Remote host closed the connection]
<CMCDragonkai>
When using gpg2 as root (via `sudo -i`), if you try to do anything that requires contacting the gpg-agent, operations will fail because it is not able to contact the pinentry program.
wykurz has quit [Quit: Leaving]
<CMCDragonkai>
The solution to this is to first `chown root $(tty)`
<CMCDragonkai>
then run the gpg2 as sudo, then chown back to the original owner
<CMCDragonkai>
this seems really weird, is there no solution that makes the gpg-agent and pinentry accessible to the sudo environment automatically?
drakonis1 has quit [Quit: WeeChat 2.3]
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #57777 → broadlink-cli: init at 0.9 → https://git.io/fjvnW
vk3wtf has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
jasongrossman has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #57778 → xorg: batch of updates, bump luit → https://git.io/fjvnE
<mkovacs>
hi all! i'm working for a small robotics startup, and am setting up a private overlay for distributing our internal packages using Nix
endformationage has quit [Quit: WeeChat 2.4]
<mkovacs>
came up with a scheme where each of our GitHub repos contains a package.nix file, and each entry in the overlay uses a small helper function to fetch the repo and import the package.nix file
<mkovacs>
i haven't seen this particular pattern before, so i'm wondering if there are any known pitfalls to it
dramforever has quit [Quit: Leaving]
jasongrossman has joined #nixos
<HatesLongFiles>
how do i remove systemd-grub and install grub
<HatesLongFiles>
so i can add custom boot entries
init_6 has joined #nixos
<aaronduino[m]>
mkovacs: I don't know much about the topic, but maybe my answer is better than no answer? I think this isn't done in nixpkgs because upstream cannot always be trusted to implement things correctly and keep it up-to-date
<aaronduino[m]>
mkovacs: but that wouldn't apply to internal code, as you described
<mkovacs>
aaronduino: that makes sense, thanks for the explanation!
<aaronduino[m]>
mkovacs: no problem. I try my best :-)
<HatesLongFiles>
anyone?
MightyJoe has joined #nixos
cyraxjoe has quit [Read error: No route to host]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<HatesLongFiles>
wait, is it safe to install grub over systemd-boot
<aaronduino[m]>
> If there are other operating systems running on the machine before installing NixOS, the boot.loader.grub.useOSProber option can be set to true to automatically add them to the grub menu.
<aaronduino[m]>
"before installing NixOS" :-/
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):222:84
<aaronduino[m]>
HatesLongFiles: It sounds like you don't need to configure the boot entries through NixOS. So maybe treat the missing boot entry as something independent of NixOS
<aaronduino[m]>
HatesLongFiles: It sounds like you don't need to configure the boot entries through NixOS. So maybe treat the missing boot entry as something independent of NixOS?
<HatesLongFiles>
and i do nixos-rebuild boot right?
<HatesLongFiles>
as root
<HatesLongFiles>
user
<aaronduino[m]>
I'd be careful
<aaronduino[m]>
what you did may make your machine unbootable
<HatesLongFiles>
if so there are no new entries in /boot/loader/entries
<aaronduino[m]>
Based on what I read in the github comment linked above, it sounds like you shouldn't mess with NixOS boot options, but rather should manually edit some file(s) in /boot
<aaronduino[m]>
(imperatively, not declaratively)
<HatesLongFiles>
welp nixos-rebuild switch didnt work, as again there are no new configs
<HatesLongFiles>
even though i have boot.loader.grub.useOSProber = true;
<aaronduino[m]>
useOSProber might only do something when installing NixOS (or at least such is implied by the NixOS manual)
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
<aaronduino[m]>
if you undo the changes to your config that you made in an attempt to create entries for your other OS, does nixos-rebuild switch work again?
<aaronduino[m]>
Also, what's the other OS you want to boot to?
<Ashy>
hmm, the zfs kernel on 19.03 seems to fail to compile atm
<init_6>
latest kernels drop any chanses to use zfs
<Ashy>
anyone else running 19.03 on zfs?
<Ashy>
ah right, hmm might be time to swap to btrfs finally then
<srhb>
Ashy: I'm sure they'll figure out something.
iyzsong has quit [Ping timeout: 264 seconds]
<klntsky>
srhb: thanks
<{^_^}>
[nixpkgs] @lheckemann pushed commit from @dtzWill to staging-19.03 « libseccomp: 2.3.3 -> 2.4.0 »: https://git.io/fjvcw
Ariakenom has joined #nixos
zupo has joined #nixos
zupo has quit [Client Quit]
offlinehacker has joined #nixos
<jasongrossman>
Ashy: I'm running 19.03 or zs. Or zfs on 19.03.
<jasongrossman>
I mean, on unstable - that's the same as 19.03, isn't it?
<srhb>
jasongrossman: Technically unstable is now 19.09pre
<aaronduino[m]>
Unstable would be at least 19.09, no?
<aaronduino[m]>
Yeah
<srhb>
But I'm guessing Ashy is using a newer kernel than mainline 19.03beta
<srhb>
I'm guessing it'll be a few weeks before ZFS works there still, at least.
<jasongrossman>
Well ZFS is fine on both stable and unstable, and should also be fine with the latest kernels ... but I don't know whether NixOS supports ZFS with the latest kernels yet.
<jasongrossman>
I have trouble telling the difference between "3" and "9".
<srhb>
jasongrossman: afaik the 5.x compatibility patches didn't land in zfs yet, so zfs is not fine in 5.x yet, on NIxOS or elsewhere. Is that incorrect?
<srhb>
(re. the missing exported symbols)
<jasongrossman>
srhb: As far as I know, that's correct.
<jasongrossman>
So is 19.03 now stable (by the way)?
<srhb>
So, indeed, using linuxPackages_latest on 19.03 or unstable should fail.
<srhb>
It is not, it is a beta so far.
<jasongrossman>
OK, cool.
<srhb>
(The freeze/branch-off happened in the beginning of march or thereabouts, stabilization usually takes about a month)
<srhb>
But at that point it has diverged from master already, and lives as its own "stable" branch
<jasongrossman>
srhb: I see. Interesting. (Doesn't affect me personally because I always use unstable. But interesting anyway.)
<rotaerk>
and if I `echo $PATH`, I see the store paths for both vulkan-tools and glslang in there
<rotaerk>
but if I build my project with cabal new-build, and I have it immediately error out during compilation and print the PATH variable, it contains vulkan-tools but *not* glslang
<rotaerk>
any idea why one would be present and the other missing?
_kwstas has quit [Read error: Connection reset by peer]
<anon156>
Hi guys, I'm a newbie user andI'm I'm willing to learn more but I don't really know where I can start ... I'm looking for a way to install Mathpix (a package from snapcraft) on NixOS, do you guys have any idea where I can start? Thanks in advance.
<anon156>
Hum, it does sound feasible, I look into it a bit more thanks a bunch guys!
<rotaerk>
I've noticed if I build my haskell project, which runs some template-haskell code at compile time, if I make that TH code print the process's environment, the PATH doesn't match the PATH I see from the shell, but HOST_PATH does
<rotaerk>
is that nix's doing?
<__monty__>
anon156: rPackages (or pythonPackages, or haskellPackages) that provide binaries can just be installed for the binaries rather than use as a dependency.
<__monty__>
,locate bin/mathpix
<{^_^}>
Couldn't find in any packages
<__monty__>
Hmm, that's normally how you would look for binaries, no?
<Yaniel>
,locate mathpix
<{^_^}>
Couldn't find in any packages
<Yaniel>
assuming it's the unix command, but I guess it's not
drakonis1 has joined #nixos
<anon156>
Hum seem like the R library use directly an API but not mathpix itself
pie_ has joined #nixos
erictapen has joined #nixos
linarcx has joined #nixos
adam_ has joined #nixos
<yl[m]>
LnL: has anything changed on the Darwin machines in Hydra? buildGoModule tests that did pass last week, are now failing in my backport PR #57805 : https://logs.nix.ci/?key=nixos/nixpkgs.57805&attempt_id=08200bcb-2cea-4f4b-9c3e-a4902ebcc337
channingtatums has quit [Ping timeout: 250 seconds]
<rotaerk>
I removed vulkan-tools from the buildInputs of my nix-shell, but `cabal new-build` running compile-time code to display the environment ... still has vulkan-tools in $PATH
grumble has quit [Read error: Connection reset by peer]
grumble has joined #nixos
<rotaerk>
figured out my problem; don't think it was nix. cabal seems to cache the PATH that template-haskell code sees, so I needed to run cabal new-clean
freeman42y has joined #nixos
<{^_^}>
[nixpkgs] @dywedir opened pull request #57813 → miniflux: 2.0.14 -> 2.0.15 using buildGoModule → https://git.io/fjvRf
freeman42x has quit [Ping timeout: 258 seconds]
tankf33der has left #nixos [#nixos]
<anon156>
__monty__ I understood that way too, there's no bin in this R package because it doesn't use it any, it use directly an online API. But knowing this will certainly come handy for other package, thanks :)
<{^_^}>
[nixpkgs] @veprbl pushed commit from @artemist to master « factorio: experimental 0.17.12 → 0.17.14 (#57763) »: https://git.io/fjvRZ
<palo>
what is the pattern I use, when I want to use a service form `man configuration.nix` (e.g. services.icecast.enable) but if you don't want to have it in "autostart" I tried systemd.service.icecast.wantedBy = lib.mkForce []; but it doesn't seem to work
<clever>
palo: look up the nix file the service is defined in, and see what the systemd service is called
<palo>
the file makes systemd.services.icecast.wantedBy = [ "multi-user.target" ];
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57814 → mg: use build system pkg-config → https://git.io/fjvR4
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57815 → libassuan: use config flag to specify libgpg-error prefix → https://git.io/fjvRR
<palo>
hmm seems it did work, but nixos-rebuild was restarting it, because, it was started before
<palo>
or something
<klntsky>
How deal with `python -m` on nixos? I get "No module named nuitka.__main__; 'nuitka' is a package and cannot be directly executed" when trying to run the usual "python3 -m nuitka ..."
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57816 → nodejs: cross compile runtime for ARM → https://git.io/fjvR0
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57817 → devmem2: use $CC instead of cc to build → https://git.io/fjvRu
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57818 → gnupg: use config flags to find lib prefix instead of their binary tools → https://git.io/fjvR2
<srhb>
klntsky: Can't reproduce. Can you be more specific?
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57820 → tree: use $CC instead of cc to build → https://git.io/fjvRP
ikitat has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57821 → highlight: use $CXX instead of c++ to build → https://git.io/fjvRM
acarrico has quit [Ping timeout: 250 seconds]
<klntsky>
srhb: I tried running using `nix-shell -p` and the error was the same.
<srhb>
klntsky: Did you use --pure ?
<klntsky>
Yes, sure.
<{^_^}>
[nixpkgs] @illegalprime opened pull request #57822 → nmap: lua scripting support is optional → https://git.io/fjvR9
<srhb>
klntsky: Ah yes, I can reproduce this on 18.09 with python34
acarrico has joined #nixos
<klntsky>
AFAIK this is because python packages are not python applications and they do not contain executables. However, there is no `nuitka` executable available...
<klntsky>
I've tried all versions from 34 to 37 - same result
<srhb>
klntsky: Maybe the issue is just that older nuitkas really do not contain nuitka.__main__ while newer versions do?
<pie_>
hm. im trying to monkeypatch pywebkitgtk so it doesnt fail on a security assertion, is there any way to get something like this to work?: lib.remove webkitgtk24x-gtk2 python27Packages.pywebkitgtk.buildInputs
<srhb>
pie_: as in, overrideAttrs and filter out that path from the old buildInputs?
<pie_>
it fails too fast, i cant remove it from the list because any reference to webkitgtk24x-gtk2 immediately fails if you try to eval it (which is needed for equality checking i guess)
<pie_>
srhb, yeah
<srhb>
pie_: Yeah, you're stuck with either allowing a broken package or reconstructing the list from scratch then
<pie_>
error: Package ‘webkitgtk-2.4.11’ in /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/development/libraries/webkitgtk/2.4.nix:21 is marked as insecure, refusing to evaluate.
<pie_>
meh ok
<srhb>
pie_: Or call the package again, setting that input to null, that might work..
<srhb>
Like, with override
<srhb>
pie_: Or override it to some other fake package :)
<srhb>
noonien: In my experience, it varies quite a lot how to do that nicely depending on the project specifics, but sure..
<srhb>
pie_: :P
<pie_>
* ;~;
<noonien>
the repo contains multiple programs, i'm thinking of specifying all of them in default.nix, so i can build them with nix-build, but also use them in shell.nix to have available the ones that are needed during development
rycwo has quit [Ping timeout: 258 seconds]
thomashoneyman has joined #nixos
<klntsky>
however, when running the `nutka` binary i get https://pastebin.com/raw/B0YG5imL - the error spawns only when I try to compile a python script; when just running nuitka without arguments, it starts normally
<noonien>
they're mostly go progams, but that should only matter when creating the actual derivations
camsbury has joined #nixos
<srhb>
noonien: For top level shells you might like to use mkShell to collect all the sub-derivations I suppose
<thomashoneyman>
garbas: i'm checking out your dotfiles right now, they look awesome
<thomashoneyman>
i like the idea of generating config files via nix, like i3 configuration via i3.nix
<noonien>
srhb: yup, that's what i'm planning, i think i mostly know how to do just, but it never hurts to see what others have come up with
<srhb>
noonien: Definitely. Sorry, no examples online spring to mind...
<srhb>
Yeah, I think I can relate. fwiw I think the most succesful approach is starting simple and improving based on needs, at least until someone makes that great example online.
<noonien>
yeah, i think that's what i'm probably going to do, nix is simple enough to help me, instead of getting in my way
<das_j>
Hm, how do I set the maintainer of a nix derivation that is built by hydra so custom notifications are sent? meta.maintainer in the derivation doesn't seem to work
martinb has joined #nixos
<Thra11>
If I build a package with pkgsCross, it ends up depending on lots of host-platform packages as well as the target-platform packages. Is this normal? Dependecy tree: http://sprunge.us/iOcSCX
<{^_^}>
[nixpkgs] @gebner opened pull request #57826 → anbox: init at 2019-03-07 → https://git.io/fjv0E
o1lo01ol1o has quit [Remote host closed the connection]
rauno has joined #nixos
erictapen has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @grahamc merged pull request #57790 → Llvm: mark as big parallel → https://git.io/fjvlX
<srhb>
das_j: I don't think notifications have been reenabled on Hydra.
thomashoneyman has quit [Ping timeout: 256 seconds]
<das_j>
srhb: It's about my own hydra instance
<srhb>
das_j: Ah!
slack1256 has quit [Remote host closed the connection]
<srhb>
das_j: Actually, it may still be the case that it's disabled deep in the bowels of the source, but I'm unsure now..
<das_j>
srhb: It is. email_notification = 1 is what's needed to reenable them ;)
<das_j>
And I think I found the maintainer stuff
<srhb>
Alright, good :)
<das_j>
meta.maintainers needs to be a list of mail addresses it seems
<das_j>
(comma-separated)
stepcut has quit [Remote host closed the connection]
<gchristensen>
I think the format was updated, das_j
stepcut has joined #nixos
<gchristensen>
that might still work - but check out maintainers.nix in Nixpkgs for a newer, more robust format
<das_j>
gchristensen: Surely doesn't look like it. I checked the current Hydra code and it just splits at comma
stepcut has quit [Remote host closed the connection]
<das_j>
However, I think there's a PR
<colemickens>
I have a nixos config + nixpkgs that I expect to evaluate identically that is not doing so when I build it with nix on ubuntu. Is this ever expected?
<colemickens>
It seems to be related to something in ffmpeg, possibly? I'm not sure how to investigate or what to expect.
<das_j>
Is there a way to set top-level attributes from a system? Like meta?
blipp has joined #nixos
zupo has joined #nixos
<das_j>
ma27: I doubt any single person is able to properly run Hydra without any patches
stepcut has quit [Ping timeout: 268 seconds]
<simpson>
das_j: I did, for about a year. But it wasn't enjoyable. I think that we should keep getting Hydra PRs merged.
Makaveli7 has quit [Ping timeout: 272 seconds]
<gchristensen>
simpson++
<{^_^}>
simpson's karma got increased to 3
<blipp>
Hi, I am having a problem with `nixos-rebuild switch --upgrade`: “error 9 while decompressing xz file”. Here is a paste of the last lines: https://pastebin.com/Vbky4pGs and here is a paste of the troubleshooting script from cache.nixos.org: http://ix.io/1DNS Happy about any help, feel free to point me to another place if this is not the appropriate one to ask this question :)
stepcut has joined #nixos
knupfer has joined #nixos
ng0 has joined #nixos
<blipp>
Forgot to say, I am on NixOS stable 18.09
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
ng0 has quit [Client Quit]
<gchristensen>
das_j, simpson: want to send me a "top 5" patches you'd like merged?
<das_j>
gchristensen: Hydra? wait
<simpson>
gchristensen: https://github.com/NixOS/nixpkgs/pull/56817 alone would make me happy. Indeed, merely cherry-picking the no-rebuild-needed parts would be nice. And then I +1 whichever next four PRs das_j picks.
<das_j>
gchristensen: In this order: So #629 of course, #594 would make my inbox smaller, #569 would give me a much better overview, #628 (because it's mine :3)
<das_j>
gchristensen: Oh, just saw the hydra# syntax :O
erictapen has joined #nixos
agander_ has joined #nixos
<simpson>
Ah, okay. So hydra#636 and hydra#607 look like a nice pair, hydra#629 looks quite reasonable, hydra#624 is an a11y and usability win with popular support, and uh how about hydra#561 should obviously either be in or out.
<das_j>
Wait, your Hydra signs all derivations itself?
ikitat has joined #nixos
<gchristensen>
that is a fancy looking module
<das_j>
ma27: I doubt your sendmail stuff will do anything unless you set extraEnv.EMAIL_SENDER_TRANSPORT = "Sendmail"; because the nixpkgs hydra module defaults to SMTP
<scientist>
but it would not switch to my custom keyboard layout ?
<ma27>
Thanks :) although I use it for my personal setup, I wouldn't consider it more than a draft for yet
goibhniu has joined #nixos
<scientist>
any tips to help me solve this problem would be greatly appreciated.
ikitat has quit [Ping timeout: 244 seconds]
<hyper_ch_>
how can I find out why in nixos the network interface only connects with 100mbit instead of 1gbps? I tried several network cables all the same, even different ports on the switch while all other dvices connect with 1gpbs
<clever>
hyper_ch_: one min
<{^_^}>
[nixpkgs] @roberth opened pull request #57829 → Add VSCode extensions for Haskell → https://git.io/fjvE2
<clever>
hyper_ch_: `mii-tool -v eth0` what does it say?
<hyper_ch_>
mii-tool not found ;)
<clever>
hyper_ch_: `link partner` is the key thing thats missing from your pastebin
<ma27>
das_j: I'm not sure anymore, let me have a look into it. But please be patient, currently travelling and german trains aren't known for their good wifi :)
<clever>
,locate bin mii-tool
<{^_^}>
Couldn't find in any packages
<hyper_ch_>
clever: well, will install it
<das_j>
ma27: Because your wifi is on ICE?
<clever>
nettools.out 1,466 x /nix/store/5zi0g3ngaf189vp4aabpvpk3pypdq5sw-net-tools-1.60_p20120127084908/share/man/man8/mii-tool.8.gz
<clever>
bash-completion.out 847 r /nix/store/4va32apahbksvnr1bq3jyy4dqr06ghqk-bash-completion-2.5/share/bash-completion/completions/mii-tool
<clever>
hyper_ch_: strange, its not in any package!
<hyper_ch_>
oh... right
Shouou has joined #nixos
<das_j>
ma27: I had to fix it myself today, so I am pretty sure it won't work like that
<scientist>
could you guys take a look at those three links, I think I need to change services.xserver.layout = "us"; but i am not sure
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
<hyper_ch_>
clever: the pastebin output abvoe is all that ethtool showed
Athas has joined #nixos
<Athas>
Hi, I'm a fairly new Nix user. I want to contribute a fairly small change to nixpkgs. What is the easiest way for me to test my changes locally?
<gchristensen>
what package do you want to change?
<srhb>
Athas: You're coming to the nix meetup in cph? :)
goibhniu1 has joined #nixos
<ma27>
das_j: first of all thanks a lot for having a look at that stuff. The thing is, emails work fine and for some reason the environment from the nixpkgs module doesn't appear in the config of hydra-queue-runner.service. I suspect that you've just discovered a case where I screwed merging of several configs up. I'll hope I have sufficient time next week to debug this.
xkapastel has quit [Quit: Connection closed for inactivity]
<das_j>
ma27: It shouldn't be an issue when Hydra is able to connect to localhost via SMTP
goibhniu has quit [Ping timeout: 272 seconds]
<ma27>
You can curl the API endpoints with an "Accept: application/json". Without that change, an HTML response appears
scientist has quit [Quit: WeeChat 2.2]
<gchristensen>
which API endpoints?
<gchristensen>
and couldn't I do that before?
<das_j>
Is there a way to get all root attributes from a release.nix?
<ma27>
das_j: wait, the config for smtp only applies if smtpHost != null :)
<das_j>
ma27: Oooh, that's why m(
<das_j>
Thanks for troubleshooting my Hydra over IRC ;)
balsoft has quit [Ping timeout: 272 seconds]
<ma27>
gchristensen: /machines and /evals IIRC
<gchristensen>
ma27: cool, thanks
Makaveli7 has joined #nixos
crmlt has joined #nixos
MarcWeber has quit [Remote host closed the connection]
balsoft has joined #nixos
crmlt has quit [Client Quit]
crmlt has joined #nixos
martinb has quit [Ping timeout: 258 seconds]
<gchristensen>
remember when nixpkgs didn't take 15min to evaluate :|
goibhniu has joined #nixos
Dr8128 has joined #nixos
goibhniu1 has quit [Ping timeout: 246 seconds]
sinner has joined #nixos
<equivrel>
What is the best way in NixOS to ensure that some directory exists?
adam_ has quit [Ping timeout: 250 seconds]
sinner is now known as Guest60922
<tilpner>
equivrel: systemd.tmpfiles.rules is okay
<equivrel>
I have tried putting mkdir foo in boot.initrd.postMountCommands and it doesn't seem to be run, nor can I find a record of it in any logs
thomashoneyman has joined #nixos
<equivrel>
This isn't for temporary files though: on the contrary, I am setting up a webserver and want to make sure that a root directory is always created.
<tilpner>
Yes, you can use those for permanently temporary files too
<thomashoneyman>
hey folks -- i'm just setting up dotfiles for the first time and I'd like to generate some config files (like my .gitconfig, .config/i3/config, etc.) from Nix files during build
<tilpner>
I dislike it for the string configuration, but it's still easy to use
Guest6234 has quit [Ping timeout: 250 seconds]
<tilpner>
thomashoneyman: home-manager has a few generators
<thomashoneyman>
i've been digging around but haven't found a simple example of writiguration.nixing a text file from a Nix expression and then running that from conf
<buffet>
thomashoneyman: check out home-manager
<tilpner>
thomashoneyman: Something went wrong with that line. "e of writiguration.nixing a text f"
<thomashoneyman>
*simple example of writing a text file from a Nix expression then running that from configuration.nix
<equivrel>
tilpner: I see, thanks
zupo has joined #nixos
<thomashoneyman>
checking out home-manager
<thomashoneyman>
thanks!
<tilpner>
thomashoneyman: If you want to roll it yourself, you can use systemd.tmpfiles.rules to link your generated config file into place
<thomashoneyman>
right now I'm missing some intermediate steps
goibhniu1 has joined #nixos
<tilpner>
thomashoneyman: That would have the advantage of not having to restart i3 (over services.xserver.windowManager.i3.configFile)
<thomashoneyman>
i can write a say git.nix file that writes out a gitconfig text file with writeText (I think) but i'm not sure how to actually _run_ that.
<tilpner>
You don't "run" Nix files, you evaluate the expression in it
<tilpner>
So: import ./my-config.nix
goibhniu has quit [Ping timeout: 272 seconds]
<tilpner>
Or more likely: pkgs.callPackage ./my-config.nix {}
<tilpner>
This second line would provide you with writeText in my-config.nix
<tilpner>
So you can write:
<tilpner>
{ writeText }:
<tilpner>
writeText "foo" '' ... ''
<tilpner>
Here, writeText would return a derivation that can be built to a store path which contains the specified text
shabius has quit [Ping timeout: 258 seconds]
chreekat has quit [Ping timeout: 264 seconds]
<thomashoneyman>
lets say i'd like to skip configuration.nix for now
<tilpner>
Sure
<thomashoneyman>
and simply write a Nix expression i can evaluate which will produce a text file
<thomashoneyman>
you already provided an example there, those two lines
<thomashoneyman>
say i have that in a file
<thomashoneyman>
can i simply evaluate the expression with nix-build?
<thomashoneyman>
these questions feel pretty elementary -- i can also go back to the manual
<tilpner>
That's what I sometimes do for quicker feedback
<tilpner>
But then cat needs to be eof-ed if the build fails
<thomashoneyman>
cool, that's a good tip
<tilpner>
This would also prevent the result link
<thomashoneyman>
i'm reviewing home manager now
scientist has quit [Client Quit]
<thomashoneyman>
it looks good, though i might stick with manual / minimal to get a better feel for things
<balsoft>
Hello everyone! I've got a packaging question.
<balsoft>
Is there any way to check if meta is correct?
<balsoft>
Locally, without publishing to github and using grahamc automation
<tilpner>
There's a nixpkgs-lint script, but I've never used it
_kwstas has joined #nixos
mojjo has joined #nixos
<balsoft>
Ty
<{^_^}>
[nixops] @mwilsoninsight opened pull request #1115 → Allow Azure VMs to be reached by private IP address if specified → https://git.io/fjvul
_kwstas has quit [Read error: Connection reset by peer]
crmlt has quit [Ping timeout: 246 seconds]
JosW has joined #nixos
_kwstas has joined #nixos
goibhniu1 has quit [Ping timeout: 245 seconds]
<mojjo>
hi! I have some trouble running a python code on nixos. I get this error: `tarfile.ReadError: file could not be opened successfully` and after a research it turned out to happen if python is installed without zlib support. do you have an idea how to verify/fix this?
<tilpner>
Both pythons have zlib in buildInputs though
Thra11 has quit [Ping timeout: 245 seconds]
<buffet>
hey, i changed `environment.binsh` to dash. `/run/current-system/sw/bin/sh` still points to bash though. (1) why? (2) how do i fix that?
<tilpner>
Huh, is that new in unstable?
<buffet>
referring to me?
<buffet>
nah, its just undocumented
<tilpner>
That sounds like a great way to break your system
<buffet>
ikr?
<tilpner>
Try overriding system.build.binsh too
<tilpner>
It's set to bashInteractive and is used in config/shell-environment.nix
scientist has joined #nixos
<tilpner>
... where it's defined
<scientist>
do any of you guys understand xkb ? i have a problem that i need help with
<tilpner>
(Disregard that, it doesn't matter)
goibhniu has joined #nixos
<buffet>
that changed way too much stuff, im scared
<buffet>
still bash-interactive
<tilpner>
Is dash in systemPackages?
slack1256 has joined #nixos
<buffet>
no, i just `environment.binsh = "${pkgs.dash}/bin/dash";`
<tilpner>
And then somehow make it take priority over the bash that is also in systemPackages (probably)
<tilpner>
And then your symlink will change
scientist has quit [Client Quit]
<buffet>
how do i change priority?
<balsoft>
Uhm, I've got another question that might look nooby
<buffet>
bash isnt in sytemPackages
<balsoft>
But I can't build mopidy+mopidy-gmusic on unstable NixOS
everybodyHertz has joined #nixos
<tilpner>
buffet: I'm pretty sure it is
<buffet>
tilpner: not explicitly at least
<balsoft>
It fails with collision between `/nix/store/3ix804lis9j29bcijzikwal5ss1qcrcv-python2.7-backports.ssl_match_hostname-3.7.0.1/lib/python2.7/site-packages/backports/__init__.pyc' and `/nix/store/qmmrdqmf9hml4a150jam79f5v35ncfkk-python2.7-backports.functools_lru_cache-1.5/lib/python2.7/site-packages/backports/__init__.pyc'
<tilpner>
That should be unrelated
<everybodyHertz>
Hey all
<tilpner>
Oh, wrong person
<tilpner>
buffet: Yes, it would be added by some well-hidden module
<everybodyHertz>
trying to get a pull request in for Azure VMs to be reached via private IP addresses in NixOps
<everybodyHertz>
I just submitted the PR but travis CI is giving me a nastygram
jibe has joined #nixos
<tilpner>
balsoft: services.mopidy.extensionPackages = with pkgs; [ mopidy-gmusic ];
<{^_^}>
[hydra] @grahamc merged pull request #636 → Serialize data as JSON with `Accept: application/json` → https://git.io/fh7Cm
o1lo01ol1o has quit [Read error: Connection reset by peer]
ng0 has joined #nixos
<balsoft>
Fails for real, it stops the system from building
<jibe>
Hi! I am a little bit of a noob when t comes to nixos. I tried to switch channel since I was on an unstable nixpks channel, and wanted to switch to a stable nixos channel.
<everybodyHertz>
simpson: yessir
<jibe>
I removed the nixpkgs channel, added nixos channel, and tried to do a rebuild switch, but now I am faced with the errors: error: file 'nixpkgs/nixos' was not found in the Nix search path (add it using $NIX_PATH or -I)
<jibe>
Any ideas on how I can fix this?
thomashoneyman has quit [Remote host closed the connection]
<simpson>
everybodyHertz: Yeah, the Azure libraries are troublesome to package. I haven't seen that exact problem, but I wonder whether nixops needs to use https://github.com/stesie/azure-cli-nix.
<tilpner>
jibe: Did you add it as root?
<simpson>
jibe: nixpkgs != nixos for this; you'll want to have a stable nixpkgs channel instead.
<jibe>
Yep. Added it as root.
<simpson>
Or...wait. Hm. Never mind; I guess I'm not sure what I'm recommending.
<buffet>
what determines if a program can be installed via `programs.*.enable = true;`?
<LnL>
yl[m]: that's not hydra, I've been running with sandboxing enabled for a while to try and get that back into shape
<tilpner>
Someone needs to have written a module for it
endformationage has joined #nixos
<tilpner>
That's generally only done if the application requires setup that a derivation can't do
<buffet>
oof
<jibe>
tilpner: I did not do that. I am currently trying, but it gets stuck when running --update command. I have let it run for about a minute now. How long should a --update take approx?
<everybodyHertz>
simpson: out of curiosity, why would small changes to the nixops source code cause an azure dependency to break if it wasn't before? It's not like I'm changing any of the referenced libraries (to my inexperienced knowledge)
<tilpner>
I'm not sure, I haven't used nix-channel in a long while
<tilpner>
Also depends on your connection and fastly
<simpson>
everybodyHertz: No idea. Maybe it was already broken.
<{^_^}>
[hydra] @grahamc merged pull request #530 → Fix bad ordering in projects documentation. → https://git.io/fjvuH
<balsoft>
What do I do if software I'm packaging doesn't have a version?
<yl[m]>
balsoft: set the version to the date of the commit you are using
<yl[m]>
and and -unstable to the name
<balsoft>
What is the format?
<balsoft>
Latest commit is Feb 2
<balsoft>
So 20190202?
Thra11 has quit [Client Quit]
<yl[m]>
yep, but eith dashes
<yl[m]>
2019-02-02
Thra11 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<balsoft>
So pname = "kanshi-unstable"; version = "2019-02-02"; is fine?
<everybodyHertz>
simpson: I'm noticing in both my PR and noonien's, the source root is not nixops- but the last two successful PRs have the source root as nixops
o1lo01ol1o has joined #nixos
<everybodyHertz>
not even sure how to specify that =/
<LnL>
yl[m]: yeah it means it's broken which we should fix, but those builds are not a hard requirement to merge something
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @knedlsepp to master « pythonPackages.rabbitpy: Fix build »: https://git.io/fjvup
<balsoft>
Can somebody tell me if the package is good enough for nixpkgs? http://ix.io/1DOB
<balsoft>
It builds
<simpson>
everybodyHertz: It sounds like you need to apply more git. I'm actually just about to AFK and can't help with this much, but in short I think that you need to rebase your work onto the same branch as those PRs were made from, and then try making a new rebased PR. Best of luck.
drakonis1 has quit [Quit: WeeChat 2.3]
<everybodyHertz>
simpson: many thanks for the words of advice
<balsoft>
But I'm not sure that I understand why on earth nixpkgs-lint complains when maintainers = [balsoft]; and doesn't complain when maintainers = balsoft;
<balsoft>
(I've added myself to maintainers.nix file)
<balsoft>
It's a tool for managing environments with nix
<balsoft>
*home environments
<scientist>
oh, ok that is good to know
<yl[m]>
LnL: thank you!!
<{^_^}>
[nixops] @mwilsoninsight closed pull request #1116 → Allow Azure VMs to be reached by private IP address if specified → https://git.io/fjvzs
<LnL>
no problem :)
<scientist>
i keep hearing about hydra, what is this ?
<ixxie>
Its a mythical creature which grows two heads when you cut one, a metaphor for antifragility and the build system for nixpkgs binary cache
<slack1256>
^ that should be the standard answer
<scientist>
cool
<balsoft>
ixxie: this should be in the manual at this point
<everybodyHertz>
anyone know how to correctly workflow a nixops change?
Erasmus is now known as ErAsMuS
<everybodyHertz>
I tried switching the branch I PR'd from, but same result- the Travis build keeps telling me that the source archive is something other than nixops
Thra11 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
everybodyHertz has quit [Quit: Page closed]
slack1256 has quit [Remote host closed the connection]