rpg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mekeor has quit [Ping timeout: 258 seconds]
<pie_>
fresheyeball, i just googled doctest fail ghcjs and the first result is https://github.com/NixOS/nixpkgs/issues/47437 , idk if thats still true but it looks like doctest might not work with ghcjs
<fresheyeball>
pie_: that lib is intended to build with ghcjs, I doubt its using a toxic dep
Rusty1 has quit [Quit: Konversation terminated!]
<pie_>
ok
<fresheyeball>
oh wait
<fresheyeball>
lens
<fresheyeball>
I think lens uses doctest
<fresheyeball>
and jsaddle uses lens
<pie_>
theres probably a ton of thigns that use doctest?
<pie_>
maybe the problem is that the result is getting passed to why-depends and not the .drv
<pie_>
hmm
<pie_>
and maybe we can run why-depends on the drv without building. im just making wild guesses here
lovesegfault has quit [Quit: WeeChat 2.4]
<pie_>
fresheyeball, can you do nix show-derivation <the doctest thing> and see if you can find its .drv?
sigmundv has quit [Ping timeout: 245 seconds]
<pie_>
yeah it looks like using the .drv might work
thc202 has quit [Ping timeout: 268 seconds]
<pie_>
fresheyeball, sorry, you were already using the .drvs
<pie_>
hmph.
<pie_>
IDK.
<pie_>
sorry, maybe someone else knows
tomberek has joined #nixos
shibboleth has quit [Quit: shibboleth]
wolfman154 has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj308
Brejic has joined #nixos
wolfman154 has quit [Client Quit]
Rusty1 has joined #nixos
<catern>
hmm
<catern>
I've said so many good things about Nix that now my coworkers believe it can do anything
<catern>
and so now they want to use it as a way to rebuild project A which has private source code but public artifacts, on demand, whenever its dependency project B changes
<catern>
is there... any way that I can meaningfully use Nix to do this?
<gchristensen>
doesn't seem tricky, where is the hard part?
<tomberek>
catern: Hydra can do this, or if you want something more mainstream, TravisCI, sr.ht, and others can run Nix for builds.
<gchristensen>
oh, it knowing that B changed?
<catern>
"building a project that has private source code"
<gchristensen>
builtins.fetchgit can fetch with authentication
<catern>
no, sorry, the source code is private even to us
<gchristensen>
uh
<catern>
it's proprietary information stuff that we're not allowed to see ¯\_(ツ)_/¯
<gchristensen>
how do they conceive that is done?
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<tomberek>
you can just directly pull in the public artifacts, but you may have to patch/patchelf them to bring them into the nix ecosystem
<gchristensen>
there you go, patchelf old-and-busted projB with new-and-nice projB
<catern>
well, at the moment, people who have ACLs to the source code manually build using our existing build system, and push the artifacts to a secure host where they can be pulled down for deployment by people who have ACLs to the artifacts
vk3wtf_ has joined #nixos
<catern>
and they want to automate rebuilding private A when public B changes
<gchristensen>
they would use nix?
mexisme has quit [Ping timeout: 255 seconds]
<catern>
yes, they believe Nix can do anything now, perhaps I've oversold it :) (though I never said that it could do this, I think they just assume it can do anything)
rpg has joined #nixos
<catern>
so yes they'd convert to using Nix for the builds to do this
<gchristensen>
builtins.fetchgit can do both unpinned inputs and authenticated fetches
<gchristensen>
so the next thing is a cron to run it, and it'll only rebuild if something changed.
<catern>
well... I don't just mean CI, I mean on-demand rebuilding A once you've made changes to B
<gchristensen>
if B can send them a notification of change, then Nix could be triggered
<gchristensen>
but Nix isn't going to watch B for changes
<catern>
(like - here's the scenario - I change the code of B and I want to rebuild A and re-run tests to make sure that my changes to B didn't break A)
<{^_^}>
[nixpkgs] @jtojnar merged pull request #59916 → networkmanager: port to Meson → https://git.io/fjOrt
<aanderse>
looks like my system is recompiling everything now
<aanderse>
assuming i did something wrong
<infinisil>
aanderse: python is python2 by default
<infinisil>
So by overriding python3 = ..python.., you're probably setting everything to use python3 where it used python2 previously
<aanderse>
right, typo on my part, thanks for catching
<catern>
gchristensen: yeah but how would you get Hydra to build the thing against your updated version of its dependencies? without, like, updating some shared branch
<gchristensen>
catern: easy, one sec
<gchristensen>
catern: well exactly right: have it refer to your repo's branch
<yuken>
... god damn it, I'm stupid. I'm fairly sure the ENTIRE reason my NixOS install hasn't been working was because I set the efi mount point as /boot/efi
<yuken>
whjen it wants the efi _partition_...
<yuken>
omfg, that was the issue
rpg has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<clever>
pie_: the chain of errors when a build fails tells you what needed it
rpg has quit [Ping timeout: 245 seconds]
<pie_>
fresheyeball, ^
<pie_>
yuken, contrats in finding it xD \o/
<pie_>
congrats
<pie_>
i swear like 4 people just showed up looking like freshly wanting to use nix at work
lovesegfault has joined #nixos
<pie_>
are they all the same people, people from the same company, or am i having massive amounts of dejav u
<yuken>
Are tabs frowned upon in Nix configs? I hate using spaces myself.
<gchristensen>
2 space indents is the upstream style
<yuken>
Thanks - so far, so good. I at least booted to XFCE.
fusion809 has joined #nixos
<dsx>
Anyone is using drbd on NixOS?
tomberek has quit [Ping timeout: 250 seconds]
<pie_>
as long as it can be automatically reformatted form my style to whatever an upstream wants i probably wouldnt care
<pie_>
(i havent actually looked into anything involving automatic reformatting yet)
<dsx>
>automatic reformatting
<dsx>
Would be quite nice to have actually!
<dsx>
Kind of like «go fmt» does
<yuken>
Huh. Whiskermenu seems to have no icon, lets see if a reboot fixes that.
<yuken>
It did, wowzers.
Supersonic has quit [Ping timeout: 268 seconds]
dbmikus has quit [Ping timeout: 255 seconds]
jmgai_ has joined #nixos
<catern>
is there any way to use exportReferencesGraph with nix-shell? I have a build which uses exportReferencesGraph, which I'd like to do interactively in nix-shell while developing
georges has quit [Ping timeout: 268 seconds]
o1lo01ol1o has joined #nixos
jmgai has quit [Ping timeout: 268 seconds]
Supersonic has joined #nixos
<catern>
alternatively, I guess I can just check IN_NIX_SHELL and use nix-build --dump-db <path>
jasongrossman has joined #nixos
kleisli has quit [Ping timeout: 268 seconds]
georges has joined #nixos
Shouou has quit [Ping timeout: 245 seconds]
sb0 has quit [Quit: Leaving]
armin has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Ping timeout: 252 seconds]
kleisli has joined #nixos
tomberek has joined #nixos
pareidolia has quit [Ping timeout: 245 seconds]
noonien has quit [Quit: Connection closed for inactivity]
pareidolia has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<parsnip>
hmm, even with a fresh system, i frequently get, "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring"
<lordcirth>
What does, eg, { stdenv }: at the beginning of a .nix file mean? Is it an import?
<parsnip>
and my google-fu did not seem to enlighten me
<ivan>
afaik { x }: x is a function that takes an attribute set with an x
<lordcirth>
ivan, so, when a .nix file consists of { stdenv, other, comma, sep, stuff }: then the first part is the list of arguments required?
<ivan>
yes
<lordcirth>
Ah, ok, and then I see below that some of them are foo ? null, so they can be unset
lovesegfault has joined #nixos
gspia has joined #nixos
<ivan>
I mean, the argument is a single attribute set
<lordcirth>
Right, ok.
<ivan>
functions in nix take a single argument, but there is currying of course
<lordcirth>
So, I need this package to also import 'oath-toolkit', so I need to add it to buildInputs, but also to args, so that a specific drv can be passed in, right?
<ivan>
yes
mabel has quit [Ping timeout: 255 seconds]
<lordcirth>
So, where are all the other args being passed from? Some overall nixpkg file?
<ivan>
all-packages.nix or one of the things it imports
<lordcirth>
Well, ./configure works now, and it's compiling, so that's cool!
vk3wtf_ has joined #nixos
tboston_ has joined #nixos
jtcs has joined #nixos
jasongro` has joined #nixos
jasongrossman has quit [Ping timeout: 245 seconds]
schneid3306 has joined #nixos
kvda has joined #nixos
domogled has joined #nixos
schneid3306 has quit [Quit: ZZZzzz…]
<justanotheruser>
what does `broken = true;` in a packages meta indicate?
<maurer>
justanotheruser: That means it is not expected to succeed in build, and so hydra won't try
<justanotheruser>
why do broken packages exist? Shouldn't the testing suite indicate any broken dependencies from your changes?
jasongro` has quit [Ping timeout: 245 seconds]
<justanotheruser>
referring to nixpkgs
<maurer>
Basically if a package isn't super important, but also isn't so old as to be considered never-gonna-be-fixed, broken is an intermediate state where it's still there and can be repaired, but it won't hold up other important updates
<maurer>
e.g. my lab's libbap package is in nixpkgs, but if it didn't work with a libc update (possible because it uses fancypants plugin loading), it'd be dumb to hold that up for it
<maurer>
On the other hand, if it's just marked broken, I might stop by and fix the build back up again
<maurer>
(or fix upstream to fix it)
<justanotheruser>
makes sense, thanks!
tboston_ has quit [Ping timeout: 240 seconds]
<lordcirth>
ceph is marked broken, and I am hoping to fix it. Making some progress in building it
<lordcirth>
Ceph is huge though, and I'm new to Nix, so we'll see.
domogled has quit [Quit: domogled]
<maurer>
Yeah, and it is probably good for lordcirth's efforts that the previous rceph package's remnants are present
<lordcirth>
very much so
<lordcirth>
My current record is 29% through the make :P
<infinisil>
Getting through broken makefiles is like beating highscores
<Ralith>
yuken: you need suitable drivers enabled
<yuken>
Ralith, whenever I use any "normal" distro, appropriate drivers are typically used automatically (such as AMDGPU). Will this be the case for Nix?
<Ralith>
yuken: refer to the documentation for services.xserver.videoDrivers, I believe
<Shados>
lordcirth: I got Ceph building OK a while back (12.x), but had a problem where despite the build succeeding, it appeared to be silently *not* building a couple of the binaries =/.
MichaelRaskin has quit [Quit: MichaelRaskin]
Rusty1 has quit [Quit: Konversation terminated!]
m0rphism has joined #nixos
endformationage has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yuken>
NixOS is older than I realised too, I thought it was some new hipster distro for a while :p
<srhb>
Er, git log*
<srhb>
yuken: Yeah, it's really gone under the radar.
<srhb>
I guess ripping out FHS will do that. :-)
<{^_^}>
[nixpkgs] @tadfisher opened pull request #60070 → plex: modernize package, support i686 → https://git.io/fj3zX
<yuken>
So, if I want to use custom fonts without... completely breaking Nix, how should I go about that? I want to import some Windows 10 fonts that I have from my ISOs, Lucida Console specifically
<yuken>
So far, I've not found any free fonts that I like more t han that for consoles/IRC.
<srhb>
yuken: Try looking at an existing, similar font package
palo has quit [Ping timeout: 255 seconds]
palo1 is now known as palo
<srhb>
yuken: You will be writing something like that, pointing the source to whatever local place you have the source/font files at
<yuken>
I'll check one out then. And, to my Firefox issue above, I'm not sure how I'd resolve that. Just building my own Firefox?
<parsnip>
hmm, just did `mkdir -p /nix/var/nix/profiles/per-user/root/channels` to get rid of "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring"
<srhb>
(You can inline "package definitions" -- for want of a better word, directly in your config, so it essentially amounts to writing "real" packages for your fonts"
<srhb>
yuken: No idea about that issue, sorry.
<parsnip>
(in darwin-nix)
<parsnip>
hope that was a well enough solution
<yuken>
Damn, I guess I'll compare how Arch and Nix build Firefox and build it myself.
<srhb>
parsnip: It's probably fine.
<yuken>
I hate light themes with a passion, they burn my eyes :p
<parsnip>
okay thank you
<srhb>
(At least, it shouldn't cause any nasty surprises)
<parsnip>
there was a reddit solution for something similar where they went with sudo nix-channel --update, but that seemed to bork things, so i reinstalled
<yuken>
Oh.
<srhb>
Hmm, that shouldn't bork things..
<yuken>
Maybe it's because XFCE4 is GTK2, and Firefox is (presumably) built with GTK3 by default with Nix?
<srhb>
But on a single user install some amount of caution has to be taking when using root.
<srhb>
yuken: Sounds plausible.
<parsnip>
well, I had some db that needed to be chown'd, and I didn't try to amend whatever typos there were in the suggestion
<yuken>
Well, that'll be a good experiment with building Nix packages myself then.
<parsnip>
i.e., nix suggested to chown -R ...db
<srhb>
parsnip: That sounds reasonable to me?
<parsnip>
maybe the suggestion was typo in missing user argument, or I had an old chown
<yuken>
Any wiki page on building packages with my own options? No table of contents on Nix's wiki from what I see, which is annoying.
<parsnip>
maybe I didn't try hard enough
<srhb>
parsnip: Or it's more of a hint than a real command :-P
<srhb>
Which arguably is not good
<parsnip>
yeah, incomplete commands that seem to be indented as real commands are kind of worrisome when messing with sudo
<srhb>
Yeah.
<srhb>
parsnip: At a first glance the only thing I see in sources is this: "[...] If you wish to continue with a single-user install for $USER please run 'chown -R $USER $dest' as root."
<srhb>
Anyway, if you see it again, do holler.
<parsnip>
hmm, that $USER wasn't there, I thought
<symphorien>
yuken: about xfce being gtk2: nixpkgs also has xfce 4.13, which is partly ported to gtk3 iirc
Serus has quit [Ping timeout: 245 seconds]
<yuken>
I'll go try that real quick, symphorien. If XFCE is setup by services.xserver.desktopManager.xfce.enable, how would I specify which version to use? include it in my system packages?
<yuken>
.... Oh, turns out Firefox just doesn't use system colors by defualt with Nix, no need to recompile lol
Serus has joined #nixos
fusion809_ has joined #nixos
fusion809 has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixpkgs] @edude03 opened pull request #60071 → garden-runc: init at 1.17.1 → https://git.io/fj3zQ
linarcx has quit [Quit: WeeChat 2.4]
linarcx has joined #nixos
logzet has joined #nixos
<yuken>
Oh wow, Pulseaudio in Nix even set my microphone as the default input device, which has _never_ happened to me on any Linux distro
<yuken>
always been the built-in monitor!
stepcut has quit [Remote host closed the connection]
<etu>
yuken: That's probably just luck :)
stepcut has joined #nixos
<yuken>
Maybe, maybe not :p
<etu>
Hope it's reproducible luck though ;)
<yuken>
I assume with my Nix configs, I can run bash (or shell in general) scripts, right? (Let's say I want to setup my Firefox profile and XFCE to be identical on multiple machines, with a "master" config on my NAS)
tomberek has quit [Ping timeout: 268 seconds]
<symphorien>
I don't understand
stepcut has quit [Ping timeout: 250 seconds]
<etu>
yuken: You can run bash-scripts sure
<etu>
yuken: And your user have a regular home-directory where you can store things
<dfordivam>
etu: sorry I did not understand.. I meant the filesystems option mounts a disk /dev/sdb to user' home(~/somedir). I want this mount point to be owned by the user and writable by them.
cdepillabout has joined #nixos
<srhb>
dfordivam: Ownership of the mount point is usually not a declarative thing, but a property of the filesystem itself
<etu>
dfordivam: ahh :)
<dfordivam>
hi srhb !
<etu>
dfordivam: I misread, then what srhb said is valid
<srhb>
dfordivam: In other words, you probably want to chown it manually, not add mount options to alter the uid/gid-mapping
<cdepillabout>
Is there a way to (easily?) get all the `meta.license` values for all the dependencies of a derivation? For instance, given a list of dependencies generated by something like `nix-store --query --requisites $(nix-build)`, I'd like a list containing the license for each dependency.
<jomik>
If you can get the list of derivations, then you can map over it to get the license.
linarcx has quit [Ping timeout: 268 seconds]
<srhb>
dfordivam: (If you _really_ need to automate it, I'd recommend something simple like a oneshot system unit that ensures this, rather than messing with mount options, but I guess it depends on your use case) :-)
<symphorien>
maybe systemd-tmpfiles.d can do this for you
ar1a has quit [Ping timeout: 252 seconds]
zupo has joined #nixos
<dfordivam>
srhb: Can you elaborate.. I am creating a VM by nix so it has to be fully automated, and perhaps declarative.. is this a good place to do this? -> boot.initrd.postMountCommands
<cdepillabout>
jomik, That's a good point. I know how to get the list of derivations with the `nix-store` command, but I'm not actually sure how to get the list of derivations from within nix. Do you have any idea?
logzet has joined #nixos
<cdepillabout>
dfordivam, Hey, how's it going?
<logzet>
Hi, is there a way to find out why a package is installed?
<logzet>
I'm trying to disable kwallet in favor of gnome-keyring on my i3 setup
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dfordivam>
cdepillabout: going good, missed you at the Tokyo Haskell meetup on sunday.. but got to know the work you doing from Ramin..
vid has joined #nixos
<cdepillabout>
dfordivam, Yeah, I'm living in Sapporo now, so I haven't been to any Haskell meetups lately!
<{^_^}>
[nixpkgs] @plchldr opened pull request #60072 → rtl8821au: update for Linux 5.0 → https://git.io/fj3gg
<LnL>
bahamas: what error specifically? that's a more general issue on forwards compatibility
<__monty__>
Where does nix's wrapper functionality get the `${extraFlagsArray[@]}`? Just looked into how nix does its shebang patching and it may have dropped an argument I want passed to the interpreter.
<bahamas>
LnL: I haven't done that. what should I try exactly? delete the store and then?
<bahamas>
also, where is the store? I don't usually use nix
<bahamas>
error: getting status of '/nix/store/l713q53x0h6lngb58g85qrsh9rr8n3fb-source': No such file or directory
<teto>
dfordivam: is nix mentioned during the haskell meetup ? I would like to fix the ihaskell kernel to make it work cleanly with jupyter (or someone else). When is the next one ?
<LnL>
bahamas: seems like the command itself is working now, bit the expression you are building is missing it's source for some reason
<bahamas>
LnL: so what would be the cause of this? I just cloned the project and didn't make any changes. what could I do to fix this?
<dfordivam>
teto: do you know mokumoku kai? sorry there was no nix there, only me struggling to get the nixos virtualBox .ova creation to work..
<cdepillabout>
teto, from what I can tell, there doesn't seem to be very much interest in Nix in Japan :-\
<LnL>
bahamas: not sure, depends on the project
<jomik>
cdepillabout: What derivations are you trying to get? In my case, I could get the license of all packages I install with home-manager by using `config.home.packages`.
<bahamas>
LnL: so the problem is in one of the nix files of the project?
<LnL>
I think so
<teto>
dfordivam: not yet. Is the meetup in Japanese ? are there some foreigners (English speakers) attending ?
<cdepillabout>
jomik, I'm trying to get all derivations that are dependencies of this project we have at work. So I have a `default.nix` file in the current directory that builds our project. I can get all dependencies by doing something like `nix-store --query --requisites $(nix-build ./default.nix)`. I'd like to get a list of all the licenses.
<dfordivam>
teto: It depends, I dont live in Tokyo so only attend once in a few months. When I attended in Jan then there were around 6 to 8 English speaking ppl, this time only 2.
<__monty__>
How's working conditions in japan for foreigners?
<cdepillabout>
__monty__, It depends on the company. In general it is not bad, especially if you are in a foreign-owned company. Pay is usually less than the US though.
<LnL>
bahamas: does nix-build '<nixpkgs>' -A hello work?
<bahamas>
LnL: it did. there was no error
kvda has joined #nixos
kvda has quit [Client Quit]
<LnL>
the install definitively looks fine then, not sure what's failing then
<jomik>
cdepillabout: Ooh, you need the licenses for all the dependencies as well? I figure they would be reflected by the top-level packages? I am sorry - I am not too sure how that would work.
vid has quit [Ping timeout: 245 seconds]
<bahamas>
LnL: can you explain what the error means? what's that file supposed to be?
<cdepillabout>
jomik, Ah, thanks for your help!
elninja44 has quit [Remote host closed the connection]
<Qubasa>
Does somebody know how the Project name was of this nix-shell replacement was?
<etu>
lorri
<Qubasa>
Ah thanks!
<teto>
I a trying to compile wireshark within a nix-shell and I need the compile_commands.json to get LSP completion/disagnostics in my IDE. I've changed the stdenv to clangStdenv yet no compile_commands.json is generated. It's a cmake-based project. Any idea ?
<linarcx>
Guys, i want to make dwm. but it give me an error: `X11/Xlib.h not found.` i'm using direnv. what package should i add to satisfy it's dependency?
<teto>
seems like I need to pass -DCMAKE_EXPORT_COMPILE_COMMANDS=YES to cmake :'(
ckauhaus has joined #nixos
jmgai_ has quit [Quit: leaving]
<{^_^}>
[nixpkgs] @vcunat pushed to master « lua*Packages.cqueues: fix internal version number »: https://git.io/fj3a0
pie_ has quit [Ping timeout: 258 seconds]
<teto>
(rubberduck: that was it, I can now use a compile_commands.json \o/)
<{^_^}>
[nixpkgs] @Streetwalrus opened pull request #60081 → nginx: use fullchain.pem for ssl_trusted_certificate → https://git.io/fj3VE
linarcx has quit [Quit: WeeChat 2.4]
<dfordivam>
I am trying to create an executable script, which will be executed on a debian system, using pkgs.writeTextFile. So I am using #!/bin/bash, but nix replaces it with /nix/store..bash . Is there a way to avoid this
linarcx has joined #nixos
<dfordivam>
similarly I am using unshare, but nix complains that it does not exist. I want the nix to just write a text file and do no checks/replacements..
silver has quit [Read error: Connection reset by peer]
silver has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 merged pull request #60058 → iwd: split ell to separate derivation, update iwd and ell → https://git.io/fj34O
<{^_^}>
[nixpkgs] @marsam opened pull request #60083 → python3Packages.Nikola: add missing extra dependencies → https://git.io/fj3V9
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @cdyson37 to release-19.03 « python-docs: typo »: https://git.io/fj3VH
<nbp>
pie___: 1) grafting is the action of take some packages built against another, and replacing it. This implies substituting the sha of the dependencies to use a rebuilt version of the dependency. This way you do not have to recompile chrome if you change one of its runtime depdendency.
<nbp>
pie___: 2) SOS is mentioned in the RFC, and it was meant to simply the Nixpkgs packages, such that we have the same expressiveness without lossing grafting abilities.
zarel has joined #nixos
pie_ has joined #nixos
mekeor has joined #nixos
knupfer has joined #nixos
psyanticy has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
<dfordivam>
Is there a way to avoid this pass of nix-build "patching script interpreter paths in ..."
<__monty__>
dfordivam: It's replacing it because of patchShebangs. So find out what phase that runs in and rewrite the phase.
<teto>
dfordivam: must be "patchPhase"
xkapastel has quit [Quit: Connection closed for inactivity]
<__monty__>
Because of how nix wraps python scripts our shebang isn't being respected. We normally use #! python -O but after being wrapped with nix the -O flag is lost. Can this be fixed, and if so how?
<callahad>
Should I be instructing GrahamcOfBorg to build things when I submit a pull request, or is that privilege limited to committers (which I am not)?
linarcx has quit [Ping timeout: 255 seconds]
<arianvp>
callahad: you can request access even if you don't have commit access by adding yourself to the list of build people in the ofborg repo
<arianvp>
You can send a pr
knupfer has quit [Ping timeout: 252 seconds]
<callahad>
arianvp: Thanks, will do :)
xkapastel has joined #nixos
varjag has quit [Remote host closed the connection]
jtojnar has quit [Ping timeout: 255 seconds]
<pie__>
hi folks, i have some overlays questions,
<pie__>
should i use .callPackage from self or super? i think super?
o1lo01ol1o has joined #nixos
<__monty__>
pie__: I'm using it from self, no reasoning though and tbh it sounds like something you'd use from super. So probably simply ignore this.
<dminuoso>
lassulus: Did you perhaps mean to configure that as your displayManager?
<dminuoso>
lassulus: Oh wait heh.
<dminuoso>
lassulus: Yeah, desktopManager and displayManager are two different things.
<lassulus>
yeah, but I don't really need a desktopManager in this usecase
<lassulus>
If I set windowManager.default = "2bwm"; it's working correctly
<srhb>
Does anyone have a wild guess why icedtea_web's javaws might crash on a non NixOS-system, but work just fine on NixOS? various straces and attempts at debugging hasn't really helped me so far, it's pretty indecipherable, happening in libc.so.6 with __memmove_avx_unalined_erms and occuring downstream of some java font wrangling.
stepcut has joined #nixos
<lassulus>
but maybe it would be nice, if xterm wouldn't have precedence over 2bwm?
<srhb>
Funnily X forwarding it over SSH to my NixOS machine also works.
<etu>
lassulus: You can always disable services.xserver.desktopManager.xterm.enable
<gchristensen>
+1 lassulus
<etu>
lassulus: I think that may help you
<gchristensen>
what you've done, imo, should indeed make 2bwm the thing
<lassulus>
etu: oh, that's another issue, if I disable services.xserver.desktopManager.xterm.enable and don't set a default WM I trigger this assertion: http://p.krebsco.de/0yldz1j
<jomik>
Hey - so I am trying to build a vim plugin that requires `npm install`, I can already do this simply if there is a yarn.lock file, because yarn2nix has a `mkYarnModules` expression. I can't seem to find similar for `node2nix`. I can not get it working by using `buildNodePackage`. Anyone have any ideas ?
erictapen has quit [Ping timeout: 276 seconds]
thoradam has joined #nixos
linarcx has joined #nixos
fendor has quit [Remote host closed the connection]
<fendor>
what is the intended way of executing haskell integration tests on nixos? The problem is, I want to use the previously built executable to be run and execute some tests against it, e.g. input output. How do I best get access to the executable? I am required to use either cabal or stack to run the tests, otherwise other people on the project wont be able to run it.
<fendor>
however, for me it would actually be fine to run the tests via nix somehow, as long as they run.
<pie__>
yorick, im guessing you solved your bashinteractive problem or whatever?
srid0 has joined #nixos
linarcx has joined #nixos
<NemesisD>
is there a reasonable way to allow a nix-build to access the internet? i'm using node2nix to generate an expression, it has to go ask npm for the full dependency list to satisfy the given versions, which is a source of impurity. however, if i require these versions be explicitly specified, then i think morally that network call would be considered pure?
<yorick>
pie__: yeah I just typed 'interactive', I'm just salt that it took me long to debug
<srhb>
NemesisD: The way we do "morally pure internet access" is fixed output derivations, which I suppose is what node2nix does.
Ralith_ has quit [Ping timeout: 245 seconds]
<pie__>
yorick, not sure what you mean but \o/
<srhb>
NemesisD: But you can do it however you want as long as you can specify the output hash of whatever you fetched in advance.
mabel has joined #nixos
<jomik>
yorick++
<jomik>
Whyyy
<NemesisD>
srhb: yeah it produces a few .nix files when you run it. the trick though is that i want to provision node2nix itself with nix and write a derivation for the output. how would i specify the hash of what node2nix is going to fetch? i don't really have visibility into the thing it downloads
<jomik>
Can he not get karma? :
<jomik>
:P
<NemesisD>
srhb: do you mean specify the hash of the resulting derivation somehow?
<pie__>
bbiab
Tucky has quit [Quit: WeeChat 2.2]
<yorick>
jomik: they changed it to <3 yorick now :D
<grahamc>
oh oops
<grahamc>
sorry, the bot is down and I forgot to do the last step to bring it up :D
<grahamc>
uhh maybe it isn't down, but just confused ... hrm ...
<sphalerite>
jomik: both ++ and <3 work
<sphalerite>
(and yorick )
Guest79825 has quit [Remote host closed the connection]
<yorick>
sphalerite: thanks!
<grahamc>
infinisil: looks like your end needs to be restarted? I rebooted the host
pie__ has quit [Ping timeout: 258 seconds]
<jomik>
<3 yorick
<yorick>
heh still no :P
<jomik>
:O
<grahamc>
:/
<yorick>
jomik: we might advertise nix-npm-buildpackage a bit harder, even though it's a bit of a hack at some points (npm bugs :/)
<jomik>
Well, thank you! :P
<jomik>
Yeah, npm is mehhh
<jomik>
yarn seems more consistent for this?
<jomik>
I didn't check, but I think that we want to use `npm ci` not `npm install`, not sure if that is what it does.
<yorick>
yeah, that's what nix-npm-buildpackage does
<jomik>
That functions similarly to `yarn install`, since it actually adheres to the lockfile.
<jomik>
Yah, nice
<yorick>
but it first moves the dependency packages into the npm cache
<jomik>
npm-buildpackage is not part of nixpkgs, right?
<yorick>
not yet, maybe it should be
<jomik>
I did get an error that I should use the `--offline` flag.
acarrico has quit [Ping timeout: 258 seconds]
<jomik>
Tho, it built correctly.
<jomik>
On a different note - do people use a channel for NUR?
<yorick>
the main problem is install scripts using unpatched shebangs so we wrapped bash to run patchShebangs first :P
<jomik>
I am considering it - currently I just point at my master
pie_ has quit [Ping timeout: 245 seconds]
<jomik>
yorick: Yeah, I noticed that :P
grahamc is now known as gchristensen
gchristensen is now known as {^_^}
{^_^} is now known as gchristensen
{^_^} has joined #nixos
<{^_^}>
[nixpkgs] @Mic92 opened pull request #60097 → nixos/openldap: make rootpw option optional → https://git.io/fj3Mv
<gchristensen>
there we go
periklis has quit [Ping timeout: 245 seconds]
Neo-- has joined #nixos
<Taneb>
I think I've discovered a weird edge case in Hydra to do with remote builders and system features
<gchristensen>
oh?
<jomik>
gchristensen: For karma?
<gchristensen>
jomik:hm?
<Taneb>
Although I haven't rigorously tested this or found the code to blame
<jomik>
Oh, thought your `there we go` might have been that the karma bot was restarted.
<gchristensen>
I don't have control of the karma portion of {^_^}, that is maintained by inf
<gchristensen>
infinisil*
<jomik>
Oooh
<gchristensen>
{^_^} is just an IRC <-> rabbitmq gateway process
<Taneb>
So, it seems, when I made a job which had no builders with the required system features, and then changed my remote builders so that one of them had that system feature (without changing the remote builders otherwise, in particular without adding a new builder), the job was never handed out
srid0 has quit [Ping timeout: 258 seconds]
stepcut_ has quit [Remote host closed the connection]
stepcut has joined #nixos
<yorick>
gchristensen: what's the advantage of rabbitmq for this?
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Remote host closed the connection]
<dsx>
Is there a good example how to overlay emacs package? I need new flycheck-mode =\
<gchristensen>
yorick: a neat thing about it is there is no logic in the gateway, so any feature changes are invisible to users (no join/part)
<gchristensen>
yorick: and trusted community members can implement backends (like infinisil has) without much coordination
<yorick>
gchristensen: ooh, neat. who runs the "channel advanced" one?
<gchristensen>
yorick: additionally, transient processes are able to send messages through the bot -- like the "channel advancement" announcements are done from a transient process
<infinisil>
My recent changes that are supposed to restart it automatically made it fail completely
Denommus has quit [Quit: restarting Emacs]
Denommus has joined #nixos
Denommus has quit [Client Quit]
Denommus has joined #nixos
zmacs has joined #nixos
<{^_^}>
[nixpkgs] @Izorkin opened pull request #60099 → phpPackages: add prefix 'php-' to packages → https://git.io/fj3yk
ddellacosta has joined #nixos
knupfer has joined #nixos
zmacs has quit [Read error: Connection reset by peer]
__monty__ has quit [Ping timeout: 246 seconds]
__monty__ has joined #nixos
dbmikus has quit [Ping timeout: 258 seconds]
Xiro` has joined #nixos
<NemesisD>
is it possible to write a fixed-output derivation function t hat still depends on arguments as well. i.e. it should rebuild any time an argument changes but verify the output against the `outputHash`
sigmundv has quit [Ping timeout: 245 seconds]
nD5Xjz has quit [Ping timeout: 244 seconds]
fendor has quit [Ping timeout: 276 seconds]
Xiro` has quit [Client Quit]
<gchristensen>
no
pie_ has joined #nixos
nD5Xjz has joined #nixos
Xiro` has joined #nixos
<NemesisD>
gchristensen: here's the expression i'm working on: https://gist.github.com/MichaelXavier/eeaaf602e6e178f769cf826937660513 i'm using a fixed-output expression because the expression has to use `nodeDeps` and make a call out to the internet, but it should produce a stable output and i'm using `outputHash` to essentially wager that
linarcx has quit [Ping timeout: 255 seconds]
<NemesisD>
i'm open to doing this another way but it has to rebuild the derivation if `nodeDeps` or really any of the arguments change or the whole thing isn't going to work
linarcx has joined #nixos
<laas>
how do you guys build executables that also work on other distributions?
<laas>
is there any shortcut that doesn't involve manually patching the interpreter, etc.?
<sphalerite>
laas: there's nix-bundle. It's not a beautiful solution though.
<sphalerite>
laas: best solution is to have "1. Install nix" in your installation instructions :p
<tilpner>
pkgsStatic might work in some rare cases
<laas>
lol
<laas>
sphalerite: I'm trying to avoid nix-bundle
<laas>
tilpner: can you elaborate on what pkgsStatic is?
<tilpner>
I don't know how these are called, but it's nixpkgs with changes to build statically linked executables
<tilpner>
They usually don't work though
<sphalerite>
laas: there's also the (also ugly) option of tarring up the whole closure of your software.
<sphalerite>
laas: but really, just make a source distro and be done with it is the best answer :p
<laas>
I really just want to build an ordinary executable
<laas>
e.g. I clone some project on github
<laas>
I set up a shell with nix-shell
<laas>
I do make, but my exe can only be run on nix
aevos has joined #nixos
<sphalerite>
laas: distributing executables without a package manager sucks and I'd say you should avoid it to the best of your ability
<sphalerite>
but that's just my opinion
<sphalerite>
and I need to leave now :p
<sphalerite>
o/
Shouou has quit [Ping timeout: 246 seconds]
<symphorien>
laas: if the target machine does not have nix: tar cvf foo.tar $(nix-store -qR /nix/store/foo) on the machine with nix, and then sudo tar xvf foo.tar on the target machine
<symphorien>
you don't need nix at runtime
<laas>
well I suppose I can do that
<laas>
thanks
<symphorien>
but you still need to "install" the executable in /nix/store
<laas>
yeah
<laas>
and it also packages all dependencies with it
<symphorien>
you could also build with a custom store, but this implies rebuilding the world
<symphorien>
laas: well, if they are dependencies, you need them :°
Myhlamaeus has joined #nixos
<pie_>
clever, maybe it would be better if this was instead makeExtensible + callPackageWith
ris has joined #nixos
<pie_>
still gonna be poking at this stuff a while but i think im approaching something that works..
npmccallum has quit [Ping timeout: 255 seconds]
acarrico has joined #nixos
xkapastel has joined #nixos
npmccallum has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
dbmikus has joined #nixos
<{^_^}>
[nixpkgs] @hedning opened pull request #60100 → Add mutter nvidiga eglstream support → https://git.io/fj3yS
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Glider_IRC has quit [Ping timeout: 258 seconds]
aevos has quit [Quit: leaving]
mwilsoncoding has joined #nixos
<exarkun>
Where does this "zed" process come from? I'm not using zfs. Can I turn it off?
<mwilsoncoding>
is it safe to say that the isPy3k usage here, along with `lib.optional` and `futures`, is meant to provide some level of support for python2.x? (as in, if pythonVersion < 3.0 then include the `futures` package?)
<NemesisD>
how can i influence when a fixed-output derivation rebuilds?
<exarkun>
(fin)
o1lo01ol1o has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
<srhb>
NemesisD: It only ever does when the hash changes.
<srhb>
NemesisD: Or rather, when the hash is not present.
<clr_>
NemesisD: I'm guessing that you changed the source but not the hash - I do that in my workflows too and always have to remember to corrupt the hash to get it to download the new file.
<Orbstheorem>
Can someone merge #60024? It's already been aproved ^^
<{^_^}>
https://github.com/NixOS/nixpkgs/pull/60024 (by roosemberth, 1 day ago, open): libguestfs-with-appliance: Add package for libguesfs containing libguestfs appliances
<NemesisD>
that person solved it by baking an additional hash into the name of the derivation that factors in the inputs that determine the output hash: `"foo-${builtins.hashString "sha256" buildCommand}-0.0"`
<srhb>
NemesisD: Why do you need this?
<srhb>
NemesisD: Or, to elaborate on my confusion: Is it not possible for you to reduce the fixed output derivation down to whatever you need fetched, and then use that as an input to whatever?
<srhb>
I'm guessing the answer is probably "not trivially". :-P
mabel has joined #nixos
<NemesisD>
srhb: i'm trying to depend on some node packages for build. there's a tool node2nix that takes a list of fixed dependencies, gets the full dependency tree from npm and generates some nix expressions. a standard derivation will not allow those internet calls. i'm trying to use those fixed dependencies as my input and the output hash as a wager that nothing has changed
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<srhb>
NemesisD: I don't understand. node2nix creates the fixed output derivations for you in their entirity, you shouldn't run it _in_ a build.
<srhb>
The resulting nix expressions won't require any impure internet access.
<NemesisD>
srhb: yes but if my goal is for node2nix to be itself provisioned by nix, and it generates fixed output derivations that i want also in my build, how do i do both?
stepcut_ has joined #nixos
<bifunc2>
gchristensen thanks! nix pills look great! i'll read them
zupo has joined #nixos
<srhb>
NemesisD: Indeed, you cannot do that.
<NemesisD>
srhb: the only thing i can think of is to stick a `nix-build` expression in before my nix-shell is called that always recomputes those fixed output derivations from node2nix
<srhb>
I mean, you can do whatever you want in a nix-shell.
<srhb>
This is how many auto updaters work.
romildo has joined #nixos
stepcut has quit [Ping timeout: 245 seconds]
<NemesisD>
or rather a `nix-shell` i should say that boots, requesting node2nix be available and dumping the expressions somewhere that is gitignored
<srhb>
Why would you gitignore them? Aren't they what you want to check in exactly?
<srhb>
Otherwise nothing is reproducible.
tboston_ has joined #nixos
<gchristensen>
great, bifunc2!
<NemesisD>
srhb: they take a list of exact dependencies. i instinctively avoid checking in auto-generated code but i guess this may be analogous to a Gemfile.lock or package-lock.json where you're meant to check it in
lovesegfault has quit [Ping timeout: 252 seconds]
<NemesisD>
at least you'd be confronted with a diff if something about those expressions changed
<qyliss>
If you have a list of exact dependencies, including checksums, you probably don't need node2nix
<infinisil>
Orbstheorem: Done that :)
<srhb>
NemesisD: nixpkgs consists of a lot of this. There's nothing wrong with the autogenerated stuff being checked in, especially when it makes things reproducible.
kleisli has quit [Ping timeout: 276 seconds]
<qyliss>
If all you have is a package-lock.json, that doesn't include checksums, so there's no guarantee things won't change
<Orbstheorem>
infinisil: Thanks !
<NemesisD>
qyliss: i don't unfortunately. i have leaf node packages and their exact versions. AFAIK if they have loose bounds, they may have unstable transitive dependencies
<infinisil>
exarkun: That is a bit weird, do you also get zfs-user in the output with a minimal nixos config?
<qyliss>
NemesisD: in that case, you should definitely check it in
<srhb>
NemesisD: iow it sounds like you definitely want to check in the auto generated stuff. Occasionally you can, impurely, in a nix-shell, say, update those pinned expressions.
<NemesisD>
srhb: i think i agree that i should check it in. as to when i should regenerate those pinned expressions, its tricky. i want to avoid the confusing case where you edit the deps you want installed and they don't get updated, so i was considering repinning every time. i guess if i bake the deps into the script that updates those expressions it'll be more evident
<srhb>
If you repin every time, you're sort of almost disabling nix. :)
<NemesisD>
i try to make my projects as idiot-proof as possible because i'm an idiot
<srhb>
(I'm being a bit facetious here, but...)
<NemesisD>
i suppose i should stop trying to do all these gymnastics and just write some documentation
<srhb>
The sandbox is obviously not worthless, but muh reproducibility.
<exarkun>
infinisil: not sure how I would test that except trashing my system configuration?
<srhb>
:D
<infinisil>
exarkun: Ah, you can use a config like `{ boot.loader.grub.device = "nodev"; fileSystems."/".device = "foo"; }` in a config.nix file and do `nix-build '<nixpkgs/nixos>' --arg configuration ./config.nix -A system`
Anton-Latukha has quit [Read error: Connection reset by peer]
<infinisil>
Then you'll have the system built in ./result
Anton-Latukha has joined #nixos
reinhardt has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
reinhardt has quit [Ping timeout: 264 seconds]
Notkea has quit [Read error: Connection reset by peer]
<exarkun>
buildin'
erictapen has joined #nixos
<exarkun>
(gosh it wants to download and build a lot of stuff)
Notkea has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<infinisil>
exarkun: Oh actually you could probably do s/nix-build/nix-instantiate
<infinisil>
which will be much faster
tre has joined #nixos
<infinisil>
And then you can `nix-store -q --tree <drv path it outputted>` to see the tree of dependencies
<infinisil>
I think
o1lo01ol1o has quit [Read error: Connection reset by peer]
<infinisil>
Yeah. And then search for zfs in there
<exarkun>
grub
<exarkun>
so I suppose some grub zfs options got turned on somewhere and I could turn them off if I want
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kleisli has quit [Ping timeout: 258 seconds]
zmacs has quit [Ping timeout: 246 seconds]
<infinisil>
exarkun: But it's weird that zed is running just because grub comes with zfs..
bvdw6 has quit [Remote host closed the connection]
<exarkun>
Hmm. So I did `boot.loader.grub.zfsSupport = False` in my config (dunno if that helps here) and then nix-instantiate and nix-store --query --tree and now it's system-path that brings in zfs-user
fusion809_ has quit [Remote host closed the connection]
<Myrl-saki>
Okay. I'm actually confused. How is /etc/bashrc loaded?
Baughn_ has joined #nixos
srid0 has joined #nixos
<Baughn_>
Bleeh
SimpleIRC_uSSzB has joined #nixos
<Baughn_>
clever: I strongly recommend adding `set -e` to your kexec script.
<Myrl-saki>
pkgs/shells/bash/4.4.nix
<Myrl-saki>
36: -DSYS_BASHRC="/etc/bashrc"
Baughn has quit [Ping timeout: 252 seconds]
Baughn_ is now known as Baughn
<Myrl-saki>
Ah.
b1000101 has quit [Remote host closed the connection]
SimpleIRC_uSSzB has left #nixos [#nixos]
b1000101 has joined #nixos
<exarkun>
What in nixpkgs even defines zfs-user? I can't find it
<Baughn>
Should be somewhere in os-specific
<Baughn>
There's nothing literally called "zfs-user" though.
<exarkun>
ah. `zfsUser`.
<exarkun>
Love the random name transformations. ;)
<Baughn>
pkgs/os-specific/linux/zfs
<exarkun>
Okay, and it's checking a _different_ boot loader config option.
pie__ has joined #nixos
<exarkun>
... maybe
dbmikus_ has joined #nixos
pie___ has quit [Remote host closed the connection]
dbmikus has quit [Ping timeout: 276 seconds]
tre has joined #nixos
Baughn has quit [Ping timeout: 255 seconds]
tboston_ has quit [Ping timeout: 245 seconds]
tboston_ has joined #nixos
<jtojnar>
hedning_: sorry, I have even less time this week, will not be able to review the g-i patch anytime soon
<hedning_>
jtojnar: no worries, I'll do some more sanity building etc.
ATuin has joined #nixos
zmacs has joined #nixos
<coconnor>
oh nice: the PR for enabling eglstreams on mutter. Definitely will try that
<{^_^}>
[hydra] @kquick opened pull request #651 → Add output from hydra-queue-runner for unrunnable steps (no machine). → https://git.io/fj39z
tdbgamer has joined #nixos
<mwilsoncoding>
trying to build azure-keyvault into nikpkgs, but keep getting collision between azure-keyvault-1.1.0/lib/python3.7/site-packages/azure/__init__.py and azure-common-1.1.19/<same path>
<coconnor>
I recommend adding `set -e` to every script.. usually what is expected
Xiro` has quit [Remote host closed the connection]
tre has quit [Quit: Quit]
ddellacosta has quit [Ping timeout: 276 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
<sheeldotme>
Hi, I'm attempting to access libc++'s header files in my ide which allows me to specify include directories as environment variables. My current setup is rather simple: https://gist.github.com/sheeldotme/19903a8ea75331a8dc647819e3c82be6 and I would really appreciate some feedback on whether this is idiomatic nix / how to expose the libcxx include path as an environment variable.
<sheeldotme>
I know I can just create an environment variable and set libcxx as a build input, but would that result in a possible mismatch between the libcxx provided in the llvm stdenv and the one used by my library?
Xiro_ has joined #nixos
pie_ has quit [Ping timeout: 246 seconds]
b1000101 has quit [Remote host closed the connection]
Xiro_ has left #nixos [#nixos]
reinhardt has quit [Quit: Leaving]
psyanticy has quit [Quit: Connection closed for inactivity]
zupo has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 276 seconds]
<andi->
is there a `nix-store --export` equivalent that also supports compressing? I am trying to reproduce some .nar.xz files as they are served from hydra/s3.
<mwilsoncoding>
I'm getting the same conflict when I try to build azure-loganalytics as well =[
<gchristensen>
`nix copy` can export NARs, andi-
<andi->
gchristensen: nice
phreedom has joined #nixos
<gchristensen>
for example, nix copy $(which bash) --to file://$(pwd)/test-cache
Ralith_ has quit [Ping timeout: 250 seconds]
<andi->
ok, is there a way to define the compression? I want to have bit-by-bit compatible nars so the signatures are valid (again)...
spacekookie has quit [Quit: **more agressive swooshing**]
tboston_ has joined #nixos
spacekookie_ is now known as spacekookie
<mwilsoncoding>
I'm getting the same conflict for azure-eventgrid as well (going through each package in an effort to update them- so far, only a few need updating, but a lot are missing (probably due to this conflict error or a lack of necessity))
<mwilsoncoding>
either way, would love to know if anyone has dealt with the same issue in python
<xorAxAx>
i have set up https://nixos.wiki/wiki/Distributed_build on two machines and it seems like the builder is never ssh'ed to, also i dont get any error messages or decline in the verbose log. i am trying `nixos-rebuild switch`
<xorAxAx>
(running as root)
fendor_ has joined #nixos
<catern>
hmmmmm
<catern>
I guess *technically* dependencies on Nix packages are native dependencies of Python code
<gchristensen>
xorAxAx: have you looked at the remote system's log? like the ssh logs
<gchristensen>
/ auth logs ,etc
<catern>
so technically it makes sense to model them as Python extensions
<catern>
which is how Python models all its native dependencies
<xorAxAx>
no logins
<xorAxAx>
gchristensen,
<catern>
(btw, Python setuptools is terrible)
<xorAxAx>
only on ping-store
<gchristensen>
any messages from ssh at all?
aswanson has quit [Quit: WeeChat 2.4]
<xorAxAx>
ssh'ing works fine, ping-store works fine, both appears in the auth.log on the remote machine
<xorAxAx>
error: unable to start any build; either increase '--max-jobs' or enable remote builds
mwilsoncoding has quit [Quit: Page closed]
<gchristensen>
share your /etc/nix/machines file?
<xorAxAx>
ah, that will work - nix build sshs, but nixos-rebuild does not
<xorAxAx>
i.e. "nix build" works, but "nixos-rebuild" remains local
<xorAxAx>
do i need to reboot?
<gchristensen>
no
<xorAxAx>
ah, there is --build-host
<gchristensen>
you have a root-readable private key, right? and the SSH host key of the remote is known by your root user?
<xorAxAx>
but why is the general nix.buildMachines not respected?
<xorAxAx>
yes
<xorAxAx>
Instead of building the new configuration locally, use the specified host to perform the build.
<xorAxAx>
-build-host
<gchristensen>
I need more info like logs from your `nixos-rebuild`, and your /etc/nix/machines file before I can really help further
Shouou has joined #nixos
<xorAxAx>
nix@192.168.1.24 x86_64-linux - 2 2 kvm
<xorAxAx>
cat /etc/nix/machines
<xorAxAx>
with --build-host, it works fine
<gchristensen>
the `-` -- how are you passing the SSH key?
<xorAxAx>
are you sure its supposed to work? it works like explained in the man page - which is not intuitive
<xorAxAx>
the key is the default key of root
<gchristensen>
is `nix` a trusted user on the remote system?
<xorAxAx>
nix contains a single user install
<gchristensen>
ah!
<xorAxAx>
and its building in the mean while
<gchristensen>
interesting
<xorAxAx>
but, as i said, requires the option above
<gchristensen>
I am quite certain it works
<xorAxAx>
which is weird
<xorAxAx>
gchristensen, well, is the switch-usecase really supported?
<gchristensen>
yes
<xorAxAx>
hmm
civodul has joined #nixos
<gchristensen>
I help admin infra which has performed about a half million remote builds over the last 10 days, and use remote builds for nixos-rebuild locally
<gchristensen>
however, remote builds is often tricky to debug :(
<xorAxAx>
its currently building the closure base line on the builder
<LnL>
yay, builder problems
fl0_id has quit [Read error: Connection reset by peer]
kleisli has joined #nixos
<gchristensen>
what happens if you do `ssh nix@192.168.1.24 nix-store --version`
<gchristensen>
xorAxAx: what is the OS of the remote?
<LnL>
firstly with builders it's the daemon that connects to the hosts, did you configure known_hosts (or ssh) to the machine for root
<LnL>
secondly you're using a nix user for builds, this has to be configured as trusted on the builder
<xorAxAx>
gchristensen, debian stable
<xorAxAx>
LnL, no, i meant builders=
<xorAxAx>
its not explicitly set
<gchristensen>
xorAxAx: did you use journalctl to read the logs? or something else?
<gchristensen>
(when on the remote server)
<xorAxAx>
gchristensen, less
tboston_ has quit [Ping timeout: 246 seconds]
<LnL>
that's fine as long as the default machines file isn't empty
sondr3 has joined #nixos
<gchristensen>
interesting, I would have expected they would use journald for logs?
<xorAxAx>
they do, but also files
jasongrossman has quit [Ping timeout: 258 seconds]
fendor_ has quit [Ping timeout: 246 seconds]
<xorAxAx>
debian runs a rsyslogd and systemd's stuff
dhkl has joined #nixos
<gchristensen>
ok, the reason I was wondering is `journalctl` will show different data depending on if you're root or not -- and it might have been that relevant logs would have only been showed to root
<xorAxAx>
i am root on both systems
kisonecat has quit [Ping timeout: 276 seconds]
<xorAxAx>
auth.log is not readable by the user nix
<gchristensen>
of course not
dbmikus__ has joined #nixos
dbmikus_ has quit [Ping timeout: 245 seconds]
<LnL>
nix-build -vvvvv should also give more info about what's going on starting with "starting build hook ..."
<xorAxAx>
but as i said - its really that nixos-rebuild or the nix-daemon dont even consider using ssh
<xorAxAx>
LnL, nix-build works fine, FWIW
<xorAxAx>
its really -rebuild switch
<pie_>
is there anything on linux that supports nested virtualization so I could test things using declarative containers not on my main system?
<xorAxAx>
yep, rerunning with a new package in systempackages
<LnL>
with builders nix will still run "trivial" builds creating a file or symlinks locally
<LnL>
like*
<xorAxAx>
same url
<LnL>
try adding eg. that (pkgs.hello.overrideAttrs (drv: { REBUILD = builtins.currentTime; })) to system packages
<xorAxAx>
ok
hio has joined #nixos
<hio>
okay, today I used nix and I actually liked it
<gchristensen>
yay =)
ATuin has quit [Ping timeout: 250 seconds]
<hio>
so what's next, what can I do with nix?
<hio>
can I replace rpm and yum?
<xorAxAx>
ah, thats working, LnL. sorry for the fuzz, gchristensen. it looks like the many messages confused me on the switch (letting me think that the local system is downloading the source tar ball - despite the remote system doing it)