<ToxicFrog>
"value is a list where a set was expected", ok, fine, but nowhere in the stack trace is any of my code
<ToxicFrog>
So I have to manually walk through it and try to figure out where in my code it got the expression that it's blowing up on :(
glines has quit [(Ping timeout: 245 seconds)]
<NixOS_GitHub>
[nixpkgs] nbp pushed 13 new commits to master: https://git.io/vMrOu
<NixOS_GitHub>
nixpkgs/master f5dfe78 Nicolas B. Pierron: Add overlays mechanism to Nixpkgs....
<NixOS_GitHub>
nixpkgs/master 83f7d5f Nicolas B. Pierron: Add NixOS option 'nixpkgs.overlays' to set the argument of Nixpkgs.
<NixOS_GitHub>
nixpkgs/master 6a83c31 Nicolas B. Pierron: Add missing line break in the release notes.
<pierron>
crap I did a rebase & merge, instead of a squashing commits :/
zraexy has joined #nixos
zraexy has quit [(Client Quit)]
mizu_no_oto has joined #nixos
schoppenhauer has quit [(Quit: Adé)]
Kingsquee has joined #nixos
mkoenig has joined #nixos
mudri has quit [(Quit: WeeChat 1.6)]
mrkgnao has joined #nixos
iMatejC has joined #nixos
mexisme2 has joined #nixos
Kingsquee has quit [(Ping timeout: 255 seconds)]
markus1189 has joined #nixos
iMatejC has quit [(Remote host closed the connection)]
iMatejC has joined #nixos
mrkgnao has quit [(Ping timeout: 256 seconds)]
alx741_ has quit [(Quit: alx741_)]
mexisme has quit [(Ping timeout: 256 seconds)]
alx741 has joined #nixos
SirW has joined #nixos
markus1199 has quit [(Ping timeout: 260 seconds)]
Kingsquee has joined #nixos
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
angerman has joined #nixos
wkennington has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
* ToxicFrog
pokes nixops with a stick
mkoenig has joined #nixos
<ToxicFrog>
So it looks like the first time I ran it, it sshed into the target machine as me, then generated a new keypair and started using that
<ToxicFrog>
But events on the target have since invalidated that keypair
<ToxicFrog>
How do I get it to generate a new one and/or not bother generating separate keys for nixops in general?
loskutov has quit [(Remote host closed the connection)]
loskutov has joined #nixos
iMatejC has quit [(Remote host closed the connection)]
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
iMatejC has joined #nixos
glines has joined #nixos
<ToxicFrog>
Argh. I'm in a state where nixops can't ssh into the machine because the keypair it generated is invalid, but I also can't delete the deployment state in nixops because "it still has resources"
<ToxicFrog>
Ok, fixed that, but it's still not addressing the problem where my packageOverrides aren't getting applied
<ToxicFrog>
...are imports just not getting resolved at all? I can fill overrides.nix with syntax errors and 'nixos deploy' still runs
systemfault has quit [(Quit: Bye!)]
<pikajude>
can anyone build any part of rustUnstable?
mrkgnao has joined #nixos
<pikajude>
i can't because i have the sandbox enabled
<MoreTea>
@pikajude, that's weird. I was able to do that ~1 or 2 weeks ago
<pikajude>
nice
<pikajude>
yeah, fails for me because it can't contact github.com
<pikajude>
obviously, since networking is disabled in the sandbox
glines_ has joined #nixos
<ToxicFrog>
Ok, at least part of the problem was that I was editing the file on the wrong machine. Whoooops.
<ToxicFrog>
Now I just need to figure out how to get the contents of /etc/nixos to reflect the state of the machine as described in nixops so that an errant "nixos-rebuild switch" doesn't completely hose everything
ilja_kuklic has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Ping timeout: 260 seconds)]
MoreTea has quit [(Ping timeout: 248 seconds)]
mrkgnao has quit [(Ping timeout: 252 seconds)]
mkoenig has joined #nixos
glines_ has quit [(Ping timeout: 240 seconds)]
Mathieu has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig has joined #nixos
<gchristensen>
hrmm LnL it stopped :|
johnsonav has quit [(Ping timeout: 240 seconds)]
mk-fg has quit [(Quit: o//)]
LnL has quit [(Remote host closed the connection)]
altphi has quit [(Quit: altphi)]
altphi has joined #nixos
LnL has joined #nixos
<gchristensen>
lol my hydra filled up 100GB in just a couple hours
<gchristensen>
ok on to an s3 cache I go :)
irctc185 has joined #nixos
dfranke_ has joined #nixos
dfranke has quit [(Disconnected by services)]
dfranke_ is now known as dfranke
glines_ has joined #nixos
justin_ has quit [(Ping timeout: 259 seconds)]
feepo has quit [(Quit: Connection closed for inactivity)]
<irctc185>
Hey all, if I have two different nixpgs, how do I install packages from both of them? Can I do this in the system environment?
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
derjohn_mob has quit [(Ping timeout: 258 seconds)]
zraexy has joined #nixos
copumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
<hodapp>
huh, I'm updating services.nginx.httpConfig (inside a container), but nowhere am I seeing nginx being run with this new configuration data
sellout- has quit [(Ping timeout: 260 seconds)]
sellout-1 has joined #nixos
<hodapp>
'systemctl status' on the container is showing nginx being run with some other configuration, likewise 'nixos-container root-login' and looking at what's running?
derjohn_mob has joined #nixos
<hodapp>
yeah, if I don't run it inside a container, it's still just running nginx with what looks like the default configuration
<hodapp>
okay, I just set values for httpConfig, appendHttpConfig, config, and appendConfig... at no point does it ever appear to be running nginx with a configuration containing anything I put in those variables
<hodapp>
however, it *is* paying attention to services.nginx.statusPage
<hodapp>
I am really confused now
altphi has joined #nixos
altphi has quit [(Client Quit)]
altphi has joined #nixos
<pikajude>
ok, where's ld-linux on nixos
<pikajude>
i can't find it
Fare has joined #nixos
<pikajude>
ah, it's in glibc
<pikajude>
okay, that's fine
<pikajude>
what should I do if I want to run rustup? it's not packaged, and none of the rust packages will build at the moment
<pikajude>
should I write a FHS env for it?
hexagoxel has quit [(Ping timeout: 240 seconds)]
matthewbauer has joined #nixos
systemfault has joined #nixos
ntc has quit [(Ping timeout: 252 seconds)]
mexisme has joined #nixos
mexisme2 has quit [(Read error: Connection reset by peer)]
hexagoxel has joined #nixos
matthewbauer has quit [(Ping timeout: 252 seconds)]
matthewbauer has joined #nixos
ryanartecona has joined #nixos
altphi has quit [(Quit: altphi)]
ntc has joined #nixos
glines_ has quit [(Ping timeout: 260 seconds)]
Lowl3v3l has quit [(Remote host closed the connection)]
glines has quit [(Ping timeout: 258 seconds)]
mguentner has quit [(Quit: WeeChat 1.6)]
nekroze has joined #nixos
<nekroze>
Is it possible to just override a specific step in a package from nixpkgs? Like the buildPhase?
mguentner has joined #nixos
justanotheruser has quit [(Ping timeout: 256 seconds)]
ericsagn1 has quit [(Ping timeout: 245 seconds)]
georges-duperon has quit [(Quit: Leaving)]
mkoenig has quit [(Read error: Connection reset by peer)]
dram_phone has quit [(Read error: Connection reset by peer)]
johnsonav has quit [(Ping timeout: 245 seconds)]
cransom has joined #nixos
Fare has quit [(Quit: Leaving)]
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
mkoenig has quit [(Ping timeout: 252 seconds)]
mkoenig has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
seagreen has quit [(Quit: WeeChat 1.6)]
mkoenig has quit [(Read error: Connection reset by peer)]
MercurialAlchemi has joined #nixos
reinzelmann has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
Mathieu is now known as MathieuL
glines_ has quit [(Ping timeout: 256 seconds)]
mkoenig has joined #nixos
fritschy has joined #nixos
<LnL>
gchristensen: yeah, that's not going to be enough storage to build all the things
<pikajude>
how do I enable the vulkan driver on my system?
mkoenig has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
aph has left #nixos ["WeeChat 1.0.1"]
mrkgnao has joined #nixos
phanimah1sh has joined #nixos
phanimahesh has quit [(Ping timeout: 240 seconds)]
<Ralith>
stable doesn't have a working vulkan stack
<Ralith>
you need to be on unstable
<Ralith>
and then it's just a matter of having a vulkan-supporting driver installed (intel and AMD do, not sure if nvidia's is wired up in NixOS in particular yet) and handling application dependencies as usual
<pikajude>
oh ok, so it might not be
<pikajude>
well, followup question
systemfault has quit [(Quit: Bye!)]
<pikajude>
when i launch a game with wine steam it changes my screen resolution and then launches the game
<pikajude>
but when the game exits, my resolution doesn't get changed back
<pikajude>
and even if I xrandr --auto my display it doesn't get the right aspect ratio
<Ralith>
can't help you with that
coub has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
mkoenig_ has joined #nixos
pi3r has joined #nixos
teknico has joined #nixos
edvorg has joined #nixos
goibhniu has joined #nixos
phanimah1sh has quit [(Ping timeout: 240 seconds)]
mkoenig_ has quit [(Ping timeout: 240 seconds)]
ronny has joined #nixos
goibhniu has quit [(Ping timeout: 256 seconds)]
mkoenig has joined #nixos
zagy has joined #nixos
ambro718 has quit [(Ping timeout: 260 seconds)]
ckauhaus has joined #nixos
nschoe has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
civodul has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
asseadinho has joined #nixos
phanimahesh has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
avn has quit [(Remote host closed the connection)]
<LnL>
pikajude: setting a resolution with xrandr might help
feepo has joined #nixos
mkoenig has quit [(Read error: Connection reset by peer)]
rly has joined #nixos
thc202 has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
<dweller>
pikajude: set up virtual desktop in wine
<dweller>
fullscreeen wine does that since begining of time
cpennington has quit [(Remote host closed the connection)]
<gchristensen>
niksnut: I'm getting segfaults from hydra-queue-runner when trying to run it with an s3 store where the machine isn't in aws. does the s3-backed store support being passed in credentials other ways?
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 256 seconds)]
Itkovian_ has quit [(Client Quit)]
__Sander__ has joined #nixos
Itkovian has joined #nixos
pi3r has quit [(Ping timeout: 245 seconds)]
<peti>
Profpatsch: You mean in ghc-wrapper?
Shou has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to release-16.09: https://git.io/vMotM
<NixOS_GitHub>
nixpkgs/release-16.09 d84e9e7 Franz Pletz: gnupg: build with sqlite to enable TOFU...
<NixOS_GitHub>
nixpkgs/release-16.09 3224c6c Peter Simons: Merge pull request #21924 from Mic92/backport-tofu...
pi3r has joined #nixos
Shou has joined #nixos
<niksnut>
gchristensen: yes, put them in ~/.aws/credentials
pi3r2 has joined #nixos
<gchristensen>
niksnut: where ~/ is the home of hydra-queue-runner? or which user?
<LnL>
that way you can use some external storage for that
dramforever has quit [(Ping timeout: 255 seconds)]
<LnL>
domenkozar: so if you change that it'll still build stuff targeting /nix/store?
* domenkozar
shrugs
Havvy has joined #nixos
<niksnut>
LnL: yes, however using file:/// will build a binary cache
isHavvy has quit [(Ping timeout: 258 seconds)]
<niksnut>
oh and you can't build on a file:/// store
<niksnut>
so you need separate build machines
<LnL>
gchristensen: ^ maybe the san idea might work with this?
<gchristensen>
yeah maybe
phanimahesh has quit [(Read error: Connection reset by peer)]
georges-duperon has joined #nixos
<LnL>
and since it creates a cache you could serve it to the builders
<LnL>
(unless that happens automatically)
dram_nixos has joined #nixos
<domenkozar>
my favourite error message
<domenkozar>
error: infinite recursion encountered, at undefined position
nirvana has joined #nixos
<simpson>
Hm. i guess that I should see if I can update my Hydra.
<gchristensen>
domenkozar: can you put together an index of hydras you know of and their configuration repos? :)
<simpson>
I haven't been able to build a Hydra for many weeks; is that kind of situation normal? I'm trying right now with master to see if it's finally fixed...
<LnL>
simpson: I have master running with two changes
<gchristensen>
it is very helpful when figuring things out
<domenkozar>
LnL: do submit them upstream :)
<domenkozar>
at least make a WIP PR
<simpson>
LnL: Related to the AWS SDK by chance?
<simpson>
Is there a way to build Hydra without AWS support? I don't use that feature.
<simpson>
gchristensen: So my 15.09 machines in the cloud, which are running a branch based on unstable... When do we stop supporting the 15.09 stateVersion?
<gchristensen>
theoretically never
<simpson>
Aha, so I just have to know this. Joy~
<LnL>
I was wondering what that was actually used for
<simpson>
And I suppose that if Hydra ever requires Pg 9.5+, then I'll just get a breakage at some point with no useful error message.
<LnL>
shouldn't it be used for more stuff or not at all?
<gchristensen>
I doubt it, many things can be gracefully upgraded
<gchristensen>
host keys can't because then you think you're being MITM'd, and I'm not sure about this pgsql thing :)
<simpson>
Well, at least now I know, and knowing is half the battle.
* simpson
GI-JOE
ryanartecona has joined #nixos
Shou has quit [(Ping timeout: 240 seconds)]
dtz has quit [(Read error: Connection reset by peer)]
baldo[m] has quit [(Remote host closed the connection)]
Shell has quit [(Remote host closed the connection)]
Yaniel has quit [(Remote host closed the connection)]
davidar has quit [(Remote host closed the connection)]
Ralith has quit [(Remote host closed the connection)]
musicmatze[m] has quit [(Remote host closed the connection)]
primeos[m] has quit [(Remote host closed the connection)]
MrAxilus[m] has quit [(Remote host closed the connection)]
ntninja has quit [(Remote host closed the connection)]
mindB has quit [(Read error: Connection reset by peer)]
eqyiel[m] has quit [(Read error: Connection reset by peer)]
nhooyr has quit [(Read error: Connection reset by peer)]
cinderfish[m] has quit [(Read error: Connection reset by peer)]
scott has quit [(Read error: Connection reset by peer)]
mythmon- has quit [(Read error: Connection reset by peer)]
unlmtd[m] has quit [(Remote host closed the connection)]
prose[m] has quit [(Remote host closed the connection)]
bennofs_matrix has quit [(Remote host closed the connection)]
M-Shrike has quit [(Remote host closed the connection)]
lfont[m] has quit [(Remote host closed the connection)]
philipp[m] has quit [(Write error: Connection reset by peer)]
bendlas has quit [(Write error: Connection reset by peer)]
herzmeister[m] has quit [(Write error: Connection reset by peer)]
masia[m] has quit [(Write error: Connection reset by peer)]
ArdaXi[m] has quit [(Write error: Connection reset by peer)]
aspiwack[m] has quit [(Write error: Connection reset by peer)]
M-Rym has quit [(Write error: Connection reset by peer)]
xj9[m] has quit [(Write error: Connection reset by peer)]
jack[m] has quit [(Write error: Connection reset by peer)]
bachp has quit [(Write error: Connection reset by peer)]
regnat[m] has quit [(Write error: Connection reset by peer)]
SShrikeM has quit [(Write error: Connection reset by peer)]
jcl[m] has quit [(Write error: Connection reset by peer)]
icetan has quit [(Write error: Connection reset by peer)]
offlinehacker[m] has quit [(Write error: Connection reset by peer)]
M-manveru has quit [(Write error: Connection reset by peer)]
zimbatm[m] has quit [(Write error: Connection reset by peer)]
saintaquinas[m] has quit [(Write error: Connection reset by peer)]
bzf[m] has quit [(Write error: Connection reset by peer)]
rycee[m] has quit [(Write error: Connection reset by peer)]
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
systemfault has joined #nixos
iyzsong has quit [(Quit: bye.)]
MercurialAlchemi has joined #nixos
bin8me has joined #nixos
Itkovian has joined #nixos
JagaJaga has quit [(Ping timeout: 256 seconds)]
bin7me has quit [(Ping timeout: 248 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<dram_nixos>
Uh, I think I'm still missing a tutorial on FHS envs
<dram_nixos>
How do you find out what packages a binary needs?
<gchristensen>
you're welcome :) the manuals are split up in to logical chunks, but it can be hard to see wherethe lines are as a new person
<dram_nixos>
Yeah, and it doesn't really say how to find all the packages it needs
cinderfish[m] has joined #nixos
<simpson>
dram_nixos: Sorry, I should have said more words. For a given binary, you're going to have to go look at the documentation from the binary's vendor.
mckeankylej has quit [(Ping timeout: 260 seconds)]
<simpson>
You can use ldd on the binary to get hints about what kinds of libraries it needs. (Don't use ldd on untrusted binaries in a trusted context! It can run arbitrary code!)
<simpson>
Also strace can tell you what kinds of files it's looking for or what kinds of subprocesses it's trying to run. (Again, unsafe.)
<dram_nixos>
Oh ldd doesn't work normally but it works inside an FHS env
<gchristensen>
niksnut: looks like I got it running
<dram_nixos>
Anybody worked with netease-cloud-music before?
<dram_nixos>
ldd gives 38 unique lines (according to sort -u | nl) with 'not found' in them :(
danharaj has joined #nixos
<simpson>
dram_nixos: Don't worry, many of those are probably from a single GUI toolkit. Pastebin?
nckx has quit [(Ping timeout: 256 seconds)]
MercurialAlchemi has quit [(Ping timeout: 245 seconds)]
zagy has quit [(Quit: Leaving.)]
<LnL>
gchristensen: nice! did you set it up with s3 or the other thing?
<gchristensen>
LnL: yeah, I got s3 working :)
<LnL>
hopefully it gets through the eval now
<gchristensen>
LnL: with 400MBit/s up and 800MBit/s down, the locality of s3 isn't really my biggest concern :P
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nckx has joined #nixos
<dram_nixos>
Uh, edited
<simpson>
dram_nixos: Try adding qt5 and see how much is left after that.
<LnL>
gchristensen: I had another question about the build machines, what about the poor darwin people? :)
<gchristensen>
LnL: yeah good question :P
<gchristensen>
LnL: there aren't many "we host darwin machine" companies out there :/
schoppenhauer has joined #nixos
<LnL>
I know, I wish apple would just change their stupid policy
<gchristensen>
agreed
glines_ has joined #nixos
<gchristensen>
but if someone manages to get a rack of macs I'd happily hook it up
<dram_nixos>
Before I did that, I added libX11 and it got down from 38 to 37. Added atk and 37 -> 36. Let's hope it ends at 0
<dram_nixos>
:)
fritschy has quit [(Quit: Leaving.)]
<gchristensen>
and actually lnl if someone manages to get a rack of systems running macOS/OSX I'd hook it up ;)
nschoe_ has joined #nixos
xj9[m] has joined #nixos
herzmeister[m] has joined #nixos
jack[m] has joined #nixos
primeos[m] has joined #nixos
MrAxilus[m] has joined #nixos
bachp has joined #nixos
Yaniel has joined #nixos
M-manveru has joined #nixos
jcl[m] has joined #nixos
M-Rym has joined #nixos
ntninja has joined #nixos
mindB has joined #nixos
unlmtd[m] has joined #nixos
<LnL>
I'm still hoping copumpkin will get xnu working somehow
SShrikeM has joined #nixos
aspiwack[m] has joined #nixos
ArdaXi[m] has joined #nixos
eqyiel[m] has joined #nixos
bzf[m] has joined #nixos
philipp[m] has joined #nixos
prose[m] has joined #nixos
offlinehacker[m] has joined #nixos
rycee[m] has joined #nixos
icetan has joined #nixos
masia[m] has joined #nixos
bennofs_matrix has joined #nixos
bendlas has joined #nixos
M-Shrike has joined #nixos
mythmon- has joined #nixos
nhooyr has joined #nixos
davidar has joined #nixos
Shell has joined #nixos
saintaquinas[m] has joined #nixos
baldo[m] has joined #nixos
zimbatm[m] has joined #nixos
Shou has quit [(Ping timeout: 252 seconds)]
Ralith has joined #nixos
regnat[m] has joined #nixos
scott has joined #nixos
musicmatze[m] has joined #nixos
lfont[m] has joined #nixos
dtz has joined #nixos
<dram_nixos>
Huh? still 36?
<dram_nixos>
Did you mean qt5.full?
<edofic>
Is anyone here using bower2nix / fetch-bower? I cannot download any bower packages if I run it inside nix-build . I even found an issue ( #18454) but it says it's fixed.
<dram_nixos>
But it doesn't have the .so's
<copumpkin>
:)
<dram_nixos>
Can I search for package by file name?
johnsonav has joined #nixos
<LnL>
copumpkin: if we have that we can also build all the prs for darwin
<dram_nixos>
Because all I know about those libs are their file names
systemfault has quit [(Quit: Bye!)]
<LnL>
at least that's what I'm hoping
<dram_nixos>
simpson, ^ :(
FrozenCow_ has joined #nixos
ttuegel has joined #nixos
roconnor has joined #nixos
zagy has joined #nixos
srk has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
<srk>
hi, any idea why my grub configuration from /boot/grub.cfg is not loaded on boot? like if the different file was loaded on boot
<srk>
fresh install, boot resides on /dev/sdb1, correctly mounted and updated from nixos
proteusguy has joined #nixos
Itkovian has joined #nixos
ttuegel has quit [(Remote host closed the connection)]
FrozenCow_ has quit [(Ping timeout: 260 seconds)]
nschoe_ has quit [(Quit: Program. Terminated.)]
<NixOS_GitHub>
[nixpkgs] Baughn opened pull request #21930: pam: Support Google Authenticator for OTPs (master...pam-googleauth) https://git.io/vMoEP
<gchristensen>
the problems you find when starting a new hydra are fun ...
<gchristensen>
"output path ‘/nix/store/ir3lsvgbzqsdms080l7hg59xrdfpvsfw-opengrok-0.12.1.tar.gz’ has sha256 hash ‘0z7kxr1faw7iziz27wk9aczw3aq4mp92r3f93kykqyrr6siqpbwa’ when ‘0ihaqgf1z2gsjmy2q96m0s07dpnh92j3ss3myiqjdsh9957fwg79’ was expected"
<dram_nixos>
Gotta go to sleep :) Back to FHS tomorrow
<LnL>
why can't people just leave their releases alone :p
dram_nixos has quit [(Quit: Leaving)]
<gchristensen>
output path ‘/nix/store/3r9qz960rinhnzm3pva500pjv0gwnpgg-qtbug-48321-dont-invalidate-backing-store.patch’ has sha256 hash ‘0m8p9g0vi1ywmgwb99rllqki4ljrxi07w93a87aza9cgnmcrav4q’ when ‘07vnndmvri73psz0nrs2hg0zw2i4b1k1igy2al6kwjbp7d5xpglr’ was expected too
<gchristensen>
LnL: right? :P
rmeis has joined #nixos
<gchristensen>
I think I need to setup a statsd system to get the good info hydra emits
simendsjo has joined #nixos
<srk>
ah, somehow there's another boot hidden on root that gets loaded first
<srk>
how can I force grub to load grub.cfg from first (boot) partition? delete it from root?
dbe has quit [(Quit: leaving)]
Itkovian has quit [(Read error: Connection reset by peer)]
georges-duperon has quit [(Ping timeout: 252 seconds)]
<NixOS_GitHub>
[nixpkgs] bobvanderlinden opened pull request #21931: nginx: added serverName option for virtualHosts (master...pr-nginx-virtualhost-servername) https://git.io/vMozh
FrozenCow has quit [(Remote host closed the connection)]
simendsjo has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #21932: [don't merge] qt55.qtbase: fix patch sha with fetchpatch instead of fetchurl (master...qt55-qtbase-fix-patch) https://git.io/vMo2o
simendsjo has joined #nixos
sellout-1 has quit [(Quit: Leaving.)]
Itkovian_ has joined #nixos
pi3r has quit [(Ping timeout: 258 seconds)]
<gchristensen>
simpson: may I PM?
<simpson>
gchristensen: Sure.
Itkovian has quit [(Ping timeout: 255 seconds)]
<cheshircat>
Hello, I'm trying to deploy a python application on nixops, and I'm not sure how to write a nix package for my python app. It has a couple pypi dependencies and a python library and some scripts that call that python library. I'm developing just using a virtualenv, so I haven't figured out how to build it with nix yet
Itkovian_ has quit [(Read error: Connection reset by peer)]
magnetophon has joined #nixos
<cheshircat>
I've read the manual section on python packaging, but it's unclear how, in a standalone default.nix file, you record dependencies
<simpson>
cheshircat: Well, to handle deps, you produce a Python that has all of your dependencies bundled, like this:
<cheshircat>
How would I put that into a default.nix?
<cheshircat>
I've done development with nix-shell using python3.withPackages ( [ ... ] )
<simpson>
And then you'd run your script with "${env}/bin/python your_app.py"
<simpson>
Or e.g. "${env}/bin/twistd -n web --wsgi my.cool.wsgi.app" for running WSGI with Twisted Web.
<simpson>
Do you want something standalone or with nixops?
<cheshircat>
I want something with nixops
<cheshircat>
As far as I could tell, that meant building it as a package
<cheshircat>
but maybe I'm wrong?
<cheshircat>
I have my scripts in the bin directory of my python package (which is properly packaged with setup.py etc.), so if I install the package with pip I get the scripts in my path, is there a way to do that with a nix package?
kyod has quit [(Ping timeout: 245 seconds)]
Shou has joined #nixos
<NixOS_GitHub>
[nixpkgs] Baughn closed pull request #21417: ddclient: Make it work. (master...master) https://git.io/vMfXG
<simpson>
If you install your package with buildPythonPackage, then you'll get your executable scripts in the right place, yes.
bin8me has quit [(Read error: Connection reset by peer)]
alx741 has joined #nixos
<NixOS_GitHub>
[nixpkgs] Baughn opened pull request #21933: ddclient: Don't include blank server= lines. (master...master) https://git.io/vMooU
<cheshircat>
Sorry, but I'm not sure how to do dependencies with buildPythonPackage if I'm not in the toplevel python-packages.nix file where they just do with self; [ ... ]
<simpson>
with python27.packages; [ ... ]
<cheshircat>
Ah, thank you
<simpson>
Er, sorry, with pkgs.python27Packages; [ ... ]
<cheshircat>
So I have to have { ... buildPythonPackage, python3Packages ... }: as the top bit, and then for buildInputs = with python3Packages; [ ... ]
<gchristensen>
MoreTea: (ノ◕ヮ◕)ノ*:・゚✧
<MoreTea>
building PR's for nixpkgs on a real hydra? That would be awesome.
<gchristensen>
we'll see how it goes :)
<simpson>
cheshircat: Sounds about right.
<MoreTea>
Do you plan to use a buildbot like Rust uses?
<cheshircat>
OK! Thank you so much!
<gchristensen>
MoreTea: what is that?
<simpson>
cheshircat: Note that maybe this means that your project shouldn't get its own top-level default.nix but should just go into the top-level Python package list.
<simpson>
But I don't really understand the structure that you're building.
<cheshircat>
I'm not making a package to put into nixpkgs
<cheshircat>
Maybe I should just use your thing with the env
<cheshircat>
But I thought that you needed your thing to be a python package in order to get deployed to the servers...
<cheshircat>
*nix package
<cheshircat>
how do you get your script onto the server?
<simpson>
In this case, my code is calling buildPythonPackage; in another case, I have a single file that I load with `mainApp = ./mainApp.py`
<cheshircat>
Could you send me how you use buildPythonPackage?
<MoreTea>
They basically have a GitHub bot that responds to '@'-mentions. They use it to test merges of branches in master, and then test the new master before they merge the commit in master. Only the bot merges stuff into master. That way, you will never have a master with broken tests
<gchristensen>
interesting
<MoreTea>
Basically they use it to work around the limited permissions available in GitHub.
<gchristensen>
right now this is just an experiment, nothing official and nothing with merge rights
<MoreTea>
Sure. But think of a workflow that would consist of 1) code review by someone, that would write a comment "@botname r+" to mark it as ready to merge, after which the bot would trigger a build on Hydra and report back the status. If it's green, the bot would automatically merge the PR.
<cheshircat>
Well, I'll try some things, and hopefully they will work
<cheshircat>
thank you for your help
altphi has joined #nixos
<MoreTea>
I should look deeper into Hydra some time.
<gchristensen>
MoreTea: that would be very cool:)
derjohn_mob has quit [(Ping timeout: 258 seconds)]
p0le has joined #nixos
<NixOS_GitHub>
[nixops] Nadrieril opened pull request #585: libvirt: Allow more complex network setups (master...libvirt-networking) https://git.io/vMoPq
pi3r has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
Vorpal has quit [(Ping timeout: 248 seconds)]
seanz has joined #nixos
seagreen has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
phanimahesh has quit [(Ping timeout: 240 seconds)]
sellout- has quit [(Ping timeout: 240 seconds)]
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
sellout- has joined #nixos
rly has quit [(Ping timeout: 252 seconds)]
lassulus has quit [(Changing host)]
lassulus has joined #nixos
justin_ has joined #nixos
p0le has quit [(Quit: WeeChat 1.6)]
pi3r has quit [(Ping timeout: 258 seconds)]
civodul has quit [(Remote host closed the connection)]
Lowl3v3l has quit [(Ping timeout: 255 seconds)]
ckauhaus has quit [(Quit: Leaving.)]
Lowl3v3l has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
johnsonav has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] leemachin opened pull request #21934: rubocop: init at 0.47.0 (master...rubocop) https://git.io/vMo9I
glines has quit [(Ping timeout: 240 seconds)]
bfrog has joined #nixos
johnsonav has joined #nixos
<MaZ->
https://ptpb.pw/jeWn hmmmm... gotta be a nicer way to merge these configs im mkExtra but... brain isn't working :(
sellout-1 has joined #nixos
sellout- has quit [(Ping timeout: 248 seconds)]
nschoe has quit [(Quit: Program. Terminated.)]
SyrupThinker[m] has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
cpennington has joined #nixos
georges-duperon has quit [(Ping timeout: 252 seconds)]
hotfuzz_ is now known as hotfuzz
magnetophon has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vMo5d
<NixOS_GitHub>
nixpkgs/master fec95a4 Svein Ove Aas: ddclient: Don't include blank server= lines.
<pmahoney>
i made a docker image with pkgs.dockerTools.buildImage (with null "from" image), and when i `docker run` it, there is no /proc filesystem, unlike, say, when i `docker run -ti busybox`. the thing i'm running is failing to read /proc/cpuinfo; not sure what to look for to make /proc behave like it does in busybox
lverns has joined #nixos
kampfschlaefer has joined #nixos
<HappyEnte>
Hey is there any way to pass a nix-shell a command to run :)? Similar to sh -c?
<pmahoney>
HappyEnte: --command ? see nix-shell --help
<pmahoney>
or --run for non-interactive
<HappyEnte>
pmahoney: works like a charm thank you very much :)
acowley_away is now known as acowley
mbrgm has joined #nixos
<srk>
pff, getting curl: (35) Unknown SSL protocol error in connection to cache.nixos.org:443
<srk>
random failures.. how do you solve such thing?
<pmahoney>
srk: hm, some nix programs read CURL_OPTS (spelling?) from the environment; you can try running with CURL_OPTS=-v
Lowl3v3l has quit [(Ping timeout: 256 seconds)]
mbrgm has quit [(Client Quit)]
<pmahoney>
at least i thought; not finding the place where that happens...
Lowl3v3l has joined #nixos
<srk>
pmahoney: lol, it worked now
ixxie has joined #nixos
<pmahoney>
it may also be CURL_FLAGS or NIX_CURL_FLAGS (in case you ever need it)
<lverns>
question: Say my packages has foo as one of its buildInputs. How do I interact with that foo in, say, the preConfigure stage?
sellout-1 has quit [(Ping timeout: 252 seconds)]
<lverns>
That is, how do I use get the string "/nix/store/bigLongHash-foo/" in order to interact with the files stored there?
<pmahoney>
lverns: preConfigure = '' ls ${foo} '';
UgJkA is now known as lahey
justin_ has joined #nixos
lahey is now known as UgJkA
cpennington has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
<c0bw3b>
ixxie : nice stickers! :p
<lverns>
pmahoney: that works, thanks
<ixxie>
c0bw3b: yeah, apparaently Nix Hydra also makes a 'hot guy alarm clock' as well as a variety of tamaguchi knock-offs (http://www.nixhydra.com/)
<LnL>
ixxie: he switched careers, got tired of compiling stuff
rmeis has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
<c0bw3b>
the job explicitly advertise a "diverse team making mobile games for a predominately female fan base"
<c0bw3b>
so yheah was probably more interesting than mass rebuilding darwin again :p
maurerv6 has joined #nixos
<maurerv6>
So, the router at my local cafe evidently got an ipv6 uplink
<maurerv6>
this would be fine, except for whatever reason, my (bog-default) nixos networking seems to see that it can get an ipv6 address
<maurerv6>
and then not get a real ipv4 one
<maurerv6>
instead opting for an ipv4LL address which is unrouted
<maurerv6>
Apologies if this is easy to find the answer to normally, but right now I can basically only see stuff served off a select few sites (e.g. google.com, freenobe)
<maurerv6>
since they need quad A records
sellout- has quit [(Ping timeout: 258 seconds)]
<pmahoney>
to answer my original question, it seems you need to have "mount" command available in the docker image, and then you get a "/proc". not sure if that's true in general (what about all those "minimal" containers that have a single statically-compiled binary; do they not have "/proc"?)
moio` has joined #nixos
sellout- has joined #nixos
<moio`>
hi! How do you guys declare the existence of other dotfiles inside your nix config? I mean, say you'd have a .xmonad or something and you want to sort of stick your nix config to that particular xmonad configuration.
reinzelmann has quit [(Ping timeout: 248 seconds)]
<lverns>
maurerv6: oh that is painful. So `ip addr` only shows the ipv6 address?
sellout- has quit [(Read error: Connection reset by peer)]
<maurerv6>
lverns: No, it has both an ipv6 and an ipv4 address, but the ipv4 address is an ipv4LL address (e.g. 169.254.32.237/16)
sellout- has joined #nixos
<lverns>
maurerv6: huh, I didn't even know there was such a thing. So... yeah, no idea how to fix that.
sellout- has quit [(Ping timeout: 245 seconds)]
<maurerv6>
lverns: Do you know how to disable ipv6 in configuration.nix?
contrapumpkin has joined #nixos
<maurerv6>
It's cool that I've got an ipv6 address and all, but I don't need one at the moment, and I kind of do need a v4 address
<maurerv6>
(nixos cache is ipv6 acessible, which is A+)
<maurerv6>
(but the manual is not)
<contrapumpkin>
making some progress on rewriting NixOS image stuff
<contrapumpkin>
if anyone's following
<contrapumpkin>
unfortunately the nixos-install script is insufficient
<contrapumpkin>
is it only doing that because it might try to update the DB?
<contrapumpkin>
perhaps some combination of NIX_DB_DIR and other vars to affect the store location?
<Dezgeg>
maybe you can do some trickery to have <nixpkgs> copied to the builder store at eval time, then include it to the image's closure, then symlink manually
<contrapumpkin>
already copying the store into the destination
<contrapumpkin>
err, the channel
goibhniu has joined #nixos
<maurerv6>
OK, nixos-rebuild switching, hopefully I land in ipv4land
maurerv6 has quit [(Quit: WeeChat 1.6)]
reinzelmann has joined #nixos
<Dezgeg>
right, so then do that in the same step where the store paths are registered valid in the target db
<contrapumpkin>
(the $srcs instead of $src throws me off)
<Dezgeg>
well, it's quoted there : nix-env -i "$srcs" so it shouldn't be...
<contrapumpkin>
oh, true
<moio`>
does someone know why this has no effect: environment.variables = { "MY_ENV_VAR" = "hello"; };
<gchristensen>
moio`: did you start a new shell?
<moio`>
yes
<gchristensen>
hmm you may need to log out and back on?
jgertm has joined #nixos
<Dezgeg>
so that's already coded actually: nixos/modules/installer/cd-dvd/channel.nix
maurerv6 has joined #nixos
<maurerv6>
No dice
<maurerv6>
It just only gets an ipv4LL
<maurerv6>
others around me are able to access websites fine, so I don't think it's a broken router
<contrapumpkin>
Dezgeg: thanks
<contrapumpkin>
Dezgeg: I get the feeling that's already happening here somehow, because I get the "dumping big path" message every time I build
<contrapumpkin>
but I'll track that down later I guess
<Dezgeg>
probably yes
<moio`>
@gchristensen really? The doc says "These variables will be set on shell initialisation."
mexisme has quit [(Ping timeout: 240 seconds)]
<gchristensen>
moio`: I don't know, just trying to help :)
gciolli has joined #nixos
<moio`>
sure, just wanna avoid to log out ;-) this option is for system wide vars, maybe there is another one for individual users..
mkoenig has quit [(Remote host closed the connection)]
sitedyno has quit [(Ping timeout: 256 seconds)]
<contrapumpkin>
hmm, Dezgeg: error: path ‘/tmp/nix-build-nixos-disk-image.drv-0/root/nix/store/jzpfij4xi002lh244cl4y0a6cl3zc1hc-nixos-17.03.git.289782b’ does not exist and cannot be created
<contrapumpkin>
but the path is there :/
mexisme has joined #nixos
<Dezgeg>
I guess it has the extra '/tmp/nix-build-nixos-disk-image.drv-0/root' in front?
rmeis has quit [(Ping timeout: 240 seconds)]
<contrapumpkin>
well, I'm assembling the "target" rootfs inside a temp builder dir
<contrapumpkin>
then I put it into an image
<Dezgeg>
and run that nix-env in a buildInLinuxVM?
<contrapumpkin>
nope
<Dezgeg>
ohh
<contrapumpkin>
the whole exercise is trying to avoid/minimize buildInLinuxVM
<contrapumpkin>
because it's a complete slug on EC2 and other virtualized environments
<Dezgeg>
I think not, but maybe nix-store --dump | nix-store --restore works...
<contrapumpkin>
hmm, how do you mean? I'm just trying to convince nix-env to create its symlink structure for my root channel
<contrapumpkin>
actually populating the store seems fine
<Dezgeg>
it probably expects /nix/store/jzpfij4xi002lh244cl4y0a6cl3zc1hc-nixos-17.03.git.289782b to be registered as a valid path in the target database
<contrapumpkin>
oh!
<contrapumpkin>
yes, you're probably right
<NixOS_GitHub>
[nixpkgs] pSub pushed 2 new commits to master: https://git.io/vMKvR
epta has quit [(Read error: Connection reset by peer)]
AllanEspinosa has joined #nixos
derjohn_mob has joined #nixos
Itkovian has joined #nixos
gciolli has quit [(Remote host closed the connection)]
<contrapumpkin>
not sure how well the nix tools respect those environment variables...
Itkovian has quit [(Client Quit)]
<LnL>
aaah, why can't I give this bloody folder +x for my nfs mount
grill_ has quit [(Ping timeout: 256 seconds)]
Itkovian has joined #nixos
goibhniu has joined #nixos
<LnL>
omg *facepalm*
pi3r has joined #nixos
zraexy has joined #nixos
zraexy has quit [(Client Quit)]
goibhniu has quit [(Ping timeout: 245 seconds)]
<johnw>
how do I setup a custom package in config.nix that I would have otherwise installed as "npm install foo"?
sellout- has joined #nixos
mexisme2 has joined #nixos
mexisme has quit [(Read error: Connection reset by peer)]
AllanEspinosa has quit [(Ping timeout: 248 seconds)]
simendsjo has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ublubu has quit [(Remote host closed the connection)]
alx741_ has joined #nixos
alx741 has quit [(Ping timeout: 258 seconds)]
[0x4A6F] has joined #nixos
seanz has joined #nixos
Minoru has joined #nixos
Sonarpulse-Work has quit [(Ping timeout: 240 seconds)]
<Minoru>
is there anything like Gentoo's "live packages" in NixOS? Live packages pull the latest revision from master branch whenever they're reinstalled. The closest thing I found is update-nix-fetchgit.
<contrapumpkin>
Minoru: not really
<contrapumpkin>
there are some ideas for how to do that, but nothing concrete right now
<contrapumpkin>
without a controlled nondeterminism primitive, it sort of runs counter to how nix usually does things
Itkovian has joined #nixos
<simpson>
Minoru: Out of curiosity, do you want this for a bunch of packages, or just for one package?
<schoppenhauer>
hi. is it possible to create a nix-shell with an own instance of mysql? (I once managed to create one with its own postgres, but not sure whether this is possible with mysql, or whether it wouls be better to build a vm directly)
<Minoru>
contrapumpkin: yeah, I thought it might be against nix's nature. What do I google to find those ideas you mention? Want to stay on top of things in this field.
<Minoru>
simpson: just for one right now, but this might be expanded to something like 5 (which is roughly the number I had on Gentoo). Does that make a difference?
<simpson>
Minoru: Only in that there's no way to scale maintaining lots of overridden versions.
<Minoru>
contrapumpkin: thanks!
lverns has quit [(Quit: Konversation terminated!)]
[0x4A6F] has quit [(Read error: Connection reset by peer)]
<Minoru>
simpson: you mean the situation where I use a live package to override some other package's dependency? Like if I wanted to use bleeding-edge GTK and build Gimp on top of it?
<Minoru>
my use-cases for live packages have always been about user application, not stuff that some other packages depend on
lverns has joined #nixos
<Minoru>
*applications
mexisme has joined #nixos
<simpson>
Minoru: I mean that the text file that contains your overriding Nix expression will grow linearly with the number of packages that you override.
<Minoru>
ah. But I'm not overriding, I'm just providing a new version
<Minoru>
if I totally copy Gentoo approach here, it will be version 9999
<Minoru>
I notice some of Nix packages have dev versions that have timestamps as version numbers, like 20150101
<contrapumpkin>
versions don't mean much in nixland
<Minoru>
well, yeah
mexisme2 has quit [(Ping timeout: 245 seconds)]
reinzelmann has quit [(Quit: Leaving)]
<Minoru>
OTOH without them me and you won't be able to share a machine and have two different instances of "live package" installed, build inputs being the same
Jackneill has joined #nixos
<Minoru>
or maybe not. Depends on what that non-deterministic primitive takes into account when generating the hash
maurerv6 has quit [(Ping timeout: 255 seconds)]
AllanEspinosa has joined #nixos
<simpson>
Just the inputs. The source files, the dependencies, the Nix expression defining the derivation.
<contrapumpkin>
I imagine the nondeterministic one would behave more like a fixed-output derivation + some info
sellout-1 has joined #nixos
derjohn_mob has quit [(Ping timeout: 256 seconds)]
derjohn_mob has joined #nixos
sellout- has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Sonarpulse-Work has joined #nixos
stepcut has quit [(Remote host closed the connection)]
<Minoru>
any problem can be solved with another layer of indirection :) Nondeterministic build could just generate a fixed-output derivation that NixOS already knows how to build
<contrapumpkin>
Minoru: in principle, but we'd need explicit staging
<contrapumpkin>
which is the direction I was going, but it's tricky
<Minoru>
or, rather, what's "staging" in this context?
<contrapumpkin>
nix currently evaluates your expression, collects all the derivations that evaluation produces, and then downloads/builds all those derivation outputs
simendsjo has quit [(Remote host closed the connection)]
<contrapumpkin>
it can basically do all of that at once today
<contrapumpkin>
with the thing we're saying, it doesn't know what to do (i.e., hashes) until after it's resolved the nondet derivation
<contrapumpkin>
there's a sort of hacky thing today that allows you to import the result of a nix build into nix evaluation, but that then starts building in the middle of your evaluation and behaves strangely
<contrapumpkin>
(and doesn't work well on hydra, etc.)
mguentner2 is now known as mguentner
<shlevy>
Well
<shlevy>
We need more than just staging
<Minoru>
sounds like a nice way to write a deadlock
<shlevy>
(I already implemented "redirects")
<shlevy>
We also need state :)
<contrapumpkin>
hi shlevy!
<contrapumpkin>
yes :)
<contrapumpkin>
I think I'm going to give up on using any of the nix tooling inside my builder
* contrapumpkin
sighs
<shlevy>
I sketched out some ideas for a new-and-improved store impl this weekend
<shlevy>
I'll post them somewhere if I don't decide to write it myself :)
<contrapumpkin>
I look forward to it!
<contrapumpkin>
I hate programs that force me to chroot :(
<Minoru>
state? Why? Also staging already sounds like state
<Minoru>
or maybe a better question would be "what kind of state?"
<shlevy>
If your nondet derivation pulls a git repo
<shlevy>
You want to be able to keep a copy around for the next time you get the latest
<shlevy>
Pulling nixpkgs fresh every time is no fun :)
pie_ has joined #nixos
<contrapumpkin>
shlevy: I have a sweet sweet tool
<contrapumpkin>
that lets me copy stuff at ridonkulous speeds into partitioned disk images
<contrapumpkin>
and now I'm trying to refactor the NixOS image creation process to not use VMs as much
Itkovian has joined #nixos
<contrapumpkin>
proving to be quite a PITA though :)
aklt has joined #nixos
<Dezgeg>
how are the end products used? is it used for the final thing with a user supplied config or something used for installing / bootstrapping;5u
<wrl>
it's actually quite good but it needs some time to mature
<contrapumpkin>
like, it doesn't seem crucial for it to add (IRC) to all of jack[m]'s highlights in here :)
<contrapumpkin>
I'm assuming jack[m] isn't typing those out explicitly
<contrapumpkin>
surely sounds good on paper though :)
<simpson>
It's okay. It's not even close to as bad as Slack or Telegram gateways.
hiratara has joined #nixos
<Ralith>
yeah, sticking (IRC) on people's names was a mistake, which the official client actually has hardcoded workarounds for now
<Ralith>
not sure why jack isn't benefiting from that
<wrl>
Ralith: is riot the official client?
* jack[m]
is using weechat right now, perhaps that has been fixed.
mizu_no_oto has joined #nixos
<Ralith>
wrl: riot is the official client family, yes
<Ralith>
there's a lot of third party client efforts but none of them work very well yet
<Ralith>
turns out post-IRC protocols take substantial investment to implement
<wrl>
yeah
<wrl>
yepppp
<wrl>
and end to end crypto is hard
<wrl>
not just the crypto, as it turns out!
acowley is now known as acowley_away
m3 has joined #nixos
eacameron has joined #nixos
m3 is now known as epta
epta has left #nixos []
acowley_away is now known as acowley
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
<philipp[m]>
matrix gave me the best irc experience I've ever had.
<wrl>
philipp[m]: yeah i've been thinking about effectively using it as a bouncer
<philipp[m]>
Imagine: Searchable logs of the whole conversation across all my devices with one account.
zagy has quit [(Quit: Leaving.)]
<eacameron>
It doesn't appear that nix is building my haskell packages in parallel. It will build packages in parallel with each other, but not within a package. Do I need to change a setting? I'm building things from nixpkgs.
<contrapumpkin>
eacameron: are you passing -j to it?
<eacameron>
contrapumpkin: hmm...not directly (it's actually being built by nixops via remote systems)...is that a parameter to nix-build then?
<contrapumpkin>
yup
<eacameron>
contrapumpkin: what about nix-shell?
<contrapumpkin>
same
<contrapumpkin>
almost all nix tools take those two parameters
<eacameron>
contrapumpkin: ah...hmmm interesting. I'll have to try it in conjunction with nixops
<contrapumpkin>
that said, I've never tried it with nixops :)
pSub has quit [(Remote host closed the connection)]
pSub has joined #nixos
pSub has quit [(Changing host)]
pSub has joined #nixos
symphorien has joined #nixos
<cheshircat>
Hello,
<cheshircat>
Does anyone know how to make an arbitrary number of nixops machines?
<cheshircat>
In the manual you have to name each one
<cheshircat>
I want to have a parameter that controls how many I have
sellout-1 has quit [(Ping timeout: 256 seconds)]
<simpson>
cheshircat: There's various tricks.
<simpson>
You still have to name each one.
sellout- has joined #nixos
<simpson>
cheshircat: Actually, here's a question: What do you want to type after $(nixops ssh) in order to SSH into a particular one of these machines?
<cheshircat>
simpson: you again! <3
<cheshircat>
Oh, I suppose service-botn
<cheshircat>
where n is the number
<symphorien>
hello, I am trying to package paperwork on nixos, it is finally working except that no gtk icon is found, making the app unusable. How can I fix that ?
<cheshircat>
are you saying there's a way of automatically generating attributes?
<Nadrieril>
you can do anything in nix :)
<cheshircat>
sounds like macros
<cheshircat>
does nix have macros?
<simpson>
cheshircat: Then you want builtins.listToAttrs.
<contrapumpkin>
better than macros
<simpson>
cheshircat: No need for macros.
<Nadrieril>
for example lib.range gives you the list of numbers from a to b, then you can map over that and generate the entries for your machines
<contrapumpkin>
it's just a function that produces a dictionary
<cheshircat>
oh, and then you inherit that list or whatever?
<cheshircat>
*that dict?
<Nadrieril>
the nixops config is just a dictionnary, so you can generate that dictionary as you wish
<simpson>
Or // it, sure.
<simpson>
Nadrieril: "Attrset", please.
<Nadrieril>
sry 0:)
<cheshircat>
sweet, thanks!
JagaJaga has quit [(Ping timeout: 255 seconds)]
<symphorien>
does anyone know how GTK icon theme work ?
<Nadrieril>
cheshircat: off the top of my head, something like "builtins.listToAttrs (map (n: lib.nameValuePair "service-bot${n}" { <the config for the nth machine> }) (lib.range 1 5)" would give ou something like what you want
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pi3r has quit [(Ping timeout: 260 seconds)]
altphi has quit [(Quit: altphi)]
<gchristensen>
contrapumpkin, jack[m]: I banned someone because their client was parroting everything said in the channel
<gchristensen>
contrapumpkin, jack[m]: they were on matrix or something like it. I unbanned them and it hasn't been an issue since :)
acowley is now known as acowley_away
sellout- has quit [(Ping timeout: 245 seconds)]
acowley_away is now known as acowley
<Ralith>
sounds like they were running their own bridge and had it misconfigured
sellout- has joined #nixos
<Ralith>
mostly people use the official bridge, which seems to be working great
relrod_ is now known as relrod
jgertm has quit [(Ping timeout: 240 seconds)]
<gchristensen>
who knows
<gchristensen>
I find their "(IRC)" thing slightly annoying but beyond that don't care
georges-duperon has joined #nixos
nekroze has joined #nixos
<nekroze>
It appears that VM's deployed to libvirt via nixops are not persistent across reboots. Is this by design?
<gchristensen>
I doubt it, nekroze
mexisme has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
AllanEspinosa has joined #nixos
sheenobu has quit [(Remote host closed the connection)]
sheenobu has joined #nixos
<nekroze>
gchristensen: As did I but I am unable to change the VM's to autostart with virt-manager as they are transient aparently. I was thinking maybe the libvirt backend was for staging only thus non persistence would be less of an issue. but I am using it for production
<manveru>
is there a good way to get the output of a program as a string?
<nekroze>
manveru: depends where you need it. If its just a bash script you can place the comming in "$()" those parenthesis
<Nadrieril>
the libvirt backend seems to be more like a PoC for now... it cannot do much serious stuff
<nekroze>
Nadrieril: Yeah, I think I will need to contribute some code to it. I have managed to do quite a bit with it but much of that is in spite of its current implementation
<Nadrieril>
nekroze: we should work together, I'm running into the same problems
chpatrick has joined #nixos
<nekroze>
Nadrieril: I would be happy to. I have developed quite a set of modules to handle automated persistence pools and volumes, even rigged up a (not super pretty) way to define non nixops vm's and libvirt networks
<chpatrick>
is it possible to depend on a non-nixpkgs package from github without making a submodule?
<manveru>
nekroze: not sure how that should work... i'd like to get the value for an env var from executing an executable :|
<manveru>
only way i can think of is mkDerivation, but that seems way overkill
<Nadrieril>
I didn't go very far yet but I have a nice PR that allows more serious networking
<nekroze>
manveru: from something already running?
<NixOS_GitHub>
nix/master 8079ab8 Eelco Dolstra: AutoCloseDir: Use std::unique_ptr
<pie_>
simpson, i have pygtk listed as a dep for whatever
<nekroze>
Nadrieril: Not sure if I think that patch is the way to go. It already has a way to specify extra networks to connect the VM to, we should just add a way a to define libvirt networks with nixops and use that. Sadly it does add a virtio nic at the moment for the networks but we can fix that
<pie_>
if i do nix-shell -p python27Packages.pygtk it works but not with nix-env -viA nixpkgs.pkgs.python27Packages.pygtk
<pie_>
any idea why?
<Nadrieril>
nekroze: it did only support network-type interfaces, and only those which use DHCP. I added other types of interfaces
acowley is now known as acowley_away
sellout- has joined #nixos
<Nadrieril>
it may not be the best way still, but at least it is retrocompatible
<nekroze>
Nadrieril: I meant the complex network patch, the mac and dhcp ones are nice options to have.
<pie_>
also my PS1 and tab completion is broken in nix-shell :(
<nekroze>
indeed
<pie_>
simpson, i mean, is that a drop in replacement for pygtk?
<Nadrieril>
well I needed something like that for my setup because I use bridging and static IPs. not sure how I could have been simpler, but I am open to ideas :)
<simpson>
pie_: No. It's a replacement, I think?
<pie_>
ah that doesnt help me then
<nekroze>
Nadrieril: I am actually doing the same thing myself but I am using the libvirtXML options to inject it without changing nixops as of yet, but in replicating my deployment in a staging environment I found it much easier to define a diffent type of libvirt network (with dhcp to mock my lan for exmaple) rather then changing the VM.
mexisme2 has joined #nixos
<nekroze>
Nadrieril: Like I said, I am not sure or saying anything negative about your patch at all, I just think that defining libvirt networks themselves and having a list of networks the VM connects to could be more flexible
<nekroze>
I will know more over the next week as I implement that in my own deploy
<Nadrieril>
unfortunately I don't think I can define a libvirt network that does exactly like bridge does
<Nadrieril>
hmm, ok
<Nadrieril>
oh, you mean you want a declarative way to define libvirt networks ?
<Nadrieril>
that would be super nice indeed
<nekroze>
You can do a full bridge with a libvirt network, when exploring this I did one up for my bonded bridge network and libvirt handled it fine.
<Nadrieril>
hmmm, I'll have to look into that thx
mexisme has quit [(Ping timeout: 258 seconds)]
<nekroze>
Nadrieril: Yeah, fully declarative would be the goal. At the moment I am defining the XML in my nixops deployment and generating an idempotent systemd service to ensure the network exists but it should not be too hard to generate the xml as well
<Nadrieril>
but that would be in the host configuration, wouldn't it ?
stepcut has joined #nixos
<Nadrieril>
ie completely independent of nixops
MoreTea has quit [(Ping timeout: 258 seconds)]
Jackneill has quit [(Remote host closed the connection)]
<nekroze>
Nadrieril: Yes, I am deploying my host as a targetEnv="none" as well to accomplish this but nixops should be able to do it as well. Just add some additional libvirt XML objects to be defined before defining a VM xml that depends on it
<Nadrieril>
k, cool :)
<nekroze>
I think it would be
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 4 new commits to master: https://git.io/vMKua
<NixOS_GitHub>
nixpkgs/master 52232a6 Thomas Tuegel: startkde: run kbuildsycoca5...
<NixOS_GitHub>
nixpkgs/master 69d6fc8 Thomas Tuegel: kde5.kcoreaddons: 5.30.0 -> 5.30.1
<NixOS_GitHub>
nixpkgs/master 7d01fff Thomas Tuegel: kde5.applications: 16.12.0 -> 16.12.1
<nekroze>
Nadrieril: First thing I want to contribute is to use virtio for the disk and network devices I think
zagy has joined #nixos
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<nekroze>
manveru: That method was going to be my hacky suggestion. But in the installPhase you could have a line like "export ERTS_VSN="$(cat ${erts_vsn}/version)" and in the same way you could execute a command in there instead with a --version switch. Sucks as you would have to define this for each phase you want to use it but you could put in in a string in let before the derivation itself and have each phase pre
<nekroze>
fixed by ` versionENV + "make" `
<nekroze>
manveru: I am not sure if there is a better way around that. I feel like you should be able to add a version attribute to the derivation though and just use ${erts_vsn.version} but I am not sure if that is the case thought I think it should be if it isnt
<manveru>
that'd be a way, yes
<manveru>
at least to hide it a bit :)
thc202 has quit [(Ping timeout: 240 seconds)]
<nekroze>
I wonder if you can set an attribute of a defferent machine in nixops... like `resources.machines.proxy.networking.useDHCP = false`...
Shou has joined #nixos
zagy has quit [(Quit: Leaving.)]
zagy has joined #nixos
AmiableCitizen has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
sellout- has quit [(Quit: Leaving.)]
<nekroze>
it appears not
systemfault has joined #nixos
sheenobu has quit [(Remote host closed the connection)]
mekeor has joined #nixos
<nekroze>
Nadrieril: Have you found the libvirt vm's to be non persistent? i am using my staging environment which uses nested libvirt so I cannot say for certain until the new parts for my production hardware arrive
sheenobu has joined #nixos
zagy has quit [(Quit: Leaving.)]
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
<Nadrieril>
Indeed they are not
<Nadrieril>
There are a few issues preventing them to be persistent, notably problems with image generation. I will try to look into that next
seanz has quit [(Quit: Leaving.)]
<moio`>
hi! is there a tool/function that serializes nix sets to json?