samueldr changed the topic of #nixos to: NixCon 2018 - 25-27 Oct In London https://nixcon2018.org/ || NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<samueldr> drakonis1: semi-standstill, the proposal is more about a tooling and organization than about a process as to "what is a backport"
<samueldr> what's currently blocking it is the tooling, which I would have to write
<samueldr> (or at least design)
justanotheruser has quit [Ping timeout: 272 seconds]
<dhess> judson: I said I didn't use dummy devices with containers, just that I used them all the time for "virtual services."
<dhess> <dhess> not for docker, but for any "virtual service" that's running on the
<dhess> host
<dhess>
hke has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @samueldr merged pull request #48636 → Update Monero for upcoming hard fork (backports #48301) → https://git.io/fx218
<{^_^}> [nixpkgs] @samueldr pushed 8 commits to release-18.09: https://git.io/fxoCb
dbmikus__ has quit [Ping timeout: 276 seconds]
drakonis has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @samueldr merged pull request #48692 → Backports misc. fixes for the new ofborg eval time checks → https://git.io/fxwz5
<{^_^}> [nixpkgs] @samueldr pushed 3 commits to release-18.09: https://git.io/fxoWf
<{^_^}> [nixpkgs] @jtojnar opened pull request #48726 → Weblate → https://git.io/fxoWm
drakonis has joined #nixos
hamishmack has joined #nixos
<drakonis1> what are the thoughts on a proposal regarding being able to declaratively set the default for a package with multiple variants
<drakonis1> python has a variations tree, python 2, 2.7, 3, 3.4, 3.5, 3.6, 3.7
mekeor has quit [Quit: where ever you going, i'm going the same. jk. i go to bed.]
<drakonis1> being able to declare which set is the default when dealing with python without invoking a specific set
seang961 has joined #nixos
astronavt has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis1> in the absence of a declared default, it defaults to nixpkgs
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr> "the thoughts" no thoughts AFAIK if there is no proposal yet
<drakonis1> i'm writing one~
<drakonis1> at least
<drakonis1> getting my thoughts together for it
<samueldr> I guess it'll all depends on what problems this solves :)
bsima has joined #nixos
chreekat has quit [Quit: quitting]
<infinisil> drakonis1: Can't I just set the default with an overlay?
<drakonis1> now, i've thought about that
<samueldr> bsima: I would guess it's an attrset of the parameters for `fetchGit` which match to a specific nixpkgs revision (given the comment right before)
<{^_^}> [nixpkgs] @ttuegel merged pull request #48724 → libdbusmenu-qt: 0.9.3+14 -> 0.9.3+16 → https://git.io/fxofa
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fxolf
<samueldr> bsima: it probably is functionally equivalent to `pkgs = import <nixpkgs> { };`
<samueldr> (I would be highly surprised if it was anything else)
<bsima> samueldr: yeah, where would I find a definition of the parameters for `fetchGit`?
<samueldr> bsima: the anchor link isn't deep enough, under that section you should find `builtins.fetchGit` https://nixos.org/nix/manual/#ssec-builtins
<drakonis1> infinisil: that'd actually work
<bsima> ah, thank you samueldr
<samueldr> n/p
astronavt has quit [Ping timeout: 252 seconds]
seang961 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxol3
nuncanada has joined #nixos
<drakonis1> infinisil: got docs on overlays?
nuncanada has quit [Client Quit]
jperras has quit [Quit: WeeChat 2.2]
sigmundv has quit [Ping timeout: 272 seconds]
<drakonis1> ah nevermind why am i asking, its a new feature that's loved
<drakonis1> its gonna have it
goibhniu has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @spacefrogg opened pull request #48727 → factor-lang: 0.97 -> 0.98 → https://git.io/fxolA
sigmundv has joined #nixos
<{^_^}> [nixpkgs] @qolii opened pull request #48728 → nixos/eternal-terminal: init new module. → https://git.io/fxo8v
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 252 seconds]
lassulus_ is now known as lassulus
<{^_^}> [nixpkgs] @volth opened pull request #48729 → perlPackages.NetSSHPerl: init at 2.14 → https://git.io/fxo8C
rprije has quit [Ping timeout: 245 seconds]
rprije has joined #nixos
<infinisil> drakonis1: Not sure what you're talking about but good luck with that :)
tertl3 has joined #nixos
<drakonis1> its nothing, really.
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drakonis1> don't mind me
<drakonis1> got a little ranty about something that wasn't necessary in the first place
o1lo01ol1o has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
silver has quit [Read error: Connection reset by peer]
Ariakenom has quit [Quit: Leaving]
simukis has quit [Quit: simukis]
iyzsong has joined #nixos
hamishmack has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<infinisil> Well this is a bit weird:
<infinisil> > x = 10
<{^_^}> x defined
<infinisil> > x-1
<{^_^}> undefined variable 'x-1' at (string):202:1
<simpson> > x - 1
<{^_^}> 9
<simpson> It's always fun when a language has this parser quirk.
<infinisil> I mean, I can't find a reason why Nix shouldn't allow x-1 as an identifier, other than that it just looks wrong
<gchristensen> it must or it would be impossible to have only digits between -'s'
<simpson> We use it in nixpkgs, e.g. python27Packages.magic-wormhole
<samueldr> identifiers allowing "-" in them had to have a drawback somewhere
<samueldr> it's used all over the place :)
<clever> > haskellPackages.js-jquery
<{^_^}> "<derivation /nix/store/y8df4k51wi209jklmrn93vmxbap14hs3-js-jquery-3.3.1.drv>"
<clever> samueldr: have fun patching every cabal2nix output if you want to convert - to _
<samueldr> (though I must say that I prefer having dashes in identifiers, even though it means funny maths)
<samueldr> clever: no don't want to :)
<clever> > a:b
<{^_^}> "a:b"
<clever> > a: b
<{^_^}> <LAMBDA>
<clever> explain that! :D
<samueldr> "poor" url matching semantics :D
<clever> exactly, i learned that trick from domen
<samueldr> learned it while looking at making a nix parser :)
<samueldr> > a:/**/b
<{^_^}> "a:/**/b"
<clever> lol
<samueldr> > a:/* */b
<{^_^}> value is a string while an integer was expected, at (string):202:1
<clever> :D
<samueldr> > a:/* b*/c
<{^_^}> attempt to call something which is not a function but a string, at (string):202:1
Lisanna has quit [Quit: Lisanna]
<samueldr> (maybe the main scope is getting crowded)
<simpson> When we were first designing Monte's syntax, I wanted to bring over ES's XML/HTML literals and regex literals, and we ended up not doing it and requiring quasiquotation instead. This turned out to be such a good idea.
<samueldr> the "naked URLs" are imho the only wart I don't think add much
<simpson> Embedding too many DSLs into a single language's syntax without some sort of quotation marker just makes it impossible for humans to read.
<infinisil> I like how Haskell does it
<simpson> Haskell's pretty rough with the user-definable operators, just because of the way that it forces the parser to carry context forward.
<clever> infinisil: i at least want a Q monad that lacks IO
<infinisil> clever: Why would you not want IO? You can always go lower, but once you're out of IO you can't get back!
<{^_^}> [nixpkgs] @dtzWill opened pull request #48730 → snowman: 0.1.2 -> 0.1.3 → https://git.io/fxoBS
<clever> infinisil: i want to be able to run template haskell on the "wrong" platform, to make cross-compile simpler
<clever> infinisil: 90% of the time, your TH doesnt need IO
<emily> regexp literals have the unfortunate effect of encouraging people to use regexps
<clever> but because you have it, there is no safe way for the compiler to know if running it on the wrong platform will have side-effects
Supersonic has quit [Ping timeout: 260 seconds]
<infinisil> clever: I see, makes sense
<clever> a variant that lacks IO, cant have side effects, so its perfectly safe to run in different contexts, because its now pure
o1lo01ol1o has joined #nixos
<infinisil> clever: Or it could even have certain side effects, probably, via some effect system
<simpson> emily: Indeed. From the erights archives: http://erights.org/elang/grammar/quasi-overview.html "I always hated a lot of Perl code for being so hard to read. I took pride in how readable E was by comparison. That is, until I started heavily using Regular expressions. My code became a dense gobbledygook of punctuation characters that reminded several folks of APL."
<emily> APL is good though :<
<simpson> emily: By comparison, here's modern Monte lexing and parsing JSON using a combinator toolkit: https://github.com/monte-language/typhon/blob/master/mast/lib/json.mt#L25-L82 It ain't perfect, but it's certainly maintainable.
<clever> infinisil: current template haskell is capable of launching missles at compile time, do you 100% trust all code your compiling (not running, just compiling), http://hackage.haskell.org/package/acme-missiles-0.3/docs/Acme-Missiles.html
<emily> Dijkstra attacking it when it was a huge innovation in declarative programming is silly.
<emily> uh, this is super off-topic by now though I guess, sorry.
<infinisil> clever: Hehe
rprije has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #48731 → cpan2nix updates → https://git.io/fxoBF
lopsided98 has quit [Quit: Disconnected]
Supersonic has joined #nixos
<simpson> emily: /join #nixos-chat ?
iyzsong has quit [Ping timeout: 245 seconds]
oida has quit [Read error: Connection reset by peer]
phreedom has quit [Read error: Connection reset by peer]
phreedom has joined #nixos
oida has joined #nixos
lopsided98 has joined #nixos
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
phreedom has quit [Ping timeout: 256 seconds]
phreedom has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ttuegel merged pull request #46957 → WIP: plasma5: 5.13.5 -> 5.14.0 → https://git.io/fAQk9
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fxo03
<fiatjaf> I'm doing a project that uses both haskell and javascript. how can I create a derivation that includes both the haskell packages and the javascript packages I need to build my thing?
<fiatjaf> I'm currently just doing the haskell side of it, creating a derivation with haskellPackages.callPackage and so on
<{^_^}> [nixpkgs] @delroth opened pull request #48732 → nixos/prometheus: add webExternalUrl option → https://git.io/fxo0z
jasongrossman has joined #nixos
justanotheruser has joined #nixos
strobelight has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @volth closed pull request #48731 → cpan2nix updates → https://git.io/fxoBF
jedahan has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
Dedalo has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #48733 → mesa: 18.2.2 -> 18.2.3 → https://git.io/fxoEO
<{^_^}> [nixpkgs] @dtzWill opened pull request #48734 → cairo: 1.15.14 -> 1.16.0 → https://git.io/fxoEZ
<{^_^}> [nixpkgs] @dtzWill merged pull request #48730 → snowman: 0.1.2 -> 0.1.3 → https://git.io/fxoBS
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fxoEn
<{^_^}> [nixpkgs] @dtzWill opened pull request #48735 → xbps: 0.52 -> 0.53, update repo owner name (voidlinux -> void-linux) → https://git.io/fxoEc
<infinisil> How about this:
<infinisil> Split out all packages from nixpkgs, such that all that's left is the infrastructure to build them, like stdenv, buildHaskellPackage, fetchFromGitHub, etc.
<infinisil> Then all those version update commits don't go to the main one, and it would be cleaner all throughout
<infinisil> Of course there's the problem of non-monorepos with keeping stuff in sync, but still, would be cool
<drakonis1> that sounds alright, but you gotta get it through the folks that don't want breaking change first
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/35421cfdf7b (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<infinisil> Might not even require breaking changes tbh
<drakonis1> perhaps if you framed it as a "cook your own repos" change
<drakonis1> maybe it'd break workflow :V?
<drakonis1> what was the website that would let me view the current commit the cache is based on??
<drakonis1> something isn't right here, i might still be pulling from 18.09 on my root
<clever> drakonis1: nix-channel --list, as root
jasongrossman has quit [Ping timeout: 245 seconds]
<clever> drakonis1: ls -l /root/.nix-defexpr/channels/nixos
<drakonis1> lrwxrwxrwx 1 root root 82 Dec 31 1969 /root/.nix-defexpr/channels/nixos -> /nix/store/914032sqjhwn8q0nhx8inyyybnc62dyd-nixos-19.03pre155751.45a419ab5a2/nixos
<clever> yeah, thats a recent unstable
<clever> what commit is leading you to think its 18.09?
<drakonis1> hmm, actually, a better question, how do i get home-manager to update my packages?
<clever> dont use home-manager myself
<drakonis1> i have the cravings for some doom and i need to update the source port
<drakonis1> i have 3.5.1 but the cache has 3.6.0
<clever> what does `nix-build '<nixpkgs>' -A doom` output? (attr may not be right)
<drakonis1> gzdoom rather
<drakonis1> 3.5.1
<clever> and `nix-instantiate --find-file nixpkgs` ?
<drakonis1> /home/drakonis/.nix-defexpr/channels/nixpkgs as user
<drakonis1> as root /nix/var/nix/profiles/per-user/root/channels/nixos
<clever> drakonis1: then you have another older channel on your user, which should be in nix-channel --list
<drakonis1> hmm maybe i know why
<drakonis1> hold on
<drakonis1> its because i have package overrides
<drakonis1> a bunch of them
copumpkin has joined #nixos
<drakonis1> clever: ah okay i can see why this isn't working
<drakonis1> vulkan seems to be breaking
rprije has joined #nixos
<drakonis1> getting an assertion failure
<clever> check the file and line it mentions
<drakonis1> its stuck on a commit from last week
<clever> what does nix-channel --list report for your user?
<{^_^}> [nixpkgs] @fpletz opened pull request #48736 → minishift: init at 1.25.0 → https://git.io/fxouc
<drakonis1> nothing
<clever> try doing `nix-channel --update` as your user, then do `nix-instantiate --find-file nixpkgs` again
<drakonis1> still the same as before
phreedom has joined #nixos
<clever> drakonis1: realpath /home/drakonis/.nix-defexpr/channels/nixpkgs
<drakonis1> that's what it is
<drakonis1> /nix/store/wglx4g5dywlhmhc9z2f9yrr75yisnaj1-nixpkgs-19.03pre155263.20c4986c4dd/nixpkgs
<drakonis1> this is a thing that trips me, why is channel management so difficult?
<clever> drakonis1: it sounds like you previously added a channel to your user, then deleted it, and nix-channel is glitching a bit and wont let you remove it
<clever> drakonis1: what does `ls -lh /home/drakonis/.nix-defexpr/channels` report?
<drakonis1> it was previously nixpkgs there
<drakonis1> lrwxrwxrwx 1 drakonis users 48 Oct 20 01:11 /home/drakonis/.nix-defexpr/channels -> /nix/var/nix/profiles/per-user/drakonis/channels
<clever> if you `rm /nix/var/nix/profiles/per-user/drakonis/channels*` then the problem will go away, as will any ability to do rollbacks for the non-root channels
<drakonis1> hmm
<drakonis1> i have solved it by just adding a user channel again
<clever> that also works
<clever> i think the bug is that you need to --update to make it notice the removable of any channel
<clever> but --update wont run if you have zero channels to update
<drakonis1> hooray it works
<drakonis1> but its still not acquiring the fresh versions
<clever> now what does `nix-build '<nixpkgs>' -A gzdoom` and `nix-instantiate --find-file nixpkgs` report?
<drakonis1> /nix/var/nix/profiles/per-user/root/channels/nixos for my user
<drakonis1> it still yields 3.5.1 though
<drakonis1> i think this might be more of a home-manager issue though
<drakonis1> let me try something
<clever> home-manager shouldnt have any impact on nix-build
<clever> > gzdoom.meta.position
<{^_^}> "/var/lib/nixbot/state/nixpkgs/pkgs/games/gzdoom/default.nix:44"
<clever> drakonis1: for the commit you have on root, gzdoom is at version 3.5.1
<clever> drakonis1: the same is true for the latest commit of nixos-unstable!
<clever> and nixpkgs-unstable too
<drakonis1> ah wait really?
<drakonis1> i thought it was supposed to already have it
<clever> only nixos-unstable-small has 3.6.0
<drakonis1> oh :| well okay
<clever> hydra is waiting for all of nixpkgs to build before updating nixos-unstable
<drakonis1> it landed 4 days ago
<drakonis1> ah right
<drakonis1> nixpkgs is also at 4 days ago
<clever> if you switch to the nixos-unstable-small channel, you can get it early, at the cost of having to compile a few more things
<drakonis1> i'm a dunce
<drakonis1> i didn't realize that during the fervor of getting things to work
<drakonis1> but lesson learned i suppose
<emily> clever: wouldn't "more things" there include, like, large desktop software?
<drakonis1> i feel like an unruly child
<clever> emily: depends mostly on what hydra has and hasnt built
<drakonis1> could anyone clarify to me how cachix is supposed to work?
<drakonis1> see if i'm missing something
<drakonis1> its a nix binary cache service, but not one that about anyone can use like the nixpkgs cache
<clever> drakonis1: you build your packages on something like travis, using normal nix-build, and then push it to cachix, and then you (and others) can use that as a binary cache
<drakonis1> not available publicly right?
<clever> its an opt-in thing
bzLem0n has joined #nixos
<drakonis1> can't just cherry pick anything
<drakonis1> a better question, i can't "find" any of them, can i?
<clever> i dont think so
<clever> somebody that runs one has to tell you about its url and public key
{`-`}_ has joined #nixos
copumpkin has joined #nixos
<drakonis1> thanks and good night
{`-`} has quit [Remote host closed the connection]
bzLem0n has quit [Quit: Page closed]
bzLem0n has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
drakonis1 has quit [Quit: WeeChat 2.2]
worldofpeace has joined #nixos
bzLem0n has left #nixos [#nixos]
jasongrossman has joined #nixos
rprije has quit [Ping timeout: 252 seconds]
rprije has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
MP2E has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #48735 → xbps: 0.52 -> 0.53, update repo owner name (voidlinux -> void-linux) → https://git.io/fxoEc
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fxozV
drakonis has quit [Remote host closed the connection]
fragamus has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
bzLem0n has joined #nixos
<{^_^}> [nix] @noteed opened pull request #2482 → Add a --keep-successful flag to nix-build. → https://git.io/fxogk
bzLem0n has quit [Client Quit]
<{^_^}> [nixpkgs] @uri-canva opened pull request #48737 → pythonPackages.gyp: add Xcode 10 support → https://git.io/fxogL
hodapp has quit [Ping timeout: 272 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mayhewluke has quit [Ping timeout: 252 seconds]
<colemickens> Has there been consideration to changing the output truncation that the newer "nix [tool]"s do?
mayhewluke has joined #nixos
<sir_guy_carleton> nixos-rebuild isn't letting me use the unstable version of steam despite me setting allowUnfree to true
<sphalerite> colemickens: not that I know of, although I've seen other complaints about it.
sb0 has quit [Ping timeout: 276 seconds]
fragamus has joined #nixos
sb0 has joined #nixos
alex`` has joined #nixos
Izorkin has quit [Ping timeout: 268 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Izorkin has joined #nixos
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fragamus has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sir_guy_carleton has quit [Quit: WeeChat 2.2]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<dmj`> hpc shows a blank coverage report when using doCoverage
<dmj`> any idea how to get a coverage report using nix
<sphalerite> I've managed to get a nix daemon running with a chroot store as far as I can tell by running NIX_STATE_DIR=/tmp/root/state /tmp/nix/bin/nix-daemon --daemon --store /tmp/root
<sphalerite> How can I get nix to use this daemon rather than the system daemon?
Itkovian has joined #nixos
nD5Xjz has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
<sphalerite> ok I needed to pass the same NIX_STATE_DIR and NIX_REMOTE=daemon to the client process
<sphalerite> ummm actually building stuff doesn't work
<sphalerite> error: while setting up the build environment: getting attributes of path '': No such file or directory
<sphalerite> If anyone knows how to proceed please do let me know :)
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grenade has quit [Ping timeout: 252 seconds]
Itkovian has joined #nixos
grenade has joined #nixos
<{^_^}> [nixpkgs] @Amar1729 opened pull request #48738 → Init/argp standalone → https://git.io/fxoag
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sir_guy_carleton has joined #nixos
effsquared has joined #nixos
kyren has quit [Quit: ZNC 1.7.1 - https://znc.in]
Itkovian has joined #nixos
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 223 commits to staging-next: https://git.io/fxoVO
<{^_^}> [nixpkgs] @FRidh opened pull request #48739 → Merge staging-next into master → https://git.io/fxoV3
Mic92 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48716 → mattermost: 5.3.0 -> 5.4.0 → https://git.io/fxrSD
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxoVn
<{^_^}> [nixpkgs] @FRidh pushed 225 commits to staging: https://git.io/fxoV0
<{^_^}> [nixpkgs] @FRidh pushed commit from @danieldk to master « libtensorflow: add pkgconfig file »: https://git.io/fxoVg
<{^_^}> [nixpkgs] @FRidh merged pull request #48704 → libtensorflow: add pkgconfig file → https://git.io/fxrtv
<{^_^}> [nixpkgs] @FRidh merged pull request #48713 → file: 5.34 -> 5.35 → https://git.io/fxrRx
<{^_^}> [nixpkgs] @FRidh pushed commit from @dywedir to staging « file: 5.34 -> 5.35 »: https://git.io/fxoVK
__monty__ has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos
oldandwise has joined #nixos
Lears has joined #nixos
[Leary] has quit [Read error: Connection reset by peer]
elgoosy has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
oldandwise has quit [Quit: leaving]
rprije has quit [Ping timeout: 246 seconds]
rprije has joined #nixos
Itkovian has joined #nixos
rprije has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @midchildan opened pull request #48740 → mirakurun: init at 2.7.3 → https://git.io/fxors
Ariakenom has joined #nixos
Rajsun has quit [Remote host closed the connection]
Acou_Bass has quit [Ping timeout: 252 seconds]
sigmundv has quit [Remote host closed the connection]
Acou_Bass has joined #nixos
iyzsong has quit [Remote host closed the connection]
sigmundv has joined #nixos
iyzsong has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #46920 → pokerth: 1.1.1 -> 1.1.2, refactor, Qt 5 → https://git.io/fAHwp
<{^_^}> [nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/fxoof
rtjure has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Leary] has joined #nixos
Lears has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @markuskowa merged pull request #48530 → chirp: 20180906 -> 20181009 → https://git.io/fxuzT
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fxoo2
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @FRidh closed pull request #30307 → translate-toolkit: Init at 2.2.5 → https://git.io/vdrmV
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @uvNikita opened pull request #48741 → todolist: 0.8 -> 0.8.1 → https://git.io/fxooA
sir_guy_carleton has joined #nixos
Ariakenom_ has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @FRidh pushed commit from @costrouc to staging « pythonPackages.{numpy,scipy,numexpr}: support MKL as BLAS »: https://git.io/fxoKR
<{^_^}> [nixpkgs] @FRidh closed pull request #48676 → pythonPackages.numpy-mkl: refactor adding mkl support → https://git.io/fxVxD
Ariakenom has joined #nixos
Ariakenom_ has quit [Ping timeout: 272 seconds]
jtojnar has quit [Read error: Connection reset by peer]
FRidh has joined #nixos
nbardiuk has joined #nixos
<fiatjaf> I'm doing a project that uses both haskell and javascript. how can I create a derivation that includes both the haskell packages and the javascript packages I need to build my thing?
<fiatjaf> I'm currently just doing the haskell side of it, creating a derivation with haskellPackages.callPackage and so on
jasongrossman has joined #nixos
silver has joined #nixos
jtojnar has joined #nixos
Itkovian has joined #nixos
Rajsun has joined #nixos
obadz has quit [Ping timeout: 268 seconds]
Phillemann has joined #nixos
<Phillemann> I'd like to examine the closure of my application to see if there's anything superfluous in there.
<Phillemann> Is there an easy command to do this?
<tilpner> Phillemann - nix-store -qR $YOUR_NIX_STORE_PATH
<srhb> Phillemann: -q --tree is also nice
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> And -qr
<tilpner> -qr, not -qR?
<tilpner> Isn't -r realise?
<Phillemann> Ah, wouldn't have thought to be in nix-store. Thanks, I'll try!
<Phillemann> Wait, how do I read this --tree command? It shows my store path at the top and then, for example, fontconfig. That's not a direct dependency for my application.
obadz has joined #nixos
mojjoo has joined #nixos
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<mojjoo> hi.. I'm switching from 18.03 to 18.09... Unfortunately, I'm getting build errors in several packages that depend on haskell stuff ("Setup: Encountered missing dependencies: base >=4.2 && <4.11")... Somehow, I remember that I had the same thing some time ago, but I forgot how to fix it :)
<{^_^}> [nixpkgs] @danieldk opened pull request #48742 → pythonPackages.spacy: 2.0.12 -> 2.0.16 → https://git.io/fxoPt
<mojjoo> it's the x509 package that fails.. any ideas?
Shados has quit [Read error: Connection reset by peer]
aanderse has quit [Quit: No Ping reply in 180 seconds.]
drvirgilio_ has quit [Remote host closed the connection]
drvirgilio has joined #nixos
jtojnar has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @timbertson opened pull request #48744 → lib.isStorePath: fix `false` result when given a path object → https://git.io/fxoXc
effsquared has quit [Ping timeout: 252 seconds]
nbardiuk has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @c0bw3b closed pull request #48380 → pgroonga: 2.1.3 -> 2.1.4 → https://git.io/fxRwZ
<{^_^}> [nixpkgs] @globin merged pull request #48732 → nixos/prometheus: add webExternalUrl option → https://git.io/fxo0z
<{^_^}> [nixpkgs] @globin pushed commit from @delroth to master « nixos/prometheus: add webExternalUrl option »: https://git.io/fxoXE
jtojnar has joined #nixos
emily has quit [Ping timeout: 252 seconds]
emily has joined #nixos
<cocreature> mojjoo: presumably you are now using ghc 8.4 which comes with base 4.11
copumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
dbmikus__ has joined #nixos
silver has quit [Quit: rakede]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxo1k
dbmikus__ has quit [Ping timeout: 252 seconds]
aanderse has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
revtintin has joined #nixos
aanderse has quit []
revtintin has quit [Quit: WeeChat 1.9.1]
<Unode> hi all, did something happen to nixpkgs master? I'm getting conflicts when pulling from files unrelated to my changes.
revtintin has joined #nixos
<srk> looks good to me, maybe your filesystem got corrupted
<srk> I've seen this happen few times with huge repositories like linux and nixpkgs
Guanin has joined #nixos
iyzsong has joined #nixos
<mojjoo> did anybody have problems building xmonad from the 18.09 channel? I'm getting `Setup: Encountered missing dependencies:
<mojjoo> base >=4.2 && <4.11`
goibhniu has joined #nixos
goibhniu has quit [Client Quit]
goibhniu has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
nbardiuk has joined #nixos
booglewoogle has joined #nixos
<{^_^}> [nixpkgs] @ttuegel merged pull request #35213 → suitesparse: 4.4.4 -> 5.3.0 → https://git.io/vAB5g
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fxoM5
kp__ has joined #nixos
mekeor has joined #nixos
<{^_^}> [nixpkgs] @ttuegel merged pull request #48700 → qt59.qtwebkit: fix build on Darwin → https://git.io/fxwhZ
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fxoD9
lunik1 has quit [Ping timeout: 250 seconds]
booglewoogle has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48521 → flatbuffers: 1.8.0 -> 1.10.0 → https://git.io/fxu0O
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « flatbuffers: 1.8.0 -> 1.10.0 (#48521) »: https://git.io/fxoye
Guanin_ has joined #nixos
Guanin has quit [Ping timeout: 260 seconds]
<cocreature> mojjoo: same error that I told you about earlier. base < 4.11 means that it won’t work with GHC 8.4
<mekeor> i'm not sure if i want to run NixOS or Debian on my server but i'm not sure whether you could help me decide that as i still don't exactly now what i'm gonna use it for
<simpson> mekeor: What would be an advantage of Debian over NixOS?
<Unode> mekeor: install debian, install nix. If later you change your mind you can easily convert it to nixos.
shabius has joined #nixos
<mekeor> simpson: it feels like debian can offer more stability, security, more packages, wider support.
<Unode> hi guys, I'm trying to write a nixos service. If I need to execute a command for setup what would be the right step/location to do so?
<{^_^}> [nixos-artwork] @sala98 opened pull request #41 → New Wallpaper for NixOS → https://git.io/fxoy7
<mekeor> i will probably use nginx for a static website; i might use wordpress and nextcloud; i'd like to run a irc-client; maybe a research tool written in php...
<simpson> mekeor: To take those point by point: Nix is definitely more stable and includes a modicum of *reproducibility* which Debian lacks. Debian's security process has more people, for sure. nixpkgs probably is missing a package you need; do you have a list? And "support" could mean anything~
<simpson> All of those things are possible on NixOS, sure.
<mekeor> hmm. yeah.
<mekeor> okay, i go for nixos :3
* Unode peeks into the future to count how many hairs mekeor has left
<mekeor> hahaha :D
alex`` has quit [Ping timeout: 272 seconds]
alex`` has joined #nixos
<avn> Unode: even after 2 years of nixos I affraid to _convert_ production server to nixos ;)
civodul has joined #nixos
<hyper_ch> why?
<Unode> avn: there are good things and bad things. It all boils down to feature overlap.
<hyper_ch> avn: what do you need on the production server?
<Unode> like... I'm currently trying to figure out how to run a command required to setup files for starting a server component. Having a nixos service means running this somewhere before the service starts. Was highjacking preStart in systemd but this is no longer an option, so still looking or a better way...
<hyper_ch> why is systemd no longer an option?
<Unode> I'm pretty sure there is one but I just haven't found it yet. The NixOS manual has info from the users perspective and this is more on the dev side so not that helpful in this case.
<Unode> hyper_ch: the script calls to commands that aren't in scope/PATH.
<Unode> for instance, 'hostname'
<avn> hyper_ch: is my personal mail gateway ;)
<Unode> avn: a little of FUD in that case?
iyzsong has quit [Ping timeout: 260 seconds]
<hyper_ch> Unode: still fail to see how server components need to be setup
<avn> Unode: yep.
<Unode> hyper_ch: files need to be created for the server to start. Think of it as 'setup.sh' that ships with the software and should be run befor 'start_server'
<Unode> among other things, it generates SSL certificates and creates the necessary files in the right (relative) location.
<hyper_ch> why would it need to create ssl certs........
<Unode> hyper_ch: if you want more context, https://github.com/NixOS/nixpkgs/pull/30553
<hyper_ch> very, very confusing what you write
<{^_^}> #30553 (by unode, 1 year ago, open): WIP: Add support for burp client/server services
<{^_^}> [nixpkgs] @romildo opened pull request #48746 → sierra-gtk-theme: 2018-10-01 -> 2018-10-12 → https://git.io/fxoS4
<Unode> hyper_ch: 'server' here means a binary and not a machine.
<hyper_ch> Unode: what's burp?
<Unode> nix search burp
<{^_^}> [nixpkgs] @vlaci opened pull request #48747 → kitty: fix locating libstartup-notification-1 → https://git.io/fxoSu
<hyper_ch> too lazy... why not just move it to a vm that starts after nixos ist started
<Unode> ...
<avn> Unode: so you need pre-generate your cert, and ship them as part of your nix deployment (as well as all setup.sh should be ported as nix-expressions)
<Unode> avn: well in this case I'm happy to just use self-signed certs. So more like creating them before starting burp's server daemon.
<Unode> there's a burp_ca script that takes care of this but it fails to run during preStart
<avn> Then split your setup.sh to build-time part (move to .nix) and run-time (fix and run once of boot)
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48386 → opencollada: 1.6.63 -> 1.6.65 → https://git.io/fxRrA
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fxoSD
<Unode> avn: I don't want to tamper with the setup.sh script. It's part of the software. Also don't want to reinvent the script by rewriting it in nix. It shouldn't be necessary, plus doing so makes it too brittle and subject to breakage with upstream changes.
endformationage has joined #nixos
<srhb> Unode: Backing up a bit... Why not just bring the things you're missing for preStart into the PATH of that script?
<{^_^}> [nixpkgs] @avnik opened pull request #48748 → Stable/pylint → https://git.io/fxo9k
<Unode> srhb: That's what I'm currently doing but by setting PATH=${pkgs.busybox}/bin:$PATH manually in preStart.
<srhb> Unode: There's also a systemd.services.?.path setting
<Unode> Though I figure this is something that should be fixed in the burp package itself no?
<srhb> Unode: Takes a list of packages and puts them all on the service's PATH. I forget whether it affects preStart though, but I would think so.
<Unode> ah that's useful. I'll grep for examples in the source
<srhb> Unode: Sure, you can wrap the script too in the build
<Unode> thanks!
<srhb> Unode: wrapProgram can greate a simple path wrapper, essentially renaming foo to .foo and creating a new foo script that calls .foo with extra variables etc.
<srhb> (There's a lot of wrap* helpers)
<Unode> but those are for packages not services right?
<srhb> Right, in this case you would wrap setup.sh in the build.
azdle has quit [Remote host closed the connection]
<srhb> Unode: so that the wrapper ensures that the runtime deps are properly PATH'ed.
<Unode> yup. I'll be doing that afterwards. For now fiddling with $PATH is progress
<srhb> Righto.
<Unode> thanks for the pointers
<srhb> Welcome.
Mr_Keyser_Soze has joined #nixos
<Unode> srhb: so but just to be clear. Is preStart the de-facto way of running anything before a service? With conditionals for 'is it the first time I'm doing this'?
azdle has joined #nixos
elgoosy has quit [Remote host closed the connection]
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
<avn> Unode: btw very similiar stuff, which need copying of config from /nix/store to /var is a cups. Making pre-configured cups is a nightmare
<srhb> Unode: That's a very common use of it, yes.
Mr_Keyser_Soze has joined #nixos
<srhb> Unode: from eg. the postgresql preStart: if ! test -e ${cfg.dataDir}/PG_VERSION; then ...
Guanin_ has quit [Ping timeout: 272 seconds]
<Unode> avn: cups I'll have a look. This one is not that easy either. I'm actually not sure yet if I can pre-configure it all. At the moment I'm aiming at having the server and client running.
elgoosy has joined #nixos
<Unode> There's a server<->client pairing step that I don't think it's automatable unless both client & server live on the same filesystem.
<Unode> which should not be how a backup system works :P
<avn> Unode: I worked-around cups by dropping pre-cooked config, but it works not on all machines
<Unode> srhb: I see. I'll work along those lines then.
<avn> look on bup as backup software, if looks fun, and don't require any super-special (and you can unbackup just with git (at least it promized))
Phillemann has left #nixos ["WeeChat 2.2"]
<{^_^}> [nixpkgs] @Ma27 opened pull request #48750 → vimPlugins.clang_complete: fix path to libclang.so → https://git.io/fxo9w
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
jedahan has joined #nixos
<Unode> I've been using burp for years. Simple, lightweight. I've had the client working on nixos since I opened the pull request above but the server component was never finished. Trying to get that done now to remove the WIP.
<{^_^}> [nixpkgs] @unode opened pull request #48751 → freerdp: 2.0.0-rc2 -> 2.0.0-rc3 → https://git.io/fxo9y
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @jorsn opened pull request #48752 → epson-workforce-635-nx625-series: init at 1.0.1 → https://git.io/fxo95
effsquared has joined #nixos
jophish has joined #nixos
jedahan has quit [Ping timeout: 252 seconds]
<__monty__> How does borg compare to burp?
jedahan has joined #nixos
jedahan has left #nixos [#nixos]
<Unode> burp is a server-client solution for multi-user/multi-client. borg is more geared to single-user.
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fxoH6
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/fxoHP
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-18.09: https://git.io/fxoHX
<__monty__> Does having multiple boxes to backup count as multi-user?
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48335 → weather-icons: init at 2.0.10 → https://git.io/fxRZO
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fxoHS
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48522 → flatpak: 1.0.2 -> 1.0.4 → https://git.io/fxu0a
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fxoHQ
<Unode> yes
<{^_^}> [nixpkgs] @c0bw3b closed pull request #48275 → Glob093 doesnt exist → https://git.io/fx4op
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lopsided98 has quit [Ping timeout: 276 seconds]
astrofog has joined #nixos
<Unode> is it possible to disable building the manual that is accessible with nixos-help?
vcunat has joined #nixos
lopsided98 has joined #nixos
effsquared has quit [Quit: Leaving]
Dedalo has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.2]
mojjoo has quit [Ping timeout: 252 seconds]
<clever> Unode: services.nixosManual.enable
<dhess> Anyone here use OVH servers with NixOS?
fragamus has joined #nixos
<hyper_ch> dhess: yes
<dhess> hyper_ch: OVH, right, not SyS or Kimsufi?
<hyper_ch> ah... I use Kimsufi
<hyper_ch> it's my proxy to access plex through https when I'm on the gov network
<dhess> ok so one of my questions you probably can't answer, but the other, maybe: which install method are you using?
<hyper_ch> dhess: clever's kexec
<dhess> hmm me too, no success so far
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.09: https://git.io/fxo7E
<hyper_ch> dhess: added proper ethernet driver?
<dhess> hyper_ch: huh I didn't know it was needed. Which one do you need for your box?
<hyper_ch> dhess: you need to check your box
<dhess> mine has an Intel igb. That's got to be included in the default NixOS kernel
<dhess> maybe it's because there are 2 and it's not assigning it to the right one
<hyper_ch> dhess: actually, in the kexec config I don't have any specified https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/kimsufi_net_kexec_configuration.nix
<dhess> clever: absent the "boot.kernelParams" declaration in the kexec build from nix-test, I assume systemd/udev will just do their thing like any "normal" NixOS boot?
<hyper_ch> dhess: but I needed to add it to the minimal configuration.nix then https://github.com/sjau/nix-expressions/blob/master/customIsoFiles/kimsufi_net_minimal_enczfs_configuration.nix#L36
<clever> dhess: yep
<dhess> hyper_ch: huh I'm pretty certain I've used that driver on my physical boxes before without specifying it
<dhess> but it couldn't hurt I guess
<dhess> cle
<hyper_ch> first boot kexec, then get minimal config, then run my installer script for zfs setup and have nixos installed..... then boot into encrypted zfs server, expand config
<dhess> clever: tanks
<dhess> h
<hyper_ch> dhess: as said, I had issues when I omitted it
<dhess> hyper_ch: ok I'll add it, thanks for the hints
<hyper_ch> dhess: I remember why... because I need to access the box at the initrd stage to submit zfs encryption password ;)
<hyper_ch> so maybe forget about what I said ;)
<dhess> hehe
<clever> hyper_ch: after booting with kexec, check `lspci -vvv` it will tell you which driver owns each device
<hyper_ch> clever: I don't need to know
<clever> hyper_ch: then boot.initrd.availableKernelModules and it will auto-load if the card is still present
<dhess> hyper_ch: it looks like Kimsufi does DHCP then?
drakonis has joined #nixos
<hyper_ch> clever: I just remembered I had to specifiy the lan driver but then forgot first why... it was because of root encrypted zfs ;)
<clever> ah
<hyper_ch> dhess: yes, works fine on 3 kimsufi boxes
<dhess> OVH doesn't and for whatever reason I can't communicate with my OVH dedicated server after the kexec boot
<dhess> so I'm pretty sure the NICs aren't being configured correctly
<clever> dhess: thats why ive got the autoreboot flag, so you can retry without needing any special console
<hyper_ch> you could of course just put full network config into the kexec
<hyper_ch> reboot to normal system, copy the network settings, add them to kexec and retry
<dhess> clever: yeah that doesn't appear to work either, oddly. I have to hard reset it from the OVH web console
<dhess> hyper_ch: that's what I'm doing, no luck so far
<clever> dhess: ah, that would imply that the entire machine is locking up upon kexec
<hyper_ch> dhess: how much ram?
<dhess> hyper_ch: 16GB
<dhess> clever: yeah I wondered about that
Mic92 has left #nixos ["The Lounge - https://thelounge.chat"]
<hyper_ch> that should suffice
<dhess> there is an IPMI SOL-in-browser for this thing but I'll be damned if I can figure out how to authenticate to it
<hyper_ch> my kimsufi box just has 4gb
<dhess> hyper_ch: hehe
<dhess> I may just have to resort to installing Java and running their awful KVM applet
<clever> dhess: it could be worse, ive had to install both windows xp and 7, just to get a mess of activex applets to work
Mic92 has joined #nixos
<dhess> oh my christ Windows XP
<clever> yes
<clever> the remote cdrom part only works under xp
<clever> and the remote console only works under 7
<hyper_ch> clever: btw, I managed to install root zfs on a debian server with UEFI where I use the zfs sdx9 partition as ESP so that I don't have to use a seperate /boot partition
<clever> :O
<dhess> jesus, how the hell do you run a Java applet in a modern browser?
<clever> hyper_ch: and fdisk -l /dev/sda ?
<hyper_ch> install a Win7 vm and use msie
<dhess> hyper_ch: *cries*
<clever> lol
<hyper_ch> clever: debian stable zfs ist only 0.6.5 - so no encryption and it's just web und email server
<clever> i'm not entirely sure what zfs intends for that reserved partition, but if it works, it works, lol
<clever> also of note, if you let zfs paritition the disk like that, it sets a magic "whole disk" flag that cant normally be set
<hyper_ch> clever: in #zfsonlinux tehy told me it's because sometimes drives of same size aren't quite same size
<clever> and that causes zfs to mess with performance controls of the entire sda
<hyper_ch> so they take a bit off
<clever> ahh
<hyper_ch> so all xTB drives will match when making mirror
Mic92 has quit []
Mic92 has joined #nixos
<hyper_ch> so, it's prefect to use as ESP partition
mayhewluke has quit [Ping timeout: 252 seconds]
<nkaretnikov> How do I enter nix-shell without querying the network? It just keeps trying over and over again. And I can’t find the right option to disable this.
<clever> hyper_ch: it can also be used as a bios boot partition for legacy booting
Ariakenom_ has joined #nixos
<hyper_ch> clever: 8MB is a bit small
<clever> hyper_ch: bios boot only needs <1mb
<clever> hyper_ch: it serves the same purpose as the ESP
<hyper_ch> ok :)
<hyper_ch> I'm so confused about all of that :)
<clever> when booting on MBR, grub will shove stage 1.5 between sector 1 and partition 1, in the "unused" space
<hyper_ch> but this is actually my first uefi installation ;)
<bpye> If a project is hard to build as a NixOS package (Go 1.11 modules seem... tricky to get working with the sandbox network restrictions), is my best bet to download a binary and make the package from that :(
<hyper_ch> everything else still runs on bios
<clever> GPT uses more then 1 sector for its partition table, so that same range is now unsafe to use
<clever> and they decided to ban using "unused" space :P
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> so you now need a dedicated partition for that, called the bios boot partition
mayhewluke has joined #nixos
<clever> it has no fs, cant be mounted, cant be formatted, and just holds raw x86 assembly code
<dhess> every time I need to do something like this I curse the BIOS vendors for being stuck in the 80s
<clever> hyper_ch: in your exact case, it would contain the grub kernel, the zfs drivers for grub, and maybe the luks drivers
<hyper_ch> clever: thx for the explanation
<hyper_ch> no luks drivers :)
<clever> that is the bare minimum grub needs to mount the real /boot
<avn> Folks, can anyone share some common texlive.combine expression suitable for pdf, xelatex and european languages (but without esoteric stuff like runes and asian/african languages)
Ariakenom has quit [Ping timeout: 244 seconds]
<hyper_ch> people in #zfsonlinux also said, that the method I used won't allow for all features to be supported of zfs
astrofog has quit [Remote host closed the connection]
Itkovian has joined #nixos
Dedalo has joined #nixos
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @ttuegel merged pull request #48555 → kde-frameworks: 5.50 -> 5.51 → https://git.io/fxupn
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fxo5y
<avn> bpye: go 1.10 stuff was perfectly builds with nix, so I believe 1.11 also solvable
<bpye> avn: I'm sure it's solvable however they have integrated vgo as of 1.11 as go modules, see https://github.com/golang/go/wiki/Modules
<bpye> You end up with a file like https://github.com/miniflux/miniflux/blob/master/go.mod - each dependency there can specify it's own as you might expect, meaning you need to get a list of all these deps that are needed in the build
<{^_^}> [nixpkgs] @XA21X opened pull request #48753 → nixos/networking: add ipvlan option → https://git.io/fxo5H
<avn> clever: you anyway need extra partition for boot (doesn't matter if EFI grub or ext2/3/4 partition with grub)
<bpye> If you could flatten it then I suppose it should be fairly easy to setup the cache as explained at https://golang.org/cmd/go/#hdr-Module_proxy_protocol
<avn> bpye: possible go2nix can be expanded to underthand that (if it not support it yet), so it will resolve all source dependencies to fixed derivations
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bpye> Yeah I've been looking at go2nix and dep2nix but I'm struggling a little to understand the projects
erratic has joined #nixos
<avn> bpye: they just analyze go sources, determine dependencies and make .nix locking all source dependencies.
<bpye> Oh yeah, I knew that, however I guess I'm struggling to find out how they do that :)
<{^_^}> [nixpkgs] @volth reopened pull request #48731 → cpan2nix updates → https://git.io/fxoBF
<jtojnar> how do libraries get to rpath again? and how can I disable it?
<bpye> It seems like we need to populate $GOPATH/pkg/mod/cache/download ourselves using the suitable derivations for grabbing source code, the annoyance here is that within that you have to generate various files too
<bpye> How annoying - https://github.com/adisbladis/vgo2nix it exists but google is useless, thank you adisbladis !
<avn> bpye: he usually hanging around this channel, so you know whom direct questions ;)
<clever> jtojnar: i believe cc-wrapper sets some rpath flags when calling the real gcc
<bpye> If I mix architectures, say I have an Arm64 R Pi and an x86_64 box, will NixOps handle that?
<clever> bpye: yes
<bpye> Okay, was just wondering since NixOps seems to do at least some of the build operation on the machine you are running NixOps?
<clever> bpye: you just need to set the right nixpkgs.system.localSystem param for each machine
<clever> bpye: it will need build slaves of the right arch to perform those steps
<hyper_ch> avn: the solution I chose was using /dev/sd[x]9 as ESP partition when I create a zfs pool over the whole drive
<clever> bpye: a lot like deploying nixops from a mac machine
<avn> hyper_ch: I used /dev/disk/by-name/*-part0 for ESP and *-part1 for pool (use two 1TB in mirror)
<jtojnar> clever: do not see anything saying rpath in there
<dhess> yay kexec worked!
<hyper_ch> but by creating a zfs pool out of a partition, you'll get another partition,r ight?
<jtojnar> clever: is there some simple way to disable all the hacks attempting to fix badly written software?
<clever> jtojnar: you could use gcc.cc, rather then gcc, as your compiler
<dhess> clever: I'm keeping a tally of every time I boot a machine with kexec and if I ever meet you IRL, I will buy you a beer for each one
<clever> dhess: i'm on my way to nixcon next week
<dhess> clever: I am not :( I'm actually moving to London soon, but not until November
<dhess> bad timing. Hopefully next year
<Unode> clever: presenting something?
<clever> Unode: not planning on that
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #48673 → xorg: allow overriding via overrideScope' for 18.09 → https://git.io/fxVia
<{^_^}> [nixpkgs] @Ericson2314 pushed 9 commits to release-18.09: https://git.io/fxoFq
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Unode> in a service with a client+server component, what's the recommended way to conditionally run additional preStart steps if both components are enabled?
<avn> Folks, how I can figure out if some stuff /nix/var/logs are from non-existant packages?
<avn> I suspect, that some files there are from old builds, which not exists anymore
fragamus has joined #nixos
<Unode> avn: logrotate them until they are gone?
<avn> Unode: it definelly won't work for nix build logs
<Unode> oh nevermind I read /var/log not /nix/var/log
<Unode> aren't those garbage collected ?
revtintin has quit [Quit: WeeChat 1.9.1]
<dhess> I have a system with 2 drives and it boots from EFI. As far as I know it's not possible to use mdadm to raid1 the 2 EFI boot partitions like I would do with an MBR system and grub.
<dhess> So is there any way to get NixOS to write to both partitions when it updates /boot
<dhess> ?
<dhess> for redundancy
<hyper_ch> yes
<hyper_ch> ah, no
<hyper_ch> dhess: what I do is mount one locally and run regular rsync from a to b
revtintin has joined #nixos
<dhess> hyper_ch: maybe I'll write a module to do that
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<hyper_ch> dhess: I do that now on the new debian server ;)
<{^_^}> [nixpkgs] @pbogdan opened pull request #48754 → debootstrap: fix up paths to {chroot,unshare}, small clean up → https://git.io/fxobc
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d3be52c83bf (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixops] @aszlig pushed to strict-hostkey-checking-workaround « Partially mitigate StrictHostKeyChecking=no issue »: https://git.io/fxobE
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
<bsima> If I 'doHaddock = true' on a local package then 'nix-shell' into that package, where do the Haddock docs go?
<{^_^}> [nixops] @aszlig opened pull request #1023 → Partially mitigate StrictHostKeyChecking=no issue → https://git.io/fxobo
dontdieych has joined #nixos
frank87 has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}> [nixpkgs] @leenaars opened pull request #48755 → thonny: 3.0.0b3 -> 3.0.1 → https://git.io/fxoN3
<avn> Unode: I have some doubts, that they GC'ed properly
<Unode> avn: got a spelunker hat? :)
<avn> sry, don't catch idiom ;)
<Unode> avn: on my system they take up 6.4Mb . Not big enough for me to care.
<avn> ~300MB on my system
<clever> 1.2G /nix/var/log/nix/
<clever> holy crap
<avn> well, then is not my paranoia ;)
<avn> I try to write some tool tomorrow, to purge them
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/fxoNy
<hyper_ch> infinisil: online?
<infinisil> Always!
<hyper_ch> you broke my znc setup :(
<hyper_ch> after removing that userName entry nixos built fine but znc failed to start :(
<infinisil> Oh well that's not very good, what's the error?
<hyper_ch> don't know... reboot into old build :)
<infinisil> ....
<hyper_ch> I can switch again now :)
<infinisil> You can just look at the logs
<infinisil> To see the previous error
<hyper_ch> which logs?
<infinisil> systemd logs, through journalctl
<infinisil> You said it failed to start, so it should have output an error when it tried to run, which should be in the journal
<hyper_ch> it didn't like the ssl cert
<hyper_ch> Oct 19 22:18:31 servi znc[3389]: sslcertfile = /https-aio.pem
<hyper_ch> Oct 19 22:18:31 servi znc[3389]: Unrecoverable config error.
<infinisil> That's the whole error?
<{^_^}> [nixpkgs] @Mic92 merged pull request #48742 → pythonPackages.spacy: 2.0.12 -> 2.0.16 → https://git.io/fxoPt
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to master: https://git.io/fxoAg
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> hyper_ch: Can you also gist the generated config?
<hyper_ch> infinisil: where is it?
<infinisil> hyper_ch: nix-build '<nixpkgs/nixos>' -A config.services.znc.configFile
<infinisil> hyper_ch: Be sure to redact secrets though
lassulus has quit [Ping timeout: 252 seconds]
<hyper_ch> lol, config file is in my user home :)
<infinisil> Ahh yeah that's my mistake, will fix right away
<hyper_ch> what is your mistake?
<infinisil> The extraZncConf options should be applied to the global config, not the user-specific one
<hyper_ch> ok :)
lassulus has joined #nixos
<hyper_ch> thx for packaging znc
<infinisil> Well I didn't package it, just improved the things you can do with it
<hyper_ch> :)
<hyper_ch> you don'tuse it with a LE certificate?
<{^_^}> [nixpkgs] @Infinisil opened pull request #48756 → nixos/znc: Fix confOptions.extraZncConf being applied to wrong section → https://git.io/fxoxn
<infinisil> hyper_ch: Mind testing with this? ^^
<hyper_ch> infinisil: how?
<infinisil> Apply the commit to your nixpkgs
<hyper_ch> how?
<infinisil> Never used a git checkout for your nixpkgs?
<{^_^}> [nixpkgs] @primeos opened pull request #48757 → [18.03] Security backport for fuse (CVE-2018-10906) → https://git.io/fxox2
<hyper_ch> I just recently leart to how proper branch, push branch to fork, make PR from that branch and then update my master again from upstream
<hyper_ch> srhb took a lot of time to explain it to me and lead me through it
<hyper_ch> infinisil: you know, https://xkcd.com/1597/
<infinisil> hyper_ch: Well, you first clone nixpkgs, then add the nixpkgs-channels remote and fetch it, check out the nixos-unstable channel of that, then rebuild your NixOS with `-I nixpkgs=/path/to/nixpkgs`
<hyper_ch> infinisil: https://xkcd.com/1597/
<{^_^}> [nixpkgs] @timokau merged pull request #48741 → todolist: 0.8 -> 0.8.1 → https://git.io/fxooA
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxoxQ
<infinisil> git clone https://github.com/NixOS/nixpkgs; cd nixpkgs; git remote add channels https://github.com/NixOS/nixpkgs-channels; git fetch channels; git checkout channels/nixos-unstable; nixos-rebuild switch -I nixpkgs=$PWD
<infinisil> I wrote this from memory in 30 seconds, so there might be minor mistakes
<hyper_ch> infinisil: but where does commit into that?
<clever> hyper_ch: there is a def i know, that only ever uses `git add --all`, i have seen him commit lock files to the repo, luckily, the code uses flock and doesnt care
<infinisil> hyper_ch: That comes later, first try that
<clever> dev*
<hyper_ch> just recently learnt how to use flock in bash
<hyper_ch> infinisil: I'm now at the rebuild step... but now I'd need your commit because it will fail again otherwise and I get kicked out here
<infinisil> hyper_ch: Ah right
<hyper_ch> infinisil: I just mannualy edit that file
<{^_^}> [nixpkgs] @FRidh merged pull request #48748 → Stable/pylint → https://git.io/fxo9k
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to release-18.09: https://git.io/fxopf
<infinisil> hyper_ch: git fetch origin refs/pull/48756/head:pr/48756; git cherry-pick 039fc37f9c7eac5d7f648b7fa21227726cb39319
<infinisil> This is the git-way (TM) ^^
<hyper_ch> error: could not apply 039fc37f9c7... nixos/znc: Fix confOptions.extraZncConf being applied to wrong section
<hyper_ch> it did apply it
<hyper_ch> let's see what happens
<infinisil> Huh well that shouldn't happen, why did it error?
<hyper_ch> that's the output of the git fetch command you gave me
<hyper_ch> but it was applied
<hyper_ch> it didn't restart znc
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
<hyper_ch> this is weird
ekleog has quit [Quit: brb]
plakband has joined #nixos
<{^_^}> [nix-pills] @exyi opened pull request #85 → Fixed typos in 6th and 15th pill → https://git.io/fxopV
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to staging: https://git.io/fxopP
Rusty1 has joined #nixos
<infinisil> hyper_ch: Huh that sounds odd
kiloreux_ has quit [Read error: Connection reset by peer]
kiloreux_ has joined #nixos
alex`` has quit [Ping timeout: 252 seconds]
<hyper_ch> it is
plakband has quit [Client Quit]
<hyper_ch> I guess it did not rebuild it because the hash of the acutal znc expression didn't change
<hyper_ch> since you just changed the config options
alex`` has joined #nixos
ekleog has joined #nixos
<infinisil> hyper_ch: You can see the config file in use at /home/hyper/.znc/configs/znc.conf
<hyper_ch> did not change
<infinisil> This should now have the SSLCertFile thing at the very bottom
plakband has joined #nixos
<Thra11> How do transient failures on hydra.nixos.org get resolved? Suspect this rustc build was oom-killed: https://hydra.nixos.org/build/82950500/nixlog/1/tail . Don't know if re-triggering it would simply result in the same failure due to lack of memory on the build server.
<infinisil> hyper_ch: Did the file change with the `config.services.znc.configFile` build command result?
<hyper_ch> infinisil: it did change
<{^_^}> [nixpkgs] @FRidh pushed 65 commits to staging-18.09: https://git.io/fxohI
<infinisil> Can you decide already haha
plakband has quit [Client Quit]
<hyper_ch> I looked at the modification date
<hyper_ch> https-aio.pem is now in the top section
<infinisil> Ahh right
<hyper_ch> seems to be all fine then
<hyper_ch> let me restart znc manually
<infinisil> So everything works now?
hyper_ch has quit [Remote host closed the connection]
hyper_ch has joined #nixos
<hyper_ch> infinisil: just restart znc manually and it works
<infinisil> Nice, not sure what the not-restarting was about, I didn't mess with that in my PR
<hyper_ch> infinisil: yes, all works... if I could I would accept that pr
<infinisil> hyper_ch: You can
<hyper_ch> at the end of nixos-rebuild switch you see the services that get restarted
<hyper_ch> if they were altered but znc didn't get restarted there
<hyper_ch> infinisil: I cannot OK PRs on nixos
FRidh has quit [Quit: Konversation terminated!]
<infinisil> hyper_ch: Go to the "Files changed" tab on the PR and click "Review changes", then "Accept"
<infinisil> It doesn't merge it or anything, but it's a sign that at least somebody is okay with it :)
revtintin has quit [Quit: WeeChat 1.9.1]
<hyper_ch> there's no accept... only approve :)
<infinisil> Ah yes that
<hyper_ch> I did do so
<infinisil> Thanks (the change really doesn't have anything directly to do with ssl certs though :P)
<hyper_ch> also good that I setup new server... old server with mdadm has failing drive :(
<hyper_ch> it does... if I hadn't specified that cert as option in extra config, I wouldn't have noticed ;)
<hyper_ch> and I think I'll also write my own snapshotting tool
cnidario has joined #nixos
<hyper_ch> zfs-auto-snapshot on debian names them differently than on nixos
<hyper_ch> and so my script for backing up has issues
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/80906eb858e (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<hyper_ch> so I simply wrote an own snapshotting script (just for hourly snapshots) and croned it https://paste.simplylinux.ch/view/raw/fbe1a097
<hyper_ch> infinisil: you have a cute avatar
<infinisil> Hehe :P
<hyper_ch> infinisil: btw, are you also member of the CCC?
<{^_^}> [nixpkgs] @qknight merged pull request #48706 → ndn-cxx: fixed broken build and updated to latest release → https://git.io/fxrts
<{^_^}> [nixpkgs] @qknight pushed commit from @sjmackenzie to master « ndn-cxx: fixed broken build and updated to latest release (#48706) »: https://git.io/fxohK
<hyper_ch> infinisil: you live in Gossau SG?
<infinisil> hyper_ch: Given that I don't know what CCC stands for, probably not
<infinisil> Yup
<hyper_ch> Chaos Computer Club
<hyper_ch> I'm next town
<{^_^}> [nixpkgs] @Infinisil merged pull request #48756 → nixos/znc: Fix regressions introduced in #45470 → https://git.io/fxoxn
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/fxohX
<infinisil> hyper_ch: Never heard of that
<hyper_ch> infinisil: you don't know CCC? ok....
<infinisil> hyper_ch: #nixos-chat?
<hyper_ch> infinisil: Flawil
<hyper_ch> I don't believe in #*-chat channels
<infinisil> I won't discuss offtopic stuff here though
Ariakenom has joined #nixos
Ariakenom_ has quit [Ping timeout: 252 seconds]
<hyper_ch> you merged it into master? oO
<infinisil> Yeah?
aleph- has joined #nixos
eisbaer-north has quit [Ping timeout: 252 seconds]
Leo` has quit [Ping timeout: 264 seconds]
<hyper_ch> why not directly merge it?
<infinisil> hyper_ch: Huh? I did directly merge it
<aleph-> So question, trying to build a ruby package and I keep getting this error: "nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux/setup: line 1291: binary: command not found"
<aleph-> Nix file is here
<hyper_ch> why wait for feedback from me?
<aleph-> nix/store/i6vl5lwlz5jbkg4r6p340dwmj6fha3xq-stdenv-linux/setup: line 1291: binary: command not found
<clever> aleph-: what if its "binary" that is not found?
<aleph-> There we go, apologies.
<clever> binary = $out/bin/install.sh
<{^_^}> [nixpkgs] @joachifm merged pull request #48727 → factor-lang: 0.97 -> 0.98 → https://git.io/fxolA
<{^_^}> [nixpkgs] @joachifm pushed 2 commits to master: https://git.io/fxojg
<clever> aleph-: you are running the command binary, with 2 args
<infinisil> hyper_ch: Ah you mean why not directly commit it to master. There's many reasons for that:
<aleph-> The two args being the expansion of gems and ruby, clever?
<clever> aleph-: you also dont have to set the system attribute, thats likely to cause issues down the road
<infinisil> PR's are more visible and are intended to be looked at by more people. More eyes see more potential mistakes
<clever> aleph-: the 2 args being '=' and the expansion of '$out/bin/install.sh'
<clever> aleph-: the spaces around the = make it a command, not a variable assignment
<infinisil> - Changes should be tested first
<aleph-> God dangit
<clever> aleph-: also, you want to indent that entire heredoc, to match the nearby lines
<infinisil> - GitHub synchronizes merges, committing to master doesn't have that
<infinisil> - In PR's the ofborg bot can do some checks/builds
<infinisil> hyper_ch: ^
<hyper_ch> ok
<aleph-> clever: Noted, so fixing the assignment fixed my build issue. My question now is, in regards the two scripts I call in my install phase. prod.sh and db.sh.Is it able to pull those in from the local directory? Or am I better just setting them via heredoc in the install phase as well?
<clever> aleph-: if you do ${./db.sh}, then nix will dynamically copy those into /nix/store/ and insert the new storepath
<aleph-> Gotcha, cool.
<clever> aleph-: src = ./.; is doing the exact same thing
<aleph-> Oh, doy.
<{^_^}> [nixpkgs] @fpletz opened pull request #48758 → docker-machine-kvm: 0.8.2 -> 0.10.0, docker-machine-kvm2: use minikube source → https://git.io/fxojr
<{^_^}> [nixpkgs] @fpletz opened pull request #48759 → stern: 1.8.0 -> 1.10.0 → https://git.io/fxoj6
<aleph-> Hmm, to figure out how to have it autorun... since just adding exec "rails server" at the end doesn't work.
<clever> aleph-: /bin/bash doesnt exist on nixos, you want #!${stdenv.shell}
<aleph-> Ah, noted. Thanks, forgot that.
<clever> bash also cheats, and will run itself on anything that looks like a shell script but technically isnt working
<clever> so it hides such mistakes when in a console
<{^_^}> [nix-mode] @matthewbauer pushed to master « Add dependency on json-mode »: https://git.io/fxoj9
<aleph-> clever: So from what I can tell all this is doing is setting up the environment, what would then be the way to execute my script set to $binary?
<aleph-> Could I pass it as an arg to builder?
<clever> aleph-: does it need to be executed at build-time or runtime?
<aleph-> Ideally at the end of build time.
<clever> aleph-: then just run it after you chmod +x it
<clever> and note, that it will only have +w to $out, and wont have any access to DB's
<aleph-> Bollocks.
<clever> you may need a nixos module, and a systemd service
<aleph-> And thus this gets more complicated.
<aleph-> Guess so, trying to package up a fairly popular link aggregator and then have it completely set up via one command, db, db accounts, build and populate the db, and then run the rails app.
kp__ has quit [Quit: WeeChat 2.2]
<clever> aleph-: definitely sounds like you need a systemd service
<clever> thats a very very basic service, that just runs a binary on bootup, with a given config file
strobelight has joined #nixos
<clever> you can add it to the imports list in your configuration.nix, and then nixos-rebuild will build your thing, and the service, and start it
<aleph-> Gotcha, hmm how am I going to pass along the db connection is the question...
<aleph-> That's the main difficult I see now, since otherwise it seems straight forward.
<clever> aleph-: you would configure the DATABASE_URL within the systemd service
<aleph-> In the ExecConfig?
<aleph-> ServiceConfig I mean
<clever> aleph-: systemd.services.<name>.environment
<clever> aleph-: https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.envi
<aleph-> Okay, think I see how to do this...
haitlah has joined #nixos
<haitlah> Back to back guys :P
<haitlah> I'm here again trying to do some ugly stuff in nixos
<aleph-> Hmm?
<aleph-> Ahh
<haitlah> I have a javascript application and try to install the dependencies locally with npm
<{^_^}> [nixpkgs] @offlinehacker merged pull request #48758 → docker-machine-kvm: 0.8.2 -> 0.10.0, docker-machine-kvm2: use minikube source → https://git.io/fxojr
<aleph-> clever: Thanks mate, going to try this out in a bit and be back to complain when I stuff something up
<{^_^}> [nixpkgs] @offlinehacker pushed 3 commits to master: https://git.io/fxKen
<haitlah> Strange thing is that I run npm install then webpack-dev-serv and it says that he can't find lodash (which is in the node_modules)
mayhewluke has quit [Ping timeout: 272 seconds]
elgoosy has quit [Remote host closed the connection]
<haitlah> Anyone already suffered with javascript in nixos ?
mayhewluke has joined #nixos
* srid decided to wipe windows altogether and have just nixos on his workstation laptop.
<sphalerite> haitlah: yes
<__monty__> srid: Welcome to the rest of your life.
<clever> srhb: :D
<hyper_ch> windows can still be run in a vm....
<srid> true; would also put a good use of the 64gb of RAM ...
<haitlah> sphalerite: any advice on using it in nixos ?
<haitlah> Im not trying to nixify the project right now
<haitlah> Just npm install and run a webpack dev serv
<srid> but windows in a vm probably won't help with my bluetooth headphone (which I couldn't get working on nixos)
<sphalerite> haitlah: be strong and persevere? xD
<srid> (or the fingerprint scanner)
<haitlah> sphalerite: lol, npm from nixos is patched but this change its behavior ?
<sphalerite> haitlah: I think it somewhat works
<haitlah> sphalerite: will persevere then :P
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/fxKeN
<{^_^}> [nixpkgs] @offlinehacker merged pull request #48736 → minishift: init at 1.25.0 → https://git.io/fxouc
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/720af0f20fb (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
fragamus has joined #nixos
kyren has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48693 → ruby: 2.5.2 -> 2.5.3 → https://git.io/fxwgj
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKvW
<gchristensen> can nixops be told to use a jump-host / bastion?
<{^_^}> [nixpkgs] @Mic92 pushed commit from @samueldr to release-18.09 « ruby: 2.5.2 -> 2.5.3 »: https://git.io/fxKvu
<clever> gchristensen: i think rvl has a PR open for that
<gchristensen> hmm
<gchristensen> link? I can't find it
<clever> gchristensen: i might be thinking of https://github.com/NixOS/nixops/pull/958 instead
<{^_^}> nixops#958 (by rvl, 21 weeks ago, open): Allow AWS temporary credentials with session tokens
<gchristensen> ah, ok
<gchristensen> maybe easier would be letting me just define an ssh config it should use
<{^_^}> [nix-pills] @grahamc merged pull request #85 → Fixed typos in 6th and 15th pill → https://git.io/fxopV
<{^_^}> [nix-pills] @grahamc pushed 2 commits to master: https://git.io/fxKva
<{^_^}> [nixpkgs] @dywedir merged pull request #48746 → sierra-gtk-theme: 2018-10-01 -> 2018-10-12 → https://git.io/fxoS4
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fxKvD
haitlah has quit [Remote host closed the connection]
<clacke[m]> We're having a super weird build issue over here
<clacke[m]> Trying to create a derivation for github/named-data/ndn-cpp, supposed to be pretty trivial
<clacke[m]> just your usual config make make install
<clacke[m]> but I get a weird link error at the end
<clever> clacke[m]: can you post the nix file and error in a gist?
<clacke[m]> one library within the project is getting undefined reference toward another one
<clacke[m]> funny thing is
<clacke[m]> If I use the ubuntu g++ and the exact same command line, in the tmp directory left behind by nix-build -K, linking works
<sphalerite> are you using the sandbox?
Guanin_ has joined #nixos
<clever> clacke[m]: /usr/bin/g++ will search /usr/lib/ and then find things it shouldnt be using, and make things "work for you"
<clacke[m]> I just don't get what
<clacke[m]> shouldn't it be complaining about other symbols than its own internal symbols then?
<clever> can you also post the .nix file your using?
<clacke[m]> "internal", as in, defined by the project I'm trying to compile
grumble is now known as Spooktober
<clacke[m]> Tried with GCC 6, 7, 8, identical result
<clever> i dont think it has anything to do with your gcc version
<clever> i think its just the order of -l and -L flags
<clacke[m]> yeah, just thought if there happened to be anything quirky with it
<clacke[m]> I'm replicating the exact same command line
<clacke[m]> So it must be like you say, something about the system libs
<clacke[m]> But would that cause A.o to complain about a missing symbol in B.o, if e.g. libc is missing some symbol?
<clever> #error Protobuf is installed but protoc didn't run. Try again to ./configure && make clean && make
<clever> clacke[m]: the symbols in the error are heavily protobuf related
<clacke[m]> hmm?
<clever> try adding protobuf to the inputs
<clacke[m]> protobuf is not in the dependencies
silver has joined #nixos
<clacke[m]> I'll try it
<clever> its giving a #error about protobuf, and its also failing to link to protobuf related symbols
<clacke[m]> but protoc is not in my Ubuntu system either
<clever> /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/ld: cannot find -lz
<clever> with protobuf in the inputs, it now fails to find libz
<clacke[m]> your errors are so different from mine
<clever> i got your link errors, and just above it, by about 20 lines, was the #error about protobuf
<clever> adding protobuf got it further, to a zlib error
<clacke[m]> ah
<clacke[m]> thanks for paying attention
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @timokau merged pull request #48755 → thonny: 3.0.0b3 -> 3.0.1 → https://git.io/fxoN3
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKfM
<clever> g++ -DHAVE_CONFIG_H -I. -I./include -I/include/boost-0 -g -O2 -c -o examples/test-register-route.o examples/test-register-route.cpp
<clever> clacke[m]: aha, the package is being VERY naughty!
<clever> its searching your host include dirs
<clever> that causes things to work for you on ubuntu, and then fail for all nixos users
<clacke[m]> Yeah, that /include/boost-0 thing is itchy
<clever> the nix sandbox can prevent that, on every os
<clever> this is my final expression, and it builds even faster when you enable parallism
<clacke[m]> but the thing is, it's failing on Ubuntu + Nix
<clacke[m]> and there is no /include
<{^_^}> [nixpkgs] @timokau merged pull request #48387 → ocamlPackages.ppxlib: 0.3.0 -> 0.3.1 → https://git.io/fxRoY
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKfb
<clever> does it still fail with the new file in the above gist?
<clacke[m]> I have no idea how you figured that out, and I have no idea why it failed and why it works now, but thanks a whole bunch. And you were quick, too.
<drakonis> so, what's the optimal way for running OS containers
<srid> in regards to `networking.firewall.logRefusedConnections` - where does it actually log?
<clever> srid: dmesg and journalctl
<clacke[m]> lesson for next time: go onto #NixOS five hours earlier
<srid> clever: thanks; in source I see: `ip46tables -A nixos-fw-log-refuse -p tcp --syn -j LOG --log-level info --log-prefix "rejected connection: "`
<srid> So I did `journalctl | grep rejected` (and `dmesg | grep rejected`) which is empty output; implying the firewall has not rejected any connections (so I'll have to look elsewhere as to why ssh from outside just hangs ...)
<clever> srid: run tcpdump against the given interface, filtered to port 22, then try to ssh into it
<clever> srid: nixos also allows 22 thru the firewall automatically
<{^_^}> [nixpkgs] @timokau merged pull request #46991 → openal: 1.18.2 -> 1.19.0 → https://git.io/fAQVj
<srid> yup, i see that in `nix repl` by inspecting `config.networking.firewall.allowedTCPPorts`
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKJZ
<clever> srid: are the client and server on the same network?
catch22 has joined #nixos
<srid> ok, started tcpdump ... oh weird, ssh now started working instantly.
eisbaer-north has joined #nixos
<srid> but if it happens again, i'll jump to tcpdump for debugging. maybe our wifi router is behaving erratically
<srid> clever: yup, same network. my large goal here is to configure dynamic dns, so I can ssh to my 'workstation laptop' from outside (coffee shops, etc.).
<{^_^}> [nixpkgs] @timokau merged pull request #46992 → ocamlPackages.ocamlbuild: 0.12.0 -> 0.13.0 → https://git.io/fAQwr
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKJz
<clever> srid: ah, my home IP is stable enough that i just port-forward once and just setup a fairly static dns
<srid> i think my laptop IP is stable enough as well, so i have configured port forwarding in the ISP router, which also has a place to configure automatic dyn dns (noip) updates. verified it to be working so far for ports like 8000, though last time i checked it was hanging on ssh (22). gotta try it again this time.
<__monty__> Toxvpn?
<clever> srid: ah, another thing to be aware of, port forwarding often doesnt work when your inside the same network
<clever> srid: if you try to connect to 22 of the public ip, from within the network, some routers (including nixos NAT) wont forward it back into the lan
<srid> although I don't mind carrying heavy laptop (it helps develop muscles :P ) i'm not a fan of the P71 non-centered keyboard layout, which gets annoying when working with it on the lap. so thinking of just taking my macbookpro15 as a 'thin client' to coffee shops.
<srid> clever: yea; i use the intenal IP when ssh'ing from the same network, and the dyndns address when ssh'ing from outside.
<clever> srid: toxvpn would also be an option, then you have a fixed ip for both situations
* srid checks out toxvpn
<clever> srid: https://github.com/cleverca22/nixos-configs/blob/master/deployments/netbooks.nix#L18 each machine needs a localip configured, and .enable = true; set, then run `toxvpn-remote` on each, and use `help`, `status`, and `add` to form links between nodes
<srid> thanks, going down the tox rabit hole now ...
random_yanek has quit [Quit: random_yanek]
<{^_^}> [nixpkgs] @timokau merged pull request #47081 → elfutils: 0.173 -> 0.174 → https://git.io/fA7z4
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKJ9
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
<srid> clever: how does toxvpn work, if two nodes are on different network? how do they talk to each other without central server?
<srid> say node1 is my thinkpad running on home wifi. and node2 is the macbook running in coffee shop
<drakonis> i ran debootstrap and i'm getting some /bin/true errors
<clever> srid: it uses some bootstrap nodes to connect to a DHT, where it will then discover the other node's public ip, and then uses udp hole punching to form a connection
cnidario has quit [Remote host closed the connection]
<srid> ah, it has to *public* IP?
<clever> srid: it will auto-discover the public ip of the other machine, and connect to it, even if you dont forward ports
<srid> i see
<srid> so if I ssh from coffee shop, my connection is hopped from some intermediary?
<clever> it will use the intermediary nodes to discover the ip of the house, then connect directly to it
<srid> but 'ip of the house' is the router, not my thinkpad
<mpickering> urlretrieve is failing in python for me because of SSL verification errors, do I have to add a dependency on cacert or something like this?
<clever> srid: when the thinkpad connects out on udp, the router dynamicaly sets up a reverse route for the udp replies
<clever> srid: and that will allow traffic back into the thinkpad, on the router ip
<clever> thats just how ipv4 and NAT works
<srid> oh. hmm. need to up my networking knowledge :P
<srid> so about your "you have a fixed ip for both situations" - those internal IPs (of the nodes) have to be distinct.
<clever> yeah
<srid> dyndns is not required either?
<clever> yeah, you can just ignore dyndns
<srid> (well, it would be - for accessing http)
<srid> (as in, letting the outside world access my http services)
cnidario has joined #nixos
<clever> yeah, you still need dyndns for that
<{^_^}> [nixpkgs] @timokau merged pull request #48394 → libvirt-glib: 1.0.0 -> 2.0.0 → https://git.io/fxRiA
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fxKUJ
<srid> `services.toxvpn.localip = "192.168.123.64";` <- is this an arbitrary IP, or does it have to be the same as the local IP?
<clever> it must not match the LAN ip
<clever> and its best to be on a different subnet from any LAN you will be in
<clever> other then that, you can choose whatever you want
Leo` has joined #nixos
<__monty__> Examples of subnets you can use that are guaranteed not to be used in LANs?
<clever> thats a tricky part
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0da77aaaf82 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<clever> 192.168.0.0/16, 10.0.0.0/8 and 172.16.0.0/12 are the 3 official "private" networks, that will never be used on the web
<clever> 192.168.0 .1 and .2 are commonly used for home routers
<clever> .123 is high enough up there that it has a low chance of conflicting
<clever> if you ever wind up in an internet cafe that is using 192.168.123, then the vpn will only cause problems when refering to 192.168.123.64, and the rest of the cafe machines will work as-normal
<clever> it will force .123.64 to use the VPN variant of that ip, and ignore whatever the cafe had there
<clever> and usually, your only needing the router, which is generally x.y.z.1
<clever> so its not likely to cause issues
<clever> and you also have the entire 10.x.y.z space
<__monty__> So it's not foolproof, just highly unlikely?
<clever> yeah
<drakonis> https://github.com/NixOS/nixpkgs/pull/48754 anyone mind pulling this one in?
<{^_^}> #48754 (by pbogdan, 3 hours ago, open): debootstrap: fix up paths to {chroot,unshare}, small clean up
<clever> __monty__: the hamachi VPN was originally using the 5.x.y.z range, because that was under some special reserved (do not use) area on the internet
<clever> so the IP's where technically public, but unused
<clever> about 4 years ago, it ceased being reserved, random sites got IP's in that block, and they just never loaded for me
<nkaretnikov> i'm trying out the haskell gloss library in a nix-shell and it doesn't work (black screen) while it does work with new-build. has anyone seen anything like this? i bet some package is written without macos support or something. any tips on where to look would be appreciated.
<clever> __monty__: in the case of hamachi, it routed the entire 5.x.y.z to the vpn, and broke the whole IP block
<clever> __monty__: but toxvpn only routes the IP's peers have, and it wont break the whole range
<__monty__> nkaretnikov: If a package wasn't buildable on mac os you wouldn't be able to get into the nix-shell.
<nkaretnikov> __monty__: well, something certainly isn't right. it's definitely a build/shared-libraries issue. because i can't think of anything else that might cause this
<__monty__> clever: Interesting. Maybe 172... is the way to go, seems less pervasive than 192... and 10...?
spear2 has joined #nixos
<__monty__> nkaretnikov: Maybe it's because of opengl? Some programs need the nixgl wrapper to run.
<spear2> what can i do if nixos-rebuild switch --upgrade is running out of memory?
<nkaretnikov> __monty__: yes, it could be. what's the nixgl wrapper?
nDuff has joined #nixos
<__monty__> nkaretnikov: https://github.com/guibou/nixGL No idea how to apply it to development with nix-shell though. I guess you'd run your program with `nixGL program`?
<nkaretnikov> __monty__: okay, let me try that.
<judson> We already froze for 18.09, huh?
<nDuff> Does the Nix language have something equivalent to varargs support? I want to pass all arguments my function is called with through to another function, but then modify that function's returned value (so I can't just return that function directly).
<vcunat> judson: 18.09 was released, if that's what you mean
<{^_^}> vcunat: 1 week, 1 day ago <gchristensen> ping me about your mac =)
<__monty__> spear2: I get around memory issues with a remote build host. Swap might be an (albeit terrible) option?
<judson> Oh, nifty.
<vcunat> you may evaluate (and also build) on another machine, then just nix-copy-closure the result and activate on target
<judson> I've got this enormous module for my local config to get unbound+dnscrypt-proxy2+docker all playing nice, and I'm wondering what of it I should PR into nixpkgs.
romildo has joined #nixos
<spear2> __monty__: if i keep re-running the command it seems to be making progress
<vcunat> oh, it's not just during evaluation?
<vcunat> You can reduce --max-jobs and --cores
vcunat has quit [Quit: Leaving.]
<dmj`> anyone use nixops w/ aws
* judson raises hand
<judson> dmj`, what's up?
<dmj`> judson: just trying to get the trivial-ec2.nix setup
<dmj`> judson: but get The specified instance type can only be used in a VPC. A subnet ID or network interface ID is required to carry out the request.
<dmj`> judson: just want something basic, only a single server
<judson> Can you link your expression?
random_yanek has joined #nixos
<judson> I'm using a t2.micro
<dmj`> judson: are you running it in a vpc?
<dmj`> sure, one sec
<judson> I don't think so?
<dmj`> judson: has it been running for years?
<dmj`> judson: AWS somewhat recently required new instances to run in VPCs, part of their monetization gorging strategy
<judson> No? Less that 12 months I think
<spear2> __monty__: guess not, can't get past Copying path '/nix/store/...ghc-8.2.2' from https://cache.nixos.org' ... error: Nix daemon out of memory
<spear2> i have 4G of ram though? how much does nixos need?
<spear2> --max-jobs 1 --cores 1 didn't seem to help
<{^_^}> [nixpkgs] @sjmackenzie opened pull request #48760 → ndn-cpp: new pkg → https://git.io/fxKTH
<romildo> I am updating elementary-icon-theme, which started using the meson build system. Installation phase is failing:
<romildo> Failed to run install script '/usr/bin/env python3 /build/source/meson/symlink.py --src share/icons/elementary/actions --dest share/icons/elementary/actions@2x'
<romildo> FAILED: meson-install
<romildo> Any clues on how to discover why it is failing?
<dmj`> judson: how did you do it then
<dmj`> :)
<spear2> wait, does there need to be something in configuration.nix to use swap space? i know it was set up when i installed nixos
<spear2> still, swap partition is only 4G additional, hopefully that is enough
<__monty__> spear2: Don't thisk so. Check with something like lsblk?
<romildo> How do I tell meson to be verbose at the install phase?
<__monty__> I've built ghc-8.2.2 with 2G ram so it should be enough, yeah.
<spear2> __monty__: i see the partition, but MOUNTPOINT is blank
<__monty__> spear2: Try swapon, then check again?
<spear2> ok now it says [SWAP] under mount point, maybe configuration.nix needs the line `swapDevices = [ { device = "/var/swap"; size = 4096; } ];`?
<spear2> seems to be working =]
wpcarro has joined #nixos
roconnor has quit [Quit: Konversation terminated!]
<__monty__> spear2: I'd recommend against having it enabled by default. It's often not something you want on a personal machine. Trashing is super likely.
<wpcarro> I haven't been able to boot into a NixOS that I've built for about two weeks. I've been casually trying to debug it but I haven't had enough time to dig into the problem, so I've been using a derivation that I built a month ago or so and dealing with it. I'm trying to revisit this now though since I need to be able to make updates to my config. Anyways, whenever I try to boot into one of my newly created
<wpcarro> derivations, I get an error about the RNG (random number generator). It just hangs here forever and I need to force my laptop to shutdown. I'm eager to fix this but don't really have the necessary debug skills. Any pointers are graciously accepted.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9772ea03140 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
__monty__ has quit [Quit: Off to bed.]
<wpcarro> It all started when I tried to use `pkgs.linuxPackages_latest` for my kernel. I also switched from 18.03 to 18.09 for nixos channel. I imagine that either or both of these contributed to the issue. When I run `sudo nixos-rebuild switch`, I see a bunch of messages about "collisions". Are collisions okay? I've been ignoring these messages until now
youssefhabri has joined #nixos
<clever> wpcarro: depends on what is colliding
<wpcarro> I'm seeing about 50+ collisions
<wpcarro> I'm beginning to think I should just go back to 18.03
<clever> wpcarro: what is one of the things colliding?
<judson> dmj` I don't know if it makes a difference, but my ec2 config and my NixOS config are separate. So my equivalent of awsBox just takes { resources } as an argument.
jaeckel has quit [Ping timeout: 245 seconds]
<dmj`> judson: that wouldn’t make a difference
<dmj`> judson: the error is literally from AWS itself
<wpcarro> clever: collision between `/nix/store/j8qwpsg6gsw473l2cnlnmxal27ijjmz2-busybox-1.28.1/sbin/mkfs.ext2' and `/nix/store/lf059hksqx8lr8ybglpk3zrizk7nxk2c-e2fsprogs-1.44.1-bin/sbin/mkfs.ext2'
<clever> wpcarro: do you have busybox in your systemPackages?
<wpcarro> clever: I do
<judson> And I just confirmed, that instance is running in a VPC
<clever> wpcarro: remove that, it will cause a large number of problems
<wpcarro> clever: interesting... okay I'll remove. Should I stay on 18.09 for the time being as well?
<clever> wpcarro: yeah
romildo has quit [Quit: Leaving]
<wpcarro> clever: okay. rebuilding now. Should I keep an eye open for additional collisions?
<srid> I get collisions as well (to do with `git`), but I don't have busybox.
<wpcarro> clever: Idk if this is problematic or related to the errors I've seen, but I've been seeing a perl warning about locale settings being unset. Specifically `LANGUAGE = (unset), LC_ALL = (unset)`
<clever> wpcarro: ive just been ignoring those
<clever> srid: you might have 2 copies of git in your systemPackages
<srid> clever:
<srid> is it a bug that nix doesn't resolve duplicates automatically?
<clever> srid: depends on exactly how they differ, can you paste a single line of the conflict?
<srid> (i see another `gitAndTools.gitFull` from our shared work nix configuration)
<clever> srid: try removing one of those then
<infinisil> Certainly not a bug though
<infinisil> ,find build-env.nix
<{^_^}> Couldn't find any such files
<srid> i imagine that would fix it, yea, but i was wondering why nix just automatically remove duplicates
<srid> *nix doesn't just
<infinisil> ,find build-env/default.nix
<{^_^}> Couldn't find any such files
<wpcarro> clever: I'm signing off temporarily to reboot my system and try out the changes
<wpcarro> I'll be back online in 5 minutes
<infinisil> ,find buildenv/default.nix
<infinisil> See the ignoreCollisions parameter there
<infinisil> srid: ^
wpcarro has quit [Remote host closed the connection]
<srid> that ignores collisions between two *distinct* packages, no?
wpcarro has joined #nixos
<wpcarro> clever: looks like removing busybox was enough to fix the boot issues! I was originally switching to 18.09 (nixos) and 4.18 (kernel) was to avoid my WiFi dropping everytime my computer slept. Hopefully now that issue is resolved as well. Should find out shortly!
nDuff has quit [Quit: zzz]
<clever> wpcarro: busybox includes duplicates for a large number of util, that behave in slightly different ways
<wpcarro> clever: nice... useful to know it's problematic
<clever> and anoyingly, nix-env tells you to install it for all of those utils
<{^_^}> [nixpkgs] @Mic92 merged pull request #48750 → vimPlugins.clang_complete: fix path to libclang.so → https://git.io/fxo9w
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKI9
wpcarro has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #48747 → kitty: fix locating libstartup-notification-1 → https://git.io/fxoSu
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fxKLe
<{^_^}> [nixpkgs] @Mic92 pushed commit from Vaskó László to release-18.09 « kitty: fix locating libstartup-notification-1 »: https://git.io/fxKLL
<{^_^}> [nixpkgs] @Mic92 merged pull request #48759 → stern: 1.8.0 -> 1.10.0 → https://git.io/fxoj6
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKLZ
<{^_^}> [nixpkgs] @Mic92 merged pull request #48731 → cpan2nix updates → https://git.io/fxoBF
<{^_^}> [nixpkgs] @Mic92 pushed 46 commits to staging: https://git.io/fxKLl
<{^_^}> [nixpkgs] @romildo opened pull request #48761 → elementary-icon-theme: 4.3.1 -> 5.0 → https://git.io/fxKL8
cnidario has quit [Read error: Connection reset by peer]
<Church-> Hmm wonder if arcan is on nixos yet.
<Church-> So seems like a yes. Thanks samueldr for having a github
<samueldr> hi uh what?
<samueldr> Church-: had someone else in mind?
<Church-> Nope, was searching for it and your github popped up. Guess your nixpkgs has arcan in it and thus the first result
<{^_^}> [nixpkgs] @Mic92 merged pull request #48751 → freerdp: 2.0.0-rc2 -> 2.0.0-rc3 → https://git.io/fxo9y
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKLF
<Church-> Or wait no, you just starred the arcan repo
<samueldr> haha, makes more sense
<Church-> Huh and for some reason lobste.rs is in my search results for "nixos arcan"
<Church-> That's... odd
<Church-> Why not HN first.
<Mic92> There seems quite a few people there using NixOS.
<gchristensen> something something algorithms
<{^_^}> [nixpkgs] @Mic92 merged pull request #48711 → electron: 1.8.2 -> 3.0.5 → https://git.io/fxr4L
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKtL
<{^_^}> [nixpkgs] @Mic92 merged pull request #48761 → elementary-icon-theme: 4.3.1 -> 5.0 → https://git.io/fxKL8
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKtm
<{^_^}> [nixpkgs] @unode opened pull request #48762 → WIP: Add support for burp client/server services → https://git.io/fxKtY
<{^_^}> [nixpkgs] @unode closed pull request #30553 → WIP: Add support for burp client/server services → https://git.io/vdQ7G
<{^_^}> [nixpkgs] @Mic92 merged pull request #48754 → debootstrap: fix up paths to {chroot,unshare}, small clean up → https://git.io/fxobc
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxKtl
<{^_^}> [nixpkgs] @tohl opened pull request #48763 → sbcl updated, tested on nixos x86_64 → https://git.io/fxKt0
<Church-> Mic92: Well there's a few of us. Didn't realize we had hats for nix people.
<Church-> samueldr: How is arcan? Try it yet?
<Unode> if anyone versed in openssl can help with https://git.io/fxKtY feedback is welcome.
<Church-> Been waiting to get a headset and try safespaces.
<samueldr> Church-: not yet, looks so interesting though
<Church-> It does. I can't wait for a fully working vr setup!
<Church-> Think we had the dev in #lobsters for a bit actually.
jaeckel has joined #nixos
Ariakenom has quit [Quit: Leaving]
catch22 has quit [Ping timeout: 272 seconds]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
alex`` has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @jtojnar closed pull request #23494 → fix .sif saving inkscape → https://git.io/vyW1k
Guanin_ has quit [Ping timeout: 252 seconds]
<Unode> hum... how do I reference a path to a file being created by nix as a default value to a mkOption ?
<Unode> nix seems to have no issue with it but when generating the nixos manual I get an error
<{^_^}> [nixpkgs] @xeji merged pull request #48729 → perlPackages.NetSSHPerl: init at 2.14 → https://git.io/fxo8C
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « perlPackages.NetSSHPerl: init at 2.14 (#48729) »: https://git.io/fxKt7
<Unode> error: in 'toFile': the file 'options.xml' cannot refer to derivation outputs, at /var/nixpkgs-channels/nixos/nixos/doc/manual/default.nix:80:16
<clever> Unode: need to use pkgs.writeText (or writeTextFile) when the string has deps
<Unode> clever: I am.
<Unode> burp_CA_conf = pkgs.writeText "CA.cnf" ... later used as default = "${burp_CA_conf}"
<clever> Unode: also, if your default value ever contains a storepath, you must do something special
<Unode> special?
<clever> Unode: you must also set defaultText to a string, containing the same expression
<clever> so the manual can show the expression, rather then the storepath
<Unode> not sure what that means
<Unode> can you elaborate?
<clever> default = pkgs.writeText "CA.cnf" ...; causes the documentation to just say default = /nix/store/foo-CA.cnf
<clever> which is both useless, and causes the manual to depend on things it shouldnt
<clever> so you need to also defaultText = ''pkgs.writeText "CA.cnf" ...'';
<clever> then the manual can correctly render what the default is
<avn> Unode: toString, not toFile probably
<avn> but I not sure, I always very relaxed to doc stuff ;)
<fiatjaf> I'm doing a project that uses both haskell and javascript. how can I create a derivation that includes both the haskell packages and the javascript packages I need to build my thing?
<fiatjaf> I'm currently just doing the haskell side of it, creating a derivation with haskellPackages.callPackage and so on
<Unode> clever: I'm still not entirely sure I understand. The mkOption in this context is meant to be a path to a file. However this file is also being generated through nix...
jtojnar has quit [Quit: jtojnar]
<Unode> so if I understand what you are saying, the default of this mkOption should not be a file at all but the content instead?
<{^_^}> [nixpkgs] @zraexy opened pull request #48764 → marble: Fix include install to dev output → https://git.io/fxKqO
<clever> Unode: it should be the path
<clever> but that path is winding up in the docs, causing your error
<clever> so you also need a defaultText, that contains the same nix code as default, but quoted
<Unode> clever: but then I'd be duplicating the text no?
<clever> yes
<clever> with the example i just linked, the documentation would just say "default is "/nix/store/29vz9534lcvj8hw0qycf4pm9sz89zac6-ferm-2.4.1"" which doesnt mean much
<clever> but adding in defaultText, makes the docs claim "default is pkgs.ferm" which means a lot more
<Unode> ok, I think I see what you mean.
<Unode> though duplicating the text is something I don't like. Let me see if I can work around that. Thanks for your guidance, I see the issue now.
<clever> you could also just have a string explaining what the default is doing
<clever> that will probably be acceptable