Neo--- has quit [(Remote host closed the connection)]
Neo--- has joined #nixos
hellrazor has joined #nixos
vaibhavsagar has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
<gchristensen>
equalunique: who is kent?
hellrazor has joined #nixos
anton__ has joined #nixos
<myklam[m]>
Hi I'm very new to NixOS, and I've just installed it on my machine. I'm having some troubles getting the wi-fi connected, and I'm hoping somebody can help me. When I try to connect to my network using wpa_supplicant, but I get the error that says: "wlp3s0: Failed to initialize driver interface"
<myklam[m]>
The driver I need is for the Qualcomm Atheros AR9462 Wireless Network Adapter. I think it's ath9k! Any help would be greatly appreciated!
<equalunique>
gchristensen: Kent Overstreet is the lead developer for http://bcachefs.org/
<gchristensen>
equalunique: huh, why would kent be here?
<equalunique>
gchristensen: Interested in adapting the build tools in his project for NixOS
ris has quit [()]
thc202 has quit [(Ping timeout: 276 seconds)]
<catern>
equalunique: are you saying that you are interested in doing that? but that doesn't mean he would be here...
<equalunique>
gchristensen: He and I are messaging over Patreon and I suggested we talk about it here. He had questions about using nix to build that I couldn't answer on my own.
<gchristensen>
oh neat
ericsagnes has quit [(Ping timeout: 246 seconds)]
<boomshroom>
The last time I heard bcachefs here, it sounded mostly like propaganda, but when I looked into it more, it did seem legitimately interesting.
<equalunique>
gchristensen: Totally. His usual development machines are disconnected and in storage because he's currently moving. I offered up my machine. I would have given it to him with debian on it, but the nixos install was already there, and I didn't have time to mess with the EFI variables to prep it for a debian install... so here we are. One powerful NixOS box with two people SSH'd into it. Hoping to get bcachefs to build.
<gchristensen>
:D awesome
<equalunique>
He ran into an issue: The bcachefs test runner uses debuild to build a dpkg package for bcachefs-tools - not sure how to adapt this to NixOS
jgertm has quit [(Ping timeout: 258 seconds)]
<equalunique>
Also I haven't heard back from him since he said he was working on a nix derivation for ktest
taktoa has joined #nixos
<equalunique>
Anyone got experience using kbuild / ktest on NixOS?
<taktoa>
is doHaddock = true no longer the default on 17.03?
<taktoa>
for haskell packages
jgertm has joined #nixos
nh2 has quit [(Quit: Leaving.)]
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
snikkers has quit [(Ping timeout: 268 seconds)]
<catern>
oh neat, NixOS should be the kernel hacker's distro of choice :)
<boomshroom>
catern: Because of the ability to reboot an earlier version if you bork your kernel? :P
<taktoa>
catern: yeah, especially if I can incrementalize the linux kernel derivation with some secret sauce I have coming out soon
<boomshroom>
Speaking of kernel hacking, Nix can run on other kernels like BSD, but does NixOS support BSD kernels? If so it should be possible to have 2 kernels running the same OS.
<catern>
boomshroom: other distros have that too
<taktoa>
the extent to which NixOS could support BSD kernels is hampered by heavy integration between the NixOS module system and systemd
<catern>
taktoa: woah, incremental derivations? tell me more
<taktoa>
I'm pretty close to done writing a haskell library that implements the syntax (parser) and semantics of the Ninja build language
<taktoa>
I've also written a prototype program that converts a ninja build graph to derivations
<catern>
ooh! that's exciting!
<boomshroom>
catern: Other distros might support multiple kernels, but do they support multiple kernels on the same installation?
<catern>
I plan to do something similar for Bazel
<taktoa>
and since there's a ninja-based builder for the kernel, we could do that
elninja44 has joined #nixos
<taktoa>
catern: this is actually my project for my internship at Awake Networks; part 2 will be writing cabal2ninja so we can have incremental Haskell builds
<catern>
taktoa: "right now" as in there's some prospect of improvement?
<taktoa>
catern: yes, there is a lot of room for improvement
<taktoa>
though it still builds pretty quick
<catern>
also, doesn't Nix have the problem of needing to copy things into the store? do you have anything planned for that?
<catern>
as in, you build it in one place then have to copy it somewhere else
<catern>
oh, I guess you can just build it right into the store
<catern>
hmm
<taktoa>
yeah right now it does need to always copy
<catern>
but can't you just have the builder output it right into the store?
<catern>
also it's kind of funny to convert Ninja to Bazel, when Ninja is supposed to be a low-level builder :)
<catern>
er
<catern>
Ninja to Nix*
<taktoa>
yeah the original idea was GHC -> Makefile -> Nix
<taktoa>
since ghc -M is pretty much the only way to get the module graph
<catern>
it would be really cool if Nix could be as fast as Ninja
<taktoa>
cabal knows nothing about modules
<catern>
i.e. we could have things generate Nix derivations instead of Ninja files
MP2E has quit [(Quit: bbiab)]
<catern>
it's very interesting to me since I will need to generate Nix from Bazel eventually
<taktoa>
yeah
<catern>
I haven't actually read the chapter of Eelco's thesis on using Nix for low-level builds
<catern>
do you think we would write Nix directly? or generate Nix? it seems like Nix maybe doesn't have enough abstraction to make writing build stuff concise?
eliaslfox has quit [(Ping timeout: 240 seconds)]
<catern>
(certainly it's better than Make, but is it as good as modern build systems?)
<boomshroom>
Something that I've thought about is building an executable file entirely within Nix without dropping to bash or a compiler and just using functions like builtins.toFile.
<taktoa>
catern: sorry was brb
<catern>
that is fine, I only just asked :)
<equalunique>
hey catern/taktoa/boomshroom - do either of you have any experience doing kernel module development on NixOS? I'm looking for some guidance
<taktoa>
catern: the best way I've come up with is that you generate (e.g.: JSON) data that a nix expression reads
<taktoa>
and converts to derivations
<boomshroom>
equalunique: Nope. My kernel experience is from attempts to roll my own.
<catern>
equalunique: sorry, I don't, I'm pretty new to Nix
<boomshroom>
And I've only been using NixOS for a few weeks.
<taktoa>
equalunique: I don't have any experience beyond trying and failing to set up grsecurity a few years ago
<catern>
equalunique: you might be able to get some part of the way with buildfhsuserenv stuff?
<equalunique>
Thanks catern!
<catern>
equalunique: well, also
magnetophon1 has quit [(Ping timeout: 255 seconds)]
<catern>
equalunique: you should be able to just drop into a nix-shell for the kernel package, and hack away
<taktoa>
yeah that is true
<taktoa>
drop into a nix-shell and run genericBuild
<taktoa>
then once it fails to install you edit files and rerun make
<catern>
actually, can't you just do this completely statefully? get the sources for the current kernel, build it, insmod the module
<catern>
that's how I've done kernel development, I don't see why that wouldn't work with Nix
<catern>
oh, but you want ktest
<equalunique>
ktest, yes
<equalunique>
know anything about that?
<catern>
tricky, I've never used it
<catern>
so I guess the issue is that you want to automatically build a kernel, install it, run tests, and repeat?
<catern>
which necessitates some kind of derivation which builds your modified kernel
<catern>
no idea :)
vaibhavsagar has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
<equalunique>
I'll keep looking further into it. Appreciate the input. I'm attempting to help someone else with it. Maybe if they were here in the chat room, they could speak about it with more specificity.
Wizek_ has quit [(Ping timeout: 255 seconds)]
hexa- has quit [(Quit: WeeChat 1.8)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
magnetophon has joined #nixos
Supersonic112_ is now known as Supersonic112
jgertm has quit [(Ping timeout: 260 seconds)]
taktoa has quit [(Remote host closed the connection)]
darlan has joined #nixos
<boomshroom>
It looks like systemd.services could be equivalent to init.services and systemd.timers could be equivalent to cron.timers which would generate a crontab. At least this is what I gather from scanning the manual and Wikipedia.
equalunique has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #26736: Improve nixos test debug (master...improve-nixos-test-debug) https://git.io/vQU7p
<equalunique>
okay well they are cool and buzzwordy
<catern>
the primary content of the post is the container bashing
<catern>
so the unikernels just distracts
<boomshroom>
I thought kernels were supposed to run userspace applications. Mine can at least. (not much more though.)
<catern>
so it's deleted now
<catern>
unikernels are categorically different anyway
s33se has quit [(Ping timeout: 268 seconds)]
<catern>
the rest of the techniques are on top of Linux, unikernels are like VMs on top of a hypervisor
<catern>
are like VMs, they are on top*
<boomshroom>
can a nix expression read the contents of a file.
<boomshroom>
?
<equalunique>
Some of the language based build tools are cross platform. Maven for example works on many operating systems. For Nix and especially Guix, it's a more limited situation. Is that worth pointing out? Also, do you want to mention Ubuntu Snap or Fedora DNF?
<equalunique>
catern: ^
eliaslfox has joined #nixos
mrkgnao has joined #nixos
<equalunique>
catern: flatpak and OSTree too
hexa- has joined #nixos
hexa- has quit [(Client Quit)]
hexa- has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
boomshroom has joined #nixos
<boomshroom>
Hmm... NixOS doesn't seem as stable as advertised.
vaibhavsagar has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
lambdamu has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
<equalunique>
booshroom: what happened?
lambdamu_ has quit [(Ping timeout: 260 seconds)]
<boomshroom>
equalunique: My computer seemed to softlock. I could still move the mouse and windows were still updating, but the keyboard stopped working and internet stopped.
<equalunique>
booshroom: see what the errors might be using journalctl -xe
<equalunique>
I have a radeon driver bug on one of my NixOS systems where sometimes I must kill the xserver process.
<equalunique>
Haven't put in the time to capture the details of the problem. There's a similar issue for NixOS systems using gdm/gnome3 and Nvidia driver.
sary_ has quit [(Remote host closed the connection)]
gm152 has quit [(Remote host closed the connection)]
<catern>
equalunique: I mentioned all those things (snap, dnf, flatpak, ostree)
<catern>
whoops not dnf
<catern>
okay not ostree either
<catern>
but both of these neatly fit in existing categories
<boomshroom>
equalunique: It appears journelctl doesn't extend past the last reboot.
<boomshroom>
When I mentioned my keyboard not working, it wouldn't even take a ctrl-alt-f2.
<boomshroom>
And now rust nightly doesn't seem to want to compile.
<boomshroom>
Is there a way to convert a string to a list in a nixscript? I seem to be able to do string indexing using substring, but I'm just wondering if there's a more efficient way.
<boomshroom>
Also, how can I get overridable arguments in an overlay?
<boomshroom>
I'm pretty sure I have all the tools to make a brainf*ck interpreter in Nix.
ebzzry has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
ericsagnes has quit [(Ping timeout: 276 seconds)]
hellrazo1 has joined #nixos
ericsagnes has joined #nixos
hellrazor has quit [(Ping timeout: 276 seconds)]
Supersonic112 has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 260 seconds)]
schoppenhauer has joined #nixos
<boomshroom>
How does builtins.match work? What I want to do is make an if-else chain if match is like in Rust, then it should do what I want.
<boomshroom>
playing with it in the repl seems to indicate its string comparision that returns null if not equal and [ ] if equal
<boomshroom>
Ok, it's regex matching.
jgertm has joined #nixos
cpennington has quit [(Remote host closed the connection)]
eliaslfox has quit [(Read error: Connection reset by peer)]
inflames has joined #nixos
pietranera has joined #nixos
<inflames>
anyone succeeded in installing teamviwer 12?
<inflames>
viewer*
<boomshroom>
Is it possible to convert between a character and a number in Nix?
<boomshroom>
How can I write a foreign function that I can call from Nix?
pietranera has quit [(Ping timeout: 260 seconds)]
<nixy>
boomshroom: Are you trying to write a program in Nix? What are you trying to do here?
<boomshroom>
nixy: Why yes I am. :D A brainfuck interpreter to be specific. I'm pretty sure I can even handle the branching and it's all tail recursive. The input and output are my only concern.
<nixy>
boomshroom: I am pretty sure Nix is a bad choice for that. It is a DSL and isn't designed for general purpose usage.
<nixy>
I once entertained that idea as well, but couldn't figure out a way to run nix programs in a way that accepted input
<simpson>
Just put your input in a JSON file and import that.
<boomshroom>
nixy: That's exactly why I'm using it. It's too boring to make a bf interpreter in a normal language. Currently, I/O is provided through 2 strings propagated through the program, but the tape is a list of integers because it needs arithmetic. I could make the I/O a list of numbers as well, but that would be less user friendly.
<nixy>
I should correct myself, I couldn't find a way to run Nix programs in a way that accepted input from the shell
<boomshroom>
simpson: When I say convert characters and numbers I mean "1" <-> 49, not "1" <-> 1.
<boomshroom>
"Hello" = [ 72 101 108 108 111 ]
<simpson>
boomshroom: Ah, ASCII. Sounds like a PITA TBH; just use numbers. It's not like Brainfuck has characters.
<boomshroom>
nixy: That's why I pass it in as an argument.
ebzzry has quit [(Ping timeout: 276 seconds)]
<boomshroom>
simpson: That is an option, but not one I'd like.
<dash>
boomshroom: if you're going to do things that are terrible, that's kind of an arbitrary line to not want to cross
ebzzry has joined #nixos
<boomshroom>
dash: :P
<dash>
what you're doing isn't "user friendly" in any way
alx741_ has quit [(Quit: alx741_)]
<dash>
this is a good exercise though
<dash>
if you're going to use computers very much it's good to develop a capacity for dealing with things that are gratuitously bad
<boomshroom>
One other advantage to using lists is I can use head and tail.
jtojnar_ has quit [(Remote host closed the connection)]
jtojnar_ has joined #nixos
Supersonic112 has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
mog has quit [(Quit: im quiting!)]
eliaslfox has joined #nixos
reinzelmann has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
mog has joined #nixos
mog has quit [(Client Quit)]
mog has joined #nixos
<boomshroom>
"error: infinite recursion encountered, at undefined position"
<boomshroom>
Curses; foiled by the recursion checker!
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
nevermind has joined #nixos
lambdamu has quit [(Ping timeout: 246 seconds)]
fnljk has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
lambdamu has joined #nixos
kyren_ has joined #nixos
kyren has quit [(Ping timeout: 260 seconds)]
eliaslfox has quit [(Read error: Connection reset by peer)]
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
jgertm has joined #nixos
eliaslfox has joined #nixos
aneeshusa has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
ericsagnes has joined #nixos
jbgi has joined #nixos
Itkovian has joined #nixos
<eacameron>
Anyone use nixos as a server for thin clients?
<clever>
eacameron: i was network booting my laptop and 2 raspberry pi's over iscsi, and i had nixos as the iscsi target at one point
<eacameron>
clever: How'd that go? I'm thinking of setting up a computer lab for a charity org
<clever>
ah, i had a dedicated zvol for each client, so they could persist changes
<clever>
would you want the clients to have a full r/w disk, or read-only?
<eacameron>
They'd need a home folder
<clever>
that could just be nfs, and mount the same /home to everything, and let the username do the rest
<clever>
you can even download pre-built netboot images from a hydra
<clever>
at this point, the only thing to consider is the network bandwidth when downloading 278mb initd's over http
<eacameron>
Yah but the clients will not reboot often
<clever>
depending on how many clients boot at once, you may want to put in a load balancer, either inteligent http redirects, or just some dns round-robin
<clever>
and if your internet is fast, you could load some of those files over the web, just beware of mitm
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
jsgrant- has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
freusque has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
jsgrant- has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 closed pull request #26709: python-modules/protobuf: fix darwin build by passing C++ includes exp… (master...fix-python-protobuf-v2) https://git.io/vQeOq
NixOS_GitHub has left #nixos []
thc202 has joined #nixos
catch22 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vQTke
<NixOS_GitHub>
nixpkgs/master 0d20c7e Frederik Rietdijk: python.pkgs: several maintenance bumps
NixOS_GitHub has left #nixos []
freusque has quit [(Quit: WeeChat 1.7.1)]
athan has quit [(Remote host closed the connection)]
ison111 has joined #nixos
newhoggy has quit [(Ping timeout: 246 seconds)]
newhoggy_ has joined #nixos
page_ is now known as page
<ison111>
I just can't seem to figure out how to use makeWrapper. The only explanation I can find is of the function itself, not where it goes. Is there any decent documentaion? All I'm trying to do is add some python modules to httpd (and possibly also change mod_wsgi from python2 to python3)
eliaslfox has quit [(Read error: Connection reset by peer)]
newhoggy_ has quit [(Ping timeout: 240 seconds)]
<LnL>
not sure if it's documented in the manual, but it probably should be
<nixy>
Do you put commands for GRUB options in configuration.nix or hardware-configuration.nix? Just wondering what other people prefer
<nixy>
derp, not commands but defining GRUB options
athan has joined #nixos
<boomshroom>
nixy: my impression is that hardware-configuration.nix gets auto generated and overwriten, so I would say configuration.nix or a third file imported from configuration.nix.
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<nixy>
I am pretty sure hardware-configuration.nix is only auto generated the first time, when installing the system.
<nixy>
I could be very wrong about that though, as I haven't looked at any code
<boomshroom>
Oh, well, I still personally try to avoid modifying it.
pietranera has quit [(Ping timeout: 268 seconds)]
<nixy>
I guess my question is more along the lines of do you consider GRUB configuration as part of the `soft` configuration of your system or the `hard` configuration of the underlying hardware
<nixy>
Just being all philisophical without much reason here
jsgrant- has joined #nixos
<boomshroom>
I don't use grub and all the configuration for my boot _manager_ is 2 lines that were auto generated in configuration.nix
marsel has joined #nixos
<nixy>
What boot manager do you use? This was sparked by cloud-provider specific grub settings I have to use for certain providers
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vQTIy
<NixOS_GitHub>
nixpkgs/master b8297ff Peter Hoeg: bundler: 1.15.0 -> 1.15.1
NixOS_GitHub has left #nixos []
<boomshroom>
systemd-boot. I still remember the good ol' days when it was called gummiboot. My only problem with it is the lack of folders or hidden options.
<nixy>
Last time I used that it was still gummiboot :y
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
elninja44 has quit [(Remote host closed the connection)]
mrkgnao has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
jsgrant- has joined #nixos
indi_ has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Zimmi48 closed pull request #26180: New coq head (master...new-coq-head) https://git.io/vHcB9
NixOS_GitHub has left #nixos []
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
snikkers has quit [(Ping timeout: 268 seconds)]
ericsagnes has quit [(Ping timeout: 260 seconds)]
jsgrant- has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
goibhniu has joined #nixos
jsgrant- has joined #nixos
georges-duperon has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
<guillaum1>
Ho can I try gcc7 inside a nix-shell on nixos? I'm using the channel 17.03, but from what I understood, I may be able to get stuff from nixpkgs at the same time?
civodul has joined #nixos
jensens has joined #nixos
boomshroom has quit [(Ping timeout: 260 seconds)]
kriztw_ is now known as kriztw
ebzzry has quit [(Ping timeout: 260 seconds)]
arianvp2 has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
Wizek_ has joined #nixos
ericsagnes has joined #nixos
jsgrant- has joined #nixos
indi_ has joined #nixos
arjen-jonathan has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Quit: Bye!)]
freusque has joined #nixos
<clever>
nixy: you also have the option to run nixos-generate-config again after installing, to update that config
<clever>
nixy: personally, i just delete that file and add its entries to configuration.nix on most systems, i know what i'm doing and dont need it to auto-generate everything for me
jsgrant- has joined #nixos
hke has quit [(Quit: bye)]
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
hke has joined #nixos
ericsagnes has quit [(Quit: WeeChat 1.8)]
snikkers has joined #nixos
ericsagnes has joined #nixos
mrkgnao has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQTsz
<symphorien>
tommyangelo[m]: nixos-rebuild -I nixos=/path/to/repo build should do the trick if I remember correctly
oida has quit [(Quit: WeeChat 1.7.1)]
sitwon_ has quit [(Ping timeout: 260 seconds)]
oida has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
sitwon has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
orivej has joined #nixos
mpcsh has joined #nixos
sigmundv has joined #nixos
mrkgnao has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
Ridout has joined #nixos
jsgrant- has joined #nixos
ThatDocsLady is now known as ThatDocsLady_brb
jtojnar_ has quit [(Quit: jtojnar_)]
jtojnar_ has joined #nixos
<clever>
symphorien: tommyangelo[m]: i believe it needs to be -I nixpkgs=/path/to/repo
ThatDocsLady_brb is now known as ThatDocsLady
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
jsgrant- has joined #nixos
Wizek has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
jsgrant- has joined #nixos
<jophish>
Hmm, there are some paths missing in /nix/store/trash
<jophish>
and collect-garbage doesn't work
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
vaibhavsagar has quit [(Ping timeout: 255 seconds)]
<justanotheruser>
How can I install panda3D for python3? It isn't on pypi so I can't mkPython. It's download is here http://www.panda3d.org/download.php?sdk&version=devel it's deps are listed elsewhere on their website if needed
turion has joined #nixos
sigmundv has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<jophish>
heh, I rebuilt and deleted the path and it's al lfine
<goibhniu>
justanotheruser: you have a few options, you could package it, try to create a nix-shell environment that lets you run it or create an FHS environment to run it ... packaging it would be great
jsgrant- has joined #nixos
<justanotheruser>
I'm not sure how to packages it :/
<justanotheruser>
though I can't build stuff with pip in nixos right? I would need to define a package which uses the whl file?
<justanotheruser>
I have written packages that use pypi, so I assume I can do similarly and just reference the local file
jsgrant- has joined #nixos
<gchristensen>
justanotheruser: you can install dpkg but dpkg can't do what dpkg usually does
<justanotheruser>
oh
<justanotheruser>
hmm... curl: (37) Couldn't open file /home/justanotheruser/panda3d/panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl
wrl__ is now known as wrl___
<clever>
justanotheruser: what command did you run to trigger that error?
[0__0] has quit [(Ping timeout: 260 seconds)]
<justanotheruser>
clever: I tried to activate a nix-shell env which contains panda3d which is defined as so should I use mkPython to make a python package which has
newhoggy has joined #nixos
<clever>
justanotheruser: can you gist the .nix file nix-shell was loading?
<clever>
yeah, the build runs inside a chroot like sandbox
<justanotheruser>
yes, this file exists
<clever>
so it cant access /home
<justanotheruser>
oh
<clever>
you might be able to do src = ./panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl;
<justanotheruser>
clever: I created a .whl file for panda3d which is a python module.
<clever>
thats how most nix stuff handles this situation
<justanotheruser>
what is .? the env folder?
<clever>
in nix, you can have bare paths, which must start with either ./ or /
<clever>
and if you use ./ it will be relative to the file that path is inside
<justanotheruser>
oh
<justanotheruser>
lets see
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<clever>
and then srcSHA wont be needed either
natas_ has joined #nixos
<justanotheruser>
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
<justanotheruser>
that line follows trying ./panda3d/panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl
<justanotheruser>
the expression I pasted is in ~/trying ./panda3d/panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl
<justanotheruser>
woops
<justanotheruser>
it's in a default.nix that has in the same directory panda3d
jsgrant- has joined #nixos
<clever>
the path also needs to not be quoted
inflames has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
what do you mean?
<justanotheruser>
if it's not in quotes, it fails to evaluate the expression
<clever>
what error does it fail with if you dont quote it?
<clever>
given what you have said, it should work with just src = ./panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl;
jsgrant- has quit [(Remote host closed the connection)]
<justanotheruser>
error: while evaluating the attribute ‘env’ of the derivation ‘pyenv’ at /home/justanotheruser/pyenv/default.nix:3:3:
<justanotheruser>
error: while evaluating the attribute ‘env’ of the derivation ‘pyenv’ at /home/justanotheruser/pyenv/default.nix:3:3:
<justanotheruser>
ah, I was using srcURL
<justanotheruser>
src doesn't fail to evaluate
<justanotheruser>
ok, so now it's complaining it doesn't know how to unpack the archive do not know how to unpack source archive /nix/store/01cc5p7wpg7ddb0g1g9pj65vpr7cp00p-panda3d-1.10.0-cp35-cp35m-linux_x86_64.whl
<justanotheruser>
maybe theres something I need to flag in mkPython, sec
[0__0] has joined #nixos
<clever>
what does a whl file normally contain?
<clever>
you may just need src = ./.;
<gchristensen>
iirc buildPythonPackage can be told to accept a wheel
jsgrant- has joined #nixos
<justanotheruser>
clever: "Wheels are the new standard of python distribution"
<justanotheruser>
package is at least superficially installed, will need to see whether it works properly. Thanks you guys
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vQTw3
<NixOS_GitHub>
nixpkgs/master 5521b54 Franz Pletz: openvpn: 2.4.2 -> 2.4.3...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vQTwl
<NixOS_GitHub>
nixpkgs/release-17.03 d97649c Franz Pletz: openvpn: 2.4.2 -> 2.4.3...
NixOS_GitHub has left #nixos []
Ridout has quit [(Quit: leaving)]
tmaekawa has joined #nixos
ebzzry has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vQTrq
<NixOS_GitHub>
nixpkgs/master f237eeb Domen Kožar: moreutils: address comment on 14a320ace869a5f1eba3b2e26441e8b62802267e
NixOS_GitHub has left #nixos []
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
orivej has quit [(Ping timeout: 255 seconds)]
jsgrant- has joined #nixos
orivej has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
sorry for asking so many questions today. I am running into another issue at run time in python: ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
jsgrant- has joined #nixos
<justanotheruser>
Do I need something in propagatedNativeBuildInputs?
hellrazo1 has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
newhoggy has quit [(Ping timeout: 268 seconds)]
FRidh has joined #nixos
eliaslfox has quit [(Ping timeout: 240 seconds)]
<FRidh>
justanotheruser: the problem with installing binary wheels is that it can contain binaries that are linked against other libraries, like you have now.
<FRidh>
You might have to use patchelf on the provided libraries to make them find their extensions.
<justanotheruser>
oh
<justanotheruser>
any idea where libstdc++ lives?
<symphorien>
in gcc
jensens has joined #nixos
<justanotheruser>
how do I find its path?
<FRidh>
justanotheruser: I suggest you try and build from source. Fetch the latest release from their GitHub page, use `buildPythonPackage`, pass `format="other";` and use a custom buildPhase and installPhase https://github.com/panda3d/panda3d#linux
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<justanotheruser>
FRidh: ah ok. I built wheel, but I will do that
cpennington has quit [(Remote host closed the connection)]
<FRidh>
"Alternatively, you can add the --wheel option, which will produce a .whl file that can be installed into a Python installation using pip"
<justanotheruser>
yes, that is what I did
<FRidh>
justanotheruser: actually you can also just use `buildPythonPackage` and only override the buildPhase with that custom line to build the wheel. That should be sufficient, it will then install the wheel.
hellrazo1 has joined #nixos
<justanotheruser>
no format = "other"?
<justanotheruser>
do you want buildPhase = "python3 makepanda/makepanda.py --everything --no-egl --no-gles --no-gles2 --no-opencv --wheel";
indi_ has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
raunov has joined #nixos
<raunov>
hi
<raunov>
im a bit struggling with nixos installation, specifically i get struck when installer tries to mount /dev/root onto /iso but the usb device i booted from gets disconnected, reinserting it mounts it for few moments and then unmounts..any idea ?
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<justanotheruser>
FRidh: /nix/store/f3wan424j5p0a06p02byvn4gq5g2x234-stdenv/setup: line 887: pushd: dist: No such file or directory https://hastebin.com/raw/oquyotiheg
ThatDocsLady is now known as ThatDocsLady_mtg
<hyper_ch>
why would installer try to mount onto /iso ? you're not using /mnt for installing as installdir?
newhoggy has quit [(Ping timeout: 255 seconds)]
darlan has joined #nixos
iyzsong has joined #nixos
jsgrant- has joined #nixos
ThatDocsLady_mtg is now known as ThatDocsLady
newhoggy has joined #nixos
bkchr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vQTXR
<NixOS_GitHub>
nixpkgs/master cfdb976 Franz Pletz: unrar: 5.4.5 -> 5.5.5 (security)...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/vQTX6
<NixOS_GitHub>
nixpkgs/release-17.03 79cd5b1 Franz Pletz: unrar: 5.4.5 -> 5.5.5 (security)...
NixOS_GitHub has left #nixos []
<raunov>
hyper_ch: installer is do it..
<raunov>
when booting system from iso (virtual cd-rom)
<hyper_ch>
really? weird
<hyper_ch>
I booted from usb stick
<raunov>
it's the stage 1
<clever>
raunov: how did you flash the usb with the iso?
reinzelmann has joined #nixos
<justanotheruser>
is there a package in nixos that contains dist?
darlan has quit [(Ping timeout: 255 seconds)]
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<raunov>
isn't actually a usb, it's a server with iRMC and virtual media redirection
<justanotheruser>
oh, gotools... I'm not sure that's what I want
<clever>
raunov: ah, is it emulating a cdrom or a usb stick?
<raunov>
yep
<clever>
that was an "a or b" question, not a yes/no question
<hyper_ch>
clever: semantics :)
<raunov>
it says usb mass storage but has CDROM in name :)
jsgrant- has joined #nixos
<hyper_ch>
so it's a hybrid :)
<raunov>
i guess it's usb for the system
<hyper_ch>
(actually, sounds more like usb)
<raunov>
tried mounting it under centos (same system) and didn't had any disconnect or issues browsing it there
dave___ has quit [(Quit: Connection closed for inactivity)]
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy_ has joined #nixos
ebzzry has quit [(Ping timeout: 276 seconds)]
newhoggy_ has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
mudri has quit [(Ping timeout: 258 seconds)]
newhoggy has quit [(Ping timeout: 260 seconds)]
lambdael has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #26748: KDE PIM Applications (master...kdepim-wip) https://git.io/vQTNU
NixOS_GitHub has left #nixos []
ryantrinkle has joined #nixos
<ryantrinkle>
is there a way to see what nix-daemon is currently working on? assuming, e.g. that you've lost the original nix-build process
<symphorien>
you can look in /tmp for the name of the build dirs, it will give you the name of the derivation
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<disasm>
how often are tests ran in nixos/tests?
newhoggy has joined #nixos
<disasm>
and my next question is how do you manually run a test?
<ryantrinkle>
symphorien: that's a good idea
newhoggy has quit [(Ping timeout: 246 seconds)]
<copumpkin>
who do I talk to if there's a typo on the nixcon 2017 site?
<copumpkin>
I don't actually know who's organizing it
<gchristensen>
it seems weird nobody knows who is organizing it
<copumpkin>
niksnut: I wanted to run an idea by you about measuring binary cache downloads, if you're around
Forkk has quit [(Remote host closed the connection)]
<niksnut>
copumpkin: ?
arianvp2 has joined #nixos
<copumpkin>
niksnut: oh if you recall a while ago I mentioned that I wanted to track binary cache downloads on the client, download start times, end times, what's being downloaded, hits, misses, speeds, etc... with the old substituter pl files I could do that fairly easily but in 1.12 that's all native code. In 1.12, I'm thinking of a binary cache "wrapper class" that can wrap the existing binary cache classes but tracks stats. I don't know how I'd ask
<copumpkin>
for it though... possibly a custom protocol marker at the beginning of the binary cache string?
<niksnut>
that sounds kinda overkill, I would just add some logging to BinaryCacheStore
<niksnut>
or HttpBinaryCacheStore
<copumpkin>
oh that's what I'd originally proposed but you thought it was too special-purpose :)
<copumpkin>
and I also pla on using s3binarycachestore
<copumpkin>
but yeah, I could definitely do that and just add a flag to turn on the log messages (or have them go to a special place because they're intended to be consumed by a machine)
<niksnut>
well I didn't say it should be merged :-)
erasmas has joined #nixos
<copumpkin>
well, I mostly just want to be able to track this sort of thing. Willing to do whatever it'll take to make that happen :P
<niksnut>
you can just do it as a local patch
magnetophon has quit [(Ping timeout: 240 seconds)]
<niksnut>
not really against adding it to nix, but it raises all sorts of questions like where to log too (syslog, ...)
<copumpkin>
sure, I mostly would like to minimize deviation from upstream though, and this does seem potentially useful for more folks
<copumpkin>
yeah, true
simukis has joined #nixos
<copumpkin>
niksnut: http://zipkin.io/ is a protocol/system for this sort of thing. If I just added an optional config option for zipkin traces (I'd try to avoid adding a new dependency to nix if I can), does that seem somewhat palatable? the project has thousands of stars on github so it's not exactly esoteric
<copumpkin>
obviously subject to PR review and such. Just want to avoid doing work that we know ahead of time won't be merged :)
newhoggy has joined #nixos
<simpson>
This is reminding me that a Prometheus hydra_exporter (or hercules_exporter? I can dream~) is a thing I should eventually write.
jensens has quit [(Ping timeout: 255 seconds)]
<copumpkin>
basically the idea is that I have lots of machines that run lots of nix operations on a regular basis and I'd like to be able to keep stats on how their binary cache usage is going
erictapen has joined #nixos
newhoggy has quit [(Ping timeout: 268 seconds)]
newhoggy has joined #nixos
<niksnut>
copumpkin: that sounds much heavier than just calling syslog()
<copumpkin>
yeah I guess a structured syslog log would be fine
<copumpkin>
willing to do anything much :)
newhoggy has quit [(Ping timeout: 260 seconds)]
newhoggy has joined #nixos
ryanartecona has joined #nixos
ryanartecona has quit [(Client Quit)]
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
jsgrant- has joined #nixos
<pietranera>
hello, is there a way to get the version of a nix package other then from its `name` attribute?
<pietranera>
I am playing with nix-repl and can't seem to find a `version` attribute used consistently
newhoggy has quit [(Ping timeout: 255 seconds)]
<gchristensen>
no
jsgrant- has quit [(Remote host closed the connection)]
<gchristensen>
the version attribute is just a convention
<pietranera>
OK, thanks gchristensen
<pietranera>
So the only reliable way of getting the version is using `name` I guess?
<pietranera>
If so, is there any builtin function to help extract the version from the name?
jsgrant- has joined #nixos
<FRidh>
pietranera: lib.getVersion
<pietranera>
cool! thank you so much FRidh :)
<pietranera>
I am muddling through all the docs and sometimes it's hard to find the correct answer. ^^
<FRidh>
pietranera: a lot of these things are also not in the docs. Aside from the manuals it helps going through the expressions in lib
newhoggy has joined #nixos
<pietranera>
thanks for the tip FRidh
<pie_>
why isnt there a proper version attribute or something?
warbo has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
ryanartecona has joined #nixos
newhoggy has quit [(Ping timeout: 276 seconds)]
<srhb>
pie_: Proper how?
<FRidh>
pie_: Would it make sense to have one? A version of a source typically refers to only exactly that state of the source. But with something that is build...?
newhoggy has joined #nixos
pie_ has quit [(Remote host closed the connection)]
spinus has joined #nixos
<spinus>
hello, I'm trying to run nixops with libvirt/kvm, I have just targetEnv="libvirtd" and headless=true and got issue: ‘['virsh', '-c', 'qemu:///system', 'create', '/tmp/nixops-tmpdP6FU8/master-node-domain.xml']’ failed on machine ‘master-node’ (exit code 1)
<spinus>
Anyone had an idea what can be wrong?
nevermind has joined #nixos
<Sonarpulse>
copumpkin: for testing the repl on 1.12, will I need to upgrade daemon too?
<Sonarpulse>
or is just per-user nixUnstable sufficient?
<LnL>
you should be able to use nixUnstable with a stable daemon
arianvp2 has quit [(Quit: arianvp2)]
newhoggy has quit [(Ping timeout: 246 seconds)]
nh2 has joined #nixos
newhoggy has joined #nixos
arianvp2 has joined #nixos
justin_ has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
newhoggy has quit [(Ping timeout: 246 seconds)]
<copumpkin>
Sonarpulse: not really sure :)
newhoggy has joined #nixos
<copumpkin>
I'm glad the nix logo rotates on the nixcon site
erictapen has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
jgertm has joined #nixos
<clever>
Sonarpulse: but you may need to build the repl against unstable
<Sonarpulse>
clever: oh this was the new `nix repl` though
<Sonarpulse>
is that it's own derivation?
<Sonarpulse>
didn't think so
<clever>
ah, nvm then
justin_ has quit [(Ping timeout: 240 seconds)]
<clever>
and yeah, the old nix-repl doesnt appear to be compatible
<Sonarpulse>
basically, it boils down to whether `nix repl` or the deamon is doing the eval
<clever>
the api has changed
<clever>
the eval is always done as your user, and it pushes the contents of .drv files up to the daemon
newhoggy has quit [(Ping timeout: 260 seconds)]
<clever>
and the daemon will enforce that the <hash> in /nix/store/<hash>-name.drv matches the hash of its own contents
<Sonarpulse>
clever: ah
<Sonarpulse>
so then bug is still unfixed
<Sonarpulse>
I think the issue is SIGINT isn't becomming a c++ exception
<Sonarpulse>
and we only un-black-hole with C++ exceptions
<Sonarpulse>
does darwin have anything like signal fd?
<justanotheruser>
/nix/store/a5zbx856hyfgz2isz0j60i8w44i6av09-python3-3.5.2/bin/python3.5m: can't open file 'nix_run_setup.py': [Errno 2] No such file or directory
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
seppellll has quit [(Ping timeout: 255 seconds)]
<clever>
Sonarpulse: and i think the sigint from ctrl+c may go to several threads, so a different thread could catch it, then write a byte to an internal pipe
<justanotheruser>
am I supposed to create a nix_run_setup.py in here?
<copumpkin>
niksnut: with the syslog approach I could also do it for regular derivations and track start/end/duration/size (to allow us to compute download speeds, even though not terribly useful for non-fixed-output derivations) times for all sorts of stuff
<clever>
so now try to ls it
<Sonarpulse>
clever: the internal pipe trick being an alternative to signalfd?
<clever>
Sonarpulse: yeah, it may also work on other platforms that lack signalfd
<dredozubov_>
Hi! I have a fresh installation of nixos. Sudo doesn't seem to work for my user which have a extraGroups = [ "wheel" "networkmanager" ]; attribute in configuration.nix
<dredozubov_>
i also did nixos-rebuild switch after that
newhoggy has quit [(Ping timeout: 240 seconds)]
<dredozubov_>
hm
<dredozubov_>
don't know what i did, but it works now ;\
<pietranera>
has anyone tried to install conda/miniconda (https://conda.io/miniconda.html) on NixOs? The installer fails misteriously when it tries to intall its own python 3.6.
<simpson>
pietranera: It might be easier to get things working with Nix instead of Conda.
<pietranera>
It complains about "python: no such file or directory" while the python executable is actually there.
<pietranera>
I have been trying to make things run in NixOs for the holw afternoon and failed miserably.
darlan has joined #nixos
<pietranera>
^ @ simpson
<simpson>
pietranera: I have no idea how to Conda, sorry.
<justanotheruser>
I made the build changes that were asked (here is my definition: https://hastebin.com/raw/dalodojupa ) but I still get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
magnetophon has joined #nixos
alx741 has quit [(Ping timeout: 240 seconds)]
phinxy has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)]
<BlessJah>
does NixOS guarantee that particular config will always work against particular channel?
<BlessJah>
I receive "the list of hardware.enableAllFirmware contains non-redistributable licensed firmware files." upon rebuild, however I haven't modified configuration.nix in weeks
newhoggy has quit [(Ping timeout: 276 seconds)]
<disasm>
dredozubov_: probably opened a new terminal. Linux only checks groups on initial creation of a login session.
<dredozubov_>
disasm: i thought so as well
<disasm>
pietranera: what are you trying to install?
<disasm>
pietranera: have you tried pypi2nix? I use that for a number of python projects I have setup locally here.
turion has joined #nixos
ryanartecona has joined #nixos
<pietranera>
disasm I have a project that depends on scipy, numpy, pandas, lxml and django. I have tried to use pypi2nix to generate a derivation but it fails to build scipy. And it takes 40 minutes every time I try.
<pietranera>
I am probably doing something wrong.
<BlessJah>
also: "This requires nixpkgs.config.allowUnfree to be true."
<disasm>
that should get all those deps in your python path
alx741_ has quit [(Quit: alx741_)]
<pietranera>
disasm I am trying that now, thanks
alx741 has joined #nixos
Jackneilll has quit [(Quit: Leaving)]
newhoggy has quit [(Ping timeout: 240 seconds)]
<pietranera>
disasm that seems to have worked. I really hoped I could use pypi2nix though as there are a lot of pinned dependencies that I would like to, well, keep pinned.
bennofs has joined #nixos
<disasm>
pietranera: ok, lets do that route, can you pastebin me your requirements.txt?
<pietranera>
disasm you are very helpful, but I am about to leave unfortunately.
<disasm>
pietranera: ok, another day :)
<pietranera>
I think I am close to get something workable, even with nix-shell -p etc. etc.
hellrazo1 has joined #nixos
<pietranera>
thank you :)
<pie_>
clever, any luck with civ? :D
<disasm>
you're welcome!
newhoggy has joined #nixos
[0x4A6F] has joined #nixos
Jackneill has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
jsgrant- has joined #nixos
jsgrant- has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
jsgrant- has joined #nixos
zeus__ has joined #nixos
johnw has quit [(Read error: Connection reset by peer)]
newhoggy has quit [(Ping timeout: 240 seconds)]
johnw has joined #nixos
phreedom has quit [(Remote host closed the connection)]
newhoggy has joined #nixos
<clever>
pie_: i need to keep a better todo list, lol
zeus__ has quit [(Read error: Connection reset by peer)]
zeus__ has joined #nixos
jonte_ has joined #nixos
newhoggy has joined #nixos
jbgi has joined #nixos
sitwon has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
digitalmentat has joined #nixos
<digitalmentat>
I'm attempting to run a nixos-test with a custom kernel that has a lot of features stripped out; I discovered the features that the qemu-vm builder checks for and added them, but I'm now seeing the VM bootup failing
<digitalmentat>
the error is `mount: mounting store on /mnt-root/nix/.ro-store failed: No such device`
<digitalmentat>
wondering if anyone has experienced this before or knows what might be missing in our kernel config
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
<gchristensen>
digitalmentat: I think it uses the 9p filesystem?
<clever>
it uses the 9p driver with the virtio backend
newhoggy has joined #nixos
orivej has quit [(Read error: Connection reset by peer)]
<digitalmentat>
gchristensen, yeah I see that, is there a specific kernel module we might need configured for that?
<clever>
digitalmentat: that module is also used by "nixos-rebuild build-vm"
<clever>
so you can just -I nixos-config=foo.nix, override the kernel, and then run it outside the test framework for more control
<digitalmentat>
I'm also seeing we do not have KVM_GUEST turned on for the kernel too, I'll bet that might cause problems
<clever>
yeah, it may need something like kvm to even be able to talk to virtio channels
jtojnar_ has quit [(Remote host closed the connection)]
jtojnar_ has joined #nixos
marsel has quit [(Ping timeout: 268 seconds)]
FRidh has joined #nixos
newhoggy has quit [(Ping timeout: 240 seconds)]
mrkgnao has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
newhoggy has joined #nixos
newhoggy has quit [(Ping timeout: 255 seconds)]
reinzelmann has joined #nixos
newhoggy has joined #nixos
yegods has joined #nixos
Ralith__ is now known as Ralith_
mudri has joined #nixos
newhoggy has quit [(Ping timeout: 260 seconds)]
goibhniu has joined #nixos
peacememories has quit [(Read error: Connection reset by peer)]
peacememories has joined #nixos
Itkovian has joined #nixos
simendsjo has quit [(Remote host closed the connection)]
Itkovian_ has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Client Quit)]
lambdael has quit [(Quit: WeeChat 1.7.1)]
tmaekawa has joined #nixos
newhoggy has joined #nixos
<disasm>
well folks, I finally got all this working for my talk tomorrow... Kubernetes + etcd + flannel. Lots of private SSL keys in the repo, but it's only for a demo for DevOps State College meetup. Lots of clean up if you wanted to use in production: https://github.com/disassembler/devops-kubernetes/blob/master/devops-kubernetes.nix If you're in the central PA area, RSVP Is here:
peacememories has quit [(Read error: Connection reset by peer)]
peacememories has joined #nixos
stanibanani has joined #nixos
newhoggy has joined #nixos
<disasm>
domenkozar: you know Chris Rossi?
<gchristensen>
disasm: oh state college? do you live around there?
<disasm>
about 10 minutes outside, Pennsylvania Furnace
<gchristensen>
I know the area, I used to spend a week or so in S.C. every summer, my grandparents lived in Foxdale
<disasm>
Haha, small world! Well, if you come visit, we'll have to grab a cup of coffee at Rothrock sometime :)
<gchristensen>
mmm yeah rothrock has good coffee. *looks to see how far a drive it is*
newhoggy has quit [(Ping timeout: 240 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
<gchristensen>
it'd be tough to make it... copumpkin: want to meet up in State College tomorrow? :P
<disasm>
domenkozar: he doesn't recognize you, sorry :) Where have you met him before? He's my direct report, lol :)
<copumpkin>
rather far away from me, alas :)
<copumpkin>
5+ hour drive
<gchristensen>
same, but
<disasm>
copumpkin: where are you located?
<copumpkin>
richmond, va
eacameron has joined #nixos
<gchristensen>
it is actually nicely equidistant for us
<copumpkin>
hah, I also don't have my own car :)
<copumpkin>
so that's an expensive uber
<copumpkin>
or a long road bike ride
newhoggy has joined #nixos
<gchristensen>
:D
<gchristensen>
state college airport is awfully fun to fly in to, though
<disasm>
yeah, state college seems pretty central. I've been trying to drum up interest in hosting a conference here some time. Maybe if that ever takes off, you'uns can come for a visit :)
<gchristensen>
last I went the person who checked me in patted me down and put the stairs up to the plane
<copumpkin>
yeah with more notice I could probably make it!
zeus__ has quit [(Read error: Connection reset by peer)]
zeus__ has joined #nixos
<gchristensen>
we could do a nixos retreat in the berkshires ... :)
<disasm>
NixCon State College anyone? :)
simendsjo has joined #nixos
<disasm>
ooh, that would be fun!
<disasm>
if it's state side, I could probably convince my company going to a nixos retreat would be beneficial :)
newhoggy has quit [(Ping timeout: 240 seconds)]
<gchristensen>
I mean berkshires, MA
newhoggy has joined #nixos
chris| has quit [(Quit: Quit)]
nh2 has quit [(Quit: Leaving.)]
yegods has quit [(Remote host closed the connection)]
chris| has joined #nixos
<gchristensen>
disasm: does $work use NixOS?
newhoggy has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #26751: python-dogpile-cache: do not depend on dogpile_core (master...python-dogpile-cache) https://git.io/vQk5T
NixOS_GitHub has left #nixos []
<disasm>
gchristensen: no clients using it yet, but I'm pushing for it :) My work laptop runs nixos, does that count?
<Sonarpulse>
disasm: well i want to release nix more often
<Sand3r>
I have timeouts...
<Sonarpulse>
like every 2 weeks!
<disasm>
Sonarpulse: I'm not opposed :) How often are you thinking?
<clever>
disasm: any time something low-level like glibc or gcc gets changed, nixpkgs will mass-rebuild as a side-effect, and then things like lxc might get noticed
<disasm>
or someone notices and files an issue on github
<clever>
they would be using the cached build most likely, and not notice
newhoggy has joined #nixos
<BlessJah>
Sonarpulse: not necesarily release, but rebuilding over and over (given spare cycles) would be nice
<Sonarpulse>
BlessJah: If CI was strict
<Sonarpulse>
even without the draconian Nix thing
<disasm>
oh, because the derivation doesn't change for that package, just a side effect.
<Sonarpulse>
nobody would be able to merge a PR while Nix broke the world
Infinisil has joined #nixos
<Sonarpulse>
I think that would be suitably annoying
<Sonarpulse>
so that people would prioritize fixing nix / changing nixpkgs
nix-gsc-io`bot has quit [(Client Quit)]
reinzelmann has quit [(Quit: Leaving)]
<disasm>
Which also means it's not a *big deal* to end users, we just might get hit with a whole bunch of similar problems if there's a glibc change that forces a rebuild.
<BlessJah>
Sonarpulse: such change could be postponed until nixpkgs are fixed
<Sonarpulse>
right
<Sonarpulse>
everyone that wants to merge a PR
<Sonarpulse>
would be incentivized to fix fallout
<Sonarpulse>
most nix changes should not break existing derivations
<Sonarpulse>
and all nixpkgs changes will not break nixpkgs
<Sonarpulse>
that seems good enough to me
<BlessJah>
I mean merged nixpkgs, not the PRs
<BlessJah>
the system already has lot's of external dependencies
<Sonarpulse>
hmm?
<BlessJah>
the priority is to fix existing deriviations so breaking change in nix could be merged
<BlessJah>
PRs would be fixed in the meantime
<Sonarpulse>
hmm
newhoggy has quit [(Ping timeout: 240 seconds)]
<boomshroom>
Off topic: Does anyone know of any sane LLVM bindings? Ideally for Rust, but I'm willing to try other languages as long as the bindings are idomatic.
yegods has joined #nixos
<Sonarpulse>
boomshroom: rustc's own bindings
<Sonarpulse>
are a separate crate I think
marsel has joined #nixos
<BlessJah>
nah, the build is still failing
<andromeda-galaxy>
I'm trying to develop something with GHC head, and would like to try building some dependencies - but they all fail because of incorrect base version bounds. Is there an easy way to jailbreak all packages inside of pkgs.haskell.packages.ghcHEAD? I'm also likely to try to use an overlay to add my own haskell.packages.ghcDev using a locally built and patched-by-me ghc, is there a good way to do
<Sonarpulse>
haskell's llvm-general is quite something too I IIRC?
<andromeda-galaxy>
that (potentially incorporating that jailbreak)?
<BlessJah>
Sonarpulse: there are external dependencies that can cause derivation to fail (i.e. upstream vendor renaming their *-3.6.tar.gz to *-3.6.0.tar.gz)
<Sonarpulse>
BlessJah: yeah if upstream breaks an URL we download
<Sonarpulse>
that's annoying
<Sonarpulse>
long time I hope IPFS or similar solves that
newhoggy has joined #nixos
<BlessJah>
or monitoring urls so you'd at least notice the problem?
<Sonarpulse>
that seems like a lot of work
<BlessJah>
it depends, it could be as easy as creating jobs that would abort right after download step
<andromeda-galaxy>
Sonarpulse: the one from make-package-set.nix? I'm not quite sure how to do that (still learning how to use nix)
<BlessJah>
for current and past channel... ough
<Sonarpulse>
andromeda-galaxy: hmm it's not on the tip of my tongue
<Sonarpulse>
maybe I can find an example
<BlessJah>
Sonarpulse: yep, that might be a lot of work
hellrazo1 has joined #nixos
<disasm>
yeah, I'm with Sonarpulse here, monitoring upstream projects for breaking urls I don't think is worth it. Nix is doing what it needs to do if it fails to do a build because a tarball a) doesn't exist anymore b) was moved or c) was modified. All 3 of those cases the build should fail and a bug should be opened for the maintainer to fix.
<simpson>
There should be a tool that *can*, when run, check the URLs.
<BlessJah>
disasm: "monitoting? users are my monitoring" :>
<simpson>
This is what Wikipedia does, for example. There's a tool that can check cited links for validity and freshness, and automatically substitute archive.org links. But it's opt-in and requires an operator.
<simpson>
Er, a user who operates it, not a `sysop` role user.
<andromeda-galaxy>
Sonarpulse: thanks!
newhoggy has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
right IPFS solves that problem much more naturally
<Sonarpulse>
archive.org just GC roots things
<Sonarpulse>
no need to update links
yegods has quit [(Remote host closed the connection)]
<simpson>
IPFS isn't a panacea; you still need *somebody* to actually have the file pinned or cached.
<disasm>
I've been meaning to play with IPFS...
<Sonarpulse>
right
Mutter has joined #nixos
<Sonarpulse>
but that's not worse than today
<Sonarpulse>
if everyone forgets
<Sonarpulse>
it will be forgotten
<BlessJah>
you might also run into licensing issues every now and then
<Sonarpulse>
IPFS should be like damn ready by now
<Sonarpulse>
I am not sure why they aren't more done
* Sonarpulse
blames go
<Infinisil>
Filecoin is happening soon
<Sonarpulse>
what about git fetch?
<Sonarpulse>
IPNS was supposed to do that
<Sonarpulse>
but I don't see anything
<Sonarpulse>
filecoin before git integration is cart before the horse
<Infinisil>
Why?
<BlessJah>
Sonarpulse: how does IPFS works and what are benefits for participants?
<Sand3r>
Anyone? Is cache.nixos.org down?
<Sonarpulse>
BlessJah: IPFS is bittorrent where torrents can refer to other torrents
Itkovian has joined #nixos
<Sonarpulse>
basically
<Infinisil>
Sand3r: I'm curretly updating through cache.nixos.org, so nope
<disasm>
BlessJah: the biggest benefit to ISP's is caching traffic cutting down on their total traffic amount. Imagine everyone in a neighborhood watching the same episode of the latest tv show all at once... The way it is now, that's a lot of wasted bandwidth.
<Sonarpulse>
so you can do directed acyclic graphs
<simpson>
FRidh: Possibly stupid question (also a little late in the evening, sorry!) is there a doc for how to write a from-scratch Python application to work in nixpkgs?
<LnL>
ipfs is interresting, but I don't understand how it's availability works
<Infinisil>
simpson: Why were you disappointed by this?
<Infinisil>
LnL: What do you mean exactly?
<simpson>
Infinisil: Because it's 2017 and if I'm going to have a global store, I'd like it to be content-oblivious and capability-safe.
Mutter has quit [(Remote host closed the connection)]
<simpson>
I don't want others to read my files, and I don't want others to know where my files are without me giving them the key.
<Infinisil>
simpson: IPFS is just a (relatively) low level protocol, you can do anything on top of it, including encryption
<Sonarpulse>
yeah it's meant to be layered
<Sonarpulse>
features are bad
<Infinisil>
One thing I'd like of IPFS is anonymity though, you can't layer that on top of it
<simpson>
Sonarpulse, Infinisil: How would I store a file in IPFS without letting anybody know that I've done so? I'd like to upload a file, turn off my computer, and then send the key to select receivers.
<Sonarpulse>
simpson: private routing on top
<simpson>
Compare and contrast: Tahoe-LAFS operators only know that somebody has uploaded something of an approximate size; they cannot tell what the thing is.
<simpson>
Sonarpulse: Too expensive; let's all do NDN instead~
newhoggy has joined #nixos
<Sonarpulse>
hmm?
<BlessJah>
Sonarpulse: oh, ipfs is actually crowdfunded storage, nothing more, nothing less
<Infinisil>
simpson: Or just asymmetry encryption, using gpg or something
<clever>
simpson: one issue ive noticed with ipfs, is that you have a long-term keypair, and while online, you are storing a pubkey=ip record in the DHT
<Sonarpulse>
I don't mean the routing would be done in ipfs
<Sonarpulse>
so i guess not on top
seppellll has quit [(Ping timeout: 246 seconds)]
<Sonarpulse>
but out of band "access my secret index"
<clever>
simpson: so anybody that knows your pubkey can find your ip, and track you, world-wide
<clever>
simpson: and you are also reporting the set of object hashes you currently have in your ipfs store
<BlessJah>
popular content like cats or memes will stay, unpopular (like simsons backups) won't
<simpson>
Infinisil: Yeah, a tool that encrypted and then broke up the file into pieces and turned the key into a short string, that'd be great. That'd also be exactly Tahoe-LAFS.
<simpson>
clever: Hilarious!
<Sonarpulse>
BlessJah: better to think croudfunded CDN
<Infinisil>
IPFS currently doesn't provide anonymity yes, the developers are currently focusing on more important aspects, but anonymity is an eventual goal
<Sonarpulse>
most areas I hold out for the nice thing
<Sonarpulse>
but on this front
<Sonarpulse>
I'm soooo desparate
<simpson>
Sure. And that makes it a security-second product, not a security-first product, which is why I'm disappointed.
<Sonarpulse>
I take more of a "worse is better" approach
<BlessJah>
still, popular content will be available, useless won't
<simpson>
Sonarpulse: Okay, I'll take you seriously. You're desparate and I want to sell cloud-based storage. What kinds of features do you want?
<Infinisil>
simpson: There are lots of aspects of security, anonymity is just one of them, data integrity is another, which is IPFS' strength
<BlessJah>
bitcoint convinced people to do pointless calculations and was able to monetize them
<Sonarpulse>
simpson: all I want is ask for hash and get the thing, and I think I'm willing to expose myself for that
<simpson>
Infinisil: Capability theory is big these days. (You're in #nixos and Nix is a POLA system, halfway to being cap-safe.) I want to be able to upload to IPFS and get a *filecap*, which is a string that is both necessary and sufficient to read the file.
<Sonarpulse>
sometimes I think better everybody know what git repos I fetch
<Sonarpulse>
than just github
newhoggy has quit [(Ping timeout: 260 seconds)]
<Sonarpulse>
at least there's no information disparity then
obadz has quit [(Ping timeout: 240 seconds)]
<simpson>
Sonarpulse: Okay. Over HTTP, the answer is no; if I offered that, then I'd be opening myself up to massive abuse. (Actually, the answer in a few months will be "yes, but bring your own domain please.")
<BlessJah>
Sonarpulse: they won't know if you happen to know hashes you need and download them from random people
<simpson>
Sonarpulse: If you're willing to use a custom storage client, then the answer is "yes, and it's free, and see https://matador.cloud/ for more information."
<Sonarpulse>
loooking at that
obadz has joined #nixos
<Sonarpulse>
simpson: does tahoe LAFS do dags or just flat data?
<Sonarpulse>
i need dags too
nh2 has joined #nixos
<simpson>
Sonarpulse: Right now, it does blobs and mutable directories.
<BlessJah>
Sonarpulse: you can have DAG on top of flat data
newhoggy has joined #nixos
justin_ has joined #nixos
<Sonarpulse>
simpson: mmm
<simpson>
I have a plan to do not just DAGs, but arbitrary immutable graphs. Still thinking on the design, but it should be hackable onto Tahoe-LAFS without any backend API changes.
<Sonarpulse>
this is more a stylistic than substantive criticism
jbgi has quit [(Ping timeout: 246 seconds)]
<Sonarpulse>
but grrr I hate mutable directories
<Sonarpulse>
I hate the file system abstraction
<simpson>
Well, it's more that they're RO directories with a RW cap.
<Sonarpulse>
I am not a network / security person
<Sonarpulse>
but FS skeumorphism makes me sad
<Infinisil>
Sonarpulse: I feel like databases for everything are the future
<simpson>
For example, the HTTP product I'm trying to get out to a wider audience takes an RO directory cap, and publishes it at a given domain. I don't have the RW cap, so I can't write into your directory. I can only read.
orivej has quit [(Ping timeout: 255 seconds)]
arjen-jonathan has quit [(Ping timeout: 246 seconds)]
Filystyn has quit [(Quit: Konversation terminated!)]
<Sonarpulse>
simpson: why not handle rw vs ro for nodes (dirs) and leaves (files) the same?
newhoggy has quit [(Ping timeout: 268 seconds)]
<Sonarpulse>
what about sets and arrays rather than string-keyed maps for children?
<Sonarpulse>
what about arbitrary data as keys?
<BlessJah>
simpson: how is write access handled by tahoe?
<simpson>
Sonarpulse: Historical reasons. Tahoe started out as a backup product sold by a Bay-area startup; they open-sourced and community-oriented it after their bust.
<Sonarpulse>
right
<simpson>
BlessJah: If you have a writecap, you can write. Otherwise, you can't write.
<BlessJah>
how can I modify encrypted, easure-coded chunks?
<simpson>
Sonarpulse: Directories are stored as "inodes" which list out the caps of the contents of the directory and some magic numbers.
<Sonarpulse>
that's tahoe-lafs proper?
<Sonarpulse>
to be clear
<simpson>
BlessJah: Chunks are immutable unless you have an SSK mutable filecap.
<BlessJah>
is tahoe distriubted and public like IPFS, or private?
ertes-w has quit [(Ping timeout: 240 seconds)]
newhoggy has joined #nixos
<simpson>
BlessJah: It's relative to a "grid". I aim to provide a globally-accessible grid with a free public tier.
<Sonarpulse>
simpson: similarly as a PLer
<Sonarpulse>
I feel like if we right enough libraries for this stuff
<Sonarpulse>
everyone can have the exact system they want
<justanotheruser>
I made the build changes that were asked (here is my definition: https://hastebin.com/raw/dalodojupa ) but I still get ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
arianvp2 has joined #nixos
<simpson>
Sonarpulse: Totally agreed. I would like to think that my efforts are largely a windup to providing some real-world NDN tunneling.
<BlessJah>
simpson: then ro and rw distinction is guaranteed by whoever owns the nodes
<Sonarpulse>
hmm
<Sonarpulse>
glad to hear I am not alone
<Sonarpulse>
old school systems people suck at code reuse
<Sonarpulse>
and thus they spend way more time debating things
<Sonarpulse>
rather than breaking up their ideas into smaller and smaller pieces
<simpson>
BlessJah: Oh! Kind of, but the storage nodes can't do anything worse than corrupt a chunk so that it's unusable.
<Sonarpulse>
until there is nothing to argue about
simendsjo has quit [(Read error: Connection reset by peer)]
FRidh has quit [(Quit: Konversation terminated!)]
<BlessJah>
simpson: what stops RO person from bribing node owners to upload modified chunks?
<simpson>
BlessJah: Not sure. #tahoe-lafs?
<BlessJah>
nah, just trying to figure out if system is interesting enough to learn more about it
<simpson>
Well, I don't know the answer. I think it's "no." We can ask the core developers.
newhoggy has quit [(Ping timeout: 240 seconds)]
<BlessJah>
they might've used public key encryption where private key is required for writes though
<BlessJah>
that'd work
<simpson>
You're on the right track. Each cap is partially derived from an authenticated hash of the contents of the file, so the only way for this to happen is with files that are explicitly mutable behind-the-scenes, like RO dircaps or SSK filecaps.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vQIUz
<NixOS_GitHub>
nixpkgs/master bc47794 Michael Raskin: quicklispPackages: update...
NixOS_GitHub has left #nixos []
<Infinisil>
NixOS question: Oftentimes when rebuilding, the systemd-udev-settle service fails to start, it does work when trying it again. Anybody seen this before or knows what's the problem?
<simpson>
Infinisil: I see it regularly and don't know why it happens.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 2 new commits to release-17.03: https://git.io/vQIU7
<NixOS_GitHub>
nixpkgs/release-17.03 eb2ce87 Jan Tojnar: doc: Fix some typos...
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
newhoggy has joined #nixos
lambdael has quit [(Quit: WeeChat 1.7.1)]
<Infinisil>
Why oh why is firefox using 30% cpu when not even being visible
newhoggy has quit [(Ping timeout: 246 seconds)]
<BlessJah>
oh, didn't they fork lot's of threads so it'd be harder to track the resources usage?
<Infinisil>
I heard they'd use 4 processes
georges-duperon has quit [(Ping timeout: 255 seconds)]
phreedom has joined #nixos
newhoggy has joined #nixos
shadow-x has joined #nixos
<Infinisil>
Can only see 2 though (one main and one forked)
<BlessJah>
chromium is eating 10G of ram
shadow-x has quit [(Client Quit)]
mkoenig has quit [(Remote host closed the connection)]
<BlessJah>
spread over 81 processes and 1k threads...
<Infinisil>
Lol, how many tabs?
<BlessJah>
little over 100
<Infinisil>
About 80 threads for firefox here with 10 tabs
newhoggy has quit [(Read error: Connection reset by peer)]
newhoggy_ has joined #nixos
Guest52342 has quit [(Quit: Lost terminal)]
stanibanani has quit [(Ping timeout: 268 seconds)]
<Infinisil>
Is there some way to include a file as source code in a nix file?
cpennington has quit [(Remote host closed the connection)]
<BlessJah>
make separate derivation with said file maybe?
newhoggy_ has quit [(Ping timeout: 246 seconds)]
arianvp2 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
So like a templating engine thing? So the nix file would have some place with ##FILE##, then use `sed` or something to replace that part with the read file
jonte has quit [(Ping timeout: 255 seconds)]
newhoggy has joined #nixos
<Infinisil>
My end goal is to be able to have config files (such as the ssh config) in my config folder, but use nix syntax to template stuff, such as loop through all hosts to create shortcuts.
jtojnar_ has quit [(Ping timeout: 240 seconds)]
<clever>
Infinisil: you can use builtins.readFile to read a file and then manipulate it
<clever>
Infinisil: there is also import from derivation, just make a derivation that contains a nix file, then import it
ryanartecona has joined #nixos
marsel has quit [(Ping timeout: 260 seconds)]
<BlessJah>
oh, I'm fighting with this issue for few weeks already
<BlessJah>
~500 loc config that I want to template
<disasm>
justanotheruser: you need stdenv.cc in buildInputs I think.
<clever>
disasm: it should be in the env by default
<Infinisil>
BlessJah: Some problem with that?
HappyEnte has quit [(Ping timeout: 260 seconds)]
<BlessJah>
dunno how to do it
<shlevy>
domenkozar: How familiar are you with iohk's stack2nix?
bennofs has quit [(Quit: WeeChat 1.8)]
Wizek has joined #nixos
peacememories has joined #nixos
Wizek_ has joined #nixos
<disasm>
justanotheruser: what command are you running?
<Infinisil>
My config folder is so behind with commits, lots of files changed, but didn't commit in weeks
HappyEnte has joined #nixos
<disasm>
Infinisil: haha, been there, done that :)
yegods has quit [(Remote host closed the connection)]
<Infinisil>
I need some more convenient command, like `config "Changed blablabla"` that does `cd configdir, git add -A, git commit -m "..."`
<Infinisil>
Or `config` that opens the configdir in vim and upon exiting asks for the commit message and commits
<BlessJah>
Infinisil: what you actually need is ~/.bashrc with `git status --ignored --short` ^^
<disasm>
Infinisil: vi hook when writing file to run :Gcommit?
<Infinisil>
disasm: Need to test configs, wouldn't want a commit on every write
<Infinisil>
The idea is that I'd do all my editing in vim, and when I'm done testing, I exit vim and it gets committed
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ryanartecona has quit [(Quit: ryanartecona)]
<disasm>
hmm, maybe :Gcommit on quit?
mkoenig has joined #nixos
<disasm>
Infinisil: something like autocmd VimLeave *.nix :Gcommit (untested)
jbo has joined #nixos
<gchristensen>
ok last chance, I'm going to merge https://github.com/NixOS/nixpkgs/pull/26736 unless someone here has opinions on perl / the nixos tests / how debuggable the nixos tests are
Itkovian has joined #nixos
<Infinisil>
I was just thinking of really simple bash script: "cd ~/config; vim .; git commit"
yegods has joined #nixos
<Infinisil>
Oh and a `git add -A`
<disasm>
Infinisil: maybe just create a shell alias called nixconfig that does that?
<Infinisil>
Yeah I might do that. Need to clean up my config first though heh
jake_ has joined #nixos
jake_ is now known as jbaum98
<jbaum98>
is there a way to override environment.etc.localtime.source?
<jbaum98>
if i want to link from some other place for /etc/localtime?
orivej has joined #nixos
<fpletz[m]>
joachifm: just noticed the linux_hardened config, very cool! thanks!
simukis has quit [(Quit: simukis)]
<Infinisil>
jbaum98: Does setting this property in the system config not work?
<fpletz[m]>
!m joachifm
<[0__0]>
You're doing good work, joachifm!
newhoggy has quit [(Remote host closed the connection)]
<jbaum98>
Infinisil: i get an error: The unique option `environment.etc.localtime.source' is defined multiple times
<Infinisil>
jbaum98: Ahh, hmm
<jbaum98>
Infinisil: alternatively, can i just disable that entire timezone module?
<Infinisil>
jbaum98: No idea
<jbaum98>
Is there a way to disable the entire timezone module?
<disasm>
fpletz[m]: can you link that linux_hardened config? I'm interested :)
pietranera has joined #nixos
<Infinisil>
What is 'linux_hardened'?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc pushed 5 new commits to master: https://git.io/vQI3P
<NixOS_GitHub>
nixpkgs/master 56435c1 Graham Christensen: nixos tests: retry: Count down to 0, and pass remaining attempts to the sub...
<NixOS_GitHub>
nixpkgs/master 348785e Graham Christensen: nixos tests: waitUntilTTYMatches: Log TTY contents on last try...
<NixOS_GitHub>
nixpkgs/master 1b83301 Graham Christensen: nixos tests: waitForText: output the detected screen content prior to the last attempt...
NixOS_GitHub has left #nixos []
* gchristensen
looks forward to more debuggable nixos test failures
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/vQI3D
<NixOS_GitHub>
nixpkgs/master 7469eb9 Daiderd Jordan: stress: enable on darwin
NixOS_GitHub has left #nixos []
<Infinisil>
I'd think increased security, but I don't know what exactly
<LnL>
gchristensen: nice
k2s has joined #nixos
<fpletz[m]>
disasm: to use it in your NixOS config: boot.kernelPackages = pkgs.linuxPackages_hardened;
<Infinisil>
fpletz[m]: Well security is always nice, why wouldn't this be the default setting though?
k2s has quit [(Client Quit)]
<disasm>
ooh, so that's a replacement for grsecurity. That would be awesome fpletz[m]
<gchristensen>
Infinisil: security is a sliding scale of tradeoffs
<fpletz[m]>
disasm: they are porting some grsec features, yeah, not sure if I trust them yet though :)
blahdodo has joined #nixos
<fpletz[m]>
Infinisil: I have yet to look up some of the config options but these probably have a hefty performance impact or might break userspace software
zeus__ has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
nixpkgs/release-17.03 c18c454 Franz Pletz: webkitgtk: 2.16.3 -> 2.16.4 for multiple CVEs...
NixOS_GitHub has left #nixos []
justin_ has joined #nixos
<jbo>
puffnfresh: oh hi - was just reading your blog -- congrats on the job.
<jbo>
puffnfresh: any chance you could explain your FHS script a little more from https://brianmckenna.org/blog/running_binaries_on_nixos ? -- guessing I need to add buildFHSUserEnv to a local nixpkgs repo somehow(? I'm new to this)
<puffnfresh>
buildFHSUserEnv is a function in nixpkgs
jgertm has quit [(Ping timeout: 240 seconds)]
<puffnfresh>
you can copy/paste that first bit of code into a file
<puffnfresh>
then build it like:
<puffnfresh>
nix-build myfhsenv.nix
<puffnfresh>
and you'll end up with a "result" symlink in the current directory
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<jbo>
puffnfresh: cool, thanks
hiratara has quit [(Remote host closed the connection)]
<jbo>
puffnfresh: brilliant -- that got me a step closer to running the binary I've got -- need to fiddle with the deps a little. *thank you*
jgertm has joined #nixos
newhoggy has quit [(Remote host closed the connection)]
<puffnfresh>
wooo
hiratara has joined #nixos
Hoolootwo has left #nixos ["Leaving"]
JagaJaga has joined #nixos
JagaJaga has quit [(Client Quit)]
ebzzry has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to staging: https://git.io/vQI4Y
<NixOS_GitHub>
nixpkgs/staging 5389caa Franz Pletz: utillinux: 2.29.2 -> 2.30
<NixOS_GitHub>
nixpkgs/staging 29a485a Franz Pletz: libev: 4.22 -> 4.24
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vQI4Z
<NixOS_GitHub>
nixpkgs/staging 6338c50 Franz Pletz: Merge branch 'master' into staging
NixOS_GitHub has left #nixos []
ertes has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]
<jbaum98>
every time i download it, it's shasum changes
<jbaum98>
i'm guessing this is a timestamp; is there a way to strip this timestamp information to get a fixed shasum part so that i can use it with nix?
<joachifm>
jbaum98: try a fetcher that derives the sum from the archive contents
<jbaum98>
joachifm: such as? i was using fetchurl
newhoggy has quit [(Ping timeout: 246 seconds)]
<joachifm>
jbaum98: fetchzip
<Infinisil>
A package I'm trying to get into nixpkgs has its CMakefile in ./src, how can I tell nix-build to do its thing there instead?
<wak-work>
yeah, chromium sources get regenerated every time with new timestamps
<wak-work>
you have to clamp their timestamps with a fetchzip
<wak-work>
and by that i mean the chromium gerrkit
<Infinisil>
nix-build gives an error in the configure phase, that it can't find the CMakeList file (because it's in the ./src directory), but nix-shell doesn't
<clever>
Infinisil: try doing "cd src" inside the preConfigure hook?
orivej has quit [(Ping timeout: 246 seconds)]
<manveru>
maybe add cmake?
<manveru>
oh it's there
<Infinisil>
Ah yes that gets me a bit further, clever
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to staging: https://git.io/vQIER