<pie_>
if i have a package init that works on 18.09 can I get it merged somehow, or do i need it to build on unstable? because on unstable the program crashes with a segfault...
erictapen has quit [Ping timeout: 255 seconds]
<pie_>
s/unstable/master
<pie_>
I guess I'm just ocnfirming what I already know
erictapen has joined #nixos
o1lo01ol1o has joined #nixos
<samueldr>
it will need to go through master, thus the segfault might need to be investigated
<samueldr>
pie_: on a hunch, is it #54278 that's causing the segfault?
<pie_>
wasnt there some nixpkgs bisect script for stuff like this
<samueldr>
here I'm mostly guessing :) if you use `strace -fo log.strace that-sotftware-that-segfaults` and see the mix of gdk_pixbuf things, then it's probably that issue
elibrokeit has quit [Ping timeout: 258 seconds]
elibrokeit has joined #nixos
<pie_>
ugh im such a noob 'xD sigh
<samueldr>
room for expansion
<pie_>
i wonder if this is the same segfault i had a while back which i have no idea how i fixed
<pie_>
or even what the circumstances were
<pie_>
(same program)
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<pie_>
samueldr, hmm it does seem to segfault near pixbuf code
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to staging: https://git.io/fjv2C
<rcshm>
hi, i am trying to compile an opengl file and i have got fatal error: 'GL/gl.h' file not found. i tried to have opengl and libopengl but those didn't work/
<pie_>
samueldr, dunno what id have done if you hadnt said something about the pixbuf stuff heh
<rcshm>
what do i have to have in the configuration.nix for these? thanks for your help.
o1lo01ol1o has joined #nixos
jasongro` has joined #nixos
<haslersn[m]>
rcshm: Are you doing it in a nix-shell?
<haslersn[m]>
rcshm: That would be a weird thing to do (a thing that you would do in non-Nix-systems) because then that lib is installed even if you don't work at that project at the moment. You can just place the `default.nix` that describes the build environment at the project root and when you work at the project you type `nix-shell`. You can go one step further and install `direnv` and do `echo 'use nix' > .envrc` in your project
<haslersn[m]>
root. This way, the nix-shell is automatically loaded when you `cd` into the project directory and unloaded when you leave.
o1lo01ol1o has joined #nixos
<gchristensen>
clever: 'round?
<pie_>
rcshm, what brought you to nixos? :)
* pie_
might fall asleep any minute though
<clever>
gchristensen: yep
<gchristensen>
clever: can you walk me through a PR of yours?
<{^_^}>
[nixos-channel-scripts] @grahamc closed pull request #11 → mirror-nixos-branch: create a "deployment" on GitHub on new releases → https://git.io/fjv2x
<{^_^}>
[nixpkgs] @kalbasit opened pull request #57839 → go: fix darwin sandboxed build → https://git.io/fjvaY
o1lo01ol1o has quit [Ping timeout: 255 seconds]
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
<haslersn[m]>
rcshm: `...ghcWithPackages` passes the available haskell package collection to `(p: [ p.OpenGL ]))`. This way, the newest OpenGL version available is used.
jasongro` has quit [Read error: Connection reset by peer]
Supersonic has joined #nixos
<haslersn[m]>
rcshm: The name now doesn't make sense :) Also note that inside a nix-shell, the so-called `stdenv` is loaded which contains among other stuff a C++ compiler. So there's no need to install the compiler on your system.
<CMCDragonkai>
haslersn[m]: that is not very descriptive, i'd like to know how to do it from scratch given the initial nixos install, and from an existing nix store
<{^_^}>
nix#1441 (by unode, 1 year ago, open): Support for /nix/store on NFS drives
orivej has quit [Ping timeout: 246 seconds]
<haslersn[m]>
CMCDragonkai: In case that's not what you're looking for and in case you use NixOS: I suspect that you have to boot into the NixOS installer, delete `/nix`, mount the ZFS, regenerate hardware config (`nixos-generate-config`) and then install (`nixos install`). Though I don't know if regenerating the hardware config is enaugh for the ZFS mount to be configured into the system.
<CMCDragonkai>
I do use ZFS, but I'm not sure what your comment has to do with NFS here?
<haslersn[m]>
CMCDragonkai: It goes without saying that you have to mount all your partitions and stuff after booting into the NixOS installer.
<haslersn[m]>
Sorry, I mixed them up
jasongro` has joined #nixos
<CMCDragonkai>
It seems discourse.nixos.org is down
<haslersn[m]>
Looks up for me
justanotheruser has joined #nixos
jasongro` has quit [Client Quit]
<gchristensen>
up from here too (also, we don't actually host it)
<rcshm>
haslersn[m]: thanks, that seems to take care of the errors. but i am now having different errors. so might be back for more help. :). thanks again.
<haslersn[m]>
bemeurer: Did you try the NixOS option `nix.binaryCaches = lib.mkForce [ ];` ?
<edef>
if you change anything, literally not the same package anymore, nix has no idea the two are even related
<bemeurer>
haslersn[m]: That solves half the problem, yeah :)
<bemeurer>
The other half is how can I set the build options globally
<bemeurer>
e.g. I always want CFLAGS += -march=native
<edef>
uhh
<edef>
march=native doesn't super make sense for nixpkgs
<bemeurer>
edef: Why is that? (genuine question)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<simpson>
I think that we do support such a thing for the packages that it *does* make sense for (ffmpeg maybe?) but it's not the kind of thing that you'd set systemwide.
<bemeurer>
simpson: I mean, in packages where this makes no difference it doesn't matter what CFLAGS is set to anyway, no?
<simpson>
bemeurer: As a former Gentoo contributor myself, I had to let go of tiny-to-nonexistent gains in non-CPU-bound packages from CFLAGS.
<bemeurer>
simpson: Yeah, I'm trying to move from Gentoo, hahaha
simukis has quit [Quit: simukis]
<bemeurer>
In this particular box it makes no difference whatsoever. But the CFLAGS I crafted on my work laptop yield about -1W power consumption sometimes
<bemeurer>
Which is not something I want to give up
vk3wtf has joined #nixos
<simpson>
Ooh, this sounds like it would make an interesting case study.
<simpson>
Do you happen to know which packages or applications in particular are sensitive in your typical setup?
<bemeurer>
simpson: Not really. I'm a Rust SWE, so the test was:
jasongro` has joined #nixos
jasongro` has quit [Remote host closed the connection]
<bemeurer>
1. Set it up with a globally keyworded gentoo, default cflags, etc
<bemeurer>
2. Compile Rust, sway, firefox
<bemeurer>
3. Watch powertop and time the compilation of our large codebase (takes ~16mins from a cold start)
<bemeurer>
6. Same procedure compiling the codebase. Saved a little bit on time, and the wattage was lower overall
<bemeurer>
Also idling it was lower, IIRC
<bemeurer>
Tests done while on a full battery, rest was plugged in
<bemeurer>
I did it as soon as I got the Thinkpad P1, so sometime Q4 last year
<simpson>
Interesting. I expect that a similar Nix-based workflow would involve far less compiling, but perhaps with an impact to your idling power consumption. However, I'm not sure what to expect.
<{^_^}>
[nixpkgs] @peterhoeg merged pull request #55870 → zoneminder: add some of the missing ONVIF dependencies → https://git.io/fh5Yy
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has joined #nixos
rauno has joined #nixos
Myhlamaeus has quit [Quit: WeeChat 2.2]
<musicmatze>
I don't know whether I asked this before: Would it technically be possible to build deb/rpm packages with nix? Maybe even from the already existing package defintions in nixpkgs? I do not have any experience with deb/rpm, that's why I don't know whether it would be possible on the deb/rpm side of things...
adetokunbo has quit [Quit: This computer has gone to sleep]
<musicmatze>
bemeurer: I have a function for that, but am at the office right now where I do not have access to my devices, unfortunately.
<bemeurer>
musicmatze: What exactly?
Glider_IRC__ has joined #nixos
<musicmatze>
I have a function `optimizeForHost` which you can call on a package and it alters the package to include CFLAGS "-O3" and others for the package.
periklis has joined #nixos
<bemeurer>
musicmatze: Interesting
<musicmatze>
but I guess the NIX_CFLAGS_COMPILE is what you want
<bemeurer>
I just wanted a way to apply something like that globally
<musicmatze>
ah, okay... no I do not have that unfortunaltely. I guess if you find an easy way, you can submit a patch to nixpkgs for it.
<bemeurer>
Definitely :)
wfranzini has joined #nixos
Glider_IRC_ has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @tomfitzhenry opened pull request #57847 → llvm: mark as big-parallel → https://git.io/fjvwB
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
adetokunbo has quit [Quit: This computer has gone to sleep]
reinhardt has quit [Ping timeout: 250 seconds]
countingsort is now known as buffet
<srhb>
Yaargh. I have this really annoying issue where every virt-viewer console I have, regardless of guest OS, tends to suddenly be unresponsible for like 10 seconds. It appears to happen more often when I'm actually typing something into the console. I have no idea where to start debugging this, any great ideas? :)
<srhb>
Resources look fine on both host and guest
reinhardt has joined #nixos
<srhb>
Er, unresponsive. Though frankly, most of them are Windows, so I guess irresponsible too.
pmiddend has joined #nixos
jasongro` has quit [Remote host closed the connection]
crmlt has joined #nixos
adetokunbo has joined #nixos
<pmiddend>
I'm building an expression which uses "Cython" and am not sure if I have to explicitly set an rpath via some additional linker flags in Nix.
jasongrossman has joined #nixos
linarcx has quit [Ping timeout: 255 seconds]
thc202 has joined #nixos
<Taneb>
Is there anything in nixpkgs for rust that's similar to callCabal2nix?
linarcx has joined #nixos
<Taneb>
Aha, maybe rustPlatform.buildRustPackage is what I'm looking for
crmlt has quit [Read error: Connection reset by peer]
<srhb>
sphalerite: Oh, I didn't realize that was problematic.
ilmu has quit [Ping timeout: 246 seconds]
reinhardt has quit [Ping timeout: 268 seconds]
<sphalerite>
srhb: libvirt itself seems fine, but the graphical stuff moved to gobject-introspection, and those files don't seem to be generated/installed if you upgrade libvirt the obvious way
xkapastel has joined #nixos
ThatDocsLady has joined #nixos
balsoft has quit [Read error: Connection reset by peer]
balsoft has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #57822 → nmap: lua scripting support is optional → https://git.io/fjvR9
And has quit [Killed (freenode-connect (The application you are using is no longer permitted to connect to the freenode network. For questions, contact kline@freenode.net))]
balsoft has quit [Quit: Konversation terminated!]
balsoft has joined #nixos
alex`` has joined #nixos
<dhess>
Why would a derivation that does an import-from-derivation complain that "attribute 'out' missing, at /nix/store/qfb4phv9y1wcs4caxb0d5c9rggjdwpwh-source/lib/customisation.nix:170:22" ?
Andrey__ has joined #nixos
<Andrey__>
Hi, does anybody run Sway on NixOS, I am stuck with the configuration.
<dhess>
this particular derivation does exactly what nixpkgs's pkgs.dhallToNix does, except that it sets src = ./. so that I can pull in a whole directory of Dhall files, rather than just the one
jomik has joined #nixos
<jomik>
Hey, I am trying to patch rpath for a binary given by my university, troupec. It needs ncurses5 - I get this error though `no version information available (required by troupec)`
linarcx has quit [Ping timeout: 250 seconds]
<jomik>
I also get a lot of `wrong ELF output` probably because it is touching stuff in a node_modules folder, which is bundled with the binaries.
dycan has quit [Remote host closed the connection]
martinb has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
<{^_^}>
[nixpkgs] @Taneb opened pull request #57854 → Doc fix: use correct function name in type signature for concatIMapStringsSep → https://git.io/fjviH
<{^_^}>
[nixpkgs] @grahamc merged pull request #57854 → Doc fix: use correct function name in type signature for concatIMapStringsSep → https://git.io/fjviH
mmlb977 has quit [Ping timeout: 246 seconds]
regulus_ has joined #nixos
drakonis has joined #nixos
arjen-jonathan has quit [Ping timeout: 245 seconds]
rycwo has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
init_6 has quit [Ping timeout: 250 seconds]
regulus_ has quit [Ping timeout: 246 seconds]
regulus_ has joined #nixos
<Taneb>
That's the quickest I've ever seen a PR get merged for, like, anything
<Taneb>
I guess obvious documentation fixes don't need much review :D
o1lo01ol1o has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
crmlt has quit [Read error: Connection reset by peer]
everybodyHertz has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjvXo
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<spacekookie>
I'm on nixos-unstable and I've been having this weird issue for a week or so where glibc/lib/locales doesn't contain any locales which has been causing all sorts of issues for me. Anyone know what could cause this?
<jomik>
Anyone know how to fix this error? `no version information available (required by troupec)` I haved patched the interpreter and rpath - it happened after I added ncurses5 to the rpath.
<jomik>
I am setting rpath to `{stdenv.cc.cc.lib.out}/lib:${pkgs.ncurses5.out}/lib`
camsbury- has quit [Remote host closed the connection]
stepcut has quit [Ping timeout: 250 seconds]
ramses_ has joined #nixos
reinhardt has quit [Quit: Leaving]
miguelnegrao has joined #nixos
stepcut has joined #nixos
<ramses_>
Hey guys. I have a NixOS server which has curl 7.64 installed but which consistently throws errors while downloading from cache.nixos.org during nixos-rebuild. When I run curl manually I get the same error (HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer)) but when I run curl with --http1.1 or when I use wget, everything works fine
<ramses_>
Is there any way to have nixos-rebuild not use http2 ?
hellauer has quit [Ping timeout: 272 seconds]
miguelnegrao has quit [Quit: miguelnegrao]
hellauer has joined #nixos
<srhb>
ramses_: http2 = false for your nix config.
<takeda>
What's the correct way to use private repos? I have an golang application that has few internal dependencies. The dependencies are on github but in private repos. And I'm running into issues, because nix (correctly) changes environment variables (such as HOME) to prevent side effects. I already modified vgo2nix so it uses ssh://git@github.com for github repos and it can generate deps.nix but now I am still
miguelnegrao has joined #nixos
<takeda>
running into issues when building the code. I found about fetchGitPrivate but it looks like nixpkgs doesn't support it with golang. Any suggestion what can be done?
pointfourone has quit [Client Quit]
<{^_^}>
[nixpkgs] @srhb pushed to release-19.03 « jl: Patch to work with MonadFail GHC 8.6 change »: https://git.io/fjvyY
<jomik>
takeda: If you have your own checkout locally, then you can use that, I am pretty sure. Not sure why you can't use fetchGitPrivate though.
<jomik>
Oh, srhb he could pass fetchGitPrivate as fetchGit, couldn't he? From what I see, fetchGitPrivate just wraps fetchGit
vidbina has quit [Read error: Connection reset by peer]
<srhb>
jomik: I think builtins.fetchGit in general has nicer behaviour for fetching private repositories than fetchGitPrivate
<takeda>
I think there are two fetchGit one that is now builtin and another that is defined in nixpkgs. The later can't use .gitconfig from $HOME. I had some weird issue that the build initially worked then I did nix-collect-garbage and started seeing the issue, I suspect that vgo2nix porecached it.
<srhb>
takeda: Exactly.
<takeda>
jomik: I'll try extraSrcs
<srhb>
takeda: So if you pass buildGoPackage.override { fetchgit = builtins.fetchGit; } -- what happens?
<srhb>
This relies on them being sufficiently argument compatible that it'll "just work" which I'm not sure it is, but worth a quick try.
<{^_^}>
[nixpkgs] @dotlambda pushed to master « bonfire: use pytest_3 »: https://git.io/fjvyn
<jomik>
oooh, yeah, that makes sense too
<takeda>
oh, that could work :)
stepcut has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed to release-19.03 « bonfire: use pytest_3 »: https://git.io/fjvyC
<srhb>
takeda: Hmm, no, builtins.fetchGit does not take sha256...
<srhb>
But we can mangle it and manipulate the arguments.
<takeda>
srhb: I'm getting now a different error (looks like unrelated), but I think it is working, thank you.
<srhb>
takeda: Welcome. :)
hyper_ch2 has quit [Ping timeout: 256 seconds]
<srhb>
As to whether this should be in the go infrastructure.... I think because builtins.fetchGit is a lot slower than the usual method, and it's so simple to override this behaviour, it probably doesn't warrant a new feature.
<srhb>
But opinions may differ.
<takeda>
but maybe fetchPrivateGit could be added to that list? TBH I would prefer if deps.nix was a proper nix file, so I could just use the right fetch that I need for the right repo.
<srhb>
takeda: I don't have a strong opinion, but I don't think it's better than reusing the existing override machinery, really.
<srhb>
But yes, I suppose you could argue that goDeps.nix should really just be an expression that ensures the sources are there.
<srhb>
That seems pretty clean semantically.
erasmas has joined #nixos
scientist has joined #nixos
<srhb>
There's already too much logic in dep2src...
<takeda>
but override applies to all dependencies I only have two private repos and as you said the builtin is slower
<scientist>
hello guys, i would like to set a terminal command to execute automatically right after each boot or reboot. how would i do this in nixos ?
<srhb>
takeda: I guess I sort of agree. So, what I guess I think should happen is make dep2src overrideable. Then you can just provide your own type as you see fit, falling back to the default dep2src when it's not your custom type.
<srhb>
scientist: Sounds like a job for systemd.
<srhb>
scientist: What does the command do? :)
<srhb>
scientist: (There might be better mechanisms in place, depending on what you need)
<elvishjerricco>
srhb: I think the perf problems with builtins.fetchGit have been fixed IIRC (not sure if it's released yet). Now the main issue is submodules.
ddellacosta has joined #nixos
<srhb>
Oh really? Nice!
<elvishjerricco>
Also what is dep2src?
<scientist>
srhb: xkbcomp layout.xkb $DISPLAY , i would like to set this command to automatically execute right away so i can sign in and use my custom layout without having to always do it manually (you can see how this will get very annoying after some time) any tips ?
<srhb>
elvishjerricco: It's a go specific thing, an unexposed function that transform a single goDep from goDeps.nix into a fetched source
<srhb>
scientist: Personally I do that in my xsession file (since $DISPLAY actually exists at that point) but that depends on what desktop environment you use I suppose.
<srhb>
scientist: You'll have to tweak it a bit to not rely on home manager things, but it should do the job for you, triggering once a) you log in and b) you have a graphical session
waleee has joined #nixos
yl has joined #nixos
crmlt has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @srhb to master « pythonPackages.secretstorage: 3.1.0 -> 3.1.1 (#57857) »: https://git.io/fjvSU
<scientist>
srhb: well i want that command to execute right after bootup, so i can sign in with my custom keyboard layout (it would be to confusing switching back in forth between qwerty and my custom layout)
<elvishjerricco>
Is there a tool for auditing a derivation's closure for packages/versions with known vulnerabilities?
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @srhb to release-19.03 « pythonPackages.secretstorage: 3.1.0 -> 3.1.1 (#57857) »: https://git.io/fjvSk
drakonis has quit [Quit: WeeChat 2.3]
i1nfusion has joined #nixos
<srhb>
elvishjerricco: I haven't checked, but I *thought* that's what vulnix does.
<elvishjerricco>
Oh neat
<srhb>
Also what a cool name. Just needs an evil bird logo. Eating a lambda.
<elvishjerricco>
srhb: Haha. Just checked it out. Seems to only operate on a whole store, not specific derivations
<srhb>
elvishjerricco: "Check nix-build output together with its transitive closure: vulnix result/"
<elvishjerricco>
This honestly seems like something that could be written in straight Nix
rycwo has joined #nixos
<elvishjerricco>
Oh good
<mdash>
today I got a snazzy new Thunderbolt dock for my Lenovo X1C. Now I'm learning about `boltctl`
<mdash>
Any of y'all have advice on how to get a dbus activated system service configured?
<jomik>
Anyone here good with patching elf files? I can't seem to solve this issue patching a compiler that my university has made :/ It gives me the error `no version information available` after I add ncurses5 to the rpath, which, google tells me is because of a version mismatch.
<scientist>
srhb: well where is this xsession file and does it execute right after the nixos bootup ?
<scientist>
srhb: well where is this xsession file and does it execute right after the nixos bootup ?
<scientist>
srhb: well where is this xsession file and does it execute right after the nixos bootup ?
<catern>
aha! I found an MTA which uses IPC for local mail submission instead of a setgid binary! OpenSMTPD! at last!
slack1256 has joined #nixos
<scientist>
srhb: well where is this xsession file and does it execute right after the nixos bootup ?
<scientist>
srhb: well where is this xsession file and does it execute right after the nixos bootup ?
<mdash>
in particular I am getting this error message: " dbus-daemon[1166]: [system] Activation via systemd failed for unit 'bolt.service': Unit bolt.service not found."
crmlt has joined #nixos
scientist has quit [Quit: WeeChat 2.2]
<mdash>
I put pkgs.bolt in services.dbus.packages -- is there something else I need to do to hook this up?
<{^_^}>
[nixpkgs] @aaronjanse opened pull request #57859 → ulauncher: init at 4.3.2.r8 → https://git.io/fjvSc
<scientist>
i am still getting used to nixos, it is very different from ubuntu
<Mic92>
yl[m]: It is just that we try to avoid invasive changes to release branches and instead try to only backport fixes.
camsbury- has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #57805 → buildGoModule: backport the new Go infrastructure to release 19.03 → https://git.io/fjv47
<{^_^}>
[nixpkgs] @Mic92 pushed 4 commits to release-19.03: https://git.io/fjvSW
<yl>
Mic92: I see what you mean! I've updated the PR to include only the function itself.
rcshm has joined #nixos
<scientist>
catern: my custom keyboard layout works, but i have not been able to set it up in my configuration.nix file, when i rebuild it just does not switch to my custom keyboard layout so i am trying a different alternative
equivrel has quit [Read error: Connection reset by peer]
<Mic92>
yl: merged
equivrel has joined #nixos
<srhb>
scientist: Did you see the link I gave you to how home-manager implements this using a systemd user service?
<srhb>
scientist: The reason that I'm linking to this specifically is that your idea of "just after boot" won't work at all. You need a graphical session first. So the problem is more complicated than you're envisioning. Similarly, the solution is, too.
<jomik>
srhb: It seems rather simply, from the wiki entry :o
<srhb>
(jomiks solution works fine too!)
<srhb>
Yeah, just trying to illustrate the difference between "at-boot" and "actual solution to the problem" :)
waleee has quit [Quit: WeeChat 2.4]
<srhb>
X-Y and stuff.
<jomik>
True :P
<scientist>
jomik: i tried already, configuration.nix does not want to switch to my custom keyboard layout, that is why i am looking for an alternative
shreyansh_k has joined #nixos
<srhb>
scientist: It will only happen at login time with the sessionCommands solution. Are you sure that didn't work?
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<srhb>
(I'm unaware whether plasma mucks this up, but I feel it really shouldn't)
<jomik>
scientist: Can you try to link us your configuration.nix then?
<scientist>
jomik: ok i'll show you guys, give me a sec
<jomik>
srhb: I think the DE may set its own keyboard layout, but that should be after the DM
i1nfusion has quit [Remote host closed the connection]
tdammers has joined #nixos
waleee has joined #nixos
<shreyansh_k>
Hi guys, I believe 19.03 was scheduled at the start of this month but it isn't out yet. What am I missing?
stepcut_ has joined #nixos
stepcut has quit [Ping timeout: 246 seconds]
i1nfusion has joined #nixos
<samueldr>
nothing, the schedule for nixos is a bit different than other "month-based" distros (e.g. ubuntu)
<samueldr>
the .03 is for march, but what happens at the start of the month is the stabilization period
<samueldr>
right now things are being worked on to release it hopefully soon™
<shreyansh_k>
samueldr: Oh! okay. thank you for answering.
<samueldr>
no worries :)
kuznero has joined #nixos
<kuznero>
Hi All!
<samueldr>
last two releases were marked stable around the first week of the following month, we still have ~12 days to make it so 19.03 releases in march
<srhb>
samueldr: Do you still have the ability to make those reports you did for 18.09? If so, do they exist? If not, what does it take to make them? :-)
<srhb>
(That was you, right?)
o1lo01ol1o has quit [Remote host closed the connection]
<samueldr>
that was me, I've (sadly) been so busy lately I feel like I'm letting the release down :/
<srhb>
Is it difficult? Maybe I can offload you.
<samueldr>
maybe isn't difficult
<kuznero>
Is there any way to override [flashplayer-ppapi] version when [nixpkgs.config.chromium.enablePepperFlash = true;]?
<srhb>
kuznero: I believe you can just override flashplayer
<srhb>
samueldr: Thanks, I'll take a look
<samueldr>
I'm not sure it still works, since it relies on the HTML data, but it probably should still work fine
<scientist>
jomik: https://hastebin.com/ogavutejax.bash , when i set the xkbDir option, x server would glitch out after reboot and shut down, after removing xkbDir, nixos-rebuild switch works but does not switch to my custom keyboard layout when i reboot. i tried to be as clear as possible.
<srhb>
samueldr: Got it :)
<samueldr>
srhb: it will clobber PWD heavily, but can be called from out-of-tree
<samueldr>
that clobbering is caching
<camsbury->
hi guys - trying to override an attribute of my python36Packages
<srhb>
samueldr: Alright :)
<shreyansh_k>
samueldr: can "hopefully soon" come soon enough?
<camsbury->
what is the cleanes way of doing this from the top level configuration.nix?
<Church->
Hey someone see something obviously wrong with this? https://paste.rs/XXX Getting the error; "error: attribute 'nginx' in selection path 'nginx.nix' not found"
<shreyansh_k>
I've been holding off updates since the start of this month as I've got slow internet here in India. I know I'm being a little impatient as I'm very excited to get my hands dirty with the latest and greatest BUT would also thank you guys to ensure that updates are polished for us noobs.
o1lo01ol1o has joined #nixos
<samueldr>
good question
<srhb>
shreyansh_k: Consider that the longer you wait, the higher the (relative) shinyness difference!
<elvishjerricco>
srhb: Let me know if you manage to do that report. It sounds interesting
<srhb>
shreyansh_k: Now you can rationalize patience ;-)
<srhb>
elvishjerricco: I'll probably ZHF post it if I manage, but I'll try to remember :)
<elvishjerricco>
ZHF?
<srhb>
Ah, sorry, post it in the pinned Zero Hydra Failures issue.
<elvishjerricco>
Ah
cransom has joined #nixos
<elvishjerricco>
Good luck!
InFlames has joined #nixos
<scientist>
jomik: i linked you to my configuration.nix file like you asked, did you take a look ?
<samueldr>
srhb: running the script, seems to be working (or at least doing some work)
Mateon1 has joined #nixos
<Church->
Heya samueldr!
<srhb>
samueldr: Yup, looks good here
<shreyansh_k>
srhb: That's a good way to look at it. :D
<srhb>
kuznero: I see it's defined in chromiums plugins directly.
<srhb>
kuznero: So I guess it's not that simple, sorry.
<kuznero>
srhb: example I showed didn't help it, unfortunately. And I cannot find a single example on github :(
<kuznero>
I tried installing unstable.chromium... but enabling pepper flash on unstable does not seem to be possible either
<kuznero>
:(
<Church->
Okay wait think I have my error
ddellacosta has joined #nixos
<Church->
So the package I'm trying to grab is in nixos not pkgs. Would I still be able to import that when I do a "{pkgs ? import <nixpkgs> {} };" at top of .nix file?
<samueldr>
srhb: it outputs to stdout, pipe into | gist -p --description "some nice description"
<srhb>
Oops, it failed. Guess I need to do some tweaking.
<srhb>
Oh
kuznero has quit [Quit: Konversation terminated!]
pie_ has quit [Ping timeout: 250 seconds]
scientist has quit [Quit: WeeChat 2.2]
<samueldr>
it still has the issue where some failures are misattributed, but otherwise the report still seems to work as expected
novakovic has joined #nixos
<srhb>
samueldr: Cool! So, do you mind if I try posting this semi-regularly? :)
<samueldr>
not at all
<srhb>
Alright.
<samueldr>
I'm not hoarding the cool stuff :)
<srhb>
Didn't think so, just making sure though ;-)
<elvishjerricco>
samueldr: That's really cool. What constitutes a "problematic dependency", and what is the associated count?
<Church->
samueldr: Yes you are :P
<Church->
Okay why aren't you working... hmm.
<samueldr>
elvishjerricco: for linux-5.0-rc8, open the row, every attribute of the attributeset has been marked as failing due to *that* dependency failing
<samueldr>
so fixing that dependency might make all dependent work
<elvishjerricco>
Church-: I think samueldr is working hard! :P
<Church->
elvishjerricco: Lol
<Church->
elvishjerricco: I meant my code
<samueldr>
elvishjerricco: does it make sense?
<Church->
Trying out over rides and trying to create a docker container via nix finally
<samueldr>
so, in other words, perl5.29.6-File-Slirp-9999.25 is possibly causing 68 builds to fail
crmlt has quit [Ping timeout: 245 seconds]
<elvishjerricco>
samueldr: Ah, so there are 103 jobs that failed because the linux build failed?
<takeda>
srhb: so the another issue I was having was that the builtin.fetchGit only passed the url and forgot about ref (I was getting compile errors, because it fetched different versions). There is an issue since builtin.fetchGit has two arguments rev and ref and fetchgit only has rev. So substitution is a bit more complex. I substituted it with pkgs.fetchprivateGit and passed values to ssh config and agent and
<takeda>
looks like it works. Thank you.
i1nfusion has quit [Remote host closed the connection]
<samueldr>
the blame is sometimes misattributed
<elvishjerricco>
Or, 103 jobs to which linux is an input?
pointfourone has joined #nixos
pointfourone has quit [Remote host closed the connection]
<Church->
Welp almost chucked my work laptop
<Church->
This is the most vaguely unhelpful error ever
<samueldr>
elvishjerricco: most likely
<Church->
Since I started writing services that is, heh
ramses_ has joined #nixos
<ramses_>
srhb: that option does not seem to change anything and is also not documented in the nix.conf man page... Am I missing something?
* ekleog
trying to figure out what could have went wrong in the upgrade
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
<ekleog>
and also, are you creating it with `networking.interfaces."tinc.myinterface".virtual = true`?
<ekleog>
huh found it I think
<andi->
ekleog: custom name foo.bar.net
takeda has quit [Quit: leaving]
<ekleog>
hmm'k thanks :)
<andi->
ekleog: no, i ama not
o1lo01ol1o has quit [Remote host closed the connection]
<ekleog>
so my current suspicion is that virtualType appears to no longer default to tun, but looking at the git history it looks like it's been this way since 2018-01
<andi->
ekleog: i had to add an ip link set up $dev after some 18.09 update broke it
<ekleog>
(unfortunately I need to have it so that applications could bind on it)
<andi->
ekleog: environment.etc."tinc/${name}/tinc-up".text = ".... ip link set up $dev ";
<ekleog>
actually I can confirm that adding `virtualType = "tun";` solved my issue… wonder how that can be made into release notes, though, given I don't really understand what exactly broke my setup :/
<andi->
there was some issue with systemd networkd and that is why that line was removed... Let me search for the PR.
<ekleog>
hm I think it's done by the `virtual = true; virtualType = "tun";` in my case
<ekleog>
yeah ISTR something about it, it's likely I was involved in it somehow :°
<andi->
It was a bit debatable.. All other distries already required those tinc-up scripts that is why I didn't bother further
<scientist>
it just says starting x server, glitches out and then turns off, i know it has something to do with the xkbDir option, but i don't know what to change
<srhb>
scientist: Don't set xkbDir. It's not what you think it is.
<srhb>
scientist: The relevant information from that wiki page for your use case should _only_ be the sessionCommands stuff.
<{^_^}>
[nixpkgs] @andir pushed 5 commits to release-19.03: https://git.io/fjvHJ
<{^_^}>
[nixpkgs] @xeji pushed commit from @hedning to master « meld: fix checkPhase »: https://git.io/fjvHU
rycwo has quit [Ping timeout: 246 seconds]
<srhb>
scientist: (You _can_ use xkbDir, but that requires you to create a full xkb tree like the one in the xkeyboard_config package -- it's probably not what you want)
<scientist>
srhb: so i don't need to set the: Relevant other options ?
<srhb>
scientist: Right, a more apt description would have been "Further reading" -- you're not intended to use it for this purpose unless you have very specific needs.
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « cherry: 1.2 -> 1.3 (#57841) »: https://git.io/fjvHV
<Church->
Huh... how?
<srhb>
Church-: You don't have a rec on your attrset
<srhb>
Church-: But you are bringing all pkgs.* attributes in scope
<Church->
Crud
<srhb>
Church-: So, su_exec refers to pkgs.su_exec
<srhb>
Church-: I like to keep my withs very local because of this :)
<srhb>
Hours, hours down the drain....
<Church->
Huh tbh I just copied this and modified as needed just to try out
<Church->
So guess they got it wrong as well. >_>
<Church->
Good to know.
<srhb>
Ouch :P
<{^_^}>
[nixpkgs] @balsoft opened pull request #57867 → olive-editor: init at 2019-03-18 → https://git.io/fjvHo
jb55 has joined #nixos
<timor>
I am currently looking at this failed hydra build: https://hydra.nixos.org/build/90794318, which fails because a dependency (deluge in this case) fails to build. This test is for i686 though. The corresponding test and package on x86_64 work correctly. Why are there tests run for i686, when the packages are only built for x86_64?
<Church->
srhb: Hmm, so where I should place that rec then?
<Church->
Still fuzzy on doing stuff like that
<srhb>
Church-: rec { foo = 42; bar = foo; }
<srhb>
Church-: So, the one right after your with pkgs;
<Church->
Ah so it's just shorthand for expect a record set?
<srhb>
Church-: It's actually short for recursive
<Church->
Ah doy
ramses_ has quit [Ping timeout: 256 seconds]
<srhb>
Church-: (If you do other FP, maybe you'll recognize "let rec")
<Church->
So "with pkgs; rec {..." or pkgs.stdenv.mkDerivation rec {
<Church->
Yeah that looks familiar :P
sigmundv__ has joined #nixos
<srhb>
You only need the outer rec
<srhb>
But really, I prefer getting rid of the with pkgs;
<srhb>
And then letting the errors guide you
scientist has joined #nixos
<srhb>
It's just so easy to accidentally refer to something you didn't mean to.
<Church->
Okay mind telling me where I'm screwing up in the nginx build part? Trying to run upx on my binary and it seems to never be in $out/bin/nginx like I think. >_>
<{^_^}>
[nixpkgs] @Kaali opened pull request #57868 → Add CoreAudio to sox on macOS → https://git.io/fjvH1
<srhb>
Church-: Sorry, I didn't understand that.
<scientist>
srhb: well the bootup works with nixos-rebuild switch , but it still does not switch to my custom keyboard layout ? https://hastebin.com/kajevetuvi.bash
crmlt has quit [Ping timeout: 246 seconds]
<Church->
srhb: So in my install phase I'm trying to run upx(a packer) on my buolt nginx binary
<Church->
However I'm getting an error that it doesn't exist at $out/bin/nginx
<Church->
Even though when I check with an already built version that yes it does exist there.
<srhb>
scientist: Sorry, I don't know. I suspect plasma might make this method infeasible.
<srhb>
Church-: What you just pasted doesn't build at all due to other errors. Can you paste the actual expression?
<scientist>
srhb: yeah, i think so too
<Church->
Huh. Sec
<srhb>
Church-: Ah, but I see your problem anyway
<Church->
Oh?
<srhb>
Church-: You seem to be overriding the installPhase of nginx. So now nginx does not get put into $out
<Church->
Ah.
<srhb>
(try postInstall)
<Church->
Oh wait that would work yeah
<Church->
doy
reinhardt has quit [Ping timeout: 246 seconds]
<srhb>
Church-: And to make matters worse, nginx installs into sbin.
<Church->
...
<srhb>
The fixupPhase changes this to bin.
InFlames has joined #nixos
<Church->
Grrr
crmlt has joined #nixos
<Church->
So fixupPhase and then postInstall?
<srhb>
postInstall is fine, just patch the sbin one, it'll be moved to bin
<Church->
Nod
<srhb>
Assuming that change in path doesn't somehow mess with upx (which I don't know what is)
<Church->
Binary packer
<Church->
Trying to get my binary size down more
scientist has quit [Quit: WeeChat 2.2]
<Church->
Since I'm trying to win a bet and make the smallest docker binary I can.
<Church->
For nginx
lurpahi has joined #nixos
<srhb>
I see. :)
<srhb>
Well, the above should work then
fyuuri has quit [Quit: WeeChat 1.6]
<srhb>
At least from a nix perspective. No idea if it'll run.
<srhb>
balsoft: no, usually seeming like a genuinely nice person who contributes to nixpkgs is good enough. Some might argue that that's godlike qualities though. :-)
<Church->
Oh yeah!
<balsoft>
Oh ok, PR submitted
<Church->
srhb: So once I get these in a container, talking... like less then a Mb
<srhb>
Church-: Ah, it helped?
<balsoft>
It's just that I have written a lot of nix expressions for various software I need and now I'd like to share
<srhb>
balsoft++
<{^_^}>
balsoft's karma got increased to 1
<srhb>
balsoft: Much appreciated :)
<Church->
srhb: Yarp
<balsoft>
And waiting for literally days for someone to toggle the build is tedious
<Church->
srhb: Stupid question, you know why the last bit would turn it into a single result? The dockerTools.buildImage step
<srhb>
balsoft: Yeah, I'm afraid we're always a bit short-staffed, no intention to keep anyone waiting, but time is a real constraint. :) Glad you want to help out.
<Church->
Wanna load this into my docker fs
<srhb>
Church-: Sorry, I didn't understand that either.
<srhb>
Church-: You're not building an image at all in that file
<srhb>
Church-: You just have a function that is able to build an image.
<Church->
Crud
<Church->
Welp apologies
<srhb>
Church-: In the blog post you linked, it was essentially "let ... everything you have ... in everything you're missing"
<Izorkin>
Mic92: checked pr?
rycwo has quit [Ping timeout: 246 seconds]
<Church->
Yep that fixed it. Doy
<Church->
Thanks for all the help srhb
<srhb>
Church-: Welcome :)
<Church->
Can start implementing this at work for our images soon
<Church->
Just need to experiment a bit more.
<Church->
srhb: So one last error, getting this when I try to build my image now: https://paste.rs/m5K
<Church->
Oh wait I see it I think
<Church->
Or not... why do I need the kvm feature for this...
<srhb>
Church-: the vm framework that is spun up to build the docker image requires it
<srhb>
Because you're using runAsRoot
<Church->
Ah.
ThatDocsLady_ has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @xeji merged pull request #57740 → commandergenius: update and move to gitlab → https://git.io/fjvJ9
<{^_^}>
[nixpkgs] @xeji pushed commit from @stephengroat to master « commandergenius: update and move to gitlab (#57740) »: https://git.io/fjvQs
<{^_^}>
[nixpkgs] @xeji pushed commit from @stephengroat to release-19.03 « commandergenius: update and move to gitlab (#57740) »: https://git.io/fjvQZ
<Church->
srhb: I meant more how do I replace my pkgs.nginx.overrideDerivation {}; with it?
<Church->
Just copy and paste in it's place
<Church->
And nginx will get read in via the container build step correctly
<srhb>
Church-: oh, ah.. That's a bit more fiddling than I have time to show you now. Honestly, you're probably better off starting with mine and recreating the docker container. :)
<srhb>
Church-: 301K and time for me to run. Good luck :)
<Church->
Not a prob
<Church->
Thanks for letting me waste your time srhb!
<Church->
Have a good one
<srhb>
Sure, epic nerdsnipe. :-P Seeya
<simukis>
Can I have `outputHash{,Algo}` for derivations that produce a directory, not a signle file?
<tilpner>
Yes, that should work just fine
<srhb>
simukis: as long as outputHashMode = "recursive" you can.
<tilpner>
Guessing from how often nixpkgs sets it to recursive... probably flat
i1nfusion has quit [Remote host closed the connection]
<srhb>
You're right, yeah :)
i1nfusion has joined #nixos
<{^_^}>
[nixpkgs] @BadDecisionsAlex opened pull request #57872 → ecdsatool: init at 0.0.1 → https://git.io/fjv7q
<simukis>
srhb: Thanks, that seems to be a step in the right direction... Now it is saying `error: path '/nix/store/5834axmr8hwcg53sw62hfhcbxmik7dm7-pkgname' is not valid` :(
<simukis>
(that’s after the installPhase completes)
<tilpner>
Maybe paste your expression
<simukis>
okay, sec.
i1nfusion has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #57876 → fx_cast: init at 0.0.3 → https://git.io/fjv7y
<growpotkin>
simukis: where did you pull that dummy hash from?
Shouou has joined #nixos
<tilpner>
"yeah, I did copy the hash from an unrelated derivation with a different name"
<growpotkin>
simukis: If it (by some insane miracle) happen to be the same as another package it can have issues.
<tilpner>
"yeah, I did change the hash to `0v6a8x9hs9nyn3xih4fm6pp1s3si5vn9fkbb2817gcbmjln9zdz9` (note the last character changed from 8 to 9"
<growpotkin>
oh sorry those messages were for tilpner
<simukis>
nah, they were for me, tilpner just quoted me
<tilpner>
growpotkin: No, simukis is the one having a problem
<growpotkin>
gotcha
<simukis>
tilpner: okay, I guess I’ll just have to narrow it down by bisecting...
<simukis>
the "found reference" seems suspicious
<growpotkin>
simukis: what was your issue? I'm note seeing it above.
<simukis>
growpotkin: nix-build outputs "error: path '/nix/store/kxqcl5za0ka12cmb0r4w371wxx8rrjzd-pkgname' is not valid" after I added outputHash{,Algo,Mode} to the derivation
<simukis>
it works fine without those attributes.
<Shouou>
Can I run something like `node2nix` or `pypi2nix` inside a Nix file and then import the result?
<Shouou>
(follow up: is this a good idea?)
<growpotkin>
Shouou: You might be able to get away with it, but I don't think its stable.
<growpotkin>
Shouou: I would definitely be amazed if it worked haha
<tilpner>
Shouou: It's not a great idea, it interferes with remote builds (as done by Hydra and some deployment scripts)
vk3wtf has joined #nixos
<growpotkin>
Shouou: I kind of want to try it now
<tilpner>
Shouou: For that reason, it's not allowed in nixpkgs. But it can be fine for personal use
<growpotkin>
Shouou: tbh tho, those tools barely work as is in my experience. I almost always have to do some kind of fixing.
<Shouou>
tilpner, ah fair enough. This is for a Nixpkgs contribution so I'll forego it then.
Guest93099 has quit [Read error: Connection reset by peer]
<growpotkin>
oh yeah if its for a contribution definitely make a real derivation.
sinner has joined #nixos
goibhniu1 has joined #nixos
sinner is now known as Guest36183
goibhniu has quit [Ping timeout: 255 seconds]
vk3wtf has quit [Ping timeout: 246 seconds]
scientist has joined #nixos
<Shouou>
growpotkin, yeah I've had a tough time with pypi2nix before, and not much experience with node2nix. Hit some barriers with recursive imports and then I assume I have to do some manual work to fix that... but that's a whole other issue I'll have to revisit soon.
stepcut has joined #nixos
<simukis>
Oh, my problem seems to be related to soft links. Are there any gotchas to be aware of when creating soft links to other files within a derivation?
<simukis>
changing from absolute link destinations to relative ones seems to have helped...
Guest36183 has quit [Read error: Connection reset by peer]
ilmu has joined #nixos
<growpotkin>
They're definitely better than nothing :) to be sure. I bump into these kind of issues with all of those scripts, and I don't know enough about python, node, or rust to usually "debug" when things get too thick. But my experience with Haskell Modules and VimPlugs lead me to believe a lot of the issues stem from bad version resolutions.
<scientist>
if you guys could take a quick look at this: https://hastebin.com/efiqedequt.bash nixos-rebuild switch works fine but for some reason it does not switch to my custom keyboard layout
<tilpner>
scientist: Did you login again?
<growpotkin>
scientist: oof the keyboard stuff can get messy.
<growpotkin>
scientist: I know `home-manager` has a startup script that they've added to help with this. (possibly fixing the way the global config manages it)
<growpotkin>
scientist: You might be able to get some insight from their module without using the whole tool.
<scientist>
tilpner: i am getting the same output like when i do it manually so it compiles correctly but it is just not switching, and ok ill check out those links
<growpotkin>
scientist: see "setxkbmap", you might want to compare their service settings to the NixOS module's settings.
<scientist>
could you guys pastebin those links, i am having problems with weechat
<growpotkin>
yeah
<colemickens>
so if I'm writing a derivation and it's complaining about <filesystem.h> what should I reach for? Clang? overriding GCC?
<scientist>
thanks
<tilpner>
scientist: Press Alt+L to get raw mode with weechat
<tilpner>
(If you're having trouble selecting things)
<growpotkin>
scientist: from what I can tell NixOS just writes the config files, but I don't see it setting up services for XKB. Home-Manager makes a service to reload `setxkbmap`
<growpotkin>
15:16 scientist: tilpner: i am getting the same output like when i do it manually so it compiles correctly but it is just not switching, and ok ill check out
<growpotkin>
those links
<growpotkin>
15:16 growpotkin: scientist: see "setxkbmap", you might want to compare their service settings to the NixOS module's settings.
<growpotkin>
colemickens: wow I was literally just trying to resolve the same thing
<scientist>
rnhmjoj++
<{^_^}>
rnhmjoj's karma got increased to 1
<growpotkin>
colemickens: My `xmessage` fails with that as the root cause.
<colemickens>
I don't really understand any of it. I just know that the Plex PR that uses userFHS breaks for similar reasons :S
<growpotkin>
colemickens: I was read that it is a `glibc` issue.
<growpotkin>
colemickens: the fix is to add `glibcLocales` and `glibc.locales` options (supposedly). I added them to my config and rebuilt with no luck. I'm crossing my fingers that restarting magically applies the changes.
wfranzini has quit [Remote host closed the connection]
<growpotkin>
Dandellion[m]: I know `home-manager` has a ton of modules specifically for `direnv`. It might be worth using those or referencing them. I made the switch to `home-manager` recently and I'm really loving it.
<Dandellion[m]>
yeah I'm using home-manager ^^
<Dandellion[m]>
The question isn't about how to install it I'm quite a happy user already
<Dandellion[m]>
but rather if it's possible to define functions finside a .direnv use_nix file
<Dandellion[m]>
.envrc I mean
<growpotkin>
Dandellion[m]: `programs.direnv.config` sounds like what you're looking for?
Soo_Slow has quit [Remote host closed the connection]
<growpotkin>
Dandellion[m]: or `programs.direnv.stdlib` which is for `~/.config/direnv/direnvrc`
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Dandellion[m]>
no, ther project file
stepcut has quit [Ping timeout: 246 seconds]
<Dandellion[m]>
I already have a nix shell that is automatically installing packages and setting environment variables, I just also want it to set a bash function
<growpotkin>
Dandellion[m]: Oh, do you have the `zshIntegration`/`bashIntegration` enabled?
<clever>
Dandellion[m]: nix-shell will source the shellHook on the derivation it is opening
<Dandellion[m]>
yep, so the function works if I run nix-shell shell.nix
<growpotkin>
Dandellion[m]: But it doesn't work with a normal shell?
<Dandellion[m]>
growpotkin: correct, but everything else does
<growpotkin>
Dandellion[m]: can I see your `home.nix` for `programs.direnv`
<growpotkin>
scientist: also you could just modify your `cd` command to look for `.functions.sh` or something and source it if it's found. Without `direnv` altogether
<growpotkin>
scientist: `function chpwd () { emulate -L zsh; [ -e .functions.zsh ] && source .functions.zsh; }`, then cd into a directory with `.functions.zsh` in it. It sources all the functions for me.
<balsoft>
If I understand you correctly
stepcut has quit [Ping timeout: 255 seconds]
<scientist>
thanks i'll take a look
<scientist>
manveru++
<{^_^}>
manveru's karma got increased to 5
<scientist>
balsoft++
<{^_^}>
balsoft's karma got increased to 2
<scientist>
growpotkin++
<{^_^}>
growpotkin's karma got increased to 3
shabius has joined #nixos
fendor has joined #nixos
ixxie has quit [Ping timeout: 246 seconds]
goibhniu has joined #nixos
dashkal has quit [Read error: Connection reset by peer]
<growpotkin>
Damn I should have done this so long ago, I hadn't even considered it. Super useful to have project local stuff without popping into nix-shell.
stepcut has joined #nixos
goibhniu1 has quit [Ping timeout: 268 seconds]
<growpotkin>
It's a nice solution for times when you aren't realistically going to load up a nix-env.
<noonien>
i've instealled discord in systemPackages and did a nixos-rebuild switch
<noonien>
KDE did not seem to register the .desktop file existing
<clever>
noonien: kde has trouble detecting such changes until you relog
<noonien>
i reboot did not help either
NickSeagull has quit [Quit: WeeChat 2.4]
<clever>
noonien: is the discord command available in a shell?
dashkal has joined #nixos
<noonien>
`Discord` is, yes
grizwako has quit [Remote host closed the connection]
<noonien>
this was on a friend's PC, he switched to rofi anyway, i was just curious if this is a known issue
<growpotkin>
noonien: Is the .desktop non-existant? or is it just undetected?
<colemickens>
growpotkin: how'd the reboot go?
knupfer has quit [Ping timeout: 264 seconds]
<growpotkin>
colemickens: I got distracted lol
<noonien>
growpotkin: it was not detected
<shachaf>
Hmm, updating ghc from nix still breaks Unicode in ghci for some reason.
<growpotkin>
colemickens: Lemme pull the trigger now
<shachaf>
How can I figure out what's going on?
<growpotkin>
shachaf: same for me.
silver_ has joined #nixos
<shachaf>
growpotkin: Ah, good to hear it's not just me.
<noonien>
there were other .desktops, such a google-chrome.desktop in the same folder sommewhere in /nix/store/...-system-path/share/applications
<growpotkin>
noonien: check your global and local profiles for them. If you have `nix-index`/`nix-locate` I'd spin those up to find it quickly
<growpotkin>
brb
<clever>
noonien: you want to be looking in /run/current-system/sw/
growpotkin has quit [Remote host closed the connection]
erasmas has quit [Read error: Connection reset by peer]
camsbury- has joined #nixos
erasmas has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
silver has quit [Ping timeout: 255 seconds]
<camsbury->
hey - using overlays to do evrrides on `python36` to use `pipenv`
<camsbury->
but doesn't seem to be working
<camsbury->
presumably because it does't know about the executable for `python36`
silver_ is now known as silver
rycwo has joined #nixos
growpotkin has joined #nixos
philippD has joined #nixos
scientist has quit [Quit: WeeChat 2.2]
drakonis has joined #nixos
linarcx has quit [Quit: WeeChat 2.4]
<growpotkin>
no luck on the reboot for fixing the font locale stuff for me :(
drakonis_ has quit [Ping timeout: 245 seconds]
rfold has quit [Quit: leaving]
<sphalerite>
how can I work out which module is bringing a particular package into the system path?
<colemickens>
How does NixOS choose between things like config.nixpkgs.config.firefox.enable{feature} and things more akin to /run/current-system/sw/share/{applications,vim-plugins} ?
<growpotkin>
colemickens: Could you give an example? I don't think I see the conflict
<sphalerite>
colemickens: what do you mean?
work_ has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<colemickens>
Maybe I'm missing an important difference, but with /share/vim-plugins, a package can output to $(out)/share/vim-plugins and they will appear at runtime under /run/... and thus can be used for plugins.
<colemickens>
In this case, the Firefox wrapper is told to include the FXCast extension host file, rather than it just picking up any that are present in /run/.../share/firefox-native-ext-hosts for example?
<sphalerite>
Firefox is almost the only case where it's still used
rcshm has quit [Read error: Connection reset by peer]
<colemickens>
aha okay
<sphalerite>
the disadvantage of having nixos options for this kind of stuff is that it doesn't allow per-user configuration, or use of the features outside nixos
rcshm has joined #nixos
<sphalerite>
The preferred approach for stuff that can be done without systemwide config (so that excludes setuid wrappers and systemd services for instance) is wrapper generators
<sphalerite>
s/^The/My/
<sphalerite>
I don't know if this is a generally accepted viewpoint :p
<colemickens>
Oh, I get it now, I think.
<colemickens>
Seems like package flags + home-manager could be a "Better" way?
rcshm has quit [Remote host closed the connection]
<sphalerite>
home-manager isn't as versatile, since you can't just stick a home-manager config into systemPackages
rcshm has joined #nixos
<sphalerite>
just having a function allows use in nixos, home-manager, plain nix-env… without tying you to any particular one
rycwo has quit [Quit: WeeChat 2.2]
rycwo has joined #nixos
<colemickens>
Right. Ack on the plain function. Maybe home-manager would be more apt for a more wholistic approach toward per-user runtime plugin-y thing? Not sure, I don't use home-manager.
rprije has joined #nixos
<sphalerite>
yes and no. home-manager is nice in that it provides a way to configure even applications that are completely stubborn about using your $HOME
<sphalerite>
but it still involves nasty state
kvda has joined #nixos
drakonis has quit [Ping timeout: 264 seconds]
<colemickens>
Hm, more so than regular NixOS? Aren't they both laying down readonly ini/conf files at the end of the day?
mkaito has quit [Remote host closed the connection]
mkaito has joined #nixos
mkaito has joined #nixos
<sphalerite>
sure
<sphalerite>
but wrapper scripts will work anywhere
* colemickens
nods
balsoft has quit [Ping timeout: 246 seconds]
stepcut has quit [Remote host closed the connection]
Makaveli7 has quit [Quit: Leaving]
<delroth>
does nixops support mixed-architecture deployments? i.e. one machine x86_64 and one machine armv7
<delroth>
and if so, how do I encode that in the machine's configuration?
stepcut has joined #nixos
<delroth>
(either with cross-compilation or using a native armv7 builder defined in my /etc/nix/machines -- I don't particularly care, but I'd guess the latter is more likely to work)
jasongrossman has quit [Remote host closed the connection]
<clever>
delroth: if you set nixpkgs.system (a nixos option), then you can control what arch its targeting
<clever>
and each machine in the deployment has its own nixos config, so you should be able to freely mix things
<{^_^}>
evanm_: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever>
evanm_: installing hpack system wide will never make it available to nix-build jobs
o1lo01ol1o has quit [Remote host closed the connection]
* colemickens
has never understood why this is the case
<colemickens>
is there extra linking that happens with nix-shell?
o1lo01ol1o has joined #nixos
<clever>
colemickens: nix-shell lets it happen, which can mislead users into thinking it works, then fails when you use nix-build
<clever>
nix-shell --pure prevents it
<clever>
systemPackages land in /run/current-system/sw/bin
<clever>
nix-env packages land in ~/.nix-profile/bin/
<clever>
nix-build simply doesnt put either one into $PATH
<clever>
so those packages are just not found
fendor has quit [Read error: Connection reset by peer]
Ariakenom has quit [Quit: Leaving]
<evanm_>
clever: So are you saying I should delete hpack and garbage collect?
aanderse has quit []
<clever>
evanm_: you dont have to garbage collect, just add hpack to the buildInputs for the derivation that needs ot
Shouou has quit [Ping timeout: 255 seconds]
<evanm_>
clever: ok
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<evanm_>
clever: I tried that and got an infinite recursion. I will repeat and resubmit...give me 5
aanderse has joined #nixos
hellauer has quit [Ping timeout: 258 seconds]
rcshm has quit [Remote host closed the connection]
hellauer has joined #nixos
npmccallum has quit [Ping timeout: 255 seconds]
rcshm has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__monty__ has quit [Quit: leaving]
growpotkin has joined #nixos
growpotkin has quit [Client Quit]
_kwstas has quit [Quit: _kwstas]
growpotkin has joined #nixos
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
adetokunbo has quit [Quit: This computer has gone to sleep]
jackdk has joined #nixos
<doyougnu>
Hi all, I'm trying to do some plotting in Julia with the Plots library. However I cannot generate any plots due to an error for a missing binary "gksqt". Looking at the libraries docs it seems this depends on qt so I've installed qt5.full but to no avail. Anyone have any ideas on where to get gksqt? Anyone on here using Julia with NixOs?
<growpotkin>
Hey anybody else use URxvt? I've been so frustrated with it for the last few weeks. Any alternative suggestions that are similarly lightweight/configurable?
rcshm has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
astronavt has left #nixos ["Leaving"]
yl has quit [Ping timeout: 244 seconds]
rcshm_ has joined #nixos
rcshm has quit [Read error: Connection reset by peer]
adetokunbo has joined #nixos
jasongrossman has joined #nixos
<aszlig>
LnL: just reported the problem to GH
ng0 has quit [Quit: Alexa, when is the end of world?]
rcshm_ has quit [Read error: Connection reset by peer]
rcshm has joined #nixos
<LnL>
thanks, the fact that it's a special merge does seem suspicious
<aszlig>
i guess it's related to the fact that the parent commit in master is from you... so maybe they just fall back to the last commit they recognize as a "valid" commit
<aszlig>
LnL: why? it's a standard merge method in git since its inception
<aszlig>
or okay, maybe not inception, but early days
<LnL>
sure, but it's not used often so a bug like this wouldn't be noticed by most users
camsbury- has quit [Ping timeout: 255 seconds]
<aszlig>
LnL: well, i did such merges a bunch of times in the past
<aszlig>
but maybe i didn't notice back then
rcshm has quit [Remote host closed the connection]
rcshm has joined #nixos
<aszlig>
but yeah, most people even don't do merges by hand but just click the merge button
i1nfusion has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 245 seconds]
i1nfusion has joined #nixos
jackdk has joined #nixos
alex`` has joined #nixos
growpotkin has quit [Remote host closed the connection]