sphalerite changed the topic of #nixos-dev to: NixOS Development (#nixos for questions) | NixOS 19.03 released! https://discourse.nixos.org/t/nixos-19-03-release/2652 | https://hydra.nixos.org/jobset/nixos/trunk-combined https://channels.nix.gsc.io/graph.html https://r13y.com | 19.03 RMs: samueldr,sphalerite | https://logs.nix.samueldr.com/nixos-dev
Synthetica has quit [Quit: Connection closed for inactivity]
_ris has quit [Ping timeout: 268 seconds]
<disasm> FRidh: thanks!
<disasm> so 60k builds, another 3 days
<disasm> so whats previous practice here. Do we fprk 19.09 off and merge staging-next into both or wait for hydra?
<disasm> fpletz globin samueldr sphalerite ^^
<samueldr> I don't think I've had to wait on staging when releasing
<samueldr> though I think that the less divergence there is with nixos-unstable and nixos-19.09 at the release (in the following weeks) the better it is
<samueldr> especially during zhf (zero hydra failures), if backports are harder to merge back, it's going to be a chore
<samueldr> (I have no idea what the gcc8 changes include)
phreedom_ has quit [Quit: phreedom_]
orivej has quit [Ping timeout: 268 seconds]
drakonis has quit [Ping timeout: 276 seconds]
layus has quit [Quit: ZNC 1.7.3 - https://znc.in]
layus has joined #nixos-dev
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
evanjs has quit [Client Quit]
evanjs has joined #nixos-dev
evanjs has quit [Ping timeout: 244 seconds]
evanjs has joined #nixos-dev
evanjs has quit [Ping timeout: 245 seconds]
evanjs- has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
ixxie has joined #nixos-dev
justanotheruser has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos-dev
ixxie has quit [Ping timeout: 246 seconds]
FRidh2 has joined #nixos-dev
ixxie has joined #nixos-dev
FRidh2 has quit [Quit: Konversation terminated!]
cransom has quit [Quit: WeeChat 2.4]
justanotheruser has quit [Ping timeout: 245 seconds]
justanotheruser has joined #nixos-dev
_ris has joined #nixos-dev
__monty__ has joined #nixos-dev
jtojnar has joined #nixos-dev
jtojnar has quit [Ping timeout: 244 seconds]
jtojnar_ has joined #nixos-dev
obadz has joined #nixos-dev
FRidh2 has joined #nixos-dev
<teto> I would like to transfer luarocks-nix to nixos-community, is that of interest ? who should I speak to ?
<andi-> teto: there are a bunch of people with access to it. adisbladis and zimbatm did a bunch of stuff there. Not sure how that happened to be and who they had to talk to.
<andi-> (I think I can also create repos there)
obadz has quit [Quit: WeeChat 2.5]
obadz has joined #nixos-dev
orivej has joined #nixos-dev
arianvp has quit [Quit: WeeChat 2.4]
arianvp has joined #nixos-dev
<adisbladis> teto: I can help you out a bit later
<teto> adisbladis: thanks. I might be sleeping then, but I opened https://github.com/teto/luarocks/issues/6
<{^_^}> teto/luarocks#6 (by teto, 39 minutes ago, open): transfer repo to nix-community
<adisbladis> Ok, I'll ping you when I get back home and see if you're still awake
ixxie has quit [Ping timeout: 245 seconds]
ixxie has joined #nixos-dev
<infinisil> I'm currently packaging a web server, it's listening to some port
<infinisil> What do you think would be the optimal option to expose for configuring how it can be accessed?
<infinisil> There's different ways of doing that. For one you can directly open the port, but alternatively you can run a web server in front of it that just proxies to the local port
<infinisil> And then there's different web servers for that one could use
<infinisil> I could have a separate option for each of those, but that doesn't feel right and bloats the module
<averell> i like when SSL can be proxied (because you'll never match nginx featureset, basic auth, etc) without pain. So for example forcing protocol or it understands X-Forwarded-Proto and related.
<infinisil> So that's an argument for providing nginx integration?
<infinisil> averell: ^
<infinisil> Maybe an option like `open = mkOption { type = nullOr (listOf (enum [ "open-local-port" "nginx" "httpd" ])); }` where `open = null` is the default and doesn't do anything, or you can select a set of values to enable, e.g. `open = [ "open-local-port" "nginx" ]`
<averell> maybe, if that's as easy. i can set up the virtualhost/backend myself, but i'll want to reuse certificates, or put it in a subdirectory of some other virtual host etc.
<infinisil> Yeah the implementation is rather easy
<infinisil> I'm more asking about how to expose this to the user in a concise but useful way
<infinisil> I like the enum thing, but using lists to represent a set is a bit out of place
<infinisil> and once turned on it can't be turned off again, so that's no good
<infinisil> I guess what I'll do is provide only nginx integration, it's what I'll be using, and what most people probably want to use
<infinisil> Also, nginx can be used as a replacement for opening the port directly
<infinisil> Yeah I like that
<infinisil> I'll call it `nginxIntegration`, or maybe just `nginx`
<averell> most people would think the other way around, but ok :)
<infinisil> averell: You mean most people would want to use the port directly?
<averell> i'm not sure, but at least most would think wrapping a port with nginx is natural.
<infinisil> I guess I should mention what I'm even talking about: https://github.com/NixOS/nixpkgs/pull/67664
<{^_^}> #67664 (by Infinisil, 1 week ago, open): Invidious: init
<infinisil> It's an alternative frontend for youtube, which I'd think people would mainly want to host at their servers, possibly with DNS and HTTPS
<averell> ah cool. i'll try that out later (with nginx option if it's there already :) )
<infinisil> Working on it :)
<infinisil> Actually I think I have one already there, but I'll make it a bit better
<emily> (this kind of thing is why I wish Nix had as first-class handling of exposed ports/sockets as it does files)
<infinisil> A small module I made that allows you to declare service <-> port mappings, which gets checked to make sure none are overlapping
__monty__ has quit [Quit: leaving]
andi- has quit [Remote host closed the connection]
andi- has joined #nixos-dev
FRidh2 has quit [Quit: Konversation terminated!]
evanjs- has joined #nixos-dev
<aanderse> infinisil: "I'm currently packaging a web server" what web server?
<infinisil> Well it's a web application actually
<aanderse> ah
<infinisil> I linked it above, invidious
<aanderse> k
<aanderse> i understand why you would use nginx over httpd
<infinisil> (or it is still a web server? Because you know, it acts as a server)
<aanderse> httpd needs some love
<aanderse> well its a web application which runs on a <insert language of choice> based embedded web server, i would imagine
<infinisil> Yea
<infinisil> I kind of don't want to put code in a module I won't use and other probably won't use either
<aanderse> ah so that identMap stuff worked out?
<infinisil> Indeed
<aanderse> great :)
<infinisil> Had to read some postgres docs for it
<aanderse> and with dynamic user
<aanderse> that is pretty fantastic
<aanderse> makes me think i can go back and cleanup some other modules
<aanderse> i assume insidious has no command line applications to manage it then?
<infinisil> Nope
<clever> psql identMap combined with systemd DynamicUser?
<infinisil> Yup
<infinisil> No database password required which is nice
<infinisil> Only works if you connect to the socket though
<clever> ive done that before, modeled on hydra, but it requires the user to exist
evanjs- has quit [Quit: ZNC 1.7.4 - https://znc.in]
<clever> not sure how it interacts with DynamicUser
evanjs- has joined #nixos-dev
evanjs is now known as Guest71254
evanjs- is now known as evanjs
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
evanjs has quit [Client Quit]
evanjs has joined #nixos-dev
<infinisil> Hold on, it might not work after all
<infinisil> Or it might, but right now it's weird
<infinisil> I'm pretty sure it worked at some point
<clever> psql may only lookup the uid on startup
<clever> if systemd reallocates, it could break?
<infinisil> I mean, it can *connect* to postgresql just fine, but it seems as if no reply ever arrives
<infinisil> looking at some syscalls, i continually see that it times out waiting for the postgres socket
<clever> strace psql itself?
<infinisil> Would be annoying to inject into the unit
<infinisil> I'll try to just not use DynamicUser, see if that's it
<clever> strace -p <pid>
<infinisil> Ah
<infinisil> Right, or just htop, which I already used to strace invidious :)
<clever> ctrl+c with -p will just detatch and leave it running
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
<infinisil> Yeah htop leaves it running too
evanjs has joined #nixos-dev
<infinisil> Ah it might be entirely unrelated
<infinisil> Some directory missing problem maybe
* infinisil investigates
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
drakonis has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
<infinisil> Well I still don't know, but something weird is up
<infinisil> Everything is suuper slow, it wasn't like this when I first used invidious
<infinisil> I'll stop trying to debug this for now though
cransom has joined #nixos-dev
<infinisil> One interesting bit is that the database isn't populated, at all
janneke has quit [Quit: janneke quits Mes'sing]
janneke has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
justanotheruser has quit [Ping timeout: 268 seconds]
evanjs has quit [*.net *.split]
evanjs has joined #nixos-dev
johnny101m has quit [Remote host closed the connection]
justanotheruser has joined #nixos-dev
<ivan> resulting output ends up: /nix/store/77aw8xkdgy05bccrw6lqp3vk6pyb3595-rappel-unstable-2019-07-08/rappel with no bin/
<ivan> maybe the `make` in installPhase
<ivan> nope
<ivan> this works:
<ivan> mkdir -p $out/bin
<ivan> cp bin/rappel $out/bin/
<ivan> oh $out doesn't exist of course
<adisbladis> ivan: I recommend http://ix.io/1Uxl/nix
<ivan> adisbladis: does install matter, though, after the phases are done touching it?
<ivan> ah I see that puts it into one line
<ivan> thanks, I will post that
aristid has quit [Ping timeout: 250 seconds]
jtojnar_ has quit [Quit: jtojnar_]
jtojnar has joined #nixos-dev
pie_ has quit [Quit: pie_]
pie_ has joined #nixos-dev
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nixos-dev
pie_ has quit [Max SendQ exceeded]
pie_ has joined #nixos-dev
pie_ has quit [Max SendQ exceeded]
qyliss has quit [Quit: bye]
ixxie has quit [Ping timeout: 246 seconds]
qyliss has joined #nixos-dev
aristid has joined #nixos-dev
ixxie has joined #nixos-dev
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
evanjs has joined #nixos-dev
ixxie has quit [Ping timeout: 240 seconds]
aristid has quit [Ping timeout: 268 seconds]
evanjs has quit [Ping timeout: 240 seconds]
evanjs has joined #nixos-dev