gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
<Quickshot> Ok, tried arandr, and it's a nice tool. But doesn't solve the problem. I can still as with previous methods get the screens properly lined up. But if I turn the monitor on and off, then it incorrectly treats it like the 1080 and needs a new xrandr call to force it back
<infinisil> Quickshot: autorandr
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34820: fd: 6.2.0 -> 6.3.0 (master...fd) https://git.io/vAtOq
NixOS_GitHub has left #nixos [#nixos]
<Quickshot> infinisil, Ahh, my mistake then...
<infinisil> well i misunderstood you first, so my mistake really :)
<Quickshot> So should I add that as a service?
<Quickshot> I suppose...
<infinisil> not sure, haven't used autorandr before
<infinisil> there seems to be an autorandr nixos option
* Quickshot nods
Rusty1_ is now known as kanotix__
niklob has quit [Ping timeout: 265 seconds]
<M-Dan> I have a question as well. I defined a secondary ssh config via `environment.etc."deploy/ssh"` and added it to NIX_PATH, intending to use it with private repositories that needed a deploy key (mainly with NixOps). However, NixOps is saying it can't open /etc/deploy/ssh- "no such file or directory". Any pointers?
<infinisil> M-Dan: You added it to NIX_PATH? How and why?
griff_ has quit [Quit: griff_]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vAtE2
<NixOS_GitHub> nixpkgs/staging 48f3036 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos [#nixos]
griff_ has joined #nixos
<razzy> simpson: awesome :]
griff_ has quit [Client Quit]
griff_ has joined #nixos
<M-Dan> I appended "ssh-config-file=/etc/deploy/ssh" to NIX_PATH, because I want Nix to use a different ssh config than the rest of my system.
griff_ has quit [Client Quit]
<razzy> i was weping tears of joy :] for such entusiasm :] for kernel :]
griff_ has joined #nixos
griff_ has quit [Client Quit]
<razzy> and proot is not working :], so i stop weeping :]
<infinisil> M-Dan: I may not have enough experience with nixops, but why would it use that?
<infinisil> I haven't heard of this anywhere
griff_ has joined #nixos
griff_ has quit [Client Quit]
griff_ has joined #nixos
<Quickshot> infinisil, Poking around, I'm not sure it will actually help. Using it atleast failed to properly reset the monitor. Though I didn't test all to indepth. Also I didn't immediately see something that would make it reapply at each monitor turn on
griff_ has quit [Client Quit]
griff_ has joined #nixos
<M-Dan> infinisil: I'm not sure *why*, but it does. It just can't actually read the file. The oddest part is this worked a couple of weeks ago when I first set up the deployment.
<infinisil> Quickshot: did you read the readme? https://github.com/wertarbyte/autorandr
griff_ has quit [Client Quit]
<Quickshot> I hadn't, I'd gone off the help file
griff_ has joined #nixos
<infinisil> M-Dan: Ahh, found it, fetchGitPrivate uses ssh-config-file in NIX_PATH
griff_ has quit [Client Quit]
<razzy> afk :]
<Quickshot> Though I did discover some more about what happened to the monitor. Turning it off made it disappear from nvidia-settings. And turning it back on made it get overlaid on top of the 1080p screen
<infinisil> M-Dan: So, the problem is, the environment.etc option applies to the resulting system, which might be somewhere totally different than your build machine, but fetchGitPrivate, NIX_PATH and ssh-config-file apply to the build
<infinisil> fetchGitPrivate is a build-time fetch
BlessJah has quit [Ping timeout: 260 seconds]
bfrog has joined #nixos
<M-Dan> infinisil: I don't think that's it- sorry that I was unclear above. The environment.etc option is defined on the host. The file shows up on the host. Nixbld1 and nixbld2 Can both read it.
<M-Dan> I'm not sure if it's always been this way, but I noticed that the config file is now a link to /etc/static/deploy/ssh.
<infinisil> ah
<infinisil> M-Dan: yeah that's what the environment.etc options do
BlessJah has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
<infinisil> M-Dan: What does `nix-instantiate --eval -E '<ssh-config-file>' -I ssh-config-file=/etc/deploy/ssh` output?
<infinisil> the -I thing is the same as just prepending to NIX_PATH manually
<M-Dan> infinisil: `/etc/deploy/ssh`
Quickshot has quit [Quit: Leaving]
<infinisil> M-Dan: hmm, why is there a "-" after your pasted error?
<infinisil> you said: > NixOps is saying it can't open /etc/deploy/ssh- "no such file or directory"
<infinisil> i guess that's just a dash added by you
<M-Dan> Yeah
<infinisil> M-Dan: What does `nix-instantiate --eval -E 'builtins.toString <ssh-config-file>' -I ssh-config-file=/etc/deploy/ssh` output?
<dash> :o
<M-Dan> `"/etc/deploy/ssh"`
<infinisil> and the same with nix-instantiate --eval -E '"${<ssh-config-file>}"' -I ssh-config-file=/etc/deploy/ssh ?
<infinisil> if these succeed, nix can read the file for sure
kanotix__ is now known as Rusty1
<M-Dan> Double quotes give me shell errors, but single quotes gets `error: syntax error, unexpected DOLLAR_CURLY, at (string):1:1`
<infinisil> M-Dan: the '"${<ssh-config-file>}"' argument?
<infinisil> weird, that should definitely work with a bash-like shell
<elvishjerricco> Does Hydra build IFDs on localhost? One of my jobs is also an input to something that gets IFD'd, and its "build steps" say it was built on localhost... Even though localhost is not in my `nix.buildMachines`. And nothing else is building on the remote machines.
stephenjudkins has joined #nixos
<M-Dan> Fish and bash complained about that one. `bash: ${<ssh-config-file>}: bad substitution`
<dhess> elvishjerricco: what's an "IFD" ?
<elvishjerricco> dhess: "import from derivation"
<elvishjerricco> e.g. `callCabal2nix`
<dhess> elvishjerricco: hmm I thought Hydra wouldn't build those at all
<elvishjerricco> I thought it would delegate them to the build machines
<elvishjerricco> It certainly will for builds that have to run on a different `system`
<dhess> elvishjerricco: when I have jobs that import from a derivation, they end up as "empty jobs". You can see this in the evaluation errors section.
<infinisil> M-Dan: well whatever, use nix-repl instead: `NIX_PATH=ssh-config-file=...:$NIX_PATH nix-repl`
<dhess> hmm I would love to know how you do that
<dhess> I just confirmed this with clever and gchristensen yesterday in fact.
<infinisil> M-Dan: then enter "${<ssh-config-file>}" (with the quotes) and enter
<dhess> But maybe we mean something different by "import from derivation"
<infinisil> elvishjerricco: IFD has to be run in the evaluation phase
<elvishjerricco> dhess: IFD means `import (stdenv.mkDerivation { /* something whose build output is a nix file */ })`
<infinisil> elvishjerricco: which it can't delegate to builders
<dhess> elvishjerricco: yeah that is what I mean as well.
<elvishjerricco> infinisil: I've definitely seen it delegate darwin `callCabal2nix`'s to a darwin machine
<shlevy> elvishjerricco: I generally have an "eval-time" nixpkgs import for this case
<M-Dan> Infinisil: that spits out a Nix store path
<shlevy> Use builtins.currentSystem for it, and update it less frequently than everything else
<infinisil> M-Dan: nice, so that should contain your ssh config. Where does this "file does not exist" error happen?
<infinisil> M-Dan: maybe share your nixops output?
<elvishjerricco> shlevy: I'm not sure that explains how I've seen `callCabal2nix` work this way before though.
<shlevy> Oh, I was saying how I avoid that. What needs to be explained?
<shlevy> By default haskellPackages.callCabal2nix will define a derivation with the system you import nixpkgs with
<shlevy> So to import it you need to be able to build on that system, with say distributed builds (or pulling from a cache)
<M-Dan> Infinisil: it's got the config. University WiFi crapped out a few minutes ago (why not?), but I'll try to get the output
<elvishjerricco> shlevy: I'd actually rather *not* avoid it. I have Hydra building several things using `callCabal2nix`, and I have a remote Linux builder, and I have not specified a localhost builder. What I want to see is all of these `callCabal2nix`'s running on the remote machines. This is the first time I've used Hydra without a local builder, and it seems like it still did the Linux `cabal2nix` build on localhost. I'm
<elvishjerricco> still waiting to see what it does with the other things, like the darwin builds, but they currently seem stuck for some unknown reason.
<elvishjerricco> no eval-time error
<shlevy> elvishjerricco: Ah, scrolled up. On a same-system build it will prefer local build because preferLocalBuild = true
<elvishjerricco> shlevy: Oh. Is there a way to tell Hydra to never do that?
<elvishjerricco> Er, wait
<elvishjerricco> no it's fine if it's *running* `cabal2nix` on the localhost
<elvishjerricco> I just don't want it *building* on localhost
<shlevy> It shouldn't be
<elvishjerricco> Like, not even building cabal2nix itself
<shlevy> But it might be building the dependencies there...
<shlevy> of cabal2nix
<shlevy> but even that it shouldn't
<elvishjerricco> Yea that's what I thought.
<shlevy> This may be a bug in distributed builds
<elvishjerricco> But
<shlevy> There've been a few cases where IFD is treated annoyingly differently
<shlevy> But it's definitely a bug if that is happening
<elvishjerricco> if I look at the job, it says cabal2nix was built on the localhost machine
<elvishjerricco> shlevy: The weird thing is,
<gchristensen> do you have substitutes turned on?
<shlevy> infinisil: M-Dan: Haven't followed your convo, but I *strongly* recommend using a nix 2.0 pre-release and builtins.fetchGit over using fetchgitPrivate
<elvishjerricco> This is the `cabal2nix` job. I have a specific job for building `cabal2nix`, and it's that job that says localhost
<elvishjerricco> gchristensen: I think those are on yea
<infinisil> shlevy: Oh nice, didn't know about that
<gchristensen> elvishjerricco by cabal2nix do you mean the thing that hydra.nixos.org is probably building?
<elvishjerricco> gchristensen: No, this is for a Hydra we're trying to set up for reflex-platform, which doesn't share many derivations with hydra.nixos.org
<elvishjerricco> certainly not `cabal2nix`
<gchristensen> yes, but cabal2nix sounds like a thing hydra.nixos.org might make..
<gchristensen> isn't it just a tool, not your actual project?
<elvishjerricco> No, because we have a lot of special modifications to haskellPackages
<gchristensen> ah
<shlevy> infinisil: Yeah, it runs git as your evaluating user and can just use your ssh agent or ssh keys directly
griff_ has joined #nixos
<infinisil> shlevy: nice
<gchristensen> shlevy: what do you think about this? https://github.com/NixOS/nix/issues/1858
<elvishjerricco> gchristensen: shlevy: But now that I'm thinking about it, the only thing IFD has to do with it is that we use this derivation in a *different* job as an input to an IFD'd derivation. The actual build itself was just a normal Hydra job that says it was built on localhost for some reason
<shlevy> gchristensen: Didn't look in detail but it seems reasonable
<gchristensen> shlevy: do you think you could implement it? :P
duncan^ has quit [Quit: WeeChat 2.0.1]
duncan^ has joined #nixos
<gchristensen> I reckon it might be simple enough I might be able to learn enough C++ to do it..
<dhess> elvishjerricco: is your Hydra job public? I would like to take a look at it to see how you're doing this multi-stage build. I could use it on at least one of my jobsets.
<shlevy> gchristensen: Wnat to pair up on it? :)
<elvishjerricco> dhess: Just look at the `switch-to-hydra` branch on reflex-platform. We're just building some Haskell derivations which we happened to define with `callCabal2nix`
<gchristensen> shlevy: hmm, sure! how would you like to do that?
<shlevy> Can't do it tonight, but any kind of video chat that allows screensharing should be fine
<gchristensen> cool
<infinisil> shlevy: needs some fancy single emacs server and 2 clients, or a tmux session :P
<gchristensen> tbh it doesn't need to even be acceptable upstream, I don't mind running my nix with patches
<shlevy> infinisil: Nah, git is enough ;)
<M-Dan> schlevy: is that just `nix.package = pkgs.nixUnstable` (on 17.09) or do I need to do something more?
<shlevy> M-Dan: Yep, that's enough
<elvishjerricco> shlevy: How powerful of a CPU does Hydra's evaluation need? hydra-queue-runner seems to be taking the majority of the CPU on the machine
<elvishjerricco> And its been there for a while
<shlevy> elvishjerricco: No idea, sorry
<elvishjerricco> Anybody know why hydra-queue-runner would be taking all the CPU?
<gchristensen> elvishjerricco: it depends on how big your jobset is
<LnL> pretty sure memory/disk io is more important
<gchristensen> but also enabling substitutes is going to increase resource usage
<LnL> kind of sounds like infinite recursion
<elvishjerricco> LnL ah that's a good thought.
<shlevy> I'm not sure I've ever seen a nix infinite recursion that didn't explode the stack quickly
<elvishjerricco> I don't know why that would be happening, but I'll try reducing the release.nix to something simpler
<shlevy> In fact I think nix is non-tail-recursive enough that it may be impossible..
<M-Dan> infinisil: I hadn't seen that, but I was already following most of the recommendations there (besides per-user keys). I'm going to try out Nix 2.0 now, thank you for all your help!
<gchristensen> nix typically uses 100% CPU for me when I eval nixpkgs
<gchristensen> (of one core)
<shlevy> Maybe nix 5.0 will have parallel evaluation ;)
<elvishjerricco> gchristensen: But for several hours? We're not even eval'ing anything like all of nixpkgs. We're just doing this: https://github.com/reflex-frp/reflex-platform/blob/switch-to-hydra/release.nix
<gchristensen> that seems weird :):
stephenjudkins has quit [Remote host closed the connection]
<elvishjerricco> what exactly does hydra-queue-runner do?
<gchristensen> ohhh queue-runner not evaluator
<elvishjerricco> Shouldn't it be *after* evaluation?
* infinisil thinking whether parallel evaluation makes sense for purely functional languages
<shlevy> infinisil: Absolutely
<gchristensen> queue-runner, is it doing a lot of network?
<infinisil> because even haskell only uses 1 core
<elvishjerricco> gchristensen: I don't think so, I'll double check
<shlevy> infinisil: Haskell has https://wiki.haskell.org/Par_and_seq
<sphalerite_> YAY rust and go packages build on ARMv7 now!
<infinisil> shlevy: i mean compile time
<sphalerite_> Thanks whoever is responsible for this
<gchristensen> sphalerite_: :o you're dedicated
<M-Dan> I think async builds would hurt my head less.
<shlevy> Yeah, but evaluator is "runtime"
<gchristensen> sphalerite_: its probably dhess
<infinisil> shlevy: ohhh right
<shlevy> Anyway it makes a lot of sense to e.g. evaluate the attribtues of a derivation in parallel
<sphalerite_> gchristensen: I didn't actually do anything myself, just checked out nixos-unstable and set nix off building the stuff!
<shlevy> And if you're doing a hydra eval evaluate each attribute in parallel
<infinisil> shlevy: but ultimately you only evaluate 1 thing, and the rest follows from lazyness
<infinisil> so it doesn't make sense to want to evaluate every attrset attribute
<shlevy> No, not every attrset attribute
<shlevy> That's why I specifically mentioned hydra
<gchristensen> lets store every evaluation nix does on the blockchain so they never have to be run again :runs away:
<shlevy> Which is going to evaluate a whole set
<shlevy> Or the derivation primop, which again is going to evaluate the whole set
<infinisil> hmm yeah
<infinisil> gchristensen: ++
<sphalerite_> gchristensen: ++ especially the :runs away: part
<infinisil> Actually...
<infinisil> builtins.memoise
<infinisil> gchristensen: shlevy
<gchristensen> just load that up in to IPFS
* gchristensen shouldn't troll after dinner
<infinisil> gchristensen: i mean, that actually sounds reasonnable
<elvishjerricco> gchristensen: Yea it looks like queue-runner is not using any network
<gchristensen> elvishjerricco: weird :/
<shlevy> elvishjerricco: queue-runner wouldn't be if you're pulling from the cache, it would delegate to the daemon
<gchristensen> infinisil: nah, it couldn't be content-addressed
<elvishjerricco> shlevy: Well, queue-runner seems to be taking most of our CPU...
<infinisil> gchristensen: damn, that again
<sphalerite_> infinisil: nix-instantiate --eval '<nixpkgs>' -A hello.name git.name. Evaluating multiple things at once. Mind: blown
<sphalerite_> :p
<sphalerite_> oh wait I was behind on the conversation
<MichaelRaskin> gchristensen: every blockhain full node will have to evaluate them again for validation
<shlevy> MichaelRaskin: Sure, overnight
<MichaelRaskin> You will need a polar night
<infinisil> sphalerite_: oh but i didn't know you could do multiple ones with the nix commands
<infinisil> needs an -A more though
<infinisil> -A hello.name -A git.name
<sphalerite_> oops yes
vil has joined #nixos
aarvar has left #nixos [#nixos]
<sphalerite_> oh boy rustc is slow
<sphalerite_> I forgot this
<infinisil> sphalerite_: slower than ghc?
<sphalerite_> idk, haven't got to haskell stuff yet
* sphalerite_ nix build nixpkgs.pandoc
<ryantrinkle> infinisil: lol
<sphalerite_> how many stages of bootstrap does ghc take again?
<ryantrinkle> sphalerite_: that's been cleaned up :P
<ryantrinkle> now it's just phase1 and phase2
<andi-> N+1?
<sphalerite_> oh that's good
<ryantrinkle> yeah, nixpkgs used to chain ghc through old versions of ghc
<ryantrinkle> i've seen it as many as like 3 deep :P
<shlevy> copumpkin is still trying to get a working bootstrap all the way from the initial GHC release
<shlevy> But I doubt we'll use it in nixpkgs ;)
<infinisil> shlevy: how does the boostrap thing work anyways? Does it just use a previous very stable ghc prepackaged binary to build the master's source?
<sphalerite_> yeah not too keen on waiting several weeks before I can use haskell programs on my chromebook every time there's a mass rebuild
<infinisil> maybe ryantrinkle has a clue on this too
<shlevy> Some day, maybe when I retire and have nothing good to do, I'll hand-write an ELF binary that acts as a rudimentary assembler and use that to bootstrap up to gcc
<shlevy> infinisil: Yeah, one sec...
<ryantrinkle> hahaha
<ryantrinkle> shlevy: it's not *real* bootstrapping unless you're snipping resistors out yourself
marusich has quit [Ping timeout: 276 seconds]
<ryantrinkle> "Software written by MIT programmers was woven into core rope memory by female workers in factories."
<shlevy> For stdenv (and also openjdk) we build our own bootstrap tarball from nixpkgs at the time of the bootstrap creation: https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/make-bootstrap-tools.nix
<shlevy> I *think* if you go back far enough we have a RHEL gcc in our ancestry
<shlevy> niksnut: ^?
<gchristensen> a while ago I found the very first revision of nixpkgs that I could find an emacs in the binary cache, we have a lot of history in there.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34824: eudev: 3.2.4 -> 3.2.5 (master...eudev-3.2.5) https://git.io/vAt4V
NixOS_GitHub has left #nixos [#nixos]
niklob has joined #nixos
adisbladis has quit [Ping timeout: 240 seconds]
<infinisil> gchristensen: i don't think there's another package manager that handles old versions as well as nix
<shlevy> Doesn't the firefox in Eelco's thesis still build?
<shlevy> As in, pulled from cache and with cache disabled?
<elvishjerricco> gchristensen: So, there seems to be a discernible pattern. hydra-queue-runner takes 100% CPU for a few seconds, then hydra-eval-jobset-wrapped takes 100% for a second or two, and then `git rev-list --count <nixos-unstable head revision>` takes 100% for a few seconds. Then it immediately repeats the pattern. I do have `nixpkgs = https://github.com/NixOS/nixpkgs-channels nixos-unstable` as an input to all of the
<elvishjerricco> jobsets, but this is just to satisfy `<nixpkgs>` and isn't much used.
<gchristensen> elvishjerricco: it sounds like you're evaling your branch too fast in the configs
<infinisil> shlevy: I could see there being a problem with the nix version
<elvishjerricco> actually, the `hydra-eval-jobset-wrapper` and the `git` command are simultaneous
<shlevy> infinisil: I can't think of anything that might cause one, actually
<elvishjerricco> gchristensen: The check interval is in the hundreds. Isn't that seconds?
<gchristensen> hmm yeah :/
<shlevy> infinisil: There've been a few ocassions where we've considered changing the hasing/derivation scheme and it's always been no so far
<infinisil> shlevy: is the first ever nix version compatible with nix 1.12?
<elvishjerricco> gchristensen: scheduling shares only matters proportionally, right? The magnitude doesn't actually matter?
<simpson> Possibly stupid question: I fetched a git repository which has a subdirectory that I want to get into the store on its own. Isn't there a simple helper for that somewhere in lib? I can't find it, but I thought it was called `subDirectoryOf`.
<shlevy> I think where they both work they'd produce the same store paths
<gchristensen> elvishjerricco: right
<gchristensen> elvishjerricco: quite an annoying system, everyone's shares rot over time
<shlevy> But you'd have to run through the db upgrades to migrate an initial nix to modern nix
<infinisil> shlevy: that would be an interesting project
ryantrinkle has quit [Ping timeout: 240 seconds]
coot has quit [Quit: coot]
<infinisil> Doesn't seem to be compatible with todays nix haha
<shlevy> Yeah, I'm thinking from the thesis, in 06 :D
<MichaelRaskin> Doesn't seem compatible with 10-years-ago Nix, for that matter
ssmike has joined #nixos
<gchristensen> ohh back when you were writing like derivations by hand
<shlevy> Yeah, I've never seen that syntax and it's nothing like the thesis
<Profpatsch> shlevy: In theory it should still build, but I’m pretty sure the source repo links will all be broken, right?
<shlevy> Profpatsch: nixos tarball cache
<Profpatsch> shlevy: Are tarballs from 10 years ago still cached?
<shlevy> Profpatsch: Plus back then people were less non-committal with their hosting I think
<gchristensen> shlevy, Profpatsch: consider the tarball cache might exist to keep the thesis building :)
<gchristensen> isn't that a powerful point to be able to make?
<Profpatsch> Unless all fixed-input derivations are kept somewhere safe, it’s only theoretical I think. :P
<elvishjerricco> Uh... `hydra-queue-runner[17879]: queue monitor: std::bad_alloc`
duncan^ has quit [Quit: WeeChat 2.0.1]
duncan^ has joined #nixos
<andi-> whats the size of the binary cache? Does one know? ;-)
<shlevy> OOM
<gchristensen> andi-: 40TB I think?
<elvishjerricco> shlevy: There's definitely memory available...
<andi-> thats affordable
<gchristensen> I have numbers written down somewhere from July
<dhess> I didn't do anything for go and rust on armv7l, only Haskell
<infinisil> gchristensen: 40TB?? That seems so small for so many things
* gchristensen gets up, compelled to find numbers
<gchristensen> ~60TB as of august or so
<shlevy> v
<andi-> growth per month? ;-)
<samueldr> so, when can I be expected my nixflix ODD collection to arrive?
<gchristensen> lol
<andi-> samueldr: do you accept 6 HDDs?
Drakonis[m] has quit [Changing host]
Drakonis[m] has joined #nixos
Drakonis[m] has joined #nixos
<samueldr> From wolfram alpha: ≈ ( 0.03 ≈ 1/33 ) × identifiable storage capacity of the human brain (≈ 2 PB )
<vil> I'm playing with nix for the first time on debian and I'm wondering: is it considered best practice to symlink config files to the nix profile, or copy the files provided there to their "normal" locations?
<vil> for example, I've currently got /var/lib/libvirt linked to /nix/var/nix/profiles/default/var/lib/libvirt
<vil> (or some other third thing)
<gchristensen> links are typcilaly preferred
<infinisil> gchristensen: nice
<vil> cool, I guessed correctly :)
<andi-> gchristensen: do you have data about the monthly traffic volume?
<elvishjerricco> Ok I've simplified the jobsets. And now the `hydra-queue-runner` process is just sitting there spinning the CPU at 100% and seemingly doing nothing
<elvishjerricco> Sometimes it spits out a message about "status", where I can see `"nrQueuedBuilds":0`, but there are 9 queued builds in the web UI
<shlevy> Ok
<shlevy> s/Ok/Oh
<shlevy> It should be spinning, butnot at 100% cpu
<shlevy> Does perl's sleep use a busywait? :o
<elvishjerricco> shlevy: It's not exactly 100% either. It's varying up and down. There are two CPUs on this machine, and it varies between 60% and 140%. Load average is about 1.1
simukis has quit [Ping timeout: 240 seconds]
<elvishjerricco> shlevy: Could the queue be in an invalid state? Since it reported the queue is empty? Maybe that's somehow throwing it into a loop?
<shlevy> I'm not sure, sorry :\
<elvishjerricco> "Cancel queued non-current builds" cancelled 0 builds :/
Drakonis has joined #nixos
d4g_ has joined #nixos
mbrgm has quit [Ping timeout: 248 seconds]
d4g has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danielfullmer opened pull request #34827: rtl8812au: 4.3.20 -> 5.2.20_25672.20171213 (master...rtl8812-5.2.20) https://git.io/vAtat
NixOS_GitHub has left #nixos [#nixos]
mbrgm has joined #nixos
<elvishjerricco> Now it's copying a bunch of paths? Not sure where those came from...
<elvishjerricco> They're all doc paths though
bfrog has quit [Read error: Connection reset by peer]
<elvishjerricco> Ok. I think I finally figured all of this out
<elvishjerricco> Here's what I missed: We configured this server with a binary cache that already has all of these builds cached (namely, the original reflex cache). Most of this time was spent nar'ing up hundreds and hundreds of derivations
<elvishjerricco> That one original build appeared to be built on localhost because localhost *downloaded* it from a cache
acarrico has quit [Ping timeout: 240 seconds]
griff_ has quit [Quit: griff_]
ssmike1 has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
thc202 has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
xcmw has joined #nixos
acarrico has joined #nixos
<shlevy> niksnut: Do you have the old svn repo anywhere?
niklob has quit [Ping timeout: 264 seconds]
<gchristensen> shlevy: was it not imported in to git?
<shlevy> But it was split up
<shlevy> E.g. the first commit in nix is "And a trunk to go along with that"
<gchristensen> oh lol
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<Lisanna> is a derivation required to have .name set? or is that just stdenv.mkDerivations?
<Lisanna> If so, I'm wondering why replaceDependency implements a drvName function like this when it could just do drv.name: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/replace-dependency.nix#L61
alex`` has quit [Ping timeout: 265 seconds]
orivej has joined #nixos
Ankhers has quit [Quit: ZNC 1.6.5 - http://znc.in]
ssmike has quit [Ping timeout: 248 seconds]
badi has quit [Ping timeout: 268 seconds]
badi has joined #nixos
badi has quit [Read error: Connection reset by peer]
ssmike has joined #nixos
pkill9 has quit [Ping timeout: 240 seconds]
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
spacefrogg has joined #nixos
tmaekawa has joined #nixos
zearen has quit [Ping timeout: 268 seconds]
badi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] DarkScythe97 opened pull request #34829: oxipng: init at 1.0.0 (master...oxipng) https://git.io/vAtr2
NixOS_GitHub has left #nixos [#nixos]
nuncanada2 has quit [Read error: Connection reset by peer]
bfrog has joined #nixos
schoppenhauer has quit [Ping timeout: 276 seconds]
schoppenhauer has joined #nixos
oida has quit [Ping timeout: 255 seconds]
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 265 seconds]
oida has joined #nixos
badi has quit [Ping timeout: 256 seconds]
badi has joined #nixos
sahabi has joined #nixos
sahabi has quit [Client Quit]
sahabi has joined #nixos
sahabi has quit [Client Quit]
sahabi has joined #nixos
sahabi has quit [Client Quit]
sahabi has joined #nixos
sahabi has quit [Remote host closed the connection]
sahabi has joined #nixos
sahabi has quit [Remote host closed the connection]
Drakonis has quit [Read error: Connection reset by peer]
sahabi has joined #nixos
asuryawanshi has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
ditadi has quit [Ping timeout: 276 seconds]
<abathur> is there a way to get at a secondary derivation within a file? Trying to figure out if I can modify some xrdp settings, (which include references to xorgxrdp https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/remote/xrdp/default.nix) but I'm not sure if I should just duplicate that code. Haven't been able to find a way to import it via documentation or nix-repl
Rusty1 has quit [Quit: Konversation terminated!]
azertyieio has quit [Ping timeout: 240 seconds]
Guanin has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
Izorkin has joined #nixos
<Lisanna> abathur what do you mean?
<Lisanna> abathur what are you trying to access?
<abathur> I think I just need the store address for xorgxrdp
<abathur> but it isn't it's own package, it isn't in the pkgs namespace and I haven't found a way to access it via pkgs.xrdp
<abathur> basically just need to overlay/override xrdp's config
asuryawanshi has quit [Remote host closed the connection]
<Lisanna> nope, doesn't look like the author of this file made it customizable that way
<Lisanna> making your own copy of the file seems like the easiest way to get what you want
<abathur> ok, just making sure I wasn't missing something
<abathur> for the teachable moment, if the let xorgxrdp = ...; in that file had a "in <var>" statement, would it be in the pkgs namespace? or would there still be some accompanying definition in all-packages needed to enable that?
<Lisanna> err, it does?
<Lisanna> let xorgxrdp = ...; in xrdp = ...; in xrdp
<Lisanna> oops, sorry
<Lisanna> let xorgxrdp = ...; xrdp = ...; in xrdp
<Lisanna> in all-packages.nix there's probably some entry which looks like: xrdp = callPackage ../applications/networking/remote/xrdp/default.nix {};
<Lisanna> that's what lets you do pkgs.xrdp
<abathur> yep!
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Arcaelyx_ is now known as Arcaelyx
<abathur> I suppose another worthwhile question is whether there's some better pattern/idiom for defining something like xorgxrdp for flexible overriding in cases like this? (if patching it for myself is 90% of the way to patching it for the community, I'm interested in picking up the experience)
<Lisanna> abathur the pattern you want is to make the derivation overridable in some useful way
<abathur> I read that as: xorgxrdp definition should be an attr within the full xrdp definition?
<Lisanna> yeah, I think that would work
<abathur> ha
<abathur> might've already figured out why they aren't
<abathur> they're self-referential
<Lisanna> that's ok
<Lisanna> nix allows recursion
<abathur> the configureFlags of xorgxrdp include ${xrdp.src}
<abathur> ah, right, trying
<Lisanna> as long as it's not an infinite recursion, you're fine
<abathur> well, hmm
<Lisanna> nix is lazy, remember, so you can do tricky recursion
<Lisanna> that configureFlags doesn't need to evaluate all of xrdp to get xrdp.src
Lisanna has quit [Quit: Lisanna]
Lisanna has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
rauno has quit [Remote host closed the connection]
griff_ has joined #nixos
griff_ has quit [Ping timeout: 260 seconds]
asuryawanshi has joined #nixos
rogue_koder has quit [Ping timeout: 264 seconds]
asuryawanshi has quit [Ping timeout: 248 seconds]
<abathur> lisanna: thanks much; got it building, at least :D
Lisanna_ has joined #nixos
<Lisanna_> abathur cool!
<abathur> it's still terminal spamming, think I'll hit the hay and see if it works in the morning
<abathur> ah, of course, I jinxed it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andrew-d opened pull request #34830: lego: init at 0.4.2-pre (master...adunham/lego) https://git.io/vAtP9
NixOS_GitHub has left #nixos [#nixos]
<abathur> decided to finish as soon as I thought I could escape
<sphalerite> 😱 ghc has 3 versions of llvm in its build closure??
<sphalerite_> uh… what was up with my typing there
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
NixOS_GitHub has joined #nixos
<sphalerite_> oh, nothing. my terminal is going wonky
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #34065: openmpi: 1.10.7->3.0.0, add markuskowa as maintainer (master...openmpi3-pr) https://git.io/vNz0o
NixOS_GitHub has left #nixos [#nixos]
abathur has quit [Ping timeout: 260 seconds]
FRidh has joined #nixos
<sphalerite_> oh no, it's because of the emoji x)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #34825: home-assistant: 0.62.1 -> 0.63 (master...home-assistant-0.63.0) https://git.io/vAt4M
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #31176: pythonPackages: Add version and pname attributes to packages (master...pythonPackages-versionattr) https://git.io/vFnep
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #30906: treewide: use https addresses where possible (master...https-links-where-possible) https://git.io/vFI6B
NixOS_GitHub has left #nixos [#nixos]
abathur has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27530: Add solid-server to the list of node packages (master...master) https://git.io/v7J57
NixOS_GitHub has left #nixos [#nixos]
<abathur> well, got a remote desktop connection working from macos -> nixos, at least
srcCoon has quit [Quit: leaving]
<abathur> hopefully I can improve on the config some, pretty sluggish even on LAN
Izorkin has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to openssl-1.1: https://git.io/vAtXF
<NixOS_GitHub> nixpkgs/openssl-1.1 1a9cf26 Vladimír Čunát: Merge branch 'staging' into openssl-1.1...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAt1v
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 9d69ebe Frederik Rietdijk: Merge staging at '256ba86' into master
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vAt1J
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 06a7281 Frederik Rietdijk: Merge master into staging
Arcaelyx_ has joined #nixos
blym has joined #nixos
freeman42x[NixOS has joined #nixos
Arcaelyx has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #32824: gnutar: 1.29 -> 1.30 (release-17.09...gnutar-1.30-release) https://git.io/vbPsL
NixOS_GitHub has left #nixos [#nixos]
Guest97638 has joined #nixos
ilyaigpetrov has joined #nixos
chrisb1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 89467cf Frederik Rietdijk: python.pkgs.pytest_32: init at 3.2.5...
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAt1c
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 45b9cf2 Lancelot SIX: pythonPackages.celery: 4.0.2 -> 4.1.0
cybrian has quit [Quit: cya]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33651: pythonPackages.celery: 4.0.2 -> 4.1.0 (master...celery_4_1) https://git.io/vNqn8
NixOS_GitHub has left #nixos [#nixos]
azertyieio has joined #nixos
chrisb1 has quit [Client Quit]
chrisbarrett has joined #nixos
cybrian has joined #nixos
pikajude has quit [Quit: ZNC 1.6.5 - http://znc.in]
pikajude has joined #nixos
JosW has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vAt1i
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master ad7ab43 Nadrieril: pythonPackages.weboob: 1.1 -> 1.3
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33757: pythonPackages.weboob: 1.1 -> 1.3 (master...update-weboob) https://git.io/vNs09
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33966: gateone: fix url (master...gateone_fix_url) https://git.io/vN43F
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAt1H
<NixOS_GitHub> nixpkgs/master 677aa17 Luke Adams: platformio-python: add git
<NixOS_GitHub> nixpkgs/master 4da3c29 Luke Adams: platformio-fhs: minor changes
NixOS_GitHub has left #nixos [#nixos]
ottidmes has joined #nixos
bfrog has quit [Read error: Connection reset by peer]
Guest97638 has quit [Ping timeout: 276 seconds]
asuryawanshi has joined #nixos
alex`` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #23445: init: pebble-sdk at 4.5 (master...pebblesdk) https://git.io/vycut
NixOS_GitHub has left #nixos [#nixos]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infty has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #28507: pythonpackages.thrift: 0.9.3 -> 0.10.0 (master...thrift-python-0.10.0) https://git.io/v5Ixl
NixOS_GitHub has left #nixos [#nixos]
ixxie has joined #nixos
infty has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 248 seconds]
infty has joined #nixos
chrisbarrett has quit [Quit: WeeChat 1.9.1]
chrisbarrett has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #33128: qsyncthingtray: build with native browser to allow for Qt > 5.6 (master...u/qst) https://git.io/vbFEn
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAtMn
<NixOS_GitHub> nixpkgs/master 6d9dfdc Peter Hoeg: qsyncthingtray: build with native browser to allow for Qt > 5.6
<NixOS_GitHub> nixpkgs/master d8b8c6b Frederik Rietdijk: Merge pull request #33128 from peterhoeg/u/qst...
NixOS_GitHub has left #nixos [#nixos]
knupfer has joined #nixos
Ross has quit [Quit: ZNC - http://znc.in]
chrisbarrett has quit [Quit: WeeChat 1.9.1]
chrisbarrett has joined #nixos
cfricke has joined #nixos
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 97982f2 Valentin Heidelberger: pythonPackages.pynacl: 0.3.0 -> 1.2.1
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAtMK
<NixOS_GitHub> nixpkgs/master 2721727 Frederik Rietdijk: Merge pull request #34826 from va1entin/pynacl...
chrisbarrett has quit [Client Quit]
chrisbarrett has joined #nixos
<hyper_ch> infinisil: ping
infty has quit [Remote host closed the connection]
Guest97638 has joined #nixos
chrisbarrett has quit [Client Quit]
chrisbarrett has joined #nixos
abathur has quit [Ping timeout: 260 seconds]
vcunat has joined #nixos
bfrog has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andrew-d opened pull request #34831: syncthing: Add discovery/relay servers, improve build (master...adunham/syncthing) https://git.io/vAtMS
NixOS_GitHub has left #nixos [#nixos]
candy` has left #nixos [#nixos]
chrisbarrett has quit [Quit: WeeChat 1.9.1]
chrisbarrett has joined #nixos
marusich has joined #nixos
chrisbarrett has quit [Client Quit]
chrisbarrett has joined #nixos
chrisbarrett has quit [Client Quit]
chrisbarrett has joined #nixos
chrisbarrett has quit [Client Quit]
chrisbarrett has joined #nixos
pallav has joined #nixos
mkoenig has quit [Ping timeout: 256 seconds]
<wavewave> how can i configure hydra for unfree packages?
<wavewave> it refuses to evaluate.
mkoenig has joined #nixos
<vcunat> wavewave: pass config with allowUnfree = true
<wavewave> yes, i understand that. but where??
<vcunat> e.g. in nixpkgsArgs if you use pkgs/top-level/release.nix
<vcunat> or if you import <nixpkgs> { config = ... };
<wavewave> hmm. that's what i already did.
<Aleksejs> Hi, if someone remembers, I'm trying to install mesa-18.0.0-rc4. I'm getting this error: http://vpaste.net/2fwUo. I've tried --set-flag priority 15 mesa and I've got "selector ‘mesa’ matches no derivations"
<wavewave> so anyway it is supposed to work. thanks vcunat!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] flokli opened pull request #34833: notmuch-addrlookup: 7 -> 9 (master...notmuch-addrlookup) https://git.io/vAtDs
NixOS_GitHub has left #nixos [#nixos]
<wavewave> i will test it with very simple unfree package already in nixpkgs.
<vcunat> I checked the expression. It seems it really should work.
<vcunat> Aleksejs: before you do the install, you have no package called "mesa".
<vcunat> There's "mesa-noglu"
<vcunat> BTW, I'm doubtful of the utility of trying to install mesa via nix-env, but you probably know better what you want.
<Aleksejs> vcunat: I don't know if I'm doing this right. mesa is 17.1.8 in stable and 17.2.something in unstable. So I pulled unstable, modified mesa/default.nix there by changing version number. And it actually downloads and tries to install it but then throws this collision error
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] markus1189 closed pull request #34613: Add autoStart option for Kafka and Zookeeper services (master...kafka-zookeper-autostart) https://git.io/vNpAB
NixOS_GitHub has left #nixos [#nixos]
<pallav> Aleksejs: I think vcunat is trying to say that you probably don't want to install mesa via nix-env. You need to change the system-wide configuration.nix and nixos-rebuild
niklob has joined #nixos
<vcunat> Yes, exactly.
<Aleksejs> pallav: can I specify that mesa version (18.0.0-rc4) via configuration.nix?
<vcunat> using nix-env won't switch the libGL that's used
<vcunat> you can nixos-rebuild -I nixpkgs=your-modified-checkout
<wavewave> vcunat: ok. i now checked passing config.allowUnfree = true to nixpkgs really works.
<vcunat> you have mesa 17.3.3 on the unstable channel
<vcunat> 18.x won't be there for a few weeks, I expect
<vcunat> wavewave: great
<wavewave> vcunat: somehow my release.nix is incorrectly configured, then. Thanks.
<vcunat> you want it to take `configuration` and pass it down to the imported nixpkgs
<vcunat> (or maybe rather hard-code it with allowUnfree)
simukis has joined #nixos
<hyper_ch> hi vcunat
<vcunat> hi :-)
<wavewave> vcunat: thanks!
<pallav> Aleksejs: As for the priority flag issue, the setting priority would only work if you have installed mesa via `nix-env -i`. For example https://www.hastebin.com/toraniveha.rb
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 0e2ec65 Robert Helgesson: perl-Cpanel-JSON-XS: 4.00 -> 4.01
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vAtD1
<Aleksejs> pallav: yeah, but I get this error when I try to install mesa via `nix-env -i`
<pallav> Aleksejs: could you tell exact command and error?
<wavewave> vcunat: solved the unfree issue!
<Aleksejs> pallav: nix-env -iA mesa -f ~/nixpkgs-unstable
<Aleksejs> in ~/nixpkgs-unstable I modified default.nix for mesa
<pallav> Aleksejs: Oh, I guess I was missing some context.
marusich has quit [Ping timeout: 256 seconds]
<pallav> Okay, that's probably because you have installed the other version system wide
<Aleksejs> can it be because I have "mesa" in services.xserver.videoDrivers?
<pallav> You should override the mesa package to your desired config and make sure that one is used in configuration.nix
<pallav> Yes, that is probably the reason
Guest97638 has quit [Ping timeout: 276 seconds]
justanotheruser has quit [Ping timeout: 240 seconds]
<wavewave> another hydra hiccup. error: access to path '/nix/store/...' is forbidden in restricted mode
alex`` has quit [Ping timeout: 276 seconds]
<wavewave> looks like I am bitten by https://github.com/NixOS/hydra/issues/531
<wavewave> although I am not using github PR plugin.
chrisbarrett has quit [Quit: chrisbarrett]
chrisbarrett has joined #nixos
<vcunat> you can probably disable the restricted mode somewhere
niklob has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl opened pull request #34834: ocamlPackages.lwt_ssl: init at 1.1.2 (master...ocaml-lwt_ssl) https://git.io/vAtys
NixOS_GitHub has left #nixos [#nixos]
<vcunat> (if you want to do e.g. builds during evaluation)
MP2E has quit [Remote host closed the connection]
simukis has quit [Quit: simukis]
MP2E has joined #nixos
simukis has joined #nixos
<wavewave> vcunat: i disable sandbox, but it still failed.
<vcunat> I thought Hydra might be explicitly passing some options to nix or something.
<wavewave> vcunat: and this does not do anything special. just download source tarball.
<vcunat> Download during evaluation is also disallowed in usual mode.
Lisanna has quit [Read error: Connection reset by peer]
<vcunat> you may want to use builtins.fetchtarball instead: https://nixos.org/nix/manual/#ssec-builtins
<vcunat> *fetchTarball
<vcunat> Of the top of my head I'm not really certain it will solve this problem, but I'd expect it to solve it.
Guest97638 has joined #nixos
<vcunat> Ah, no.
<vcunat> > This function is not available if restricted evaluation mode is enabled.
<wavewave> oh.
<wavewave> I used fetchFromGithub function by the way.
<wavewave> i guess fetchurl, fetchgit kind of functions should be okay with hydra?
<wavewave> if not, nothing can be built.
alex`` has joined #nixos
justanotheruser has joined #nixos
<vcunat> the fixed-output fetches should be OK
<vcunat> if you want a fetch like "get me the latest master from there", you'd better make it a separate input from Hydra
<vcunat> and use it as <myRepo>
<vcunat> (the same way as <nixpkgs> is passed)
<vcunat> wavewave: ^^
<wavewave> yeah. how about some packages already defined inside pkgs?
chrisbarrett has quit [Quit: chrisbarrett]
<wavewave> they can have fetchurl or fetchFromGitHub for source.
<wavewave> i am confused about restriction on nix-evaluator.
bfrog has quit [Ping timeout: 260 seconds]
<wavewave> the problematic expression is jsaddlePkgs = import (pkgs.fetchFromGitHub { "owner"= "wavewave"; "repo"= "jsaddle"; "rev"= "b3f3e66ff3d1f37f6d070bdd986c01ca4db4f70d"; "sha256"= "0fxrq0fa7c4z3m4rqaj38zi8a0v2zglqyh7b4jnidb9bb4gsk9x8"; }) self;
<wavewave> so importing was the source of the problem, I guess.
<niksnut> shlevy: yes I still have the svn repos
<vcunat> wavewave: *importing* from it is the problem
bfrog has joined #nixos
<vcunat> that's because you need to build stuff (run the fetch) *before* you finish evaluating
<vcunat> I'd use the hydra input for this
<vcunat> (even if it's a static revision)
<vcunat> Hmm, or if hydra supports git submodules for inputs, but I'm not sure of that.
<wavewave> i see. still not clear how to work around it yet. Thank you!
<wavewave> how to not interfere with existing dev env..
<vcunat> Yes, purity is typically nice but sometimes you just don't want it.
Ubercow has quit [Quit: Ubercow]
<wavewave> yeah. indeed. in this case, it is not even clear how purity is broken.
<wavewave> i thought if I fix hash, it is pure.
i-am-the-slime has joined #nixos
<LnL> hydra doesn't allow IFD
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vanzef opened pull request #34835: pythonPackages.i3ipc: init at 1.4.0 (master...i3ipc) https://git.io/vAtSC
NixOS_GitHub has left #nixos [#nixos]
<LnL> you can download the repo but you can't import nix expression from it
<niksnut> hydra does allow IFD
<wavewave> LnL: today i learned it. :-)
<niksnut> not something that should be relied on though...
<LnL> oh it does?
<niksnut> yeah, it's used by the RPM/Debian jobs
<LnL> how does that work then, I thought it always uses restricted-eval
<niksnut> restricted eval does not disallow IFD
<LnL> oh, like if the path already exists?
Mateon3 has joined #nixos
<niksnut> no, if you're importing a derivation that you just constructed
Mateon1 has quit [Ping timeout: 265 seconds]
Mateon3 is now known as Mateon1
<vcunat> well, in this particular use case you need import from a fetch*
Ubercow has joined #nixos
rihards has joined #nixos
<wavewave> some time ago, there was a discussion about this: https://github.com/NixOS/nixpkgs/issues/16130
<wavewave> IFD = Import From Derivation :-)
ixxie has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to openssl-1.1: https://git.io/vAtSd
<NixOS_GitHub> nixpkgs/openssl-1.1 5bc89ca Vladimír Čunát: qt48: fix repeated patches introduced in ff17b67c7c5...
NixOS_GitHub has left #nixos [#nixos]
rotaerk has quit [Ping timeout: 255 seconds]
rauno has joined #nixos
pallav has quit [Ping timeout: 260 seconds]
<wavewave> so after reading the related discussion, it is quite a difficult problem, especially when we want to evaluate nix expression on the fly from the source.
<wavewave> for the time being, my workaround will be parameterize all such attribute that needs IFD, and use default value so that my previous dev workflow can remain the same. I found that I used IFD quite extensively in my nix build scripts.
<FRidh> wavewave: you have a source tarball that includes the nix expression for building it?
<wavewave> FRidh: yes.
<FRidh> it uses fetchTarball. Each source tarball has an expression for building itself.
rotaerk has joined #nixos
<wavewave> FRidh: yup. but the issue is how hydra can build it in restricted evaluation mode.
winem_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vAt9r
<NixOS_GitHub> nixpkgs/master 2e7e318 Pascal Wittmann: unibilium: 1.2.1 -> 2.0.0
NixOS_GitHub has left #nixos [#nixos]
<wavewave> In restricted eval mode, import from downloaded expression is not allowed.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #34838: [17.09] firefox branding (release-17.09...17.09/firefox-branding) https://git.io/vAt9K
NixOS_GitHub has left #nixos [#nixos]
<wavewave> FRidh: thank you for the useful info.
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vAt9M
<NixOS_GitHub> nixpkgs/master 2d6d52b Pascal Wittmann: icmake: 9.02.04 -> 9.02.06
<FRidh> wavewave: "restricted eval does not disallow IFD ... if you're importing a derivation that you just constructed" The discussion is about fetchurl, not fetchTarball.
pallav has joined #nixos
<FRidh> discussion in the PR you referred to https://github.com/NixOS/nixpkgs/issues/16130
iyzsong has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to release-17.09: https://git.io/vAt99
<NixOS_GitHub> nixpkgs/release-17.09 baeb1ee Vladimír Čunát: Merge 'retpoline': build linux* by gcc7 by default...
<NixOS_GitHub> nixpkgs/release-17.09 be10da4 Vladimír Čunát: linux-*: build with gcc7, but allow overriding it
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 95cfc2e Vladimír Čunát: linuxPackages: build by kernel's stdenv
<wavewave> FRidh: okay. let me try.
<FRidh> wavewave: you can check whether you can build with Hydra https://github.com/NixOS/nixpkgs/issues/16130 . It uses fetchTarball and IFD extensively.
<wavewave> FRidh: Thanks!
<wavewave> FRidh: unfortunately, it's still not allowed.
<wavewave> access to URI "https://github...." is forbidden in restricted eval..
<wavewave> it strictly disallow anything other than NIX_PATH.
orivej has quit [Ping timeout: 260 seconds]
MP2E has quit [Remote host closed the connection]
sigmundv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #34839: [17.09] firefox: 58.0.1 -> 58.0.2 (release-17.09...17.09/firefox-58.0.2) https://git.io/vAtHr
NixOS_GitHub has left #nixos [#nixos]
sigmundv has quit [Ping timeout: 240 seconds]
pallav has quit [Quit: Page closed]
coot has joined #nixos
BramD has joined #nixos
betaboon has joined #nixos
vcunat has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #34840: Init coreutils (master...init-coreutils) https://git.io/vAtQk
NixOS_GitHub has left #nixos [#nixos]
vcunat has joined #nixos
<betaboon> hello #nixos, i have a question regarding deploying containers into a nixos-machine with the none-backend. i need several containers to have access to the internet. do i have to configure NAT manually (by using networking.nat) for each individual container or is there a more elegant solution?
wajsel has joined #nixos
blym has quit [Ping timeout: 255 seconds]
<razzy> i guess there is no easy way to map aditional resources to your nix system :]
<razzy> *map aditional computing resources
winem_ has quit [Ping timeout: 255 seconds]
<razzy> something like map aditional networked rapsbery pi CPU to your own and let linux scheduler distribute loads.
<sphalerite> razzy: there's a huge amount of logistics involved in that kind of thing and is something you'd typically do on a per-workload basis.
<sphalerite> For instance, nix supports distributed builds where a derivation can be built on another machine instead of the local one
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34468: Fix and update xfce4-panel weather plugin (master...xfce4-weather) https://git.io/vN5oa
NixOS_GitHub has left #nixos [#nixos]
<sphalerite> if it's something mathematical there are frameworks out there that can do that sort of thing if you hook them into your code.
<razzy> thx :]
<sphalerite> But I don't know of any solution that lets you tell the OS to just pretend some remote machine is part of yours.
<sphalerite> Especially if you want to use a raspberry pi as an addition to your laptop or whatever, since they're (probably) different architectures and can't even run the same code!
<razzy> (i would like multiple rapsberries :])
<MichaelRaskin> There are Single System Image solutions
<MichaelRaskin> Now, if you want fully opensource Linux-based currently active ones, that might be a stronger filter
<razzy> MichaelRaskin: thank you :]
mkmk has joined #nixos
rihards has quit [Quit: rihards]
rihards has joined #nixos
rihards has quit [Client Quit]
<razzy> woa, plan seems awesome :]
<razzy> plan9 :]
<razzy> exept there is no software :]
<mkmk> hi everyone
<mkmk> I have short question about writing a Nix expression for a new package
<MichaelRaskin> razzy: software is the lesser problem, maybe. There are no drivers…
<mkmk> the downloadable tgz archive of the library contains only .cpp and .h files and I'd like to add a CMakeLists.txt with a patch
<mkmk> if I run unpackPhase and patchPhase in a nix-shell, the CMakeLists.txt appears
<clever> mkmk: id just copy the file in with a postPatch phase
<TimePath> MichaelRaskin: run it on Linux with virtual networking?
<clever> mkmk: ah, sounds like you already got the patch working, is cmake in the buildInputs?
<mkmk> but if I run genericBuild, it says that the patch was applied, but the file is missing
<mkmk> clever: yes, cmake is in the buildInputs
<clever> mkmk: after unpackPhase, you must cd into the directory it produced, before you run patchPhase
<clever> mkmk: also, genericBuild does unpack for you, so if your using that, thats the ONLY thing you run
<MichaelRaskin> TimePath: if you are willing to combine odd software together, Linux itself is not tht bad as a base, either.
<mkmk> clever: then I might patch the file into the wrong directory
<mkmk> clever: thanks, that did it
i-am-the-slime has quit [Ping timeout: 276 seconds]
<mkmk> somehow, I didn't check where the patched file went
<razzy> thx
<ottidmes> If I want to generate a script in my installPhase, should I use `cat > $out/bin/... <<'EOF'` or passAsFile?
Turion has joined #nixos
i-am-the-slime has joined #nixos
<clever> ottidmes: depends, do you need to substitute any variables within it?
<ottidmes> clever: Yeah, lots
<clever> ottidmes: just just stick to <<EOF then
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vAt7a
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 63c97b9 Pascal Wittmann: udunits: 2.2.24 -> 2.2.26
rihards has joined #nixos
<ottidmes> clever: To be clear, I have lots of Nix variables, no shell variables other than those I define locally in the script myself
<clever> ottidmes: id still do that with <<EOF
<ottidmes> clever: OK, I tried it with passAsFile initially, but I got an empty string in my script when I tried to use the variable, the EOF alternative works well so I will probably just keep it as is
<clever> ottidmes: i think the foo variable gets passed in as $fooPath, which is a path to its contents
aarvar has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vAt7H
<NixOS_GitHub> nixpkgs/master b0047a5 Pascal Wittmann: fswatch: 1.9.3 -> 1.11.2
NixOS_GitHub has left #nixos [#nixos]
<ottidmes> clever: Just tested it, you are right, $fooPath contains a /tmp path to the file containing the contents of the foo attribute, thanks!
thc202 has joined #nixos
humanoyd has joined #nixos
arjen-jonathan has joined #nixos
mkmk has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
vcunat has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to release-17.09: https://git.io/vAt5i
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 09db9a7 Andreas Rammhold: Merge pull request #34839 from andir/17.09/firefox-58.0.2...
<NixOS_GitHub> nixpkgs/release-17.09 03be3d4 taku0: firefox: 58.0.1 -> 58.0.2...
17SAAPL0T has joined #nixos
<17SAAPL0T> [nixpkgs] andir closed pull request #34838: [17.09] firefox branding (release-17.09...17.09/firefox-branding) https://git.io/vAt9K
17SAAPL0T has left #nixos [#nixos]
7F1AAH2GP has joined #nixos
<7F1AAH2GP> nixpkgs/release-17.09 ad7fd69 Andreas Rammhold: firefox: enable official branding...
7F1AAH2GP has left #nixos [#nixos]
<7F1AAH2GP> nixpkgs/release-17.09 3389f23 Andreas Rammhold: Merge pull request #34838 from andir/17.09/firefox-branding...
<7F1AAH2GP> [nixpkgs] andir pushed 2 new commits to release-17.09: https://git.io/vAt5P
TonyTheLion has joined #nixos
<TonyTheLion> I have a nix derivation that depends on python pexpect. How do I tell it to include that as a dependency?
<TonyTheLion> do I have to use `python36.withPackages (ps: with ps; [ pexpect ])`?
<TonyTheLion> my derivation has custom buildPhase, so I need it to execute that
justanotheruser has quit [Ping timeout: 256 seconds]
cfricke has quit [Quit: WeeChat 2.0]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #34842: lib.maintainers: maintainer is now a set (master...maintainers) https://git.io/vAt5A
NixOS_GitHub has left #nixos [#nixos]
<FRidh> TonyTheLion: often, yes
<TonyTheLion> hmm
<FRidh> is the package a python module?
<FRidh> or something else?
<TonyTheLion> its not a python module, it does run a python script as part of the buildPhase that uses pexpect
<TonyTheLion> hence that dependency
<clever> TonyTheLion: id add that to the buildInputs then
<clever> TonyTheLion: and wrap it with another ( and ) because of how lists and functions interact
justanotheruser has joined #nixos
<TonyTheLion> not sure I understand what you mean with the wrapping part
<TonyTheLion> BuildInputs = [ (python36.withPackages (ps: with ps; [ pexpect ])) ]; - like this?
<FRidh> yes
<TonyTheLion> hmm python still tells me it doesn't know what the module pexpect is
<hyper_ch> clever: my script is progressing fine
<TonyTheLion> I just made it a stdenv.mkDerivation
<FRidh> maybe typo (buildInputs instead of BuildInputs)
taktoa has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.0.1]
vcunat has joined #nixos
blym has joined #nixos
Ankhers has joined #nixos
Ankhers is now known as Guest34020
bkchr has joined #nixos
<bkchr> Hi, when I want to add ipod support for clementine (https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/audio/clementine/default.nix), how do I do that?
Guest34020 has quit [Remote host closed the connection]
<bkchr> In configuration.nix
Ankhers has joined #nixos
Ankhers has quit [Remote host closed the connection]
<LnL> ^ another feature flag paradigm
Ankhers_ has joined #nixos
<clever> bkchr: nixpkgs.config.clementine.ipod = true;
<bkchr> clever: ahh :(
<bkchr> Only tried without "config.clementine.ipod"
<clever> that breaks the entire configuration.nix file, due to other weirdness
<clever> all module modules must contain the following 3 keys, imports, options, config
<clever> if its missing all 3, nixos will automatically wrap it in config = { ... }; for you
<Ankhers_> Could anyone point me to something that explains the easiest way to setup a remote builder on a mac? I looked at https://github.com/holidaycheck/nix-remote-builder but that gives me an issue at the `source` stage.
<clever> so adding a single config.something to the file disables the helper, causing the rest of the file to suddenly become invalid
<bkchr> ahh okay, weird
<Ankhers_> I also have a VM setup if it is easy enough to just setup some env vars or something.
<Ankhers_> LnL: I will give this a go. Thanks!
<Ankhers_> LnL: I assume /etc/nix/build_rsa is an rsa key? What is the `4 4` at the end of it mean?
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<LnL> buildCores and the speed factor
<LnL> you probably don't need the second one, I'll remove that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #34814: teamspeak_client: 3.1.7 -> 3.1.8 (master...teamspeak_3_1_8) https://git.io/vAtUM
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] FRidh opened pull request #1859: Nix stats: flatten statistics (master...flatten) https://git.io/vAtbv
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #34843: nixos/postfix: document that *Alias options support comma separated values (master...nixos-postfix-alias-doc) https://git.io/vAtb8
NixOS_GitHub has left #nixos [#nixos]
tertleeltret has quit [Quit: Connection closed for inactivity]
<hyper_ch> infinisil: online?
<Ankhers_> LnL: What user on the builder does my machine connect to for building?
<LnL> you can choose that, just needs to be a trusted user
<Ankhers_> thanks.
<aminechikhaoui> Folks, newbie question of the day: in nixos/lib/make-disk-image.nix why do we have to run stuff in pkgs.vmTools.runInLinuxVM ?
ThatDocsLady has joined #nixos
rauno has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yesbox opened pull request #34845: bfs: init at 1.2.1 (master...bfs_init) https://git.io/vAtbH
NixOS_GitHub has left #nixos [#nixos]
<viric> oh, systemd-gpd-auto-generator. damn it, it wanted to mount a swap partition
iyzsong has quit [Ping timeout: 256 seconds]
<clever> aminechikhaoui: you cant mount a disk image via loopback, because the nix build lacks root
zzamboni has joined #nixos
<clever> aminechikhaoui: so you have to run the whole thing in a linux vm, which gives you a fake root
Rusty1_ has joined #nixos
<aminechikhaoui> clever: oh I see, but e.g in prepareImage I see a usage of fakeroot, isn't that an option ?
<clever> aminechikhaoui: that just lies about what uid your running as
<clever> aminechikhaoui: which doesnt allow you to mount things
<MichaelRaskin> And I think even user namespaces do not permit loop devices
<clever> you could potentially use a malformed disk image to buffer-overflow the kernel
<aminechikhaoui> ok thanks for the explanation :)
<clever> or simply make a disk image with setuid root bash
<clever> and then mount it
<MichaelRaskin> clever: that would actually not be that bad, it would end up uid-0-inside-namespace
<clever> as long as the namespace is configured to deal with that properly
ottidmes has quit [Quit: WeeChat 1.9.1]
zzamboni has quit [Quit: Leaving.]
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAtNR
<NixOS_GitHub> nixpkgs/master eb3611a Ivan Solyankin: pythonPackages.i3ipc: init at 1.4.0...
<NixOS_GitHub> nixpkgs/master b101148 Frederik Rietdijk: Merge pull request #34835 from vanzef/i3ipc...
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> clever: would you mind to test a script of mine?
<clever> hyper_ch: bit busy right now
<hyper_ch> but it's sunday :)
<gchristensen> busy enjoying his sunday!
<hyper_ch> are there any other guinea pigs - I mean highly valued testers - available that know how to use a vm and are familiar with clever's kexec tool?
thunker[m] has joined #nixos
pkill9 has joined #nixos
<hyper_ch> there's still a bug... all worked except the boot up after installation :)
Guest97638 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
ma27 has quit [Client Quit]
zarel has joined #nixos
ma27 has joined #nixos
nuncanada has joined #nixos
alex`` has joined #nixos
troydm has joined #nixos
b has joined #nixos
<troydm> anyone could suggest me something, I have fonts in my local home ~/.fonts but apparently default font configuration doesn't loads them, what can I do?
betaboon has quit [Ping timeout: 240 seconds]
betaboon has joined #nixos
<sphalerite_> troydm: the ideal way to get that working is to package them and install them into your user profile. However ~/.fonts might work as well, just missing the cache
<sphalerite_> try running fc-cache -fv and see if the fonts appear in the output. If so, they should start working. You may need to restart the application
Ivanych has quit [Quit: Leaving.]
ThatOtherGuy has quit [Ping timeout: 256 seconds]
nuncanada has quit [Ping timeout: 240 seconds]
<hyper_ch> sphalerite_: you seem to be bored right now :)
vcunat has quit [Ping timeout: 256 seconds]
betaboon has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] va1entin opened pull request #34847: pythonPackages.pynacl: fix tests (master...pynacl) https://git.io/vAtht
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vAthO
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8ea7a30 Bjørn Forsman: make-fonts-cache: remove CACHEDIR.TAG file from Nix store...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #34708: make-fonts-cache: remove CACHEDIR.TAG file from Nix store (master...remove-fc-cache-cachedir-tag) https://git.io/vAJ4d
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 3933b60 Frederik Rietdijk: Merge pull request #34847 from va1entin/pynacl...
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vAthG
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 92d68b0 Valentin Heidelberger: pythonPackages.pynacl: fix tests
coot has quit [Quit: coot]
<sphalerite_> hyper_ch: people might be more interested if you mention what the script is actually for
<hyper_ch> sphalerite_: for taking oveer the world obviously :)
<hyper_ch> sphalerite_: well, it's for testing my little nativ encrypted zfs autoinstall script
raynold has quit [Quit: Connection closed for inactivity]
<sphalerite_> ooooh, see, that does sound cool. Now I'm more interested. Unfortunately I'm busy :p
<hyper_ch> sphalerite_: you mean the taking-over-the-world part?
<troydm> sphalerite_: that's exactly the problem it doesn't appears on fc-cache -fv
<sphalerite_> troydm: right, then the best solution is probably just packaging them.
<sphalerite_> You could add them to your fontconfig path somehow probably but I don't know how and it's not as elegant :p
<troydm> sphalerite_: well I use custom dotconfigurations system so packaging them is out of question since I want them to be managed from that configuration
<sphalerite_> ok.
<troydm> sphalerite_: funny thing is dat nixos configuration for fonts mentions ~/.fonts folder
<troydm> sphalerite_: so it should work out of the box
<sphalerite_> I don't really see why you're using nix if you have your custom system though :p
<Guanin> Hi, I'm trying to write a default.nix for some java application that is built with apache ant, but it seems to fail because of some missing libs. A forum post suggests that I might be missing apache ivy - But I fail to add it as a buildInput
Ankhers_ has quit [Remote host closed the connection]
<troydm> sphalerite_: well my custom system handles .dotfiles and font installing into ~/.fonts and well some other minor things like bash aliases etc, but it doesn't handles what software should be installed system wide
<troydm> sphalerite_: that's why
<samueldr> as a side-note, I have fonts in homedir working
<samueldr> though, I'm using `.local/share/fonts/` and not even symlinking .fonts to it
<samueldr> I'd like a citation, but `~/.fonts/` is deprecated
<Guanin> I am trying to build filebot ( https://github.com/filebot/filebot ) and my current default.nix looks like this: https://clbin.com/x3bJj The output I'm getting is this https://clbin.com/KCIPK
chisui has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #34849: pkgs: firefoxes and tor-browsers (master...pkgs/firefoxes) https://git.io/vAtjo
NixOS_GitHub has left #nixos [#nixos]
johnqweqweq has joined #nixos
<hyper_ch> is the nix dev mail list moderated?
<troydm> samueldr: okey got it I can reconfigure my system to install fonts there, thx
<samueldr> troydm: please tell me after if it worked for you
<troydm> samueldr: just did it and it worked, thx!
johnqweqweq has quit [Quit: Leaving]
yann-kaelig has joined #nixos
<samueldr> and it is now documented with attribution in the wiki, since I have confirmation
<samueldr> troydm: where did you see the ~/.fonts mention in the nixos configuration?
<samueldr> I want to fix the documentation/options
bkchr has quit [Quit: Konversation terminated!]
<troydm> samueldr: just a sec can't copy/paste link coz I use terminal weechat on IRC and somehow clipbuffer is not working probably another x utility missing :)
<samueldr> thanks!
xcmw has joined #nixos
ThatOtherGuy has joined #nixos
endformationage has joined #nixos
vinymeuh has joined #nixos
aminechikhaoui has quit [Ping timeout: 264 seconds]
<samueldr> oh!
<samueldr> troydm: sorry, this is not the current nixos repository
<samueldr> https://github.com/NixOS/nixos → The NixOS repository is obsolete!
<samueldr> The NixOS source tree has been merged into the Nixpkgs repository, where it now lives in the nixos subdirectory. Please file NixOS bugs in the Nixpkgs issue tracker using the nixos label.
smichel17 has joined #nixos
<troydm> samueldr: ahh sorry my bad I was not paying attention
<samueldr> no worries, I'm sure most who weren't there for the transition did the same mistake once, I did in the past
humanoyd has quit [Quit: WeeChat 2.0.1]
vinymeuh has quit [Quit: Textual IRC Client: www.textualapp.com]
vinymeuh has joined #nixos
<srid> I'm curious - what do nixos'ers tend to use in place of Dropbox? (main to keep files sync'ed/ backed'up).
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #34850: [backport] make-fonts-cache: remove CACHEDIR.TAG file from Nix store (release-17.09...backport-removal-of-fc-cache-cachedir-tag) https://git.io/vAqv5
NixOS_GitHub has left #nixos [#nixos]
<troydm> on a side not I still have tons of leftoever issues, I'm currently configuring my MBP Retina NixOS first time so I have tons of issues
<troydm> like this
<troydm> cannot find -lgcc_s
<troydm> when compiling simple .c file that I use for powerline shell
<clever> troydm: are you building it inside nix-shell or nix-build?
<troydm> clever: nah, just from console, old school gcc -o powerline powerline.c
oida has quit [Ping timeout: 255 seconds]
<clever> troydm: the compiler only works inside nix-shell and nix-build
<clever> troydm: if you try to install gcc, it will just fail with errors like the one you gave
zarel has quit [Remote host closed the connection]
<troydm> clever: hmm, let me check what this nix-shell thing is as I'm pretty much noob, but I understand something like that is needed when you have plethora of symlinks across tons of folders instead of single /usr/lib
<clever> troydm: for a simple thing, you can probably just use "nix-shell -p stdenv" and then use gcc inside that
<catern> what is this python3.6m binary in nixpkgs?
ma27 has quit [Ping timeout: 255 seconds]
<catern> /nix/store/87wc186a9xq5y6yxvar6f2sm5cbqzpzr-python3-3.6.4/bin/python3.6m
<catern> i have both this and /nix/store/87wc186a9xq5y6yxvar6f2sm5cbqzpzr-python3-3.6.4/bin/python3.6
<catern> it's used for wrappers, it seems?
<catern> but what's the difference?
<symphorien> it is a so called "minimal" interpreter iirc
<catern> ah! in what way?
<symphorien> currently googling it :°
Turion has quit [Ping timeout: 240 seconds]
<symphorien> ah apparently it doesn't include the whole standard library (including c implementation of some modules)
<troydm> clever: that worked, thx
<symphorien> https://packages.debian.org/fr/sid/python-minimal at least this is the debian interpretation
<FRidh> uhm if I recall it is a certain build option of which the default changed from python 2 to 3
<FRidh> I think memory-related
oida has joined #nixos
aminechikhaoui has joined #nixos
<catern> ah, I see, it's not a nix thing
<catern> neat thanks
<catern> while people-who-know-Python-and-Nix are around - I am packing this thing aioconsole which provides a binary to run a python console (with asyncio fanciness)
<catern> but when I run its entry point ./result/bin/apython, I get
<catern> /nix/store/87wc186a9xq5y6yxvar6f2sm5cbqzpzr-python3-3.6.4/bin/python3.6m: No module named aioconsole
<catern> surprisingly, ./result/bin/apython --help works just fine, though
<catern> any guesses?
aminechikhaoui has quit [Ping timeout: 240 seconds]
<catern> also, if I do
<catern> nix-build --expr '((import ./.) {}).python36.withPackages(ps: [ps.aioconsole])'
<catern> I get an apython that does work
<FRidh> something wrong in the wrappers in /bin ?
<catern> I presume so, but I can't figure out what
<catern> they are just the normal auto-generated ones
<FRidh> can you share your expr
aminechikhaoui has joined #nixos
cruxeternus has quit [Remote host closed the connection]
<CrazedProgrammer> are there any opencl drivers for amd polaris gpus? i had one in arch but i cannot find the equivalent in the nixos packages
<catern> FRidh: it seems that aioconsole is invoking a Python subprocess - oh, and the subprocess doesn't have the sys.path set up! I see now
<catern> so what should I do to fix aioconsole here? (or fix our packaging?)
<catern> hmm, although, it seems like it will just work correctly as long as it's only used through python36.withPackages(ps: [ps.aioconsole])
<catern> so maybe it's not even broken?
ditadi has joined #nixos
chisui has quit [Ping timeout: 260 seconds]
<FRidh> catern: proc_args = [sys.executable, '-m', 'aioconsole', '--no-readline']
<FRidh> That line is the issue. In this case sys.executable points to the interpreter, without any aditional packages
<FRidh> this is in `aioconsole/apython.py`
<catern> right
<catern> that is my understanding too
ThatOtherGuy has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
<FRidh> I've seen it several times now, in Sphinx and in werkzeug
chisui has joined #nixos
<FRidh> using instead [ sys.argv[0], '--no-readline' ] should solve it I think
BramD has quit [Quit: Connection closed for inactivity]
<catern> wait, but... then it won't be able to import other libraries when I do '((import ./.) {}).python36.withPackages(ps: [ps.aioconsole])', right?
vcunat has joined #nixos
<catern> (assuming I actually pass some additional packages to import)
<clever> catern: that nix-shell sets up PYTHONPATH automatically i believe
<FRidh> catern: do you mean you want to run aioconsole that has other additional modules on sys.path ?
<catern> clever: sure, but it's possible to use 'python36.withPackages(ps: [ps.aioconsole])' without using nix-shell
<catern> FRidh: right - that's the intended use case I think
<clever> catern: double-check that that python actually solves the problem
<catern> clever: it does
<clever> catern: id just generate a #!/bin/sh script that runs it on the main py file then
<catern> I think it's by virtue of the sys.executable already being wrapped to have a full sys.path
<FRidh> catern: I think you're right then. Try it.
<catern> yeah, I see it works
<catern> more specifically, $(nix-build --expr '((import ./.) {}).python36.withPackages(ps: [ps.aioconsole])')/bin/apython runs successfully
<catern> (in my modified nixpkgs)
ottidmes has joined #nixos
<catern> so is it okay to have this package whose entry point doesn't work if it's built outside of python36.withPackages?
ThatOtherGuy has joined #nixos
<catern> the nixpkgs pull request checklist does say "tested all binaries", and it might be confusing, that's why I'm concerned :)
chisui_ has joined #nixos
<FRidh> catern: leave a comment in the expression with an explanation.
<genesis> i've some rule : enable_feature = '' sed -i -e "/^#.*$1.*=/s:^#[ ]*::" makefile ''; pick from gentoo ebuild, i'd like to transform it in a nix way to do
<genesis> i guess i should rewrite it to turn it to a function instead of a string ? i've some difficulties to do it for now.
chisui has quit [Ping timeout: 260 seconds]
<simpson> How would I cross-compile something which runs configuration tests to see what features the CPU supports? I want to compile an RPython app to run on ARM but I'm on my amd64 laptop.
<yorick> my deployed nixops machines all seem to freeze after "Started Reconfigure the system from EC2 userdata on startup". not reachable by ping or ssh
<yorick> why is this?
<ottidmes> Why is it that when I supply networking.interfaces.<name>.macAddress that my network will fail to load? I can work around it with an udev rule, but it should just work
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] catern opened pull request #34853: pythonPackages.aioconsole: init at 0.1.7 (master...master) https://git.io/vAqTZ
<sphalerite> What's the filesystem sharing protocol of choice for a pure-nixos network?
<mingc> Is my nix-shell broken? I get gcc (GCC) 6.4.0 by running `nix-shell --pure -p gcc7 --run "gcc --version"`
crucialrhyme has joined #nixos
<vcunat> mingc: that's normal
nuncanada has joined #nixos
<vcunat> nix-shell --pure -Q -p gcc7 -p which
<vcunat> /nix/store/yhbp3fy8bmkqziawl78srgzjwqyy91s1-gcc-6.4.0/bin/gcc
<vcunat> which -a gcc
<vcunat> /nix/store/z0ks81pzk2khcma5r1gzm8n12sad14z2-gcc-7.2.0/bin/gcc
<vcunat> /nix/store/i9kmd5fpay17n2dfxzy3nx4pz98qb00a-gcc-wrapper-6.4.0/bin/gcc
<vcunat> /nix/store/3xrxhj32jfd03vzm0ac9004hnkg0n7rl-gcc-wrapper-7.2.0/bin/gcc
<vcunat> you get the toolchain by default (stdenv)
<vcunat> I'd use custom shell.nix if you want to change that.
<mingc> vcunat: Hmm, ok. So we must create shell.nix if we want gcc7 ?
crucialrhyme has quit [Client Quit]
<vcunat> I don't see a better way.
<clever> vcunat: one min
<clever> stdenvNoCC = stdenv.override { cc = null; };
<mingc> Ok, thanks. But this behavior seems strange to me though.
<clever> vcunat: this creates a variant of stdenv, that has no cc
<clever> vcunat: in theory, you can also do stdenv.override { cc = gcc7; } to create a variant that has gcc7
<clever> vcunat: but youll need to use -E, not -p, since -p uses the original stdenv
<vcunat> In any case, you want `overrideCC stdenv gcc7` instead of regular stdenv.
<clever> nix-shell -E 'with import <nixpkgs> {}; let env2 = stdenv.override { cc = gcc7; }; in env2.mkDerivation { name = "shell"; buildInputs = [ which ]; }'
<TonyTheLion> anyone here know how I can tell a nix-derivation where to look for my .ssh/config?
<clever> output ‘/nix/store/qs71y5nvcwxqpzs6y3rw4xc6szib4qp0-stdenv’ is not allowed to refer to path ‘/nix/store/49pgxxi59f65xsffpfjlvdsl49ihq9hv-gcc-7.2.0-lib’
<clever> vcunat: and it fails to build the stdenv
<vcunat> What I wrote does work.
<vcunat> I just built kernel today that way, to have retpolines.
<clever> vcunat: there must be a subtle difference, because your variant was actually a hit in the binary cache
<vcunat> And I use a shell with gcc7 stdenv for everyday development.
<clever> nix-shell -E 'with import <nixpkgs> {}; let env2 = overrideCC stdenv gcc7; in env2.mkDerivation { name = "shell"; buildInputs = [ which ]; }' --pure
<clever> this one works
<vcunat> stdenv isn't really a regular package
<vcunat> some things work differently
<clever> 11 overrideCC = stdenv: cc: stdenv.override { allowedRequisites = null; cc = cc; };
<clever> lol
<clever> literally all it does, is what i did, plus disable the safety that caused the error :P
<vcunat> :-D it could see some improvements, I guess.
* clever heads off to bed
ThatDocsLady has quit [Ping timeout: 255 seconds]
<sphalerite_> TonyTheLion: sounds to me like a fundamental misunderstanding of how a nix derivation is supposed to work; it shouldn't have access to your ssh config! What are you trying to achieve?
<TonyTheLion> trying to get it to run a script that uses ssh
<vcunat> TonyTheLion: nix builds are typically sandboxed and thus don't have access to network
<TonyTheLion> ah I see
<vcunat> Except for derivations where you specify the output hash in advance.
<vcunat> (e.g. fetch*)
<TonyTheLion> ah I see
<vcunat> There are lots of push towards perfectly reproducible builds around here.
revtintin has joined #nixos
<FRidh> The following is an error from Nix, and not from inside the nix-build, right? Error: mkdir('/homeless-shelter/.cache/bazel/_bazel_freddy'): :X
<FRidh> I'm surprised to see my user name in it considering I am building with the nix-daemon and the sandbox is on
phaebz has joined #nixos
<hyper_ch> sphalerite_ I put it on the mailing list :)
hotfuzz has quit [Read error: Connection reset by peer]
<sphalerite_> hyper_ch: will check it out when I find the time. Quite possibly on real hardware :)
zzamboni has quit [Quit: Leaving.]
<hyper_ch> sphalerite_: one prerequisite so far is that the server does get the ip assiend by dhcp
<hyper_ch> couldn't be bothered to provide ip and subnet info :)
hotfuzz has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 5 new commits to staging: https://git.io/vAqIg
<NixOS_GitHub> nixpkgs/staging 19d8850 Will Dietz: llvm-packages: update default 4 -> 5
<NixOS_GitHub> nixpkgs/staging db7e0ae Daiderd Jordan: llvm-packages: cleanup
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/staging 79f4353 Daiderd Jordan: ICU: fix build with clang-5
<sphalerite_> hyper_ch: cool stuff. For encrypted swap, LUKS is the way
<tilpner> hyper_ch - If you want more automation, I modified kexec_tarball to create a self-extracting executable that auto-runs justdoit on boot
<tilpner> hyper_ch - So you scp, ./nixos, wait a few minutes and ssh into the finished system
<tilpner> (But I guess that doesn't allow for a script to as any questions...)
<hyper_ch> tilpner: you'd have to provide all info
<hyper_ch> you can already do it by passing the arguments
<hyper_ch> took me quite a few trial and errors on kimsufi and online.net to have reproduciable, native encrypted root zfs nixos servers
<hyper_ch> (still looking for a good expression for that all: native zfs root encrypted nixos? )
<hyper_ch> sphalerite_: the current script allows you to create an empty partitoin that you can then manually assign as swap if you want
<srid> Nix is trying to install pandoc-1.19.2.4 (and fails, due to aeson version issue). Any reason it is not using the latest (2.x) version? https://hackage.haskell.org/package/pandoc ... I thought haskell packages are periodically updated from hackage?
<sphalerite_> hyper_ch: yeah just saying because you mentioned you don't know how to have encrypted swap :)
<hyper_ch> sphalerite_: yep, I don't know :) but thx for the info
<sphalerite_> cryptsetup luksFormat /dev/foobar3; cryptsetup open /dev/foobar3 crypt-swap ; mkswap /dev/mapper/crypt-swap ; swapon /dev/mapper/crypt-swap
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #34845: bfs: init at 1.2.1 (master...bfs_init) https://git.io/vAtbH
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> sphalerite_: you not directly set it up with random key?
<sphalerite_> yeah of course it's nicer if you have a key for it stored on your encrypted filesystem so you don't have to type a password for each on boot!
<Yaniel> oh, has mozilla changed their IP policy?
<Yaniel> firefox suddenly has the official branding
<MichaelRaskin> More like clarified, then reviewed Nixpkgs patches.
Neo-- has quit [Ping timeout: 255 seconds]
<Yaniel> ah, nice
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 600d0af Spencer Baugh: pythonPackages.aioconsole: init at 0.1.7
<NixOS_GitHub> nixpkgs/master 1f4ac3b Jörg Thalheim: Merge pull request #34853 from catern/master...
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vAqLC
NixOS_GitHub has left #nixos [#nixos]
<genesis> https://github.com/bignaux/nixpkgs/blob/AppImageKit/pkgs/games/sdlmame/default.nix#L24-L30 what i'm trying to do, if someone would help , i'm bit stuck
sitwon has joined #nixos
alex`` has quit [Ping timeout: 265 seconds]
xcmw has joined #nixos
kiloreux has joined #nixos
<simpson> Having trouble getting the quotes and antiquotes right?
<sitwon> I just intalled NixOS. I'm using irssi in a uxterm window. when I press <Alt>+2 it inserts '²', <Alt>+3 inserts '³'. That's nifty and all, but how do I switch windows in irssi?
<simpson> sitwon: Does <Esc>+2 work?
<MichaelRaskin> genesis: Are you trying to make Nix export functions to Bash?
<ditadi> Is there an update verion of an article on how to install NixOS and use Yubikey for Luks encryption? Like this article https://web.archive.org/web/20160911070220/https://nixos.org/wiki/Luks-based_FDE_with_Yubikey_PBA_and_btrfs_on_UEFI_NixOS
<sitwon> simpson: it does, thanks!
<MichaelRaskin> genesis: you probably want ${enable_feature "USE_SYSTEM_LIB_EXPAT"}
<MichaelRaskin> (as a Nix escape)
<genesis> oki
<hyper_ch> sphalerite_: tilpner: ok, the root password could also be automated and for the encrypted dataset, with some tcl/expect magic it could also be automated
<tilpner> sitwon - https://irssi.org/documentation/startup/#basic-user-interface-usage#alt-key-as-meta-for-xtermrxvt-users
<genesis> yes i searsh the best way to do, perharps i could make the replace outside a Phase function
<hyper_ch> right now the only real thing one has to know for that script is the public key... can't find any real way around that
<tilpner> Just build it into the image?
<hyper_ch> tilpner: the user still has to provide it
<hyper_ch> tilpner: I mean the other though things was the ethernet kernel module... so all I did was lspci -k and then some grepping magic
<tilpner> Make them edit the configuration.nix to provide a path to a key file
<sitwon> next question (and the reason I'm here), I can't seem to figure out how to get gvim. vim is installed and works fine, but I don't see a package for gvim or vim-gnome or anything similar (I checked `nix-env -qa '.*[Vv]im.*'`)
<hyper_ch> without the kernel mod in the initrd the network won't be up for entering the password
<hyper_ch> tilpner: no editing at all should be the main thing
<symphorien> sitwon: its vimHugeX or so iirc
<hyper_ch> tilpner: test it out in a vm :)
<symphorien> you can use nix-index / nix-locate to find this type of information
<tilpner> hyper_ch - No, I have no interest in zfs, and kexec_tarball and VMs are so clumsy :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master ae04052 Vladimír Čunát: linux-*: build with gcc7, but allow overriding it...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vAqL7
<NixOS_GitHub> nixpkgs/master 169216f Vladimír Čunát: linuxPackages: build by kernel's stdenv
<hyper_ch> tilpner: what do you mean by you have no interested in zfs? -- does not compute
pie_ has quit [Ping timeout: 248 seconds]
blym has quit [Read error: Connection reset by peer]
<tilpner> hyper_ch - * I don't want my food to burn while I'm distracted by how amazing zfs is?
<hyper_ch> lol
<MichaelRaskin> I don't like rampant layering violations?
<hyper_ch> but zfs allows you to rollback your burnt food to unburnt state ;)
<genesis> MichaelRaskin "${enable_feature "USE_SYSTEM_LIB_EXPAT"}" perhaps ? i still get cannot coerce a set to a string ...
chreekat has joined #nixos
<MichaelRaskin> Quotes around the Nix escape won't help with Nix-level errors
<MichaelRaskin> What is the current code?
<MichaelRaskin> And what is the error with --show-trace?
alex`` has joined #nixos
<genesis> ${enable_feature "USE_SYSTEM_LIB_EXPAT"}
<genesis> hum it's a pb elsewhere
<sitwon> symphorien: I installed nix-index, ran `nix-index`, then `nix-locate 'bin/gvim'` and it indeed shows 'vimHugeX' as the package I want. but `nix-env -i vimHugeX` tells me it matches no derivations
<MichaelRaskin> -iA
<sitwon> what does '-A' do?
<MichaelRaskin> Select by attribute path (variable names) instead of derivation name
<sitwon> well the result is: error: attribute ‘vimHugeX’ in selection path ‘vimHugeX’ not found
<MichaelRaskin> Maybe you need to specify the channel then
<MichaelRaskin> -iA nixos.vimHugeX or something like that depending on what nix-channel --list says
<sitwon> oh, nix-channel --list is empty. does that mean I have no channels? how did `nix-env -i irssi` work?
<symphorien> do it with sudo
<symphorien> this means you are likely on nixos, so do nix-env -iA nixos.vimHugeX
stephenjudkins has joined #nixos
Arcaelyx has joined #nixos
<sitwon> it worked, thanks. I clearly need to keep studying the docs to figure out how to use nix properly
<sitwon> is there any way to make nix-index show
<sitwon> (sorry, ignore that)
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
kier has quit [Remote host closed the connection]
kier has joined #nixos
chreekat has quit [Ping timeout: 256 seconds]
chreekat has joined #nixos
yegortimoshenko has joined #nixos
orivej has joined #nixos
dan_b has joined #nixos
mkoenig has quit [Ping timeout: 248 seconds]
yegortim1 has quit [Ping timeout: 255 seconds]
ertes has quit [Ping timeout: 268 seconds]
mkoenig has joined #nixos
rihards has quit [Quit: rihards]
ertes has joined #nixos
kier has quit [Remote host closed the connection]
stephenjudkins has quit [Remote host closed the connection]
kier has joined #nixos
chreekat has quit [Ping timeout: 248 seconds]
kiloreux has quit [Remote host closed the connection]
kiloreux has joined #nixos
chreekat has joined #nixos
rogue_koder has joined #nixos
alex`` has quit [Ping timeout: 256 seconds]
vcanadi_ has joined #nixos
jv_ is now known as JayVii
mkoenig has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
vinymeuh has quit [Read error: Connection reset by peer]
sitwon has quit [Quit: leaving]
griff_ has joined #nixos
chreekat has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
chreekat has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
<srk> is it possible to build firefox with native dialogs or qt?
hiratara has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
<MichaelRaskin> srk: I expect you would eventually have to change something in the expression. Probably, a large part of the expression could still be reused.
<srk> MichaelRaskin: yeah, not sure if it's even possible but gtk dialogs are beyond repair. can't even enter path to atril cause it's ~/.nix-profile/ ...
<srk> I know the frikin path, but dialog won't let me enter it :)
<MichaelRaskin> I think pressing / sometimes starts the enter-literal-path mode
<srk> I'll try about config
<srk> ooh, thanks, will try
chreekat has quit [Quit: quitting]
<srk> MichaelRaskin: indeed, you saved my life
<MichaelRaskin> I am not saying that a Qt build will be better or worse.
<symphorien> srk: ^L will let you type any path
<symphorien> (L as in location)
periklis has joined #nixos
<srk> gtk dialogs got progressively worse imo :) but if this works I don't really mind
jsgrant has quit [Remote host closed the connection]
<srk> while I was using Fedora I wanted to start some dialog unification effort, so you could have unified dialogs in your system according to your choice
<srk> not that easy though, would require some abstraction layer
ndrei has joined #nixos
ndrei has quit [Client Quit]
yann-kaelig has quit []
phaebz has quit [Remote host closed the connection]
phaebz has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
alex`` has joined #nixos
<wavewave> FRidh: found you hit this issue before. https://github.com/NixOS/nixpkgs/issues/15480 this is quite discussed topic.
periklis has quit [Ping timeout: 260 seconds]
<nahamu> Is there a way to do something like overlay, but for nixos modules rather than just nixpkgs?
pie_ has joined #nixos
<nahamu> I have code that I currently keep under nixos/modules/services that is so specific that I think it belongs out-of-tree too.
phaebz has quit [Ping timeout: 264 seconds]
<FRidh> wavewave: yes, correct. At the time some of us (including myself) investigated using generated data. These efforts were using IFD with fetchurl/fetchgit, which means building is done by the evaluator. The solution for that is fetchTarball. Nix stable however does not support any hash which is why it wasn't really of use much, but Nix 2.0 does. I've been using that one for a while, but was under the impression Hydra could handle it.
dan_b has quit [Ping timeout: 248 seconds]
dan_b has joined #nixos
<wavewave> FRidh: so if I upgrade nix to 2.0, can hydra handle IFD with fetchTarball?
pie__ has joined #nixos
pie_ has quit [Read error: Connection reset by peer]
<Lisanna_> why does makeLibraryPath only append /lib to the paths? Shouldn't it also be appending /lib64?
<FRidh> wavewave: you tested that when I gave you the links, did you not?
<wavewave> FRidh: I did it and it didn't work.
<FRidh> Lisanna_: in nixpkgs we move the contents of lib64 to lib
<FRidh> wavewave: exactly, due to restricted-eval. Maybe you can extend NIX_PATH to include /nix/store.
<FRidh> that is, NIX_PATH of Hydra
<FRidh> although it may be insecure, I don't know
<wavewave> FRidh: yeah. that's a little too much. maybe I need to restructure my nix expressions much.
<wavewave> FRidh: at this moment, nix expression generation itself is not very important to me, so it's doable, i guess.
<MichaelRaskin> I think /nix/store in NIX_PATH would be a self-DoS
dan_b has quit [Ping timeout: 264 seconds]
<wavewave> quite interesting discussion though. looks like having a sensible support for IFD is a big step towards convenience. convenience vs correctness.
pie___ has joined #nixos
<wavewave> is there any way to enforce restricted mode for local nix-build?
<wavewave> testing with hydra is cumbersome. :-P
<nahamu> is there a way to pass a list of additional modules to https://github.com/nix-community/aarch64-build-box/blob/master/configuration.nix#L6
<nahamu> gchristensen might have an idea if around...
flox has joined #nixos
mkoenig has quit [Ping timeout: 240 seconds]
<flox> quick question: can I use nextcloud as a package for the owncloud service ?
<wavewave> okay. there is a nix-configuration option restricted-eval
pie__ has quit [Ping timeout: 264 seconds]
mkoenig has joined #nixos
<gchristensen> nahamu: yeah, one moment
<nahamu> \o/
<nahamu> I tried that but it didn't seem to work. Maybe I did it wrong.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 63a4cbf Olivier Bourdoux: postman: init at 5.5.2
<NixOS_GitHub> [nixpkgs] andir pushed 2 new commits to master: https://git.io/vAqsL
<NixOS_GitHub> nixpkgs/master 7fad460 Andreas Rammhold: Merge pull request #34681 from xurei/master...
NixOS_GitHub has left #nixos [#nixos]
azertyieio has quit [Ping timeout: 276 seconds]
<gchristensen> nahamu: so each value in that list in a "module"
<nahamu> let me push my current working tree and get you my error message.
<gchristensen> cool
<gchristensen> I only have a few minutes, but let's see what we can do :)
<nahamu> some of those modules depend on stuff sitting in the modules/services directory, but don't get pulled it.
zzamboni has quit [Quit: Leaving.]
TonyTheLion has quit [Ping timeout: 260 seconds]
<nahamu> I tried adding all of those service modules to the modules list, but they seem to expect to be processed differently than that.
<gchristensen> in what way do they depend on it? they probably need to be explicitly listed
<gchristensen> also https://github.com/cerana/cerana/blob/nix-expressions/nix/release.nix#L5-L6 I find `with` syntax to generally confuse things, but that is probably not the issue here :)
<nahamu> what's the better syntax for that?
<gchristensen> like just lib = import "${pkgs.path}/lib"; for example, so then you have to call lib.foo instead of just foo
zzamboni has joined #nixos
<gchristensen> anyway, gotta go :) I'll take a look at the error when I get back in a few hours.
<nahamu> I'll poke around some more. I feel like I'm getting closer. Thanks for your time.
vidbina has joined #nixos
<nahamu> oh man, definite bugs in my code totally unrelated.
jedai has joined #nixos
zzamboni has quit [Quit: Leaving.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #34856: aspellWithDicts: don't --set ASPELL_CONFIG but use --add-flags (master...aspellwithdicts) https://git.io/vAqGu
NixOS_GitHub has left #nixos [#nixos]
griff_ has quit [Quit: griff_]
ma27 has joined #nixos
<wavewave> I learned that "${somevar}/dir" is different from somevar + "/dir"
<wavewave> in restricted evaluation mode.
<wavewave> subtle. :-P
<FRidh> somevar is a store path?
ryantrinkle has joined #nixos
<wavewave> FRidh: yes, ultimately.
<wavewave> src = fficxxSrc + "/fficxx" is okay, but src = "${fficxxSrc}/fficxx" was not.
<wavewave> because ${..} is evaluation, i think.
kiloreux has quit [Remote host closed the connection]
<wavewave> lazy evaluation thing. quoted string is deeply strict.
zzamboni has joined #nixos
<wavewave> so in restricted eval mode, we have to be careful for two things. (1) do not import nix expression in downloaded source (2) do not use ${..} of downloaded source in string interpolation.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] va1entin opened pull request #34858: pythonPackages.pynacl: ignore timeout in tests (master...pynacl) https://git.io/vAqZt
NixOS_GitHub has left #nixos [#nixos]
bluemonk12 has joined #nixos
<infinisil> Nix post made it to /r/programming's frontpage
i-am-the-slime has quit [Ping timeout: 240 seconds]
zzamboni has quit [Quit: Leaving.]
<infinisil> I feel like it's really hard to convince people of nix' benefits
aborsu has joined #nixos
<infinisil> But that's probably normal in programming communities, everybody having incredible resistance against anything they don't know
<pie___> infinisil, im just speculating but maybe its because it takes a lot of effort to get to a usable level of knowledge?
<infinisil> pie___: yeah that must be part of it too
<infinisil> and the sparse docs don't really help with that
<Lisanna_> hey, does anyone have a Nix-equivalent implementation of C's strstr?
<MichaelRaskin> And then we will always have nix-env for people trying to translate the old habits, while actually using it will become worse and worse idea compared to other tools…
<MichaelRaskin> (such a division doesn't help documenting, but it's unclear what to do with it)
<Lisanna_> i.e. find and return the index of the first instance of a substring of a string
<infinisil> Lisanna_: probably you could use builtins.match for that
<Lisanna_> oh... another undocumented builtin :/
<Lisanna_> thanks for the reference
i-am-the-slime has joined #nixos
vcunat has quit [Quit: Leaving.]
<Lisanna_> ...err, it sounds like that's going away?
<infinisil> Lisanna_: It does? I don't think so
chrisbarrett has joined #nixos
<Lisanna_> that issue seems to imply that it is
<infinisil> Lisanna_: um, it just says that the implementation changed and regexes might need to change
<genesis> each time i try to fetch from sourceforge, i doesn't get the right file, one all my derivation, oki sf ... but have you some tips ?
<MichaelRaskin> Well, it will be _regex_ match, not strstr
<infinisil> genesis: look at examples in nixpkgs
<Lisanna_> infinisil oh, you're right
<Lisanna_> OK, for some reason it's in the builtins.xml, but not in the HTML manual
<infinisil> MichaelRaskin: Lisanna_: I'd think something like this should work: "^(.*)substring.*" and then count the length of the result to get the index
<MichaelRaskin> Nope
<genesis> infinisil : it's not a pb of URI, it's a pb of SF ...
<infinisil> No?
<MichaelRaskin> if substring has a [ …
<infinisil> MichaelRaskin: yeah, it's not perfect, but would be the simplest partial solution
<MichaelRaskin> Well, is index actually needed?
<MichaelRaskin> Because there is builtins.substring
<Lisanna_> MichaelRaskin builtins.substring doesn't do any searching, it just chops up a string for you
<Lisanna_> you have to provide the index
<Lisanna_> I already have an implementation of hasSubstring which does the searching, I'll probably just modify it to return an index rather than true/false
<MichaelRaskin> Ah, the other way round
<infinisil> Lisanna_: haha, well then, it should be rather simple to modify that
i-am-the-slime has quit [Ping timeout: 256 seconds]
<ottidmes> I always thought that if you have 2 ethernet ports, 2 ethernet controllers, and even 2 different drivers, that you would see 2 different mac addresses for each device, but I just ran into the problem where I get the same mac address for the 2 different ports when physically switching the cable from one port to the other, in both cases I have network connection. That goes against the assumptions I had about mac
<ottidmes> addresses
<TimePath> You can always spoof it
<ottidmes> But spoofing it by accident?
<MichaelRaskin> Well, what is the device? A compact router?
i-am-the-slime has joined #nixos
<MichaelRaskin> Then it has its MAC-carrying card behind a built-in switch (which doesn't have or change MACs)
<ottidmes> Just a desktop that is being used as server with a motherboard that has 2 connections
<MichaelRaskin> Given they are not going to be in the same network, why not put the same MAC there…
<MichaelRaskin> Actually, there are also devices that change their MAC on every reboot.
Turion has joined #nixos
<ottidmes> It actually will be in the same network, a local server, but yeah, there has to be some logic to it somewhere along the line, I am just not following it
<MichaelRaskin> Having a registered MAC vendor prefix costs money
<MichaelRaskin> If two MACs on your devices are never going to collide, why make them different.
nh2 has joined #nixos
<Lisanna_> infinisil yep! it was pretty straightforward, got it working :)
i-am-the-slime has quit [Ping timeout: 256 seconds]
<ottidmes> MichaelRaskin: I have one configuration that works, so that indeed is my fallback, but I really like to know what is going on
<Lisanna_> (now if only I could upstream it without doing reams of paperwork x_x)
aborsu has quit [Remote host closed the connection]
<dhess> ottidmes: is this an Intel chipset?
<MichaelRaskin> In an actual Linux server you can just set the MAC addresses
<ottidmes> dhess: 1 Intel I211 ethernet controller and 1 Qualcomm Atheros ethernet controller
<dhess> ottidmes: well that is odd. I wondered if it could be the Intel ME doing its thing, but that's unlikely if one of the controllers is an Atheros
<infinisil> Lisanna_: I'd do a PR for you if you can share the function
<Lisanna_> infinisil no, not that kind of paperwork :p
<infinisil> Lisanna_: what kind of paperwork?
<Lisanna_> work paperwork
<Lisanna_> all this Nix stuff I do is for work
<infinisil> ahh
<Lisanna_> so, I'd need to get approval before I upstream anything that could even possibly be considered IP
<Lisanna_> or copyrightable code
<infinisil> ugh
<Lisanna_> yeah, it sucks
<ottidmes> dhess: MichaelRaskin: Thanks for thinking along, I will just experiment some more and otherwise stick with what worked.
<infinisil> Lisanna_: but it would be nice if you could make a PR to add such a function to nixpkgs, I've actually wanted such a function before
<Lisanna_> infinisil sure. I've got a bunch of Nix code I want to upstream, and if I can ever get time to get the approvals needed then maybe I'll get to be the one that closes them :)
Piece_Maker[m] has joined #nixos
betaboon has joined #nixos
chisui has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
<infinisil> Connecting the dots Lisanna_ from IRC and ledettwy from GitHub
<Lisanna_> yeah
chisui_ has quit [Ping timeout: 260 seconds]
pallav has joined #nixos
arjen-jonathan has quit [Ping timeout: 248 seconds]
<infinisil> There's a PR that would allow nixpkgs/lib/maintainers.nix be more structured with IRC and github usernames
<gchristensen> oh, cool
<gchristensen> I didn't connect Lisanna_ to ledettwy :)
betaboon has quit [Ping timeout: 240 seconds]
<Lisanna_> well, I wasn't exactly hiding :p
<infinisil> Lisanna_: wait are you swiss? Your last name sounds very much swiss
zzamboni has joined #nixos
<Lisanna_> infinisil pretty sure the last name comes from my German heritage
<infinisil> Ah
JosW has quit [Quit: Konversation terminated!]
ma27 has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to openssl-1.1: https://git.io/vAqWe
<NixOS_GitHub> nixpkgs/openssl-1.1 63c5c8a Vladimír Čunát: nodejs*: use older openssl...
NixOS_GitHub has left #nixos [#nixos]
betaboon has joined #nixos
zzamboni has quit [Client Quit]
rauno has joined #nixos
Turion has left #nixos [#nixos]
<nahamu> I'm getting closer.
rauno has quit [Ping timeout: 268 seconds]
winem_ has joined #nixos
endformationage has quit [Ping timeout: 256 seconds]
<nahamu> One odd thing is that even though my top-level release.nix file can find my overlay packages, modules in that module list can't find them.
Piece_Maker[m] has left #nixos ["User left"]
i-am-the-slime has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
ssmike has quit [Ping timeout: 255 seconds]
dan_b has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
rauno has joined #nixos
<gchristensen> may I see your code?
<nahamu> ttps://github.com/cerana/cerana/blob/nix-expressions/nix/nixos/modules/profiles/ceranaos.nix
<nahamu> if I uncomment line 23 in that second file it will break.
Mateon1 has quit [Quit: Mateon1]
<gchristensen> where is your overlay defined?
<nahamu> oh, I may have been mistaken... let me try something
pallav has quit [Quit: Page closed]
<genesis> Qt's Meta Object Compiler (moc) wasn't found! , 10 times again, if you have an idea what to add to buildinput , i tried a lot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat opened pull request #34860: nodejs: 6.12.2 -> 6.12.3 (maintenance) (master...p/nodejs-6_x) https://git.io/vAqlg
NixOS_GitHub has left #nixos [#nixos]
<nahamu> the overlay is the default.nix and the associated stuff.
Mateon1 has joined #nixos
hiratara has quit [Ping timeout: 276 seconds]
<pie___> so how secure is nix anyway, could an exploit in the evaluator lead to privesc?
<gchristensen> nahamu: where is that?
MP2E has joined #nixos
<gchristensen> and whereis thath overlay being loaded in to the nixpkgs being used for the build?
<nahamu> same tree
<nahamu> there's an install script next to the default.nix file
<gchristensen> oh I seee
<nahamu> something just broke my brain though.
hiratara has joined #nixos
<nahamu> I changed my release.nix to build a rec with two things in it.
<MichaelRaskin> pie___: evaluation is client-side
<gchristensen> nahamu: https://github.com/cerana/cerana/blob/nix-expressions/nix/release.nix#L24 you might add this to the modules list, to make the overlay loading explicit { nixpkgs.overlays = [ (import ./default.nix) ]; }
<pie___> MichaelRaskin, makes sense
<nahamu> if I just try to build the whole thing it complains that it can't find the cerana-scripts thing, but if I explicitly choose the target, it can build.
troydm has quit [Ping timeout: 268 seconds]
<nahamu> gchristensen: loading the overlay explicitly is probably a very good idea.
<pie___> MichaelRaskin, what creates the actual things in the store?
<nahamu> does that go up in the top before importing nixpkgs?
<genesis> gr
<MichaelRaskin> Although it still needs to talk with daemon for almost everything
<gchristensen> nahamu: I _think_ you can put it in modules = [ ... ] list
<genesis> gchristensen : i can't add it to buildInputs anyway i spend 2 days on that, not easy i 've to wait hour to gat the error.
<MichaelRaskin> Well, a client program makes requests to the daemon over a socket using a rather limited protocol
Mateon1 has quit [Quit: Mateon1]
<MichaelRaskin> But still, it is implemented in C++ and I think it hasn't been fuzzed extensively
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
dhess has quit [Quit: ZNC - http://znc.in]
dhess has joined #nixos
sepp_ has joined #nixos
<gchristensen> I looked at doing some fuzzing, but I don't really have the skills / know-how for it
Acou_Bass has joined #nixos
<gchristensen> I can provide hardware for it to run on, if someone wants to do it :)
<simpson> I know how to do some of it, but really what I should do is come up with an afl helper for nixpkgs.
<gchristensen> neat
troydm has joined #nixos
<gchristensen> it seems to be a bit of an art form, doing a successful fuzzing
<simpson> You do need to generate some test cases, but once afl's up and running, it's automated: https://github.com/monte-language/typhon/blob/master/afl.sh
<gchristensen> would you like to set that up for nix-daemon? :P
<dhess> simpson: interesting, so it could be done in a Hydra?
<gchristensen> I've got probably too much on my plate right now
<simpson> dhess: I've tried that before, and it doesn't work well, no.
<dhess> simpson: what doesn't work?
<simpson> gchristensen: I can give people advice on how to use afl, if they want to learn, but I'm not interested in learning about nix-daemon today.
<gchristensen> ok, maybe someone else here would take you up on the offer to learn
<simpson> dhess: afl could run for a short time or a long time, and it's all about how long you're willing to wait.
* pie___ having raised the question, is also preoccupied
<pie___> quick question, how do I pass $HOME literally so nix doesnt evaluate it to homeless-shelter
<simpson> There are other fuzzers, like zzuf, that are better-suited to fuzzing things like format parsers. That might be more interesting for the Nix expression parser, for example.
<LnL> usually you'd do something like HOME=$NIX_BUILD_TOP
<dhess> simpson: I'm picturing it as another job that runs on a schedule, and just runs for as long as it needs. Like a background task
<dhess> It would not be a gating issue
<simpson> dhess: I think that Google does this for some stuff. They have the spare compute for it, though.
<dhess> ok, thanks
<simpson> IME afl will find a *lot* of low-hanging fruit very quickly, but after the first few rounds of hardening it might take days to find anything else.
<gchristensen> ^ this is why I have hardware to offer
Mateon1 has joined #nixos
<gchristensen> dhess: iirc afl will run forever if you let it
<pie___> LnL, i mean for this: defaultConfigPath = "$HOME/.bonzomatic.json"; , which gets substituted into a script thats supposed to run at user time
<simpson> I bet that it *can* halt, but it's basically a super-fine abstract interpreter, so it's gonna explore an insanely-large state space.
<dhess> gchristensen: Even if it doesn't have a time limit feature, it could easily be wrapped in a script that does.
<MichaelRaskin> Imagine Borg AFL-ing an evolving subset of Nixpkgs on idle builders (subject to config-based scheduling limitations)
<LnL> pie___: huh, it tries to resolve that at build time?
<genesis> gchristensen https://github.com/bignaux/nixpkgs/blob/AppImageKit/pkgs/games/sdlmame/default.nix i don't know what to do about this moc failure , if someone would have a look.
chrisbarrett has quit [Ping timeout: 268 seconds]
griff_ has joined #nixos
<gchristensen> MichaelRaskin: that'd be cool :D
<gchristensen> MichaelRaskin: or AFLing nix ... :)
<pie___> LnL, either that or its the damn hashes not changing again
<MichaelRaskin> nix-daemon is definitely packaged in Nixpkgs
<MichaelRaskin> But after some time it might stop being the best target
<pie___> LnL, i think it is evaluationg it
* simpson rereading docs at http://lcamtuf.coredump.cx/afl/
<pie___> LnL, weird...doesnt resolve it in nix repl
<dhess> that looks so cool. I'm gonna install it and play :)
<simpson> So, with folks active, I have a question: What's the state of cross-compiling when a user-mode VM is needed? I have a package which wants to run code on the target CPU for feature detection, and a user with a Raspberry Pi.
<dhess> oh no, afl in nixpkgs doesn't support macOS? :(
<simpson> "The tool is confirmed to work on x86 Linux, OpenBSD, FreeBSD, and NetBSD, both 32- and 64-bit. It should also work on MacOS X and Solaris, although with some constraints."
<simpson> So maybe it's just a matter of hacking the Nix expression?
<LnL> pie___: hmm, why is that wrapper neccecary in the first place?
<dhess> yeah I'm taking a look righ tnow
chrisbarrett has joined #nixos
<dhess> it's because of thet qemu stuff it appears
<dhess> well I don't have time to deal with that at the moment, it'll have to wait.
<pie___> LnL, bonzomatic uses hardcoded paths find fonts, if it cant it doesnt start. it can take a config path as its first argument (otherwise it looks in the current dir, and thats it)
<pie___> so its not absolutely necessary but i thought it could be nice?
<elvishjerricco> So is it possible to have the compression of nar files not take place on the hydra? Like that should happen on the build machines, since it takes quite a bit of CPU
<pie___> you can just make your own config and run Bonzomatic config.json every time
simukis has quit [Ping timeout: 255 seconds]
<gchristensen> elvishjerricco: it is not possible, no
<elvishjerricco> :/
<LnL> pie___: what does the wrapper look like? maybe there's too much quoting going on or something
<dhess> here is a script that Neil Mitchell is (was?) using with AFL on Travis-CI to fuzz one of his Haskell libraries. https://github.com/ndmitchell/hexml/blob/master/afl.sh
<dhess> so that could probably be adpated to something Hydra-friendly
<pie___> LnL, do you think im trying to do to much or does doing this make sense?
<dhess> looks like it runs it for 5m
chisui has quit [Ping timeout: 260 seconds]
raynold has joined #nixos
<gchristensen> dhess: I'm not real sure you'd get much value out of AFL for 5 minutes beyond the good feeling of being able to say you use AFL in your CI
<simpson> gchristensen: Your words resemble my feelings.
<dhess> gchristensen: how about 24h? You could run it as long as you like, that was my point
<gchristensen> yeah, my understanding is its important to hone your sample cases over time and run it for days, watching and tweaking the inputs
<gchristensen> not as a set-and-forget checker
<dhess> ok I'll keep that in mind
<gchristensen> but, if you set up AFL for nix-daemon, I'm right behind you :)
<MichaelRaskin> 5 minutes of AFL in CI sounds like testing the AFL harness, though
boegel has quit [Remote host closed the connection]
betaboon has quit [Ping timeout: 240 seconds]
<pie___> LnL, ok ill paste it in a sec
<erictapen> good evening everyone, I'm currently working on a Mastodon service for Nixpkgs. I do have a working shell for the service, by executing nix-shell -p mastodon.env --pure. Can somebody tell me how to archieve the same shell for a systemd service?
vidbina has quit [Ping timeout: 248 seconds]
<dhess> hmm I can't get afl to build on NixOS with nixpkgs master. Anybody else?
<dhess> erictapen: wow cool, I will definitely use that once you've got it working
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vAqBI
<NixOS_GitHub> nixpkgs/master 74736f2 Franz Pletz: bird2: init at 2.0.1
NixOS_GitHub has left #nixos [#nixos]
<erictapen> dhess: Yeah I'm also excited about it already ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #34861: lib/systems: musl "ABI"s, examples (staging...feature/musl-lib) https://git.io/vAqB3
NixOS_GitHub has left #nixos [#nixos]
<dhess> I've been wanting to set up my own Mastadon instance for like a year. I just hope it's not overrun by Nazis by the time I get there.
<MichaelRaskin> I think Mastodon is actually doing well in partial segmentation.
<gchristensen> indeed...
hiratara has quit [Quit: ZNC - http://znc.in]
<erictapen> dhess: As far as I can tell, it's not. My instance has quite liberal policies and I almost never see nazi content.
<MichaelRaskin> In that a server can handle direct requests for federated information without fetching it for global hashtag feeds and search
<gchristensen> erictapen: a nice improvement over Twitter
<MichaelRaskin> Which means that a lot of flamewars can get localised to a subset of servers without breaking all the three-hop chains between sides
<dhess> Is there a developer-oriented federation?
<erictapen> gchristensen: definitely!
hiratara has joined #nixos
Yatekii has joined #nixos
<Yatekii> hi
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vAqB4
<NixOS_GitHub> nixpkgs/master 54c7ca3 Franz Pletz: nixos/testing: use the same qemu in the test driver...
NixOS_GitHub has left #nixos [#nixos]
<joepie91> it's vaguely interesting to me how people's primary concern about federation seems to have shifted from "interoperability issues" to "nazis"
<MichaelRaskin> Shorter brands are easier to advertise
<joepie91> (this is not the first time I hear this concern :P)
<gchristensen> the more interop issues with nazis the better
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz created systemd-237 (+1 new commit): https://git.io/vAqB0
<NixOS_GitHub> nixpkgs/systemd-237 5560f59 Florian Klink: systemd: 234 -> 237...
NixOS_GitHub has left #nixos [#nixos]
<dhess> hehehe
<MichaelRaskin> gchristensen: not really.
<gchristensen> oh
<MichaelRaskin> You want a more complicated layout
<MichaelRaskin> If any two sides succeed in burning all medium-length links, the chances of direct confrontation rise…
<dhess> can someone do a quick "nix-shell -p afl" and let me know if it works for them?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/systemd-237 699b04c Franz Pletz: systemd: 234 -> 237...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] fpletz force-pushed systemd-237 from 5560f59 to 699b04c: https://git.io/vAqBw
<MichaelRaskin> dhess: How can I say if it will be quick beforehand?
<gchristensen> dhess: wfm, system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.16, channels(root): "nixos-17.09.2955.76614894f34", channels(grahamc): "fizzbuzz-17.03.1775.56da88a298", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
boegel has joined #nixos
<MichaelRaskin> gchristensen: that's not on master though
<gchristensen> dhess didn't say master =)
<MichaelRaskin>  /nix/store/gll8mz20y6550wj7jmiqgswlyc1zr63p-gcc-6.4.0/include/c++/6.4.0: file not recognized: Is a directory
<MichaelRaskin> gchristensen: but I knew from prior context
<gchristensen> ah
<dhess> MichaelRaskin: yes I am getting the same. OK thanks for confirming
<dhess> gchristensen: broke somewhere between where you are and master :(
<MichaelRaskin> If I weren't tangentially involved in the recent Sage Saga, I could try mocking the idea of re-checking locally reproducible sandboxed Nix build failures.
<dhess> that's a really strange error for afl seeing as it's supposed to be using clang
<pbogdan> dhess: fwiw there is an attempt to fix it at https://github.com/NixOS/nixpkgs/pull/34802
<dhess> pbogdan: oh thanks! I only looked in issues, not PRs
<pie___> LnL, here it is https://bpaste.net/show/65a0ed5fcdd0
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 260 seconds]
<Yatekii> hmm nixos looks actually great
<Yatekii> but how easy is it to write packages?
<MichaelRaskin> It depends on the package in question.
<pie___> difficulty varies xD
<Yatekii> yeah ofc. it's depenedant on the package but for example on gentoo you can really easily write an ebuild.
<MichaelRaskin> LibreOffice is painful. GNU Hello is trivial.
<Yatekii> it's just a simple few lines bash script
<pie___> on that note, does 1.12 have an approximate release date?
<MichaelRaskin> There is no 1.12
<gchristensen> 18.03
<MichaelRaskin> 2.0 should hopefully be in 18.03
<pie___> right
<pie___> oh thats pretty soon!
<LnL> the plan is 18.03 AFAIK :D
<MichaelRaskin> Yatekii: GNU Hello is a minimal package but it lacks nothing, and it is 24 lines, empty lines included
<LnL> pie___: so your wrapProgram call is the problem I think, use single quotes for --run otherwise home gets replaced at that point
<pie___> LnL, it escapes recursively?
<pie___> *substitutes
<Yatekii> also: from the about page I read that for example ssh can be installed with having "services.sshd.enable = true;" in the config which automatically installs openssh etc. but not every package might be that well integrated into the system. so if I want to create my own package I wanna be able to install (let's say I have an install-script that just runns without any deps), how easy is that to do? because with conventional systems you could just write an install
<Yatekii> script and then use the PM to install it.
<pie___> i do want ${defaultConfigPath} to be substituted
<LnL> echo "foo '$PWD'" won't escape PWD
<pie___> Yatekii, well in that case the thing is more that sshd is a service, so something something systemd
<Yatekii> MichaelRaskin: okay, thanks, imma try and find the source :)
<Yatekii> pie___: oh you use systemd? uhmmm :S :D
<pie___> Yatekii, yeah yeah :(
<Yatekii> that doesn't sound promising :(
<MichaelRaskin> Yatekii: there is pkgs.runCommand where you could just paste your install script directly
<pie___> i live with it
wajsel has quit [Ping timeout: 268 seconds]
<MichaelRaskin> Yatekii: NixOS is actually relatively good in shielding you from telling systemd something
<pie___> still makes you feel dirty though whenever it comes to mind ;)
<pie___> aaanyway
<MichaelRaskin> Yatekii: but systemd is impossible to contain fully, so I just write my own boot scripts and manage them using Nix
<MichaelRaskin> Also, there is SLNOS
<pie___> LnL, like this?: $ echo "foo '$PWD'"
<pie___> foo '/mnt/data/gscan'
<MichaelRaskin> (a fork with init system choice among goals)
<LnL> yeah you want echo 'foo '\''$PWD'\''' or something similar
<pie___> MichaelRaskin, sadly did anything ever actually show up?
<MichaelRaskin> Yatekii: also, you can easily start using Nix on Gentoo.
<pie___> from slnos
<MichaelRaskin> pie___: there is a repo, there are some actual changes there.
<pie___> ohhh, where?
<MichaelRaskin> It is a fork. On GitHub. oxij participates in it
<Yatekii> MichaelRaskin: not sure how well that goes ^^
* pie___ pokes around
<Yatekii> what i don't like about systemd is that i really don't see everything in raw ...
<MichaelRaskin> Yatekii: init systems are overrated.
<MichaelRaskin> Writing your bootscripts is fine.
<Yatekii> there is even special commands for accessing logs ... i want /var/log
<pie___> MichaelRaskin, ah thanks
<MichaelRaskin> Have I mentioned you can ask NixOS generate a script that launches the service which can be used without anything and just executed &> /var/log/service-name.log ?
<MichaelRaskin> (I.e. write a simple expression that takes some configuration, imports NixOS, invokes some of its machinery and produces a script you can Just Run)
<Yatekii> hmm that seems nice but wont be the case for $package not made by me, right
<MichaelRaskin> What do you mean?
<MichaelRaskin> I am currently not running systemd; I do run X.org with config generated using stock NixOS.
<Yatekii> well any package in the public packages will still use systemd, no matter what I do
<Yatekii> hmm ok
<MichaelRaskin> Do you want to avoid systemd on-HDD??
<pie___> MichaelRaskin, huh that sounds interesting
<MichaelRaskin> I mean, it's Nix
<MichaelRaskin> Expect to waste storage space whenever… just whenever.
<elvishjerricco> gchristensen: How hard do you think it would be to change Hydra to run compression on builders?
betaboon has joined #nixos
<gchristensen> I have no idea :(
<Yatekii> hmm?
<gchristensen> but I'd guess "hardish"
<MichaelRaskin> Mental energy is expensive, hard drives are cheap.
<MichaelRaskin> That's the basic Nix idea
betaboon has quit [Client Quit]
<Yatekii> yeah
<Yatekii> so is nixos actually just the PM with some base linux to start with?
<MichaelRaskin> Yes, you will have systemd in dependencies if you use Nixpkgs. But, Nixpkgs is usable with Nix-on-Gentoo, so systemd will just be dead code if you don't run systemd.
<Yatekii> do i understand that right?
<MichaelRaskin> Oh well.
<Yatekii> ^^
<MichaelRaskin> It is a PM with its DSL which is actually a full programming language
<elvishjerricco> gchristensen: Do you know who might know? :P
<MichaelRaskin> (Nix)
<Yatekii> yep
zzamboni has quit [Quit: Leaving.]
<Yatekii> hmm
<MichaelRaskin> Then there is Nixpkgs which is a collection of packages that can be used with Nix-on-random-Linux, and sometimes with Nix-on-FreeBSD/Nix-on-macOS
troydm has quit [Ping timeout: 255 seconds]
<Yatekii> ohh kk
<MichaelRaskin> Then there is NixOS. Which is a large and complicated piece of code to generate various system-wide files
<MichaelRaskin> It currently happens to use systemd
<pie___> LnL, i thought about/poked at it somme more and ow i see it.
<pie___> LnL, thaks
<Yatekii> well i am recieving my new laptop tomorrow (first non mac ever) and i have to decide on the os ^^ used gentoo in the past but it means heavy duty too :P
troydm has joined #nixos
<Yatekii> hm kk
<MichaelRaskin> Well, you could install a lightweight Gentoo system, then install Nix on it, then learn using Nix and Nixpkgs.
<Yatekii> yeah that could work
<Yatekii> but i think portage is very integrated with gentoo, guess i will still need to use it hmm
<Yatekii> so i might as well just use nixos
<MichaelRaskin> For the base system
<MichaelRaskin> Most PMs are fine as long as you don't install too much
<pie___> people are quite friendly here s othere should be no trouble with getting help when people are around ^^, however this might be helpful https://nixos.wiki/wiki/Resources
<Yatekii> yea
<Yatekii> yeah :) thanks a lot folks!
<MichaelRaskin> Then the risky/heavy/conflict-prone stuff you can install via Nix
<MichaelRaskin> Then you learn Nix and can evaluate NixOS or its forks or the idea of generating your own bootscripts.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hamishmack opened pull request #34862: rust: fix disabling of fragile test (master...patch-2) https://git.io/vAqR5
NixOS_GitHub has left #nixos [#nixos]
griff_ has quit [Quit: griff_]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<nahamu> gchristensen: if you have time, I've force-pushed that branch.
<pie___> so, when can cmake be replaced with nix? ;P
<nahamu> it now explicitly pulls in the overlay so no need to install it, and it will demonstrate the error about the overlay not being seen deeper in.
<MichaelRaskin> Depends on how complicated your project is
<MichaelRaskin> For simple cases, yesterday.
<nahamu> the commit message explains which line it's currently breaking on.
<MichaelRaskin> Also, CMake is largely about discovering dependencies on your system — Nix is not going to try that
i-am-the-slime has quit [Ping timeout: 256 seconds]
vidbina has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ElvishJerricco opened pull request #34863: Use static cabal2nix in callCabal2nix (master...callCabal2nix-use-static-cabal2nix) https://git.io/vAq0A
NixOS_GitHub has left #nixos [#nixos]
Mateon1 has joined #nixos
i-am-the-slime has joined #nixos
stephenjudkins has joined #nixos
xcmw has joined #nixos
bluemonk12 has quit [Ping timeout: 240 seconds]
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon1 has joined #nixos
winem_ has quit [Ping timeout: 255 seconds]
freeman42x[NixOS has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ciderale opened pull request #34864: graph-tool: 2.16 -> 2.26 (master...py3k-graph-tool-update) https://git.io/vAqEP
NixOS_GitHub has left #nixos [#nixos]
i-am-the-slime has quit [Ping timeout: 256 seconds]
kp__ has quit [Quit: WeeChat 2.0.1]