2018-06-06

<gchristensen> clever: :D every time I get a ":O" from you I feel like I did something _really_ cool :D
<Lisanna> clever I don't want that though, that's inefficient - Ideally I'd like to just use the hash in the /nix/store filename or something
<clever> Lisanna: i think its based on the last-modified timestamp and something else
<samueldr> though, maybe something caching in-between could be manipulating that, or misreporting?
<samueldr> inquisitiv3: you're verifying them using something that expects the filenames?
<nur0n0> evlishjerricco: in my mind http://cr.yp.to/slashpackage.html was a first step toward something like NixOS
<leons> elvishjerricco: I'm trying to get a few people at my company to use it. They're just getting used to the fact that deployment with tools like Ansible are now expected by customers (in addition to hundreds of pages of manual). Most of them just wait until something like NixOS is mainstream, I guess it just takes a lot of time to take off
<ixxie> looks like something broke the package
<nlytend> When installing haskell packages i am getting 'encountered missing dependencies', and adding them manually feels like i am doing something wrong.
<softinio> is this something I setup in my configuration or do I increase the disk partition I am using for swap to 4gb?
<lalaland> Thank you very much, so I am not crazy and something is broken on master.
<kendrick_> for anyone having an issue installing ghc-mod on 18.03, i reverted back to 17.09 and my config file works perfectly. I think its something to do with 18.03 using ghc 8.2.2 which isn't supported by everything. Github issue: https://github.com/NixOS/nixpkgs/issues/36604
<samueldr> LnL: if you have something you want to add https://github.com/samueldr/github-to-irc/issues/10
<__monty__> hodapp: Don't intend to lecture anyone. Just think it's a questionable decision UX wise. Imo it's something make did well.
<__monty__> lalaland: Yeah but in doesn't make sense to me. Why not have shake emulate make and add a shuriken binary or something that emulates ninja?
<hodapp> __monty__: I've not ever seen Shake described as something that subsumes make, but as something for which the EDSL itself supports similar semantics to make, intentionally - not as a drop-in replacement.
<LnL> then something else is overriding it, or you're not using bash as your shell
<cocreature> I tried using 8.4.2 instead of 8.4.3 but it’s still producing the same error :/ something is going wrong here …
<LnL> oh, something else is overriding it
<srhb> thekolb: You probably want something like systemd.service.myservice.enable = false; May need lib.mkForce false depending on the module
<sphalerite> oh right, forgot that it uses symlinks. I think something like buildEnv but making copies rather than symlinks would be more appropriate
<GuillaumeBuisson> I get something like gitaly.... Could not find rake-12.1.0 in any of the sources ... tailing the logs
<tilpner> Not sure about the additional argument, but something to be generic over what terminfo to install could be nice if a user needs to customise this because of using an obscure terminal
<sphalerite> cmakeFlags is also a thing though, so maybe something like cmakeFlags = ["-DFOO_BAR=BAZ"];
<marcus___> Thanks very much for the help anyway, at least next time something goes wrong I've learned to play with `strace`!

2018-06-05

<infinisil> Something like that
<PolarIntersect> but I can't remember if it's 'intel' or 'i915' or something else
<lluchs> Is there something new I'm missing in my configuration or so?
<inquisitiv3> It was just little confusing seeing the community focusing on something that everyone else does.
<infinisil> robstr: hold on I'll make an example of something that would work for you
<robstr> infinisil: Right now I'm more then confused with nixops syntax, until now I used something like this https://gist.github.com/rsoeldner/21d73f6a9e7be8f4303b09a2207edc7b , I specified it "twice" and never tought about why this works. But now things change
<infinisil> robstr: Something like that could work ^^
<tazjin> there was something I had to do once that wasn't in my nix config though, iirc
<ij> manveru, Possibly… or just some. It's just that bundle update (or something more --conservative) wouldn't work. Should it?
<ij> is it possible to make configuration.nix download <nixpkgs> (or something like <musnix>), so I wouldn't have to update channels on multiple machines?
<sphalerite> infinisil: the default value, null or empty or something like that, throws a warning
<avn> time to finish all my lib-prefixed refactoring, and do something new (lol)
<acowley> infinisil: That's what I was thinking about actually. Does it actually make sense to run tests on the build machine? If it's a cross-compile or something, we'd want to run on a separate test runner.
<aminechikhaoui> the gdb output shows that it's likely during the handling of the rela.plt section or something ?
<klaas_> @JasonGrossman thanks, the process has indeed seemed to move on to something that produces visible output on screen
<klaas_> while upgrading to 18.03, I'm getting some warnings "warning: unknown setting 'signed-binary-caches'"... [1] is this something to be worried about? [2] how can I get rid of it?
<tilpner> Oh, I thought it would be in nixpkgs somewhere, something like nodejs_8_x.dev
<bbsl> teto1: this is something like what I would have needed now ... I think I hate lua but not having/having lacking support for it might mean I cant use nixos at work at the moment if I cant hack this together :o)
* PolarIntersect thinks she probably did something wrong
<clever> i'm checking the git logs now, something strange is happening
<clever> your derivation still lacks a name = "something";
<clever> robstr: try running nix-shell without shoving it into the buildInputs of something relatively unrelated
<PolarIntersect> Is there something I need to do to make that package available?

