gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<sgillespie> gchristensen: not for me
jcb_ has quit [Quit: Page closed]
jcb_ has joined #nixos
astiles has quit []
mahalel_ has joined #nixos
Fare has quit [Ping timeout: 256 seconds]
ertes has quit [Read error: Connection reset by peer]
vidbina has joined #nixos
ertes has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
bennofs has quit [Ping timeout: 240 seconds]
<sgillespie> I'm a wee bit confused about let expressions, also
jcb_ has quit [Quit: Page closed]
<sgillespie> Can I not have a let inside a configuration block?
galdian has joined #nixos
goibhniu has quit [Ping timeout: 256 seconds]
<galdian> Can package overlays only be installed imperatively?
pkill9 has quit [Quit: WeeChat 2.1]
astiles has joined #nixos
viric has quit [Ping timeout: 264 seconds]
page has quit [Ping timeout: 260 seconds]
<akfp> tilpner: one-liner API-based boot of nixos on hetzner cloud git@github.com:alexanderkjeldaas/nixos-kexec based on your code
astiles has left #nixos [#nixos]
galdian has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b23c4d7c6a5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
jackdk has joined #nixos
telent has quit [Ping timeout: 246 seconds]
dan_b has quit [Ping timeout: 240 seconds]
iqubic has joined #nixos
Arcaelyx_ has joined #nixos
silver_ has joined #nixos
Arcaelyx has quit [Ping timeout: 240 seconds]
silver has quit [Ping timeout: 248 seconds]
vidbina has quit [Ping timeout: 240 seconds]
coot has quit [Quit: coot]
page has joined #nixos
viric has joined #nixos
Arcaelyx_ is now known as Arcaelyx
galdian has joined #nixos
<galdian> I want to be able to have multiple machines with the same package overides and include the packages from them in the system environment?
jrolfs has quit [Quit: WeeChat 2.0]
jperras has quit [Ping timeout: 240 seconds]
acarrico has quit [Ping timeout: 256 seconds]
<acowley> Does anyone have any words of wisdom for working with bazel under nix? I'm finding it excruciating: it seems to work very hard to specifically counteract things nix does (e.g. it clears environment variables), and the build configuration for a project is spread indiscriminately across various templates in various directories.
blonkhart has joined #nixos
zybell_ has joined #nixos
jperras has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
srdqty has quit [Ping timeout: 246 seconds]
sgillespie has quit [Quit: leaving]
daveo has joined #nixos
iqubic has joined #nixos
jrolfs has joined #nixos
srdqty has joined #nixos
<mahalel_> hey all, so i'm still a bit of a noob with nixos, i'm slowly building my configuration.nix file but am wondering, how can i declare configs for packages (such as my i3 config, urxvt) inside the .nix file ?
<boomshroom> mahalel_: Do you want these configs globally, or user specific?
<gchristensen> you can do someething like services.xserver.windowManager.i3.configFile = pkgs.writeText "i3config" ''your i3 config'';
<dhess> gchristensen: if I recall there is a URL somewhere that publishes all the pushed channels git revs.. for example, all the revs that updated the nixos-unstable-small channel. Where is that?
<gchristensen> dhess: https://channels.nix.gsc.io/
<dhess> gchristensen: ok thanks. Is the number in the 2nd column an epoch time or something?
<gchristensen> it is the date of the commit, but should probably be the time it was bumped instead to be more useful. if I make this change, it would be stored in a different file instead of changing the format of that file.
sigmundv__ has quit [Ping timeout: 240 seconds]
simukis_ has joined #nixos
<daveo> is there a way to ldd/patchelf binaries automatically in nixos?
simukis has quit [Ping timeout: 240 seconds]
simukis_ is now known as simukis
sigmundv has quit [Ping timeout: 248 seconds]
ericsagnes has joined #nixos
jackdk has quit [Remote host closed the connection]
jackdk has joined #nixos
astiles has joined #nixos
acarrico has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astiles has quit [Ping timeout: 240 seconds]
ryanartecona has joined #nixos
galdian has quit [Ping timeout: 260 seconds]
zybell_ has quit [Ping timeout: 248 seconds]
asuryawanshi has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
lord| has joined #nixos
lord| has quit [Client Quit]
lord| has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
markus1199 has joined #nixos
<ihar> is there a way to create an empty directory on the system? I need /exports/ for my nfs share.
mbrgm has quit [Ping timeout: 246 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
markus1189 has quit [Ping timeout: 240 seconds]
Supersonic112 is now known as Supersonic
mbrgm has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
zybell_ has joined #nixos
xcmw has joined #nixos
nur0n0 has joined #nixos
jrolfs has quit [Ping timeout: 240 seconds]
<mahalel_> boomshroom sorry was afk, globally is fine
iqubic` has joined #nixos
iqubic` has quit [Remote host closed the connection]
<boomshroom> mahalel_: i3 lets you set services.xserver.windowManager.i3.configFile to set the config file and it can be generated with other functions.
<boomshroom> mahalel_: I personally don't use those mostly because I'd rather have user configuration stay in the users home.
iqubic has quit [Ping timeout: 276 seconds]
<day|flip> i'm with ya with user config should stay with users home. so far for me. I only had to touch simple terminal config due to how it compiles its setting and color scheme.
ericsagnes has quit [Ping timeout: 240 seconds]
fragamus has joined #nixos
lord| has quit [Quit: WeeChat 2.1]
lord| has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
jon_ has joined #nixos
<mahalel_> right
<mahalel_> so push my .nix config to github along with my home folder configs
<mahalel_> is the way people go about it?
<mahalel_> how do you go about configs that live in /etc/ normally?
justan0theruser has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
daveo has quit [Ping timeout: 240 seconds]
<ihar> mahalel_: everything under /etc/ is managed by nix
sir_guy_carleton has joined #nixos
<ihar> mahalel_: if there is something custom to your setup that nix doesn't know about (for example, I have custom vpn system connections for NetworkManager specific to my work), you can set environment.etc."file/path.conf".text and dump desired file contents in the same configuration.nix file
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
xcmw has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
ericsagnes has joined #nixos
<mahalel_> thats interesting ihar, i'll look into that
jperras has quit [Quit: WeeChat 2.1]
logand` has joined #nixos
logand has quit [Ping timeout: 248 seconds]
daveo has joined #nixos
<fearlessKim[m]> anyone noticed pypi problems ? when rebuilding I get "Download error on https://pypi.python.org/simple/pytest/: [Errno -2] Name or service not known -- Some packages may not be found!"
nuncanada has quit [Read error: Connection reset by peer]
rain1 has joined #nixos
kerrhau has quit [Ping timeout: 256 seconds]
daveo has quit [Ping timeout: 248 seconds]
<jasom> I'm having trouble with lyx; it can't seem to find any of the *.cls files so I can't compile any documents
ertes has quit [Ping timeout: 248 seconds]
judson has joined #nixos
<judson> bcc is amazingly fussy.
<judson> I mean, not surprising, since it really needs to build against the running kernel
<judson> But it makes it tricky to develop against.
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
nur0n0 has joined #nixos
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/fad125262b7 (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
<adisbladis[m]> Judson: I did some stuff with bcc a few weeks back. Ended up wrapping gcc and compiling my ebpf code in the systemd unit
zybell_ has quit [Ping timeout: 264 seconds]
AluisioASG has quit [Ping timeout: 265 seconds]
Wharncliffe has quit [Quit: Lost terminal]
* judson cocks head in confusion
<judson> In... systemd?
<adisbladis[m]> Judson: Compile the ebpf code in ExecStartPre
<judson> Huh.
<judson> What I'm fiddling with is a small variation on trace.py for Go programs. (Turns out basing your calling conventions on Plan 9 has consequences. Who knew?)
AluisioASG has joined #nixos
<judson> I can definitely see cases where you'd want eBPF stuff run under systemd, and building it in the unit itself makes sense.
<judson> But it absolutely has to be the system channel for Nix, because otherwise there's a drift of the kernel version.
asuryawanshi has quit [Remote host closed the connection]
<judson> I'm running `nix-shell -p python27 cmake llvm flex bison clang` and then `which c++` => /nix/store/gqg2vrcq7krqi9rrl6pphvsg81sb8pjw-gcc-wrapper-7.3.0/bin/c++
<judson> Which is making cmake mad.
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b23c4d7c6a5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
iqubic has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
<Ralith> Judson: to control the C++ compiler used, you need to set the stdenv, not just bring in a package
<Ralith> no idea if there's a concise way to do that with nix-shell
<judson> In other words `nix-shell -p ...` isn't going to be enough? I need a real shell.nix?
<judson> I tried hacking around it, but ultimately, I'm just trying to use my installed BCC.
<Ralith> there's probably some esoteric incantation but a shell.nix is what I'd do
Fare has joined #nixos
<judson> :)
<Ralith> saves time in the future and helps with reproducibility when you put it in version control, anyway
<judson> That's true.
<judson> Most of my projects, I do that.
<judson> I've started using -p especially when I'm just building a patch.
iqubic` has joined #nixos
<iqubic`> :bd
iqubic` has left #nixos [#nixos]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/50c0a4c880b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
iqubic has quit [Read error: Connection reset by peer]
t667884 has joined #nixos
<Ralith> `nix-shell -E` exists but I have no idea what its deal is
<boomshroom> Ralith: nix-shell -E will evaluate a given expression and gives you an environment equivalent to what would be used to build the package the expression evaluates to.
<Ralith> boomshroom: ah, mine wasn't working because of course you have to give a derivation a name, even if it's a throwaway
<boomshroom> Ralith: `nix-shell "<nixpkgs>" hello` = `nix-shell -E "(import <nixpkgs> {}).hello"` Except there's more you can do with the full Nix syntax.
<Ralith> Judson: `nix-shell -E 'with import <nixpkgs> {}; clangStdenv.mkDerivation { name = "foo"; }'`
<jasom> okay, is it a bug that lyx does not work unless there is a tex distribution in your current path?
iqubic has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<jasom> e.g. if I do nix-env -iA nixos.tetex then lyx will work, but without that step it cannot generate tex output.
* jasom kind of thinks it should include all of its dependencies
<boomshroom> jasom: That sounds like lyx should be wrapped in a script that adds tetex to its path.
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/24eb7a974f4 (from 84 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<boomshroom> jasom: Which is exactly what "makeWrapper" is for.
ertes has joined #nixos
iqubic has quit [Client Quit]
<ryantm> jasom: Yes, if it has no functionality without that dependency, it is a bug. If it does stuff without it, maybe the package is missing a configuration option.
<coorey[m]> just replaced ubuntu with nixos... wd to all the people who made it possible (and fairly simple)
astiles has joined #nixos
<boomshroom> coorey[m]: In place? Welcome aboard!
<Ralith> dtz: any idea why our llvm package includes compiler-rt, rather than having it be separate, or a part of clang?
<coorey[m]> boomshroom: from USB, formatted all the old stuff (after backup)
<boomshroom> coorey[m]: The normal way. If I'm not mistaken, it's possible to install NixOS in-place over an existing linux distro that already has Nix installed.
asuryawanshi has joined #nixos
<coorey[m]> boomshroom: hah, that might have been even simpler but I didn't see any reference to that approach earlier... I've still got plenty to learn
astiles has quit [Ping timeout: 248 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/24eb7a974f4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<boomshroom> coorey[m]: I installed it the traditional way. It's not obvious that it's there, but: https://nixos.org/nixos/manual/index.html#sec-installing-from-other-distro
<boomshroom> coorey[m]: That aside, I hope you're enjoying the magic of NixOS!
<coorey[m]> boomshroom: cheers, hopefully nixos will help me with my tendency to nuke everything clean.... next step is to setup a haskell env
<boomshroom> coorey[m]: Pro-tip: on NixOS, you don't setup global development environments. Rather, you load the latest Haskell env when working on a Haskell project, and said env only lasts until as long as the shell is open.
<coorey[m]> boomshroom: oh definitely planning to isolate my environments. I presume I could find some sane haskell .nix environment but I'm toying with creating my own at the moment just to learn
srdqty has quit [Ping timeout: 268 seconds]
CanopusX has joined #nixos
srdqty has joined #nixos
jon_ has quit [Remote host closed the connection]
Rusty1_ has quit [Quit: Konversation terminated!]
Fare has quit [Ping timeout: 256 seconds]
sir_guy_carleton has quit [Quit: Leaving]
MP2E has joined #nixos
blankhart has quit [Ping timeout: 248 seconds]
phreedom_ has quit [Remote host closed the connection]
klntsky has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
phreedom has joined #nixos
klntsky has joined #nixos
oida has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
mahalel_ has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
Fare has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
hellrazor has joined #nixos
CanopusX has quit [Quit: Leaving]
Fare has quit [Ping timeout: 248 seconds]
ma27 has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
johann__ has joined #nixos
MichaelRaskin has joined #nixos
ericsagnes has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
kisik21 has joined #nixos
<kisik21> Hello. While I understand that it is not exactly a NixOS question, but... I have two monitors - LVDS and VGA-0. Want to set VGA-0 as primary. Using slim as my display manager and i3 as window manager. No conventional desktop environment installed.
boomshroom_ has joined #nixos
ma27 has quit [Ping timeout: 256 seconds]
<boomshroom_> kisik21: What I do is set up a configuration with arandr and copy the resulting command into the top of my i3 config.
kreetx has joined #nixos
<kisik21> And how to make slim recognize this configuration?
<kisik21> Or which window managers could do it?
<kisik21> oops, display managers
jgt has joined #nixos
<boomshroom_> kisik21: I don't think I ever told my display manager how to handle the dual monitors. They just seem to work, though not as the physical layout. I don't spent much time in the display manager so I haven't bothered to fix it.
boomshroom has quit [Quit: WeeChat 2.0]
<boomshroom_> Anyways, I'm heading to bed soon. Good night, everyone!
<kisik21> Good night.
ryantrinkle has quit [Ping timeout: 264 seconds]
judson has quit [Remote host closed the connection]
<hamburglar[m]> I used to put xrandr/arandr stuff in ~/.xsession and just set up my session manually from there when I needed to set up my displays other than the default. I don't know if/what scripts get called by slim before login.
<kisik21> Wait, what is ~/.xsession?
ma27 has joined #nixos
<kisik21> Is it like .xinitrc, but called by display manager?
<hamburglar[m]> yes
<typetetris> Hi there, how do I force nix-build to really compile something and not just download its store path content from the cache?
<kisik21> Disable substituters, i.e. binary cache
boomshroom_ has quit [Ping timeout: 260 seconds]
astiles has joined #nixos
<typetetris> nix-store -r --check $(nix-instantiate -A <attr>) helped
<tilpner> nix-build -A attr --check would have done the same
shikiryogy has joined #nixos
<typetetris> `--check` isn't documented for `nix-build` (at least on my install) so I didn't tried that.
<shikiryogy> Hi guys, using (python35.withPackages(ps: with ps; [ psutil ])) in the configuration makes "psutil" available, when I use the "python3" command. What should I install, to make it work for the "python" command? Apparently (python27.withPackages(ps: with ps; [ psutil ])) does not work
<typetetris> Damn, it didn't redownload the source, that's what I tried to test.
<tilpner> nix-build '<nixpkgs>' -A irssi.src --check
<typetetris> Can I convince this to let the temporary directory lying around ?
<tilpner> -K
<tilpner> shikiryogy - nix-shell -p 'python27.withPackages (p: with p; [ psutil ])' --run 'python -c "import psutil"'
<tilpner> shikiryogy - That works here
<typetetris> There is no build failure for me (which there should be).
<shikiryogy> tilpner I need it for some bar for i3 to work, so I guess it should be available systemwide
<tilpner> shikiryogy - Is it polybar?
<tilpner> typetetris - Are you saying fetching the source should error?
<shikiryogy> tilpner bumlbebee-status
<tilpner> Want to share your Nix expression?
<shikiryogy> tilpner in the global config file, in the " environment.systemPackages = with pkgs; [" part, I have "(python27.withPackages(ps: with ps; [ psutil ]))"
<tilpner> No, I meant the one for bumblee-status. You are writing that one, right?
<tilpner> I don't think you have to install psutil globally
kisik21 has quit [Quit: Leaving.]
johann__1 has joined #nixos
johann__ has quit [Ping timeout: 256 seconds]
<typetetris> tilpner - Yes, because the hash should mismatch. It is this: gitlab.com did juggle around with its download routes and if I try the URL constructed by fetchFromGitLab for example procps-ng (see https://github.com/NixOS/nixpkgs/issues/39154) I get an archive containing tip of master (browser, wget, curl). But `nix-build -A procps-ng --check` seems to get the correct source (at least the NEWS file doesn't contain a mention of
<typetetris> v3.3.14) and I don't know how. If I try to download from the URL in its output (which it claims to use with curl) I get the archive containing the next release :(
<shikiryogy> tilpner Ah, fair point, but I didn't want to put the i3config in there, so it is the normal config file for i3. Otherwise, this is the command " status_command ~/bumblebee-status/bumblebee-status -m amixer battery cpu disk layout load memory pulseaudio rotation datetime -t powerline-greyish" which just uses modules from the package
<tilpner> typetetris - Did you update the URL without updating the hash? Try changing one digit of the hash
ma27 has quit [Ping timeout: 240 seconds]
logand` has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<typetetris> I only changed `fetchFromGitLab` in my nixpkgs repository, shouldn't that suffices for the derivation to be rebuilded from scratch?
<tilpner> typetetris - What part of that did you change? If Nix finds anything with that hash already in the store, it doesn't fetch it again
<typetetris> I changed the url `fetchFromGitLab` constructs to match the new url used by the gitlab.com UI.
<tilpner> You still didn't say if that changed the hash
<tilpner> You need to change the hash
<tilpner> shikiryogy - You would need a wrapper around eithet bumblebee-status or i3, which changes some variable so that bumblebee-status can find that python package
<typetetris> Sorry, I am dumb. I changed the hash and now it fails with a totally different hash produced, so it did fetch the wrong source ...
<typetetris> If I fix `fetchFromGitLab` will that trigger redownloading of sources from all the gitlab packages? (As it should, they probably used the wrong source since gitlab.com changed their download routes)
<tilpner> Not if the hashes stay the same. Nix ignores the URL after it downloaded something matching the provided hash once
<tilpner> But it should be fine, the caches would still have the right source, it doesn't matter that it can't be fetched the same way anymore
jensens has joined #nixos
johann__1 has quit [Quit: Leaving.]
<typetetris> I am unsure about this, if some external source (like gitlab.com) destroys reproducibility by changing what it offers for download at a certain url, you don't notice it early. Dunno wether thats good.
<tilpner> Did they really break all download links ever?
<tilpner> Or what did they change?
<typetetris> They aren't that great on documentation and I am not great at reading ruby, so I can just describe, what I perceive: 1. The URL used by `fetchFromGitLab` was probably wrong to begin with, as this endpoint doesn't understand the `ref` URL paramtere, only `sha`. 2. redownloading the source of the `procps-ng` derivation by changing one digit of the hash, changed the source we got (see NEWS) file.
<typetetris> 3. gitlab.com UI uses a different URL then `fetchFromGitLab` for example : https://gitlab.com/procps-ng/procps/-/archive/v3.3.14/procps-v3.3.14.tar.gz and not https://gitlab.com/procps-ng/procps/repository/archive.tar.gz?ref=v3.3.14 .
coot has joined #nixos
<typetetris> I open a ticket for `fetchFromGitLab` as we need a decision, wether to change the endpoint used and be able to use tags / revs or just change `ref` to `sha` and fix all the packages to use the sha instead of a tag name.
__Sander__ has joined #nixos
<tilpner> Are you saying https://gitlab.com/procps-ng/procps/repository/archive.tar.gz?ref=v3.3.14 is the new, correct one?
knupfer has joined #nixos
<tilpner> Oh, it's the old one
<typetetris> No. This url ignores `ref` url parameter and always yields an archive for tip of default branch which just coincidentally is v3.3.14 at the moment. Change the value of `ref` and preceive getting the same archive over and over again. Even `sha` seems to be ignored, at least by my testing in my browser.
<tilpner> Which downloads master, great
robstr has joined #nixos
<typetetris> So even their documentation is wrong, as `sha` is the documented URL parameter.
<tilpner> So it's only been working this entire time because Hydra was fast enough at caching the sources, huh
<typetetris> seems like it, sadly
<typetetris> But the issues for gitlab.com suggest, the (now wrong) URL was working until 10 days ago.
<tilpner> :/
vaninwagen has joined #nixos
ixxie has joined #nixos
<tilpner> I wonder if there's interest in periodic health-checks of sources from nixpkgs
<typetetris> I don't know ruby, but this looks like it could have destroyed the old url behaviour: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17225/diffs
<typetetris> How to proceed, so we don't duplicate tickets and work?
<robstr> Morning, I want to deploy my haskell application with nixops. My app is based an multiple modules (several cabal files), how can i make this possible ? Right now It can't find submodules
ixxie has quit [Client Quit]
johann__ has joined #nixos
<tilpner> typetetris - I can't imagine that breakage was intentional. Maybe they'll repair that route? You can still update fetchFromGitLab to the new non-deprecated route, but all old packages should be fine if the old route regains rev fetching
<tilpner> typetetris - What's that issue you mentioned?
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<typetetris> tilpner - There have been several issues at gitlab fiddling around with routes ... I just picked one, where the diff looks like it could introduce the breakage.
alex`` has joined #nixos
<typetetris> tilpner - according to their documentation the point that `fetchFromGitLab` was broken to begin with (because of using `ref` instead of `sha`) still stands.
<tilpner> typetetris - You showed a merge request, but earlier you were talking about "the issues for gitlab.com suggest"
day|flip has quit [Remote host closed the connection]
<typetetris> The issues dtzWill digged up in https://github.com/NixOS/nixpkgs/issues/39154
hyper_ch2 has joined #nixos
<tilpner> Oh, on nixpkgs... I thought it would be a GitLab issue
evhan has quit [Ping timeout: 240 seconds]
johann__ has quit [Quit: Leaving.]
evhan has joined #nixos
astiles has quit [Ping timeout: 255 seconds]
<tilpner> So you're changing ref=${rev} to sha=${rev}? That should work for many packages (if upstreamed and cached at the right time)
chisui has joined #nixos
leat has joined #nixos
<tilpner> (Well, except for those packages that aren't trying to package a new version :/)
jgt has quit [Ping timeout: 248 seconds]
ckauhaus has joined #nixos
bennofs has joined #nixos
robstr has quit [Ping timeout: 260 seconds]
hiroshi has quit [Ping timeout: 268 seconds]
robstr has joined #nixos
kisik21 has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
knupfer has quit [Ping timeout: 240 seconds]
jackdk has quit [Ping timeout: 256 seconds]
tertle||eltret has quit [Quit: Connection closed for inactivity]
hiroshi has joined #nixos
johann__ has joined #nixos
periklis has joined #nixos
<robstr> Hey, I struggle do build my application with nix, https://gist.github.com/rsoeldner/f580d0207303b2b9ff6e2cdb2f451ebb#file-app-config-nix-L6 , I need to pass the dependency `testapp-dep` I found http://wiki.ocharles.org.uk/Nix (last lines) but i dont know how to _include and pass_ it from the app-config.nix file - does this makes sense ?
<kisik21> Which package provides killall?
<kisik21> Is there a way to know which package provides a file, given a file name?
<robstr> kisik21: psmisc
<kisik21> robstr: thanks
xy2_ has joined #nixos
ertes has quit [Read error: Connection reset by peer]
ertes has joined #nixos
johann__ has quit [Quit: Leaving.]
<cocreature> robstr: you should be able to just pass it as another argument, e.g. testApp = import ./default.nix { inherit pkgs; testapp-dep = … }
johann__ has joined #nixos
<robstr> cocreature: ty let me try
lonokhov has joined #nixos
jwynn6 has quit [Ping timeout: 260 seconds]
<cocreature> robstr: also if you’re trying to learn how to develop Haskell with nix, https://github.com/Gabriel439/haskell-nix is probably a better resource since oliver’s wiki isn’t kept up2date afaik
<vandenoever> nixos 18.03 points to https://github.com/ImageMagick/ImageMagick/archive/6.9.9-34.tar.gz so 'nixos-rebuild switch --upgrade' fails
<vandenoever> is there a way to locally fix that?
matklad has joined #nixos
<robstr> cocreature: ty i will spend some time there :)
uvnikita[m] has joined #nixos
matklad has quit [Client Quit]
<kisik21> How to enable Python 3 support in vim?
<kisik21> Is there an option I could override?
Mateon2 has joined #nixos
<typetetris> tilpner - no that doesn't work, as the url is broken even for sha at the moment.
<tilpner> Welp
Mateon1 has quit [Ping timeout: 264 seconds]
Mateon2 is now known as Mateon1
nicl_l has joined #nixos
knupfer has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sir_guy_carleton has joined #nixos
<sir_guy_carleton> how do you set your terminal emulator in configuration.nix?
<kuri0> Are there smaller aarch64 images than the ones at https://www.cs.helsinki.fi/u/tmtynkky/nixos-arm/installer/ ?
<kuri0> since i don't really want to download 2gb (anything under 1gb is fine) and 2gb seems too much for a system without a desktop
winem_ has joined #nixos
<kuri0> probably they include uneeded packages
jtojnar has quit [Remote host closed the connection]
johann__ has quit [Quit: Leaving.]
<kuri0> maybe i could use nixos-install instead of those images
kreisys has quit [Read error: Connection reset by peer]
telent has joined #nixos
dan_b has joined #nixos
kiloreux has joined #nixos
seppellll has joined #nixos
<Dezgeg> there are not, that's based on the same configuration as the minimal install cd
nD5Xjz has joined #nixos
<kiloreux> I am trying to source the nix directory (make system aware of Nix existence) from /nix directory (instead of ~/.nix-profile) but I can't find the nix.sh file.
thc202 has joined #nixos
xeji has joined #nixos
dan_b_ has joined #nixos
Guest51829 has quit [Ping timeout: 240 seconds]
telent_ has joined #nixos
wangoe has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
hellrazor has quit [Ping timeout: 264 seconds]
telent has quit [Ping timeout: 260 seconds]
jwynn6 has joined #nixos
shikiryogy has quit [Quit: Leaving]
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/bca05472a77 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
sigmundv__ has joined #nixos
sigmundv has joined #nixos
chisui has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
wangoe has quit [Ping timeout: 256 seconds]
<teto1> kisik21: s/vim/neovim :p ?
nD5Xjz has quit [Quit: ZNC 1.6.5 - http://znc.in]
zybell_ has joined #nixos
ma27 has joined #nixos
hellrazor has joined #nixos
Fare has joined #nixos
sir_guy_carleton has quit [Quit: leaving]
<LnL> kiloreux: there's no ~/.nix-profile/etc/profile.d/nix.sh?
<michas__> Hi, I set up a small project based on nix. It would be great, if someone would volunteer for a quick review. https://github.com/michas2/nix-qemu-kubeboot
<fearlessKim[m]> is it normal that I have every symlinks in /etc point at /nix/store to have 777 permissions ? Looks like it's responsible for several errors and I don't know if it's normal or if it is some side effect from my config ?
<Dezgeg> symlinks' permissions always show up as lrwxrwxrwx
nD5Xjz has joined #nixos
<disasm> how can I get hydra to run a shellscript and take the exit code as a build success or failure?
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
nD5Xjz has quit [Client Quit]
<LnL> how is that different from a regular nix build?
astiles has joined #nixos
humanoyd has joined #nixos
xy2_ has quit [Read error: No route to host]
xy2_ has joined #nixos
<robstr> Hey, while building my application I receive the failure : `Setup: o-clock.cabal: This package requires at least Cabal version 2.0` but I didn't specify the cabal version, I used cabal2nix .. Can someone help here ?
astiles has quit [Ping timeout: 276 seconds]
ma27 has quit [Ping timeout: 240 seconds]
pkill9 has joined #nixos
MP2E has quit [Remote host closed the connection]
ShalokShalom has joined #nixos
<ShalokShalom> hi there
<unacceptable> yo, diggity
jensens has quit [Ping timeout: 264 seconds]
<kiloreux> LnL, I am afraid no. There's not.
<kiloreux> I chose to extend the path to contain "/nix/var/nix/profiles/per-user/root/profile/bin/"
<LnL> is it a multi-user install?
Neo-- has quit [Ping timeout: 240 seconds]
hellrazor has quit [Ping timeout: 248 seconds]
Neo-- has joined #nixos
hellrazor has joined #nixos
<nicl_l> timesyncd has 100% CPU usage. Is there an NTPd that does work?
<nicl_l> Please copy paste your configuration, if you have one.
<lassulus> services.timesyncd.enable = true; ?
<lassulus> ah, weird
<lassulus> it works here
<Dezgeg> works here too
tmaekawa has joined #nixos
justan0theruser has quit [Ping timeout: 264 seconds]
pkill9_ has joined #nixos
xy2_ has quit [Ping timeout: 248 seconds]
ixxie has joined #nixos
tmaekawa has quit [Client Quit]
pkill9 has quit [Ping timeout: 264 seconds]
<ShalokShalom> hi there
<ShalokShalom> the top lines in nix expressions count as dependencies?
<kiloreux> LnL, a single one.
<ShalokShalom> is this the attribute name or the package name?
<kiloreux> I used your image to build it.
<ShalokShalom> and does it use always the most fresh version?
<ShalokShalom> since, how to detect which version of mono is in use here?
<kiloreux> I am just copying the /nix directory from your image to another container and add that to the PATH.
TweyII has joined #nixos
jensens has joined #nixos
<infinisil> New unstable \o/
<nicl_l> What causes a 100% load of ksoftirdq? 7 root 20 0 0 0 0 R 99.7 0.0 167:09.54 ksoftirqd/0
<nicl_l> The machine is idle otherwise.
orivej has joined #nixos
thblt has quit [Ping timeout: 248 seconds]
jensens has quit [Ping timeout: 264 seconds]
<nicl_l> How do I disable connection tracking on NixOS?
<clever> nicl_l: is the firewall enabled?
<nicl_l> clever: no
<clever> cant think of why tracking would be enabled then
<nicl_l> clever: I am continuously crashing netfilter.
<clever> nicl_l: and youve set networking.firewall.enable = false; ?
<nicl_l> clever: yes
xeji has quit [Ping timeout: 276 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
ericsagnes has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
Guest51829 has joined #nixos
<Dezgeg> if by 'conntrack' you mean the single ip_vs_conn_drop_conntrack line, that is most likely just some leftover garbage in the stack trace
<Dezgeg> you can tell that by the '?' which tells this stack frame entry is not reliable
<Dezgeg> hmm, there is one on the RIP: line though... interesting
xy2_ has joined #nixos
<ShalokShalom> the top lines in nix expressions count as dependencies?
<ShalokShalom> is this the attribute name or the package name?
<clever> ShalokShalom: attribute names
alex`` has joined #nixos
<robstr> Hey, i still fail to build my application due to the `o-clock` haskell library, nix-build report an error that 'Setup: o-clock.cabal: This package requires at least Cabal version 2.0'
knupfer has joined #nixos
<nicl_l> htop shows 100% CPU usage, while the constituent parts do not sum to 100%. Is there any program which reports a CPU% that is actually consistent? I am talking about the difference between an almost idle machine and 100% load.
seppellll has quit [Quit: seppellll]
<ShalokShalom> so why does it use a complete outdated dependency
<ShalokShalom> since a fresh version is available?
<ShalokShalom> 4.0 > 5.8
seppellll has joined #nixos
<ShalokShalom> what is the straightforward way to rebuild a package, once I pulled the source .nix?
<mkaito> does anyone here use tmux-resurrect? how do you handle nixos paths?
seppellll has quit [Quit: seppellll]
<ShalokShalom> does anyone build these packages in an CI enviroment?
<ShalokShalom> my build just failed
yrashk has quit [Remote host closed the connection]
jrolfs has joined #nixos
fragamus has joined #nixos
<symphorien> ShalokShalom: yes they are build in a CI environment: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.monodevelop.x86_64-linux/all
yrashk has joined #nixos
<symphorien> apparently something broke it a month ago
<ShalokShalom> how that?
maingo has quit [Quit: Connection closed for inactivity]
<symphorien> what do you mean ?
<ShalokShalom> so, once something breaks, nobody cares?
coot has quit [Quit: coot]
<ShalokShalom> i like to care about it
<symphorien> ShalokShalom: all people mentionned in the meta.maintainers attribute receive a mail so that they can fix it
<symphorien> if they have the time and resources to do so
<ShalokShalom> to me, Nix is very new
<ShalokShalom> so, is there a headache free way to simply rebuild this package locally and see what happens?
<ShalokShalom> i see
<symphorien> it you care, you can fix the derivation and add yourself to maintainers so that it does not happen next time
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<ShalokShalom> yes, can you point me to the 101 about this?
rauno has quit [Remote host closed the connection]
<symphorien> git clone nixpkgs, at the root of the repo: nix-build . -A monodevelop
<ShalokShalom> kk
<ShalokShalom> thy
<ShalokShalom> i am on another OS, is this ok?
coot has joined #nixos
<ShalokShalom> since the command to install is different, so I ask..
<MichaelRaskin> On Linux with sandbox enabled — should be no difference
<symphorien> it will make a result symlink with what was built
<ShalokShalom> with sandbox enabled?
freeman42x]NixOS has joined #nixos
<ShalokShalom> with which sandbox?
jrolfs has quit [Ping timeout: 256 seconds]
<symphorien> <ShalokShalom> yes, can you point me to the 101 about this? << https://nixos.org/nixpkgs/manual/ there is also a manual for nix
<symphorien> also the so called nix pills https://nixos.org/nixos/nix-pills/index.html
<MichaelRaskin> Nix has some sandboxing (mostly based on Linux namespaces in the Linux case), which can be enabled or disabled
pkill9_ has quit [Ping timeout: 256 seconds]
<ShalokShalom> yeah; i thought I can avoid it until I have some success, simply to motivate me
<ShalokShalom> if i read 100 pages of each project i try out, i get old
<ShalokShalom> MichaelRaskin: Is it enabled by default?
<ShalokShalom> I installed with your shell script
<ShalokShalom> fresh
<MichaelRaskin> Not sure, I think it has been changed in both directions multiple times
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ShalokShalom> how to detect?
<ShalokShalom> i will just try out, thanks
<MichaelRaskin> I think /etc/nix/nix.conf should nowadays contain _some_ line about sandbox
NightTrain has joined #nixos
<ShalokShalom> MichaelRaskin: there is no nix at all in etc here
<symphorien> can you share the output of nix-shell -p nix-info --run nix-info ?
<ShalokShalom> there is a nix in root and no such nix.conf in
<ShalokShalom> zsh: command not found: nix-shell
alexteves_ has joined #nixos
coot has quit [Quit: coot]
<ShalokShalom> i had the last time issues with nodejs, since npm installs in your directory which siltently breaks all your symlinks
<ShalokShalom> idk if that is fixed now
<ShalokShalom> i think I simply deleted nix itself, while this might leaved the nix directory intact
<ShalokShalom> so i suppose its sane to delete the whole directory also and reinstall?
<symphorien> can you try with bash before you delete everything ?
seppellll has joined #nixos
alexteves__ has joined #nixos
<ShalokShalom> try with bash means?
<ShalokShalom> oh, if I find the executable directly?
<symphorien> bash -c "nix-shell -p nix-info --run nix-info"
<ShalokShalom> kk
<ShalokShalom> nope, not found
alexteves_ has quit [Ping timeout: 240 seconds]
<ShalokShalom> bash: nix-shell: Kommando nicht gefunden.
<ShalokShalom> command not found
<ShalokShalom> oh wow
<symphorien> huh. as if you didn't have nix installed
<ShalokShalom> now, nix --version also shows nix not found
<ShalokShalom> a few minutes before, it worked
ciastek has joined #nixos
<ShalokShalom> this is as before, so I guess this nodejs messup still applies
<symphorien> I don't really understand how nodejs would mess this up...
<symphorien> what is your $PATH ?
ShalokShalom2 has joined #nixos
<ShalokShalom2> I currently fill a Github issue
<symphorien> is nix in ~/.nix-profile/bin ?
<ShalokShalom2> To be precise: All other package managers, eg that one of all the different programming languages, mess up the system, yes?
<ShalokShalom2> it is
<ShalokShalom2> also others, such as nix-build and so on
<symphorien> not usually. nix only touches /nix, ~
<ShalokShalom2> 12
<symphorien> ~/.nix-profile and your $PATH
<symphorien> sorry
<ShalokShalom2> so, a few days ago two people here explained me that this is obvious
<symphorien> ah ok
freeman42x]NixOS has quit [Remote host closed the connection]
<ShalokShalom2> see, how obvious it is? :D
<ShalokShalom2> i guess you are a experienced user, according to your support here
<ShalokShalom2> so i really consider this as a serious issue
<ShalokShalom2> MichaelRaskin: i think you were involved
<Myrl-saki> clever: Hey. :)
<ShalokShalom2> can you say me anything about the compability of other package managers, such as npm and pip?
<Guest2114> Hi everyone.
<ShalokShalom2> since they install into the nix dir, which breaks it, correct?
<MichaelRaskin> Is your /nix owned by root?
<ShalokShalom2> Guest2114: hi there
<clever> Myrl-saki: i saw what you reported earlier, and it should be fairly simple to implement, i can look into it in a bit
ShalokShalom has quit [Ping timeout: 264 seconds]
<ShalokShalom2> no
<MichaelRaskin> For some reason we still cannot make it default that /nix is owned by root and nix-daemon is used by default (among other things: adding nix-daemon to the list of daemons is distribution-dependent)
<Guest2114> I want to upgrade my encrypted ZFS system to 18.03 but run into the Encrypted Dataset Format Change.
<symphorien> ShalokShalom2: ah I see, I am used to the store being immutable even by root, so such screw ups cannot happen
<ShalokShalom2> it is in the root group and user is my sudo account
alexteves has quit [Ping timeout: 276 seconds]
lonokhov has quit [Quit: WeeChat 1.9.1]
<Guest2114> The wiki has a solution but I need some help with step 1: Create a custom NixOS iso with crypto stability patch applied
<ShalokShalom2> symphorien: I am used to use thing in the default configuration
<Guest2114> How do I create that iso?
alex`` has quit [Ping timeout: 264 seconds]
<symphorien> ShalokShalom2: the default configuration for NixOs and non NixOS is different :)
<ShalokShalom2> since I assume the developers have reasons to put them so
<ShalokShalom2> ah i see
<Myrl-saki> clever: Thanks!
<ShalokShalom2> much more convenient :P
<ShalokShalom2> for all the involved people, this is more cumbersome
<ShalokShalom2> docu, devs and users
mmlb has quit [Quit: Ping timeout (120 seconds)]
<MichaelRaskin> We managed to reach the state where default configuration is what nobody uses for long
<symphorien> multi user install is more involved and requires root, whereas single user install only needs well a single user
mmlb has joined #nixos
tmaekawa has joined #nixos
<symphorien> so both are legitimate
<symphorien> for different use cases
ericsagnes has joined #nixos
<ShalokShalom2> a sane default is gold worth
<ShalokShalom2> MichaelRaskin: if thats the case, is it even more obvious that a dummy config by default makes a lot sense?
<hodapp> okay, a bit confused... I just updated to NixOS 18.03, and it looks like mxnet was updated to 1.1.0 back in February or something, but 'mxnet.__version__' in Python is telling me 0.11.0
<bachp> Hi, did somebody successfully use NixOS with AWS autoscaling groups? Maybe even with an example to point to.
<MichaelRaskin> I think there is a config somewhere, I just _never_ used single-user installations without explicitly overriding config directory. And I can remember only one time when I used single-user installation at all
jgt has joined #nixos
thblt has joined #nixos
<clever> bachp: ive not used it yet, but my general theory is to use nix-build to create an AMI that has your software fully configured, and upload it to aws, then configure auto-scaling to spin up that AMI
<bachp> clever: Do you have an example how to create an ami vis nix-build?
<hodapp> can someone else run nix-shell -p python36Packages.mxnet --command "python3 -c 'import mxnet; print(mxnet.__version__)'" and tell me the result?
<clever> bachp: something like this
<clever> bachp: this imports 2 other amazon related files...
<clever> bachp: dont see how to get the disk image though
<makefu> hodapp: what exactly are you looking for? ( `0.11.0` on the pinned 18.03 channel i use )
<hodapp> makefu: trying to figure out why mxnet version "1.1.0" is being reported as version 0.11.0
<clever> bachp: line 34 is the key, it will need to be modified to embed your software and config into the image
<hodapp> makefu: did it create something like /nix/store/.....-mxnet-1.1.0 for you?
patrl has joined #nixos
<makefu> jup, i think this may be be due to the fact that it is built out of the mxnet package which seems to be 1.1.0
<bachp> clever: I was hoping the script has a way to extend it without modification
<hodapp> weird, but the directory for the Python bindings in /nix/store has mxnet-0.11.0.dist-info in it
<ShalokShalom2> MichaelRaskin: thanks a lot
<hodapp> and I am running into issues that are supposed to have been fixed in 1.x of MXnet
seppellll has quit [Quit: seppellll]
<srhb> hodapp: The python libinfo appears to have change versions out of sync with the main package.
<ShalokShalom2> symphorien: how you do that?
<srhb> hodapp: Look at libinfo.py
<ShalokShalom2> >> I am used to the store being immutable even by root
<ShalokShalom2> Is this an option for the default installation on other operating systems?
<symphorien> this is called multi user install
<hodapp> uggggh
<ShalokShalom2> ok, i see
<makefu> hodapp: it seems like mxnet 1.1.0 is bundled with mxnet-python 0.11.0
<srhb> hodapp: I'm just the messenger! :|
<ShalokShalom2> i guess who ever reads the issue will see this as a viable option
<MichaelRaskin> ShalokShalom2: it uses a bind mount of /nix/store over itself with read-only mode
<ShalokShalom2> thy
xy2_ has quit [Ping timeout: 268 seconds]
<ShalokShalom2> i add it
<ShalokShalom2> Oh, I see
<ShalokShalom2> This req. manual configuration
<ShalokShalom2> So no option in this form
<ShalokShalom2> thanks
<srhb> hodapp: It looks like they're in sync from 1.0.0
<srhb> ... or not
oida has quit [Remote host closed the connection]
<ShalokShalom2> is there any other way around that?
oida has joined #nixos
<ShalokShalom2> simply create a dedicated directory for the different package managers?
<ShalokShalom2> or one for them all, if that works?
pkill9 has joined #nixos
<hodapp> srhb: from the tag that is used for the mxnet package I see https://github.com/apache/incubator-mxnet/blob/1.1.0/python/mxnet/libinfo.py
<hodapp> which is 1.1.0
m0rphism has quit [Ping timeout: 255 seconds]
<nicl_l> How can I run Linux 3.X on NixOS?
<infinisil> Oh is the PR bot dead or was it turned off?
<nicl_l> How can I run Linux 3.X on NixOS 18.03?
<MichaelRaskin> infinisil: I would also consider a terminal case of backlog
<gchristensen> infinisil: turned off for now ...
<bachp> clever: Another way that seems to work is to just provide a configuration.nix as user data and the new instance will then automatically configure itself. A bit more overhead to provision but it let's me reuse the already existing ami
<hodapp> what am I missing here... I just checked NixOS 18.03's GitHub, and it's pulling from refs/tags/1.1.0 of incubator-mxnet, which I just checked has 1.1.0 in its libinfo.py
<gchristensen> nicl_l: I don't think we have one
<clever> bachp: id consider that a waste of resources, aws may also not wait for the machine to configure itself before trying to have it serve traffic
<srhb> hodapp: Maybe we should check if they moved the tag.
<infinisil> I see, well I guess I need to do it myself then
<srhb> And also, check our source to see what libinfo says
xcmw has joined #nixos
* infinisil just opened PR #39232: nixos/sshd: add options for kexAlgorithms, ciphers and MACs https://github.com/NixOS/nixpkgs/pull/39232
<hodapp> srhb: how would it still be using an older tag in such a case?
<srhb> hodapp: Because our hash didn't change
<srhb> hodapp: So it grabs the older 1.1.0 tag from the cache
<nicl_l> gchristensen: but is there also no way to just specify a kernel.org git version and get that built?
<srhb> hodapp: And that appears to be what is going on. Messing up the hash gives me an error that the real hash is 138di308s6bwlh7na40mgq2kjrk5x1pf03jcw4yvazpbwb4lpbmm, but the derivation says 1qgns0c70a1gfyil96h17ms736nwdkp9kv496gvs9pkzqzvr6cpz
raynold has quit [Quit: Connection closed for inactivity]
<hodapp> ugh, I see
<srhb> hodapp: Moreover it doesn't build with the new 1.1.0 tag.
<srhb> So that's fun.
<srhb> I had kubernetes pull this same stunt on me. I just love it when people treat tags as "haha I have no idea" :P
<bachp> clever: I agree it is not the most efficient but if you rarely need to scale it might be OK
jonjitsu has joined #nixos
<srhb> hodapp: Hmm, actually, maybe they are blameless
<gchristensen> nicl_l: something like https://gist.github.com/grahamc/181d5a0c8189b0a69ac9aeb7fecadcb2 might work
<srhb> hodapp: This commit is broken: 3179002f610b8a58350e5837810cd724cf66165f
<srhb> hodapp: The version was changed but the hash wasn't. So it's really not 1.1.0 at all.
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/cd5dfa1f883 (from 14 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
pkill9_ has joined #nixos
ma27 has joined #nixos
pkill9 has quit [Ping timeout: 260 seconds]
m0rphism has joined #nixos
fragamus has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1bba16fe193 (from 8 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
ixxie has joined #nixos
NightTrain has quit [Ping timeout: 265 seconds]
daveo has joined #nixos
jonjitsu has quit [Ping timeout: 264 seconds]
knupfer has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 260 seconds]
<infinisil> srhb: I really wish nix had some way of preventing this
<srhb> infinisil: I don't. That would be a really weird mental model. The name is not an input to fetchgit, so it should not affect it.
<srhb> This is the sort of thing commit hooks or bots should fix.
<infinisil> srhb: What's the problem with having the name as an input?
<infinisil> I can't see scenarios where this would do any harm
<srhb> Oh, that's totally acceptable. A bit of a strange convention, but yeah. :)
<srhb> My point was merely that dependencies should be obvious and explicit.
<gchristensen> well only in that it is content-addressed and the name isn't part of the content
<gchristensen> and that Nixpkgs has built-in support for content-addrssesed backup providers for fetechurl
daveo has quit [Ping timeout: 248 seconds]
<srhb> All of that kind of functions could take an arbitrary list of strings to use for the hash.
<infinisil> I'm sure it would work somehow
<srhb> Defaulting to [], for instance.
daveo has joined #nixos
<srhb> That would be pretty flexible
<ShalokShalom2> symphorien: "on the top of the repo" means in nixpkgs or nixpkgs/pkgs or nixpkgs/pkgs/category?
<infinisil> Oh no, trying to update to yesterdays nixos-unstable.. but zfs fails to build.. :/
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<gchristensen> it would break shasum etc.
<srhb> gchristensen: True.
<gchristensen> which is, imo, a dealbreaker
<srhb> More indirectoin! verifiedSrc = hash src arbitrarylist
<symphorien> ShalokShalom2: in nixpkgs
<ShalokShalom2> ok fine
<gchristensen> srhb: :D
<srhb> Of course, that fixes nothing :P
thblt has quit [Ping timeout: 260 seconds]
<ShalokShalom2> well, mono is no compiler
<ShalokShalom2> while in this category
<infinisil> For anybody that needs zfsUnstable in the latest nixos-unstable to build, cherry-pick this commit: 6b796a9c23db8cbb3065ffdd20c1a53fd86de9a6
lord| has quit [Quit: WeeChat 2.1]
daveo has quit [Quit: WeeChat 2.0]
nD5Xjz has joined #nixos
<ShalokShalom2> well, haskell and rust under tools instead
winem_ has quit [Quit: No Ping reply in 180 seconds.]
<ShalokShalom2> and qtcreator is also here in development/tools, while other IDEs are in applications/editors
<ShalokShalom2> this is a pretty mess :)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/651239d5ee6 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<ShalokShalom2> is it allowed to reorder this?
<mkaito> anyone here use tmux-resurrect on nixos?
<ShalokShalom2> via git commits
winem_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> ShalokShalom2: Allowed yes, but the existence of top-level/all-packages.nix sort of makes that sort of bikeshedding more or less needless.
<srhb> If you feel it's important you can definitely PR it and try to convince someone to merge it. :)
<ShalokShalom2> since I as a newbie am confused, is this all but a bikeshedding
<ShalokShalom2> thanks a lot
<srhb> ShalokShalom2: That's the kind of arguments that should weigh something in the PR. :-)
<ShalokShalom2> first impression counts
<srhb> Absolutely.
<srhb> Don't mind me, I'm just a jaded pragmatist. :P
<srhb> ShalokShalom2: fwiw I think a PR for each logical unit moved is most palatable (at least if I were the reviewer)
<angerman> nix doesn’t have some short circuiting does it? `{ x = 1; }.y ?? 0`
<srhb> or ?
krey has joined #nixos
<infinisil> Indeed: { x = 1; }.y or 0 => 0
<angerman> Hmm great :-)
<angerman> i did try || and variations, never tried `or` :(
rauno has joined #nixos
<angerman> thanks!
nD5Xjz has quit [Ping timeout: 268 seconds]
xcmw has joined #nixos
kiloreux has quit [Read error: Connection reset by peer]
kiloreux_ has joined #nixos
nD5Xjz has joined #nixos
<srhb> ShalokShalom2: I think your issue #2094 is still completely indecipherable. Can you give us some output before and after whatever you did (along with the instructions for whatever you did) and show what the actual problem is? :)
<srhb> Basically, a reproducible case along with instructions on what to do to conclude that there's a problem.
ma27 has quit [Ping timeout: 255 seconds]
nD5Xjz has quit [Ping timeout: 264 seconds]
coot has joined #nixos
<Akii> what do I need to have a remote nix channel on git in a private repository?
<srhb> Akii: Do you really need a channel?
<nicl_l> nix search mono | grep -A 3 NET# returns in 0.13s a useful answer, so I think the "how do we find a package"-problem has been solved.
<Akii> srhb okay to put it differently; I've a haskell project in a private git and want to run `nixos-rebuild switch --upgrade` and it should install that package or upgrade it
<Akii> that is my ultimate goal
<Akii> everything else is just impractical
<Akii> the derivation file is generated by cabal2nix and should be under version control and not part of the config of the server
<srhb> Akii: Okay, I don't know how to do it with channels, sorry.
<Akii> well do you know how to do it without channels? :D
<Akii> I just want my private set of nixpkgs so to say; no idea if that requires a channel or not
<srhb> I tend use a script to update some file with the HEAD revision and use builtins.fetchGit :)
<Akii> sounds like a workaround
<srhb> I prefer explicitly moving commits.
<srhb> So not to me
<srhb> Channels are heresy
<srhb> :-)
<Akii> I'd go as far as to say I don't even care what revision it is, just take master and somehow figure out if it was updated
<srhb> Ick!
<srhb> :p
<srhb> You can get lots of nondeterminism by not using hashes in the new fetchers in Nix 2.0
<Akii> nix-env -i git
<Akii> that's what I want where git is my own package
patrl has quit [Quit: WeeChat 1.9.1]
<Akii> heck I'd even add version numbers
jgt has joined #nixos
<Akii> I don't need this over complicated stuff around all that
nD5Xjz has joined #nixos
hotfuzz has joined #nixos
kiloreux_ has quit [Remote host closed the connection]
ckauhaus has quit [Quit: Leaving.]
jperras has joined #nixos
<Akii> looks like this goes into the right direction
kiloreux_ has joined #nixos
Rusty1_ has joined #nixos
<Akii> waaait a second nix copy --to ssh://machine nixpkgs.hello
<Akii> wat
<Akii> could it be this simple?
<srhb> If it is I clearly did not understand your question.
<Akii> nah, I bet nix copy only works for the same architecture
jgt has quit [Read error: Connection reset by peer]
<Akii> probably
<hyper_ch2> so, been running rss2email now for few weeks on nixos... works really nice :)
scode has quit []
<Akii> srhb the question is simply this: I want to be able to execute `nix-env -i myhaskellpackage` and it should install myhaskellpackage. That's it
scode has joined #nixos
<Akii> the source and config are on a private git
<srhb> Akii: Stick it in an overlay, use builtins.fetchGit
<hodapp> srhb: thanks for filing that issue; I was about to myself but was busy with other things
<hodapp> still trying to understand exactly what happened here
<srhb> hodapp: The version was bumped, but the src has was not. So really, we're still on (an awkwardly named) 0.11
<nicl_l> srhb: does nix 2.0 implement private git authentication?
hamishmack has joined #nixos
<nicl_l> srhb: this didn't work in 1.*.*.
<hodapp> srhb: does changing that hash & adding perl resolve it?
<srhb> hodapp: It builds at least.
<hodapp> srhb: I'll try it out myself with some actual code
<srhb> hodapp: Cool :)
<srhb> I have to get ready for work, so didn't have time for PR
ma27 has joined #nixos
seppellll has joined #nixos
kisik21 has quit [Ping timeout: 240 seconds]
kisik21 has joined #nixos
<hodapp> srhb: no worries, you already filed the issue for me :) if this build works and the code runs I'll do a PR
<hodapp> though... would this PR be applicable mostly just to 18.03 since most likely in master someone's going to upgrade MXNet to something newer than 1.1.0?
<srhb> hodapp: The broken commit that says we have 1.1.0 is in all branches I think.
<srhb> hodapp: So it should be backported, or rolled back on nixos-18.03
<srhb> hodapp: Oh, sorry, that wasn't quite your question. I think it's applicable to master as well. We shouldn't lie about the version :)
<zybell_> Akii:configure roots ssh to use master connection then sudo ssh github in one terminal will enable you to nix-env -i in the other.
rauno has quit [Ping timeout: 260 seconds]
xcmw has quit [Ping timeout: 248 seconds]
<Akii> zybell_ wat
<Akii> roots ssh
<Akii> master connection
<Akii> wat
<srhb> No need, builtins.fetchGit runs git as the invoking user.
<Akii> here
<Akii> there is this thing http://lpaste.net/4400953954855288832
<Akii> generated and changes each time the dependencies change
leat has quit [Ping timeout: 276 seconds]
<Akii> I'd like to put that to the package itself, not on the nixos server
<Akii> where do I put this fetchGit thing
<Akii> if it's in this file it doesn't really help me
ilyaigpetrov has joined #nixos
<Akii> because quite frankly, then I can just ssh into the server and pull the git repo myself
<Akii> that would be less work to do
leat has joined #nixos
<Akii> if I can get fetchGit to work in this file: http://lpaste.net/365038 it would probably work
<Akii> instead of callPackage ./default.nix it would have to be some git resource
<Akii> or smth
<srhb> Akii: callPackage (builtins.fetchGit { ... })
<Akii> really
<srhb> Really!
<srhb> Oh, but with /default.nix at the end :P
<Akii> wat
<zybell_> Akii:You can alternatively run the daemon under ssh-agent,and add the key into the agent, but my impression is it is harder to setup.
<srhb> callPackage (builtins.fetchGit { ... })/default.nix {}
<srhb> zybell_: This still isn't necessary for builtins.fetchGit if you're evaluating it as the user that already has ssh access.
<Akii> well there is also fetchPrivateGit or smth
<srhb> please note that fetchgit and builtins.fetchGit are not the same things.
leat has quit [Ping timeout: 240 seconds]
frostspanner has quit [Quit: Page closed]
<srhb> And fetchPrivateGit is like fetchgit, and requires the workarounds that zybell_ is mentioning.
johann__ has joined #nixos
<Akii> okay
<Akii> that is
<Akii> strange but if it works i'll take it
<zybell_> You cant get at a private git without the key, or it wont be private anymore.
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
infinisil has joined #nixos
<Akii> I've a deployment key of course
leat has joined #nixos
<Akii> and I think the ssh-agent should run by now
<Akii> that's all ok; is there a way to just ignore this sha hash thing?
<zybell_> And the key has to find its way to the *used* ssh instance. That can be done either by ssh-agent or by master connection. Master connection is easier to setup, but somewhat unmaintained by github.
nix-learner has joined #nixos
<Akii> it's not on github
<Akii> but that shouldn't matter, right
<nix-learner> Hi, I have a question on using command line of nix, such as nix, nix-store.
<nix-learner> The question is, I want to install a package into my local nix store using the binary cache on hydra. I just want to experiment with a package, not messing with building or the nix expressions that build a package.
<nix-learner> I know how to do this, based on the instructions on hydra.nixos.org.
<nix-learner> Say, to install device drivers, I can do the following:
<nix-learner> nix-env -i /nix/store/ign8y8jipam9cjfpbcbfgbzprqkj3k2b-mesa-noglu-17.3.6 --option binary-caches https://cache.nixos.org
<nix-learner> This is as suggested on hydra.nixos.org. Now my question is, how to download a single package, add it to the nix store, without going through nix-env?
bmpvieira has quit []
<nix-learner> That is, how to just download a package, without installing it into my user profile (user environment)?
<srhb> nix-learner: nix-build is usually the easiest way
johann__ has quit [Quit: Leaving.]
bmpvieira has joined #nixos
<srhb> nix-learner: nix-build '<nixpkgs>' -A attr.path.of.package
<srhb> Oh and add --no-out-link or you'll get a result symlink in CWD
<nix-learner> Thanks for the reply.
tmaekawa has quit [Ping timeout: 248 seconds]
<zybell_> Akii:If its your own server you can support masterconnection by special scripts, but if you got ssh-aget running already I would stay with it because its the preferred solution anyway.
kisik21 has quit [Quit: Quit]
<nix-learner> I don’t that nix-build fits my use case.
<srhb> nix-learner: Why?
<Dezgeg> nix-store -r /nix/store/ign8y8jipam9cjfpbcbfgbzprqkj3k2b-mesa-noglu-17.3.6 also works if you really want to access by the filename
Fare has quit [Ping timeout: 260 seconds]
<nix-learner> The reason being that, I actually want to install a package from a channel (say, nixos-18.03) different from the one I am normally using (nix-unstable) in nix-env.
<srhb> nix-learner: Ah okay. What Dezgeg said then
lo_mlatu has joined #nixos
<srhb> nix-learner: Or just specify another channel name in the angle brackets
<srhb> If you have it setup.
<nix-learner> Thanks for the help. Let me check if `nix-store -r` works.
<nix-learner> Regardless of whether `nix-store -r` works... I tried using `nix-build` with a version of nixpkgs pinned to an older git hash (not tracking nix-unstable), because I want an older version of the device drivers. When I tried `nix-build`, I think it could work in principle, but the build was taking too much memory (> 5G, because I killed the job) that
<nix-learner> my machine might be able to handle.
tazjin has quit []
tazjin has joined #nixos
<srhb> nix-learner: Then it wasn't cached, presumably.
<nix-learner> Yes, very likely it is not cached.
gaqzi has quit []
gaqzi has joined #nixos
<srhb> zybell_: Why would you need master connection or ssh agent?
<srhb> (You don't, just trying to understand why you think so.)
<nix-learner> Thanks for everyone. nix-store -r is what I wanted.
nix-learner has left #nixos [#nixos]
<zybell_> to get the auth info securely to the ssh that is run by git.
<nikivi> to update nix from 1.11.16 to 2.0 on macOS I just install nix again from the official site?
<srhb> zybell_: If you're running nix-build, say, as your user, then it'll just look at ~/.git/ or whatever :)
<srhb> Er, ~/.ssh
ma27 has quit [Ping timeout: 255 seconds]
Guest37084 has quit []
Guest37084 has joined #nixos
<zybell_> of course i assume that the deployment key is password protected.
<srhb> OK, then it makes sense. :)
butchery has joined #nixos
<dtz> nix-learner: FWIW when copying paths Nix 2.0 has some memory usage problems that have been fixed-- will be in next update. Might help with what you're experiencing, just a heads-up :)
nuncanada has joined #nixos
<butchery> hey, I'm having trouble upgrading to 18.03, can't download the NVIDIA drivers?
<hodapp> butchery: does it appear to just be stuck?
ma27 has joined #nixos
<butchery> no it fails with error: cannot download NVIDIA-Linux, etc, but I can reach the URL nixos-rebuild lists that it's trying just fine
kreisys has joined #nixos
TrentP has quit [Quit: ZNC - http://znc.in]
TrentP has joined #nixos
cross has quit [Ping timeout: 264 seconds]
<srhb> butchery: can you include the "etc" please?
jonjitsu has joined #nixos
oscarduignan has quit []
oscarduignan has joined #nixos
<srhb> I wonder if that's the same issue that we saw with cuda...
<butchery> ah sorry, it does "trying https://download.nvidia.com/XFree86/Linux-x86/390.48/NVIDIA-Linux-x86-390.48.run", fails with "error: cannot download NVIDIA-Linux-x86-390.48.run from any mirror", I can reach the URL in a browser fine
erasmas has joined #nixos
ma27 has quit [Ping timeout: 265 seconds]
<hodapp> srhb: well, trying the changes you mentioned and while it seems to work without CUDA I get http://lpaste.net/2993780256160088064 if I enable it
<hodapp> big surprise, CUDA broke shit. again.
<hodapp> I am trying to make sense of wtf this error even means
nD5Xjz_ has joined #nixos
nD5Xjz has quit [Ping timeout: 276 seconds]
<srhb> hodapp: I didn't see that on 18.03
Fare has joined #nixos
<hodapp> srhb: but did you build with CUDA support enabled?
<srhb> hodapp: Oooh. No, okay.
<butchery> ah sorry, it does "trying https://download.nvidia.com/XFree86/Linux-x86/390.48/NVIDIA-Linux-x86-390.48.run", fails with "error: cannot download NVIDIA-Linux-x86-390.48.run from any mirror", I can reach the URL in a browser fine
<butchery> *sorry misspress
<hodapp> blargh. I guess I need to go remember how to tear this build apart so I can go look at what CMake is complaining about
edofic has joined #nixos
christiaanb has quit []
christiaanb has joined #nixos
smola has quit []
<hodapp> this is just really confusing to me because the builder is hardly passing anything at all to it, unless there is just tons and tons of magic going on in the CMake build
smola has joined #nixos
<gchristensen> BlessJah: were you telling me about using the spotify web interface?
<hodapp> if I don't even add CUDA dependencies into buildInputs, but I simply leave off "-DUSE_CUDA=OFF" in cmakeFlags, the build fails with the same error
<hodapp> what in the hell did these guys do...
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0e09510b0b0 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
aarvar has joined #nixos
pchiusano has quit []
pchiusano has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
butchery has quit [Remote host closed the connection]
ixxie has joined #nixos
<hodapp> https://github.com/apache/incubator-mxnet/pull/9940 oh here we go. Huh, it's another CUDA issue
<hodapp> because of course it's a fucking CUDA issue
butchery has joined #nixos
<dtz> lol
seppellll has quit [Quit: seppellll]
Fare has joined #nixos
johann__ has joined #nixos
ma27 has joined #nixos
<butchery> the nvidia binary download thing seems to have been fixed by restarting network service, no clue what happened
<butchery> since I could curl the url myself but nixos-rebuild couldn't?
<hodapp> I feel like I ran into something very similar when upgrading
<gchristensen> sometimes the DNS resolver gets confused and caches problems, which for some reason can manifest differently for the nix-daemon than users
<telent_> complete tangent, but if anyone's interested in nixwrt it's now at the point where (1) it's running in flash on my test router; (2) there's a reasonably complete qemu target
<srhb> !m telent_
<[0__0]> You're doing good work, telent_!
xy2_ has joined #nixos
ma27 has quit [Ping timeout: 246 seconds]
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawa_ has joined #nixos
<hodapp> nixwrt? this is new to me
<dtz> :D
<telent_> it's new full stop
<telent_> by which I mean "not ready for actual use"
<dtz> also, #nixos-on-your-router :).
<dtz> matrix wants to make that: #freenode_#nixos-on-your-router:matrix.org
knupfer has joined #nixos
<telent_> but someday I will have nix derivations replacing all my openwrt devices
<dtz> oh just saw your message
<dtz> congrats, telent_ !! :D
johann__ has quit [Quit: Leaving.]
ixxie has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kreisys> Is there any way to see what the hydra evaluator is doing?
<kreisys> I mean while it's still evaluating
ryantrinkle has joined #nixos
<kreisys> afterwards I know there's a link to the log somewhere in the UI
<hodapp> telent_: the GL-Inet GL-MT300A, does that have exposed pins already present on the board for serial? such that I don't need to tack tiny wires onto it or anything
<Ralith> dtz: hey, any idea why our llvm package has compiler-rt inlined into it?
<Ralith> dtz: it's breaking asan use, and talking to the llvm folks confirms that it should really be installed as part of clang (and perhaps also available separately), not as part of llvm
pie_ has quit [Ping timeout: 240 seconds]
<sphalerite> telent_: awesome!! Also nice to see you on the IRC :D
seppellll has joined #nixos
astiles has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
rizary has quit []
rizary has joined #nixos
<lassulus> how do I get 2048_in_terminal inside a nix-shell?
astiles has quit [Ping timeout: 248 seconds]
<dtz> Ralith: hmm, lemme think. For my own work I just "caved" and build everything in one giant package since that's what upstream supports most directly/consistently (esp at any given SVN revision hehe)
mounty has quit [Ping timeout: 260 seconds]
mightybyte has joined #nixos
<mightybyte> Why would nix-shell build more things than nix-build?
<sphalerite> lassulus: nix-shell -p _2048_in_terminal
<lassulus> 'build input 2bwm does not exist'
<lassulus> aeh
<lassulus> 'build input 2048_in_terminal does not exist'
telent_ has quit [Ping timeout: 255 seconds]
dan_b_ has quit [Ping timeout: 255 seconds]
<sphalerite> wait no
<sphalerite> yeah…
<lassulus> I think the aliases are mixed up
<lassulus> when I remove them it works
<telent[m]> Hodapp yes, no soldering for the serial port
<telent[m]> Assuming you have something that speaks serial @ 3.3v, anyway.
<telent[m]> Pl2303 or whatever. I actually use a raspberry pi
<hodapp> telent[m]: yes, I have a whole desk full of crap that speaks serial at 3.3 V, 5 V, RS232, and so on :)
astiles has joined #nixos
mightybyte has left #nixos [#nixos]
cross has joined #nixos
<dtz> Ralith: looking at history, shlevy might know! :)
<shlevy> Uh oh, what'd I do?
<Ralith> dtz: if there's no good reason (and nobody beats me to it) I'll factor it out into a separate package, and modify the clang build to copy that output fully into itself, on approx. tuesday
<Ralith> fedora's building compiler-rt standalone so I imagine it works okay
<shlevy> Oh god that was a long time ago
<shlevy> if it works now great
hyper_ch2 has quit [Ping timeout: 260 seconds]
<hodapp> telent[m]: thanks, I'll check it out
<dtz> teehee
<telent[m]> Having previously broken (I think) my tl-wr842 trying to solder on a serial connector, am well up for klutz-proof target devices
<dtz> commits from yester-year return to haunt
<hodapp> telent[m]: that looks like a wonderfully cheap router though. I was at a job where we used a $15 TP-Link router for everything but that was horribly limited
<Ralith> shlevy: compiler-rt is currently installed as part of llvm-the-library, whereas for *san to function correctly (at least with libc++) it must be installed as part of clang; if the only reason for the current state of affairs was standalone build brokenness, great, I'll fix it
<dtz> Ralith: j/w what do you mean re:asan not working-- I thought it worked? Does it not? :(
blankhart has joined #nixos
<Ralith> dtz: it works in gcc, I *think* it works in clang/libstdc++, it *may* work in trivial cases of clang/libc++, it absolutely does not work in advanced cases because the headers that define its API are not in the search path
<shlevy> Ralith: I think that's the only reason, yeah
<dtz> (I.. have used it to build Nix + handful of nix deps, maybe I have some magic somewhere I've forgotten was needed....)
<dtz> but okay
<Ralith> various important libraries also end up somewhere funny but I have no idea how magic clang is about finding those
<Ralith> dtz: using libc++?
<Ralith> I think if you use libstdc++ it gets the gcc stuff
astiles has quit [Remote host closed the connection]
<Ralith> and even then you may be getting away with it if the library search is sufficiently magical and you don't use the API
<dtz> I thought using both, although I might have needed to limit the dimensions I was testing-- if you mean it reports wrong/false-positives than maybe I did see that in one configuration or more
astiles has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<dtz> (although I'm happy to see this split up more, so no worries)
<Ralith> no, I mean does not build
<Ralith> the header is the proximate issue if you're using the API, which you may not be
<Ralith> would cite details but gtg for now, can elaborate more next week
coot has quit [Quit: coot]
astiles has quit [Ping timeout: 260 seconds]
Ralith_ has quit [Ping timeout: 255 seconds]
pkill9_ is now known as pkill9
<dtz> ahh okay no I was just using, like, -fsanitize=address lol
mounty has joined #nixos
coot has joined #nixos
ma27 has joined #nixos
TweyII has quit [Ping timeout: 246 seconds]
ryanartecona has quit [Quit: ryanartecona]
ertes has quit [Ping timeout: 248 seconds]
alexteves has joined #nixos
butchery has quit [Remote host closed the connection]
xcmw has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/bca05472a77 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
vaninwagen has quit [Ping timeout: 248 seconds]
mounty has quit [Ping timeout: 240 seconds]
<kreisys> How do I get hydra-queue-runner to run jobs on the localhost?
<kreisys> Do I need to add localhost to /etc/nix/machines?
<kreisys> Feels a bit wonky because that makes nix complain
astiles has joined #nixos
xcmw has quit [Ping timeout: 264 seconds]
<nliadm> how do I install debugging symbols
winem_ has quit [Ping timeout: 268 seconds]
coot has quit [Quit: coot]
ajmccluskey has quit []
ajmccluskey has joined #nixos
astiles has quit [Ping timeout: 256 seconds]
ryanartecona has joined #nixos
<nliadm> oh, there is none because this derivation doesn't seem to build debug symbols :/
<kandinski> how can I install a package that's already in master, but not yet in unstable?
niklob has joined #nixos
periklis has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 255 seconds]
ryanartecona has quit [Quit: ryanartecona]
sanscoeur has quit [Remote host closed the connection]
<symphorien> probably -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/master.tar.gz
<kandinski> symphorien: thanks
niklob has quit [Quit: Leaving]
asuryawa_ has quit [Remote host closed the connection]
zybell_ has quit [Ping timeout: 276 seconds]
ryanartecona has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
xcmw has joined #nixos
Tucky has quit [Remote host closed the connection]
<Ralith> dtz: yeah, the API comes up when you want custom allocators or fancy stack shenanigans to work with it gracefully
<Ralith> slightly esoteric but very important if you want your most sensitive code to be sanitized
seville has joined #nixos
ma27 has quit [Remote host closed the connection]
ertes has joined #nixos
ma27 has joined #nixos
xcmw has quit [Ping timeout: 248 seconds]
knupfer has joined #nixos
hellrazor has quit [Quit: WeeChat 2.1]
astiles has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Alling has joined #nixos
<Alling> How do I make my AirPods work on NixOS with Gnome? I get this error in the journal when I try to connect to them: "a2dp-sink profile connect failed for 24:F6:77:E3:5E:B3: Protocol not available". Seems to have something to do with Pulseaudio. :D
acarrico has quit [Ping timeout: 256 seconds]
<Alling> gchristensen: I'll have a look! Just gonna reboot.
Alling has quit [Client Quit]
xeji has joined #nixos
astiles has quit [Remote host closed the connection]
acarrico has joined #nixos
astiles has joined #nixos
alex`` has joined #nixos
jmeredith_ has joined #nixos
<lo_mlatu> Hello everyone, I want to use pandoc-crossref, but build failed, said pandoc should >= 2.1.3, how do I fix it?
astiles has quit [Ping timeout: 248 seconds]
Fare has quit [Ping timeout: 240 seconds]
Guest51829 has quit [Ping timeout: 260 seconds]
<BlessJah> gchristensen: nope, wasn't that ottidmes or adisbladis[m]?
<gchristensen> oh maybe so
Fare has joined #nixos
<Fare> MichaelRaskin, so I lost anything you may have told me since my last message
teej has quit [Quit: Connection closed for inactivity]
Guest51829 has joined #nixos
winem_ has joined #nixos
sanscoeur has joined #nixos
ThatOtherGuy has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
zduch4c has joined #nixos
<zduch4c> is it safe to delete .nix-defexpr & .nix-profile in my ~?
<srhb> zduch4c: I'm not sure what you mean by that. Do you mean "will they be recreated next time I do X?" and in that case, which X are you thinking of?
<zduch4c> srhb: i dont like having a cluttered ~, and that directory and file are there. I was wondering if deleting them would do any bad to my system
<srhb> zduch4c: Well, you won't have anything from your profile on $PATH anymore, for instance.
<srhb> And you probably won't be able to use your channels.
<srhb> zduch4c: (So no, it's not safe.)
alex`` has quit [Ping timeout: 265 seconds]
<zduch4c> thanks srhb
asuryawanshi has joined #nixos
<ShalokShalom2> srhb: "Basically, a reproducible case along with instructions on what to do to conclude that there's a problem."
zduch4c has quit [Client Quit]
<ShalokShalom2> What in specific is unclear?
<srhb> ShalokShalom2: All of it. I have no idea what you, what you expected to happen and what broke.
<srhb> what you did*, what you expected, what broke
Fare has quit [Ping timeout: 248 seconds]
TweyII has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the join/quits!]
asuryawanshi has quit [Ping timeout: 240 seconds]
alex`` has joined #nixos
infinisil has joined #nixos
vandenoever has quit [Ping timeout: 265 seconds]
seanparsons has quit [Read error: Connection reset by peer]
<ShalokShalom2> There is a clear step by step guide
<ShalokShalom2> If not you, I am sure somebody else is able to follow it
<srhb> ShalokShalom2: You would probably get better responses if it were clear to more people, but that's up to you. :)
jperras has joined #nixos
infinisil has quit [Client Quit]
<ShalokShalom2> Its very simple: Once any user of any other OS installs a package with npm, pip and similar tools, is every single symlink within Nix unusable
<srhb> ShalokShalom2: What symlinks, for instance? How do I reproduce this?
judson has joined #nixos
<ShalokShalom2> ALL
<srhb> ShalokShalom2: When you say "Nix" do you mean /nix/store ?
<ShalokShalom2> As mentioned four times now
<ShalokShalom2> I mean /nix, as already mentioned
TweyII has quit [Ping timeout: 256 seconds]
infinisil has joined #nixos
<ShalokShalom2> Do you read the issues, which you criticise?
<srhb> ShalokShalom2: I know you think you're being clear, but you really aren't and being obnoxious about it will not help you solicit help. :)
TweyII has joined #nixos
<srhb> You could start, for instance, by adding a symlink to the issue, showing what it looks like before things break and what it looks like after things break.
<srhb> It would also help if you tell people specifically what packages to try to install. That is, the actual commands. People will be more likely to test it then.
<ShalokShalom2> All the people who responded to me previously, are very aware of this issue
infinisil has quit [Client Quit]
<ShalokShalom2> And as already stated: For a lot of them, it is actually no issue :)
<ShalokShalom2> So they know exactly, what happens
<ShalokShalom2> Nix breaks when any other package manager does something in /nix
<ShalokShalom2> This is well known
<ShalokShalom2> And again: It is completely unrelated, which package you install
rauno has joined #nixos
winem_ has quit [Ping timeout: 240 seconds]
xAFFE has left #nixos ["Error from remote client"]
<gchristensen> soon, the default installer on Linux and Mac will be with a daemon, which protects against package managers editing in /nix/store
<ShalokShalom2> Which is the very reason, why I spell: Use this package manager by installing any package.
<srhb> OK, up to you :)
<ShalokShalom2> Fine ^-^
<ShalokShalom2> gchristensen: So, they will simply put an error message?
infinisil has joined #nixos
infinisil has quit [Remote host closed the connection]
<ShalokShalom2> When some package tries to edit something in /nix/store?
<ShalokShalom2> except the official nix ones, of course
<LnL> the /nix/store is readonly
<ShalokShalom2> well, obviously not
<ShalokShalom2> LnL: I guess this counts on NixOS
<ShalokShalom2> I am on KaOS
<ShalokShalom2> I simply use your package manager
seanparsons has joined #nixos
unacceptable has quit [Quit: ZNC 1.6.4 - http://znc.in]
<gchristensen> with the new installer, /nix/store is only writable by root, fixing most of the problems where npm / pip install to /nix/store
<LnL> it's readonly everywhere, but on nixos it's a readonly mount for even more protection
<ShalokShalom2> Oh I see.
<gchristensen> the old installer set it up without the daemon, which allows the user who uses it to directly write to the store
<ShalokShalom2> LnL: So, how do I break the system then?
ciastek has quit [Quit: Connection closed for inactivity]
<ShalokShalom2> By installing something with npm, for example
<ShalokShalom2> If its readonly
<LnL> what kind of install is this?
<gchristensen> srhb: for back story, on a daemonless install, if you installed pip from nix then ran `pip install ...` pip would install to /nix/store/...
<judson> Using nix-shell in one of my projects, I'm getting this message: warning: dumping very large path (> 256 MiB); this may run out of memory. I sort of recall seeing that in the builders somewhere, but I'm wondering what's causing that? It seems to be new, after updating my channels recently. Is this related to the "what's pulling in the world?" thing that Eelco talks about so much?
infinisil has joined #nixos
<gchristensen> ShalokShalom2: please run `nix-shell -p nix-info --run "nix-info -m"` and pastebin the esults
<ShalokShalom2> gchristensen: There is no symlink for nix-shell anymore ;)
<ShalokShalom2> And I already uninstalled nix and deleted /nix
lo_mlatu has quit [Ping timeout: 260 seconds]
<ShalokShalom2> Let me reinstall
infinisil has quit [Client Quit]
<gchristensen> ShalokShalom2: install nix a specific way:
zybell_ has joined #nixos
<ShalokShalom2> ok
ryanartecona has quit [Quit: ryanartecona]
<gchristensen> oh, the new installer isn't released yet
<LnL> ShalokShalom2: if it's a single user install the store is owned by your current user, so if a program just ignores the write bit it can still change it
<LnL> eg. cp won't work but cp -f will
<ShalokShalom2> The default install is always a single user install
<ShalokShalom2> well, npm works for sure :D
<ShalokShalom2> gchristensen: Which one do you mean?
<ShalokShalom2> 2.0 is new, iirc?
<ShalokShalom2> Or do you mean a minor release of it?
<gchristensen> Nix 2.0.1's installer provides a flag to use a daemon install
<gchristensen> but it isn't released yet.
<ShalokShalom2> oh I see
infinisil has joined #nixos
rauno has quit [Ping timeout: 265 seconds]
<LnL> ShalokShalom2: /nix/store/*nix-2.0/bin/nix-store --verify --repair --check-contents
<ShalokShalom2> ??
<LnL> that will try to repair the store
drakonis has joined #nixos
<ShalokShalom2> [19:17] <ShalokShalom2> And I already uninstalled nix and deleted /nix
<ShalokShalom2> thanks a lot
hakujin has joined #nixos
<gchristensen> ShalokShalom2: being rude won't get you very far
<ShalokShalom2> gchristensen: I guess there is a prerelease?
xeji has quit [Quit: WeeChat 2.0]
<gchristensen> there isn't
<drakonis> chill out dude
<ShalokShalom2> gchristensen: I consider it as rude to get ignored for one time after the other
<drakonis> is this your first time on irc?
<ShalokShalom2> No
<drakonis> then chill out a bit
blankhart has quit [Ping timeout: 240 seconds]
<gchristensen> ShalokShalom2: I'll PM you.
jperras has quit [Ping timeout: 268 seconds]
astiles has joined #nixos
<infinisil> Huuuuh, why do I get "connection refused" when doing `ssh localhost` in the new nixos-unstable? :/
<nicl_l> infinisil: is there a test for that in the release channel?
<Ralith> Judson: I usually see that when I have src set to nonnull in the shell derivation, which isn't generally useful
<srhb> infinisil: What does localhost resolve to?
<infinisil> nicl_l: probably not
jperras has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<Ralith> not sure why it arises, but just set src to null and it will likely go away
<infinisil> srhb: I'd think 127.0.0.1, i haven't done any weird hosts stuff
<symphorien> Judson: usually src=./. where . contains big files
<infinisil> I already booted into an older eneration, can't verify rn
rauno has joined #nixos
<srhb> infinisil: I've had this happen with ipv6 resolution, hence the question
<nicl_l> The answer as to what "localhost" means is so complicated that an RFC was written to fix the problem by a Google engineer.
<nicl_l> That provides all just the justification I need to never refer to "localhost" as such. It's just asking for trouble. It's like running Gentoo :P
<clever> infinisil: do ssh -v localhost
taktoa has joined #nixos
<Ralith> Judson: I often have a shell derivation defined by overriding the package derivation to null out src and add some tools/env vars/etc
<gchristensen> a directory name in Linux can contain anything except a null byte and a /, right?
<infinisil> I'll have a closer look once i fixed my openssh not starting due to a typo in the config :)
<Dezgeg> gchristensen: correct
<gchristensen> Safe (tm) -- thanks Dezgeg!
jgt has quit [Ping timeout: 240 seconds]
seppellll has quit [Quit: seppellll]
<slabity[m]> Is there any documentation on the internals of NixOS? I'm looking for what happens on a step-by-step level when I call `nixos-rebuild`
<slabity[m]> I'm interested in making a 'Linux From Scratch' manual that integrates Nix to make it easier for people to build.
<pmade> With all of the bikeshedding going on over encrypting files in the nix store, how are people working around this? In other words, without builtins.encryptString, is there a way to shell out and encrypt a string before it goes into the nix store?
<srhb> slabity[m]: nixos-rebuild is a quite short shell script. It might be worth going through it and asking questions to the specific steps that are not clear :)
seanparsons has quit [Read error: Connection reset by peer]
<slabity[m]> srhb: Oh, okay. I did not realize it was a shell script.
<srhb> slabity[m]: No, I was surprised that first time as well. :D
lo_mlatu has joined #nixos
<srhb> slabity[m]: From your scope I guess activate might be the most interesting part.
Alling has joined #nixos
<srhb> slabity[m]: (Which is also in a shell script, switch-to-configuration)
<Alling> gchristensen: bluetoothd[608]: connect error: Permission denied (13) kernel: Bluetooth: Inquiry failed: status 0x0c bluetoothd[608]: connect error: Too many levels of symbolic links (40)
<srhb> Oh, no, that;s perl
jgt has joined #nixos
<srhb> Still quite readable :)
<Alling> gchristensen: Bit hard to post journal output here but ... I have no luck with bluetoothctl either ... "Failed to connect: org.bluez.Error.Failed"
asuryawanshi has joined #nixos
unacceptable has joined #nixos
seppellll has joined #nixos
<ShalokShalom2> gchristensen: What is the reason to prefer a non-daemon installation?
<ShalokShalom2> So, eg why set an optional flag for the daemon, instead of installing it by default
<gchristensen> I have no reason to prefer a non-daemon instnallation
seanparsons has joined #nixos
<gchristensen> ah
<symphorien> ShalokShalom2: if you are not root
<ShalokShalom2> Do you see any technical reason for it?
<gchristensen> 2.0.0 was released non-daemon, so changing the installer so drastically in a point release is too fast
<ShalokShalom2> Oh I see
<gchristensen> 2.1.0 will default to daemon
<ShalokShalom2> I am interested to ship packages with Nix to our community
<ShalokShalom2> And I am very interested into a setup that avoids this issue with the symlinks
<ShalokShalom2> I guess there are other benefits as well?
<ShalokShalom2> Root is totally fine
<ShalokShalom2> So, can I simply change the 2.0.1 flag to install the daemon by default?
<ShalokShalom2> for myself
Lisanna has joined #nixos
<Ralith> BlessJah: these seem like problems with sh being stringly typed, more than anything
jmeredith_ is now known as jmeredith
<Lisanna> if I'm using types.submodule with mkOption outside of NixOS, what function do I pass a value of that type through to have it typecheck it and process defaults?
<zybell_> Alling:It is because the kernel devs choose to check for looping in symlink resolution,which is ok,but instead of (ch)using the correct 1step2step resolution they set hard limits as well iteratively as recusively. Where especially the recursive limit (8 iirc) is set ridicuosly low.
<Alling> zybell_: How does that relate to connecting a pair of AirPods? ^^'
jgt has quit [Ping timeout: 256 seconds]
<BlessJah> Ralith: actually it's POSIXs exec family that's stringly typed, as well as C (and arguments to main)
<Ralith> BlessJah: C is not stringly typed, no; I would certainly recommend care when processing arguments, but it is not difficult to avoid shell processing, which leaves few gotchas
<rain1> are these problems fixable?
TweyII has quit [Ping timeout: 265 seconds]
seppellll has quit [Quit: seppellll]
ryanartecona has joined #nixos
<BlessJah> Ralith: I meant char** argv is stringly
<rain1> yes there's no difference between flags, paths and text that you give to a command line
<rain1> that's why they can get mixed up or misinterpreted, like a file name starting with -
<judson> Thanks, Ralith and symphorien. That was exactly my problem.
humanoyd has quit [Quit: WeeChat 2.1]
pie_ has joined #nixos
<ShalokShalom2> I follow the install instruction by running the install script and creating the dir in /
<ShalokShalom2> now, this dir is empty and the tutorial seems to assume that there is data in
<ShalokShalom2> I can remind that I have to run any other command before, while this seems not to be part of the tutorial yet?
<ShalokShalom2> something with adding a mirror server or so?
Fare has joined #nixos
<zybell_> Alling:If you run a distribution that depends heavily on symlinks (as nixOS) you should be aware of the limitations and assumptions. Maybe you need to recompile the kernel with higher limits,maybe nixos needs to patch the kernel to make the limit configurable, maybe replace a symlink to a symlink with a hardlink to that symlink. Idk the sitution, but the (unix)socket of the bluezd seems to be safely locked behind to many symlinks in its
<zybell_> dirname.
<ShalokShalom2> ah, channels, right
drakonis has quit [Read error: Connection reset by peer]
<gchristensen> seems weird, because I use bluez and bluetooth headphones just fine in a2dp mode
<ShalokShalom2> cool, nix-channel: command not found
<ShalokShalom2> once again :D
lo_mlatu has quit [Ping timeout: 248 seconds]
<Dezgeg> actually the "Too many levels of symbolic links" might not refer to symbolic links at all but to whatever the bluetooth layer uses the error code ELOOP for
<ShalokShalom2> reinstalled a third time, works now, thanks
<Dezgeg> which seems very likely given that google gives non-NixOS results about the exact same error
xcmw has joined #nixos
kisik21 has joined #nixos
<Dezgeg> case HCI_REPEATED_ATTEMPTS: return ELOOP;
alexteves__ has quit [Ping timeout: 265 seconds]
alex`` has quit [Ping timeout: 276 seconds]
xcmw has quit [Ping timeout: 240 seconds]
<hodapp> "No matching distribution found for numpy<=1.13.3,>=1.8.2 (from mxnet==1.1.0)" uhhh... cool. guess I'll go pin a bunch of versions because some library felt the need to stick upper bounds on things
xcmw has joined #nixos
<zybell_> Dezgeg:If the prog came to the point having a connect with bluezd I would entertain a bluetooth-related reason for this error. But since the program fails the connect (see next error)I would assume more probability for a filesystem-related cause.
<Dezgeg> no
<kisik21> My xfce4-panel cannot save its config for some reason. Config directory is clearly writable. But when I try to save, it says "(xfce4-panel:16025): xfce4-panel-CRITICAL **: panel-application.c:1250 (panel_application_save): expression 'XFCONF_IS_CHANNEL (channel)' failed.", and shows an empty panel after reload, meaning it does not save the configuration layout.
<Dezgeg> it's bluetoothd which printed the "Too many levels of symbolic links" error to the log
<kisik21> What do you think about it?
<hodapp> hmm, if I have something made with buildPythonPackage can I override 'version' and 'src' easily or must I copy the entire derivation?
<hodapp> all I'm trying to do is knock numpy a few versions back so this other package quits bitching...
<zybell_> I had read it to be the client. Sorry that I missed it.
astiles has quit [Remote host closed the connection]
xcmw has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
nicl_l has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 264 seconds]
<srid> how do I replace hibernate with suspend on lidclose? (chrome misbehaves after wakeup from hibernate)
<Alling> zybell_: Should I really [be aware of the limitations and assumptions] though? While interesting, I would not consider such knowledge about the Linux kernel and NixOS something I expect an end-user to possess. Recompiling the kernel with a modified symlink depth limit sounds difficult even to me, and I am not a complete noob. Hm. I wonder why this is not mentioned in the wiki about Bluetooth. Shouldn't pretty much everyone have the sam
<foldingcookie> Alling: yeah, I have a hard time believing symlink depth is your problem
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b5fd3a0bc70 (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
kisik21 has left #nixos [#nixos]
<Alling> foldingcookie: I'm more inclined to suspect some kind of permissions issue.
<elvishjerricco> Alling: FWIW, i recommend blueman for bluetooth stuff. bluetoothctl technically worked, but gave me a lot of UX issues (like the error you received) that were difficult to work around. blueman-manager is a GUI that does roughly the same thing
<hodapp> does NIX_CFLAGS_COMPILE apply only to C code? I am trying to figure out the 'right' way to add a compile-time flag for stdenv.mkDerivation
<hodapp> and haven't the slightest idea where to look up something like this
lo_mlatu has joined #nixos
<hodapp> but the code is, I believe, both C and C++ in this CMake build
ertes has quit [Ping timeout: 240 seconds]
<symphorien> hodapp: you can export NIX_DEBUG=1 to see what the wrapper really adds
<Alling> elvishjerricco: Thanks! I would prefer to be able to use Gnome's Bluetooth GUI though. Do you think that would be possible?
asuryawanshi has quit [Remote host closed the connection]
<elvishjerricco> Alling: No idea, sorry
asuryawanshi has joined #nixos
<hodapp> symphorien: NIX_DEBUG=1 appears to have done absolutely nothing
sigmundv has quit [Ping timeout: 260 seconds]
<hodapp> and this build has to go through a bunch of CUDA bullshit before it even gets to the "real" C++, it looks like
<symphorien> hodapp: is the build intercepting stderr ?
<hodapp> symphorien: I have no idea, it's just a CMake build
<hodapp> all I know about it is that it's a fucking train-wreck
<hodapp> and it is for some unknown reason completely failing to point the resultant library at libomp.so
<symphorien> hum I don't speak cmake unfortunately
<hodapp> is there any sort of idea where libomp.so is supposed to be in a system?
<symphorien> nix-locate says llvmPackages.openmp.out 870,752 x /nix/store/l59pmfwgfx0xldzmd4ywzwmyc8m5ppnc-openmp-5.0.1/lib/libomp.so
ma27 has quit [Ping timeout: 276 seconds]
<hodapp> hmmmm
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<hodapp> the CMake build claims it already found OpenMP 4.5 and I don't have that package installed
alex`` has joined #nixos
s33se has joined #nixos
s33se has quit [Client Quit]
kisik21 has joined #nixos
<kisik21> How to disable xfdesktop in xfce+i3 session?
<clever> hodapp: nix doesnt care about what is "installed" currently
<hodapp> clever: not sure why that's relevant
alex`` has quit [Ping timeout: 246 seconds]
<clever> hodapp: nix will autoamtically fetch openmp and provide it to the build
<clever> and it wont be visible as installed from outside the build
<hodapp> clever: this doesn't explain why libomp.so is nowhere present on my system
Izorkin_ has joined #nixos
<clever> and you searched all of /nix/store/?, maybe the cmake test for it is faulty
<hodapp> yes, I searched all of /nix/store
<clever> check the cmakelists.txt source to see how its finding openmp
alex`` has joined #nixos
<hodapp> whatever "find_package(OpenMP REQUIRED)" is
kisik21 has left #nixos [#nixos]
<tokudan[m]> seems that hydras disk is full: VBoxManage: error: VMDK: cannot write compressed data block in './nixos-18.03.132082.bca05472a77-x86_64-linux-disk001.vmdk' (VERR_DISK_FULL) (from https://hydra.nixos.org/build/73015232/nixlog/1)
Izorkin has quit [Ping timeout: 256 seconds]
<clever> tokudan[m]: page wont load, postgresql error, likely due to low disk space, lol
<tokudan[m]> i can reload the page just fine
Izorkin_ has quit [Ping timeout: 248 seconds]
lo_mlatu has quit [Ping timeout: 240 seconds]
obadz- has joined #nixos
kreisys has quit [Read error: Connection reset by peer]
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
trcc has joined #nixos
<trcc> anyone got a link to a basic haskell project setup with nix?
spear2 has joined #nixos
ottidmes has joined #nixos
Sonarpulse has quit [Ping timeout: 264 seconds]
fragamus has joined #nixos
astiles has joined #nixos
arianvp2 has joined #nixos
<arianvp2> what is the difference between `pkgs.fetchurl` and `builtins.fetchurl` ?
<ShalokShalom2> hi there
vandenoever has quit [Read error: Connection reset by peer]
<ShalokShalom2> i see it is common to upload new versions of a software, instead of replacing the previous one
<ShalokShalom2> does this count in the infinity?
<ShalokShalom2> or simply so long as other packages point to it as a dependency?
<ShalokShalom2> and I suggest to name the initial package also with the version number, since otherwise is it very likely, that newbies choose the oldest one
<MichaelRaskin> The attribute without version is for the version we are least scared to use by default.
<MichaelRaskin> As a dependency for other builds.
frank87 has quit [Remote host closed the connection]
astiles has quit [Ping timeout: 264 seconds]
frank87 has joined #nixos
<MichaelRaskin> arianvp2: I think the builtin is considered to fetch in evaluation-time, so it can optionally fetch without pre-specifying the hash.
<MichaelRaskin> If I remember correctly
<judson> Huh. I'm trying to set up a shell.nix for iovisor/bcc. It seems that {pkgs ? import <nixpkgs> {}}: isn't enough - there's no "kernel" attribute on that pkgs.
<judson> Do I need to specify the system or something?
<judson> Also: looking forward to the problem that I need the pkgs to be the current NixOS pkgs, not my user channel.
<MichaelRaskin> What is kernel? there is linux_latest
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
kiloreux_ has quit [Quit: Leaving]
<judson> I started by copying the default.nix from os-specific/linux/bcc ... so whatever that means by kernel?
<ShalokShalom2> boah, again:
<ShalokShalom2> ➜ nixpkgs git:(master) ✗ nix-build . -A fsharp41
<ShalokShalom2> zsh: command not found: nix-build
<clever> Judson: kernel packages have to be loaded by a special function in all-packages.nix
robstr has quit [Quit: WeeChat 1.9.1]
<ShalokShalom2> i did not touch anything now, simply installing nix through your script
<clever> Judson: and that function is ran on each kernel version, to generate a package set that compiles the same module against several kernels
<judson> clever, bcc isn't a module, but it has to build against kernel functions.
<clever> its probably making use of similar features
ryanartecona has quit [Quit: ryanartecona]
vandenoever has joined #nixos
<clever> grep all-packages.nix to see where its loaded
<clever> and what arguments are given to it
Sonarpulse has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
<judson> it's within linuxPackagesFor = kernel: lib.makeExtensible (self: with self; {
<ShalokShalom2> MichaelRaskin: least scared?
<ShalokShalom2> mono 4.0 is from 2015
simukis has quit [Quit: simukis]
<ShalokShalom2> i would be very scared, using this :D
kreisys has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
ryanartecona has joined #nixos
ottidmes has quit [Quit: WeeChat 2.0]
brodul has quit [Remote host closed the connection]
ryanartecona has quit [Client Quit]
<judson> Okay, that was easier than I imagined.
orivej has joined #nixos
<ShalokShalom2> So, is there a standard, when removing a package?
<arianvp2> MichaelRaskin: ah I see
<arianvp2> thanks
<ShalokShalom2> To default to a package which is not maintained since years and contains known security holes is proabably a less ideal situation
astiles has joined #nixos
<infinisil> I have this rather easy PR of mine which fixed a type to enable you to override the environment of a systemd service
<infinisil> Could somebody merge it? https://github.com/NixOS/nixpkgs/pull/38356
<infinisil> LnL and now I too ran evaluations of all tests and there were no errors because of this change
<Drakonis[m]> lmao this is a really big pile of automated pull requests
<gchristensen> cc LnL
<LnL> infinisil: I read evaluation ... errors and thought I broke something :p
<samueldr> this'll sound stupid, but how do I pass zero (0) -v arguments to a nix tool to get "Errors only" verbosity?
astiles has quit [Ping timeout: 248 seconds]
<gchristensen> just pass negative v's (I say, jokingly, because I don't think you can do it)
<infinisil> LnL: Heh, I too got a tiny shocker when doing a nix-instantiate and getting a red warning (didn't specify root)
<samueldr> exactly!
<gchristensen> samueldr: --v ')
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
jperras has joined #nixos
ariutta has joined #nixos
astiles has joined #nixos
<gchristensen> samueldr: maybe you could send a pr adding --quiet to the docs? :)
frank87 has quit [Remote host closed the connection]
<samueldr> I could!
frank87 has joined #nixos
<LnL> infinisil: I'm still wondering if it's maybe a bit too restrictive, since int or even a list/set currently works
alex`` has joined #nixos
<dtz> samueldr: now-dtz says you're very welcome! :)
<infinisil> LnL: I think it's not too bad throwing an error when somebody tries to use an int or so for an env var
pkill9 has quit [Ping timeout: 240 seconds]
<infinisil> You even get a nice type mismatch error if you do
<infinisil> And environment variables are strings after all, converting them to one yourself makes sense
<LnL> infinisil: right guess it's fine, was thinking about that because I wonder if it could be backported
<infinisil> Ah yeah backporting would be nice, it is an actual bug
Fare has joined #nixos
<LnL> I'm pretty sure nobody expects (or depends) on the current behaviour
<infinisil> Yeah
<LnL> might even fix stuff :)
sigmundv__ has quit [Ping timeout: 248 seconds]
<infinisil> I don't see how, but sure :P
coot has joined #nixos
<infinisil> LnL: Thanks!
astiles has quit [Remote host closed the connection]
lo_mlatu has joined #nixos
seppellll has joined #nixos
astiles has joined #nixos
<infinisil> (Backport still incoming I hope)
goibhniu has joined #nixos
ryanartecona has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
astiles has quit [Read error: Connection reset by peer]
astiles has joined #nixos
pkill9 has joined #nixos
ryanartecona has quit [Ping timeout: 260 seconds]
seppellll has quit [Quit: seppellll]
kai_w has joined #nixos
mounty has joined #nixos
kreetx has quit [Ping timeout: 256 seconds]
sanscoeu_ has joined #nixos
lo_mlatu has quit [Ping timeout: 264 seconds]
sanscoeur has quit [Ping timeout: 260 seconds]
sehqlr has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
* hodapp twiddles thumbs while yet another CUDA thing rebuilds...
zybell_ has quit [Ping timeout: 240 seconds]
v0latil3 has quit [Read error: Connection reset by peer]
v0latil3 has joined #nixos
Guest51829 has quit [Quit: Konversation terminated!]
knupfer has quit [Ping timeout: 265 seconds]
asuryawanshi has quit [Ping timeout: 264 seconds]
<srhb> hodapp: *pat pat* You have it rough these days. :P
<mpickering> Can someone set off the build again for "saga_2_3_2" please https://github.com/NixOS/nixpkgs/pull/39125
jperras has quit [Quit: WeeChat 2.1]
<srhb> mpickering: Done.
<mpickering> Thanks a lot. One day I will be trusted enough to do it myself ;)
krey has quit [Ping timeout: 256 seconds]
<srhb> mpickering: I'm sure you can just ask gchristensen :-)
<MichaelRaskin> I would advise not to just ask, but to ask in the form of a pull request against ofborg
<srhb> Good point. gchristensen is a busy person! :-)
<gchristensen> MichaelRaskin, srhb++
<gchristensen> mpickering++
jperras has joined #nixos
<hodapp> srhb: hey, I finally got it working at least, and with CUDA
<srhb> hodapp: Yay, good job! :D
<hodapp> now what was I even trying to do in the first place?
<srhb> hodapp: Gathering the shreds of your sanity.
* hodapp goes to search for another yak to shave
<srhb> :-)
astiles has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astiles has joined #nixos
woodson has joined #nixos
coot has quit [Quit: coot]
<woodson> Hello, I installed nix on my ubuntu system and I am not too sure what happen but now I am unable to execute any of the nix commands
<woodson> I am also getting this /home/woodson/.nix-profile/etc/profile.d/nix.sh: No such file or directory
<woodson> and if I try to reinstall it I get this error message after the download
<woodson> mkdir: cannot create directory ‘/nix/var/nix/gcroots/per-user/woodson’: Permission denied
<woodson> can anyone help?
knupfer has joined #nixos
lord| has joined #nixos
NightTrain has joined #nixos
sehqlr has joined #nixos
sehqlr has quit [Client Quit]
sehqlr has joined #nixos
<gchristensen> hey woodson, I can try, but I'm a drink in and my hands hurt. maybe you, me, and the rest of the channel can sort it out
<gchristensen> woodson: let's start with: `echo /nix/store/nix-*`
<woodson> that just echoes /nix/store/nix-*
<gchristensen> oops, echo /nix/store/*-nix*
<woodson> ok I got a big output
<gchristensen> maybe put in on a pastebin like http://nixpaste.lbr.uno/
random-nixor has joined #nixos
<woodson> gchristensen: here you http://nixpaste.lbr.uno/oj1OyRge
<woodson> this nixpaste tool is actually really cool
<random-nixor> Guys: is there a way to do meta-programming in nix: https://gitter.im/NixOS/chat?at=5ada5dbe1130fe3d36fc38de
<woodson> generated this from my command line sweet
<gchristensen> woodson: hmm how long have you had Nix installed?
<woodson> gchristensen: hmm, not too long ago
knupfer has quit [Ping timeout: 265 seconds]
<woodson> maybe a month and half now?
<gchristensen> ok, did you do anything recent you suspect might have triggered this?
<woodson> Yes, I did a power shutdown
<gchristensen> hrm like a forced shutdown?
<woodson> yes, forced shutdown
drakonis has quit [Read error: Connection reset by peer]
seville has quit [Quit: Leaving]
<gchristensen> can you paste the output from `env`, and also the output from `ls -la ~/.nix*` and `ls -la /nix/var/nix/profiles/`
<woodson> yes, give me a sec
<woodson> Here is env http://nixpaste.lbr.uno/oj1OyRge
<gchristensen> that doesn't look like the output of env
freeman42x]NixOS has joined #nixos
<woodson> sorry
hiratara has quit [Ping timeout: 276 seconds]
xeji has joined #nixos
hiratara has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
ottidmes has joined #nixos
maingo has joined #nixos
<gchristensen> woodson: ok, it looks like your profile is at /nix/var/nix/profiles/default but your profile is trying to use profiles/woodson. that is strange. can you ls -la /home/woodson/.nix-profile/etc/profile.d/nix.sh and also cat /home/woodson/.nix-profile/etc/profile.d/nix.sh
<woodson> ls -la /home/woodson/.nix-profile/etc/profile.d/nix.sh <-- outputs
<woodson> ls: cannot access '/home/woodson/.nix-profile/etc/profile.d/nix.sh': No such file or directory
<gchristensen> ah of course it would
<woodson> gchristensen: I dont remember removing it...
lo_mlatu has joined #nixos
astiles has quit [Remote host closed the connection]
<gchristensen> woodson: can you paste the contents of ~/.bash_profile ~/.bash_login ~/.profile
<ottidmes> random-nixor: although I am not aware of any reflection support like that, you could probably achieve your goal with some tricks and by leveraging the module system.
ryanartecona has joined #nixos
astiles_ has joined #nixos
<woodson> gchristensen: connection dropped
<woodson> here
<gchristensen> woodson: ok I'm not sure what happened, but here is what I think you need to do:
<gchristensen> actually ... one more thingg
<gchristensen> cat /nix/var/nix/profiles/default/etc/profile.d/nix.sh
astiles_ has quit [Ping timeout: 268 seconds]
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
alex`` has quit [Quit: WeeChat 2.1]
kisik21 has joined #nixos
<gchristensen> woodson: when you tried to reinstall, did you first delete your /nix directory?
<woodson> gchristensen: no, I did not
<woodson> I do delete will I not lose all the env that I got?
<woodson> If I delete it**
<gchristensen> you would
<gchristensen> ls -la /nix/var/nix/gcroots/per-user ? unfortunately I'm running out of steam. it has been a long day.
<woodson> ya, I thought that I could just reinstall it and it would skip whatever is already existing
Alling has quit [Ping timeout: 260 seconds]
<woodson> gchristensen: One, thing I know for sure is that the nix bin path is not set
<woodson> because nix-shell, nix-env
<woodson> none of these execute
astiles has joined #nixos
<gchristensen> right. so let's try just: `source /nix/var/nix/profiles/default/etc/profile.d/nix.sh
<woodson> mkdir: cannot create directory '/nix/var/nix/gcroots/per-user/woodson': Permission denied
<woodson> stat: cannot stat '/nix/var/nix/gcroots/per-user/woodson': No such file or directory
<woodson> Nix: WARNING: bad ownership on /nix/var/nix/gcroots/per-user/woodson, should be 1000
<woodson> this is the output I was getting when .profile would try to load
<woodson> but I executed a nix-env --switch-profile root
<woodson> and then it stopped giving me that error
<gchristensen> ohh how did you come to decide to run that nix-env command?
<woodson> I was searching online
sanscoeu_ has quit [Remote host closed the connection]
m0rphism has quit [Quit: WeeChat 2.0]
<gchristensen> cool :) nice, I'll take it I guess
<woodson> but after executing that
astiles has quit [Remote host closed the connection]
<woodson> none of the command work
astiles has joined #nixos
m0rphism has joined #nixos
<woodson> This is what I looked at
<woodson> I thought that if I could set my profile to root
<woodson> maybe source .profile
<woodson> would stop giving me the error
kisik21 has left #nixos [#nixos]
m0rphism has quit [Client Quit]
<woodson> I dont understand why it doesnt have permission mkdir: cannot create directory '/nix/var/nix/gcroots/per-user/woodson': Permission denied
<gchristensen> how about you chmod 777 /nix/var/nix/gcroots/per-user
astiles has quit [Remote host closed the connection]
m0rphism has joined #nixos
trcc has quit [Remote host closed the connection]
m0rphism has quit [Client Quit]
xy2_ has quit [Ping timeout: 264 seconds]
5EXAAYECZ has joined #nixos
<woodson> I had to do a sudo
rain1 has quit [Quit: Leaving]
<woodson> source /nix/var/nix/profiles/default/etc/profile.d/nix.sh
<woodson> executed without failing
5EXAAYECZ has quit [Remote host closed the connection]
<gchristensen> cool
<woodson> but I still cannot execute nix-shell
<woodson> nor nix-env
<gchristensen> ok
<gchristensen> /nix/var/nix/profiles/default/bin/nix-env -iA nix
jgt has joined #nixos
m0rphism has joined #nixos
zybell_ has joined #nixos
<woodson> error: attribute 'nix' in selection path 'nix' not found
hiratara has quit [Quit: ZNC - http://znc.in]
<gchristensen> right. nix-env.
<gchristensen> /nix/var/nix/profiles/default/bin/nix-env -iA nixpkgs.nix
<woodson> error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': No such file or directory
<woodson> (use '--show-trace' to show detailed location information)
<gchristensen> O.o
<gchristensen> ls -la /nix
lo_mlatu has quit [Ping timeout: 260 seconds]
astiles has joined #nixos
hiratara has joined #nixos
jonjitsu has quit [Ping timeout: 268 seconds]
<gchristensen> I ... am not sure what is going on.
<woodson> I also tried this /nix/var/nix/profiles/default/bin/nix-shell -A env
<woodson> error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I),
<gchristensen> anyone else around able to help debug this?
<woodson> gchristensen: thanks for trying!
<woodson> appreciate
<ottidmes> I could try, but I have little to no experience with Nix outside NixOS
<woodson> ottidmes, using it on ubuntu
<woodson> and I am not sure why all more nix command working
<ottidmes> woodson: I have used Nix on Ubuntu (WSL) and Arch Linux before
<Rusty1_> try reinstalling it ? or would that destroy something?
<woodson> well, I have some env set
<woodson> I wouldnt want to destroy them because it took forever downloading everything
<woodson> If its the only solution I will but ya
<ottidmes> woodson: Well, you could try and do what Rusty1_ suggested, but you do not need to destroy the /nix/store for that
vandenoever has quit [Ping timeout: 264 seconds]
<gchristensen> since we started our conversation a new version of Nix and the installer was uploaded
gary_host has joined #nixos
<gchristensen> but I don't think it had any fixes for what you're experiencing
<ottidmes> gchristensen: Is this that 2.01 version you talked about?
gary_host is now known as guest39621
<gchristensen> 2.0.1, yeah
<gchristensen> with "curl https://nixos.org/nix/install | sh -s -- --daemon" it'll even install the Nix daemon :)
xeji has quit [Quit: WeeChat 2.0]
<guest39621> is that how you upgrade to nix 2.0 as well?
<guest39621> I can't figure out how to upgrade on mac os
<ottidmes> woodson: considering that I would definitely try reinstalling, with --daemon set as above
krey has joined #nixos
<ottidmes> gchristensen: if you keep what is in /nix/store but remove the rest, this would remove the db as well, is nix than smart enough to reuse what was still in /nix/store?
<woodson> this is the output i got http://nixpaste.lbr.uno/LwcNZAJ4
<gchristensen> the installer insists quite strongly you delete it all
<woodson> it seems to have download correctly
<woodson> but then failed at the end
<woodson> For some reason, $NIX_REMOTE is set. It really should not be set
<woodson> before this installer runs, and it hints that Nix is currently
<woodson> installed. Please delete the old Nix installation and start again.
ma27 has joined #nixos
<ottidmes> woodson: I would first try and purge all existing Nix stuff from your system, all .nix-* folders in both your user and root and remove /nix, and then make sure you start a clean shell (no outdated env vars), and then try reinstalling
blankhart has joined #nixos
<woodson> ottidmes and as long as the store is there
<woodson> I wont lose my previous env?
<ottidmes> woodson: hmm, then you would not want to remove /nix, that is where everything is stored
<ottidmes> woodson: problem is, considering you had permission errors and other stuff happening inside /nix, this might also mean that if you keep it, the problems might persist
<ottidmes> woodson: but you could of course first try keeping /nix but still removing the rest (the nix stuff in /home/* and /root)
<ottidmes> woodson: You could also try and creating a tarball of your current stuff first
Fare has joined #nixos
justanotheruser has joined #nixos
ocharles has quit [Ping timeout: 256 seconds]
<Rusty1_> woodson: does id show you as in nixbld group?
<woodson> Rusty1_, sorry whats that ?
das_j has joined #nixos
<Rusty1_> in a terminal type: id, does nixbld group list?
mkoenig has joined #nixos
ocharles has joined #nixos
ajs124 has joined #nixos
<woodson> uid=1000(woodson) gid=1000(woodson) groups=1000(woodson),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),113(lpadmin),128(sambashare),999(docker)
<Rusty1_> if i read the installer output , it looks like a group is created, wondering if its still there and you're in it
<das_j> Hey everyone, I'm currently trying to write a module with an attribute set of strings. So the type for the option is lib.types.attrsOf lib.types.string. However, when trying to assign something to the attribute set, I get an error message because it seems like the option is not defined.
<ottidmes> so if the building of the stuff in your /nix/store took very long, or you have a slow connection, you could do: https://nixos.org/nix/manual/#ssec-copy-closure to export the closure of your profile to some file, to import after you did a fresh install
<gchristensen> woodson: (the nixbld group is created for multi-user only, and no regular users should be in nixbld)
<gchristensen> Rusty1_: (the nixbld group is created for multi-user only, and no regular users should be in nixbld)
<ottidmes> das_j: I think string was deprecated and is now str
guest39621 has quit [Quit: Page closed]
<das_j> ottidmes: Thanks, but the problem persists even with str :/
<woodson> where is this nixbld group?
<woodson> I dont see it
<ottidmes> das_j: yeah I checked, its just mentioned as a comment above string, its still there, string concatenates, while you normally would want just a single string of lines type
<ottidmes> woodson: that is used as the build user in a multi-user setup, but the normal nix outside NixOS defaults to a single user setup, so it should be normal that you do not have it
<das_j> ottidmes: So you mean I should use lib.types.attrsOf lib.types.lines instead?
<mpickering> How can I specify a package set for why-depends to use?
<ottidmes> das_j: sorry, of=or, but about your problem, your definition is correct, but you probably use it wrong
<das_j> I'll just create another gist
<ottidmes> das_j: please do, because this is not enough info, I am afraid
<ottidmes> das_j: huh, yeah that is not going to work, so options is like config, so if you define something inside options like you do with domains, you could set the option via config.domains (i.e. a direct correspondance between options.domains), you probably want to have options.certs = { ... } so that you can set certs = { ... } in your config
<dtz> YAAAYYYY 2.0.1
<dtz> haha
<dtz> :D:D:D
<gchristensen> do the dance, dtz
<ottidmes> das_j: remember that the module system has multiple ways of defining a module and that if you have a config of { certs = { ... }; } this is implicitly converted to { config = { certs = { ... }; }; }
* dtz does the Nix dance
* dtz lambda lambda lambda ~o~
<dtz> good thing we sorted that out before the release
<dtz> else I'd be doing the wrong dance, like a chump!
<dtz> teehee
<krey> where do the Xorg logs live on NixOS?
<ottidmes> krey: /var/log/x-0.log
<das_j> ottidmes: I updated the gist again, this is the full code I have, certs is just a submodule. It seems correct this way, because I can set domains, but cannot set execPost
<das_j> So I suspect the attrs
<krey> ottidmes: I don't have that one. I guess it's /var/log/X.bumblebee.log instead?
<ottidmes> das_j: execPost should be at efcloud = {
<das_j> Oh well
<das_j> Looks like I am blind :/ Thank you so much!
<das_j> It seems to work now
woodson has quit [Ping timeout: 248 seconds]
<ottidmes> das_j: No problem, but some tips, if you want the merge policy to be an error if defined twice, you should use str, or if you want to merge them with a newline, you should use lines, and I would use with lib; and in api with types;
<ottidmes> krey: Not sure, could it be that it depends on the display manager? I am using lightdm. Anyway, if you check the log it should probably have some info in it to determine if it indeed is the correct log
<das_j> ottidmes: Yes, I wasn't aware of the lines type. And yes, with lib; would probably make my life easier
Coherentfox has joined #nixos
<Lears> How can GTK applications have their fonts configured on NixOS? I thought they were supposed to use fontconfig in the absence of gnome, but I'm seeing some awful subpixel rendering that's supposed to be disabled.
<Lears> Turning it off in lxappearance doesn't work either.
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<Ralith> applications may vary; termite is respecting my fontconfig, at least
<das_j> Another question, how can I make a unit automatically start on configuration change without adding it to a target?
<das_j> Do I need to use an activation script for that?
astiles has quit [Read error: Connection reset by peer]
astiles has joined #nixos
sehqlr has quit [Ping timeout: 260 seconds]
<ottidmes> das_j: This maybe: https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E.restarttriggers
ajs124 has left #nixos ["Machine going to sleep"]
<das_j> Yep, this is what I needed, thank you!
Coherentfox has quit []
<kerrhau> Hey, I'm trying to load libsdl from sbcl via cepl, but it errors each time, here's the backtrace: https://paste.pound-python.org/show/X21TekxrqoKHbXeLRB83/
<kerrhau> oh, I've sdl installed
<kerrhau> I'm not sure where sbcl searches for SDL
buckley310 has joined #nixos
das_j has quit [Ping timeout: 260 seconds]
propumpkin has joined #nixos
Sonarpulse has quit [Ping timeout: 256 seconds]
contrapumpkin has quit [Ping timeout: 263 seconds]
endformationage has joined #nixos
<kerrhau> a better question is probably where is libsdl2?
<ottidmes> kerrhau: did you try nix-locate?
<kerrhau> nix-locate?
<Lears> Geh, I just realised I had Xft.rgba: rgb in my ~/.Xresources... Looks like GTK was reading from that.
<ottidmes> kerrhau: found it, it should be in SDL2.out
<ottidmes> kerrhau: I approached it as follows, googled libsdl2 found the actual name of the lib file "libSDL2-2.0.so" and then ran `nix-locate lib/libSDL2-2.0.so`
day|flip has joined #nixos
Lisanna has quit [Remote host closed the connection]
xcmw has joined #nixos
<kerrhau> ottidmes: hm, now I know where it is, the problem is getting sbcl/emacs to recognize it
lo_mlatu has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<ottidmes> kerrhau: I don't use emacs, is it about emacs the program, or some emacs package, if its the former I might help you, if its the latter, you will have to ask others
<kerrhau> it's not about emacs itself but sbcl (the common lisp repl)
<kerrhau> or rather, a common lisp repl
chisui has joined #nixos
kai_w_ has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
kai_w has quit [Ping timeout: 256 seconds]
<krey> my opengl stopped working after upgrading to 18.03. glxinfo "couldn't find RGB GLX visual or fbconfig"
<krey> any ideas on debugging this?
<ottidmes> kerrhau: Can't you just use wrapProgram? Or what is your problem / what do you try to achieve? I checked, and sbcl is already packaged, so I assume you use something in the REPL that is using that particular library. You could also probably use nix-shell for this.