2018-01-07

<danl1240> i remember something about that
<dramforever> Maybe you have display card auto-switching? Something like optimus?
<Aleksejs> I have nm installed but I don't see an option to add VPN. Should I install openvpn or something?

2018-01-06

<LnL> jekor: it's possible something changed with a recent update, but that specific error does indeed sound familiar
<jekor> Sadly nix-darwin seems to be breaking something else (end up with packages depending on broken OS X 10.11 library with missing symlinks).
<macslayer> What do people use it for? Just a package manager that's an alternative to something like `pacman`, `yum`, or HomeBrew?
<bkchr> tilpner: if that works, wow! It is doing something, let's see what happens :D
<chreekat> oh, but there was in fact something that needed fixing?
<srhb> ewog: As in bump the upstream sources and numbers or something?
<jluttine[m]> Do i need to do something to enable keyboard for luks prompt at boot time?
<deltasquared> or just the proprietary software in general saying you need to do something and that's that ;)
<Lisanna_> fendor: keep in mind that discord is non-free software, so you might need to do something in here to get that to work: https://nixos.org/nixpkgs/manual/#sec-allow-unfree
<kim0> so in the monero folder .. there is a "default.nix" .. I should add a "nightly.nix" or something like that ?
<hyper_ch> you wanted something red :)
<srhb> bpa: Actually you might want to call it mySteam or something
<srhb> Okay, you'll want something like this
<Fare> yup, something is corrupted in nix-store
<yegortimoshenko> erlandsona: it's ok! i should learn to ask for nixos version first :-) it's not the first time i've tried to fix something that has already been fixed in a newer NixOS version.
<ryantrinkle> i have something defined as `blah = ./blah;`, but nix-build complains that it's not a derivation
<dhess> LnL: you are doing something similar with your nixpkgs-python, where you use the .toplevel attribute to whittle it down to just what you want to build
<dhess> I would love to know how to get a buildEnv to work with something like that release.nix though
<dhess> sphalerite: yeah I have something almost like that already, that should do the trick I think

2018-01-05