2018-06-04

<LnL> Ralith: ok, guess you could do something like this
<infinisil> ldlework: Of course, repetitive stuff like the channel list could easily be made simpler with something like `listToAttrs (v: nameValuePair "#${v}" {}) [ "nixos" "zfsonlinux" ]`
<woohoo> maybe I'm exaggerating, but I think there's something to be concerned about anyway
<bebarker> where are nix-store .drv.lock files supposed to be created normally? I'm trying to figure out how I borked my container: https://gist.github.com/bbarker/651feffd37658811bb56691178e65ab7. E.g., I get something like the following when trying to use nix-env or nix-shell to add something to the nix store: opening lock file '/nix/store/4iidhax10argyy6kr0i3fdzxcy933ljn-nghttp2-1.32.0.tar.bz2.drv.lock': Permission denied
<infinisil> This 1 options can completely represent the structure of the config file of znc, so you have as much flexibility as you'd even need. No need to add additional options when you need something more specific
<tfc[m]> dash: clever i have even no idea what yarn is. i just want to encapsulate the plain `npm run dist` invocation so i never have to install something like npm in a user shell again
<Dezgeg> jophish: I guess something went wrong when mounting /
<dash> infinisil: it's telling me something "lacks a valid signature"
<Dezgeg> just edit extlinux.conf manually or something
<elvishjerricco> Dezgeg: FYI I got it to boot. :) turned out something hadn't gotten a native build input right so it ended up running the aarch64 mkdir and getting the obvious exec error.
<tobiasBora> on another computer (same arch), this finishes in something like 20mn, and it fails
<LnL> what type of source are you using, fetchurl or something else?
<infinisil> Something with mime database update and some other things
<ikwildrpepper> to something that is writable for a nix build (e.g. somewhere in $TMPDIR)
<colemickens> just in case you have to download and repair the VHD or something
<ramses_> I wonder whether I need something in place like an auth token for the agent or whether he just works by mac address or whatever
<clever> Myrl-saki: something to do with dynamic linking i believe
<clever> then you .override something else to use that new stdenv
<Myrl-saki> I found something a while ago that said to use ".text = builtins.readFile ..." for files. :P
<elvishjerricco> matthewbauer: I'm pretty confused about it myself :P I know that gettext should actually be native. The library we care about is in libc, but we need the command line tools that are used for automatic substitution of stuff or something
<matthewbauer> Yeah I think propagating fixed something else but not sure if it really needs to be propagated. Does native make sense though? It should actually link the library IIUC

2018-06-03

