<joepie91> wrote a .drv file parser \o/
<joepie91> that was surprisingly simple
<joepie91> bit of a yak shaving exercise but it works :D
<joepie91> (my original goal was .drv pretty printing)
mudri has quit [(Ping timeout: 248 seconds)]
eacameron has joined #nixos
<clever> joepie91: nice
<joepie91> the inputDerivations key is wrong
<joepie91> currently trying to figure out a better name
<joepie91> this is the AST parser definition: https://gist.github.com/joepie91/b20a3fffcdc12146531ea9d635008bb1
<joepie91> and the postprocessing for actually interpreting the values: https://gist.github.com/joepie91/9cab4dc91155cbad58719e68bbcc143a
<joepie91> (will publish this as a module eventually(tm))
<clever> it can help to just put everything into one gist
eacameron has quit [(Ping timeout: 276 seconds)]
cpennington has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ElvishJerricco opened pull request #27072: Swig 3.0.10 -> 3.0.12 (master...swig-3.0.12) https://git.io/vQEGG
NixOS_GitHub has left #nixos []
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
endformationage has quit [(Quit: WeeChat 1.7)]
justan0theruser has quit [(Ping timeout: 255 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b084b93faa (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<boomshroom> Do any of the Minecrafers here know how to speed up launch time when using a modpack?
magnetophon1 has quit [(Remote host closed the connection)]
<joepie91> boomshroom: depending on the modpack you may need to increase the RAM allocated to the JVM; eg. the default setting for the kitchen-sink FTB packs is way too low and leads to the launcher spinning its wheels endlessly garbage-collecting uncollectable stuff
<clever> boomshroom: you can also run jvisualvm from the oraclejdk to debug the java process
<clever> boomshroom: it works even on the non-oracle jvm
<joepie91> boomshroom: beyond that, there's not much you can optimize that I know of (without actually modifying the modpack or its contents in some way) aside from some minor speed gains by loading from an SSD instead of a HDD
<clever> most of my time is spent in the cpu anyways
<clever> and i think its heavily single threaded
<joepie91> yeah, most of MC initialization is just bursting a single CPU thread
<joepie91> so short of getting an obscenely expensive CPU there's not much to improve there
<joepie91> :p
<clever> or fixing the initialization code in every mod
<joepie91> the SSD will only help with the I/O-heavy phases; the process isn't perfectly parallelized so there are some parts of the loading process where it'll bottleneck on I/O instead of CPU and vice versa
<joepie91> but the bulk is still CPU-bound
jtojnar has quit [(Ping timeout: 260 seconds)]
<joepie91> I'm still amazed at how long eg. FTB packs take to initialize
<joepie91> there's really no excuse for needing 5 minutes for such a relatively limited amount of content
<joepie91> sure, it's a lot of content, but not 5-minutes-a-lot
<clever> i remember it being more like 10mins
<joepie91> varies by system, it's about 5 for me
<clever> the fml logs may say which mod is to blame
<joepie91> for whatever is the canonical FTB kitchensink pack at the time :P
<clever> joepie91: do you see a loading-log.log file?
<joepie91> clever: I *suspect* that it's some sort of exponential lookup thing caused by mod 1 interacting with mod 2 which leads to mod 2 interacting with mods 3 and 4 etc.
<joepie91> plus crappy autoupdater code
<joepie91> clever: not sure what you're referring to with that, but I've never seen anything particularly weird in the FTB launch log other than lots of mod interactions
<clever> joepie91: try this cmd, find $HOME -name loading-log.log
<joepie91> clever: isn't that in ~/.ftblauncher?
<joepie91> normally
<joepie91> because I don't seem to have any logs there
<joepie91> and my $HOME is pretty big :)
<clever> yeah, you can limit the search to there if your using ftb
s33se_ has joined #nixos
<joepie91> nothing found with that name
<clever> mine was in ~/.MCUpdater/instances
<clever> your forge might be too old to make it
k0001 has joined #nixos
<clever> what version of MC?
<joepie91> not a clue, haven't played MC for a while
<joepie91> whatever the FTB kitchensink packs use
k0001_ has quit [(Ping timeout: 240 seconds)]
<clever> they are split between the modern mc and the old 1.7 stuff
<joepie91> I think I've played newer as well
<joepie91> but not certain
vaibhavsagar has joined #nixos
<clever> tconstruct: 722ms
<clever> my log file says things like this
<joepie91> oh, it times mod loads?
<clever> integrateddynamics: 3251ms
<clever> yeah
s33se has quit [(Ping timeout: 260 seconds)]
<joepie91> perhaps I've only played older then, no idea
<joepie91> :p
<joepie91> anyway, brb
ertes has quit [(Remote host closed the connection)]
aneeshusa has joined #nixos
<nh2> with what command can I fetch a store path from a binary cache?
<clever> nix-store -r /nix/store/foo
k0001 has quit [(Ping timeout: 248 seconds)]
ertes has joined #nixos
<clever> nh2: i aslo need to test our your nginx nixos cache when i get home, ive got gigabit inside the lan so it should help with the latency of common things
marantz has joined #nixos
<nh2> clever: I've just updated the gist, to contain some improved caching settings for cloudflare. Before I made it cache 404s which isn't good
<clever> ah, i see a diff
<nh2> clever: so far it brought a 2x speedup for my nixos stuff vs cache.nixos.org
<nh2> so I'm very happy, thanks for your initial gist
<clever> nh2: i also noticed you use 8.8.8.8, but i recently had issues with 8.8.8.8 claiming some servers i use dont exist
<clever> i just run my own recursive cache
<gchristensen> nh2: you put it behind cf? :D
<nh2> clever: yes, you can put everything there, IIRC the only reason I put it was that one needs to set it to _some_ IP that's a nameserver, so I just picked that
<clever> ah
<nh2> gchristensen: yes, it's pretty fast
Maxdamantus has quit [(Ping timeout: 268 seconds)]
<gchristensen> fancy
<nh2> clever, gchristensen: if you also want to try this with CloudFlare, you need to set their settings to "Cache Everything" (in contrast to expectations, this doesn't force caching, it still respects upstream caching headers; the "cache everything" just says "cache all file types", including the nar stuff)
<clever> ah
<clever> i would expect cloudflare caching and ec2 stuff to not be that much better then cache.nixos.org, other then it being an isolated instance
<clever> and maybe being in your region
hellrazo1 has joined #nixos
<clever> but i do have ~5 nixos machines at home, and a local cache to share between them would help
<nh2> clever: I would also not expect it but in my measurements from earlier today it showed that cache.nixos.org Cloufront performs very badly even when accessed from AWS Frankfurt
<nh2> for me it's almost always a crawling slow few-MB/s-at-max
<clever> almost sounds like cloudfront needs more work?, do we know anything about the internals behind how it works?
cpennington has quit [(Remote host closed the connection)]
<nh2> clever: only thing I know is that even when I curl the same .nar.xz from CloudFront from the same machine multiple times in a row, it will cache-miss every now and then
hellrazor has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jerith666 opened pull request #27073: Eclipse 4.7 oxygen: cpp & modeling (master...eclipse-oxygen) https://git.io/vQEny
NixOS_GitHub has left #nixos []
<nh2> CloudFlare is much more predictable in that regard, if you hit the cache once from one location, you can be pretty sure it'll always hit the cache from that location for the next couple hours (have never observed it otherwise so far)
<nh2> clever: I'm currently trying to add an extra feature to this config so that I can put my own built packages (generated with `nix-push`) into /var/public-nix-cache (thus my question about force-fetching a path), but somehow it doesn't work yet
<clever> ah
<clever> another thought, is to write a custom client that will recursively browse the narinfo tree and fetch every nar via the cache
<nh2> clever: the setup for that is already in the gist but it doesn't seem to work. Fetching the file with curl certainly does, but not with `nix-store -r`. I wonder if I have to do something special with that beyond putting the output of `nix-push` into that directory?
<clever> but just throw out the bytes as it goes
<clever> i think nginx has an index of what it has downloaded
<clever> and nix-push will re-sign things, so the narinfo will be wrong
jtojnar has joined #nixos
<nh2> clever: also, I generated it with `nix-push --none`, is that a problem (not xz-compressed, because that took too long to try it this evening)
<nh2> ?
<nh2> clever: what will nix-push sign it with if I run it from my desktop?
<clever> you have to pass it a key with --key-file
<clever> and if you dont, the narinfo files just wont be signed
<clever> nix-daemon may ignore them entirely
<clever> checking the http access logs can reveal what its doing
<nh2> clever: hmm, OK. I guess I should first enable access logs so I can see if if it's even trying
<clever> and since you also have nginx acting as a mitm for cache.nixos.org, you can see it trying again on another cache
<gchristensen> clever: is there any reason I need to be trusted to seed torrents for the binary cache?
<clever> also, when i check the A records for cache.nixos.org, i can see 8 ipv4 addresses behind the domain
<gchristensen> / generate the .torrents ?
<clever> gchristensen: as long as you serve the original .narinfo files from cache.nixos.org, the signatures stay intact, but you would need to host the unpacked torrent on http, and set that as a binary cache
<clever> i dont think nix can read narinfo+nar files from a local dir
<nh2> gchristensen: wait, nix can already fetch stuff via torrents?
<gchristensen> no it can't, nh2
<nh2> ah that'd be cool
<hodapp> gchristensen: did you catch what I said earlier about why the database wouldn't matter for this PHP issue on ttrss?
praduca has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
<gchristensen> hodapp: I did, but I'm not sure what to say :9
<gchristensen> sorry
<hodapp> gchristensen: me neither, but I'm hoping someone who knows more about nginx configuration can weigh in or at least reproduce the issue\
<clever> hodapp: did you ever try it with display_errors = on in the php.ini?
<hodapp> clever: I don't think I tried that. At a certain point, I just gave up trying to diagnose anything, and instead just wanted to see if as vanilla of a configuration as possible reproduced the issue
<clever> hodapp: if you read the php-fpm command from the systemd unit, youll find the current php.ini path
<nh2> clever: is there some standard way to enable access_log for nixos nginx?
<clever> copy it somewhere, change display_errors, and then manualy run php-fpm with the right end, and the new php.ini path
<hodapp> clever: out of curiosity, if you check out the configuration in that issue I filed, do you get the same problem?
<clever> nh2: dont see one, youll need to use one of the many extraConfig options to insert it at the right place
<nh2> clever: I used gridaphobe's https://github.com/gridaphobe/nixos-config/blob/12a1e87b290436b9ba52dbd9b1edcb1d8217fd03/configuration.nix#L114 now, `access_log logs/access.log main;`, that seems to put it under `/var/spool/nginx`
<hodapp> clever: https://github.com/NixOS/nixpkgs/issues/27048 is the issue I filed
<clever> hodapp: testing...
<hodapp> thanks. please make me feel stupid by finding the one obvious thing I ignored.
<gchristensen> clever: a major problem with bittorrent is distribution of the .torrents. heh.
<hodapp> magnet links!
<hodapp> my friend says it worked for a site called pirate bay, where I guess he buys all his movies and stuff
<nh2> clever: `nix-store -r /nix/store/abcabc...-cudatoolkit-8.0.44` doesn't hit the access_log at all, no idea why not
<clever> nh2: what is the contents of nix.conf on that machine?
<gchristensen> then you have to distribute the magnet links, hodapp
<hodapp> they're tine
<hodapp> ...tiny*
<clever> so are the narinfo files
<gchristensen> whether or not that is a problem depends if your goal was to eliminate the central cache or not
<nh2> clever: ah, I ran this from the nginx server machine, which hasn't actually got itself as binary-caches entry, will fix that
<hodapp> hmm. maybe I should just use a Python-based RSS client so that I have a much better chance of it actually working, and of being able to hack it
<hodapp> as much as folks swear by ttrss
drakonis has joined #nixos
lambdamu has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<clever> hodapp: i can confirm the same problem in a vm when i use the config from the gist
<hodapp> clever: alrighty. thanks.
mbrgm has joined #nixos
<nh2> clever: OK great, progress: Now I get `NAR info file http://mybinarycache/...narinfo lacks a signature, ignoring`
<gchristensen> I think there are cool ways to experiment with alternatives to the binary cache by making an http prooxy
<clever> hodapp: now i can just debug it locally
* hodapp throws a dart at the wall
<hodapp> let's use... IPFS
<clever> nh2: you need to generate a keypair (nix-store man page), then use --key-file on nix-push so it can sign things
<clever> nh2: and ensure the public half is in the nix.conf file
<gchristensen> sure, go make an http proxy and get playing :)
<clever> nh2: and it currently has a bug, where it doesnt save the signatures from cache.nixos.org, so anything you get from nixos, is re-signed by your key
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<hodapp> nah, I didn't want to actually do the work, I just wanted to pretend I had a clue
<hodapp> the IPFS paper has been on my to-read list for embarrassingly long now
<gchristensen> simpson doesn't like it
<hodapp> why not?
<clever> ipfs is mainly a hash(value) = value database
<clever> so you need to know the hash of the content to ask for me
<clever> for it*
<clever> and the binary cache stuff isnt based on the hash of the content
<clever> its more of a hash(source) = compiled_binary database
<clever> and your "lookup" function is gcc
<nh2> so in short: IPFS is hash(output)=output, Nix is hash(input)=output
<clever> yeah
<clever> and the narinfo files act as a map between things
<clever> and the naming of the nar file depends on the server
<catern> gotta move to the
<catern> ~intensional store~
<catern> are we ever gonna do that?
<clever> for example, hydra uses a narpath that is identical to the storepath, without even a .nar at the end
<catern> also I heard that IPFS is not particularly competent
Nycatelos has quit [(Ping timeout: 240 seconds)]
<clever> so when it gets the nar request, it knows exactly what path to pack up on-demand
<hodapp> catern: competent as far as what?
<clever> catern: another limitation of IPFS, is that you only store the things you asked the network for
<clever> catern: so if nobody asks for a given object, it just doesnt get mirrored, and it dies off
ij has quit [(Ping timeout: 255 seconds)]
<clever> and related, the object must remain in the ipfs storage dir, in blocked form (not usable by nix) to share with others
<clever> so you need 2 copies of everything you install (one in /nix/store, one in the ipfs store)
<catern> hodapp: eh I dunno
<clever> that just encourages people to delete it from the ipfs store, and then nobody benefits from it
<catern> yeah
<clever> its the same as serving .zip files in a torrent
<joepie91> it took me a full 7 months to realize that I can work around lack of left recursion support in a PEG parser, by always recursing on the right side
<joepie91> ...
CustosLimen has quit [(Ping timeout: 255 seconds)]
<clever> now i have to unpack it to use the content, and then i just delete the zip
<catern> Nix is kind of fundamentally different from CA storage, right?
<hodapp> hmmm
<catern> CA (content addressed) storage is, y'know, content addressed
<clever> catern: CA storage?
<clever> ah, yeah
<joepie91> well, yes and no
<catern> the Nix store is a cache for a *function*
<joepie91> you could consider the binary cache to be content-addressed
<joepie91> in a way
<joepie91> that is, you request the hash of the build configuration from the binary cache to get a build
<hodapp> yeah, sorta
<catern> yes, that's fundamentally different from CAS
<nh2> catern, joepie91: see above, IPFS is hash(output)=output, Nix is hash(input)=output
<catern> they both use hashes of course :)
<catern> nh2: right
<joepie91> that seems like a needlessly strict definition of "content-addressed" :P
<clever> and the output is generated via output=f(input)
<clever> and f isnt always going to give the same out for the same in
<nh2> clever: OK, so that narinfo files are mutable (given that I just added a signature), we should probably reflect that fact in the nginx config by not caching those forever
boegel has joined #nixos
<clever> nh2: at least on cache.nixos.org, the files are immutable, but when you take different cache providers into account, they may each have different narinfo contents
<catern> CAS is this function: hash(x) -> x; Nix is this function: x -> y, and an associated cache which is cheaper to perform looks up in, which is hash(x) -> y
<clever> nh2: something ive been thinking of, is a custom daemon, that can query several binary caches, then cache them all in one spot, and serve them up
<catern> it's like memoization, basically
<clever> nh2: and will be configured to prefer a cache.nixos.org signature, when one exists
roconnor has quit [(Ping timeout: 248 seconds)]
Nycatelos has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
ij has joined #nixos
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<nh2> clever: that would be useful; this CloudFlare thing is already doing wonders for me but the eventual even better solution would be a machine in the same datacenter that has it all on the disk
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #27074: kmod-debian-aliases: Fix source tarball URL. (master...shpr_fixurls_kmod_debian) https://git.io/vQECU
NixOS_GitHub has left #nixos []
<clever> nh2: it may also help to mix the 2, use a slower daemon with a full cache of everything, then a nginx over that, that can quickly serve recently used data
<clever> then you can take advantage of the optimization ngingx has already had
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #27075: p7zip: Update CVE-2016-9296 patch URL. (master...shpr_fixurls_p7zip) https://git.io/vQEC0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #27076: Mariadb: Fix URL for source tarball. (master...shpr_fixurls_mariadb) https://git.io/vQECK
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sh01 opened pull request #27077: Openslp: Fix patch references. (master...shpr_fixurls_openslp) https://git.io/vQECx
NixOS_GitHub has left #nixos []
<clever> hodapp: https://gist.github.com/a32177e4b2b8b7c1e443b6d0fa102827 with this, i can fire up a VM that reproduces the issue, i had set line 17 to false because i was running it over ssh
<clever> hodapp: but if you delete line 17, you get a full xorg window to the VM
CustosLimen has joined #nixos
<hodapp> alrighty
<hodapp> ...somehow I have ignored build-vm's existence altogether
<nh2> clever: `nix-store -r` works now against the cache, thanks!
koserge has quit [(Ping timeout: 240 seconds)]
<nh2> clever: yes, I've found that a couple things 404 on github that shouldn't. Recently also on a "History" page of a file, clicked the "<>" to show the file contents, got 404
<hodapp> clever: I guess I'll add that gist to the GitHub issue
<nh2> clever: though in this case it might not be github's fault
<_habnabit> ok so this isn't nixos per se but i installed nixpkgs on alpine and it's having trouble running binaries that need glibc. how can i get nix-env or whatever to set the right environment cruft so that it uses nix's ld-linux.so and libc.so
<clever> nh2: could be another force push, ive been having problems with those lately
mrcheeks has quit [(Quit: ERC (IRC client for Emacs 26.0.50))]
<clever> _habnabit: are you using nix-shell?
<_habnabit> clever, i could, if that would help
<_habnabit> clever, i wasn't at the moment
<clever> nearly everything compiling related breaks if not used in nix-shell
<_habnabit> clever, ok. so how do i start nix-shell?
<clever> and installing the compiler/libs wont help, and sometimes makes it harder to see the problem
<clever> nix-shell -p gcc libfoo libbar
<clever> that will give you a shell that can compile things using libfoo and libbar
<_habnabit> ah ok
<_habnabit> $ ldd rustup-init => /nix/store/7n45x3waczv1smsdkax2dy4j2zhbfk82-glibc-2.25-bin/bin/ldd: eval: line 1: ./rustup-init: not found
<_habnabit> .. huh
<clever> _habnabit: try with patcheld --print-interpreter
<clever> patchelf, oops
<_habnabit> $ patchelf --print-interpreter rustup-init => /lib64/ld-linux-x86-64.so.2
<_habnabit> is that what you were looking for?
<clever> yeah, you need to --set-interpreter it to the right value
<_habnabit> bleh
<clever> nixos doesnt have a /lib64 dir
<_habnabit> okay
<_habnabit> dang it linux
<_habnabit> clever, so what's the right value?
<joepie91> errr... https://nixos.org/nix/manual/#sec-language-operators appears to be missing the mathematical operators like +?
<joepie91> am I just overlooking something?
<_habnabit> clever, at last! ldd is giving output!
<joepie91> the only + there is string concat, and - is missing entirely
<_habnabit> and now i can see i'm also missing libz
drakonis has quit [(Read error: Connection reset by peer)]
<clever> _habnabit: lol, zlib is in my example
<_habnabit> clever, so i'm looking at this code, but i'm not really sure what to do with it
<clever> _habnabit: if you run nix-build on this file, you will get a result symlink pointing to a bash script
jgertm has quit [(Ping timeout: 276 seconds)]
<_habnabit> clever, ah ok
<clever> that bash script can be ran on an ELF file to patch it
<_habnabit> clever, got it
<clever> and as long as you keep that result symlink, nixos wont delete the libraries
<clever> so the rustup binary will keep working
<_habnabit> is there something like https://nixos.org/nixos/packages.html but shows the contents of files? i'm not sure if something other than the 'zlib' package has libz.so.1
hapticFeels has quit [(Read error: Connection reset by peer)]
<_habnabit> oh, it is in zlib..
<joepie91> _habnabit: the only thing I know of that does that, is https://github.com/bennofs/nix-index (I have not used it though)
<joepie91> well, and command-not-found for executables, I don't think that includes libraries
<clever> i have used nix-index, and it works well when you know the path
marantz has quit [(Quit: Leaving.)]
<_habnabit> is `nix-env -i zlib` in nix-shell supposed to do whatever magic is required to make libz.so.1 dynamically loadable?
<clever> nope
<_habnabit> oh
<clever> installing libraries with nix-env will never make them work
<clever> you must edit the rpath with patchelf, to point to zlib
<clever> the gist i linked can do that
<_habnabit> ah ok
koserge has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ebzzry has joined #nixos
Infinisil has quit [(Ping timeout: 240 seconds)]
<hodapp> "Could not find a version that satisfies the requirement celery-with-mongodb (from leselys==0.2.6) (from versions: )" I am kinda not sure what that means...
Infinisil has joined #nixos
garbas has quit [(Quit: WeeChat 1.7.1)]
<_habnabit> clever, haha, nice.. another executable already has an rpath set, and --set-rpath clobbers it :c
<clever> yeah
<clever> there is a --print-rpath
<_habnabit> this is getting complicated
<_habnabit> i haven't even gotten rustc running yet and i'm not sure if it'll produce correct output
<clever> its usualy simpler to use the rust thats already packaged into nixpkgs
DanC has left #nixos ["Hasta"]
<_habnabit> i need rust nightly, unfortunately
<clever> i think thats in the mozilla overlay
<_habnabit> oh!
<_habnabit> where's this?
<clever> 2017-06-26 21:45:59< Infinisil> You can however clone the nixpkgs-mozilla repo, then link to it with nixpkgs.overlays = [ (import path/to/mozilla/overlay/rust-overlay.nix) ];
jgertm has joined #nixos
<_habnabit> nice
<clever> but thats for configuration.nix
<_habnabit> i'm not sure what that means
<clever> for normal nixpkgs, its in ~/.config/nixpkgs/overlays i think
<clever> lookup the nixpkgs overlays int he docs
<joepie91> clever: do you know if there is any *complete* reference of operators in Nix? I've assembled a list of all the operators and bits of syntax I could find in the parser source, but I haven't figured out how to determine the precedence
<clever> joepie91: only source i can think of is the parser and lexer files
<joepie91> clever: but how do I infer the precedence from that?
<joepie91> clever: this is my current list, with my best guess at precedence: https://gist.github.com/joepie91/c3c047f3406aea9ec65eebce2ffd449d
<joepie91> but I'm not certain that it's correct
orivej has quit [(Ping timeout: 248 seconds)]
<clever> joepie91: i think its in the expr_op definition in parser.y
<joepie91> clever: that's what I thought at first too, but it doesn't match what the documentation claims about operator precedence :/
roconnor has joined #nixos
<joepie91> eg. UPDATE is below IMPL
<joepie91> even though it should be near the top
<joepie91> and it doesn't indicate which operators have the same precedence either
<nh2> clever: is it possible to split a .nar into multiple ones? Clouflare has a max size of 512 MB
<nh2> (and cudatoolkit is 2 GB)
<clever> 279 %left OR
<clever> joepie91: what about this region?
<joepie91> clever: only defines a few of the operators
orivej has joined #nixos
<clever> nh2: nope, nix expects the entire store as one stream
<joepie91> unclear if it decides precedence
<nh2> that's unfortunate
<nh2> clever: OK, bedtime for me, thanks for your help again! I'm glad the proxy cache is working, it's really nice for transparent caching
<joepie91> clever: btw, the two sections you mentioned are what I used as a reference to put together my current list :)
roconnor has quit [(Ping timeout: 260 seconds)]
<clever> joepie91: ah, just opened the gist
<clever> joepie91: i only have 3gig of ram on this laptop, so it takes a while to open things
<joepie91> right :P
<joepie91> hm..
rjsalts has quit [(Read error: Connection reset by peer)]
rjsalts has joined #nixos
<joepie91> yeah, I think that's a complete list
marantz has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c5e314dabe (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
nh2 has quit [(Quit: Leaving.)]
<clever> joepie91: there are also some edge cases, like set.a-b or set."a.b"
<joepie91> clever: the former evaluates to set."a-b" if I'm not mistaken, I'm not sure what the edgecase for the latter is
<joepie91> clever: can you elaborate on that last one?
<clever> its an attribute names a.b
<clever> which will give fun error messages, because set.a.b doesnt exist
<joepie91> clever: is it possible to define an attribute (ie. not attribute path) "a.b" on a set?
<joepie91> which would make set."a.b" a valid lookup
<clever> yeah, { "a.b" = value; }
<joepie91> then I'm not sure what's the edgecase, unless you mean it in the sense of: set.a.b != set."a.b"
<clever> its just an unusual thing that not many will expect
<joepie91> (which seems obvious to me, but may not be to others? idk)
<clever> and the errors say set.a.b
<joepie91> ahhhh
<clever> so you dont notice that the . isnt part of the path
<joepie91> okay, I get what you mean now
<joepie91> clever: I'm a bit biased because writing parsers for invented and/or existing formats is pretty much a saturday evening hobby project for me, so I don't even notice some of the typical language design quirks
<joepie91> I just kind of assume them to exist
<joepie91> :p
<clever> :D
<joepie91> clever: anyhow, currently trying to implement a Nix parser, using a PEG generator
<joepie91> may or may not succeed
koserge has quit [(Ping timeout: 255 seconds)]
justelex_ has joined #nixos
<clever> joepie91: possibly of use: https://github.com/taktoa/nix-parse
phreedom has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 260 seconds)]
indi_ has joined #nixos
ebzzry has joined #nixos
<joepie91> clever: nah, that just hooks into the 'official' Nix parser
marantz has quit [(Quit: Leaving.)]
marsel has joined #nixos
justelex_ has quit [(Ping timeout: 240 seconds)]
vaibhavsagar_ has joined #nixos
marsel has quit [(Ping timeout: 260 seconds)]
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
vaibhavsagar_ has quit [(Ping timeout: 248 seconds)]
nslqqq has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
vaibhavsagar has quit [(Remote host closed the connection)]
vaibhavsagar has joined #nixos
aneeshusa has quit [(Quit: WeeChat 1.9)]
nslqqq has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
hamishmack has quit [(Client Quit)]
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
marsel has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<unlmtd> can I configure nix to look from an ssh-served cache by default?
<vaibhavsagar> unlmtd: look at the ssh-substituter-hosts option
DeaDSouL has quit [(Remote host closed the connection)]
hamishmack has joined #nixos
<unlmtd> thanks
orivej has quit [(Ping timeout: 240 seconds)]
alfie has quit [(Ping timeout: 240 seconds)]
orivej has joined #nixos
alx741_ has quit [(Quit: alx741_)]
freusque has joined #nixos
alfie has joined #nixos
ebzzry has quit [(Ping timeout: 248 seconds)]
cmcdragonkai has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
marsel has quit [(Quit: WeeChat 1.8)]
marsel has joined #nixos
marsel has quit [(Client Quit)]
marsel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQEz1
<NixOS_GitHub> nixpkgs/master 4c1ecbb Clemens Lutz: makemkv: 1.10.5 -> 1.10.6
<NixOS_GitHub> nixpkgs/master 64f922b Jörg Thalheim: Merge pull request #27064 from LutzCle/master...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann closed pull request #26984: xserver: check case of multiple keyboard layouts (master...xkb-multiple) https://git.io/vQ4PP
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27077: Openslp: Fix patch references. (master...shpr_fixurls_openslp) https://git.io/vQECx
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to master: https://git.io/vQEzN
<NixOS_GitHub> nixpkgs/master 674e46d es_github: p7zip: Update CVE-2016-9296 patch URL....
<NixOS_GitHub> nixpkgs/master 6cad339 Vladimír Čunát: p7zip: add commit ID to the patch...
<NixOS_GitHub> nixpkgs/master 1f0de2d Vladimír Čunát: Merge #27075: p7zip: Update CVE-2016-9296 patch URL
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27075: p7zip: Update CVE-2016-9296 patch URL. (master...shpr_fixurls_p7zip) https://git.io/vQEC0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vQEzp
<NixOS_GitHub> nixpkgs/release-17.03 8ad1e63 Vladimír Čunát: Merge #27075: p7zip: Update CVE-2016-9296 patch URL...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27074: kmod-debian-aliases: Fix source tarball URL. (master...shpr_fixurls_kmod_debian) https://git.io/vQECU
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 2 new commits to master: https://git.io/vQEgC
<NixOS_GitHub> nixpkgs/master d97cdfc aszlig: nixos/xserver: Document the layouts sed expression...
<NixOS_GitHub> nixpkgs/master 69da180 aszlig: nixos/xserver: Allow more than one keyboard layout...
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 260 seconds)]
nslqqq has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to master: https://git.io/vQE2U
<NixOS_GitHub> nixpkgs/master cb9fe8c Sebastian Hagen: Mariadb: Fix URL for source tarball....
<NixOS_GitHub> nixpkgs/master cc83f35 Vladimír Čunát: Merge #27076: mariadb: fix URL for source tarball...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vQE2k
<NixOS_GitHub> nixpkgs/release-17.03 6590465 Vladimír Čunát: Merge #27076: mariadb: fix URL for source tarball...
NixOS_GitHub has left #nixos []
lewo has quit [(Quit: ZNC - http://znc.in)]
lewo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #27076: Mariadb: Fix URL for source tarball. (master...shpr_fixurls_mariadb) https://git.io/vQECK
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #27062: x11idle: init at unstable-2017-07-01 (master...add-x11idle-package) https://git.io/vQEJL
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQEaO
<NixOS_GitHub> nixpkgs/master a0f9386 Nadrieril: fzf: Include fzf shell scripts in output
<NixOS_GitHub> nixpkgs/master 40c6f7e Jörg Thalheim: Merge pull request #27058 from Nadrieril/fzf-shell-scripts...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
FRidh has quit [(Read error: Connection reset by peer)]
ogkloo has joined #nixos
mog has quit [(Ping timeout: 255 seconds)]
<lewo> Hi. I have 2 jobs in hydra. One is a 'buildPythonApplication' which appears in the channel. The other is a dockerTools.buildImage (a runCommand derivation) which doesn't appear in the generated channel. How hydra decides packages to include in the channel, and how could I add the dockerImage also?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQEaM
<NixOS_GitHub> nixpkgs/master 7ec7aa0 Emmanuel Rosa: Revert "splix: enable JBIG" (#27054)...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
jensens has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/65904657b5 (from 42 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
civodul has joined #nixos
mudri has joined #nixos
ertes has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQEwX
<NixOS_GitHub> nixpkgs/master 0b1c879 Emanuele Peruffo: gnomeExtensions.caffeine: init at revision unstable-2017-06-21 (#26901)...
NixOS_GitHub has left #nixos []
Filystyn has joined #nixos
MercurialAlchemi has joined #nixos
pie__ has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
boomshroom has quit [(Quit: Page closed)]
hellrazo1 has joined #nixos
blahdodo has quit [(Remote host closed the connection)]
blahdodo has joined #nixos
hellrazo1 has quit [(Ping timeout: 246 seconds)]
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
hellrazo1 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ebeb8901a2 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27041: skrooge: drop kdelibs4support dependency (master...f/skrooge-drop-kdelibs4support) https://git.io/vQ0PU
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQEom
<NixOS_GitHub> nixpkgs/master bf9e5d2 Ioannis Koutras: kdiff3: add dependency to kcrash
<NixOS_GitHub> nixpkgs/master 680298e Frederik Rietdijk: Merge pull request #27039 from jokogr/f/kdiff3-kcrash...
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
m0rphism has joined #nixos
stanibanani has joined #nixos
ertes-w has joined #nixos
mkoenig has quit [(Remote host closed the connection)]
thc202 has joined #nixos
Itkovian has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQEK7
<NixOS_GitHub> nixpkgs/master 8f5cf68 Frederik Rietdijk: ktorrent: fix build
<NixOS_GitHub> nixpkgs/master 43ca911 Frederik Rietdijk: kdevplatform: fix build
NixOS_GitHub has left #nixos []
zraexy has joined #nixos
pietranera has joined #nixos
Wizek has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #27079: virtualenvwrapper: only add Python to $PATH, fixes #26982 (master...virtualenvwrapper) https://git.io/vQE6r
NixOS_GitHub has left #nixos []
Wizek_ has joined #nixos
<ij> I tried doing `nix-env -i terraform` to see whether it has it and judging by strace, it's now crawling /nix/store now — why?
Filystyn has quit [(Read error: Connection reset by peer)]
k2s has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
koserge has joined #nixos
<LnL> I think what you're seeing is that it's evaluating all of nixpkgs
<ij> Why does it need to?
<LnL> nix-env -f '<nixpkgs>' -iA terraform is a lot faster because it uses the attribute
<hyper_ch> gchristensen: ktorrent and kdeveleop issues seem to have been fixed now :) at least on nixos the handling of bug reports won't take years without any feedback
<ij> LnL, There's so much more I need to understand.
* ij concludes
<LnL> -i searches by name, so it needs to look at the name of each package to find it
<LnL> while using an attribute is like a regular dict lookup
k2s has quit [(Quit: Leaving)]
garbas has joined #nixos
erictapen has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQEPG
<NixOS_GitHub> nixpkgs/master d307dbd Linus Heckemann: wlc: 0.0.8 -> 0.0.9
<NixOS_GitHub> nixpkgs/master f70d440 Jörg Thalheim: Merge pull request #27040 from lheckemann/wlc-0.0.9...
NixOS_GitHub has left #nixos []
hotfuzz_ is now known as hotfuzz
ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vQEX3
<NixOS_GitHub> nixpkgs/master 3e1c660 David Costa: maintainers: add zarelit
<NixOS_GitHub> nixpkgs/master 87b1566 David Costa: mailcatcher: init at 0.6.5
<NixOS_GitHub> nixpkgs/master 19cd9f5 Jörg Thalheim: mailcatcher: do not override phases
NixOS_GitHub has left #nixos []
sorcus has joined #nixos
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQEXg
<NixOS_GitHub> nixpkgs/master 09d626e Bart Brouns: notmuch: 0.23.5 -> 0.24.2
<NixOS_GitHub> nixpkgs/master 01c3847 Frederik Rietdijk: Merge pull request #27051 from magnetophon/notmuch...
NixOS_GitHub has left #nixos []
<sorcus> Hi, i have problem with SNAT in NixOS. Similar configuration work in Archlinux, but not in NixOS.
ThatDocsLady has joined #nixos
<sorcus> https://gist.github.com/MrSorcus/1e912bfadc0662f40852d9ea0f3ebc83 - compare of archlinux & nixos /proc/config.gz
mudri has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Ping timeout: 240 seconds)]
phreedom has joined #nixos
orivej has joined #nixos
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
__Sander__ has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jnsaff opened pull request #27081: Terragrunt: 0.12.16 -> 0.12.24 (master...master) https://git.io/vQEy4
NixOS_GitHub has left #nixos []
<sorcus> No ideas?
<LnL> have you tried to disable the firewall?
<sorcus> Yes.
mudri has quit [(Ping timeout: 240 seconds)]
<sorcus> ICMP Reply packets come back to enp0s3 but doesn't leave it. https://gist.github.com/MrSorcus/dac5ec2d76c0d242bbd9467c75fda4c0 - you can see here only request packets.
<sorcus> Looks like SNAT doesn't work correctly.
<sorcus> And in archlinux (both working as server) all works fine.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] alicebob opened pull request #27082: nix-prefetch-git: add --quit to --help (master...fetchgitquiet) https://git.io/vQE94
NixOS_GitHub has left #nixos []
DrWaste has joined #nixos
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
hellrazo1 has quit [(Ping timeout: 246 seconds)]
mpcsh has joined #nixos
<ij> I see three versions in «nix-env -f '<nixpkgs>' -qaP terraform». Are those all that have existed?
hellrazo1 has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
stanibanani has quit [(Ping timeout: 255 seconds)]
JagaJaga has joined #nixos
<sorcus> ij, yes.
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 3 new commits to master: https://git.io/vQEQ4
<NixOS_GitHub> nix/master 90da34e Eelco Dolstra: processGraph(): Call getEdges in parallel
<NixOS_GitHub> nix/master fcca702 Eelco Dolstra: Replace a few bool flags with enums...
<NixOS_GitHub> nix/master 0a5a867 Eelco Dolstra: nix-shell: Respect --dry-run...
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
k0001 has joined #nixos
vaibhavsagar_ has joined #nixos
<ij> sorcus, Wait, you're wrong. I just git-log'ed all the commits and there have been many more terraform changes.
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 268 seconds)]
<ij> Yup.
vaibhavsagar_ has quit [(Ping timeout: 248 seconds)]
<sorcus> Maybe nix-env doesn't support searching version from history commits?
ebzzry has joined #nixos
<sorcus> Maybe this can help - https://stackoverflow.com/questions/3489173/how-to-clone-git-repository-with-specific-revision-changeset . Choose any commit and try to install package.
<sorcus> But i'm not sure...
simukis has joined #nixos
xadi1 has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
xadi has quit [(Ping timeout: 268 seconds)]
xadi1 has quit [(Ping timeout: 248 seconds)]
<ij> I'm sure this has an established workflow already.
Havvy has quit [(Ping timeout: 260 seconds)]
indi_ has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lufia opened pull request #27084: google-app-engine-go-sdk: 1.9.53 -> 1.9.55 (master...update-gae-go) https://git.io/vQEF9
NixOS_GitHub has left #nixos []
<sorcus> ij, i don't know. You can use something like this - https://gist.github.com/MrSorcus/3561e382bc410652e2eb5088773733cd and wait for answer from nixos developers.
<sorcus> I'm waiting any help... Snat doesn't work in nixos... Maybe it's a bug. Or i'm stupid...
Havvy has joined #nixos
Wizek_ has quit [(Ping timeout: 268 seconds)]
Wizek has quit [(Ping timeout: 260 seconds)]
Havvy has quit [(Ping timeout: 260 seconds)]
nckx has quit [(Ping timeout: 260 seconds)]
peacememories has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nico202 opened pull request #27085: drumgizmo: 9.12 -> 9.14 (master...master) https://git.io/vQEAv
NixOS_GitHub has left #nixos []
nckx has joined #nixos
ebzzry has quit [(Ping timeout: 240 seconds)]
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 268 seconds)]
Phlogistique has quit [(Ping timeout: 260 seconds)]
the-kenny has quit [(Ping timeout: 260 seconds)]
alpounet has quit [(Ping timeout: 260 seconds)]
Phlogistique has joined #nixos
the-kenny has joined #nixos
alpounet has joined #nixos
vaibhavsagar has joined #nixos
indi_ has joined #nixos
JagaJaga has joined #nixos
indi_ has quit [(Ping timeout: 248 seconds)]
Mateon3 has joined #nixos
ericsagnes has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #27088: yarn: 0.24.6 -> 0.27.5 (master...yarn) https://git.io/vQEhs
NixOS_GitHub has left #nixos []
nckx has quit [(Ping timeout: 258 seconds)]
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
orivej has joined #nixos
mkoenig has joined #nixos
nckx has joined #nixos
iyzsong has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/01c3847b9c (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
Filystyn has quit [(Remote host closed the connection)]
m0rphism has quit [(Quit: WeeChat 1.8)]
<gchristensen> hyper_ch: I wonder who fixed them
<hyper_ch> already deleted the emails
<hyper_ch> gchristensen: it was FRidh
<hyper_ch> FRidh: thx :)
blah_ has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/ebeb8901a2 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> Is it just me or does 17.03 feel more like rolling release than nixos-unstable these days?
<srhb> Or perhaps it's just security updates being prioritized...
<gchristensen> you mean b/c it advances more frequently?
darlan has joined #nixos
darlan has quit [(Client Quit)]
k2s has joined #nixos
m0rphism has joined #nixos
Itkovian has joined #nixos
<hyper_ch> so, gchristensen, what's the difference between nixos-unstable and nixpkgs-unstable?
Itkovian_ has quit [(Ping timeout: 240 seconds)]
<srhb> gchristensen: Yeah
<gchristensen> nixos-unstsable is suitable for nixos
k2s has quit [(Ping timeout: 260 seconds)]
<srhb> What on earth is the y axis?
<gchristensen> srhb: the channel id
<srhb> Oh, nothing fancy.
<gchristensen> right, and I just made up the channel id
<hyper_ch> thx
<hyper_ch> btw, shouldn't "This is in contract to the" be "This is in contrast to the "
<srhb> Hmm, okay, but I'm actually using a git checkout.
<srhb> I suppose the distinction gets even more strange then
<gchristensen> hyper_ch: fixed
<hyper_ch> :)
<hyper_ch> contracts contain too much legalese ;)
ZoomZoomZoom has joined #nixos
indi_ has joined #nixos
bennofs has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
indi_ has quit [(Ping timeout: 240 seconds)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jensens has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
vaibhavsagar has quit [(Ping timeout: 248 seconds)]
Itkovian has joined #nixos
peacememories has joined #nixos
vaibhavsagar has joined #nixos
marantz has joined #nixos
erictapen has quit [(Ping timeout: 268 seconds)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
Wizek has joined #nixos
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] corngood opened pull request #27089: lib: Include darwin in isUnix (staging...darwin-fix) https://git.io/vQuUo
NixOS_GitHub has left #nixos []
<ZoomZoomZoom> Has anyone tried to use bcachefs with NixOS? There's some open PR from davidak, but can't find nothing besides that.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ad142902c6 (from 5 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
nh2 has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.8)]
ericsagnes has quit [(Ping timeout: 276 seconds)]
<srhb> I'm not exposing anything from my computer with services.avahi.enable = true; right? JUst gathering things?
<srhb> I see there's a services.avahi.publish option as well, so I'm guessing I'm safe.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #27090: sxiv: Add support for custom config (master...config-sxiv) https://git.io/vQukz
NixOS_GitHub has left #nixos []
ebzzry has joined #nixos
erictapen has joined #nixos
k2s has joined #nixos
ixxie has joined #nixos
freusque has quit [(Ping timeout: 255 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c5e314dabe (from 17 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
ericsagnes has joined #nixos
marantz has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vQuI6
<NixOS_GitHub> nixpkgs/staging bb3c8a1 David McFarland: lib: Include darwin in isUnix
NixOS_GitHub has left #nixos []
stanibanani has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
jensens has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
<sorcus> No ideas about snat?
ixxie has quit [(Quit: Lost terminal)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
indi_ has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
mudri has joined #nixos
<hodapp> blargh, sometimes I have no idea what these Python packages are doing when they try to install
<hodapp> just used fetchPypi on one and the result was completely missing several modules
erictapen has joined #nixos
<hodapp> so I did 'python setup.py build' from a nix-shell with the source, and the resultant script is trying to run completely a Python wrapper completely without the correct environment
jensens has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
jensens has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1f0de2dce2 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
Itkovian has quit [(Client Quit)]
Itkovian has joined #nixos
<hodapp> well, the 2nd problem was solved by doing 'nix-shell --pure'
Itkovian_ has joined #nixos
Itkovian_ has quit [(Client Quit)]
Itkovian has quit [(Ping timeout: 268 seconds)]
ilyaigpetrov has joined #nixos
k0001 has quit [(Ping timeout: 276 seconds)]
erictapen has quit [(Ping timeout: 260 seconds)]
phreedom has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQu3N
<NixOS_GitHub> nixpkgs/master 08ae945 Nicolò Balzarotti: drumgizmo: 9.12 -> 9.14
<NixOS_GitHub> nixpkgs/master 7d36ae3 Frederik Rietdijk: Merge pull request #27085 from nico202/master...
NixOS_GitHub has left #nixos []
<__Sander__> hmm which variant of the base32 notation does nix use for hashes?
<__Sander__> appears that there are many variants
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #27091: noice: init at 0.6 (master...init-noice) https://git.io/vQusP
NixOS_GitHub has left #nixos []
<gchristensen> __Sander__: its own
<ikwildrpepper> the best one obviously
<__Sander__> hmm
<__Sander__> so that means if I want to convert a byte stream then I have to make my own encoder?
<__Sander__> gchristensen: thanks
<__Sander__> I need to convert an SHA512 hash in base64 notation
<__Sander__> to nix's notation
Itkovian has joined #nixos
<gchristensen> why_
<gchristensen> ?
k2s has quit [(Ping timeout: 240 seconds)]
<gchristensen> sha512 = "..." can take the standard notation
<__Sander__> oh does it also understand base64?
<gchristensen> hmm not sure, try it :)
erictapen has joined #nixos
mudri has quit [(Ping timeout: 276 seconds)]
<niksnut> no, base16 and base32
<__Sander__> yup does not work: error: hash ‘m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==’ has wrong length for hash type ‘sha512’
<__Sander__> so I need to convert it to nix's base32 notation
<__Sander__> but I guess I have to implement such an encoder myself
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
orivej has quit [(Ping timeout: 240 seconds)]
<__Sander__> hmm or print the hash base16
Itkovian has joined #nixos
<__Sander__> not sure if that's a good idea for SHA512 hashes
<srhb> __Sander__: Silly question, why don't you just use the hash that nix will print for you once it determines that your bogus hash is wrong? (if you get the length right)
<__Sander__> srhb: my use case is a generator
<__Sander__> node2nix
<srhb> Ah.
<__Sander__> I want to take the registry's sha512 hashes
<__Sander__> but they use base64 notation
<ikwildrpepper> make nix support that :)
darlan has joined #nixos
orivej has joined #nixos
mog has joined #nixos
<__Sander__> ikwildrpepper: that could be a nice addition
<__Sander__> in particular for sha512 hashes
jensens has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/01c3847b9c (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<gchristensen> the channels have been busy lately
Guest32498723 has joined #nixos
<FRidh> indeed
<FRidh> let's keep it like that :)
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
ebzzry has quit [(Ping timeout: 268 seconds)]
earldouglas has joined #nixos
<catern> is there a simple interface to make-disk-image.nix
<Guest32498723> hello, I'm trying to set up an encrypted partition/boot partition. I've followed https://nixos.org/nixos/manual/index.html#sec-luks-file-systems, but get "error: will not proceed with blocklists" and "installation on /dev/mapper/c" failed when I try to `nixos-install`. Any suggestions?
<catern> all I want for now is to just test whether my somewhat bespoke Nix setup is functioning enough to build a NixOS disk image
<catern> any NixOS disk image at all
<catern> so I don't want to have to make up values for the parameters
<gchristensen> catern: what if you did nixos-rebuild build-vm?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<catern> gchristensen: I'm not on a NixOS setup, I have Nix on Debian :)
<catern> so I did successfully build a NixOS disk image
<catern> (the installler CD, as instructed by the NixOS manual)
<clever> build-vm can also be done with nix-build
<catern> clever: indeed I used nix-build
<clever> nix-build '<nixpkgs/nixos>' -I nixos-config=./configuration.nix -A vm
<catern> now I want to build, say, a minimal disk image that just runs in QEMU
<catern> there are lots of various configurations in nixpkgs, is there one that satisfies that?
roconnor has joined #nixos
<catern> oh actually I've got it
erictapen has quit [(Ping timeout: 255 seconds)]
Itkovian has joined #nixos
<catern> modules/virtualisation/qemu-vm.nix
FRidh has quit [(Quit: Konversation terminated!)]
<gchristensen> __Sander__: thank you, by the way, for researching node 8
<gchristensen> I went to go add a nodePackages_8_x then realized the problem
<__Sander__> yes I'll have some time to dive deeper into problem beginning today
<__Sander__> I need to upgrade a few things to Node.js 8.x myself soon
marsel has quit [(Ping timeout: 246 seconds)]
<catern> which is just: cd nixpkgs/nixos; nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix default.nix
<catern> that is easy for a mere babe in arms like me
<catern> but i'm not sure exactly... how to do that?
<catern> oh wait
<clever> you can also add any of these modules to the imports section of a custom one
<clever> and then aim nixos-config at that
<clever> which is exactly how configuration.nix works
<catern> okay but, then I want to do the system.build.novaImage action
<clever> use -A
<clever> the example you pasted already has that
<catern> sure, so when I do "nix-build nova-image.nix -A system.build.novaImage -I ..." it says it can't autocall a function without default params
<catern> which is what I would expect
<__Sander__> heh building with base16 notation works
<__Sander__> but still
<clever> you must put nova-image into the nixos-config, and build nixpkgs/nixos/default.nix
<clever> not build nova-image.nix directly
<gchristensen> it sounds ... long, __Sander__ :)
<__Sander__> sha512 hashes in base16 are looong
<__Sander__> yes
<catern> clever: ohhhh :) thank you!
mkoenig has quit [(Remote host closed the connection)]
<catern> I see now (well, I guess :) )
<clever> catern: the default.nix under nixos will merge all of the core modules and the <nixos-config> module together, to create a single config attrset
<clever> catern: and the modules are able to set eachothers options and inter-connect
erictapen has joined #nixos
<catern> ah
<catern> huh, neat
ldesgoui has joined #nixos
DeaDSouL has joined #nixos
<ldesgoui> hey, how would I go if I wanted to import an expression from github in the imports field of my NixOS configuration.nix? "<https://url/file.nix>" doesn't seem to work that way
<clever> ldesgoui: need to call fetchurl on it first
orivej has quit [(Remote host closed the connection)]
<ldesgoui> I think what I actually want to do is load the repo like a channel and use that from there, because the file I'm using does local imports and fetchurl will definitely not work
orivej has joined #nixos
<clever> fetchtarball would unpack it after fetching
<clever> then it would need the .zip or .tar url from github
<ldesgoui> i'll try that, thanks
DeaDSouL_ has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
DeaDSouL has quit [(Ping timeout: 255 seconds)]
ZoomZoomZoom has quit [(Quit: Leaving)]
schmits has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<ldesgoui> works wonder, thanks clever :)
ldesgoui has quit [(Quit: Page closed)]
marantz has joined #nixos
<schmits> Hi guys! I'm here to ask one simple question: How can I determine an absolute path to a file with known relative location to the *nix file itself within a nix-shell file? More precisely, I need to add a CPLUS_INCLUDE_PATH and I know the path relative to the *.nix file...
pxc1 has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> schmits: add an attribute to the derivation, CPLUS_INCLUDE_PATH = "-I${./include}";
tmaekawa has joined #nixos
<clever> but keep in mind, it will import a copy of the include dir when nix-shell is ran
<clever> and it will be an immutable snapshot of the headers
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c5e314dabe (from 20 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7d36ae33df (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bennofs pushed 1 new commit to master: https://git.io/vQu0d
<NixOS_GitHub> nixpkgs/master 6685b7a Benno Fünfstück: burpsuite: 1.7.06 -> 1.7.23
NixOS_GitHub has left #nixos []
tmaekawa has quit [(Client Quit)]
jensens has quit [(Ping timeout: 248 seconds)]
pxc1 has quit [(Ping timeout: 248 seconds)]
<schmits> Thank you clever, this seems to work! I don't know what I am exactly doing there but I guess this is something I could imagine if I only knew functional langs like haskell?
<clever> i learned nix before learning haskell
<schmits> :-) a dumb question then, is there a nix language documentation around here somewhere?
<schmits> :D alright! Thanks so much
<schmits> <3 NixOS
marantz has quit [(Ping timeout: 246 seconds)]
k0001 has joined #nixos
orivej has quit [(Ping timeout: 268 seconds)]
Itkovian has joined #nixos
MoreTea has joined #nixos
<schmits> Hmm, this approach does not seem to work for LD_LIBRARY_PATH! Why is that?
<clever> nixpkgs may already be doing things with that var
iyzsong has quit [(Quit: bye.)]
bennofs has quit [(Ping timeout: 248 seconds)]
dash has quit [(Ping timeout: 246 seconds)]
<schmits> is there a way to workaround this? How can I tell my build system to append a bunch of long /nix/store paths to to search paths. (Without hardcorded /nix/store paths in the build system)
DeaDSouL_ has quit [(Quit: Linux, is a world where its limitation is your imagination..)]
DeaDSouL has joined #nixos
DrWaste has quit [(Quit: Run away!)]
<clever> schmits: refer to the derivations, like LD_LIBRARY_PATH=${hello}/lib
<schmits> oh sorry maybe I didn't express myself well but this is what I am doing but it doesn't work :(
<clever> what error does it give, how does it not work?
Itkovian has quit [(Ping timeout: 248 seconds)]
[0x4A6F] has joined #nixos
Neo-- has joined #nixos
<schmits> LD_LIBRARY_PATH="${../external/AML/build/bio}:${../external/AML/build/core}:${python3}/lib:${fontconfig}/lib:$LD_LIBRARY_PATH";
<schmits> $ nix-shell .
<schmits> $ echo $LD_LIBRARY_PATH
<schmits> "/run/opengl-driver/lib"
pxc1 has joined #nixos
<schmits> for some reason LD_LIBRARY_PATH contains this opengl libs but nothing I specified
<schmits> and building my program does of course fail with cannot find -lwhatever
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vQu27
<NixOS_GitHub> nixpkgs/master f130e00 Tim Steinbach: linux: Add 4.12
NixOS_GitHub has left #nixos []
marsel has joined #nixos
orivej has joined #nixos
<MoreTea> schmits, as a hack you could define a shellHook = "export LD_LIBRARY_PATH=yada yadda yadada";
<catern> hey #nixos
k2s has joined #nixos
<catern> it says "allow root logins"
<catern> but... how...
<schmits> omg! I just misspelled it in cmake lol. So sorry! It's of course working thanks clever, MoreTea. Good to know of shellHook too :-)
Itkovian has joined #nixos
schmits has left #nixos ["Good Bye"]
schmits has joined #nixos
the-kenny has quit [(Quit: WeeChat 1.7.1)]
eacameron has quit [(Ping timeout: 248 seconds)]
the-kenny has joined #nixos
Itkovian has quit [(Ping timeout: 246 seconds)]
<MoreTea> catern, huh? it said that it does not allow root logins with a password, right?
<catern> MoreTea: I see that, so how do I log in?
civodul has quit [(Remote host closed the connection)]
<MoreTea> in general, if you're using nixops, you're able to log in with `nixops ssh -d $YOUR_DEPLOYMENT_NAME $MACHINE NAME
<catern> ah
<MoreTea> nixops manages the SSH keys
<catern> I'm not using nixops :)
<catern> but I guess the intent is definitely "use SSH keys"?
<MoreTea> I presume so yes.
<MoreTea> what are you trying to do?
<MoreTea> create images for openstack with nix?
hotfuzz_ has joined #nixos
Itkovian has joined #nixos
<clever> catern: in users.users.root, you can configure ssh keys
hotfuzz has quit [(Ping timeout: 276 seconds)]
<clever> root.openssh.authorizedKeys.keys = with keys; [ keys.dual.distro clever.amd clever.laptopLuks ];
__Sander__ has quit [(Quit: Konversation terminated!)]
<clever> catern: this lets you embed authorized keys into the build, so they just work after you boot it
roconnor has quit [(Quit: Konversation terminated!)]
alain[m] has quit [(Ping timeout: 240 seconds)]
timclassic has quit [(Ping timeout: 240 seconds)]
pstn has quit [(Ping timeout: 240 seconds)]
bendlas has quit [(Ping timeout: 240 seconds)]
DIzFer[m] has quit [(Ping timeout: 246 seconds)]
eqyiel[m] has quit [(Ping timeout: 258 seconds)]
regnat[m] has quit [(Ping timeout: 258 seconds)]
scott2 has quit [(Ping timeout: 258 seconds)]
Ralith has quit [(Ping timeout: 258 seconds)]
harlock[m] has quit [(Ping timeout: 246 seconds)]
Kallegro[m] has quit [(Ping timeout: 246 seconds)]
wmertens[m] has quit [(Ping timeout: 246 seconds)]
sargon[m] has quit [(Ping timeout: 246 seconds)]
tommyangelo[m] has quit [(Ping timeout: 246 seconds)]
Dezgeg[m] has quit [(Ping timeout: 246 seconds)]
Oo[m] has quit [(Ping timeout: 246 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 246 seconds)]
musicmatze[m] has quit [(Ping timeout: 246 seconds)]
sudoreboot[m] has quit [(Ping timeout: 246 seconds)]
xj9[m] has quit [(Ping timeout: 246 seconds)]
Magnap[m] has quit [(Ping timeout: 255 seconds)]
benkolera[m] has quit [(Ping timeout: 255 seconds)]
jlle[m] has quit [(Ping timeout: 255 seconds)]
admin[m] has quit [(Ping timeout: 255 seconds)]
grahamc has quit [(Ping timeout: 255 seconds)]
mdash has quit [(Ping timeout: 255 seconds)]
zimbatm has quit [(Ping timeout: 255 seconds)]
aspiwack[m] has quit [(Ping timeout: 240 seconds)]
myklam[m] has quit [(Ping timeout: 240 seconds)]
taktoa[m] has quit [(Ping timeout: 240 seconds)]
sirius[m] has quit [(Ping timeout: 240 seconds)]
ArdaXi[m] has quit [(Ping timeout: 240 seconds)]
offlinehacker[m] has quit [(Ping timeout: 240 seconds)]
hl has quit [(Ping timeout: 240 seconds)]
davidar has quit [(Ping timeout: 240 seconds)]
StuK[m] has quit [(Ping timeout: 240 seconds)]
lfont[m] has quit [(Ping timeout: 240 seconds)]
BurNiinTRee[m] has quit [(Ping timeout: 240 seconds)]
Khorne[m] has quit [(Ping timeout: 240 seconds)]
bhipple[m] has quit [(Ping timeout: 240 seconds)]
Wysteriary[m] has quit [(Ping timeout: 240 seconds)]
wak-work[m] has quit [(Ping timeout: 255 seconds)]
primeos[m] has quit [(Ping timeout: 255 seconds)]
frio[m] has quit [(Ping timeout: 255 seconds)]
TimePath has quit [(Read error: Connection reset by peer)]
unlmtd has quit [(Read error: Connection reset by peer)]
hendrik[m] has quit [(Read error: Connection reset by peer)]
Exee7uvo[m] has quit [(Read error: Connection reset by peer)]
baconicsynergy[m has quit [(Read error: Connection reset by peer)]
M-liberdiko has quit [(Read error: Connection reset by peer)]
spacekitteh[m] has quit [(Read error: Connection reset by peer)]
jyp[m] has quit [(Read error: Connection reset by peer)]
copumpkin has quit [(Read error: Connection reset by peer)]
dtz has quit [(Read error: Connection reset by peer)]
bachp has quit [(Read error: Connection reset by peer)]
cornu[m] has quit [(Read error: Connection reset by peer)]
qrilka[m] has quit [(Read error: Connection reset by peer)]
edef[m] has quit [(Read error: Connection reset by peer)]
sziszi[m] has quit [(Read error: Connection reset by peer)]
jesper has quit [(Read error: Connection reset by peer)]
indefini has quit [(Read error: Connection reset by peer)]
Drakonis[m] has quit [(Write error: Connection reset by peer)]
corngood has quit [(Read error: Connection reset by peer)]
danielrf has quit [(Read error: Connection reset by peer)]
jascot[m] has quit [(Read error: Connection reset by peer)]
bennofs[m] has quit [(Read error: Connection reset by peer)]
teh[m] has quit [(Read error: Connection reset by peer)]
mtncoder[m] has quit [(Read error: Connection reset by peer)]
adisbladis[m] has quit [(Read error: Connection reset by peer)]
Criena[m] has quit [(Read error: Connection reset by peer)]
reactormonk[m] has quit [(Read error: Connection reset by peer)]
jack[m] has quit [(Read error: Connection reset by peer)]
octalsrc[m] has quit [(Read error: Connection reset by peer)]
florianjacob has quit [(Read error: Connection reset by peer)]
a123123123[m] has quit [(Read error: Connection reset by peer)]
berot3[m] has quit [(Ping timeout: 246 seconds)]
herzmeister[m] has quit [(Ping timeout: 246 seconds)]
spawnthink[m] has quit [(Ping timeout: 246 seconds)]
fpletz[m] has quit [(Ping timeout: 246 seconds)]
konfou[m] has quit [(Ping timeout: 246 seconds)]
peterhoeg has quit [(Ping timeout: 246 seconds)]
NickHu has quit [(Ping timeout: 246 seconds)]
icetan has quit [(Ping timeout: 246 seconds)]
WinterFox[m] has quit [(Ping timeout: 246 seconds)]
<clever> that reminds me, i havent had any spam in ages
jonte has joined #nixos
metaphysician has quit [(Ping timeout: 259 seconds)]
<catern> clever: ah, and I need to do that otherwise I can't log in at all?
<catern> MoreTea: yes, exactly that
Itkovian has quit [(Ping timeout: 268 seconds)]
<catern> I assumed that it was configured somewhere to pick up ssh keys through cloud-init
roconnor has joined #nixos
<sorcus> https://gist.github.com/MrSorcus/472f5ddaad28d01a92811c49d2f86398 - here nix configs for build own images. Snat doesn't work. What wrong here?
fabian_a has joined #nixos
rtjure has quit [(Ping timeout: 260 seconds)]
<clever> catern: amazon-image.nix has code to do that
tg has quit [(Ping timeout: 240 seconds)]
<sorcus> Archlinux server work with similar onfiguration...
metaphysician has joined #nixos
phinxy has joined #nixos
faffolter has quit [(Ping timeout: 260 seconds)]
<catern> clever: ah I see
tg has joined #nixos
unlmtd has joined #nixos
rtjure has joined #nixos
mudri has joined #nixos
freusque has joined #nixos
freusque has quit [(Client Quit)]
k2s has quit [(Ping timeout: 248 seconds)]
elninja44 has quit [(Remote host closed the connection)]
Isorkin has joined #nixos
<Isorkin> Hi. NixOS not support services snmp?
Guest32498723 has quit [(Ping timeout: 260 seconds)]
LinArcX has joined #nixos
<gchristensen> Number of directories 13337 oh nix
LinArcX has quit [(Remote host closed the connection)]
noffle has joined #nixos
<noffle> hello. given a qualified attribute path, is there a command line invocation that lets me view its derivation?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQuoV
<NixOS_GitHub> nixpkgs/master 57f3945 dywedir: yarn: 0.24.6 -> 0.27.5
NixOS_GitHub has left #nixos []
<clever> noffle: nix-repl or nix-instantiate
<globin> noffle: with nixUnstable: `nix edit nixpkgs.hello`
<globin> noffle: but experimental
zeus_ has joined #nixos
cornu[m] has joined #nixos
sirius[m] has joined #nixos
jesper has joined #nixos
jyp[m] has joined #nixos
baconicsynergy[m has joined #nixos
mtncoder[m] has joined #nixos
primeos[m] has joined #nixos
aspiwack[m] has joined #nixos
regnat[m] has joined #nixos
Guest34358 has joined #nixos
indefini has joined #nixos
berot3[m] has joined #nixos
konfou[m] has joined #nixos
jascot[m] has joined #nixos
hendrik[m]1 has joined #nixos
NickHu has joined #nixos
bachp has joined #nixos
timclassic has joined #nixos
davidar has joined #nixos
frio[m] has joined #nixos
Kallegro[m] has joined #nixos
wak-work[m] has joined #nixos
mdash has joined #nixos
M-liberdiko has joined #nixos
sudoreboot[m] has joined #nixos
teh[m] has joined #nixos
copumpkin has joined #nixos
Exee7uvo[m] has joined #nixos
scott2 has joined #nixos
ArdaXi[m] has joined #nixos
Drakonis[m] has joined #nixos
octalsrc[m] has joined #nixos
reactormonk[m] has joined #nixos
Wysteriary[m] has joined #nixos
spacekitteh[m] has joined #nixos
myklam[m] has joined #nixos
herzmeister[m] has joined #nixos
florianjacob has joined #nixos
Magnap[m] has joined #nixos
spawnthink[m] has joined #nixos
icetan has joined #nixos
offlinehacker[m] has joined #nixos
benkolera[m] has joined #nixos
harlock[m] has joined #nixos
Sovereign_Bleak has joined #nixos
hl has joined #nixos
edef[m] has joined #nixos
bennofs[m] has joined #nixos
dtz has joined #nixos
pstn has joined #nixos
TimePath has joined #nixos
Yaniel has joined #nixos
BurNiinTRee[m] has joined #nixos
bhipple[m] has joined #nixos
sziszi[m] has joined #nixos
zimbatm has joined #nixos
musicmatze[m] has joined #nixos
WinterFox[m] has joined #nixos
DIzFer[m] has joined #nixos
sargon[m] has joined #nixos
xj9[m] has joined #nixos
jack[m]2 has joined #nixos
Ralith has joined #nixos
bendlas has joined #nixos
StuK[m] has joined #nixos
peterhoeg has joined #nixos
qrilka[m] has joined #nixos
adisbladis[m] has joined #nixos
jlle[m] has joined #nixos
Oo[m] has joined #nixos
Dezgeg[m] has joined #nixos
tommyangelo[m] has joined #nixos
wmertens[m] has joined #nixos
a123123123[m] has joined #nixos
Criena[m] has joined #nixos
taktoa[m] has joined #nixos
Khorne[m] has joined #nixos
eqyiel[m] has joined #nixos
fpletz[m] has joined #nixos
lfont[m] has joined #nixos
admin[m] has joined #nixos
alain[m] has joined #nixos
danielrf has joined #nixos
corngood has joined #nixos
<Gravious> wow nice
jmeredith has joined #nixos
<Infinisil> Damn yeah that's pretty cool
dash has joined #nixos
koserge has quit [(Ping timeout: 248 seconds)]
<noffle> clever: is the idea that I supply it with my configuration.nix somehow, and from there I can poke at the derivations for specific packages?
hotfuzz_ is now known as hotfuzz
m0rphism has joined #nixos
orivej has quit [(Ping timeout: 248 seconds)]
joko has joined #nixos
<joko> Hey, are nixos-channel-scripts from https://github.com/NixOS/nixos-org-configurations/blob/master/nixos-org/hydra-mirror.nix available somewhere?
grumble has quit [(Quit: </grumble>)]
grumble has joined #nixos
<nh2> clever: bummer, something stopped working. For some reason `nix-store -r` suddenly started preferring cache.nixos.org again, instead of my binary cache URL. Both are in `binary-caches`. strace shows that it reads nix.conf with those in `binary-caches`, but it chooses cache.nixos.org for some reason even though it is second in the list
<nh2> and strace shows that it doesn't even try to connect to mine
MoreTea has quit [(Quit: Leaving)]
DeaDSouL has quit [(Remote host closed the connection)]
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
<joepie91> okay, sanity check. my compiled list of operators (https://gist.github.com/joepie91/c3c047f3406aea9ec65eebce2ffd449d) says that the precedence of the boolean negation operator is *lower* than that of numeric operations like addition; this would mean that `!1-1` would be interpreted as `!(1-1)`, not as `(!1)-1`
<joepie91> did I get my documentation wrong, or is this really how things are supposed to work in Nix?
<joepie91> well that was poorly and confusingly phrased
<joepie91> s/predence is lower/binding is weaker/
<joepie91> precedence *
<gchristensen> clever: ping
<joepie91> (I am aware that `!1-1` is not valid code, which is why I can't figure it out through the REPL - I'm just wondering how it's interpreted by the parser)
justelex_ has joined #nixos
koserge has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Ping timeout: 240 seconds)]
<joko> nvm, just saw https://github.com/NixOS/nixos-channel-scripts and feel stupid :D
Infinisil has joined #nixos
<sorcus> No answer... Sad :-(
<Infinisil> Damnit did all my messages not come through?
<Infinisil> joepie91: Well anyways, this works: `2*-2` evaluates to -4
<joepie91> Infinisil: yeah, but that's numeric negation, not boolean negation
<Infinisil> Ahh
<joepie91> it has a difference precedence
<joepie91> Infinisil: and no, I saw no messages at all from you :p
ris has quit [(Ping timeout: 268 seconds)]
<joepie91> Infinisil: if you look at https://gist.github.com/joepie91/c3c047f3406aea9ec65eebce2ffd449d you'll see that numeric negation is at precedence 3, so a stronger binding than multiplication (at precedence 6), but a *boolean* negation has precedence 8 (ie. weaker binding than multiplication)
koserge has quit [(Ping timeout: 246 seconds)]
<joepie91> I'm not sure if this has something to do with it being inherently impossible to combine boolean and numeric operators in a single sequence, but this precedence seems difficult to implement
<joepie91> and I'm not totally convinced that I can wing it :P
<joepie91> (by ignoring the precedence)
<clever> gchristensen: pong
<Infinisil> Ah I see now
<joepie91> Infinisil: the official manual is unfortunately of no help here, since it does not document numeric operators *at all* :)
<Infinisil> joepie91: Yeah this doesn't apply when the expression isn't even valid, there's nothing to parsed correctly
<gchristensen> clever: a while ago during that kernel bug w.r.t. that obscure protocol, you had a magical way of super-duper forcing a module from loading. do you remember what that was?
<joepie91> Infinisil: problem is that type checking is a separate concern from AST parsing
<clever> gchristensen: ah yeah, one min
<joepie91> Infinisil: so even if the end result after evaluation would be the same, ignoring the precedence of boolean negation relative to numeric operators would yield a different AST than the reference implementation would
<clever> gchristensen: boot.extraModprobeConfig = "install dccp /run/current-system/sw/bin/false";
<gchristensen> nice, thank you
<clever> gchristensen: this will run false any time the user wants to load dccp
<gchristensen> yeah, perfect :D
<nh2> clever: I suspect it's something with cache priorities, cache.nixos.org has 40, my cache has 50 apparently. Do you know what those priorities are?
<clever> gchristensen: this is also how the fuse root exploit works
<gchristensen> ohh
<clever> gchristensen: fusermount is setuid root, and if it cant find fuse in /proc/filesystems, it will just system("modprobe fuse")
<Infinisil> joepie91: The reference implementation? There is no result of an invalid expression
<clever> gchristensen: but modprobe can load its config via an env variable
<noffle> globin: is there an equivalent of 'nix edit' in stable? I'd just like to view the defn of a package's derivation. Right now I go to github nixpkgs, which works, but I'd much rather be able to view it offline and re what's actually running on my machine.
<clever> gchristensen: and if you mess with ulimit some, fusermount can fail to even open /proc/filesystems
<gchristensen> :|
<sphalerite> noffle: local checkout of nixpkgs and grep >_>
<joepie91> Infinisil: there's no *evaluation* result, correct. doesn't mean that there's no AST representation
<globin> noffle: nope but you can always do nix-shell -p nixUnstable
<nh2> clever: `curl http://cache.nixos.org/nix-cache-info` shows a line `Priority: 40`
<clever> gchristensen: modprobe was never meant to be setuid root, and fusermount didnt sanitize the env when launching it
<clever> nh2: oh, i dont remember a priority, but that could explain it
<joepie91> Infinisil: afaik `!1-1` is totally valid from an AST parsing perspective, it will just fail upon evaluation because of a type mismatch
<noffle> sphalerite: globin: are the derivations not stored on my machine somewhere?
<noffle> in some human readable format?
<Infinisil> joepie91: Ah
<gchristensen> clever: now to figure out why a box's Mellanox NICs aren't being rec'd correctly ...
<clever> nh2: i also started this lastnight: https://github.com/cleverca22/cachecache/
Sigma has quit [(Quit: ZNC - http://znc.in)]
<joepie91> Infinisil: my goal is to not just reproduce the *evaluation behaviour* of the reference implementation, but also the AST :)
<clever> nh2: currently, it can proxy every narinfo request, and cache the result in a hashmap
dbmikus has joined #nixos
<sphalerite> noffle: yeah, nix-instantiate --eval -E '<nixpkgs>' should get you the path
<sphalerite> but that's a lot more of a mouthful than ~/nixpkgs :D
koserge has joined #nixos
<clever> sphalerite: there is also nix-instantiate --find-file
<Infinisil> joepie91: And according to the table this should be !(1-1), but the nix source has (!1)-1?
<nh2> clever: found the manual section that explains priorities: http://nixos.org/nix/manual/#binary-cache-format-and-operation -- lower means higher priority. cache.nixos.org has by default a higher priority than when you don't set a priority
<joepie91> Infinisil: hm?
<Infinisil> joepie91: You said something about the reference implementaiton being different
jgertm has joined #nixos
<clever> nh2: ah, so you may want to adjust that, if you want to take over for bandwidth/latency reasons
marantz has joined #nixos
<Infinisil> joepie91: I assume you mean the implementation of nix?
Sigma has joined #nixos
<joepie91> Infinisil: what I'm saying is that (!1)-1 is the logical interpretation I'd expect, and that's how it works in other languages... but the parser code for Nix suggests that Nix would interpret it as !(1-1) instead, which is difficult to implement in my current model
<joepie91> Infinisil: so I'm trying to verify whether I'm correct that Nix would interpret it as !(1-1)
<joepie91> if so: I have a problem :P
<Infinisil> joepie91: Well, just look through the source code
<joepie91> because then my parser would also have to interpret it as !(1-1)
<joepie91> Infinisil: yes, that's how I've put together that operator table in the first place
<nh2> clever: the reason it started working: Before I populated /var/public-nix-cache, there was no nix-cache-info in it, so it fetched it from upstream, and thus my cache URL also had priority 40 (simply copying what cache.nixos.org had). But once I rsync'd my `nix-push` output over, it suddenly didn't pull that nix-cache-info file from upstream, thus obtaining priority 50. That's why it stopped working in the middle of the night, when CloudFlare inv
<joepie91> I am explicitly looking for third-party confirmation that I understand the behaviour of the parser correctly
<nh2> clever: I mean "the reason it stopped working"
<sphalerite> clever: #TIL
<clever> nh2: ahhh
<clever> sphalerite: also, <foo> will desugar into builtins.findFile at parse time
<Infinisil> joepie91: Haha, well if you got it from the source then it must be right, you could try modifying nix to output the ast so you check though
<Infinisil> joepie91: Ohh, actually, check this out:
<Infinisil> `nix-instantiate --parse -E '!1-1'`
<Infinisil> (! ((__sub 1) 1))
<joepie91> Infinisil: I don't necessarily trust my interpretation of the source :)
jonte has quit [(Ping timeout: 240 seconds)]
<joepie91> mmm
<Infinisil> There it is
<joepie91> Infinisil: thanks. that seems to confirm my suspicion :(
<joepie91> Infinisil: didn't know there was a --parse flag
<Infinisil> joepie91: Man pages are quite nice if you take the time to read through them :)
<joepie91> Infinisil: they're also totally useless if you're looking for a specific thing :)
<Infinisil> Yes :)
<joepie91> (and you don't know where it's going to be, that is)
<clever> nh2: my idea with the cachecache project, is that you point it to many caches (you would have to nix-push to a normal http server), and then it would multiplex for you, and manage choosing which cache to get something from
<Infinisil> Well, searching through manpages helps sometimes
cpennington has joined #nixos
<Infinisil> Interesting:
<Infinisil> `nix-instantiate --parse -E '1-----1'`
<Infinisil> ((__sub 1) ((__sub 0) ((__sub 0) ((__sub 0) ((__sub 0) 1)))))
<joepie91> Infinisil: yeah, it internally represents numeric negation as 0-e
<Infinisil> `nix-instantiate --eval -E '1-----1'`
<Infinisil> 0
<clever> Infinisil: so it parses fine, but will probably blow up at runtime, it expects a ......
<joepie91> Infinisil: so it's interpreting that as `1-(-(-(-(-1))))`
<Infinisil> Yup
<joepie91> which sorta makes sense?
<Infinisil> joepie91: I haven't seen a language in which this is allowed
<sphalerite> Sounds like an opportunity for code golf!
<sphalerite> err
<Infinisil> Ohh, actually, haskell works too
<sphalerite> IONC
<Infinisil> I bet javascript works too
<clever> doesnt work in nodejs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26872: google-cloud-sdk: enable alpha and beta features (master...gcloud-alpha-beta-update) https://git.io/vQsfM
NixOS_GitHub has left #nixos []
<sphalerite> probably evaluates to [] or something though
<clever> it thinks there is more to the statement
<sphalerite> oh
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #27092: dr14_tmeter: init at 1.0.16 (master...add_dr14_tmeter) https://git.io/vQu1i
NixOS_GitHub has left #nixos []
<joepie91> interesting
<joepie91> in JS, --3 is invalid but -(-3) is not
<clever> Uncaught ReferenceError: Invalid left-hand side expression in postfix operation
<joepie91> yeah
<clever> and in chrome, it evals to this
<joepie91> same in Node
<joepie91> it interprets it as (-)-(3)
<joepie91> I think
<joepie91> when you do --3
<clever> i was using 1-------1 to test
<joepie91> hm
<joepie91> weird.
<clever> with 4, it wants me to continue the statement
<sphalerite> joepie91: isn't that actually the -- (decrement) operator?
<gchristensen> clever: I have some noob questions. would you mind if I PMed?
<clever> with 3, it gives the same error as chrome
<clever> gchristensen: go ahead :)
<joepie91> gchristensen: hm, possible.
<sphalerite> or does js not have a prefix decrement?
<joepie91> I'm not really sure :D
<joepie91> er
<joepie91> sphalerite: hm, possible. *
<joepie91> mishighlights...
<sphalerite> of course it won't (or rather, shouldn't. This is JS after all) actually work on numeric literals :D
<noffle> clever: sphalerite: globin: thanks for the help. I rigged together a script that prints the derivation for a package: https://gist.github.com/anonymous/a1e99973c1adc48131f45da851d62e87
<joepie91> lol
<sphalerite> noffle: neat! (it's the expression though, not the derivation)
<noffle> sphalerite: oh! I was using the wrong terminology all along
<Infinisil> noffle: You mean the expression?
<noffle> yes, I meant expression, thanks :)
<noffle> what is a package's "derivation", then?
<sphalerite> The terminology is a bit confusing
<Infinisil> noffle: It's a recipe to build something, it's located in the nix store, something like /nix/store/<hash>.drv
<noffle> Infinisil: does the expression evaluate to a derivation?
<clever> noffle: [clever@laptop:~/cachecache]$ nix-instantiate --eval -E 'with import <nixpkgs>{}; hello.meta.position'
<clever> "/nix/store/1mapr9wzalrx2bj2xcinsvmfydfzxrzc-nixos-17.09pre109180.0d4431cfe9/nixos/pkgs/applications/misc/hello/default.nix:14"
<sphalerite> clever: is there anything you don't know about nix/nixpkgs? :D
<Infinisil> noffle: A derivation is generated with the `derivation` function in nix, which mkDerivation makes use of
<clever> sphalerite: ive memorized a large chunk of the source, lol
<clever> Infinisil: and the builtins.derivation function itself is another nix file, hidden inside nix
<noffle> Infinisil: ah. so it is the output of an expression declaring a derivation
<noffle> clever: oh slick, that's very nearly what I want. now I just need that formatted nicely with <CODE> expanded
<Infinisil> clever: Oh, that's nice, didn't know about .position
jgertm has quit [(Ping timeout: 260 seconds)]
<clever> noffle: basically, any call to builtins.derivation will flatten the attributes down to a map of string->string
<clever> noffle: it will then hash the serialized form of that map, to compute $out
<sphalerite> noffle: add --strict
<clever> and return a special object that is both an attrset, and a string of $out
<clever> noffle: and this is an example of using builtins.derivation directly: https://github.com/cleverca22/nix-tests/blob/master/bare-env.nix
<clever> i cheated a bit with writeText, to make it easyer to read
zeus_ has quit [(Remote host closed the connection)]
<Infinisil> bbl
<nh2> clever: I've added now an nginx rule `= /nix-cache-info` so that my cachecache server always delivers that file from upstream
<nh2> that fixes it
<clever> nix-push will only create that file if its missing
<clever> so you can always edit it and make it a higher priority
<clever> then your cache will take over when there is a conflict
<clever> which you may prefer, since you have the same content as cache.nixos.org anyways, but at a higher speed
hotfuzz has joined #nixos
jonte has joined #nixos
<nh2> clever: I generate nix-push locally and then rsync it to the server, so it will always create the file, and there's no flag to set the priority in nix-push, so I'd have to make a script that edits or deletes the file and make sure that people always use the script instead of nix-push itself, that seems too risky for me, so I make nginx ignore it. Given equal priorityes, nix seems to choose the one that's first in the binary-caches list (probably
jgertm has joined #nixos
<clever> sounds like rsync is the problem area, it needs to not overwrite
<clever> but yeah, i can see how just staying at equal priority would work
<nh2> clever: in nix master that perl stuff is gone though, right? I should ensure that that also uses std::stable_sort
<clever> yeah, nix master is now all c++
koserge has quit [(Ping timeout: 240 seconds)]
<noffle> thanks for the help, Infinisil clever sphalerite globin
<sphalerite> np
simendsjo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQuS2
<NixOS_GitHub> nixpkgs/master 5605f9d lufia: google-app-engine-go-sdk: 1.9.53 -> 1.9.55
<NixOS_GitHub> nixpkgs/master 970c2cc Frederik Rietdijk: Merge pull request #27084 from lufia/update-gae-go...
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #26985: pythonPackage.markdownsuperscript: init at 2.0.0 (master...add_markdownsuperscript) https://git.io/vQ4bT
NixOS_GitHub has left #nixos []
<hyper_ch> gchristensen: damn, I was too early.... kdev still broken
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27018: pythonPackages.codecov: init at 2.0.9 (master...add_codecov) https://git.io/vQ0J0
NixOS_GitHub has left #nixos []
<viric> how to use firefox with jre these days?
<viric> I guess I need esr
indi_ has quit [(Ping timeout: 255 seconds)]
fabian_a has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vQu9k
<NixOS_GitHub> nixpkgs/staging c73f0ca Vladimír Čunát: mesa: maintenance 17.1.2 -> 17.1.4...
NixOS_GitHub has left #nixos []
<nh2> clever: I'm having trouble finding where exactly the equivalent comparison is made in C++
endformationage has joined #nixos
<nh2> clever: I can see where it's read from the server (https://github.com/NixOS/nix/blob/master/src/libstore/binary-cache-store.cc#L111) and where it's put in sqlite
<nh2> but not where the sort() is done
stanibanani has quit [(Ping timeout: 240 seconds)]
stanibanani has joined #nixos
fabian_a has joined #nixos
<sphalerite> Is there a way besides FUSE for a userspace program to provide a "view" of another file (e.g. with a particular offset, or decrypting an encrypted one for instance) in which other programs can seek and write?
<sphalerite> Sort of like a FIFO but with operations you have on normal files too, like seeking
<hyper_ch> if JRE is the answer, then you're asking the wrong question IMHO :)
<sphalerite> haha
<sphalerite> that sort of thing would be useful for making disk images
<sphalerite> e.g. mkdosfs doesn't support an offset parameter like mke2fs does
<sphalerite> Building disk images is generally a pain
orivej has joined #nixos
ertes-w has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 3 new commits to master: https://git.io/vQuHf
<NixOS_GitHub> nixpkgs/master 54eeab4 Frederik Rietdijk: Python: fix update script in case no PyPI releases are available for a given version
<NixOS_GitHub> nixpkgs/master 034c1a2 Frederik Rietdijk: python.pkgs: several maintenance updates
<NixOS_GitHub> nixpkgs/master c64d8ea Frederik Rietdijk: python.pkgs.jupyter_client: 5.0.1 -> 5.1.0
NixOS_GitHub has left #nixos []
<sphalerite> hyper_ch: I suppose it could be done with seccomp/ptrace hackery as well :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.03: https://git.io/vQuHW
<NixOS_GitHub> nixpkgs/release-17.03 72c9ed7 Vladimír Čunát: Merge #26628: treewide: setuid/setgid fallout...
NixOS_GitHub has left #nixos []
Guest32498324 has joined #nixos
marantz has quit [(Quit: Leaving.)]
ddd12 has quit [(Quit: Leaving)]
koserge has joined #nixos
jgertm has quit [(Ping timeout: 248 seconds)]
darlan has joined #nixos
darlan has quit [(Client Quit)]
[0x4A6F]1 has joined #nixos
ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nand0p opened pull request #27094: buildbot: 0.9.7 -> 0.9.9 (master...buildbot-0.9.9) https://git.io/vQu5Z
NixOS_GitHub has left #nixos []
[0x4A6F] has quit [(Ping timeout: 248 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
alx741 has joined #nixos
<nh2> I think the loop over the binary-caches is here: https://github.com/NixOS/nix/blob/fcca702a96a8ca0e73f6d035052c30121776aeba/src/libstore/local-store.cc#L864 and the stores are added in order here: https://github.com/NixOS/nix/blob/fcca702a96a8ca0e73f6d035052c30121776aeba/src/libstore/store-api.cc#L818 But I still cannot find where the priorities are evaluated
Guest32498324 has quit [(Ping timeout: 260 seconds)]
jgertm has joined #nixos
WilliButz has quit [(Quit: WeeChat 1.7.1)]
pietranera1 has joined #nixos
pietranera1 has quit [(Client Quit)]
stanibanani has left #nixos []
johann__ has joined #nixos
siel has quit [(Ping timeout: 276 seconds)]
simendsjo has quit [(Remote host closed the connection)]
johann__ has quit [(Client Quit)]
hyper_ch has left #nixos ["Konversation terminated!"]
hyper_ch has joined #nixos
stanibanani has joined #nixos
indi_ has joined #nixos
johann__ has joined #nixos
Infinisil has quit [(Quit: leaving)]
indi_ has quit [(Ping timeout: 258 seconds)]
johann__ has quit [(Quit: Leaving.)]
MercurialAlchemi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vQuFd
<NixOS_GitHub> nixpkgs/master e02d40c Jan Tojnar: mypaint: 1.1.0 -> 1.2.1 (#27004)
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub closed pull request #27010: qbittorrent: fix build (master...qbittorrent-qmake) https://git.io/vQR5l
NixOS_GitHub has left #nixos []
<gchristensen> joachifm: ping?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #27095: csmith: init at 2.3.0, pull in Sys::CPU as dependency. (master...feature/csmith) https://git.io/vQubw
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #27096: maxx: init at 1.0.0 (master...maxx) https://git.io/vQubo
NixOS_GitHub has left #nixos []
stanibanani has quit [(Ping timeout: 260 seconds)]
nix-gsc-io`bot has joined #nixos
oida_ has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/72c9ed78d0 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c64d8eaaea (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
jsv[m] has joined #nixos
oida has quit [(Ping timeout: 240 seconds)]
WilliButz has joined #nixos
<clever> sphalerite: LD_PRELOAD?
<sphalerite> clever: also an option I suppose
<clever> sphalerite: a fairly simple preload lib i made recently: https://github.com/cleverca22/tox_decoder/blob/master/logkeys.c#L36
<clever> sphalerite: this one intercepts keypair generation in libsodium, and logs the privates to a log file!
<sphalerite> clever: nasty :D
<clever> that then allows wireshark to decrypt things, as long as you log one end of the session
<clever> which allows debugging the protocol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #27097: nnn: init at 1.2 (master...init-nnn) https://git.io/vQuN3
NixOS_GitHub has left #nixos []
<clever> sphalerite: oh yeah, and beware of weird edge cases, for example, stat() can take a null pointer string without failing too hard!!
<clever> sphalerite: but the libredirect in nixpkgs segfaulted on that
<clever> and i had the fun of debugging a program that decided it was normal to stat null pointers
<sphalerite> Probably easier to just continue using the VM scripts for image buildign :p
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #27098: qbittorrent: 3.3.12 -> 3.3.13 (master...upd.qbittorrent) https://git.io/vQuNV
NixOS_GitHub has left #nixos []
<clever> sphalerite: the rpi stuff does the bulk of the work without partitions, and uses debugfs to edit an ext3/4 image
<clever> sphalerite: then it uses dd to assemble it into a partition
<clever> ed
<clever> disk image
<sphalerite> I don't like the idea of using debugfs for that, be it just because it has "debug" in its name :p
<sphalerite> lkl seems like a neater way of doing that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vQuNy
<NixOS_GitHub> nixpkgs/master fd92bd0 romildo: qbittorrent: 3.3.12 -> 3.3.13
<NixOS_GitHub> nixpkgs/master dc7cc77 Pascal Wittmann: Merge pull request #27098 from romildo/upd.qbittorrent...
NixOS_GitHub has left #nixos []
<sphalerite> Hm. Why would nixos-install need <nixpkgs> available if --closure is used?
<clever> it might still want to build a nix binary, try with --fast?
<sphalerite> unknown option
<clever> oh right, thats a nixos-rebuild option
<sphalerite> Maybe --show-trace would be useful :)
<sphalerite> ... nope, doesn't make the slightest difference
<sphalerite> error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
<clever> edit the nixos-install script to "set -x" and then re-run it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #27099: libunwind: fix version macros (master...libunwind) https://git.io/vQuAH
NixOS_GitHub has left #nixos []
<sphalerite> that's... not a bad idea :p
<sphalerite> well, the line that's not working is nixpkgs="$(readlink -f "$(nix-instantiate --find-file nixpkgs)")"
<joko> Is there anything equivalent to mkIf for Hydra jobs? E.g., my_job = mkIf boolean this_job;
<sphalerite> not working for obvious reasons :0
<clever> so we need to make that line optional
<sphalerite> joko: if/then/else
<sphalerite> clever: it's used to then set NIX_PATH, which seems silly
<sphalerite> clever: I just removed both lines to see if that works
<clever> yeah
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
<sphalerite> Huh, now nixos-install seems to use up all the space in /tmp in the VM
<sphalerite> Great. It tries to nix-store --export the system closure to /tmp/system.closure
<sphalerite> Hah. I think I solved it using a mkfifo and an & xD
<sphalerite> hahahaha it worked
Filystyn has quit [(Ping timeout: 240 seconds)]
<clever> :D
<sphalerite> got to love them pipes
Filystyn has joined #nixos
<joko> sphalerite: else null ;)
<joko> thanks
<sphalerite> or [] or {} or whatever may be most appropriate for the specific case :)
<sphalerite> (although if it's [] you probably want lib.optional or lib.optionals)
<clever> joko: lib.optional can also do that, and has several variables
<clever> this one is more for doing { always = "on"; } // lib.optionalAttrs false { optional = "stuff"; }
<clever> and in the false case, it becomes // {}
jonte has quit [(Ping timeout: 260 seconds)]
<ToxicFrog> Is it possible to invoke nix-shell in a systemd user unit, and if so, how?
<ToxicFrog> I have ExecStart=/run/current-system/sw/bin/nix-shell -p nodejs --run 'node server.js'
<ToxicFrog> But it dies with: nix-shell[3445]: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<clever> ToxicFrog: just add nodejs to the path attribute
<clever> and use script rather then execstart
<clever> https://nixos.org/nixos/options.html#systemd.services.<name>.path
<clever> https://nixos.org/nixos/options.html#systemd.services.<name>.script
cpennington has quit [(Ping timeout: 260 seconds)]
<ToxicFrog> To clarify, I'm not using systemd.user.services, this is a service in ~/.config/systemd/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #27101: haxe: fix hxcpp, introduce haxePackage with hxjava and hxcs (master...haxe-essentials) https://git.io/vQuhR
NixOS_GitHub has left #nixos []
<clever> ToxicFrog: path lets you insert anything into the $PATH of the service (like systemPackages, but not global)
<ToxicFrog> So I can't, e.g., use ${pkgs.nodejs}/bin/node
<clever> and script automaticaly goes into a bash file and winds up in ExecStart
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
uwap has joined #nixos
<clever> ToxicFrog: if you fix the value of $NIX_REMOTE (copy it from the normal user end to the unit), nix-shell will work again
<ToxicFrog> If I were putting this in configuration.nix, that would be fine, but I'm not.
<ToxicFrog> Aah.
<clever> but its better to generate the unit file from nix
<ToxicFrog> It would be better, and if nixos ever adds the ability to generate per-user systemd.user unit files, that's what I'll do
<clever> yeah, that would help
<clever> ive only ever used system units with the User= on them
<ToxicFrog> But as it is, I want this to be enabled by default only for a subset of users, which configuration.nix doesn't understand how to do, sooooo...
<clever> it would need the script to read the user, and then nop itself
<sphalerite> ToxicFrog: rycee's homemanager would probably be a more elegant solution
<sphalerite> ToxicFrog: I haven't used systemd user units at all yet but I plan to eventually get home-manager set up and use that for them
siel has joined #nixos
<sphalerite> clever: you probably know tricks to get a nixos image smaller... right? :D
<sphalerite> currently I'm using just <nixpkgs/nixos/modules/profiles/base.nix> for the config
<clever> sphalerite: start by finding the top-level derivation (before it became a .img), and run something like this on it
<clever> $ du --apparent-size -hc --max=0 $(nix-store -qR /run/current-system) | sort -h
<clever> 599M/nix/store/ndsfpahlmzh8z0ix4d71jkk1npnjj7pp-clang-4.0.0
<clever> 1012M/nix/store/8v64zpyci6rgrzzbhc2bfa911yfmnfw5-ghc-8.0.2
<clever> 7.2Gtotal
<clever> and youll get a list of every storepath in order of size
<sphalerite> aaah glibc-locales is being big
<sphalerite> linux... don't think I can get rid of that for a bootable image
<sphalerite> pythons 2 and 3..?
<clever> locales can be trimmed
<sphalerite> then I can use -q --tree to find out what's referring to those things
<sphalerite> yeah
marsel has quit [(Ping timeout: 255 seconds)]
<clever> this lets you cut out locales you dont want
DeaDSouL_ has joined #nixos
<sphalerite> When did the format change from en_GB.UTF-8 to en_GB.UTF-8/UTF-8?
<sphalerite> What does the second UTF-8 mean? :/
<clever> no clue
<sphalerite> ah well, not really that important I suppose
DeaDSouL has joined #nixos
<sphalerite> Anyway, I've torn through make-disk-image.nix to make it usable for writing UEFI-bootable USB stick images
cpennington has joined #nixos
<sphalerite> (but breaking BIOS boot)
<clever> it should be possible to do both
cpennington has quit [(Remote host closed the connection)]
reardencode has quit [(Read error: Connection reset by peer)]
reardencode has joined #nixos
<clever> if you set boot.loader.grub.efiInstallAsRemovable it should work in a usb stick, and if you also set device, it should with via legacy, as long as you have both a bios boot, and a fat32 efi system
goodwill has quit [(Ping timeout: 276 seconds)]
DeaDSouL_ has quit [(Read error: Connection reset by peer)]
<sphalerite> I'm using systemd-boot
goodwill has joined #nixos
<clever> ah
<clever> grub supports both
<clever> systemd-boot, i havent even seen a limit on how many generations it puts in /boot, and i'm not sure if it even has a rollback menu?
<sphalerite> http://ix.io/yeY here's the result so far
<sphalerite> it does have a rollback menu
<clever> ah
<clever> i'm just sort of attached to grub, been using it for 13 years, lol
<sphalerite> hehe
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vQzvJ
<NixOS_GitHub> nixpkgs/master 9ccdf60 Orivej Desh: libunwind: fix version macros...
NixOS_GitHub has left #nixos []
<sphalerite> what I like about systemd-boot is how uncomplicated it is
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat closed pull request #27099: libunwind: fix version macros (master...libunwind) https://git.io/vQuAH
NixOS_GitHub has left #nixos []
Ralith_ has quit [(Ping timeout: 260 seconds)]
Havvy has joined #nixos
zraexy has quit [(Ping timeout: 260 seconds)]
fabian_a has quit [(Ping timeout: 246 seconds)]
<clever> sphalerite: yeah, grub2 is sort of its own os, with a kernel and loadable modules
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #27102: urlscan: 0.8.3 -> 0.8.6 (master...update-urlscan) https://git.io/vQzvd
NixOS_GitHub has left #nixos []
<sphalerite> at that point, why not just use linux? https://git.ozlabs.org/?p=petitboot
<clever> did they take my head and make it a few years in the past? lol
<clever> they did! lol
<clever> i was thinking of creating exactly that, to handle the rollback menu for headless servers
<sphalerite> https://www.raptorengineering.com/content/kb/1.html this seems like a better description of it
marantz has joined #nixos
<clever> yeah, thats exactly what i was going to do, lol
<sphalerite> Based on the build instructions it looks like it could really do with some nix though :p
<clever> my general idea, was that you would launch a client that spams it with udp packets at a rate of about 10/sec maybe
<clever> and if it doesnt get one within the first 2 seconds of booting, it skips the menu and goes right to the default
<clever> and if it does get one, it fires up sshd, and presents you with a boot menu
<clever> kexec in either case, maybe with an scp option as well
<sphalerite> right
<sphalerite> would you also be flashing it to the machine's ROM? :D (because who needs a BIOS hwen you have linux)
indi_ has joined #nixos
<clever> i was thinking of just making it the only option in grub
<dash> sphalerite: hey, coreboot
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<sphalerite> dash: coreboot is also a component of petitboot AFAICT
<dash> interesting
uwap has joined #nixos
<sphalerite> clever: so BIOS -> grub -> petitboot -> nixos stage 1 -> nixos? heh
<clever> yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #27103: unifi: 5.5.11 -> 5.5.19 (master...unifi-5.5.19) https://git.io/vQzfp
NixOS_GitHub has left #nixos []
acertain has quit [(Ping timeout: 240 seconds)]
<clever> sphalerite: and also with an scp option, i could build a nixos kernel+initrd that has a full rootfs embeded into the initrd
<clever> sphalerite: then i could upload that to petitboot, and kexec it instead
<clever> which lets me remotely reinstall or repair a nixos
<sphalerite> haha
uwap has quit [(Client Quit)]
uwap_ has joined #nixos
indi_ has quit [(Ping timeout: 268 seconds)]
uwap_ has quit [(Remote host closed the connection)]
uwap has joined #nixos
simukis has quit [(Quit: simukis)]
acertain has joined #nixos
uwap has quit [(Client Quit)]
<sphalerite> Just reading about IBM POWER
<sphalerite> "
<sphalerite> IBM Power E870 can be configured with up to 80 POWER8 cores and 8 TB of RAM."
uwap has joined #nixos
* clever drools
<dash> chubby
uwap has quit [(Remote host closed the connection)]
uwap has joined #nixos
<dash> clever: i guess this means 8TB isn't Big Data
<sphalerite> That sounds like it would be good enough for zfs dedupe :p
<clever> lol
hapticFeels has joined #nixos
hapticFeels has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] knedlsepp opened pull request #27104: gogs: Fix cyclic dependency on darwin (master...fix-gogs-on-darwin) https://git.io/vQzUJ
NixOS_GitHub has left #nixos []
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
uwap has joined #nixos
Filystyn has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] DanOlivier opened pull request #1439: Gmake out-of-source (master...gmake-out-of-source) https://git.io/vQzUu
NixOS_GitHub has left #nixos []
justbeingglad has joined #nixos
<joepie91> making progress on my Nix parser: https://i.imgur.com/3jXchrw.png
<joepie91> I seem to have found a solution for the iffy precedence of boolean negation too \o/
justbeingglad has left #nixos []
<sphalerite> joepie91: hah. iffy because they're booleans. xD
<avn> sphalerite: I believe it can be enough ;) I definelly no more try enable ddt with lesser RAM
<joepie91> sphalerite: nah, mostly iffy because it has a totally different precedence from what it'd have in most languages :P
<sphalerite> joepie91: so what's this parser for and in?
<joepie91> sphalerite: in JS, using PEG.js, for parsing arbitrary Nix code
<joepie91> goal is to have it produce equivalent ASTs to the reference implementation
<joepie91> eventually my goal is to have better developer tooling for Nix
<sphalerite> Ah
<clever> joepie91: one of my past projects needed an AST for nix files, with the ability to apply arbitrary mutations and then serialzing it back out to nix
<clever> joepie91: for example, reading a configuration.nix file (a function returning a set, possible with complex expressions)
<sphalerite> joepie91: So why this approach and not emscripten + original nix?
<clever> joepie91: and then adding a simple key=value entry to it, overwritting one, or appending
<joepie91> clever: the 'serializing back' already sorta exists in JS, just the parsing doesn't yet :p
<joepie91> sphalerite: because I want a maintainable codebase that I can actually work with in practice and design tools around
<joepie91> emscripten is nice to get black-boxed things to run in a browser, but it doesn't produce maintainable code
<sphalerite> fair enough
<sphalerite> but why JS? xD
<joepie91> (and there can be significant performance hits)
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
uwap has joined #nixos
<joepie91> sphalerite: JS is my default language for things without specialized requirements, because of 1) ease of building maintainable/usable abstractions, 2) size of the existing ecosystem, 3) sane package management, and 4) generally-pleasant-to-work-with-and-simple language
<joepie91> it's the fastest way for me from an idea to a working implementation
<joepie91> (for values of 'working' that go beyond 'it looks like it works')
<sphalerite> sane package management? :D
<joepie91> yep
<dash> there's a sane package manager for js now?
<dash> i mean yes you can use nix
<joepie91> this sounds like bait I'm not going to engage with :)
uwap has quit [(Client Quit)]
<joepie91> it's virtually always the same discussion, yadda yadda leftpad yadda yadda disk space yadda yadda bloat yadda yadda install time etc.
<dash> joepie91: oh i guess there's yarn now
<dash> joepie91: nah
<joepie91> throw in some poorly understood complaints about semver and automatic updates
<joepie91> and ta-da
<dash> "deterministic install order"
<joepie91> dash: congratulations, you're the first person I speak to who, of their own accord, manages to point out the one valid criticism about NPM
<joepie91> :p
freusque has joined #nixos
uwap has joined #nixos
<joepie91> (technical criticism that is)
<dash> joepie91: well uh
<joepie91> that having been said, there's a reason I said "package management", not "package manager"
radvendii has joined #nixos
<joepie91> NPM itself is of very poor quality
<dash> joepie91: what is this channel about, affter all
<sphalerite> joepie91: I don't know enough to really know much about what other people hate/criticise about npm, if you have an article or something that explains and/or dispels them I'd definitely be interested
<joepie91> but NPM implements the model set out by Node, and the *model* is sane
<simpson> Maybe.
<joepie91> dash: even in here I've seen a good amount of misdirected comments :P
Guest9783452398 has joined #nixos
<radvendii> I need a patched version of pjsip for a package I'm building, what is the recommended way to do this?
<sphalerite> My only reason to believe that node's package management isn't sane is "everyone seems to say so", and I know very well that it's not a good reason :)
<joepie91> which, respectively, address a lot of misdirected NPM criticisms, and the concept of small modules and why it's beneficial
jgertm has quit [(Ping timeout: 255 seconds)]
<sphalerite> Right
<sphalerite> Thanks
<sphalerite> I also need to go to bed!
<sphalerite> Gnight all
<joepie91> sphalerite: good call. very few people actually understand how NPM or modular/nested dependencies work, this is especially true amongst people who don't actually use these things
<joepie91> sphalerite: I'd be happy to explain more details if there are particular things you're wondering about :p
<joepie91> night!
<simpson> joepie91: Why is there only one NPM?
<simpson> Like, if you *really* wanna talk about technical issues, we can talk about technical issues, but it's not gonna be fun.
<joepie91> simpson: can you rephrase that? there's a few different things called "NPM", the registry, the client, the company
<simpson> joepie91: All of those things, why is there only one of each?
<joepie91> simpson: that is a question I've been hammering on for a while now, and I'd prefer if there were zero of the company
<simpson> joepie91: I can understand that preference.
<joepie91> the thing with NPM is that the company does an extremely poor job, the client is terrible from an implementation POV, and the registry is proprietary; however, the concepts it implements are sound and, even with the terrible implementation, still blow virtually every other language package manager out of the water based on purely technical/economic metrics
<simpson> Can you show us those metrics?
<joepie91> which is why at the same time I get extremely tired of people complaining about things they either don't understand or that aren't a problem, but also very publicly criticize NPM and all its operations
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vQzTQ
<NixOS_GitHub> nixpkgs/master 7f7b74d Josef Kemetmueller: gogs: Fix cyclic dependency on darwin...
<NixOS_GitHub> nixpkgs/master 2e2769f Daiderd Jordan: Merge pull request #27104 from knedlsepp/fix-gogs-on-darwin...
NixOS_GitHub has left #nixos []
<joepie91> basically, people are complaining about entirely the wrong things
phreedom has joined #nixos
uwap has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
hiratara has quit [(Ping timeout: 240 seconds)]
uwap has joined #nixos
<simpson> Well, yes, but the people who complain about the right things are usually seen as opinionated cranks.
<joepie91> no disagreement there
<simpson> For example, I would like us to stop doing JS and the Web entirely.
<joepie91> :p
<joepie91> simpson: and show, no, but I can certainly explain them. most notably, the nested dependency model significantly reduces dependency conflicts (to nearly zero), resulting in adding a dependency being essentially free (ie. there's no per-dependency cost), which in turn results in a lot of smaller dependencies instead of a few big ones, which means different parts of functionality can be independently versioned and maintained, which significantly reduces
<joepie91> the cost of maintenance, audits, replacement, and so on
Guest9783452398 has quit [(Ping timeout: 260 seconds)]
<joepie91> simpson: the ecosystem grows around the dependency model, and the fact that it's /really hard/ to cause a conflict has caused a lot of other desirable traits to flourish in the ecosystem (one of those being nearly universal semver adherence)
hiratara has joined #nixos
<joepie91> the cost is now only in the actual surface of the dependencies you add, not the amount of dependencies itself
<simpson> semver might be a local maximum. Not sure yet.
<joepie91> (and many small dependencies have a lower total surface than a single big one, since you can more granularly pick the specific bits and pieces you need)
<simpson> Aside from that, meh. Nix can do all of this and lets you use non-JS additionally.
uwap has quit [(Client Quit)]
mudri has joined #nixos
<simpson> Also I'm still not sure whether modules deserve to know their own names.
<joepie91> simpson: why do you think I'm here writing development tools for Nix? :P
<simpson> joepie91: So that you can escape JS, Kurt-Russell-style?
<joepie91> right now it's not realistic to suggest use of Nix to the average developer, in part due to the state of its documentation
uwap has joined #nixos
<joepie91> even for me personally it's still too much hassle to rely on it during development
<joepie91> that doesn't mean I don't recognize the technical benefits; it's just not at a point yet for me where it's a net win
freusque has quit [(Quit: WeeChat 1.7.1)]
<simpson> My solution was to stop worrying about the average developer directly. Instead, I'll build things, and show folks the ideas from my things. They won't *use* my things, but they'll learn my ideas.
<joepie91> besides that, no matter whether you use Nix or not, you're still limited to the package model introduced by a language, and the ecosystem that has grown around that model
<joepie91> which means that even if I were to replace NPM with Nix, it'd still be beneficial for me to write in JS since the ecosystem is generally saner
<joepie91> as a result of the language-native package management being less crap
<simpson> I still worry that it's solving a problem that didn't need to be solved. Monte doesn't *have* language-native package management; it relies entirely on Nix.
<joepie91> right now, on the metrics that actually matter (development speed, reliability, work required for maintenance, auditability, etc.), JS + NPM score higher than any other language I've looked at
<dash> simpson: it doesn't do a very good job of it though
<simpson> dash: We have like three people writing Monte. We need more people and modules before solutions for managing those modules will become palatable.
<dash> yet
<dash> yeah
<simpson> joepie91: We'll have to agree to disagree; I don't think that we use the same rubric.
uwap has quit [(Read error: Connection reset by peer)]
uwap has joined #nixos
<joepie91> simpson: well, you didn't specify yours :P
jgertm has joined #nixos
<simpson> joepie91: What I'm looking for in a general-purpose language is how much of a *platform* it provides. If we assume that DSLs are good, it follows that the platform language needs to be a good DSL host. Also, there's several properties that are hard to implement in DSLs without also implementing them in the host language, so we want to make sure that the host language is sufficiently restrictive to keep
<simpson> footguns at arms' length.
<simpson> I'm only willing to even *consider* JS because of the massive effort put forth by the rest of the object-capability community on making cap-safe JS a thing, with Caja and all the ES5/ES6 work.
<joepie91> simpson: I'm not convinced that DSLs *are* good, as a general rule of thumb... and that seems like a very academic view that doesn't really take into account the practical tradeoffs
<simpson> But otherwise it's a terrible language for readability and it offers very little in the way of upwards meta while being tied in its runtime to a legacy of rushed decisions.
<joepie91> I'd strongly disagree with "terrible for readability"
<dash> joepie91: well, what's readability
<simpson> You're thinking of the code that you would write. You're not thinking of the code that is *possible* to write.
<joepie91> dash: the ability to efficiently and accurately convey the semantic meaning of the code to the reader
<joepie91> simpson: I *am* thinking of the code that is possible to write; however, I'm looking at the optimistic end, not the pessimistic end
<joepie91> simpson: if your argument is "it's easy to write unreadable code in JS", then sure, I will agree with you there
<joepie91> but that is something very different from "terrible for readability"
<joepie91> because at the same time, it's *also* easy to write *highly readable* code in JS -- it's just entirely dependent on the priorities of the developer
<simpson> joepie91: Well, that's a pattern in my rubric; I judge languages not just by their idioms and popular styles, but also by how underhanded, obfuscated, hard-to-read, and convoluted they can get.
<dash> joepie91: reasonable answer, i'm dismayed how many people want to say readability is about conveying the intent of the code or somesuch
<joepie91> simpson: while that can be *a* metric, you seem to be using it as a critical metric; overlooking the optimistic end -- and the problem with that is that that optimizes your judgment for poor and unmotivated developers
<simpson> joepie91: I imagine code review as adversarial: One person wants their code in the codebase, and one person wants good code in the database. Thus, there is a moment where a person tries to convince another person that their code, which may not be good, is indeed good.
<simpson> So, how do you tell if code is good? By reading it. How hard can the code be to read? Depends on the language.
<joepie91> simpson: that is, if you treat the pessimistic end of what is possible as your primary metric, you end up analyzing "what kind of code would be written by an incompetent developer", which isn't a terribly useful metric, as an incompetent developer will produce substandard code *either way*. instead, you'd want to consider what a competent developer *could* write, what the ceiling is for their performance in a given language.
<joepie91> optimizing for mediocrity is just not useful in the end.
thc202 has quit [(Ping timeout: 260 seconds)]
<simpson> joepie91: So why do you use JS instead of Smalltalk? We should all write APL and Factor, shouldn't we!
indi_ has joined #nixos
<simpson> joepie91: More seriously, I'm afraid that I don't see our peers and contemporaries as skilled engineers and craftsmen. I see us all as painters in caves, mixing paints by hand and ignorant of fundamental concepts like point perspective.
<joepie91> simpson: because like I said, I have not run into a language where the tradeoffs work out better [for general purposes] than in JS. I'm always open to learning about one, *if* somebody can provide a solid rationale that doesn't totally ignore half of the metrics (eg. developer productivity, ecosystem health, and so on)
<joepie91> (to be clear: yes, there are cases where JS is totally unsuitable)
<dash> we are all in the gutter
<dash> but some of us are looking at the stars
<DavidEGrayson> linus is looking at the potholes
<joepie91> simpson: right, but that comes back to what I said earlier - it's optimizing for mediocrity. my goal is to not just keep improving my own competence, but also that of others, and to end up with more reliable systems in the end. to that end, it makes sense to invest effort into something that has a high optimistic ceiling of what a competent developer could accomplish, both for my own purposes and that of other people.
<joepie91> simpson: worth noting that I do a lot of work on the 'making people better developers' aspect too, btw - it's not just sitting and hoping
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vQzIr
<NixOS_GitHub> nixpkgs/master ba757e6 Vincent Laporte: ocamlPackages.pgocaml: requires OCaml ≥ 4.00
<NixOS_GitHub> nixpkgs/master 9f9ca26 Vincent Laporte: ocamlPackages.lwt: requires OCaml ≥ 4.00
<NixOS_GitHub> nixpkgs/master 91e8a6a Vincent Laporte: ocamlPackages.csv: 1.4.2 -> 1.5
NixOS_GitHub has left #nixos []
<joepie91> I actively work to root out bad practices from the ecosystem, teach people how to write better code, not to cut corners, etc.
<simpson> joepie91: I understand your position well; I've worked with many folks who have held positions like this. Unfortunately, I have not seen efforts to teach people work half as well as simply *changing the process*.
<joepie91> simpson: I constantly measure the effect :)
<DavidEGrayson> In javascript, can't you just write "foo.blah = 1;" for any object named foo, even if it doesn't support a property named blah? I'd prefer to get a runtime or compile-time error.
<simpson> joepie91: In lines of code? In pages per week?
indi_ has quit [(Ping timeout: 240 seconds)]
<DavidEGrayson> I prefer typos to result in an error.
<simpson> DavidEGrayson: Sure, that's a way to look at it.
<DavidEGrayson> ASAP
<DavidEGrayson> So then something like Typescript could probably catch errors like that.
<simpson> DavidEGrayson: I look at it and think, "Why does `foo` allow callers to alter its attributes like that? That's so rude! Languages shouldn't allow that."
<joepie91> simpson: that's output, not effect. I measure effect by tracking habits in the ecosystem, tracking where my writings spread, how public opinions about things change, what proposals get added for ES, how module usage phases in and out, and so on.
<simpson> joepie91: Okay. But do you have graphs? I'm an SRE; if you really want to shift my view, you need to show me graphs.
<joepie91> simpson: a considerable part of my time is spent simply on talking to people and reading forum threads and chatlogs and whatnot, to understand how habits are changing.
<joepie91> simpson: nope, nor do I need them
<simpson> joepie91: I agree that we should be metrics-driven, that we should be empirical, and that we should measure stuff. I think that computer scientists are pretty bad at actually measuring stuff and that we are often too totemic.
<joepie91> simpson: I do want to point out that not all metrics are numeric
<dash> joepie91: that only reveals stuff about people who *discuss* programming
<joepie91> or graph-plottable
<dash> joepie91: Hm. I guess the other question that comes to mind is why JS and not, say, Elm or ClojureScript
<simpson> joepie91: But they're at least *comparable* and obey some axioms.
<joepie91> dash: not necessarily. I particularly focus on people who ask questions, *especially* beginners, what answers they get, as well as third-party information about what people talk about in closed social circles
<simpson> dash: It's the argument by supremum; JS supposedly sits at the best intersection.
<joepie91> dash: I've seen no compelling arguments to use either Elm or ClojureScript
<dash> simpson: My best argument against is how they look on your resume
<joepie91> dash: an example of a more obvious data point: https://forums.meteor.com/t/im-done-with-mongodb-its-leaving-my-stack/9736
<joepie91> dash: this is a (freelance) developer indicating that they have trouble selling MongoDB to clients, in part because of the article I compiled
<joepie91> that's second-hand information about opinions of non-social-developers
<joepie91> one of many, but most data points are less clear
<simpson> joepie91: Alternatively, numbers and science: https://aphyr.com/posts/284-call-me-maybe-mongodb
<joepie91> simpson: you're missing the point here.
<joepie91> simpson: I'm measuring ecosystem impact, not lost reads.
<joepie91> er
<joepie91> writes*
<simpson> joepie91: I'm not a sociologist.
<joepie91> that article does not provide numbers on ecosystem impact, it provides numbers on lost writes
<joepie91> therefore it measures a totally different thing from what I'm interested in knowing
<joepie91> them being numbers doesn't make it any more relevant
<simpson> joepie91: What's relevant is that numbers can be *compared*, and what you're trying to pass off as "metrics" aren't necessarily comparable.
<joepie91> simpson: what I do lives on an intersection between technology, sociology, psychology, and pedagogy.
<simpson> joepie91: It reminds me of https://www.quorumlanguage.com/ , which really is an aggressively mediocre language that caters to lowest-common-demoniator thinking. They measure, and they write papers, but they're failing to climb upward. I think that maybe they're not measuring the right things.
<joepie91> simpson: this is a "perfect or nothing" argument.
<simpson> Huh? No, it's a question of priorities.
<joepie91> these things are simply not numerically measurable. you can say "well, no numbers is bad, so let's not measure", or you can say "let's try to get as accurate a measurement out of this, even if not numerical, in an attempt to track impact"
<simpson> joepie91: Let's say two events X and Y happen and impact your community. Which one had more of an impact? How do you tell?
<joepie91> simpson: the question is too vague to answer.
<simpson> joepie91: Okay. Now, here's the thing. As an SRE, when I get paged, I have metrics: Time taken to respond, SLAs impacted and measured, SRE-hours consumed, revenue impact to the business, etc.
<joepie91> simpson: human behaviour and the spread of concepts, habits and opinions isn't something that's as trivially quantifiable and generalizable as you are demanding, nor is it always clear how to measure things without a very well-defined idea of what you're looking to learn. most of the time, it's an iterative process of trial and error.
<joepie91> sure, but how does that relate to my goal of getting people to write better software?
<simpson> joepie91: Okay. Can we iterate on JS and maybe produce something better?
<simpson> joepie91: I can measure things like *which language the erroring service is written in*.
<joepie91> theoretically, yes. in practice, it seems that everybody is too mired in either petty biased language wars or an overly academic view of programming, to actually produce anything that holds up as better in the real world.
radvendii has quit [(Quit: leaving)]
<simpson> joepie91: How do you feel about the fact that ECMAScript's committee is filled with people who hold my views about languages *but* think that JS can be saved? They've been porting *academic language features* into JS for a few years now.
<simpson> Maybe "academic" isn't such a curse word!
<joepie91> simpson: I am very unhappy with the recent additions to JS.
<simpson> joepie91: Excellent! Why?
<joepie91> simpson: some of the features were long missing, but many of the features had absolutely no valid reason to be added, and have resulted in undesirable consequences.
<joepie91> simpson: eg. instead of capitalizing on JS' prototypical object model, class syntax was added, and it has further muddied the waters and confused people on how objects actually work in JS.
<simpson> Ah, sure. Classes aren't the best.
<joepie91> some of the more recent things, such as async/await and ES modules, also have significant design issues.
<joepie91> and generally solve non-existent problems.
<simpson> Do you have an opinion on WeakMap?
<joepie91> the problem with the recent additions to JS is that they are often substitutes for better documentation and education.
<joepie91> adding features instead of explanations.
<joepie91> people *already* have an extremely poor understanding of how JS works as it is (and it's not like it's difficult! it's just not documented well)
<joepie91> and the additional features are only making this problem worse.
hiratara has quit [(Quit: ZNC - http://znc.in)]
<joepie91> simpson: I haven't formed an opinion on it yet. however, Map is one of the ES6 things that certainly serves a valid purpose
marantz has quit [(Quit: Leaving.)]
<simpson> joepie91: I'm specifically thinking WeakMap though. The weird non-enumerable one.
<joepie91> I will have to investigate it more before I can form a useful opinion on it :)
hiratara has joined #nixos
<avn> joepie91: JS have too many bracec in code (but thanks gods not sigils)
<simpson> joepie91: Personally I'm disappointed that template strings aren't very extensible.
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<joepie91> simpson: I'm very skeptical about how complex they already are. I haven't really seen a valid rationale yet for having tagged template literals, for example.
<joepie91> one of the big benefits of JS as a language, was that it was a very /small/ language, in the sense of having a relatively small amount of syntactic constructs that were largely generic in nature
koserge has quit [(Ping timeout: 260 seconds)]
<joepie91> some mishaps (like constructors) aside, generally speaking things were only implemented in the language itself if it was impractical to not do so
<joepie91> the recent additions have *significantly* increased the learning curve of the language, and this is causing people to (over)use language constructs where generic abstractions would have been more appropriate
<simpson> joepie91: In E, the tags are used to implement DSLs. We've practically shown in Monte that you can have DSLs for parsers, tree transformers, Monte itself, HTML, and more.
<joepie91> simpson: right, and I still feel that it's not a desirable thing to have that feature in a general-purpose language.
<simpson> joepie91: Also in E and Monte, template strings can be used as *patterns*, which perhaps motivates the flexibility more.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Fuuzetsu closed pull request #27090: sxiv: Add support for custom config (master...config-sxiv) https://git.io/vQukz
NixOS_GitHub has left #nixos []
<joepie91> it significantly increases learning curve, also on a per-project basis, because every project will essentially be written in its own language.
<simpson> joepie91: If you read http://monte.readthedocs.io/en/latest/ and idle in #monte, you can maybe change our minds, but I doubt it.
<simpson> joepie91: Well, yeah. That's the way that projects *already are*; they have dialects. Monte aims to have *standard syntax* for dialects and DSLs.
<simpson> And then, eventually, *tooling* that can understand the DSLs.
<joepie91> well-written projects are not.
<joepie91> (in JS)
<joepie91> simpson: anyhow, I should get back to my project before I discuss my entire remaining weekend away :P
<joepie91> I definitely want to finish my Nix parser tonight
<simpson> joepie91: Are any of these well-written: Angular, Backbone, Dojo, Ember, GWT, jQuery, MooTools, React, SproutCore, Vue? I hear that these are all big mature projects with opinionated libraries that require non-standard idioms.
<simpson> IOW they have dialects.
<joepie91> simpson: many of them are extremely poorly designed, some as a consequence of the time during which they were designed and the available environment support at the time -- not all, however.
<joepie91> simpson: that having been said, I'm very skeptical of the DSLs introduced by the non-poorly-designed libraries
<joepie91> (these are also all frontend libraries, which isn't a good baseline metric for JS, because it's largely "working around browser capabilities")
<simpson> joepie91: Sure, JSX is terrible, but what's worse: Writing "jsx`whatever`", or writing JSX in JS comments?
<simpson> I'm thinking of JSX, right? Or was it something else that was JS+HTML mashed into JS comments?
<joepie91> I don't recall "JS+HTML mashed into JS comments" at all
<joepie91> JSX is an actual custom-ish format
<joepie91> that is, it's an extended variant of JS
<joepie91> (and a standard JS parser will not understand it)
<joepie91> (I also don't really like JSX for a number of technical reasons)
<joepie91> but I really should get back to my project :P
indi_ has joined #nixos
<simpson> Yeah, I'm getting back to battlestation-building.
Khetzal has quit [(Ping timeout: 240 seconds)]
<joepie91> simpson: btw, to clear something up: I'm not using "academic" as a curse word -- in fact, that's why I explicitly said "*overly* academic". the problem is that when you only focus on the theoretical design and quantifiable metrics, you're going to miss things, and I often find that people and projects with a strictly academic view fail hard on the 'softer' factors, such as (driving/analyzing) human behaviour, documentation, economic tradeoffs, and so
<joepie91> on. sure, theoretical aspects and quantifiable metrics are an important part when considering something, but they are not the *only* part.
<joepie91> (and it's extremely difficult to discuss a topic when every argument about a softer factor is met with something along the lines of "yeah well, but the numbers/theory say...")
MP2E has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
orivej has quit [(Ping timeout: 258 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/72c9ed78d0 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
<gchristensen> regular channel updates ftw
ebzzry has joined #nixos
<hodapp> On the other hand, calling a language "practical" is the sort of thing that can be used to dismiss literally any aspect of its design or any failing from a usability standpoint.
<joepie91> hodapp: calling something "practical" doesn't somehow remove the requirement to provide a rationale supporting the claim :)
<joepie91> any word can be used to dismiss any failing, that doesn't mean that it's any more valid to do so with one word than with another
<catern> hey #nixos, I'm incrementally setting up NixOS on my personal machine (currently running Arch), here is my plan, can you tell me if this is crazy in any ways? 1. install multi-user Nix on top of Arch, putting /nix into a separate btrfs subvolume, 2. use Nix and install all the packages I want, 3. install NixOS in another btrfs subvolume, sharing the /nix subvolume with Arch, 4. completely switch from Arch to NixOS
<joepie91> hodapp: ie. if somebody claims there to be 'practical benefits' in something, I'd just as much expect them to provide a rationale as to what those benefits are and why they are beneficial over the other options, all things taken into account
<hodapp> It's certainly curious the sort of blindness that using a language extensively can grant a person, though.
<joepie91> which is why experience with multiple languages is important :)
ertes has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
earldouglas has quit [(Quit: leaving)]
<gchristensen> clever: what if the extraConfig kernel override barfed if you passed in a param starting with CONFIG_ or had an '=' in there?
<gchristensen> to catch common problems
<gchristensen> (where common problems = how I wasted my last 1hr :P)
pingveno has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] regellosigkeitsaxiom opened pull request #27105: Added networking.extraLocalHosts option (master...master) https://git.io/vQzYH
NixOS_GitHub has left #nixos []
pingveno has joined #nixos
pingveno has quit [(Client Quit)]
pingveno has joined #nixos
Neo-- has quit [(Ping timeout: 240 seconds)]
ris has quit [(Ping timeout: 255 seconds)]
pietranera has quit [(Ping timeout: 248 seconds)]
phinxy has quit [(Quit: Leaving)]
pietranera has joined #nixos
<clever> gchristensen: does sound usefull to have an extra linting stage, before you unpack the full kernel source
<gchristensen> definitely should have added a -j to this build :(
<gchristensen> yeah exactly
<clever> gchristensen: just unpacking it on my pi takes forever
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] siddharthist opened pull request #27106: faker: 0.0.4 -> 0.7.17 (and related changes) (master...faker) https://git.io/vQzOz
NixOS_GitHub has left #nixos []
pxc1 has quit [(Ping timeout: 258 seconds)]
markus1199 has joined #nixos
phinxy has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
justelex_ has quit [(Ping timeout: 240 seconds)]
phreedom has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
lambdamu has quit [(Ping timeout: 268 seconds)]
ryanartecona has joined #nixos