<dhess> easy enough to do but if there's already something there...
<dhess> is there something in lib or elsewhere that will take a list of derivations [ a b c ] and turn it into an attrset { "a" = a; "b" = b; "c" = c; } ?
<sphalerite> or libXcursor. Or something else involved
<sphalerite> Ralith: that's odd then, idk if maybe your window manager does something with it or anything
<Ralith> Linus: any idea why I might need this on some machines and not others? is it defaulted based on your connected displays or something?
<Alling> srhb: Yeah ... does "update" mean, like, sudo apt upgrade or something equally simple?
<magnetophon> I'm working on upgrading faust. When I compile something with it,I get "fatal error: alsa/asoundlib.h: No such file or directory". The wrapper script I use for that compile has the path to alsaLib in NIX_CFLAGS_COMPILE. any ideas?
<srhb> deltasquared: As in, using "nodev" or something like that and still having it populate /boot
<deltasquared> or something like that I dunno ¯\_(ツ)_/¯
<ison111> Is there something special I have to do to get Vulkan working on nvidiaBeta? If I run vulkaninfo I get VK_ERROR_INCOMPATIBLE_DRIVER. But I know this card works with Vulkan as I've played Vulkan games with it before on Gentoo.
<ison[m]> Is there something I need to do in my config to get Vulkan working with nvidiaBeta? If I run "vulkaninfo" I get the error VK_ERROR_INCOMPATIBLE_DRIVER. But I know this card works with Vulkan as I've played Vulkan games with it on Gentoo before.
<dhess> gchristensen: yeah they're high-density. I don't care about that, I just want something that's stripped down BIOS-wise
<macslayer> clever: srhb: I found out my issue. Something must have happened to the sound files (ALL of them, too!) when I copied it from my external hard drive to my new laptop. I played them directly off of the external hard drive, and there are no errors at all, but when I play the version that I have locally, they throw all sorts of errors and skip.
<dhess> I don't now much about it more than that to be honest, this is just something I read about for 20 min here and there before I go to bed :)
<dhess> srhb: as a first pass I figured something like that plus fuse integration with Consul would be a good start
<srhb> dhess: Hmm, now I'm wondering how to integrate it. Obviously you'd want to produce some templates with all the safe stuff in the nix store, and then in the systemd unit render it with vault or something.
<dhess> srhb: yeah this is why we need something like Consul integration. It handles all of that templating for you
<infinisil> the file gen.nix is generated with a script and contains something like { "foo" = "bar"; ... }
<Aleksejs> gchristensen: I've added user to wheel group but it still shows "user is not in sudoers file" when I'm trying to sudo something
<lejonet> srhb: that might be an idea, this is inherently something that maps really well to an attrset
<catern> gchristensen: Ralith: something like https://github.com/NixOS/nix/issues/1734 would help a lot with this
<catern> is nix-devel moderated or something? I think I sent a message to it but it hasn't shown up
<macslayer> So I'm going to install ffmpeg, and try to decode this FLAC file into MP3 to see if it's something wrong with the file
<macslayer> In Clementine and Audacious, they skip randomly, have random moments of silence, and sometimes pause altogther and won't continue playing. In MPV, though, it never pauses or skips, but makes little distorted noises at random, kind of like if you lightly scratch a record or something.
<deltasquared> please excuse me, need to sort something out.
<macslayer> clever: Oh gosh, is it just because it's a cheap Chinese adapter or something?
<macslayer> Yeah, I'm gonna copy deltasquared and say that it looked something like a black powder explosion.
<macslayer> srhb: Technically I think SATA is plug-n-play, right? So nothing would happen until the OS decides to access something on the disk, it would time out and fail. You could probably run quite a long time without your hard drive, assuming everything's already in memory.
<deltasquared> now that *is* one useful thing about nixos, if something borks generally you can rebuild in one go
<deltasquared> well in the meantime something else blew up anyway
<deltasquared> ok, let's try something else. is there a way to list dependenencies of a derivation (which the profile just appears to be... ish) just based on info in the store
<srhb> Right, but if you installed something as any user, I think you would get one in that profile
<deltasquared> I assumed something must be keeping the base system "anchored" as it were
<srhb> deltasquared: I'm not sure I can give an exact answer, but something to the extent of telling you which packages were installed into the profile of the current user with nix-env
<hyper_ch> makefu: wanna test something?
<deltasquared> something like a --root option I would assume...
<deltasquared> linux isn't directly in the installed set? what.. so something is pulling it in surely because I can see it there in the store...
<srhb> So something funny is happening in blas64
<srhb> Alling: I do think something is wrong here.
<magnetophon> I'm working on upgraing the faust pkg, and it compiles and runs. When I try to compile something with it, pkgconfig complains about missing sndfile. faust already had libsndfile in the pkg at the previous version. Any ideas?
<deltasquared> interesting, the boot.initrd.availableKernelModules option appears to be assigned twice.. is there some default to concatenation if you assign a list to something that's already a list? (also, pointers to whereabouts in the docs the explanation for nixexprs is hiding would be cool)
<disasm> samae: I did something like this to create the container: https://drewstud.com/centos/systemd/nspawn/systemd-nspawn/centos7/containers/2015/04/18/systemd-nspawn-centos-7.html then copy that to /var/lib/machines and then added that gist snippet for defining systemd-nspawn in configuration.nix
<srhb> I guess it's really the gc roots or something?
<gchristensen> https://github.com/NixOS/nixpkgs/commit/8562538f1f7d75a9c4fb1a9c32e2fb0f790f2249 it seems like something like that should work :/
<deltasquared> nice, the main system is just a tmpfs with only the nix store mounted from the CD. I had always wanted to do something like that with arch.
<gchristensen> something close to that should work :P maybe drop the last )
<FareTower> mpickering, I suppose the tezos build scripts and/or opam on nixos are confused by C libraries not being "just available" in /usr/lib or something.
<dhess> but as I tinkered with dscl to figure out all the right magic, something went majorly wrong.
<dhess> assuming that I: a) have installed Nix via the new multi-user installer, b) then installed nix-darwin (and got the warning), and c) am installing something like your examples/hydra.nix config
<dhess> LnL: ok it's installed, so now I just put something like your hydra.nix example in ~/.nixpkgs/darwin-configuration.nix and `darwin-rebuild switch` ?

2018-01-04