<Dezgeg> yeah, something wrong with the disk I presume
<elvishjerricco> Ok now I at least have something!
<samueldr> (I was sharing so you could voice your opinion or something :) )
<samueldr> good, at least you're using something that should work (and not e.g. uefi loader on legacy)
<samueldr> I didn't feel any slowdowns on my main laptop, but I thought something was *up* with the chromebook or it was the meltdown patches causing that dreaded slowdown
<samueldr> if you want to try something dumb, set the shebang as `#!/usr/bin/env cat`
<Izorkin> das_j: https://pastebin.com/jLuJ01Qg - I wanted to do something like this
<infinisil> licenses or something like that
<jD91mZM2> adisbladis[m]: Oh no! Is this something I'd have to worry about if I use the LTS kernel?
<LnL> infinisil: I need to patch something in a submodule, but didn't want to commit it as a file just because it's not in the main repo
<LnL> do we have something to apply patches to a subtree?
<Dezgeg> did you change something like the the root filesystem etc.? compatible kernel modules?
<mjrosenb> also, makes sense, I was super surprised when something asked me to install xcode.
<sphalerite> ugh, I did something similar (not quite as bad) a while back because printing stuff is insane
<pie__> yeah something like that, ok hold on ill do a simple thing;
<pie__> or something, idk , see setxkbmap -print | xkbcomp -xkb -o original.xkb -
<infinisil> I think I remember something like that
<Dezgeg> maybe if you run gnome or something like that it overrides the keyboard configuration

2018-06-02

<infinisil> Oh hold on I found something
<pie__> hm ok, but that looks like its on a lower level i want ideally to do something like "a" -> "b"
<samueldr> neat, wasn't sure if there was something else that was needed
<pie__> and it doesnt look like theres any way to add something in my home directory
<rotaerk> wonder if a driver bug was introduced or something
<papika> kinda like `touch newfile; cat something >> newfile; cat otherfile>> newfile; return filename `
<Guest73519> hi, i upgraded from 17.03 to 18.03 but packages like firefox, docker are not upgraded. Is there something else to do?
<mog> is there something going on with unstable? i did a nixos-rebuild switch --upgrade but the newer kernel is still not showing up when i did a search for it is still showing the older version as well
<rotaerk> so that they can ONLY get it from the cache, or something
<rotaerk> I was thinking of nix as just a build tool, where the final derivation output is something I could just zip up and send to someone
<rotaerk> so uh, either 1) is there something like buildEnv that actually puts files, rather than links, or 2) if I did use buildEnv, what would be the appropriate way to prepare it for distribution?
<pemeunier> Hi! My nixpkgs.config.allowUnfree doesn't seem to do anything anymore. Did something change in the latest nix or nixpkgs?
<ben> I only tried to use nix to find the source for netcat so I could figure out if it can set TCP_NODELAY or something
<sphalerite> symphorien: you need to change the hash, otherwise it will find that it already has something wit hthat hash in the store and not build it.
<tenten8401> Would something like this be the proper way to setup a skeleton? https://github.com/bennofs/etc-nixos/blob/master/conf/desktop.nix#L113
<tenten8401> is it named differently by default or something?
<colemickens> I could always build a way for VMs to inspect metadata or something and activate a new config if I don't want to always burn new images...
<tenten8401> and it's much easier to customize your system from scratch compared to something like Arch
<tenten8401> I know the random Latte Dock layout file needs something done with it

2018-06-01

