gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<jtojnar> ,locate mrg
<{^_^}> Found in packages: maxima, wordpress, maxima-ecl, maxima-ecl-5_41, pidgin-with-plugins, haskellPackages.hsc3.data
ryantrinkle has joined #nixos
<{^_^}> [nixpkgs] @Alkeryn opened pull request #67417 → ckb-next: use qt5's mkDerivation → https://git.io/fjNjh
wtv_nick has quit [Ping timeout: 245 seconds]
wildtrees has quit [Quit: Leaving]
work_ has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @kalbasit merged pull request #66894 → go: 1.12.7 -> 1.12.9, 1.11.12 -> 1.11.13 → https://git.io/fjFw5
<{^_^}> [nixpkgs] @kalbasit pushed 3 commits to master: https://git.io/fjAeL
drakonis has quit [Quit: WeeChat 2.5]
drakonis has joined #nixos
pie_ has quit [Ping timeout: 250 seconds]
abathur has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjAeY
<{^_^}> [nixpkgs] @matthewbauer merged pull request #66462 → hunspell-dicts: add support for Australian dictionary → https://git.io/fj7Q8
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @Provessor to master « hunspell-dicts: add support for Australian dictionary (#66462) »: https://git.io/fjAeZ
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @marsam opened pull request #67418 → protobuf3_9: 3.9.0 -> 3.9.1 → https://git.io/fjAe4
ng0 has quit [Quit: Alexa, when is the end of world?]
jmeredith has quit [Quit: Connection closed for inactivity]
philr has joined #nixos
phdoerfler has quit [Quit: Leaving.]
thc202 has quit [Ping timeout: 272 seconds]
<jtojnar> ,locate xmu
<{^_^}> Found in packages: xlibs.libXmu.dev, rustPlatform.rustcSrc
phdoerfler has joined #nixos
vika_nezrimaya has quit [Ping timeout: 245 seconds]
jluttine_ has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #67419 → python3Packages.aiodmtpd: 1.2 -> 1.2.1 → https://git.io/fjAeQ
<{^_^}> [nixpkgs] @eadwu opened pull request #67420 → pythonPackages.sqlalchemy-utils: 0.34.0 -> 0.34.2 → https://git.io/fjAe7
tjg1 has quit [Quit: Bye.]
georges has quit [Ping timeout: 244 seconds]
tjg1 has joined #nixos
<jonreeve[m]> Can someone give me a hand with my overlay? I can't seem to get Jupyterlab 1.0 installed for the life of me. I've been trying for months now. I'm thinking of switching to something easier than nixos.
<jonreeve[m]> Here's the discussion I've been having so far: https://github.com/NixOS/nixpkgs/issues/65625
<{^_^}> #65625 (by JonathanReeve, 3 weeks ago, open): Jupyterlab 1.0.4 fails to build, citing missing `tornado` version which exists
jluttine_ has quit [Ping timeout: 258 seconds]
iyzsong has joined #nixos
georges has joined #nixos
<{^_^}> [nixpkgs] @ldelelis opened pull request #67421 → pythonPackages.python-language-server: 0.27.0 -> 0.28.1 → https://git.io/fjAvv
<infinisil> jonreeve[m]: I'm taking a look, hold on
jluttine_ has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
phdoerfler has quit [Quit: Leaving.]
<jonreeve[m]> Cool, thanks
jluttine_ has quit [Ping timeout: 272 seconds]
jluttine_ has joined #nixos
boxscape has quit [Ping timeout: 246 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<jonreeve[m]> This is what I'm working with so far: https://gist.github.com/JonathanReeve/839138f530fb2a3e853f1434b16e7a24
<jonreeve[m]> I guess the issue is that jupyterlab-server requires jsonschema>3, but nearly everything else in python requires v2. But this is the kind of thing that Nix was made for, right? So I should just be able to define a my_jsonschema and have it be a dependency for jupyterlab-server. But I seem to be missing something
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0f395d6faea (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/500931b1f65 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<infinisil> jonreeve[m]: Yeah it should be possible
<infinisil> Still trying
<infinisil> Hm, well I think the python package set needs some changes to allow what's necessary here
<jonreeve[m]> Sounds complicated
<jonreeve[m]> So it's not something that can just be changed in my shell.nix?
oborot has joined #nixos
oborot_ has joined #nixos
alex-v has joined #nixos
<infinisil> jonreeve[m]: Well I made my changes here, I might open a PR for this later (with some changes): https://github.com/Infinisil/nixpkgs/tree/update-jupyterlab
<jonreeve[m]> It looks like globally upgrading jsonschema won't work, since so many other python packages depend on the 2.X version.
<infinisil> Yeah so this is what i need to change before I can PR
<jonreeve[m]> But I can build a 3.X one with a different name, though, and pass it to jupyterlab-server, I just need to get the order right
<infinisil> Well I tried that, but it didn't work, probably because there's sub dependencies using the 2.X version still
<jonreeve[m]> But something's not right when I pass my_jsonschema as a propagatedBuildInput to my_jupyterlab_server. Am I doing the order wrong there?
<infinisil> ANd that multiple levels deep
evax has quit [Ping timeout: 268 seconds]
<infinisil> The order shouldn't matter
<jonreeve[m]> Hmmm I think I see what you mean
<jonreeve[m]> This is a big mess
<infinisil> I think you should first try to build it from my nixpkgs branch (which is master + my commits), because I think you might have some different nixpkgs version which gets you different results
<jonreeve[m]> I'll give it a shot. Thanks
amfl_ is now known as amfl
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 264 seconds]
drakonis has quit [Quit: WeeChat 2.5]
slack1256 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #67418 → protobuf3_9: 3.9.0 -> 3.9.1 → https://git.io/fjAe4
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjAv9
drakonis has joined #nixos
<{^_^}> [nixpkgs] @kalbasit merged pull request #67421 → pythonPackages.python-language-server: 0.27.0 -> 0.28.1 → https://git.io/fjAvv
<{^_^}> [nixpkgs] @kalbasit pushed commit from @ldelelis to master « pythonPackages.python-language-server: 0.27.0 -> 0.28.1 (#67421) »: https://git.io/fjAvd
laalf has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
laalf has joined #nixos
alex-v has quit [Read error: Connection reset by peer]
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
evax has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/500931b1f65 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
alex-v has joined #nixos
alex-v has quit [Client Quit]
alex-v has joined #nixos
alex-v has quit [Read error: Connection reset by peer]
Myhlamaeus has quit [Remote host closed the connection]
alex-v has joined #nixos
Myhlamaeus has joined #nixos
<{^_^}> [nixpkgs] @Infinisil opened pull request #67422 → pythonPackages: Switch to lib.makeScope for `overrideScope` support → https://git.io/fjAfn
<{^_^}> [nixpkgs] @Infinisil opened pull request #67423 → Update jupyterlab → https://git.io/fjAfc
<infinisil> jonreeve[m]: Alright see above 2 PRs :)
mac10688 has joined #nixos
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
<evanjs> jonreeve: Ohhhh you asked over here. Pardon the spam in matrix. Thanks @infinisil!
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/004e9b5b418 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
slyfox has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @teto merged pull request #67382 → luaffi: remove in favor of luaPackages.luaffi → https://git.io/fjNHr
<{^_^}> [nixpkgs] @teto pushed 3 commits to master: https://git.io/fjAfl
slyfox has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
lally has joined #nixos
<infinisil> evanjs: Ah you also need jupyterlab?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<evanjs> infinisil: jonreeve was asking on matrix and I've been waiting on ihaskell to get fixed again and was curious about jupyterlab 1.0. I prefer lab over notebook when possible.
<evanjs> infinisil: Oh, on a completely different note, do you have a template for your private repo secrets? I haven't setup secrets in nix before and was trying to mimic your znc setup
freeman42x has quit [Quit: Leaving]
<infinisil> evanjs: Nah I don't have a template, but there's not too much to it
<infinisil> The most interesting thing is probably the thing to generate a nix expression for all passwords
<infinisil> And that's really just an option `private.passwords = mkOption { type = attrsOf str; default = import ./gen.nix; internal = true; }` and a gen.sh that just writes to gen.nix by querying `pass` for a number of keys
<infinisil> I should move this out of the private repo though and make a nicer module for it
iyzsong has quit [Ping timeout: 250 seconds]
Zer0xp has joined #nixos
chr15 has joined #nixos
<iqubic> Lorri and direnv in emacs is literally the best thing ever.
<iqubic> I have never seen any better nix-shell integration.
<iqubic> Everything is working exactly the way I want it to.
lally has quit [Ping timeout: 248 seconds]
lally has joined #nixos
chr15 has quit [Ping timeout: 245 seconds]
Zer0xp has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @teto pushed commit from @Alkeryn to master « ckb-next: use qt5's mkDerivation »: https://git.io/fjAfS
<{^_^}> [nixpkgs] @teto merged pull request #67417 → ckb-next: use qt5's mkDerivation → https://git.io/fjNjh
alex-v has quit [Ping timeout: 245 seconds]
alex-v has joined #nixos
chr15 has joined #nixos
Myhlamaeus1 has joined #nixos
Zer0xp has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
Myhlamaeus has quit [Ping timeout: 272 seconds]
<evanjs> infinisil: Yeah a public module would be great. Ahhh I need to make the option first, duh. After some fighting with my tired self, I think I have a handle on it now (nixos-option works). Now to set get znc properly configured...
nexgen2 has quit [Quit: Leaving]
endformationage has quit [Quit: WeeChat 2.5]
lally has quit [Ping timeout: 244 seconds]
abathur has quit [Ping timeout: 245 seconds]
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
alex-v has quit [Ping timeout: 246 seconds]
palo1 has joined #nixos
<{^_^}> [nixpkgs] @Provessor opened pull request #67424 → Add large hunspell dicts → https://git.io/fjAfx
evanjs has quit [Quit: WeeChat 2.5]
palo has quit [Ping timeout: 248 seconds]
palo1 is now known as palo
alex-v has joined #nixos
evanjs has joined #nixos
freedan42x has joined #nixos
evanjs has quit [Client Quit]
evanjs has joined #nixos
<hpfr[m]> So there seems to be a nixos option for adding config to logind but not /etc/systemd/sleep.conf? Am I supposed to just change that imperatively? :/
oborot_ has quit [Ping timeout: 245 seconds]
oborot has quit [Ping timeout: 244 seconds]
captn3m0- has joined #nixos
captn3m0 has quit [Ping timeout: 272 seconds]
<hpfr[m]> I guess environment.etc."systemd/sleep.conf"? Lame
alex-v has quit [Remote host closed the connection]
alex-v has joined #nixos
chiiba has joined #nixos
<slack1256> I still don't know why logind is useful...
<{^_^}> [nixpkgs] @jchv opened pull request #67425 → lightspark: init at 0.8.1 → https://git.io/fjAJI
mac10688 has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/500931b1f65 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<hpfr[m]> slack1256: lid switch changes, power key changes
phdoerfler has joined #nixos
<clever> hpfr[m]: acpid already handled those just fine, in the pre-systemd days
alex`` has joined #nixos
phdoerfler has quit [Ping timeout: 246 seconds]
<hpfr[m]> Ok I will look into that, seems like the systemd module should just support all the freedesktop systemd files tho
phdoerfler has joined #nixos
emptyflask has quit [Ping timeout: 268 seconds]
Gigabitten has quit [Quit: Leaving]
<iqubic> How do I run a program from inside my nix-shell.
<iqubic> Isn't there some kind of -p flag.
phdoerfler has quit [Ping timeout: 248 seconds]
<slack1256> nix-shell --command 'ls'.
<slack1256> There is also nix-shell --run 'ls' if you don't need *all* the env variables of a running shell.
<iqubic> thanks
domogled has joined #nixos
<slack1256> np
eof has quit [Quit: eof]
eof has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/af9f401b9a4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
knupfer has joined #nixos
phdoerfler has joined #nixos
evanjs_ has joined #nixos
evanjs_ has quit [Client Quit]
ng0 has joined #nixos
phdoerfler has quit [Quit: Leaving.]
knupfer has quit [Ping timeout: 264 seconds]
phdoerfler has joined #nixos
phdoerfler has quit [Client Quit]
zupo has joined #nixos
drakonis has quit [Quit: WeeChat 2.5]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ggp0647 has quit [Ping timeout: 245 seconds]
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
puffnfresh has quit [Ping timeout: 244 seconds]
alex-v has quit [Ping timeout: 258 seconds]
ggp0647 has joined #nixos
puffnfresh has joined #nixos
kini has quit [Read error: Connection reset by peer]
Phillemann has joined #nixos
<Phillemann> I'm trying to package the Python program "gcp". It has a normal setup.py file containing a "dbus-python" dependency. When I add this dep to propagatedBuildInputs, still nix-build tells me it cannot find it.
Zer0xp has quit [Ping timeout: 246 seconds]
chr15 has quit [Ping timeout: 245 seconds]
alanz has joined #nixos
kini has joined #nixos
<{^_^}> [nixpkgs] @vcunat opened pull request #67426 → fix firefox 60 → https://git.io/fjAJh
iyzsong has joined #nixos
rsoeldner has joined #nixos
domogled has quit [Quit: domogled]
dasj19 has joined #nixos
bakakuna has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
chiiba has quit [Ping timeout: 272 seconds]
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67408 → evcxr: 0.3.3 -> 0.4.3 → https://git.io/fjNxs
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjAUc
<li_matrix> any bazel + nix users?
slack1256 has quit [Remote host closed the connection]
<srhb> li_matrix: You should probably just state your question. I've used bazel a tiny, tiny bit a while ago, and probably won't be able to help, but can't tell before you explain the issue. :)
<li_matrix> no that was my question
<li_matrix> thanks!
<li_matrix> eldostra mentionned it on GH and I was curious
<{^_^}> nix#2853 (by edolstra, 27 weeks ago, open): Flake-based evaluation cache
<srhb> li_matrix: Ah, yeah, pure and cacheable evaluation is quite interesting.
<li_matrix> iv moved to flakes and its nice
<srhb> I should give it a try. I haven't done that yet :)
o1lo01ol1o has joined #nixos
orivej has joined #nixos
jgt has joined #nixos
jgeerds has joined #nixos
dahirsch has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
jgt has quit [Ping timeout: 264 seconds]
ilmu has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « nano: fix version, fallout from merge f65aa21bb »: https://git.io/fjAUH
<ivan> nix seems to be reporting bogus download sizes e.g. 'these paths will be fetched (0.84 MiB download, 419.82 MiB unpacked):'
<clever> ivan: for a given /nix/store/<hash>-<name>, curl https://cache.nixos.org/<hash>.narinfo
<clever> ivan: within there, will be the compressed and uncompressed size
<ivan> I see just NarSize: 728853008
<clever> ivan: what is the url to that narinfo?
<ivan> (I have my own hydra outputs stored in /nix/store)
<ivan> served by nix-store
<clever> ivan: hydra cant report the compressed size, because it compresses things on-demand
<ivan> oh but I'm not serving them from hydra
<clever> ivan: what is the url to that faulty narinfo?
<ivan> on a host behind my wireguard but my hydra and nix-serve are unaltered
<ivan> hydra is doing store_uri = daemon
<clever> nix-serve has the same limitation as hydra
<ivan> ah, interesting, thanks
<clever> they both compress on-demand, and dont know how big the compression will be
<{^_^}> [nixpkgs] @marsam opened pull request #67429 → ocamlPackages.ocurl: disable for ocaml<4.02 → https://git.io/fjAUx
ilmu has quit [Ping timeout: 264 seconds]
cfricke has joined #nixos
dansho has quit [Ping timeout: 244 seconds]
nexgen2 has joined #nixos
dansho has joined #nixos
jgt has joined #nixos
phdoerfler has joined #nixos
bakakuna has joined #nixos
<Izorkin> teto: checked my nixops config?
vika_nezrimaya has joined #nixos
<{^_^}> [nixpkgs] @masaeedu opened pull request #67431 → flashplayer: 32.0.0.223 -> 32.0.0.238 → https://git.io/fjATu
aborsu has joined #nixos
ensyde has quit [Ping timeout: 250 seconds]
jgt has quit [Ping timeout: 252 seconds]
ris has joined #nixos
<{^_^}> [nixpkgs] @Ma27 closed pull request #64489 → vale: 1.4.3 -> 1.5.0 → https://git.io/fji7w
bakakuna has quit [Ping timeout: 245 seconds]
Thra11 has joined #nixos
chr15 has joined #nixos
thc202 has joined #nixos
Zer0xp has joined #nixos
bakakuna has joined #nixos
<betaboon> finaly. i got fusion360 running on linux
<{^_^}> [nixpkgs] @yilkalargaw opened pull request #67432 → changed CHICKEN_REPOSITORY_PATH to $HOME/lib/chicken/11 → https://git.io/fjATH
fendor has joined #nixos
<joepie91> betaboon: you have my interest...
orivej has quit [Ping timeout: 246 seconds]
<betaboon> joepie91: i used winewow (from nixpkgs-unstable) + winetricks + this script to download and patch the wineinstaller: https://github.com/siredmar/winepatchfusion360installer
<betaboon> joepie91: winetricks win7, then: winetricks corefonts vcrun2017 vulkanrt dxvk, then: winetricks win7
<betaboon> joepie91: then in winetricks add "adcefwebbrowser.exe" (which is part of the installed fusion360) applications so that it is run in win7 mode
<betaboon> joepie91: virtualdesktop in winetricks fixes floating ui-components
<betaboon> joepie91: then you should be done
<clever> betaboon: maybe write it up on the nixos wiki?
<betaboon> joepie91: only thing that doesnt work: when closing fusion360 it will get stuck and you have to `killall fusion360.exe`
<betaboon> clever: i think running a specific application under wine is of no concern for nixos-wiki.
localstore has joined #nixos
<clever> ehh, yeah
zgrep has quit [Quit: It's a quitter's world.]
<clever> only time its been nixos specific for me, was when i had to run winetricks on the proton prefix from steam
<betaboon> clever: i never had to do that oO
<clever> the nixpkgs winetricks is a different wine version, and the proton winetricks isnt patched
<betaboon> i guess i should find some time to setup a blog at some point
<clever> betaboon: stationeers needs a font installed into the prefix, or half the text is just missing
<localstore> hey all! what am I doing wrong here? ./roles/log/alerts/notifications.tmpl.nix
<localstore> I had it in let (write something in a yaml file and define it) in (test of my module)
<betaboon> clever: ah ok, for a specific game, i see :)
zgrep has joined #nixos
<localstore> and I want to move the let section into a separate file and include it :/
<localstore> but not sure how to do that
<localstore> tried to to do, let imports = []; in but that doesn't work
<betaboon> localstore: can you post the contents of that fine on a pastebin of gist ?
<clever> localstore: use normal import to load a file, not imports
<localstore> sorry, wrong paste :)
<localstore> what is the differrence?
<localstore> between import/imports?
<clever> imports is a list of nixos modules
<clever> import is a nix primitive, to just load a file and get whatever value is in the file
<betaboon> i like to use `imports = [];` when applicable, but it doesnt seem applicable for this use-case
<vika_nezrimaya> can pkgs.releaseTools.sourceTarball correctly package a Python source tree with setup.py sdist?
<clever> localstore: gist also helps a lot in this situation, it supports multiple files, so you can just include the whole thing and the line numbers survive
<localstore> clever: do I just od import ./myfile.nix; ?
<clever> localstore: in a let block
<clever> that will return whatever the file contains
<localstore> clever, hmm, I tihnk I'm doing it wrong /home/mmahut/repo/morph/
<clever> localstore: a let block must be key=expr; pairs
<clever> localstore: you just have a naked expr
<localstore> oh ok, is there a way to include a file in let that will contain these key exprt pairs?
<localstore> I have them in the file
<localstore> and want to include the whole let block
<clever> localstore: if the file contains { foo = "bar"; }
<clever> and then you do let baz = import ./file.nix; in ...
<clever> you can then do baz.foo
<localstore> that's neat, let me try that
dahirsch has quit [Ping timeout: 250 seconds]
fendor_ has joined #nixos
fendor_ has quit [Remote host closed the connection]
fendor_ has joined #nixos
fendor has quit [Ping timeout: 258 seconds]
localstore has quit [Remote host closed the connection]
<joepie91> betaboon: with what winetricks setup?
<joepie91> thanks :) will give that a try some time soon
<joepie91> would be good not to have to dual-boot for this
<joepie91> aha
<joepie91> betaboon: curious, did you figure this out yourself? I looked around for the state of Fusion 360 on Linux a while ago and pretty much just found "nope, won't work properly" comments
<joepie91> ah. I can live with that :)
<joepie91> I would certainly appreciate it being on there
<rnhmjoj> is there a reason why in nixos the dbus-launch process is kept around after dbus has started?
<betaboon> joepie91: no not completly. i tried every other week, googled for information etc, this solution is the result of trial-and-error following all the (sometimes outdated) information i found
<ivan> https://gist.github.com/ivan/8130ff218db63d7c8393565f1bd29fb5 something broke qbittorrent startup in nixpkgs master but it's probably going to work for everyone else
<angerman> Shouldn't I in principle be able to build this: `nix build '(with (import ../nixpkgs { crossSystem = { config = "armv6l-unknown-linux-gnueabihf"; }; }); haskell.compiler.ghc865)'` where nixpkgs points to release-19.03?
cfricke has quit [Ping timeout: 245 seconds]
<clever> angerman: at a glance, i would expect that to work, what error does it have?
<angerman> clever: it seems to try and build glibc natively on macOS.
<clever> angerman: that sounds like a bug with one of the libraries being set wrong, the error at the end should say which
pie_ has joined #nixos
<angerman> I've been trying to stab at it without much success.
<angerman> I'll file an issue
<clever> angerman: what happens if you try to build perl with a similar command?
<angerman> yea same.
<clever> while evaluating 'getOutput' at /Users/angerman/Projects/iohk/nixpkgs/lib/attrsets.nix:464:23, called from /Users/angerman/Projects/iohk/nixpkgs/pkgs/development/interpreters/perl/default.nix:22:13:
boxscape has joined #nixos
<clever> angerman: i think line 21 doesnt properly support cross-compiling
<clever> angerman: does it behave differently when building perl on master?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f188bad6eaf (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<angerman> clever: doesn't fail that early, just fails while trying to patch perl :D
<clever> a bisect may help, *looks*
<clever> [clever@amd-nixos:~/apps/nixpkgs-master]$ git checkout release-19.03
<clever> [clever@amd-nixos:~/apps/nixpkgs-master]$ nix build '(with (import ./. { crossSystem = { config = "armv6l-unknown-linux-gnueabihf"; }; }); haskell.compiler.ghc865)' --show-trace
<clever> error: while evaluating 'assertValidity' at /home/clever/apps/nixpkgs-master/pkgs/stdenv/generic/check-meta.nix:248:20, called from /home/clever/apps/nixpkgs-master/pkgs/stdenv/generic/make-derivation.nix:273:18:
<angerman> looks, like builing `ghc` on head get's me a bit firther.
<clever> angerman: i run into a different error on this end
<angerman> yea, you won't likely have that arch issue so far up, as your nix host is linux as well.
<clever> ah yeah, need a darwin box, let me see if i still have ssh to sarov...
boxscape is now known as boxscapeR
boxscapeR is now known as boxscape
<clever> angerman: and i'm in!
<angerman> clever: thanks. I'll probably hit my head against it some more after lunch.
<clever> Darwin nixoss-iMac.local 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64
<angerman> I'll just casually blame Ericson2314 for braking it, without having proof.
<angerman> clever: I've opened https://github.com/NixOS/nixpkgs/issues/67433 for trcking it.
<{^_^}> #67433 (by angerman, 9 minutes ago, open): Can't build armv6l-unknown-linux-gnueabihf-ghc (or -perl) on macOS with release-19.03
<clever> angerman++
<{^_^}> angerman's karma got increased to 2
<das_j> how can I use the native versions of packages in makeBinPath? basically the makeBinPath-equvivalent of nativeBuildInputs
<angerman> clever: for a bit of background, I was experimenting with `haskell.nix` and got it to cross compile to windows and ghcjs, and casually thought I should try to change the triple to rpi, which is when the whole thing just fell apart and left be a bit baffled.
<clever> angerman: i tried native (and qemu) arm builds a few months ago, and thats when i discovered (with your help) that it lacks native codegen, and the llvm backend is a bit segfaulty under -j>1
<angerman> Well, I didn't even get that far :-/
<clever> there was no proper cross in my setup, it was all "native", either on an aarch64 kernel, or qemu-user-aarch64
<angerman> ohh! Yea, I'm stubborn, I only do cross to arm/aarch64
<clever> qemu-user lets you cheat a bit
<clever> but i can also see qemu-user helping, to let you run template haskell for proper cross
<angerman> clever: yea there is a patch that does what we do for win32 for arm32
<clever> assertion failed at /private/var/root/michael/nixpkgs/pkgs/development/compilers/ghc/8.2.2-binary.nix:7:1
<clever> still get an assertion in ghc, when on a mac
<angerman> it seems like you can build it on master though.
<{^_^}> [nixpkgs] @marenz2569 opened pull request #67435 → python: caldav: fixed dependencies → https://git.io/fjAkr
orivej has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #67436 → rainloop-standard: Update as well → https://git.io/fjAki
Okinan has joined #nixos
zupo has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #67429 → ocamlPackages.ocurl: disable for ocaml<4.02 → https://git.io/fjAUx
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjAkX
boxscape has left #nixos [#nixos]
<{^_^}> [nixpkgs] @aanderse closed pull request #56160 → tcptrace: init at 6.6.7 → https://git.io/fhFur
ixxie has joined #nixos
bakakuna has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #66968 → mcelog: 162 -> 164 → https://git.io/fjF9P
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjAkF
jgeerds has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #67054 → python37Packages.django_modelcluster: 4.4 -> 5.0 → https://git.io/fjbTP
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/fjAIT
<{^_^}> [nixpkgs] @mmahut merged pull request #67290 → dlib: 19.16 -> 19.17 → https://git.io/fjN34
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAII
<{^_^}> [nixpkgs] @mmahut merged pull request #67390 → weston: 6.0.1 -> 7.0.0 → https://git.io/fjNdI
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to staging: https://git.io/fjAIO
<{^_^}> [nixpkgs] @mmahut merged pull request #67391 → rmilter: remove deprecated package (and module) → https://git.io/fjNdZ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIG
<{^_^}> [nixpkgs] @vcunat pushed to staging-next « rust-bindgen: fixup build with rustc 1.37 »: https://git.io/fjAIZ
<nilsirl[m]> Where should I put the snippet inside of my configuration.nix to get unstable packages as described here https://nixos.wiki/wiki/FAQ?
<nilsirl[m]> (section "How can I install a package from unstable while remaining on the stable channel?"
<nilsirl[m]> * (section "How can I install a package from unstable while remaining on the stable channel?")
<{^_^}> [nixpkgs] @mmahut merged pull request #67400 → pythonPackages.django_silk: 3.0.2 -> 3.0.3 → https://git.io/fjNbv
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIn
<{^_^}> [nixpkgs] @mmahut merged pull request #67401 → python3Packages.moderngl: 5.5.0 -> 5.5.3 → https://git.io/fjNbU
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIC
<{^_^}> [nixpkgs] @mmahut merged pull request #67202 → uwimap: Fixed cross-compilation → https://git.io/fjby4
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIW
dasj19 has quit [Quit: dasj19]
alex-v has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #67438 → dhall-json: fix build → https://git.io/fjAIl
xelxebar has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @turboMaCk opened pull request #67439 → elmPackages: share node-env.nix, add elm-live & elm-xref → https://git.io/fjAI4
<symphorien> nilsirl[m]: currently it should look like: {config, pkgs, ... }: { /* things */ }
<symphorien> after it should look like {config, pkgs, ... }: let /* like in the snippet */ in { /* things */}
dasj19 has joined #nixos
<symphorien> and you replaces references to `package_attr` by `unstable.package_attr`
<{^_^}> [nixpkgs] @mmahut merged pull request #67388 → ssb-patchwork: 3.14.1 -> 3.16.2 → https://git.io/fjN5U
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIB
freedan42x has quit [Remote host closed the connection]
freedan42x has joined #nixos
xelxebar has joined #nixos
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIu
<{^_^}> [nixpkgs] @mmahut merged pull request #67431 → flashplayer: 32.0.0.223 -> 32.0.0.238 → https://git.io/fjATu
<nilsirl[m]> symphorien: thank you
freedan42x has quit [Remote host closed the connection]
<nilsirl[m]> I finally can get this working without nix-env
<symphorien> :)
freedan42x has joined #nixos
<{^_^}> [nixpkgs] @gebner opened pull request #67440 → vampire: 4.2.2 -> 4.4 → https://git.io/fjAIr
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAIK
<{^_^}> [nixpkgs] @mmahut merged pull request #67436 → rainloop-standard: Update as well → https://git.io/fjAki
fusion809 has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 245 seconds]
philr has quit [Ping timeout: 248 seconds]
cfricke has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #67435 → python: caldav: fixed dependencies → https://git.io/fjAkr
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAID
alex`` has joined #nixos
cfricke has quit [Client Quit]
dasj19 has quit [Quit: dasj19]
cfricke has joined #nixos
das_j has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #67441 → crystal: init at 0.30.1 → https://git.io/fjAIF
fusion809 has joined #nixos
boxscape has joined #nixos
<boxscape> What exactly does it mean when a package is marked as broken? Simply that you (most likely) won't be able to install it, or could it mean other things too?
<symphorien> that it is unlikely to compile
<boxscape> okay
<symphorien> in some cases this means "does not compile, no maintainer, we don't remove this yet, but only in a few months"
<boxscape> I see
<symphorien> so if you rely on this package and are able to make it work, feel free to make a PR and add yourself as maintainer
<boxscape> ok, I'll see if I have some time to figure out what to do
<symphorien> good luck
<boxscape> (I'm looking specifically at a haskell package, so I assume since the goal is to have the entirety of hackage in nix packages it probably wouldn't be removed even if it stays broken?)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dahirsch has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #67357 → sdrangel : init at 4.11.7 → https://git.io/fjNw2
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjALJ
<symphorien> for haskell packages there is specific semantics because there are semi automatic updates
<symphorien> but I don't really know much about haskell
zupo has joined #nixos
<boxscape> ok
<{^_^}> [nixpkgs] @vcunat pushed 129 commits to staging-next: https://git.io/fjALI
<{^_^}> [nixpkgs] @vcunat closed pull request #67426 → fix firefox 60 → https://git.io/fjAJh
fusion809 has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 245 seconds]
dansho has quit [Quit: Leaving]
pie_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @zimbatm pushed 3 commits to cargofetch-lock: https://git.io/fjALB
orivej has joined #nixos
LouisDK has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jlesquembre opened pull request #67442 → blackbox: 1.20170611 -> 1.20181219 → https://git.io/fjALg
<LouisDK> In the progress of updating mythtv to 30.0 I'm wondering why "enabled xnvctrl" on line 6644 becomes true when building on a system without it being enabled due to no nvidia driver: https://github.com/MythTV/mythtv/blob/fixes/30/mythtv/configure#L6644
pie_ has joined #nixos
<{^_^}> [nixpkgs] @gebner merged pull request #67440 → vampire: 4.2.2 -> 4.4 → https://git.io/fjAIr
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fjALD
alex-v has quit [Quit: Quit]
<{^_^}> [nixpkgs] @lsix opened pull request #67443 → nano: 4.3 -> 4.4 → https://git.io/fjALA
iggi_ has joined #nixos
emptyflask has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/fjALj
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-19.03: https://git.io/fjAtv
aveltras has joined #nixos
<symphorien> LouisDK: at the beginning of the configure script they enable everything https://github.com/MythTV/mythtv/blob/fixes/30/mythtv/configure#L2785
jgeerds has joined #nixos
dahirsch has quit [Ping timeout: 250 seconds]
<aveltras> are cabal common stanzas supported by cabal2nix ?
dahirsch has joined #nixos
<maralorn> boxscape: With haskell packages they get sometimes prematurely set to broken by the automation because of temporary build fails. So trying to build it with an override might work. When you notice that for a package, it would be awesome to make a PR to mark it as not broken anymore.
<maralorn> otoh I am not even sure if that (i.e. removing the broken flag) matters after the next automation run. I also don‘t know how often these runs happen. Would love to hear about that.
<boxscape> maralorn the specific package I'm referring to (liquid-fixpoint) already had a github issue since december, and apparently all that's required to fix it is to update the version that's on hackage. So I just commented on that issue asking if there's an update on that
mapofthesun has joined #nixos
<mapofthesun> i have a new package derivation which ships a script, that is using templates from $out/usr/share to genreate some content --- I need to replace the template path in the script with where itwill be in the nix storage, how to do that?
<mapofthesun> i mean, is it even possible? if not, how are cases like this solved?
selfsymmetric-mu has quit [Remote host closed the connection]
<tilpner> You can use $out in patchPhase IIRC, or use builtins.placeholder "out"
<mapofthesun> but that path is using at script running, not building or installation
<LouisDK> symphorien: Thanks. Just discovered that. On line 6663 it should run "disable xnvctrl" if the first commands fails but it just seems to exit with an error instead which I find I strange. Thinking of using "services.xserver.videoDrivers" to see if the system runs nvidia prior to build.
<mapofthesun> or is $out also for when the package is build?
<symphorien> LouisDK: because of the sandbox, you cannot detect whether nvidia is installed at build time anyway
<tilpner> mapofthesun: Yes, so replace the path during patchPhase with $out
<LouisDK> symphorien: not with an mkIf services.xserver.videoDrivers = "nvidia*"?
<mapofthesun> tilpner: the path is a line in the script itself
<mapofthesun> ok will give it a try
<tilpner> mapofthesun: That's okay, substituteInPlace or sed can be used to edit files at build time
<mapofthesun> yes, but that path is not going to be used at build time
<mapofthesun> but after installation by the user
<mapofthesun> if you see what I mean
<symphorien> LouisDK: you can imagine making two mythtv derivations and make a module which selects which one to install depending on the value of this option
<tilpner> mapofthesun: Yes it will. Passing $out to substituteInPlace counts as usage during build time
<clever> LouisDK: i would make a single mythtv default.nix, that has an option like withNvidia ? false in its args, and then callPackage it twice, with it set to true or false
<tilpner> mapofthesun: So you do patchPhase = ''substituteInPlace your-file --replace /usr/share/something $out/share/something'';
<symphorien> this uses the "right" of evdi depending on which options the user selected
xkapastel has joined #nixos
<LouisDK> symphorien: Adding "--disable-xnvctrl" to "configureFlags" if mkIf services.xserver.videoDrivers = "nvidia*" is true wouldn't be a good option?
goodwill has quit [Quit: ...]
<clever> LouisDK: you cant directly read services.xserver from default.nix, so it needs to be an argument to receive via .override
<symphorien> you cannot use mkif in the default.nix of mythtv
<symphorien> there are two levels: derivations, which are built in a sandbox, only can create files in $out, and should (ideally) run on any system with nix
<LouisDK> symphorien, makes sense.
<symphorien> and modules, which are NixOS specific, and mostly use derivations to populate /etc/ and /run/current-system according to /etc/nixos/configuration.nix
<clever> LouisDK: in the case of virtualbox, it will .override the package, to make it obey the nixos options in configuration.nix
<clever> and thats where you can bring `services.xserver.videoDrivers = "nvidia*"` into the mix
<iggi_> can someone help me with running sonic-pi? Just 'nix-shell -p sonic-pi --run sonic-pi' is producing an error on startup. here is the past of the error https://pastebin.com/raw/s60TQ2b7
<iggi_> I tried setting up jack, but the nixos wiki page on jack is outdated.
<tilpner> iggi_: Outdated how?
<tilpner> iggi_: Does `groups` say you are part of the jackaudio group?
zupo has joined #nixos
<aanderse> something wrong with my brain... i can't seem to understand why i can't override the contents of /etc/openal/alsoft.conf in my configuration.nix :\
<aanderse> pulseaudio module originally defines the entry
<aanderse> i'm trying to overwrite it with environment.etc."openal/alsoft.conf".text = lib.mkForce "drivers=alsa"
<aanderse> error is duplicate entry openal/alsoft.conf
<aanderse> can anyone point out my likely stupid erro?
<iggi_> tilpner: it is labeled as outdated https://nixos.wiki/wiki/JACK
<iggi_> tilpner: also services.jack does not seem to exist anymore?
<symphorien> aanderse: do you define it twice in the same file ?
<tilpner> iggi_: Oh, that's uhh, a good point
<aanderse> symphorien: no. the pulseaudio module defines it. my configuration.nix defines it (as described above)
<alexarice[m]> aanderse: do you know where it is originally defined?
<aanderse> i mean with the mkForce
<clever> aanderse: can you pastebin your full configuration.nix and the exact error?
<aanderse> clever: error https://pastebin.com/Sa6hRqBa
<alexarice[m]> aanderse: Does it work if you specify it as { target = ...; source = ...;} as they have done in the module?
<aanderse> alexarice[m]: i'm 99% sure i tested that a few minutes ago, will confirm now
<clever> aanderse: one is setting text, the other is setting source, mkForge cant change it from source to text
<aanderse> clever: yeah, right, here we go... that was an even bigger error
<aanderse> pasting...
endformationage has joined #nixos
<alexarice[m]> clever: aanderse I agree with clever, you are forcing the text attribute but I'm guessing behind the scenes it writes the text attribute to a file and then says that source is set twice?
goodwill has joined #nixos
<clever> attempt to call something which is not a function but a set, at /etc/nixos/configuration.nix:264:49
<clever> aanderse: what is line 264?
<tilpner> iggi_: Apparently nixos-unstable has a jack module
<aanderse> ignore typo, bad paste
<aanderse> clever: line 264 is the first line of that paste, the environement.etc.
<clever> lib.mkForce pkgs.writeText "alsoft.confi" "drivers=alsa";
<clever> aanderse: you forgot ()'s
<clever> aanderse: it called mkForce, with writeText as the 1st argument
<alexarice[m]> got there before me
<aanderse> yeah, tried that too
<aanderse> that brings me right back to the first error
<aanderse> if anyone has pulseaudio enabled on a system and wants to paste that line
<aanderse> they might be able to better asses what i'm missing
<aanderse> i feel like its probably pretty obvious
<aanderse> but yeah, scratching my head at this point
<alexarice[m]> do you know where the module code for `environment.etc` is?
<clever> aanderse: i think i see the problem, behind the scenes, environment.etc."foo" turns into environment.etc = [ { name = "foo"; source = ...; } ];
<clever> aanderse: so mkForce cant cant override things, and just inserts a 2nd element into the list
<aanderse> i'm just trying to get sound working on stardew valley for my son... lol
<clever> and then make-etc.sh complains
<alexarice[m]> seems quite hard to override actually
<iggi_> tilpner: uff, switch to unstable sounds like it will cause to much work.
<clever> aanderse: https://nixos.org/nixos/manual/index.html#sec-replace-modules use this to entirely nuke pulseaudio.nix from nixos
<clever> aanderse: then you can use imports to load in a modified copy of it
<aanderse> clever: yeah, i really wanted to avoid that... so i'm not missing something obvious here eh
<aanderse> daaaaang
<alexarice[m]> could `environment.etc` not be implemented as `attrsOf str` or similar that would make this neater?
kp__ has joined #nixos
<aanderse> alexarice[m]: yeah, looks like it probably should be
<aanderse> but then again, there might be a reason why it is the way it is
cfricke has quit [Quit: WeeChat 2.5]
<alexarice[m]> the way you were trying to set it seems far more natural (and overridable) than this whole { target = ...; source = ...;} thing
<clever> type = with types; loaOf (submodule (
<clever> alexarice[m]: it needs to support a mode= and user=, because services like sshd and sudo get upset if the permissions are wrong
ixxie has quit [Ping timeout: 258 seconds]
<alexarice[m]> can that not be done with s/loaOf/attrOf
<alexarice[m]> `environment.etc."file" = { text = x; mode = y;}`
<clever> alexarice[m]: its already using loaOf
<{^_^}> [nixpkgs] @dasJ opened pull request #67444 → nixos/memcached: Remove PrivateUsers → https://git.io/fjAtx
<alexarice[m]> I'm suggesting replace loaOf with attrsOf
<clever> ah
<aanderse> alexarice[m]: yeah should work, and if there is no reason not to someone should open a PR to do that
<aanderse> also
<aanderse> for completion sake
<alexarice[m]> aanderse: it would break a lot of existing config
<aanderse> that change did not fix stardew valley and now my son is sad T_T
<alexarice[m]> but I think it could all be fixed
<aanderse> alexarice[m]: yeah, sometimes you need to do that though
<clever> aanderse: if you run pavucontrol, do you see it on the playback tab?
<alexarice[m]> aanderse: ☹️ I'm sure I've got stardew valley to work before
<aanderse> alexarice[m]: yeah i had audio before too
aborsu has quit [Quit: aborsu]
<alexarice[m]> ah is this a recent problem
<aanderse> clever: yeah, it shows up there
<aanderse> i've seen the problem reported from several distros
aborsu has joined #nixos
<clever> aanderse: is the vu meter moving? is it on the right output? is it muted?
<aanderse> clever: i checked, not muted, and no vu meter moving
<aanderse> though...
<aanderse> hmm
<aanderse> i just turned on my computer speakers and the audio was coming out
<alexarice[m]> just to check, other sounds are working right?
<aanderse> i was trying to run stardew valley over hdmi (not computer speakers)
<clever> aanderse: sounds like its using alsa, and bypassed pulse entirely
<clever> and it used the first alsa device that pulse wasnt using
<alexarice[m]> aanderse: so it's working now?
<aanderse> clever: yeah, maybe
<aanderse> alexarice[m]: no
<aanderse> my computer is in kitchen with speakers
<aanderse> in the living room which is beside the kitchen
<aanderse> there is a tv
<aanderse> a hdmi cable runs through the wall
<aanderse> so we can game in the living room using the kitchen computer
<alexarice[m]> ah ok so it works with speakers but not hdmi
<aanderse> alexarice[m]: correct
<aanderse> so
<aanderse> the solution is
<{^_^}> [nixpkgs] @gebner opened pull request #67445 → vdirsyncer: fix build with openssl 1.1 → https://git.io/fjAth
<aanderse> turn speakers loud... play stardew valley, wait for mom to yell "turn that down"
<aanderse> lol
iyzsong has quit [Ping timeout: 258 seconds]
<alexarice[m]> I thought the whole point of stuff like pulseaudio is that problems like this shouldn't happen
<clever> 2019-08-25 11:24:25 < clever> lib.mkForce pkgs.writeText "alsoft.confi" "drivers=alsa";
ivanivan has joined #nixos
<aanderse> alexarice[m]: yeah, i guess some things fall through the cracks :\
<clever> alexarice[m]: the override is forcing the game to use alsa
<clever> and then alsa picks the first unused device, whatever pulse happens to not have open, usually the one that isnt plugged in :P
<clever> its unused for a reason!
<aanderse> yeah, anywho, thanks for everyone helping me out with the environment.etc thing, i thought i must have been missing something obvious. maybe i'll make a PR for 20.03 to make environment.etc an attrset
<clever> aanderse: a far simpler change is to pr pulseaudion.nix, to make that a proper option
<{^_^}> [nixpkgs] @timokau merged pull request #67233 → stig: init at 0.10.1a0 → https://git.io/fjNey
<{^_^}> [nixpkgs] @timokau pushed commit from @doronbehar to master « stig: init at 0.10.1a0 (#67233) »: https://git.io/fjAqv
<clever> so you dont have to force things
ivanivan has quit [Client Quit]
<clever> maybe move it to a proper programs.alsoft.driver = "alsa"; and then have pulseaudio set that option
<alexarice[m]> aanderse: I might have a quick look into it and see how hard it is
<clever> since it doesnt make sense to have an alsoft option in services.pulseaudio
<aanderse> simple, sure, but i see not being able to override environment.etc as a problem
<clever> yeah, both changes are good
<{^_^}> [nixpkgs] @aanderse merged pull request #67393 → nixos/transmission: make user configurable → https://git.io/fjNd8
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjAqT
ilmu has joined #nixos
aborsu has quit [Remote host closed the connection]
<aanderse> alexrice[m]++
<aanderse> clever++
<{^_^}> clever's karma got increased to 177
<aanderse> alexarice[m]++
<{^_^}> alexarice[m]'s karma got increased to 2
pie_ has quit [Ping timeout: 250 seconds]
Chiliparrot has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
pie_ has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #67419 → python3Packages.aiodmtpd: 1.2 -> 1.2.1 → https://git.io/fjAeQ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAqW
ixxie has joined #nixos
<iqubic> If I'm using lorri, then do I ever need to use "nix-shell --command 'ls'" or some such ever?
<iqubic> Wouldn't I just get the same effect by directly running my command in the terminal?
<iqubic> because lorri + direnv sets all the same environment variables that would be set with "nix-shell --command" right?
<{^_^}> [nixpkgs] @mmahut merged pull request #67420 → pythonPackages.sqlalchemy-utils: 0.34.0 -> 0.34.2 → https://git.io/fjAe7
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAq4
gnidorah has joined #nixos
freedan42x has quit [Remote host closed the connection]
<iggi_> join #elm
<iggi_> oops
<gnidorah> package B sees package C propagated by package A. is it possible to hide C from B in B expression?
<gnidorah> on build time
inkbottle has quit [Ping timeout: 272 seconds]
mapofthesun has quit [Remote host closed the connection]
ilmu has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @michojel opened pull request #67446 → megasync: 4.1.1.0 -> 4.2.3.0 → https://git.io/fjAqa
iggi_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @gebner merged pull request #67445 → vdirsyncer: fix build with openssl 1.1 → https://git.io/fjAth
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fjAqV
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
domogled has joined #nixos
<angerman> clever: I found it! https://github.com/NixOS/nixpkgs/issues/67433
<{^_^}> #67433 (by angerman, 4 hours ago, open): Can't build armv6l-unknown-linux-gnueabihf-ghc (or -perl) on macOS with release-19.03
<angerman> Now whom do I bug to merge the relevant patch also into `release-19.03`?
<angerman> (it's merged into `master` already...)
<{^_^}> [nixpkgs] @turboMaCk opened pull request #67447 → slack: 4.0.1 -> 4.0.2 → https://git.io/fjAq9
<clever> angerman: id say start by opening a PR to `git cherry-pick` it into the release-19.03 branch, and then see who wants to merge it
domogled has quit [Client Quit]
<angerman> clever: alright, I'll probably do that once I've figured out why I can't build binutils (that is if there is yet another commit missing).
Ariakenom has joined #nixos
LouisDK has quit [Ping timeout: 260 seconds]
dahirsch has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @gnidorah opened pull request #67448 → pykde4: pin to openssl 1.0.2 → https://git.io/fjAqh
gnidorah has left #nixos [#nixos]
ixxie has quit [Ping timeout: 248 seconds]
ixxie has joined #nixos
ptival[m] has joined #nixos
<tilpner> Does anyone have good candidates for a hypothetical underhanded Nix contest?
inkbottle has joined #nixos
<tilpner> Something that would look innocuous but subtly endanger the security of nixpkgs users?
<angerman> Uhh ohh, what rabbit hole did I just fall into?
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/9e2d258f928 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<clever> tilpner: less security related, a package to build electron, from source
<tilpner> clever: No, I want to use security as motivation for this
<tilpner> (And electron might be too large to use here anyway)
<ptival[m]> hi, I'm trying to follow the commands in the man page of `nix-shell`, but in my shell, the `genericBuild` and phases do not seem to be sourced: I run `nix-shell '<nixpkgs>' -A bc --command sh`, and then in the new shell, phases are not available to run, things like `typeset -F` don't return anything :\
<clever> tilpner: the util to download the electron source, literally creates a 30gig directory
<tilpner> clever: Are you making the point that it's unpractical to audit 30G of code?
<clever> ptival[m]: genericBuild is a bash function, and those dont get inherited when you run another sh
<clever> tilpner: more agreeing with you that its "too large" as in just eats a ton of disk space :P
<clever> ptival[m]: try again without --command
rsoeldner has quit [Ping timeout: 252 seconds]
mac10688 has joined #nixos
turion has joined #nixos
<ldlework> Does anyone have know of offhand some guide or walkthrough on how to setup the default.nix/shell.nix such that they work together and each piece does contributes/does the right thing?
drakonis has joined #nixos
<clever> ldlework: for most packages, default.nix can work by itself
<ldlework> Something like the shell.nix sets up the environment for which default.nix uses to build? I don't know. I don't have this internalized yet.
<ldlework> clever: sure but I also want to be able to shell in and do stuff
zupo has joined #nixos
<clever> ldlework: nix-shell on the default.nix works for any c/c++ based project
<ldlework> Yeah, I'm in dotnet core land
<ldlework> But I guess I should just start by building a default.nix
<clever> and then test if it also happens to work on shell
<ldlework> .NET on Linux is an absolute dream btw
<ldlework> dunno if any of you know
<ldlework> Did you know that Linux on Windows is also a dream?!
<ldlework> I have been working with WSL2 the last few weeks and wow
<mightybyte> Is there a way to force a build to be for a certain system?
<ldlework> ok ok offtopic
<mightybyte> ...without the nix derivation you're using exposing an argument for it
<clever> ldlework: ive seen a couple bits of software, that give a .exe file for the "linux" binary, and it "just works" when i run mono on it
<iqubic> ldlework: Long time, no see.
<clever> surprisingly, i dont even have to patchelf things
<iqubic> What?!?!
<iqubic> WHAT!?!?!
<ldlework> hi iqubic
<iqubic> does nix-build do what I think it does?
<ldlework> I must just say that I'm **incredibly** satisfied writing C# and F# with Rider on Linux with Dotnet Core
<ldlework> Rider understands C# probably better than any IDE understands any other language.
<iqubic> Does nix-build search the current directory for a default.nix, and build that?
<ldlework> Even smalltalk, lisps, etc
<ldlework> Big claim, I know.
<clever> iqubic: by default, yes
rsoeldner has joined #nixos
<ldlework> Now I just gotta figure out how to deploy dotnet stuff, beyond you know like, Docker
pie_ has quit [Ping timeout: 250 seconds]
<ldlework> Learning how to use Nixlang for Docker is something I should do at some point
<ldlework> I wish there were some books I could buy on Nix
<iqubic> clever: That's good.
<ldlework> dang I can't even remember how to start a default.nix
<clever> ldlework: with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ mono ]; }
<ldlework> clever: where do you live?
<clever> ldlework: canada
<ldlework> cool
pie_ has joined #nixos
<mightybyte> tilpner: You don't need to do anything special for underhanded nix. We had a production nix expression delete someone's entire hard drive a few years ago. :o
lopsided98 has quit [Remote host closed the connection]
<tilpner> mightybyte: With sandboxing?
<vika_nezrimaya> mightybyte: i'm impressed
<mightybyte> I don't think it was sandboxed.
<mightybyte> Probably because it was being run in nix-shell or something.
<iqubic> That sounds like sandboxing to me.
<mightybyte> It didn't actually delete the whole hard drive because the person got suspicious pretty quickly and killed it. But not before it had already done a lot of damage.
lopsided98 has joined #nixos
<clever> mightybyte: that reminds me of justdoit .....
<{^_^}> [nixpkgs] @mmahut opened pull request #67449 → nixos/jormungandr: adding genesis tests → https://git.io/fjAmE
<clever> mightybyte: read lines 13 and 65
<ldlework> clever: you should try that on a WSL2 ubuntu
<mightybyte> Nice
<ldlework> there's open issues about getting NixOS on the Windows Store
<clever> ldlework: i dont think windows has any block devices in there
<iqubic> If I'm running lorri, do I even need to run commands like "nix-shell --command INSERT_COMMAND_HERE"?
<iqubic> Because shouldn't lorri + direnv set all the right environment variables for me?
<{^_^}> [nixpkgs] @bachp opened pull request #67450 → nixos/gitlab-runner: add missing HOME to environment → https://git.io/fjAm2
pointfourone has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #65306 → nodePackages.gtop: init at 1.0.0 → https://git.io/fjD3j
<{^_^}> [nixpkgs] @globin pushed commit from @tfc to master « nodePackages.gtop: init at 1.0.0 (#65306) »: https://git.io/fjAma
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fjAmw
<{^_^}> [nixpkgs] @globin merged pull request #65482 → lxqt: use qt5's mkDerivation → https://git.io/fjyrV
rsoeldner has quit [Ping timeout: 252 seconds]
rsoeldner has joined #nixos
<ldlework> clever: got a minimal bits for making a systemd thingie to run my new package?
<{^_^}> [nixpkgs] @mmahut merged pull request #67447 → slack: 4.0.1 -> 4.0.2 → https://git.io/fjAq9
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAmK
<ldlework> your default.nix worked like a charm
selfsymmetric-pa has joined #nixos
bdesham has joined #nixos
trebuh has left #nixos ["WeeChat 2.6-dev"]
<ldlework> clever: thank's buddy
<alexarice[m]> Is there a way to conditionally set an attribute? mkIf maybe?
<clever> alexarice[m]: or depends on the context
<clever> s/or//
shibboleth has joined #nixos
<alexarice[m]> I sort of want { a = 1; if c then b = 2; }
<alexarice[m]> in a module
<clever> alexarice[m]: if its a nixos module, mkIf is your solution
<alexarice[m]> thanks
<alexarice[m]> clever++
<{^_^}> clever's karma got increased to 178
Myhlamaeus1 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Ma27 opened pull request #67452 → vde2: build with `--disable-python` by default → https://git.io/fjAmD
<ldlework> clever: hmm, System.UnauthorizedAccessException: Access to the path '/homeless-shelter/.dotnet' is denied. ---> System.IO.IOException: Permission denied
<clever> ldlework: preBuild = "export HOME=$NIX_BUILD_TOP";
ixxie has quit [Ping timeout: 245 seconds]
jmeredith has joined #nixos
<ldlework> same error
<clever> ldlework: pastebin the expr
rsoeldner has quit [Ping timeout: 264 seconds]
<ldlework> Oh interesting, now I'm getting network resolution error
bdesham has quit [Quit: bdesham]
<ldlework> Because of course I am
<ldlework> Holy crap how am I gonna get dependencies
<clever> ldlework: fixed-output derivations
<clever> ldlework: a dedicated drv that only downloads, and declares the hash of $out
bdesham has joined #nixos
bdesham has joined #nixos
bdesham has quit [Changing host]
rsoeldner has joined #nixos
bdesham has left #nixos [#nixos]
<ldlework> clever: any thing I can read about on how to do that?
<{^_^}> [nixpkgs] @mmahut merged pull request #67443 → nano: 4.3 -> 4.4 → https://git.io/fjALA
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAm9
<clever> ldlework: run `nix-instantiate '<nixpkgs>' -A hello.src` then run `nix show-derivation` on the drv file it produces
<clever> ldlework: youll see 3 fields, outputHash, outputHashMode, and outputHashAlgo
<clever> if you set all 3, then you gain network access
<ldlework> clever: here is the error when i predownload the dependencies in nix-shell, https://gist.github.com/dustinlacewell/38ed60219db96b0d182fc652398a60d2
<{^_^}> [nixpkgs] @mmahut merged pull request #67442 → blackbox: 1.20170611 -> 1.20181219 → https://git.io/fjALg
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAmH
tjg14 has quit [Ping timeout: 245 seconds]
<clever> if outputHashMode == "flat", then $out must be a file, if its "recursive" then $out can be a file, symlink, or directory
<clever> that also impacts how it computes outputHash, but you can just tofu it
<clever> after that, you can use any means you want to download things and put them in $out
<clever> buildCommand is one method, pkgs.runCommand is another
ixxie has joined #nixos
<ldlework> not gonna lie, i barely understand what you're saying
<ldlework> i'll read it a few more times
<clever> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<clever> > runCommand "foo.txt" { outputHashAlgo = "sha256"; outputHash = "0000000000000000000000000000000000000000000000000000"; outputHashMode = "flat"; buildInputs = [ curl ]; } "curl google.com > $out"
<{^_^}> "<derivation /nix/store/sgs62mhzjahq76h31dx2f859d25dpc3w-foo.txt.drv>"
<clever> ldlework: like that
<ldlework> what is my overall goal here, in like conceptual terms
<ldlework> is the idea to create a completely independent package from my actual application, which is just the downloaded dependencies?
<clever> to download the dependencies and nothing else
iqubic` has joined #nixos
<clever> that derivation will return a path to those dependencies, which you can then use in a non-fixed drv, to build things
<ldlework> clever: if the only build input I need is mono, and the command run from my project source is `mono .paket/paket.exe install` and that downloads things to places like $HOME/.nuget and $HOME/.paket which are then copied into the current working directory into folders like `paket-files/` and `packages/` and `paket.lock` what are we looking at to adapt what you're saying to that?
<ldlework> Basically, instead of curl google.com, do the install process
<{^_^}> [nixpkgs] @globin closed pull request #49367 → steam: patch missing udev option → https://git.io/fxQnS
<{^_^}> [nixpkgs] @globin merged pull request #66916 → steam: 1.0.0.59 -> 1.0.0.61 → https://git.io/fjF6D
<{^_^}> [nixpkgs] @globin closed pull request #50901 → nixos/steam-hardware: fix uinput udev rule → https://git.io/fp475
<clever> ldlework: you need to break `mono install` up into smaller steps
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjAmx
<clever> ldlework: somehow tell mono to download the deps, but not build anything
<clever> and then copy them to $out
<iqubic`> is it possible to combine mkDerivation and mkShell?
<clever> and it needs to be bit-for-bit reproducible
<clever> iqubic`: i just always use mkDerivation
<iqubic`> Why?
<clever> mkShell is just training wheels :P
<iqubic`> Is it?
<iqubic`> Why do you say that?
<clever> you can get the exact same thing with mkDerivation
rsoeldner has quit [Remote host closed the connection]
iqubic has quit [Ping timeout: 276 seconds]
<iqubic`> I see.
rsoeldner has joined #nixos
lambda-11235 has joined #nixos
<ldlework> clever: https://gist.github.com/ef5bf70efa681cf86e37fe0a26f316f8 here's my dependencies derivation but it obviously has name resolution error again when i try to nix-build it, what's the next step?
<ldlework> Oh set those attrs
<clever> yep
<clever> and your outputHashMode has to be recursive
<ldlework> Access to the path "/homeless-shelter" is denied. (Github - cached (temporarily ignore updates))
<clever> ldlework: because you set buildPhase, it never runs preBuild
<clever> ldlework: just put that string inside buildPhase
justanotheruser has quit [Ping timeout: 245 seconds]
<ldlework> clever: could I technically make the package for my service itself "fixed-output" so I don't have to juggle two?
pie_ has quit [Ping timeout: 250 seconds]
<clever> ldlework: only if you can get mono to produce a bit-for-bit identical binary, for ANY version of mono
<ptival[m]> @cle
<ptival[m]> * @clever: oh thanks, but sadly my default shell is zsh... I'll try `--command bash` :\
<clever> ptival[m]: nix-shell should run bash for you
<{^_^}> [nixpkgs] @mmahut opened pull request #67453 → exiv2: 0.27.1 -> 0.27.2 → https://git.io/fjAYf
<clever> ptival[m]: do you have anything funky in ~/.bashrc ?
<ldlework> clever: is there such thing as a .nixignore to prevent some things in src= from going into the context?
<ldlework> kinda like .dockerignore?
<ptival[m]> no, I don't have a .bashrc, but I have $SHELL set to zsh, and it seems that's what nix-shell runs
<clever> ldlework: lib.cleanSource
<iqubic`> can I see what a standard shell.nix looks like?
<clever> ptival[m]: try `SHELL=/run/current-system/sw/bin/bash nix-shell` ?
<ldlework> cool
<clever> iqubic`: 2019-08-25 13:05:41 < clever> ldlework: with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ mono ]; }
<ldlework> clever: it built! /nix/store/3h6w6dbai6ph3mm8rzrqy330cxf2lgkf-disinfo-dependencies
<clever> ldlework: now try building it with: --option repeat 9
<ldlework> clever: it just spit out the same derivation path
<clever> ldlework: youll want to make a change to the source as well
<clever> ldlework: and-or delete result and run a GC
<iqubic`> Thank you.
orivej has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
<ldlework> clever: what do you mean change the source?
<ldlework> also what are we testing
<clever> ldlework: make a change to the source code so it has to build again
<clever> ldlework: that you didnt make false assumptions about how reproducible it is
dasj19 has joined #nixos
<{^_^}> [nixpkgs] @globin pushed 1000 commits to gcc-8: https://git.io/fjAYt
<ldlework> clever: hmm no matter what I do, it just spits out the same thing
<ldlework> i even changed the derivation..
viric has quit [Read error: Connection reset by peer]
<clever> ldlework: then you set outputHash on the main build, which is a promise that the output will be the same as last time
<clever> ldlework: so nix is trusting your lie, and ignoring all changes
<clever> ldlework: thats why you have to split it into 2 pieces, download and build
wfranzini has quit [Remote host closed the connection]
<ldlework> I only set the hash inside the dependencies
<ldlework> I haven't done anything to default.nix
wfranzini has joined #nixos
<clever> ldlework: can you gist all of the nix files?
<ldlework> i have default.nix and paket.nix (for dependencies)
<ldlework> yes
<sphalerite> Is there a way to set a channel to a specific revision? I'm suspecting I might need to do `nix-channel --add https://releases.nixos.org/nixos/19.03/nixos-19.03.173369.500931b1f65 nixos && nix-channel --update`, then set the URL back to the normal one, or is there a better way?
<clever> sphalerite: does it need to be a channel?
<sphalerite> clever: yeah I want to use the latest version of nixpkgs before a breaking commit was introduced, without fudging up my NIX_PATH
jollyjester has joined #nixos
<clever> sphalerite: -I nixpkgs=foo
<jollyjester> hello i'm trying to make a program using cairo but cairo.h is not found
<ldlework> clever: https://gist.github.com/dustinlacewell/95a7d9b4b3b0364b325da514f31e972d I was running `nix-build paket.nix --option repeat 9`
<jollyjester> any advice on how to solve this?
bdesham has joined #nixos
<sphalerite> clever: I'd like to continuously use that version until the problem is fixed
<sphalerite> clever: without always passing -I (which I consider a form of fudging NIX_PATH)
<symphorien> Compile inside nix-shell -p cairo, jollyjester
<clever> sphalerite: ah, messing with nix-channel --add like you showed is probably the best option then
<jollyjester> symphorien: how do i do this with a makefile
<iqubic`> How do I define my own environment variable inside of a mkDerivation block?
<symphorien> Run make inside nix-shell -p cairo
<clever> ldlework: did you delete the result symlink and nix-collect-garbage?
<ldlework> no
<clever> iqubic`: variable = "value";
<clever> ldlework: do that now
<ldlework> delete /nix/store/3h6w6dbai6ph3mm8rzrqy330cxf2lgkf-disinfo-dependencies ?
<bdesham> my config.nix contains a bunch of package overrides. how can I build my overridden version of a package against a local clone of nixpkgs instead of whatever's in my NIX_PATH?
<iqubic`> Like I want variable $FOO to be set to "bar" but only in my nix-shell.
<symphorien> I would advise against using nix inside your build system
<ldlework> oh delete result/
<jollyjester> symphorien: i did still not found
<turion> Hi! I'm trying to get https://luna-lang.org/ to work and to add it to nixpkgs. (https://github.com/NixOS/nixpkgs/issues/63895) The efforts to get this to work so far are https://github.com/turion/luna-platform, building on https://github.com/mulderr/luna-platform. But I'm stuck here and I need some help. Currently, when I do nix run '(import ./. {}).ghc.luna-studio-runner', I get some strange hash mismatches that I can't track down
<{^_^}> #63895 (by turion, 8 weeks ago, open): Add luna
<clever> ldlework: yeah, if you dont delete result, nix-collect-garbage wont be able to delete /nix/store/3h6w6dbai6ph3mm8rzrqy330cxf2lgkf-disinfo-dependencies
justanotheruser has joined #nixos
<jollyjester> symphorien: nix-shell -p cairo and then cc main.c and cairo.h not found
<symphorien> ,locate cairo.h
<{^_^}> Found in packages: wxGTK29, palemoon, cairo.dev
<clever> jollyjester: the cairo devs decided to put the headers in $out/include/cairo/cairo.h
<jollyjester> oh cairo.dev
<jollyjester> makes sense
<symphorien> Try cairo.dev ?
<clever> jollyjester: to solve the same problem nix solves
<clever> which breaks nix :P
<clever> so you must use pkgconfig to "discover" the right -I path
<ptival[m]> @clever even with bash I get nothing http://paste.awesom.eu/O1OM :\
<clever> [clever@amd-nixos:~]$ nix-shell -p cairo pkgconfig
<clever> -I/nix/store/2wqfsqcph8r1g2azmbzzy78hcmfdaai0-cairo-1.16.0-dev/include/cairo -I/nix/store/2kil756l9k1gx79i6faaqdiwn013j67s-freetype-2.10.0-dev/include/freetype2 -I/nix/store/2kil756l9k1gx79i6faaqdiwn013j67s-freetype-2.10.0-dev/include
<clever> [nix-shell:~]$ pkg-config --cflags cairo
<clever> ptival[m]: `--command bash` is at fault, that opens a new shell that lacks the functions
<ptival[m]> oh
<jollyjester> clever:
<clever> ptival[m]: you must use `SHELL=/run/current-system/sw/bin/bash nix-shell` without --command
<ptival[m]> ok, will try with `NIX_BUILD_SHELL` then
<jollyjester> how do i do that clever
<{^_^}> [nixpkgs] @mmahut opened pull request #67454 → wavpack: CVE-2018-7253 and CVE-2018-7254 → https://git.io/fjAY4
<clever> ptival[m]: or possibly that
<clever> jollyjester: i just showed you how
<jollyjester> oh
<jollyjester> oops
<iqubic`> So, if I add FOO = "bar" to the inside of my mkDerivation block, it should add an environment variable?
<clever> iqubic`: yes
<ldlework> clever: is it going to rebuild it 9 times now
<ldlework> lol
<clever> iqubic`: every single thing you put in mkDerivation becomes an env var
<clever> ldlework: 10 times!
<jollyjester> clever: i still get a not found error
<jollyjester> even after what you gave me
<clever> jollyjester: did you include the output of pkg-config in the args of cc?
<jollyjester> ooo that's what i'm supposed to do
<ldlework> clever: but it only built it once
<clever> ldlework: probably a bug in nix then, but if the hash is right and the same, then it works
<clever> ldlework: at least for that version of mono
selfsymmetric-pa has quit [Remote host closed the connection]
jollyjester has quit [Quit: leaving]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/9e2d258f928 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<iqubic`> What is the purpose of a default.nix?
<ldlework> clever: in my default.nix I'm doing `cp -r --parents ${deps}/* .` but getting cp: cannot create directory './nix/store/3h6w6dbai6ph3mm8rzrqy330cxf2lgkf-disinfo-dependencies/packages': Permission denied etc
<clever> iqubic`: to be a default nix expression
<clever> ldlework: why are you using --parents?
casaca has quit [Ping timeout: 268 seconds]
<ldlework> so that the file structure is preserved
<clever> ldlework: -r already does that
<ldlework> directory structure rather
<clever> ldlework: and dont use *
<ldlework> you're right
iqubic` has left #nixos ["ERC (IRC client for Emacs 27.0.50)"]
<ldlework> hmm dang when building dotnet wants to change shit in the store
<ldlework> Permission denied to modify the '/nix/store/bkrkm7fia7f3vfjk7j9hplag9r7l4bp9-dotnet-sdk-2.2.103/sdk/NuGetFallbackFolder' folder.
casaca has joined #nixos
<clever> ldlework: why is it trying to modify its own source?
pie_ has joined #nixos
<ldlework> crap like this too
<ldlework> /nix/store/bkrkm7fia7f3vfjk7j9hplag9r7l4bp9-dotnet-sdk-2.2.103/sdk/2.2.103/NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/build/disinfo/Disunity.Disinfo/Disunity.Disinfo.csproj]
<ldlework> damn it dotnet
<clever> ldlework: youll need to find a way to convince it to build without network access
fendor__ has joined #nixos
fendor_ has quit [Ping timeout: 244 seconds]
<ptival[m]> @clever thanks, figured out my problem!
<{^_^}> [nixpkgs] @mmahut opened pull request #67455 → python2: CVE-2018-20852 → https://git.io/fjAYV
<{^_^}> [nixpkgs] @mmahut merged pull request #67444 → nixos/memcached: Remove PrivateUsers → https://git.io/fjAtx
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAYr
pie_ has quit [Ping timeout: 250 seconds]
<ldlework> clever: now that i'm building default.nix with just `nix-build` i can't get it to rebuild the dependencies package
<ldlework> i don't have a `./result/` folder and i've run GC
<ldlework> Oh I probably need to make a new fake hash
<clever> ldlework: yeah, if any part of the fixed-output drv changes, you need to zero out a few digits of the hash, and get the new one
<clever> ldlework: the hash is telling nix that the output is unchanging
<{^_^}> [nixpkgs] @markuskowa merged pull request #67446 → megasync: 4.1.1.0 -> 4.2.3.0 → https://git.io/fjAqa
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjAYS
selfsymmetric-mu has joined #nixos
shibboleth has quit [Quit: shibboleth]
chloekek has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e19411ecc0b (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Myhlamaeus1 has joined #nixos
<{^_^}> [nixpkgs] @globin pushed to gcc-8 « getxbook: fix merge »: https://git.io/fjAYd
selfsymmetric-mu has quit [Remote host closed the connection]
<turion> How do I generate a shell.nix from a cabal.project?
<turion> Or a default.nix for that matter
<ptival[m]> cabal2nix ./. --shell
<ptival[m]> oh
<ptival[m]> from cabal.project, not a cabal file?
<turion> Not a myproject.cabal
<turion> Yes
<clever> turion: (import ./. {}).env
<clever> assuming default.nix is the result of loading the cabal2nix output
<ptival[m]> yeah you should pretty much have a default.nix per cabal file
<turion> I basically have a folder with a lot of interdependent cabal projects
selfsymmetric-mu has joined #nixos
<clever> turion: ah, youll want to cabal2nix each one
<clever> turion: with import <nixpkgs> {}; haskellPackages.override { overrides = hsuper: hself: { foo = hself.callCabal2nix "foo" ./foo {}; }; }
<clever> turion: repeat the foo=...; for each directory with a cabal file
<turion> Ok, but I can do that from the root directory as well somehow, right?
<clever> then your shell.nix for each subdir, would be something like: (import ../.).foo.env
<clever> turion: the default.nix goes in the root dir, and loads all of the cabal files, like i showed
<clever> and then a shell.nix goes into each subdir
<turion> Oh I see
<turion> I can't make one shell.nix that somehow takes an additional parameter corresponding to the subproject?
<clever> you could
<clever> { project }: (import ./.).${project}.env
<clever> then nix-shell ../shell.nix --argstr project foo
<turion> Ah, that's cool!
<clever> but its simpler to just make a `(import ../.).foo.env` in `foo/shell.nix`
<clever> then you dont have to remember how it works, you just `cd foo ; nix-shell`
<turion> yes true
<turion> How would I do cabal test and a package-aware ghci?
<clever> `runhaskell Setup.hs` is identical to `cabal`, but will get the right version
<turion> Just enter the shell and do cabal new-test?
<clever> `runhaskell Setup.hs repl` is then `cabal repl`
<ldlework> clever: I moved the bit of the build process that needs the internet to the deps derivation but I'm getting the following: https://gist.github.com/dustinlacewell/2b115155cb946efb1cb3201feffa34f1
<clever> and then, `ghci -c "runhaskell Setup.hs repl"` to pull up ghci
<ldlework> clever: This is after the first part, which also accesses the internet, works completely fine and downloads all the packages
<turion> Ok, I'll try that :) thanks a lot clever!
<clever> ldlework: i think its trying to query the package db, to know what the latest version is, and if it can just use what its finding on disk, or has to update
<clever> ldlework: you must figure out how to force it to stop doing that
<ldlework> clever: this is during the derivation that has internet access
<ldlework> i think it has something to do with https validation
<turion> Hmm how about cabal test though
<clever> ldlework: oh, ssl, one minute
<clever> turion: runhaskell Setup.hs test
<turion> Oh, just runhaskell Setup.hs test
<ldlework> i can't even curl the file that nuget is trying to get at
<turion> :)
<clever> turion: and `runhaskell Setup.hs configure --enable-tests`
<ldlework> clever: do you have a big personal relational knowledge base, or do you like go into a savant like seizure where you deep recall arbitrary nix technique?
<clever> ldlework: some env var has to be set to ${cacert}/etc/ssl/certs/ca-bundle.crt
<ldlework> asking for a friend
<clever> cant remember the exact one, but if you grep nixpkgs for that string, youll find other examples
<ldlework> grep nixpkgs?!
<clever> 2019-08-19 14:55:57 < pie_> Profpatsch: sigfig confirms why clever is so good v
<clever> 2019-08-19 14:55:59 < pie_> https://twitter.com/sigfig/status/1163194784225333250
<ldlework> oy vey
<clever> ldlework: and this tweet explains my secret :P
<ldlework> clever: so both nuget and curl both failed to get at this json file behind https. are there like application specific environment variables for this?! or is there a system location we can put the bundle so that apps find it
<clever> ldlework: the sandbox is stopping openssl from finding the default ca cert list, you have to set an env var to tell it who to tust
<clever> trust*
<ldlework> so look up the openssl env var
<ldlework> maybe SSL_CERT_DIR will do it
<clever> ldlework: grep nixpkgs for `etc/ssl/certs/ca-bundle.crt`
<ldlework> don't tell me what to do :o
<ldlework> :D
<ldlework> no pls do
<{^_^}> [nixpkgs] @mmahut merged pull request #67449 → nixos/jormungandr: adding genesis tests → https://git.io/fjAmE
<{^_^}> [nixpkgs] @mmahut pushed 4 commits to master: https://git.io/fjAOT
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
nisstyre has quit [Quit: WeeChat 2.5]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> ,
<{^_^}> Special commands: find tell locate expand - Commands sorted by use count, page 0 (use ,<n> to view page <n>): tofu help libraries unstable unfree escape'' library declarative ping escape" overlay howoldis pinning -a ask callpackage profiling pr paste imperative cache which-channel xy wololo exec fancy-uninstall nixlang++ pills xml haskell loot stateversion botsnack channels home-manager stuck pointers tias timer dontask pure-eval runtimedeps thesis
<clever> dang thats some high lag
pie_ has joined #nixos
<angerman> clever: got it to finally build. Will need to try something more involved next.
<clever> angerman: id be interested in static arm builds
<clever> angerman: since that would open up android fairly easily
<clever> you can ignore the entire android NDK issue
<angerman> Are you sure you can?
<clever> angerman: the NDK is basically the libraries you link to (which live in /system/lib) and the headers for those libraries
<clever> but if you have a static ELF file that fits the cpu arch, you dont care
<clever> and the compiler toolchain for producing compatible binaries
<angerman> clever: sure assuming you only perform the syscalls that your kernel permits.
ris has quit [Ping timeout: 246 seconds]
<clever> yeah
<{^_^}> [nixpkgs] @mmahut opened pull request #67456 → nixos/unifi: restarting on failure → https://git.io/fjAOO
_ris has joined #nixos
laika___ has joined #nixos
cunny[m] has joined #nixos
cunny[m] has left #nixos [#nixos]
Soo_Slow has joined #nixos
vvbb[m] has joined #nixos
<vvbb[m]> hello
<vvbb[m]> anyone here knows how to use nix-shell?
<vvbb[m]> i'm just trying to build a project using cairo, trying to import the cairo package but keep getting cairo.h missing
<vvbb[m]> also if anyone is willing to teach me how to use nix-shell that'd be great
drakonis has quit [Ping timeout: 246 seconds]
pointfourone has quit [Quit: Leaving]
<clever> vvbb[m]: create a default.nix with these contents: with import <nixpkgs> {}; stdenv.mkDerivation { name = "name"; buildInputs = [ cairo pkgconfig ]; }
<savanni> I use nix-shell for almost every project, so I have a lot of examples.
<clever> vvbb[m]: then put CFLAGS=$(pkg-config --cflags cairo) into your Makefile
<vvbb[m]> hmm thank you very much
pie_ has quit [Ping timeout: 250 seconds]
thc202 has quit [Ping timeout: 272 seconds]
<vvbb[m]> i'm using qtcreator
<vvbb[m]> by the way
<vvbb[m]> just adding that to my makefile will make it work
<vvbb[m]> or do i need additional setup
<vvbb[m]> clever:
<clever> vvbb[m]: the makefile also has to use $CFLAGS when building things
drakonis has joined #nixos
<vvbb[m]> ok but i don't need to run qtcreator using nix-shell or something like that just add the CFLAGS part to my makefile
<vvbb[m]> also does this matrix chat bridge to irc?
<clever> vvbb[m]: if qtcreator is going to be running `make`, then you need to run it within nix-shell
<clever> but if you only run make yourself in the shell, then you can just do only `make` in `nix-shell`
<vika_nezrimaya> Please congratulate me on turning my laptop into a Hydra build server
<vvbb[m]> congrats
<savanni> :applause:!
<vika_nezrimaya> I had a spare laptop and couldn't think of a project
<clever> vika_nezrimaya: next fun step is deploying to it with nixops and the none backend
<vika_nezrimaya> Clarification please? What do you mean?
<clever> vika_nezrimaya: https://github.com/cleverca22/nixos-configs/blob/master/deployments/house.nix is an example of how i deploy to my nas and router
<vika_nezrimaya> trying to use NixOps to manage it?
<vika_nezrimaya> hm
<clever> vika_nezrimaya: nas.nix and router.nix take the place of configuration.nix
jollyjester has joined #nixos
<jollyjester> test
<vika_nezrimaya> what's your router machine, clever?
<vvbb[m]> ok yeah there's an irc bridge
jollyjester has quit [Client Quit]
<clever> vika_nezrimaya: a 2U server with a pair of xeon cpu's (dual socket) and 8gig of ecc ram
<vika_nezrimaya> There is indeed an IRC bridge, @vvbb. I'm currently on IRC and I read your messages! I assume you're a Matrix user?
<vika_nezrimaya> clever: ughhh servers :3 I want one but I don't have the money and space for it
<vika_nezrimaya> that's why I have an RPi
<vika_nezrimaya> and now, as soon as the git clone of nixpkgs finishes on Hydra, it'll try to build a minimal NixOS system and some packages to go with it
jgt has joined #nixos
<clever> vika_nezrimaya: its actually an old machine from my dads work, that had the power supply fail, so it was replaced
<clever> then i fixed it
<clever> model name : Intel(R) Xeon(TM) CPU 3.20GHz
<clever> Aug 25 17:58:42 router kernel: e1000 0000:04:02.1 enp4s2f1: Detected Tx Unit Hang
<clever> the cpu's are pretty old, and its not dual core, its dual socket!
<clever> and lately, the network card has been having eratic hanging issues
<vika_nezrimaya> means your internet can suddenly disappear?
<ldlework> clever: why can't I copy a file from some other package to the current working directory (ie stuff from src=)? I get permission denied.
<ldlework> cp: cannot create regular file './nix/store/pqps6wscaffsmg3q3mcs8y440ka3vbrd-disinfo-dependencies/Paket.Restore.targets': Permission denied
<clever> vika_nezrimaya: both the lan and wan cards are failing, so either the router looses internet, or the house looses the router, lol
<ldlework> but this ^ is where I'm running my build command, and where I need that file to be
<clever> vika_nezrimaya: but it recovers after ~30 seconds
<clever> the problem is that it tends to happen in bursts, sometimes back to back, so it keeps re-breaking
<vika_nezrimaya> I think 30 seconds may actually be enough for some things to timeout...
<clever> ldlework: cp preserves the permissions, one minute
<clever> ldlework: cp --no-preserve=mode -r
<clever> vika_nezrimaya: yeah, some things do fail every now and then
<clever> vika_nezrimaya: i thought it might be related to the summer heat, and stuck an extra fan in it (tech support gore style!) but its still happening
<clever> vika_nezrimaya: the top half of a floor fan is just jammed into the shelving unit, above the open case, lol
nabana has joined #nixos
<ldlework> Why am I having such trouble with this sed replacement?
<ldlework> find ./Disunity.Disinfo/obj/ -type f -print0 | xargs -0 sed -i "" -e "s@/build/disinfo@$out@g"
knupfer has joined #nixos
<ldlework> sed: can't read : No such file or directory
<balsoft> clever: I ususally use a vacuum cleaner for that purpose
<ldlework> that folder is full of files :(
<clever> ldlework: the "" told it to open ""
<ldlework> damn you stack overflow!
<{^_^}> [nixpkgs] @scalavision opened pull request #67457 → singularity: prepatch path to cp in 3.2.1 → https://git.io/fjAOz
nisstyre has joined #nixos
<clever> vika_nezrimaya: https://imgur.com/XUwWWbP
<{^_^}> [nixpkgs] @alexarice opened pull request #67458 → [WIP] environment.etc: loaOf -> attrsOf → https://git.io/fjAOw
reallymemorable has joined #nixos
MinceR_ is now known as MinceR
<vika_nezrimaya> Aaaand nixpkgs fetch on my hydra timed out!
<ldlework> ugh running out of steam on this
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67352 → pythonPackages.dogtail: fix sniff → https://git.io/fjNgp
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjAO6
<vvbb[m]> what's a way i can upgrade packages installed using nix-env
rsoeldner has quit [Remote host closed the connection]
<clever> vvbb[m]: run nix-env -iA on the same package again
<{^_^}> [nixpkgs] @worldofpeace merged pull request #67136 → out-of-tree: init at 1.0.1 → https://git.io/fjb0w
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjAO9
reanimus has quit [Ping timeout: 276 seconds]
bakakuna has joined #nixos
growpotkin has joined #nixos
<ldlework> clever: what's the quick way to also install a bin script with the right dotnet executable so Ican do `dotnet run TheDll.dll`
<ldlework> some writeScriptBin thing
<clever> ldlework: writeShellScriptBin or writeScriptBin
dahirsch has joined #nixos
wtv_nick has joined #nixos
<ldlework> clever: do Icall that from inside installPhase
dahirsch has quit [Remote host closed the connection]
<clever> ldlework: its a nix function
<clever> ldlework: so you call it from the nix file, and pass it the other derivation as a string
<ldlework> huh so like the top-level derivation ends up being the helper script?
<clever> writeShellScriptBin "name" "${something}/bin/dotnet run ${yourthing}/TheDll.dll"
<clever> yeah
<ldlework> I see...
<clever> default.nix could also return an attribute set, containing: the deps, the real build, and the script
<clever> then you nix-build -A wrapper
jgt1 has joined #nixos
bakakuna has quit [Ping timeout: 272 seconds]
jgt has quit [Ping timeout: 252 seconds]
<zfnmxt> What's the best way to restart a systemd service on resume from suspend? There's powerManagement.resumeCommands, but there's also systemd-suspend, and maybe other ways. Not sure what's the best.
<clever> zfnmxt: there is a systemd target you can do something with (i forget what), which will cause systemd to restart it for you
xkapastel has quit [Quit: Connection closed for inactivity]
<ldlework> clever: interestingly I get no output at all
<ldlework> but my service seems to connected to discord
<ldlework> but doesn't respond to anything, etc
<ldlework> strange
<clever> ldlework: any debug flags you can enable, or sprinkle prints thru the code?
<zfnmxt> clever: Yeah, I think suspend.target. Probably better like that than via powerManagement.
jgt1 has quit [Read error: Connection reset by peer]
jgt1 has joined #nixos
jgt1 has quit [Ping timeout: 276 seconds]
jgt1 has joined #nixos
devalot has quit [Quit: ZNC - http://znc.in]
<{^_^}> [nixpkgs] @mmahut closed pull request #45446 → spdlib: init at 3.3.0 → https://git.io/fATLM
<{^_^}> [nixpkgs] @matthewbauer merged pull request #65844 → man: use man-db everywhere → https://git.io/fjHeo
<{^_^}> [nixpkgs] @matthewbauer pushed 6 commits to staging: https://git.io/fjA3f
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/af9f401b9a4 (from 15 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<{^_^}> [nixpkgs] @primeos closed pull request #66177 → wayland-protocols: 1.17 -> 1.18 → https://git.io/fjQY7
civodul has joined #nixos
zupo has joined #nixos
jgt1 has quit [Ping timeout: 244 seconds]
<ldlework> clever: my dotnet core service is running in nixos!
<ldlework> what a time to be alive
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lurpahi has quit [Ping timeout: 248 seconds]
devalot has joined #nixos
laika___ has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjA3q
<{^_^}> [nixpkgs] @worldofpeace merged pull request #65370 → _3llo: init at 0.3.0 → https://git.io/fjDFx
dasj19 has quit [Quit: dasj19]
phdoerfler has quit [Quit: Leaving.]
Izorkin has joined #nixos
edwtjo has quit [Ping timeout: 272 seconds]
phdoerfler has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
<{^_^}> [nixpkgs] @7c6f434c opened pull request #67459 → lispPackages: update to Quicklisp release 2019-07-11 → https://git.io/fjA3Y
<{^_^}> [nixpkgs] @primeos opened pull request #67460 → wev: init at 2019-08-11 → https://git.io/fjA3O
<vika_nezrimaya> Can Hydra be theoretically run on aarch64?
ixxie has quit [Ping timeout: 248 seconds]
<samueldr> vika_nezrimaya: do you mean the evaluator and all services or having builders?
<samueldr> though, the distinction shouldn't matter and the answer AFAIK is yes
<vika_nezrimaya> samueldr: services
<vika_nezrimaya> builders are trivial
<vika_nezrimaya> samueldr: great!
<vika_nezrimaya> I suppose my RPi4 could be crunching some builds too
<{^_^}> [nixpkgs] @matthewbauer pushed commit from @mroi to release-19.03 « glibc: fix cross builds on Darwin »: https://git.io/fjA3n
<vika_nezrimaya> when I get it
<vika_nezrimaya> when I buy it...
<samueldr> as of right now nixos isn't trivial to get going on the rpi4, but it's a question of time, for when upstream projects stabilize the aarch64 stuff
<samueldr> (both the kernel and u-boot, u-boot currentlu waiting on the kernel)
<vika_nezrimaya> People are doing nixos on rpi4 with some patches and overlays
<vika_nezrimaya> I saw it in the issue
<samueldr> yeah, "isn't trivial" :)
<vika_nezrimaya> didn't look closely yet
phdoerfler has quit [Quit: Leaving.]
<samueldr> trivial would be just `dd`ing the sd_image as usual :)
<vika_nezrimaya> pfffft that's too boring
<samueldr> nah, that's trivial :)
<vika_nezrimaya> I don't like dding images anyway, I want to be able to nixos-install them
wfranzini has quit [Remote host closed the connection]
<samueldr> well, in a way the same applies, if you're booting from u-boot
<samueldr> (I'm not sure if you have experience with the rpi side of nixos)
wfranzini has joined #nixos
reallymemorable has joined #nixos
<vika_nezrimaya> I'm at the "Booted an image I cross-compiled on my RPi2 and now I don't know what to do with it"
<samueldr> ah, so you at least can explore the boot chain, it's the same for aarch64 rpis
LouisDK has joined #nixos
LouisDK has quit [Remote host closed the connection]
_ris has quit [Ping timeout: 245 seconds]
fendor_ has joined #nixos
LouisDK has joined #nixos
fendor__ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #67459 → lispPackages: update to Quicklisp release 2019-07-11 → https://git.io/fjA3Y
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fjA34
_ris has joined #nixos
freeman42x has joined #nixos
<LouisDK> What's the difference between the things under "buildInputs" and the things in line 1: https://github.com/NixOS/nixpkgs/blob/500931b1f653942cadc1cf93e563dad80d929616/pkgs/aapplications/video/mythtv/default.nix Are the things in the first line deps needed for the package to run?
<LouisDK> Still pretty new to nixos. If there's some docs on it - just send me a link.
<samueldr> 404 for the link here
<ashkitten> that link 404s
<ashkitten> oh, i see
<samueldr> (I'm assuming the commit linked is in a private repo)
fendor_ has quit [Ping timeout: 258 seconds]
<samueldr> what you see here, is what we name the `callPackage` convention
<{^_^}> [nixpkgs] @peti merged pull request #67366 → update mailman to version 3.2.2 → https://git.io/fjNil
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fjA3z
<samueldr> the file contains an expression that is a function, which declares its dependencies required; the output of the function is a derivation
<LouisDK> Makes sense. Thanks.
<samueldr> so the initial attrset-looking thing `{ stdenv, /* ... */ }:` is used to inject dependencies
<samueldr> om
<samueldr> oops
<samueldr> in `all-packages.nix` it is being called using `mythtv = libsForQt5.callPackage ../applications/video/mythtv { };`
<samueldr> (libsForQt5.callPackage is a specialized callPackage)
edwtjo has joined #nixos
<samueldr> callPackage will input the required dependencies from the package set, and if needed you could pass an overriden dependency. e.g. if you needed a specific perl, it would be `/*...*/ callPackage { perl = perl528; }`
reallymemorable has quit [Quit: reallymemorable]
knupfer has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @peti opened pull request #67461 → update mailman to version 3.2.2 → https://git.io/fjA3M
ensyde has joined #nixos
<LouisDK> samueldr. I'll have to read up on overrides as mythtv 30.0 have to be build differently for a system using the nvidia driver.
<{^_^}> [nixpkgs] @xworld21 opened pull request #67462 → hugo: 0.55.4 -> 0.57.2 → https://git.io/fjA3S
sandrab has joined #nixos
jgt1 has joined #nixos
knupfer has joined #nixos
_ris has quit [Ping timeout: 260 seconds]
<vika_nezrimaya> Cross-compilation board at https://github.com/NixOS/nixpkgs/projects/8: how to read? is it even updated?
sandrab has quit [Remote host closed the connection]
ris has joined #nixos
<evanjs> infinisil: Bah. Got znc and clients setup (following your setup), but I can't figure out how to connect remotely (port forwarding and etc is done). Do I need to specifiy config.networking.domain (for acme) if I'm using NetworkManager for DHCP?
<vika_nezrimaya> tilpner: so it's abandoned ok
<tilpner> vika_nezrimaya: It does look abandoned
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<evanjs> Per nixos-option: "The domain. It can be left empty if it is auto-detected through DHCP."
LouisDK has quit [Remote host closed the connection]
Lears has joined #nixos
ris has quit [Ping timeout: 252 seconds]
<vika_nezrimaya> tilpner: I wish I could overtake it... Right now my build laptop seems to be able to produce cross-compiled armv7l derivations (and I plan to publicly expose the binary cache), though it's obviously in no way would be able to keep up with Hydra
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
chiiba has joined #nixos
<tilpner> vika_nezrimaya: You can certainly work on cross-compilation without editing access to that project board
<vika_nezrimaya> I can
<ivan> evanjs: the domain is used for dns lookups and is unrelated to connecting remotely
<ivan> evanjs: the nixos firewall might be blocking you
ris has joined #nixos
<tilpner> vika_nezrimaya: You may want to coordinate with dezgeg on a joint cache (not sure if that's still a thing)
<vika_nezrimaya> Right now I'm only deploying a small set of packages from the master: nginx, php (with argon2 and apxs2 disabled), mysql, postgresql, uwsgi, libgpiod, prosody, redis and uwsgi.override { plugins = ["python3"]; } (aka uwsgi-python3 in the release.nix)
<vika_nezrimaya> and a systemPath for minimal nixos system
<vika_nezrimaya> and an SD image for it (but the build is currently broken)
<vika_nezrimaya> in job 'minimal-sd': The option `sdImage.populateRootCommands' is used but not defined.
<tilpner> (Does not appear to be a thing)
<evanjs> ivan: I made sure I opened port 5000, and I’m currently connected to ZNC from my phone. Is there anything beyond allowedTCPPorts required for remote connections?
<vika_nezrimaya> tilpner: why?
<tilpner> vika_nezrimaya: https://www.cs.helsinki.fi/u/tmtynkky/nixos-arm/channel/ has no dates from 2019
<vika_nezrimaya> the cache wasn't updated in months, I'm not sure of the reasons
<vika_nezrimaya> so I decided to start my own
<ivan> evanjs: just that. so it works from your phone? (but not somewhere else?)
<evanjs> Bah. When I said “remotely” I should’ve specified WAN connections (that are port forwarded by my router). Within the LAN, things seem to work fine
Zer0xp has quit [Ping timeout: 246 seconds]
chr15 has quit [Ping timeout: 246 seconds]
<ivan> sometimes routers have very dumb port forwarding configuration screens that don't save until you click another thing
<ivan> make sure you set TCP and have the right port and LAN IP
<ivan> sometimes they have additional firewall things that can reject packets
<ivan> sometimes they don't have hairpin NAT and fail to route properly when you use the WAN IP from inside the LAN
<ivan> sometimes ISPs filter some ports unconditionally
<vika_nezrimaya> tilpner: what do you think of my set of packages? Should I add something maybe? don't suggest Apache, apr doesn't cross-compile (NixOS/nixpkgs#67259)
<{^_^}> https://github.com/NixOS/nixpkgs/issues/67259 (by kisik21, 3 days ago, open): apr doesn't cross-compile
<evanjs> on a MikroTik right now so it's a different kind of "dumb" :P
<tilpner> vika_nezrimaya: You could add some compilers (clang, rustc, ghc), that cuts compilation times for other applications shorter without actually compiling all of them. Of course they usually take forever
<cyris212> Does someone have a working systemd timer for unison?
<tilpner> I had a working unison in watch mode
<cyris212> I run into the weirdest errors when launching unison as a nixos systemd user service.
<vika_nezrimaya> tilpner: do a lot of apps get compiled with clang?
<cyris212> tilpner: Was unison started through systemd in your case?
ensyde has quit [Ping timeout: 264 seconds]
nabana has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @mmahut merged pull request #66682 → ix: init at 20190815 → https://git.io/fjdWG
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAsz
<tilpner> vika_nezrimaya: I don't have any numbers, but a quick look says: probably not _that_ many
<tilpner> cyris212: Yes
jgt1 has quit [Ping timeout: 264 seconds]
shabius_ has joined #nixos
<cyris212> tilpner: Any chance that you have the related snippet in your dotfiles or somwhere else?
shabius has quit [Ping timeout: 252 seconds]
<vika_nezrimaya> tilpner: afl uses Clang, but it's not available on ARM per meta.platforms
ris has quit [Ping timeout: 244 seconds]
<vika_nezrimaya> mozc uses Clang
alanz has quit [Remote host closed the connection]
<tilpner> cyris212: There is this, but it's a system service: https://github.com/tilpner/nur-packages/blob/master/modules/unison.nix
<cyris212> tilpner: thx
<tilpner> cyris212: Here's how I used that module: https://tx0.co/MVI
<cyris212> I think I found my issue
<vika_nezrimaya> tilpner: I counted five in all-packages.nix
<tilpner> vika_nezrimaya: So leave it out
<EsperLily> I didn't even know there was a service for unison. What does it do as a service? I just have it installed as a system package
<cyris212> EsperLily: there isn't one.
<cyris212> At least not an official module in nixpkgs.
chiiba has quit [Ping timeout: 248 seconds]
<evanjs> ivan: I think I see what you're saying now. SSH Home -> Work -> Home works fine but SSH Home -> Home (WAN Address) doesn't seem to work. Guess I'll take a look at some MT forums on how to configure hairpin NAT or similar solutions. Confirmed working via LTE from my phone without any changes, so that must be it. Thanks!
<cyris212> tilpner: pkgs.openssh was missing in the path :-)
<cyris212> thank you!
<EsperLily> huh I didn't know you could configure unison to run automatically in response to an external file monitoring process
<EsperLily> not that I want to do that anyway
<tilpner> EsperLily: I used it as a more robust network filesystem for small shares, it worked quite well
<{^_^}> [nixpkgs] @mmahut merged pull request #67460 → wev: init at 2019-08-11 → https://git.io/fjA3O
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAsX
lurpahi has joined #nixos
<EsperLily> I use unison to synchronize a bunch of files on my desktop and laptop, have done for close to 15 years now. I only have it installed on NixOS because that's my always-on sync server
<ivan> evanjs: cool
steell has joined #nixos
Ariakenom has quit [Quit: Leaving]
ris has joined #nixos
<steell> i'm trying to write a derivation that uses the `steamcmd` package to download a bunch of binaries at install time, but during the installPhase, there seems to be no web access?
turion has quit [Quit: Leaving.]
<slabity> steell: Correct. Its all locked down so installers can't pull a nasty on you
ng0 has quit [Ping timeout: 260 seconds]
<slabity> That's why gathering sources is its own phase
laika___ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<steell> slabity: makes sense, what phase should i use then?
jgeerds has quit [Ping timeout: 246 seconds]
<steell> unpack?
ng0 has joined #nixos
<slabity> I can't remember
<EsperLily> that's actually a good question, how are the various fetchers allowed network access
<slabity> I remember seeing something about creating your own fetchFrom* type of command for setting your sources, but I can't find it
<tilpner> A derivation only gets network access if it promises to only ever produce the same result
<ldlework> i'm so bad at nixops
<tilpner> That is called a fixed-output derivation and is controlled with the attributes outputHash, outputHashMode and outputHashAlgo
<EsperLily> ah that would explain it. The fetchers I was looking at set those
<ldlework> clever: I have the following import in my nixops expression, but it fails to deploy because well that path doesn't exist on the remote machine https://gist.github.com/c02870c35a2cc62d5f3093bb2e54fea4
<ldlework> I thought that NixOps built everything locally then shipped it
<ldlework> I guess that doesn't make much sense
<ldlework> But what can I do?
<ldlework> specifically it fails on the second import
<ldlework> not sure why it doesn't fail on the first
<tilpner> ldlework: What's the content of disinfo?
<ldlework> maybe lazy stuff
<ldlework> tilpner: it's a dotnet service, with a default.nix ready to build into a package with a bin script, etc
<tilpner> How does it fail?
<ldlework> it says the file doesn't exist
<ldlework> oh shit
<ldlework> the file path is just wrong
<ldlework> lol
knupfer has quit [Ping timeout: 264 seconds]
<vika_nezrimaya> oh great, ar is hardcoded in a package
Chiliparrot has joined #nixos
<ar> vika_nezrimaya: not really. ar is laying on a beanbag at CCCamp2019 near the rocket
<vika_nezrimaya> ?
<tilpner> Look at the nick
<vika_nezrimaya> wow
<vika_nezrimaya> beanbags are nice
<vika_nezrimaya> I want a beanbag
dycan has joined #nixos
pie_ has joined #nixos
<dycan> hi, need help. abnormal shutdown when grub. Now I can't go into display-manager. It keep running in black screen. I can login by CD-ROM. I can mount /dev/sda1. But I don't know the next step to rescue.
wtv_nick has quit [Ping timeout: 272 seconds]
<vika_nezrimaya> I'd suggest using nixos-enter to chroot into your install and try to poke the logs with journalctl
<vika_nezrimaya> dycan: if you're suspecting corruption in /nix/store, you can try to repair it by using... what was it... nix-store --repair I think
<ldlework> What's the proper way to stop a service with NixOps?
<ldlework> Just remove it from the expressions?
sigmundv_ has joined #nixos
<dycan> vika_nezrimaya: Thanks for the tips. I'll learn and try it.
fusion809 has joined #nixos
<ldlework> Removing it doesn't seem to stop the service...
<m1crOman> is there any known bugs with zfs on root atm? Having a kernel panic during pool import at boot atm, but I can import fine from my install media
<{^_^}> [nixpkgs] @mmahut merged pull request #66580 → vapoursynth: R46 -> R47.2 → https://git.io/fj56M
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjAGW
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
paradigm has joined #nixos
<m1crOman> I have a screenshot of the kernel panic if anyone can read it? https://u.m1cr0man.com/sd/dvd
wtv_nick has joined #nixos
dycan has quit [Ping timeout: 248 seconds]
chloekek has quit [Ping timeout: 245 seconds]
<ldlework> Seriously though
<ldlework> How do you stop services with NixOps
<evanjs> ldlework: like a service on a nixops-deployed vm?
<tilpner> mightybyte: Did you update just before this? Can you boot an old generation?
iggi_ has joined #nixos
<tilpner> Uhh
<tilpner> m1crOman: ^
ryantm has quit [Quit: Lost terminal]
<m1crOman> tilpner, I'm installing fresh actually. I've tried twice now
<m1crOman> I am going to try with a very basic zpool config because I applied a ton of feature flags
<ldlework> evanjs: yes a systemd unit deployed with nixops
<m1crOman> (they are all boot supported I checked)
<ldlework> setting enable = false, just removes the unit
<ldlework> and the service stays running
<tilpner> m1crOman: You should compare the versions of the live system to those of the to-be-installed system
ryantm has joined #nixos
<m1crOman> tilpner, oh how can I do that?
<tilpner> m1crOman: And are you sure this is zfs-specific? Perhaps try an ext4 installation, just to verify
<m1crOman> I will try that yeah
<m1crOman> I'm pretty sure it's zfs specific because it said "Importing zpool ..." and then did a full line of dots and then paniced
<tilpner> m1crOman: `uname -r`, `zfs version` on the live system
<tilpner> (If there is no zfs version command, that's data too)
<tilpner> m1crOman: nix-instantiate --eval '<nixpkgs/nixos>' -A config.boot.kernelPackages.kernel.name
<m1crOman> ah it seems my live system is 0.7 and the install will be 0.8
<tilpner> Use that to print the version of the kernel your configuration would install
<m1crOman> Now I need to remember how I built a zfs netboot image ;P
Soo_Slow has quit [Remote host closed the connection]
<tilpner> Same with nix-instantiate --eval '<nixpkgs/nixos>' -A config.boot.kernelPackages.zfs.name
<tilpner> Same with nix-instantiate --eval '<nixpkgs/nixos>' -A config.boot.kernelPackages.zfsUnstable.name
<evanjs> ldlework: Right, I think it's going to stay like that until the VM reboots or such. If you just want to stop a service on a nixops vm, you could ssh into it with `nixops ssh` and just stop it on there. Could also `nixops deploy --force-reboo` or similar
<ldlework> :(
<ldlework> why does nginx get stopped when I remove it's unit?
<ldlework> this seems bad
<ldlework> what if I had to do this for 1000x servers?
<tilpner> What? It'd be worse to keep running after the unit is removed IMO
<ldlework> you gotta reboot your whole layer to do something like stop a systemd service?
<ldlework> what?
<ldlework> that's what it does
<tilpner> That's not what you said
<ldlework> nginx successfully quits when i remove it's unit
<ldlework> my service does not
<ldlework> is always been my message
<ldlework> :D
<m1crOman> tilpner, the zfsUnstable version in my live image is 0.8, is there a way for me to switch to that live?
<m1crOman> I guess not becaues of the kernel modules
<tilpner> ldlework: Then paste your service config
<tilpner> m1crOman: I don't think so, especially if you have loaded zfs pools
<m1crOman> tilpner, I don't since this is still the live system and I can/will blow them away
<tilpner> ldlework: What happens if you comment out lines 6 to 18?
<tilpner> m1crOman: I guess you can attempt modprobe-ing your way around, and bringing the correct userland tools into PATH, but booting an image with 0.8 installed out-of-the-box seems like a better way
<ldlework> tilpner: it's still running
<ldlework> tilpner: could it be that the process is named `dotnet` and this does not match what's in the service or something?
<tilpner> ldlework: What does systemctl status say?
<tilpner> (Append service name)
<ldlework> [root@disunity:~]# systemctl status disinfo
<ldlework> Unit disinfo.service could not be found.
<worldofpeace> Is there something similar to `relatedPackages` for options in `mkOption`?
<ldlework> because I deployed with it commented out..
<tilpner> ldlework: I suspect your KillMode is to blame
<tilpner> Why did you set that to process?
<ldlework> i copied it from my nginx config which works
<m1crOman> tilpner, agreed. I'll give adding zfsUnstable to a netboot image a try so
<ldlework> i cannot even find systemd.services.<name>.serviceConfig.KillMode documented in on the options site
<ldlework> So I have no idea what it even does
<ldlework> oh it's a systemd thing
<tilpner> ldlework: Please comment out line 15, manually kill the process, redeploy
<tilpner> ldlework: Then comment out the entire service, redeploy. It should then be killed properly
<{^_^}> [nixpkgs] @lilyball opened pull request #67463 → ffsend: v0.2.49 -> v0.2.50 → https://git.io/fjAG9
<tilpner> m1crOman: Shouldn't be more than boot.zfs.enableUnstable
<m1crOman> Yeah just finding the right file to put that in. Think I got it - the modules/installer/netboot/netboot.nix
<tilpner> Okay, good luck you two!
* tilpner sleeps
<m1crOman> goodnight :)
<ldlework> tilpner: thank you
<ldlework> tilpner: that worked
<clever> ldlework: all of `systemd.services.<name>.serviceConfig` is just directly jammed into the .service file with not type-checking
<clever> ldlework: so you want to do `man systemd.service` and `man systemd.exec`
<ldlework> hehe thanks
sigmundv_ has quit [Ping timeout: 248 seconds]
philr has joined #nixos
<{^_^}> [nixpkgs] @unode opened pull request #67464 → pandoc-placetable: enable inlineMarkdown → https://git.io/fjAGx
drakonis has quit [Quit: WeeChat 2.5]
<ldlework> tilpner: I did `nix-env -i .` on my project which outputs a WriteScriptBin but it didn't show up in my profile
<clever> ldlework: do you see it in nix-env -q ?
<clever> ldlework: what did nix-env -i output?
<ldlework> no
<ldlework> it did this
<ldlework> it like.. installed R or something
<ldlework> lol wtf
<clever> ldlework: what is the contents of default.nix?
<clever> ldlework: oh, wait
<ldlework> is it because I added a '.' ?
<clever> ldlework: -i takes a regex
<clever> and it will search <nixpks> for matching packages
<clever> you want nix-env -f . -i
<ldlework> ah
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/9e2d258f928 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<ldlework> thank you
<clever> `-i .` is a regex to match any single character
<clever> so you installed every single-character thing in nixpkgs!
<m1crOman> clever, That's a pretty sweet nix script. I fixed the issue though - I turned off forceImportRoot + forceImportAll and on first boot I had to add zfs_force=1 as per the notes in https://nixos.org/nixos/options.html#zfs.forceimportroot
orivej has quit [Ping timeout: 244 seconds]
<clever> ldlework: youll want to remove them with nix-env -e :P
<m1crOman> can confirm all good on second boot
<clever> m1crOman: one minute
<m1crOman> tilpner, ^ incase you're curious when you are back
<clever> m1crOman: you must export the pool when done with it: https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L135
<clever> if you properly export it, then you dont need to force import
<m1crOman> clever, oH! Ok I'll add that to my notes thanks
dycan has joined #nixos
<clever> m1crOman: basically, you need force if the hostid that is currently importing, doesnt match the hostid that last imported it
<clever> m1crOman: but if you export, that is cleared, allowing anybody to import
<m1crOman> clever, Right that does indeed explain the issue. Good to know the details :)
<clever> m1crOman: its basically a protection for when your pool is a block device on the lan, and multiple hosts could access it at once
<m1crOman> clever, Yeah that makes sense..at the same time should this host die and the drives be swapped into another machine the next person is going to have a good head scratcher if they don't read my notes
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3924b344254 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #67466 → nixos/gnome3: split up → https://git.io/fjAZL
<{^_^}> [nixpkgs] @valebes opened pull request #67467 → rsClock: init at 0.1.0 → https://git.io/fjAZt
Thra11 has quit [Ping timeout: 272 seconds]
ryantrinkle has quit [Ping timeout: 244 seconds]
<iggi_> I will try to package game for nix. So I need to figure out the deps and patch the binary.
<iggi_> *package a game
<iggi_> it requires libXext (from pkgs.xorg.libXext)
<iggi_> how do linker work nix? If I patched like this
<iggi_> i=$(patchelf --print-interpreter $(which bash))
<iggi_> patchelf --set-interpreter $i {binary}
<clever> iggi_: one min
<iggi_> I am in no haste :)
<clever> iggi_: you want --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)"
<clever> you can also just grab the default.nix in that gist, replace zlib with a thing, and run nix-build on it
<clever> that will generate a shell script, that patches one binary
<clever> you can then run ./result ./game, to test patching it, impurely, without nix-shell
allgreed has left #nixos ["The Lounge - https://thelounge.chat"]
camsbury has joined #nixos
justanotheruser has quit [Ping timeout: 244 seconds]
justanotheruser has joined #nixos
camsbury has quit [Remote host closed the connection]
<iggi_> hm, that is my first time using nix-build.
<iggi_> do I just call nix-build simple-test.nix ?
ris has quit [Ping timeout: 245 seconds]
<clever> iggi_: yep
<{^_^}> [nixpkgs] @globin pushed to master « darwin.network_cmds: pin to openssl 1.0.2 »: https://git.io/fjAZW
fresheyeball has joined #nixos
<fresheyeball> to use nfs on nixos do I need to mount my harddrives twice?
<fresheyeball> the tutorial shows them with ["bind"]
<fresheyeball> I am reading this
<clever> fresheyeball: bind mounting is just to alias things, like a symlink, but at a lower level
<fresheyeball> clever: can I avoid it? would you expect the config I posted to work?
<clever> yeah, i would expect that config to just work
<fresheyeball> ok
<fresheyeball> clever: perhaps the problem is on the client side
<fresheyeball> I don't see what is wrong there
<fresheyeball> but when I `cd /mnt/spruce` on the client, its empty
<fresheyeball> and when I `cd /mnt/spruce` on the server, it's got stuff
<clever> fresheyeball: does your ip match /mnt or /mnt/spruce in the exports block?
<fresheyeball> 192.168.1.10 is the ip of the client
<clever> fresheyeball: try restarting the nfs server process?
<fresheyeball> when I `cd /mnt/fig` on the client I get `cd: no such device: /mnt/fig"
<clever> fresheyeball: you can also omit lines 21-23 of the exports file
<fresheyeball> hmm I will reboot the server
<clever> /mnt is exported already
<clever> rebooting the server may be worse, because the nfs process has to start after mounting the ntfs
<clever> and if you reboot, its likely to fail the same way again
<fresheyeball> ok
<clever> removing lines 21-23 would also serve as a simple way of forcing the nfs server to restart
<clever> since it has to restart to load the new cfg
<fresheyeball> clever: unfortunate that the docs show such redundant lines
<clever> the no_subtree_check means that it should just recursively share everything
<fresheyeball> ok
<fresheyeball> was I right to put hostname: on the client?
<clever> shouldnt matter
<clever> if it was wrong, it would fail to mount
<clever> oh, and ive had major pains with the systemd automount junk
<clever> it tends to un-mount things while i'm using them, causing all kinds of problems
<clever> oh, wait, i think i see your problem
<clever> device = "goldwater:/spruce";
<clever> that grabs /spruce from the server
<clever> as in, the spruce dir in /
<clever> /mnt/spruce 192.168.1.10(rw,nohide,insecure,no_subtree_check)
<clever> but you dont have a /spruce, you have a /mnt/spruce
<fresheyeball> so the manual was quite wrong
<clever> can you link that section of the manual?
<fresheyeball> wiki my bad
<fresheyeball> the wiki
polman has quit [Ping timeout: 245 seconds]
<fresheyeball> I thought device = "server:/tomoyo"; smelled bad
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 250 seconds]
mbrgm_ is now known as mbrgm
<clever> fresheyeball: you may also want to read mountpoint=path in `man exports`
<fresheyeball> ok
<fresheyeball> so the server rebuilt just fine with those lines omitted
<fresheyeball> I updated the client to be goldwater:/mnt/spruce
<fresheyeball> mount.nfs: Failed to resolve server goldwater: Name or service not known
<fresheyeball> should I put the ip address there instead of the hostname?
<clever> can `ping goldwater` find it?
<fresheyeball> no
polman has joined #nixos
<clever> then youll either need to:
<clever> a: setup /etc/hosts with the name/ip
<clever> b: setup a local dns search domain
<clever> c: use the ip
<fresheyeball> I will use the ip :)
<iggi_> I got a list of packages, and want some part of with pkgs.xfce4-13; [ ... ]
<iggi_> like is there a way to concat two lists in nix?
<iggi_> or a way to flatten lists?
<clever> fresheyeball: line 103 creates a private .localnet TLD, so i can do things like `ping laptop.localnet`
<clever> fresheyeball: line 144 sets the search domain to localnet, so i can now `ping laptop`
dycan_ has joined #nixos
<fresheyeball> clever: you are amazing
<fresheyeball> clever:++
<fresheyeball> clever++
<{^_^}> clever's karma got increased to 179
<fresheyeball> clever++
<{^_^}> clever's karma got increased to 180
<fresheyeball> I forgot to karma you last time
<clever> fresheyeball: and you then have a normal zone file to map names to ip's
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/3924b344254 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<iggi_> did not know here is karma
<iggi_> clever++
<{^_^}> clever's karma got increased to 181
dycan has quit [Ping timeout: 244 seconds]
wfranzini has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @nathyong opened pull request #67469 → vcv-rack: 1.1.3 -> 1.1.4 → https://git.io/fjAZo
wfranzini has joined #nixos
<fresheyeball> mnt-spruce.mount: Mounting timed out. Terminating.
<fresheyeball> ugh
<fresheyeball> clever: HALP! what I do wrong this time?
<clever> fresheyeball: try mounting by hand first, i do `mount c2d:/media/videos/4tb/ /media/videos/4tb/ -v` all the time
<clever> (because i turned off auto-mount, lol)
<dycan_> vika_nezrimaya: journalctl says the disk space run out. nix-collect-garbage can fix it. Thanks for the advice!
iggi_ has quit [Quit: Lost terminal]
<fresheyeball> clever: ok I ran `sudo mount 192.168.1.20:/mnt/spruce /mnt/spruce -v`