<codedmart> I did a haskellOverride in ~/.nixpkgs/config.nix. When I use that package in nix-shell I am seeing this `warning: dumping very large path (> 256 MiB); this may run out of memory`? Is there something I am doing wrong? Is that a problem?
<srhb> Then something else is just master.
<srhb> Must be something in your config.
<shlevy> OK, got something that works
<Sonarpulse> shlevy: yeah probably gonna do something like that
<shlevy> Sonarpulse: as a quick fix can we resurrect findInputs as findInputsOld or something?
<andromeda-galaxy> I just started trying out nix 1.12 on a NixOS machine. In the new 'nix build' command, is there a way to build an attribute of the current directory's default.nix without having to specify -f.? ''nix build' tries to build the entire contents of default.nix, and 'nix build foo' tries to build foo taken from.... something somewhere in nixpkgs or something? I can't quite tell. AlGenerally, are the
<joepie91> Lisanna_: anyway, if it's *just* for Nix builds then /tmp and /nix should be sufficient, if it's something like a Hydra server backed by PostgreSQL then you may want /var on the SSD as well since iirc that's where PostgreSQL's data files are stored
<gchristensen> maybe you could use Forbidden Functions (ie: slow) to do it, like `splitString` (or something) and then there is a function in lib/attrsets.nix which can take ["foo" "bar" "baz"] and get pkgs.foo.bar.baz
<tilpner> (But pkgs."${something}" works too
<mpickering> it doesn't seem to work unless I am doing something wrong
<samae> srhb: you're right, I could maybe build something on top of chrootenv
<deltasquared> something tells me you wouldn't want to delete *everything* in there...
<BlessJah> Synthetica: something, something, qt libs handling broken, something, something
<gchristensen> niksnut: sorry, false alarm, something went weird for a minute.
<joko> ixxie: I have something like pkgA/share, pkgB/share, where pkgX is the nix store path. I would like to have a metapackage (?) or so, so that I place symlinks of the share dirs inside pkgMeta/share... Hope it's more understandable now
<aminechikhaoui> gchristensen: you guys planning on sending something about the spectre/meltdown thingy, for instance I don't know if the kernel patches that are available so far are backported to all LTS versions or certain and if that's applied in nixpkgs or not
<infinisil> vaibhavsagar: I was thinking about something like this: https://git.io/vNvcV
<ertes> fearlessKim[m]: nix uses it to determine whether it's a new derivation, which is something i find useful
<samueldr> unless you had something more specific you wanted to know, _alice_
<samueldr> yeah, that's something that may hamper some documentation effort... once you know enough, it sometimes is just as easy to look at the nix sources :S
<_alice_> I used to use Arch for like 4 years. I ran into spooky bugs I couldn't google like this a couple times a week and I usually had to do something hacky. First problem I've had got fixed in minutes, thanks guys
<samueldr> I may have misunderstood something, that's all informations that seeped in my brain through leisurely reading the chats during the past weeks
<samueldr> what I mean is something like that: `scw attach $(scw start $(scw create --commercial-type=C1 -e "boot=rescue INITRD_DEBUG=1" Arch_Linux))`
<MP2E> I heard something about it being in 4.14.11, but I don't know if that's true, lscpu doesn't seem to indicate that it is mitigating a bug

2018-01-03

<dhess> dan_b`: oh I was hoping someone would do something like that!
<tilpner> And something does syntax checking, but I forgot which plugin that is
<phdoerfler> does vim have some nix plugin or completion thing or something?
<dhess> there's no way to get release-lib.nix to see buildEnv's, is there? Because of the runCommand or something?
<deltasquared> when I say programming is my strength, I realise it's *imperative* programming that I really mean... something like nix comes along and contorts my brain into strange shapes.
<deltasquared> macslayer: perhaps, but nixos's concepts are something I've come to realise I really need, namely declarative configuration, among others.
<deltasquared> as long as I don't end up with gentoo-like compilation times for something big. thankfully the one "big" app that I use routinely (firefox) does mercifully have binaries cached. I'd expect it to be, it's popular enough
<deltasquared> side note, are there sources for the nix manual or something anywhere? It'd be handy to have offline to read while tinkering
* deltasquared mutters something about low level langs almost always being imperative and ducks
<deltasquared> did I do something wrong? :/
<deltasquared> (it's certainly something other package managers do trivially, but I admit that's somewhat apples and oranges)
<deltasquared> there doesn't seem to be something like a "package info" command anywhere in the man pages. perhaps I'm just-
<deltasquared> is there anywhere I can look on a nix installation that would yield short descriptions of available packages, or would I have to go look at the expressions on github or something
<phdoerfler> is there a `map entriesOf(mySet) "this is a line in the bash script for ${entry}"` or something like that?
<macslayer> I can't remember exactly why I left, I think it had something to do with my usage of `dwm` (along with the other suckless tools) at the time, which required compile-time configurations.
<vcunat> you want overrideAttrs, unless you do something really special, I think
<infinisil> something like that
<infinisil> deltasquared: there is actually something to wrap binaries in a normal FHS user env if they can't be made to work otherwise
<infinisil> deltasquared: VirtualBox works pretty well, and the thing with nix is that once something is packaged, it's pretty much guaranteed to run well forever
<schoppenhauer> srhb: is there something like pip2nix too? because I don't really know where all the python libraries go, and the package I want is a python-package that can be installed via pip. it is fibonacci-heap-mod.
<i-am-the-slime> Maybe it's just a matter of a symlink or something.

2018-01-02

<LnL> ebzzry: don't get it, maybe gchristensen notices something stranage
<chrissound> tilpner, not too sure where to add that to. I'm pretty new to Nix - should I be reading something under the manual?
<codedmart> lejonet: Do I need to pass something to callPackage? Or something else. I never remember what to do and every time I google things seem out of date or changed.
<lejonet> srhb: will give you a holler once I've actually got something that doesn't throw errors or explosives at me :)
<lejonet> But I haven't commited the services ceph.nix yet tho, because I want something that might actually work for the first commit, so that it isn't 98234 tinneh commits to squash in the end :P
<lejonet> then I'll have something to fiddle with to get something that works, that I can send a PR for
<srhb> lejonet: Right, but activating it really is as simple. You'll have something like mkIf for every OSD (obviously something nicer that maps over an attrset or something) that sets systemd.service."ceph-osd@{config.somevar}".enable = true
<lejonet> because the "hacky" way is to just define the service in a variable and then do systemd.services."ceph-osd@${someConfigOption}" = defaultCephOsdService; or something like that
<lejonet> srhb: well, they do "Just Work"^TM but they need something after @ that populates the %i variable :P
<lejonet> codedmart: most likely the package is called something without a - in the name
<tilpner> TonyTheLion - Something like name = "result-${version}";, where version is debug or release. result is a pretty bad name though...
<TonyTheLion> is there a way to rename the output of a derivation from 'result' to something like 'result-release', and then have multiple outputs with different names?
<TonyTheLion> so if I have 'inherit meson', can I do something like 'inherit meson --buildtype='argfromnix''?
<willprice> Something I could run in CI
<Ankhers> gleber_: When you have a bit of time, can you help me figure out why `make repl` fails in https://github.com/ankhers/nix_beam_test? I wrote that shell.nix file myself, so it I probably did something wrong.
<makefu> purging something once in a while is far from declarative
<FRidh> bennofs: thanks. I'll need an override in something like nix-daemon.service.d then
<deltasquared> say, any of you lot come up with something to just glue a bunch of fstab fragments from various places? would help grouping up stuff I have
<deltasquared> something along the lines of I'd have to jump through hoops to make it not do anything, and then let me write my own boot config
<deltasquared> day x^n of me trying to get something nix-like out of a traditional distro... programs just can't seem to leave /etc the fsck alone. found systemd shipping tmpfiles configuration which clobbers files in /etc at every boot, including mtab... which wasn't interacting so well with /etc being a symlink. oh vey.
<makefu> phdoerfler: you do not even need this, 1 sec i prepare something
<phdoerfler> something like that?
<phdoerfler> makefu: Ultimately I want to make a little bash script to call maildirlock before rsnapshot does a backup, so this needs to be something that can be scripted
<phdoerfler> It's something something command-not-found nix-locate and it uses some index made by hydra to tell me the package, IIRC
<samae> Hopefully it's something stupid i've overlooked
<Boomerang> Hydra fails to build something because it runs out of disc space. The machine that it is scheduled to build on has plenty of space. I have managed to manually build the nix closure onto that very same machine. It does require a lot of disk space (>30GB). I assumed that Hydra would simply pick up that it's already built, but it doesn't seem to be the case. Any pointers to fix this? :)
<hyper_ch> some funny name... luaffs or something
<globin> hyper_ch: have you got a commit or something I could look at?
<TonyTheLion> I was creating a .tar.gz of my repo and then untarring into the tmp build directory nix creates when it builds something
<tilpner> makefu - That's something else. toString is used here to not copy it to the store, while TonyTheLion wants the opposite
<makefu> maybe you can use something similar
<loke> Ohh! I've been looking for something like that.
<samueldr> not sure if at all needed, maybe I missed something, but this way, my overlays set in `nixpkgs.overlays` wherever in my config are all automatically used
<samueldr> I have worked out something this week-end, I need to get some comments
<pjan_> "cannot easily be reused" -> is that something that is nixOS specific? I'm using this on OSX, and in both cases this means copying/cloning files into the right directories
<dhess> maybe it has been updated since then and something broke
<dhess> pjan_: if the config.nix you're talking about is in /etc, and you want this to be system-visible and not just visible to your own user account, you will need to add something like 'nixpkgs.overlays = [ (import ./path/to/your/overlays) ]'
<TonyTheLion> or is there something I'm missing?
<jtojnar> TonyTheLion: something like that is used by the mozilla overlay https://github.com/mozilla/nixpkgs-mozilla

2018-01-01

<clever> so it could look something like this
<phdoerfler> speaking of which: this (mb2md) really is a tool that is only needed for one single user. How do I turn a nix file containing a package override into something that can be used with nix-env -i?
<phdoerfler> clever: then something else is amiss that I am not seeing. I placed my .pl.gz next to the nix file. But when building, nix creates a "setup" file in some directory in the store but does not place the .pl.gz next to it. This setup file which seems to be a bash script then fails to find the .pl.gz
<phdoerfler> I looked in the docs where fetchurl was mentioned looking for something like this but failed to see / find it
<fahadsadah> to find it's something daft like xorg not opening in focus :p
<gchristensen> I wonder if some simple fixes could make it more reliable: make the resolution bigger for the OCR, simplify the startup to only run like xterm or something, maybe with a large font
<cinimod> I am guessing that the below means that `us` depends on something called `jellyfish`
<cinimod> No I just realised I had to do something there
<dhess> I wonder if Dezgeg has something for this for his Hydra :)
<dhess> so maybe I should just pull that release-lib.nix into my repo, and add a hack for this case, like a .armv7l-bbone-linux or something where I can override the platform
<dhess> I guess that's something to consider, how I could take one of those release-lib.nix functions and adapt it to take the platform.
<LnL> currently the release-libs only use system, sounds like you want something that also supports the platform argument
<elvishjerricco> dhess: I'm not sure, but I _think_ it might have something to do with the environment variables visible to the daemon. Do you know how to set those?

2017-12-31

<clever> samueldr: if you run something like this on the release.nix file, you will see what hydra does behind the scenes
<yegortimoshenko> happy new year! i'm taking a break until 2018-01-04, but do ping me if something's urgent.
<sphalerite> makefu: yeah but it's not something you want to do by default I'd say
<sphalerite> `ip route add default via 10.123.45.67 dev tun0` or something
<angerman> I think I've commented on something on the cabal issue tracker about that.
<Sonarpulse> clever: yeah we need $import or something
<clever> dhess: try something simpler, like hello in the nix-repl first
<jb55> jeaye: if you want to "install" something from your configuration.nix, you probably want to add it to your environment.systemPackages ?
<__monty__> jb55: Oh, it gets the names in packages from the haskellPackages of course. I was thinking something eles.

2017-12-30

<srhb> Turion: You will need something like... cabal-helper = overrideCabal super.cabal-helper (drv: { src = pkgs.fetchFromGitHub { ... }; buildTools = [ self.Cabal_1_24_2_0 ]; })
<Turion> srhb: Haha no worries, and thanks for your help so far :) The two things I want are: 1. An updated system 2. Writing a nice solution, submitting it as my first PR to nixpkgs and learning something about nixos in the meantime
<Turion> __monty__: I can understand we wouldn't want to depend on stackage. But something in this issue (#32969) is still wrong. Shouldn't the cabal build process just fail and say that the required version of Cabal (library) could not be found? (Instead of this weird type error?)
<Turion> srhb: As soon as nixpkgs' cabal-helper is updated to 0.8, the fix is obsolete. How can I do something like "if the version is <0.8, apply the fix, else don't"?
<srhb> So you want something like...
<Turion> srhb: Then something else in the later process incorrectly selects Cabal-2
<vidbina> FRidh: are there any red flags you notice when you look at the package. This is my first addition so I may have done something noobishly stupid. Would appreciate any feedback.
<maurer> globin: I'm curious what you're referring to (since I heavily use rust on nixos) - are you talking about mozilla's overlay? buildRustPackage? Or something new I don't know about yet?
<JosW> But this is a bit more complex, but will pervail because I believe/feel Nix is something special
<joepie91> so there's clearly something going wrong there :P
<JosW> "But every so often, I like to see something different—something that might remind me from where I came. That’s exactly what happened when I came into NixOS. To be quite honest, I had assumed this would be just another Linux distribution that offered the standard features, with the KDE Plasma 5 interface. "
<samueldr> the other does *something* with the attribute set, mapping all packages that are also attributes deeper into the set, and then checks the `.name` attribute on each package
<LnL> that works, but I don't know of something like that for overrlays
<andromeda-galaxy> LnL: I saw that you were doing something fancy with toplevel, do you know how to do ^?
<dhess> LnL: That's interesting. I was trying to figure out how to do something similar with my set of overlays to expose them as a sort of top-level "all-packages.nix", as well.
<infinisil> sphalerite: how about some program to factor primes or something like that
<sphalerite> anybody got any suggestions for something fun to run on a machine with 64 cores and 256GB of RAM while I still can?

2017-12-29

<sphalerite> and more on-topic: can I disable use of remote builders on a per-build basis, i.e. using a command-line flag for nix-build or something?
<LnL> might be something from the time nixos was in a separate repo
<sphalerite> of something on NIX_PATH
<LnL> most notably the authorized_keys in your case, the nix commands are probably not in your path when you do something like ssh mac1 -- nix-store
<LnL> elvishjerricco: something in here might help https://gist.github.com/LnL7/248b0e2ab53ba01ac93b062a5f29b459
<elvishjerricco> Is there something else I have to configure?
<FRidh2> boegel: something like https://repology.org/ ?
<infinisil> bkchr: something like { audaciousSrc ? fetchurl { ... }, audaciousPluginsSrc ? fetchurl { ... }, mkDerivation, lib, ... }
<steveeJ> from wanting to convert my linkedin profile to a CV, I'm now on to patching patchelf because it can't handle go binaries /o\ something must change
<clever> loke: you might be able to do something with the #!/usr/bin/env nix-shell stuff, so the bash wrapper becomes an entire nix-shell wrapper
<clever> name = "something";
<JazzyEagle> I thought it'd be something like nix-env -iA haskellPackages.cabal, but every derivation I can think of is causing one error or another.
<loke> I have a piece of software that I want to build from source. The source does not use the configure&&make dance, but has its own scripts. It also installs into /usr/local by default, but there are some flags I can use to change the install directory. Is there an example nix build file somewhere I can look at that does something similar?
<clever> is it something you just add to $PATH?
<samueldr> though, if it can't this should be fixable, but don't know if it's something that would be backported to 17.09, give me a short while, while I sort this out
<jeaye> Something like (builtins.zipmap my-keys my-vals)
<globin> c74d: so something must have gone wrong while updating the channel

2017-12-28

<Yaniel> unless you are building something that uses meson, which in turn does require pkgconfig to work
<LnL> I'm always impressed by nix when I change something on this deployment I almost never touch
<samueldr> (I was bit by that two days ago, I was frantically trying to get something to show up in a folder, and it didn't, because it already did in the right location)
<samueldr> (now, that's something I do not actually know for sure)
<atomicbeef> yeah I was wondering if something like nox existed
<atomicbeef> doing something like nix-env -qaP irssi takes about 5 seconds on my machine
<atomicbeef> so when I have to recreate something I don't spend hours trying to figure out how I solved a problem a year ago
<jtojnar> yegortimoshenko: could bubblewrap or something like that be used instead of chrootenv?
<clever> marek: i have something very similar
<{^_^}> marek: i have something very similar
<marek> is there a tool for automatic nixos installations upon boot? I'm looking for something similar to Fedora Anaconda, where I build an bootable usb with instructions and all I have to do it to boot it up and it does the restore of the entire configuration automagically
<{^_^}> is there a tool for automatic nixos installations upon boot? I'm looking for something similar to Fedora Anaconda, where I build an bootable usb with instructions and all I have to do it to boot it up and it does the restore of the entire configuration automagically
<domenkozar> I guess that's something terminal also has to implement
<infinisil> I'd like to use nix's cached haskell packages, and i think i need to use pure cabal for that and haskellPackages something
<NickHu> Is there a way to evaluate path strings like ${zlib.out} from nix-shell or something?
<gchristensen> ok, then, can you paste your full config? something is funny here :)
<boothead> Hi All, has something changed in how haskell packages are generated? You used to be able to override versions with package = super.package_N_N but the underscore versions no longer work..
<infinisil> gchristensen: Oh nice. But I thought more of something dynamic. E.g. `!facts foobar Some fact about foobar` to have a fact about foobar
<infinisil> nix_newb: something like this: https://git.io/vbFr0
<infinisil> willprice: It seems to have something to do with cross-compilation, actually not sure myself. It could be that `ar` is available in another package
<loke> I don't want to ask here every time I get stuff with something like that.
<Orbstheorem> Hello, I have a command, call it cmd\_a. cmd\_a wants to read /etc/some/file, call it file\_a. file\_a contains secrets and I'd like to avoid creating it. Is there anyway to “mask” file\_a with a fd (or a tmpfile) so that only cmd\_a can ever access this data? Ideally, I'd like to run something like
<infinisil> nix_newb: not sure how it combines with luks, but this mount option can do something like you want i think
<infinisil> loke: oh and if you're not using home-manager, that line would go into extraSessionCommands or something like that (~/.profile would work too i think)
<jtojnar> hyphon81: are the test failures on Python 3 something that cannot be fixed?
<jtojnar> hyphon81: the name would be something like python2.7-PyYAML, the name which would be used to store the package in nix store /nix/store/dsfa8r8hzw5hkmjsz5l3hw71rj2bz0ak-python2.7-PyYAML-3.12

2017-12-27

<pbogdan> assuming I have something in / that fails to stat()
* hodapp considers breaking something in his otherwise-working-fine NixOS configuration so that his learning doesn't stop
<LnL> then you can call cc to compile something, etc.
<nschoe> Do I need something else?
<samueldr> anybody here with an ASUS laptop wants to check something?
<infinisil> Alright what the hell, something's wrong with nixops, because this module gives me infinite recursion: https://git.io/vbd5z
<infinisil> akfp``: xset dpms something
<gchristensen> if they wanted to drop mysql they should have dropped mysql, not made mysql something else
<srhb> sphalerite: I suspect this is file system related or something. The error is so weird...
<srhb> moet: Something like this: http://nixpaste.lbr.uno/WY7aOtmg
<srhb> yegor already tested Steam on his setup with the chroot changes, so something is... Different.
<gchristensen> Lisanna: no, but you don't hear people talk about it unless they're doing something fun
<xplorer> in /etc/nixos/configuration.nix you have something
<newb_nix> is there something like build-essential
<xplorer> can be something wrong with patchelf --set-interpreter / --set-rpath ?
<JazzyEagle> Then perhaps I'm doing something wrong. I should probably try again in the morning. I can't think very well now.
<makefu> sometimes you will unfortunately have to read the source code of the options to understand what is going on or why something does not work as you expected. nixpkgs reside on github at https://github.com/NixOS/nixpkgs
<moet> but the build fails with almost the same error, indicating the patched range (evidence that the patch was applied, and something else is weird with the build)
<pikajude> as usual, i've done something stupid
<yegortimoshenko> but not when i was breaking something for someone else.
<yegortimoshenko> or rather, i did, when someone broke something for me.

2017-12-26

<gchristensen> anyone seen any excellent english-language technical presentations? I'm looking for something to watch.
<ixxie> symphorien: whatever it is doing, its taking ages (I guess this is an upgrade to unstable and all the tests need to be run or something)
<deltasquared> trying to do something similar to nix with arch linux's packages, just installed without root to a prefix then overlayed with a generated /etc, but it's just not designed for it... I give up. I guess if I wanted nix-like perks there was only one place I was going to get it.
<Yotam> Still not working, maybe I',m missing something in my NixOS?
<bennofs> ixxie: put them in /etc/secrets or something and `builtins.readFile` at appropriate places? Note that passwords may end up world-readable in the nix store though
<cinimod> joncfoo: There must be something that I missed but I already have a copy of nixpkgs
<laggy_wifi> or even something simple as a module that just creates, loads, then updates a configuration file from say /configfile
<hyper_ch> nixos is compiling something
<iqubic> Is this something I have to do in the GUI.
<samueldr> but yeah, package sources AFAIK mostly use the one upstream source, in the event something happens to the source, well it's toast
<iqubic> is that good enough, or do I need something more?

2017-12-25

<LnL> I'm guessing buildVimPlugin does something weird with the phases
<sphalerite> maybe a graphics driver issue or something
<samueldr> in case there's no magic to do it, sphalerite, with cached failures, and maybe something like gnu parallell you could at least build a bunch and *then* bisect, which will fail early with cached failures?
<sphalerite> I'd like to do a bisect on vdrift to see when it broke and have a bunch of CPU cores, but it doesn't build in parallel without a patch… does anyone know a way to do a parallel bisect (i.e. build 20 revs at once) or something?
<chreekat> (in other news,) why can't I `man groff` after `nix-env -i groff`? I see there's a separate drv in the store for groff docs.. is something wrong with the package definition?
<neonfuz> sorta wish it would try again or something
<simpson> No, seriously. I suspect that you're doing something silly like calling gcc from outside stdenv. Stop it.
<laggy_wifi> for example, "patchelf-static --print-needed /lib/ld-2.26.so" will return nothing and hence attempting to set rpath on it can potentially result in a corrupted library and should not be attempted, else if it returns something then rpath can be modified without risk of library corruption, correct?
<jeaye> Are vim plugin builds sandboxed differently or something?

2017-12-24

<ison[m]> lol, now it works for my other account. Seem like running it as root once did something
<hellrazor> or something is missing
<thoughtpolice> bgamari: Not OTTOMH, I'm afraid; you'd do something like overrideAttrs on the whole set I believe
<jeaye> Is there something I need to do other than add my plugin name to vim-plugin-names, add the generated expression to vim-plugins/default.nix, and add a file under additional-nix-code?
<jeaye> yegortimoshenko: It's easy to see how something like that could pick up. The larger issue is moving people off of it now that there are saner solutions.
<yegortimoshenko> jeaye: but guile scheme is much worse than nix expression language semantics, it should be something like lazy racket
<ottidmes> I am trying to pinpoint what is available for sure during nixos-install. I fixed some issues I had with it, but I want to fix something else, for which I need grep, but I am not quite sure if I can expect this to be available
<neonfuz> like should I make an overlay instead or something
<neonfuz> I thought it tried to detect or something?
<infinisil> ControlMaster no and ControlPersist no is needed in case you set these options to something different in ~/.ssh/config
<asymmetric> aminechikhaoui: i'm not on nixos and i don't have that program installed.. is it something you get separately?
<juhe> Hello, is there a way to include binaries/symlinks/files in general into initrd somehow? Something like BINARIES/FILES in mkinitcpio.conf file from archlinux distribution. I wan't to assemble lvm cache and it seems to require cache_check from thin-provisioning-tools package which is not present in initrd image.
<edef> it has a few deficiencies, i can't just open up a .o without making it into a dylib or something
<acarrico> Huzzah! I'm off the LiveCD and onto disk. If I want to change the mount options (or something else) from hardware-configuration.nix, should I just copy the definition into configuration.nix? That is unclear in the installation manual.
<vod> is there an API doc for lib? I see lots of comments in the code, is that it? ie, if i want to see functions in lib.strings i need to open the source and read it? or is there something easier available?
<samueldr> this makes `import <something>` equivalent to `import /nix/store/...-something`
<samueldr> but if you did something similar, it would resolve to the /nix/store path of the channel