<clever> tenten8401: there are other options if you want it to run something on login
<tenten8401> Couldn't this also be used for desktop environment specific customizations too? Say I wanted to run a command to set a Qt5 theme or something
<tenten8401> no rule to make target install, I'd assume that has something to do with my Makefile
<LnL> tenten8401: you'll want to add something like src = ./.; to make the build aware of your local sources
<phry> yes, nix-build would be more suited for something that should at some point become part of your system
<clever> tenten8401: you should always use nix-shell when you want to build something
<Myrl-saki> If something is released as a standalone binary, is it more idiomatic to package the binary, or to stil compile it?
<cransom> and yes, many don't follow how attribute merging work. learning the system takes a little effort, but when you keep trying to make something idiot proof, they do make a better idiot
<__monty__> ixxie: Imo you could implement the infrastructure you want right now in restricted nix. Something like simpleNix { package = true; ... }.
<ixxie> MichaelRaskin: I am talking about something much more simplistic
<clever> matthewbauer: the only time ive seen something being built once in a truely cross-platform way, was when the derivation was simply to unpack and rename some font files, it was flagged as fixed-output, so the build on 1 platform can be used by all others, and nix enforces it building "properly"
<phry> symphorien: programs.mosh.enable=true; already modifies the system firewall, I could also make it add the suid wrapperfor utempter. Maybe with something like programs.mosh.withSuidWrappers = true;
<phry> symphorien: I've got it to work. https://pastebin.com/y2rdXVfZ The question is now: Is this something I should commit upstream to nixpkgs? Those changes _are_ useful in my eye, but they only work when the user adds the security wrapper.
<Lisanna> use wrapProgram/makeWrapper to wrap the executable to call it with unshare or something
<adamt> nix build .. -v also prints a line every time something is done, but it just also shows the prompt
<ldlework> is the user attribute a list or something?
<ldlework> infinisil: maybe attrsToZncConf or something?
<Dezgeg> it needs to be something like 4.17.0-rc3-next-20180504
<Guest70xxx> any suggestions for any libre alternatives to teamspeak? Preferably something my friends and I can use as a messenger as well
<Guest73580> ah ok, just something we have to put up with I guess?
<adamt> clever: I just hoped i could get away with just serving the nix-store, instead of e.g. linking the results into a www root or something like it
<clever> adamt: that file receives the mac of the machine in the GET params, and it could just nix-build something on the fly, then respond with the path to the result
<clever> jophish: ive had plans to do something similar many years ago, but i didnt have any fpga's with a hardcore, so i was going to abuse an rpi
<clever> jophish: the last time i did fpga stuff, the tools took up something like 20gig, and i dont see nix playing well with a 20gig storepath
<jophish> yeah, I was doing something similar at my previous workplace
<clever> mpickering: yeah, something seems off with the docker images
<shachaf> Is there a way I can force that package not to be installed or something?
<shachaf> Is that only needed for decrypting two LUKS volumes with one key or something like that?

2018-05-31

<justan0theruser> something like `pkgs = <nixpkgs> {}; foo = <pkgs.python36Packages.callPackage ../pkgs/foo.nix> {}`
<srhb> iqubic: Instead, you will probably want something like: nix-shell -p 'python.withPackages (ps: with ps; [ requests argparse ])'
<srhb> iqubic: It could keep track of a hash of the nixpkgs it cached or something. But it doesn't.
<srhb> Looks fine here, EU west something I think.
<mjrosenb> it does, just that directory apparently doesn't exist until as mentioned before, I install something, which is kind of confusing.
<gchristensen> ~/.nix-profile doesn't point to anything until after the first time you install something
<mjrosenb> ok, something is fishy here. I think I lost internet in the middle of running the install script.
<mjrosenb> I just installed nix on OSX, and nix-env -i git is telling me that there are two derivations named git-2.16.3. Is this expected, or is something (subtly) wrong?
<Myrl-saki> elvishjerricco: Isn't Dezgeg working on something like that?
<steveeJ> I'm trying to figure out how to write something inline which can later be moved to its own file without being changed
<gchristensen> I guess I'm looking for something like callPackage, but callOverlay
<Myrl-saki> If you evaluate it by "one step" it becomes something like `eval "${patchPhase:-patchPhase}"`
<Myrl-saki> eval((variable_exists(**x)) ? **x : *x;) or something like that.
<Myrl-saki> or something like that
<Myrl-saki> Or am I doing something wrong?
<tfc[m]> did anyone use nix expressions to do something like `fetchGit` on a gitlab repository that is private? i need to somehow "inject" the credentials
<magnetophon> sphalerite: I did something stupid and had to reboot, and after that I got the same error with nixos-build. Your command fixed it again....
<sphalerite> huh, "while setting up the build environment"… Are you in a container or something?
<johnw> I'm trying to debug a case where "nix-env -i coq" is getting resolved to something different from "nix-env -iA coqPackages.coq"
<adelbertc> i have something like `${foo}` in the `runAsRoot` command for docker image building
<joepie91> spear2: curious, why does an RSA signature implementation need nightly? that seems like something that should work in stable

2018-05-30

