<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>
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>
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
<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 ;)
<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
<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.
<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
<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?
<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?
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
<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
<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?
<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?
<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.
<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
<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
<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
<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.
<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 :)
<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
<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>
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
<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?
<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>
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"`
<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>
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 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
<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
<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?
<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
<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?
<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]
<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]
<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?
<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_: 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
<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 :)
<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
<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?
<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>
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 ;)
<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
<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
<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 ^^
<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]
<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]