<clever> i could see apply being used to turn something like a systemPackages list into a buildEnv
<LnL> hmm, I lied apply is something different so type is not required?
<imalison> LnL: nvm found something in the manual
<imalison> so even if I were to write something like that in my configuration.nix, the effect would actually be additive?
<jlund> brew install zsh. I just removed it. Still not working. Must be oh-my-zsh or something local. Will try to debug.
<jlund> My user (of which I ran install script with) doesn't have anything appended to in PATH. Perhaps I have something in my dotfiles that is overriding what installation does
<gchristensen> it'll be created when you nix-env -iA something
<octe> could i need to update something?
<octe> why is nix-env -iA compiling something, shouldnt most packages have binary caches?
<Sonarpulse> Ralith: well for now you can do something like before
<Unode> Was hoping to find something a bit more flexible and slightly still on the easy side like shorewall.
<Jetien> I have another hydra question: If I like deploy a jobset via nixops, i'd have to provide the nix expressions of the jobset via the channel, correct? The default channels that hydra creates for me provide just store paths. I can use them for nix-env, but for nixos/nixpkgs I need expressions, correct? If I like to use hydra i could to create something akin to https://d3g5gsiof5omrk.cloudfront.net/nixos/18.03/nixos-18.03.132536.fdb5ba4cdf9 which provides a
<fin-ger> tilpner: gdm or something is crashing
<tilpner> Are you sure you didn't need to set another environment variable, or something, to get nautilus to load things?
<gchristensen> lhart: you can force rebuild something with nix-build --check
<maurer> It looks like it was doing something impure, because the transition between zotero working and zotero not working _did not_ involve a reinstallation or update of zotero
<gchristensen> ^ if anyone else wants to meet up while I'm on the continent, ping me and I'll try to work something out :)
<rprimus> Something was changed in 17F66a
<LnL> I guess it's possible they changed something about sandbox-exec
<LnL> can you force a rebuild of hello or something to make sure
<LnL> it's the first command that tries to build something locally with nix
<LnL> was your last attempt 2.0.3? maybe something was fixed
<adamt> actually, using those shouldn't trigger a kernel rebuild.. Maybe something else is wrong

2018-05-29

<Lisanna> it's probably something else actually, misread the implementation. For some reason systemd-tmpfiles --clean is returning success immediately, and not actually cleaning anything
<ixxie> or something-Nix
<ixxie> gchristensen: so you wanna avoid the all too common Nix-Something names?
<Myrl-saki> or something
<adamt> gchristensen: What media did you use for installation? Something made the last few days?
<etu> Akii: untested but I think that something like this might work: https://ptpb.pw/LQTq/nix
<clever> LnL: source? that sounds like something i could use
<clever> LnL: nix also has a bug where it fails to build if you ever gc something that the client thinks is in the binary cache
<gchristensen> I see it as a easy first step to make it easier to get things in production, but still able to improve later when they need something bigger & better. what do you see wrong with it?
<Myrl-saki> makefu: I went with bcache + ext4, apparently ZFS is meant for multiple drives. Something that I don't have money for. :/
<srhb> etu: Something like this: http://nixpaste.lbr.uno/ywV358cR?nix
<thblt> I assume something in the Firefox package is assuming the icon will be provided by something else, but nothing does.
<clever> elvishjerricco: something like this:
<JasonGrossman> See above, or look on the Guix web site. Or worry about something else

2018-05-28

<clever> tfc[m]: you may need something like this
<Unode> hi all, I'm trying to disable tests for findutils on 18.03 using: http://dpaste.com/2XXFT8X but tests are still being triggered. Is there something wrong with my derivation? I don't understand why this has no effect.
<boothead> Hi folks, I have really odd issue that's hosed my laptop for several weeks now. I've installed again from scratch (wiped the /nix/store and installed from the set up disk image). Every time I nixos-rebuild switch I seem to be overwriting the grub files or something and messing up EUFI because even the old generations won't work. I get dropped into a console login and then get kernel messages about blocking rcu_node structure
<theColourGreen> @LnL Alright, that's good to know. Then I guess something is way off with some configuration
<jD91mZM2> norfumpit: Overlays is the new way to package overrides. You'd do something like this: https://gist.github.com/jD91mZM2/47160d008e14f3463cb31432a2bb0581
<ij> if you manually add something in /etc, will it persist after reboot or config switching?
<tfc[m]> i bet in my `inherit nixpkgs;` something different happens than i hope to happen, but i also have no clue how to debug this.
<MichaelRaskin> Second, just because something is allowed access to this X instance doesn't mean it should have arbitrary code execution as your user
<jtojnar> try something like sudo nixos-rebuild switch -I nixpkgs=$HOME/Projects/nixpkgs

2018-05-27

<clever> testing something on this end...
<nh2[m]> aszlig: yeah ok the mac address is wrong. I think something went wrong with this server, it also had a wrong IP in its physical spec, the one of a different server of mine. Maybe I swapped some IPs accidentally on creation, I'll recreate it
<manveru> given something like `{x = drv; y = drv;}`, is there an easy way to make a derivation that combines the outputs into symlinks in a directory with the key as directory name?
<clever> ryantrinkle: you can also manually run `hydra-notify build-finished 63657` or swap in build-started (as `sudo -u hydra -i`) to manually claim something has happened and update github
<Orbstheorem> Also, Is there a decent way to rebuild my configuration with “options”? ie. I'd like to create multiple profiles and do something like nixos-rebuild switch -E 'profile=powersave'. Instead of overriding the environment variable
<mjrosenb> I also saw something saying it should be in ~/.config/*nix* (exact path not remembered)
<ryantrinkle> need to add something like this to the git config: fetch = +refs/pull/*:refs/remotes/origin/pull/*
<tfc[m]> then i would try to take complex existing nix expressions, and tear them apart to comprehensively explain it to readers by example. this is something i learn best from myself.
<tfc[m]> hm too bad looks like something to just get through in the beginning.
<tfc[m]> hey there, i want to build something with `makeFlags = [ "SOME_EXTRA_INPUT=${path to file that resides next to my nix expression.txt" ]`
<lostman> Hi folks. I've been trying to find out why libclang pulls in gcc in addition to gcc-lib as dependency (when building docker image). Running strings on libclang.so.6.0 shows /nix/store/cm5znbhvylrh702hhsy9hnad7wk3v7xv-gcc-7.3.0 which as far as I understand has something to do with how nix computes runtime dependencies. Is there anything I can do about it?
<sphalerite> yes, but that's not something we can use as the channel state
<taktoa> sphalerite: naively I expect it wouldn't be but there might be some kind of trick, maybe using broken symlinks or something
<dtz> which is something like { stdenv, ...., debugVersion, ... } : stdenv.mkDerivation { <<go go gadget LLVM build as a function of (stdenv, ...., debugVersion, ....)>>};
<cocreature> it seems like the debug flag is not being applied but given that it rebuild llvm something™ seems to have been applied
<cocreature> Hey, if I run “nix-shell -p "llvm_6.overrideAttrs(oldArgs: {debugVersion = true;})" --command "llvm-config --build-mode"” (and wait until the build finishes) I still get “Release” instead of “Debug”. am I doing something wrong here?
<nkaretnikov> elvishjerricco: on the development page, there are some references for building mobile apps. does it work by bundling webkit or something?
<elvishjerricco> nkaretnikov: Yea the `project` stuff is another example of something we need in reflex-platform, but it's so nice that I really want to upstream it somewhere
<nkaretnikov> elvishjerricco: i don't have any library preference and don't really know what's considered best practices in the haskell js world. i just need something with which i can draw shapes on the screen and accept mouse/keyboard events. iiuc, the reflex platform gives me all this in a nice package thanks to the bundled libraries, correct?
<clever> Lisanna: first, try calling it something other then $out, and then echo both placeholder and $out

2018-05-26

<elvishjerricco> IIUC, `overrideAttrs` directly overrides the arguments to mkDerivation, but `overrideDerivation` overrides something much lower level so it's not usually suitable
<elvishjerricco> Put something like that in configuration.nix
<ldlework> why can somethings be 'nix-env -i foo' installed?
<ldlework> I just tried 'nix-env -i discord' since there is a `discord` package in nixpkgs but it can't be found that way. When I can I 'nix-env -i something' and when can't I? And in the cases I can't, how do I get foo installed? I can't seem to internalize the underlying pattern here.
<clever> sphalerite: oh, and something else about wake-on-lan, it will activate if the card sees the magic bytes, in any packet that reaches it
<infinisil> sphalerite: That would be something yeah
<sphalerite> tomberek: it doesn't seem to generate the [Install] section though, I think nixos handles dependencies itself by creating .wants directories or something
<ldlework> Does anyone have a snippet that will basically recursively visit a folder of files and do something with each of them? I have a folder of files, and I'd like to generate a systemd preStart script that write all those files to disk using the contents from the source files.
<jcrben> nkaretnikov gchristensen that discussion around https://github.com/NixOS/nix/issues/2184 could really use a writeup in the wiki or something - still not really clear on what's going on
<nkaretnikov> can i do something besides cloning the nixpkgs tree and forcing it to use that?
<clacke> where does my machine remember that it fetched something from hydra?
<sphalerite> hm, I started diffoscope this morning at 09:16 UTC. It's now 17:54 UTC and it's still eating 100% of one core. I feel like something might not be going right here..?
<ryantm> gchristensen: If you use `leaveDotGit` it calls something called make_deterministic_repo https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/nix-prefetch-git#L305 but judging by that issue, it probably doesn't completely work
<krey> tilpner: well, I need something to handle the json
<sphalerite> I'm trying to get a script working that will replace ubuntu on a scaleway server iwth nixos. It's working mostly, but I want to preserve the original SSH host keys, and ubuntu's sshd seems to default to sending ecdsa-sha2-nistp256 keys while nixos prefers ed25519, so after the OS replacement the client thinks something bad is going on. I've tried adding `HostKeyAlgorithms ecdsa-sha2-nistp256` to the
<jasongrossman> jbgi: A newer version, yes. Or do you mean a newer major version or something?
<elvishjerricco> Is there something for errors?
<cinimod_> mpickering or do you mean something else?
<sphalerite> I want to do something like make-system-tarball, but instead just copy the stuff over to a target host via SSH without the overhead of a big tarball each time
<Dezgeg> I believe you specify the ControlPath or something
<ldlework> like with an override or something?
<ldlework> A program uses /var/lib/foo as a datastore, there's no way to put something there?
<sphalerite> juhe: I'd probably create a simple wrapper package containing just the symlink. Something like (pkgs.runCommandNoCC "mount.diod" {} "mkdir -p $out/bin ; ln -s ${pkgs.diod}/bin/diodmount $out/bin/mount.diod") and stick that in systemPackages
<jD91mZM2> sir_guy_carleton: Try renaming the thing to vim-clipboard or something
<ldlework> I think maybe something is screwy with how nix generates the config
<ldlework> clever: it would be cool if you could somehow use nixops to nixos-install a laptop from usbkey or something.
<ldlework> Wonder if something went wrong.
<jtojnar> but makeDerivation complains "attempt to call something which is not a function but a set,"

2018-05-25

<{^_^}> If a Nix file ./foo.nix starts with something like `{ bar, baz }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<eacameron> `rm rootdisk.img` fails unless it's there. probably want to check if exists or || true or something
<clever> eacameron: line 150 will need to mount something else, and handle formatting it if its blank, then add a new drive to the qemu args
<eacameron> clever: I can open a PR for that if you like. Just making it a function taking `sshKeys:` list of strings or something
<samueldr> and in those it sets the full path... that's something that bothers me
<catern> hmm, is there anything in Nix to support building containers runnable with runc? using rootless containers, rather than something systemwide?
<judson> I can probably puzzle it out, but I wouldn't mind cribbing something to start.
<symphorien> yes but suppose I am building something from nixpkgs
<eacameron> This is kinda slow though. How can I do it very fast? I basically just want a way to force something to run on the remote
<eacameron> Maybe something like `writeFile` that forces a certain system
<MichaelRaskin> If you want to do something definitely not mainstream, read Nix manual before installing anything
<inquisitiv3> Wanting to learn something innovative and more "optimal" than the common practice. And I cant deny that I've a little inner hipster that feels like common distributions is little to mainstream :P
<gchristensen> on a more serious note, sometimes it takes time & effort to make something you need work
<cocreature> cheater: something like "nix-env -iA nixpkgs.haskellPackages.cabal-install". but if you are not on nixos you can also just install it some other way. it doesn’t matter
<clever> sqzlh: any time nix is downloading something, it has to keep the entire thing in ram, until the dl is done
<gchristensen> __monty__: can you paste the contents of /etc/bashrc and /etc/zshrc and /etc/profile.d/nix.sh? also, are there similarly named files nearby, like zshrc.backup or something?
<__monty__> Hmm, I ran a mac os system upgrade and nix-env has disappeared, is this a known issue? Do I just need to add something to PATH?
<tazjin> stranger___: you can just do something like `nix-env -i -E '_: (import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/staging.tar.gz") {}).vlc'` in your user environment to install it from staging
<stepcut> __monty__: if there is a link or something to the buildEnv technique, I am certainly interested in learning more. I am interesting in experimenting with this improved nix-shell workflow, but the buildEnv technique has promise as well. And, I may actually want to use a hybrid approach anyway. The packages we use from work do not change so frequently and need to be more tightly pinned to a specific version of nixpkgs
<__monty__> stepcut: Yep but that means you keep around the environment for every nixpkgs version you run nix-shell with. I was just suggesting how I achieve something similar to what you want, not trying to say it's necessarily better.
<stepcut> __monty__: normally it has something like, { nixpkgs ? import <nixpkgs> {}, compiler ? "ghcjs" }:, but I could default that to a different path..
<__monty__> Don't want to install the entirety of hackage just because I *might* need something : )
<infinisil> He thought it was required for something
<LnL> with 1.11 the build hook was something separate
<LnL> I think -iA also complains if the nam changes (conflicts) if you don't use something declarative
<crystalgamma[m]> bgamari: I see on github that you did some work on cross-building install images for ARM … is there something I can reuse for POWER?
<Plato[m]> nix complains that a path doesn't exist, but it does. I see that it's "something=some/path", but I have ~/.nix-defexpr/channels at the front, without "something=
<tazjin> that's sensible :) something like this should probably never be made the default anyways
<cheater> sphalerite: that may be common usage in nix, but in general it's a better rule to quote absolutely everything, rather than to always consider whether you should be quoting something or not
<GamingKitten[m]> Well, just to make sure I don't cause panic I want to make sure anyone reading this chat understands it's just my speculation. I just installed a new server and my pihole showed it making connections to an ethereum pool website. That's the reason behind my concern. But it seems reasonable to me that something is up.
<ldlework> Basically once I reboot into the machine, I want the user I login with to be able to start working on the source configuration in /nixcfg or something
<ldlework> Or is there something better.
<Myrl-saki> I'm doing something hacky with my stuff.

2018-05-24

<Myrl-saki> I should have done something like merge the 2 package sets together.
<Myrl-saki> clever: So basically, it's something that makes sense for package management.
<Myrl-saki> A path or something?
<clever> Myrl-saki: something fun i did 7 months ago: https://gist.github.com/cleverca22/60c46368afb999c16224fc17af5c538d
<__monty__> srhb: How is it zero magic? Just because you name an argument something it gets filled with the right value? It feels very much like J2EE dependency injection magic.
<elvishjerricco> I'm also a big proponent of Docs over Blogs. Every time I write a blog about teaching people something, I realize it should have been documentation in official locations instead
<clever> Peaker: only if your very naughty and search /nix/store/*/include/ will you ever find something you didnt ask for
<clever> Peaker: the paths are hashes under /nix/store/, and if you dont ask for something, you dont get its hash
<ldlework> clever: but somethings must go into your home directory
<ldlework> infinisil: oh then you change something?
<ldlework> there is going to be *something* unfamiliar with the solution whatever it is
<infinisil> Yeah such a read-to-A, write-to-B might work, but I bet it's gonna be wonky, because nobody expects to read something different than they just wrote
<ajs124> Hey, I'm trying to cross-compile something for arm on nixos right now, but can't manage to get a arm-linux-gnueabihf-gcc, etc. into my environment. Any ideas how to do this?
<Ralith_> if the test was failing under any of those, that means we're doing something wrong :/
<srhb> Have you guys ever tried to search for that thing called nix? Something thought it would be hilarious to name a whole suite of things something that's usually used for something related but entirely different.
<samueldr> it was announced, then they uh, did something wrong
<fragamus> I am trying to install cabal and ghc and whichever one I install first works and then when installing the other I get something like use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<tilpner> nix-channel is the standard solution, although edolstra wanted to replace it with something else for Nix 2 (IINM)