gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<aleph-> Hey building a go package with buildGoPackage. Would I build it like: nix-build -E 'with import <nixpkgs> ().go.CallPackage ./default.nix {};'
<ottidmes> aleph-: you would call it just like normal AFAIK
drakonis has quit [Quit: WeeChat 2.3]
o1lo01ol1o has joined #nixos
<ottidmes> aleph-: nix-build --expr 'with import <nixpkgs> { }; callPackage ./. { }'
<aleph-> Yeah just got it a second before.
<aleph-> I've been building too much python stuff I think heh
<ottidmes> aleph-: I checked and took the first package using buildGoPackage, and it was just called with callPackage in all-packages.nix
<aleph-> Yep
dsiypl4 has quit [Ping timeout: 255 seconds]
<aleph-> Hmm why is this build failing...
* aleph- googles
o1lo01ol1o has quit [Ping timeout: 245 seconds]
d-fish has joined #nixos
<aleph-> Well this could be irritating.
lawlesseel has quit [Ping timeout: 256 seconds]
<aleph-> Anybody built go packages in here and had to deal with stuff using the new go.mod organizational structure?
ma9e has joined #nixos
<{^_^}> [nixpkgs] @rasendubi merged pull request #55737 → planner: unstable-2018-03-25 -> unstable-2019-02-13 → https://git.io/fh7Zl
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fh5zP
<{^_^}> [nixpkgs] @rasendubi merged pull request #55753 → awesome: drop asciidoc, no longer needed when moved to asciidoctor → https://git.io/fh70u
<{^_^}> [nixpkgs] @rasendubi pushed 2 commits to master: https://git.io/fh5zX
<noonien> hello folks
matijja has quit [Ping timeout: 272 seconds]
<noonien> i'm trying to cross-compile a binary for a target that does not run nixos
<noonien> it's a go binary, and for some reason `-dynamic-linker /nix/store/jdqssyw02jpvyvhgjks4xlv510zz5hrn-glibc-2.27-armv7l-unknown-linux-gnueabihf/lib/ld-linux-armhf.so.3 ` gets passed as an argument to gcc i believe
<noonien> this results in the binary not running on the target system, because there is no nix store
<ottidmes> how do I undo the --insecure flag passed to curl, there doesnt seem to be a --secure/--no-insecure
<noonien> ottidmes: you can't as far as i can tell
<{^_^}> [nixpkgs] @tek opened pull request #55922 → fix syntax error in tt-rss pre-start script → https://git.io/fh5z1
<clever> noonien: you want static linking then
<noonien> however, i believe all files that get downloaded via the network are verified by hash
<clever> noonien: pkgsCross.muslpi
<noonien> clever: hmm, not really, i just want the correct path for ld-linux.armhf.so.3, which should be in /lib/
<clever> ottidmes: yeah, nix verified the hash of all fixed-output things, so a mitm attack can only (waste bandwidth|see what your doing|block downloading it)
<clever> noonien: then use patchelf to change it after the build, almost exactly the same as when your packing stuff for nixos
<noonien> i see
<ottidmes> clever: I know, but when applying TOFU you actually want it enalbed
<noonien> what triggers this behavior? the way gcc was built?
<clever> ottidmes: ah, nix-prefetch-url then
<clever> noonien: the cc-wrapper script
<aleph-> Okay so my package isn't seeing the internal files it's trying to reference.
<aleph-> Hmm.
<ottidmes> clever: for example, but nix-prefetch-url is insecure too, right?
<clever> ottidmes: i think that one is secure
eadwu has joined #nixos
justanotheruser has joined #nixos
<ottidmes> clever: yep, you are right, I checked the source and seems to be the case, builtins.fetchurl is insecure (makes sense considering your previous argument). I'll keep it as a plan B
<clever> ottidmes: builtins.fetchurl doesnt use the curl command, but rather, the curl library
<{^_^}> [nixpkgs] @jmgrosen opened pull request #55923 → spotifyd: init at 0.2.4 → https://git.io/fh5zS
o1lo01ol1o has joined #nixos
<ottidmes> clever: I was referring to https://github.com/NixOS/nix/search?q=verifyTLS&unscoped_q=verifyTLS when talking about checking the source
<ma9e> has anyone tried bitbake + nix?
<clever> ottidmes: ah, that is a bit odd
drgbr has joined #nixos
<ottidmes> clever: why? its checks by default, but disables it for the builtin fetchurl, as all fetchers have it disabled by default, you could argue though that is should only be disabled when an actual hash has been given
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<clever> ottidmes: i think its because that fetcher is ran within the normal build sandbox, and can lack CA certs
<clever> and yeah, it should really only be disabling if a sha256 is present
drgbr has quit [Client Quit]
<ottidmes> clever: I am asking about this, because its one of the last features I want to implement for my nix-prefetch project
<clever> ottidmes: it may help you more to know how the hashing is done, and just hash without the store
drgbr has joined #nixos
<{^_^}> [nixpkgs] @Ekleog merged pull request #55889 → matrix-synapse: 0.99.0 -> 0.99.1.1 → https://git.io/fh5GB
<{^_^}> [nixpkgs] @Ekleog pushed 2 commits to master: https://git.io/fh5z5
<clever> outputHashMode can either be flat or recursive
<clever> flat requires that $out be a plain file, and then outputHash is just the raw hash of the file (sha256sum, and your done)
<ottidmes> clever: yeah, I am well aware of those details after doing this :P though not about the actual implementation
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<clever> recursive allows it to be a file, directory, or symlink, so it is instead the hash of the nar
<clever> nix-store --dump $out | sha256sum, and your done
<clever> the actual name/path of $out doesnt matter, so you can also nix-store --dump /tmp/foo | sha256sum
<ottidmes> clever: yeah, good points, guess thats better than the standard, lets parse an hash mismatch error approach
<clever> you can also `nix-store --add-fixed sha256 path` optionally with --recursive, to add a file to the store, and get its hash
gagbo has quit [Ping timeout: 246 seconds]
<clever> ottidmes: the nix-hash command can also do the same hashing, and convert between base32 and base64
<ottidmes> clever: for the builtin fetchers I would still have to rely on the error messages AFAIK, so I have added it to my TODO to take a look at, but I think the curl issue is higher prio
<ottidmes> clever: yep, I used it at some point in my project, not anymore though
<clever> which builtin fetcher?
<clever> builtins.fetchurl should be the flat hash, builtins.fetchTarball is the recursive hash
<ottidmes> well any really, the moment I call builtins.fetchurl for example, it will do all things at once
drgbr has quit [Ping timeout: 258 seconds]
nD5Xjz has quit [Ping timeout: 268 seconds]
thc202 has quit [Ping timeout: 245 seconds]
<ottidmes> but its only when checking the hash, I know that those builtins dont require an actual hash to work, so should never fail with a hash mismatch normally
<clever> the builtin fetchers are also serial, rather then parallel, so it can help performance to avoid them
<ottidmes> I just support them, I try not to use them myself anyways
<ma9e> what do i do if my build step depends on a certain locale?
o1lo01ol1o has joined #nixos
<clever> ma9e: just set the locale env vars, and add glibcLocales to the nativeBuildInputs
init_6 has joined #nixos
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<ottidmes> clever: its possible :D --no-insecure simply works, had not expected that
Ariakenom has quit [Remote host closed the connection]
<clever> heh, so simple!
maurer has joined #nixos
<ottidmes> yeah, was about to ask on #curl, when I thought to myself, always first try before asking, so I just tried passing curlOpts ' --no-insecure -vvvv ' and it now fails on not being able to check for a HTTPS URL, so seems to work, now to figure out how to make it not fail (probably setting the cacert path somewhere)
o1lo01ol1o has quit [Ping timeout: 246 seconds]
lassulus has quit [Ping timeout: 268 seconds]
ddellacosta has quit [Ping timeout: 255 seconds]
lassulus has joined #nixos
ddellacosta has joined #nixos
dermetfan has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55865 → python37Packages.aiorpcx: 0.10.2 -> 0.10.4 → https://git.io/fh5qp
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5gO
lawlesseel has joined #nixos
<ottidmes> hmm setting --cacert still makes it fail to download, curl: (77) error setting certificate verify locations: CAfile: /nix/store/fna8lggi520pgvdwi8p1xyzcj9706j04-nss-cacert-3.40.1/etc/ssl/certs/ca-bundle.crt (which does exist)
<ma9e> clever: is it normal to see "cannot change locale" when i run nix-shell? the variable is set correctly after that
drakonis has joined #nixos
<clever> ma9e: yeah, thats normal
drgbr has joined #nixos
<ottidmes> hmm, running the curl command done by fetchurl in my shell works, but it fails when done in the script
jluttine has quit [Ping timeout: 255 seconds]
andersk has quit [Remote host closed the connection]
andersk has joined #nixos
goibhniu has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fh5gB
goibhniu has joined #nixos
shibboleth has joined #nixos
iyzsong has joined #nixos
<ottidmes> clever: found the problem, but no clue how to fix it, in the sandbox, my /nix/store/.../etc/ssl/certs/ca-bundle.crt path does not exist, outside it does, any idea on how to fix that? make some Nix option I could use?
jluttine has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55912 → calamares: 3.2.2 -> 3.2.4 → https://git.io/fh58G
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5gr
<{^_^}> [nixpkgs] @aanderse opened pull request #55925 → apacheHttpd: 2.4.37 -> 2.4.38 → https://git.io/fh5gK
<ottidmes> guess I will try sandbox-paths
drgbr has quit [Ping timeout: 255 seconds]
shibboleth has quit [Quit: shibboleth]
<sb0> how do I completely erase all postgresql data from a nixos system?
<sb0> ny hydra install became broken (builds are stuck in "scheduled to be built" phase no matter what I do) and I'm running out of patience. i'm just going to wipe it and reinstall everything.
<Ralith> nuke /var/db/postgresql, I think?
<clever> ottidmes: yeah, sandbox-paths
<clever> sb0: its likely that your build slaves just lack features, no need to wipe the db
<clever> sb0: hydra is bad at reporting missing features
<sb0> rm -rf /var/lib/postgresql?
<sb0> I didn't touch the build slaves and I'm just using the default...
<clever> sb0: nixpkgs added more required features, and wont run on older build slaves
<sb0> well I need to reinit the DB anyway because I made a lot of mess there trying to find out WTH was wrong with hydra
<clever> sb0: there is a hydra-init.service in systemd
<sb0> yep, but my DB is currently corrupted and hydra-init won't work either
<sb0> so I just want to wipe all pgsql data and start over
<clever> ah, then stop postgresql.service, and rm that too
<sb0> rm /var/lib/postgresql?
winem_ has quit [Ping timeout: 268 seconds]
<clever> yep
<sb0> ok thanks
<ottidmes> clever: I am using in my nix eval call that calls pkgs.fetchurl, --option extra-sandbox-paths /etc/ssl/certs/ca-bundle.crt=/nix/store/fna8lggi520pgvdwi8p1xyzcj9706j04-nss-cacert-3.40.1/etc/ssl/certs/ca-bundle.crt, but when I check for /etc/ssl/certs/ca-bundle.crt the file existance in the fetchurl builder.sh, it does not exist, is what I do not allowed like that?
<clever> ` --option extra-sandbox-paths` only works if you are a trusted user
<ottidmes> hmm, which is not something I can assume, since it supposed to be a general tool
<ottidmes> guess I will have to override fetchurl to contain cacert, no?
<clever> ottidmes: only the fetch's inside nixpkgs can be overriden, the builtin ones cant
<ottidmes> I am well aware, I am talking about the one in nixpkgs
<sb0> clever: I'm using release-18.09 and I can't find the updated buildslave requirements in nixpkgs
Supersonic has quit [Ping timeout: 257 seconds]
<clever> sb0: to start with, open the queue like https://hydra.iohk.io/queue-summary, does it say what arch's have it queued?
<freusque> hello - is there a way to make extra-sandbox-paths mounted with write rights?
<freusque> I like to use these, but I get only read access.
<ottidmes> clever: the builtin ones are by definition primitives, I will work around that by just doing the verification before calling the builtin fetchers
<freusque> when building using a sandbox.
<sb0> well I have a fresh reinstall now...
<sb0> btw are you in hong kong?
<clever> sb0: eastern canada
Supersonic has joined #nixos
slack1256 has joined #nixos
<sb0> ah, iohk has people there too..
<clever> sb0: we are all over the globe
<sb0> I'm going to move my settings to declarative, so hydra is faster to reinstall if this issue pops up again
<clever> sb0: ive not read those docs, ever, but i do have a bunch of examples
<clever> thats got the declarative config for nearly all of my projects
<clever> including PR support for most
aleph- has quit [Ping timeout: 272 seconds]
<sb0> clever: cool!
DrLambda has joined #nixos
ng0_ has joined #nixos
ng0 has quit [Ping timeout: 256 seconds]
ng0_ has quit [Client Quit]
wedens has joined #nixos
DrLambda has quit [Quit: Leaving.]
DrLambda has joined #nixos
silver has quit [Read error: Connection reset by peer]
ottidmes has quit [Ping timeout: 255 seconds]
reallymemorable has joined #nixos
<reallymemorable> I just created a bootable USB
<reallymemorable> that I am using to install on my macbook air
<reallymemorable> but i can't get the wifi to work
<reallymemorable> i found a solution on the CLI
<reallymemorable> but I dont know how to find the name of my wireless card within NixOS's CLI
<gchristensen> what does ifconfig show
<init_6> reallymemorable: dmesg | grep wifi ?
<reallymemorable> init_6: i jsut did that and it seemed nothing happened
<reallymemorable> ifconfig shows a lot of stuff that I dont know how to paste here since the NixOS machine isnt connect to the internet yet
<gchristensen> ifconfig shows a line for me like wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 -- and the name is wlp2s0
<reallymemorable> my first line says
<reallymemorable> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
<reallymemorable> then there are more lines that say inet...
<reallymemorable> etc
<delroth> anyone generating dns zones with their nixos configuration? if so, how do you handle SOA serial?
<reallymemorable> gchristensen: does that mean my card's name is `lo`?
<gchristensen> no, that is localhost
<gchristensen> you don't by chance have an android phone, do you? I suspect the installer doesn't have drivers for your wifi card by default
sondr3 has quit [Quit: WeeChat 2.2]
<reallymemorable> no i have an iphone
<reallymemorable> i am installing this on a 2013 macbook air
<gchristensen> ah. hrm. it is likely you'll need a custom-built install ISO. this isn't complicated, but I can't do it for you just now ... someone else might be able to -- you probably need th broadcom kernel module
fusion809 has quit [Quit: Leaving]
<reallymemorable> ah
<reallymemorable> What kind of laptops do people tpyically run NixOS on?
<reallymemorable> Also would a 2018 MacBook Pro require the same custom kernel?
<gchristensen> I've run it on a few macbook pros (2013 was a good year) and dell xps
<gchristensen> yeah. it really isn't a big deal to make the custom iso, just can't do it tonight :/
eadwu has quit [Quit: WeeChat 2.3]
<reallymemorable> What would be the best way to follow up?
<reallymemorable> Find you on here another day?
<gchristensen> yeah, that would work -- 30hrs from now for example. maybe other people could do it, too
<reallymemorable> ok much appreciated
<disasm> 2018 has T2 chip. I don't even think you can boot linux on it anymore because of the TPM.
<reallymemorable> oh man thats unfortunate
<reallymemorable> i was hoping to have a dualboot MacBook Pro
<disasm> 2013 macbook air works well
<reallymemorable> ok well thankfully i also have one of those
<disasm> I have a 2011 macbook air and 2014 macbook pro both running nixos
<reallymemorable> the macbook air is kind of beat up
<gchristensen> maybe disasm can make such an ISO :)
<sb0> clever: the jobset declaration itself is also hit by the bug, which wiping the DB didn't fix
<reallymemorable> so i might go in for a 2014 pro later
<disasm> well the 2011 macbook air used to run nixos. It's currently a osx build slave for my xps 13 :)
<sb0> it's stuck in "Evaluation pending"...
<reallymemorable> NixOS is probably the most beautiful GUI Linux distros ive seen
<reallymemorable> so well designed
<reallymemorable> makes me want to make it my primary OS
<gchristensen> =)
<reallymemorable> did you design it
<disasm> reallymemorable: I used nixos on my macbook pro as my daily system for about 2 years before I got this XPS :)
<disasm> it works really well
<reallymemorable> the only thing keeping me back from making such a permanent switch is that I do a lot of work in Excel
<disasm> looks for any config with sarov in the name
<reallymemorable> and Apache OpenOffice is just not as good
<clever> sb0: `journalctl -f -u hydra-evaluator`
<clever> sb0: what does this journal say?
<clever> sb0: oh, that jobset has no valid inputs, and no nix expression, so it will never eval properly
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<sb0> clever: it's a declarative jobset
<clever> sb0: you must still specify those, in the spec.json
<sb0> clever: the bug causes the spec.json not to be created
<gchristensen> reallymemorable: I hear that. does MS have an online version?
<reallymemorable> possibly
<clever> sb0: there is a root spec.json, that defines how to configure .jobsets, which then creates the main specs.json
<clever> sb0: that root spec.json is the one you need to fix
<DrLambda> When trying to upgrade nixos I get "HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer);" is there maybe a way to use http/1 instead?
<disasm> I just use google docs :)
<clever> sb0: and in the project settings, you give it the git url, and the relative path, of that spec.json
<sb0> clever: yep, I did that
<clever> sb0: spec.json tells it how to build hydra-project.nix
drakonis1 has joined #nixos
<clever> sb0: hydra-project.nix then generates a set of jobset->spec.json, to decribe how to build everything else
<sb0> clever: wait, the project settings need to point to a .json file and NOT a .nix file that creates a spec.json? the documentation suggests otherwise
<disasm> reallymemorable: image building
pbb has joined #nixos
<clever> sb0: correct, the settings must point to a root spec.json file, like the one i linked above
eadwu has joined #nixos
<reallymemorable> thank you so much
<sb0> clever: though, hydra should have reported a JSON parse error, and not make the evaluation get stuck
<disasm> reallymemorable: it has zfs stable in it as well, if you want unstable let me know and I'll abort and start over
<clever> sb0: that json error is likely somewhere in the journal logs
<reallymemorable> I am new to this world
<sb0> clever: changed to a .json at the root, same hydra behavoir
<reallymemorable> so im guessing i want stable
<clever> sb0: hydra doesnt update it immediately
<sb0> clever: I updated the project settings + did a "force evaluation" on the .jobsets - isn't that supposed to make hydra update it?
<clever> sb0: youll need to wait until https://nixbld.m-labs.hk/jobset/artiq/.jobsets#tabs-configuration updates
<clever> force eval only works if the page i linked is correct
<clever> and all force eval does, is make it pending
<clever> but its already
<sb0> clever: i believe it's never going to update as it is hit by the same bug that made the builds get stuck
<sb0> clever: the log just contains "Feb 17 11:26:46 nixbld hydra-evaluator[24475]: received jobset event"
<clever> sb0: that json file isnt valid, inputs must be at the root level, not main
<clever> delete lines 2 and 18
<sb0> and no errors, and no JSON parse error
<reallymemorable> disasm: How can I wipe the old USB iso?
<reallymemorable> OSX can't read the USB now
<sb0> oh I see, there's another level of indirection here
<disasm> I use dd :)
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<clever> sb0: spec.json tells hydra how to configure .jobsets, and what nix file to build, to get specs.json
pbb has joined #nixos
<disasm> https://nixos.wiki/wiki/NixOS_Installation_Guide#.22Burning.22_to_USB_drive
<sb0> clever: okay, fixed that
<sb0> thanks
<reallymemorable> yes i understand how to put the iso on an empty USB
<sb0> clever: how do I make hydra update it?
<clever> sb0: try changing the url to something "wrong" then change it back
<reallymemorable> but now that it has NixOS on it, none of my other devices recognize it
<clever> sb0: or wait ~5mins
<sb0> clever: I changed the git URL to something wrong, and hydra just doesn't care. it looks like it's not even accessing the url.
ddellacosta has quit [Ping timeout: 244 seconds]
<sb0> it says "evaluation pending" and gets stuck there
<clever> sb0: the configuration tab is still wrong, so the eval isnt part of the equation yet
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55608 → gnome-chess: 3.30.0 -> 3.30.1 → https://git.io/fhQur
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52l
ddellacosta has joined #nixos
<clever> sb0: you may want to just wait ~5mins
<clever> parse error: Expected another key-value pair at line 14, column 5
<clever> sb0: your json isnt valid
<clever> sb0: line 13 has a trailing ,
<sb0> right now the declarative project url isn't even valid, yet, hydra doesn't report any error
<clever> yeah, the error reporting in this area needs work
<reallymemorable> ah i figured out how to format it
<reallymemorable> from ubuntu
<sb0> clever: okay, fixed, and put the correct URL back - same hydra behavior
<clever> sb0: lets wait ~5mins, for the TTL stuff
<sb0> clever: Evaluation pending since: 6m ago
<{^_^}> [nixpkgs] @worldofpeace closed pull request #53861 → nicotineplus: init at 1.4.1 → https://git.io/fhngw
<clever> sb0: can you screenshot the current project config?
<clever> and post it somewhere
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55877 → gnome-control-center: point to gnome-session's libexecdir properly → https://git.io/fh533
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52u
o1lo01ol1o has quit [Remote host closed the connection]
<gchristensen> clever: can you point me to info w.r.t. cross compiling to windows..? :)
<clever> sb0: try using https:// rather then git://
<sb0> clever: done
<clever> sb0: and why is enabled not checked?
<sb0> aha
<clever> and the eval fails, it cant import <nixpkgs>
<sb0> yeah, it was that "enabled" checkbox...
<sb0> okay but this I can fix :)
<clever> either use fetchTarball, or add a nixpkgs input under inputs
goibhniu has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55894 → cairo: apply patch for CVE-2018-19876 → https://git.io/fh5Z5
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging: https://git.io/fh52z
<sb0> clever: okay it was just that "enabled" checkbox ...
<clever> yeah
<sb0> now let's see if the builds that were stuck before are working again
<{^_^}> [nixpkgs] @worldofpeace closed pull request #52475 → [18.09] backport fwup updates → https://git.io/fppGf
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55717 → pro-office-calculator: 1.0.6 -> 1.0.13 → https://git.io/fh7t2
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52a
slack1256 has quit [Remote host closed the connection]
<sb0> clever: nope. the exact same builds get stuck again
slack1256 has joined #nixos
<clever> sb0: nix-store -r --dry-run /nix/store/0gaksckwpi6cwkmkncd8pm5mhbr7z837-conda-artiq-board-kasli-tester.drv
<clever> into a pastebin
<sb0> clever: it was a nixpkgs change that made them get stuck btw
counting1ort has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55887 → riot-web: 1.0.0 -> 1.0.1 → https://git.io/fh5Gc
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52r
<clever> sb0: run `nix show-derivation /nix/store/iwxbwxl3ldk7k36grr0xyj7gn229l0y6-artiq-dev-usr-target.drv` on each of the .drv's listed
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55621 → feh: 3.1.1 -> 3.1.2 → https://git.io/fhQ2j
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52K
countingsort has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55816 → sxhkd: 0.5.9 -> 0.6.0 → https://git.io/fh7b4
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52i
<clever> sb0: do you have binary cache enabled under services.hydra ?
<clever> sb0: then it could also be cargo or rust, one sec
<clever> --option substituters ""
<clever> sb0: add that to the `nix-store -r --dry-run /nix/store/0gaksckwpi6cwkmkncd8pm5mhbr7z837-conda-artiq-board-kasli-tester.drv --option substituters ""`
<clever> then youll see 2 new .drv files, for cargo and rust
<clever> show-derivation each of them
<reallymemorable> disasm: when do you think the ISO will be ready?
<clever> "requiredSystemFeatures": "big-parallel",
<clever> sb0: there it is
<clever> sb0: you dont have the binary cache on, so hydra has to build a copy of rustc
<clever> sb0: but rustc requires the "big-parallel" feature on a build slave
<clever> and the default localhost slave lacks that feature
<clever> sb0: services.hydra.useSubstitutes will allow hydra to just download rustc from cache.nixos.org, and un-hang it
daniele- has joined #nixos
<sb0> clever: it worked!
<sb0> clever: thank you so much!!
<daniele-> hi!
<clever> sb0: its possible that you already had rustc, from pre-hydra testing, and when nixpkgs changed, it had to get a new rustc
<daniele-> is the setup of the default firewall somehow conditional? depending in how i bring up the nixos container it installs or not the firewalling rules
<sb0> yep, I did a lot of manual rust compilations on that machine
<daniele-> in both cases the container is instantiated with systemd-nspawn
<daniele-> in one case manually from the command line and in the other through machined
<{^_^}> [nixpkgs] @delroth opened pull request #55926 → wpa_supplicant: 2.6 -> 2.7 → https://git.io/fh52S
lassulus_ has joined #nixos
s2mitrov has quit [Read error: Connection reset by peer]
lassulus has quit [Ping timeout: 246 seconds]
lassulus_ is now known as lassulus
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55808 → sysprof: 3.31.1 -> 3.30.2 → https://git.io/fh7da
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52Q
<{^_^}> [nixpkgs] @delroth opened pull request #55927 → unzip: patch CVE-2018-18384 → https://git.io/fh52d
joehh has joined #nixos
DrLambda has quit [Quit: Leaving.]
DrLambda has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55908 → catch2: 2.5.0 -> 2.6.0 → https://git.io/fh5lx
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh52j
<wedens> how can I `nixos-rebuild switch` and delete previous generation?
eadwu has quit [Quit: WeeChat 2.3]
<clever> wedens: nix-collect-garbage has flags to delete old generations
<wedens> clever: yes, but it's either all or by date, right?
<clever> wedens: you can also use nix-env to manually do it
<clever> [root@amd-nixos:~]$ nix-env --profile /nix/var/nix/profiles/system --list-generations
<clever> 463 2019-02-03 05:45:01
<clever> 464 2019-02-06 06:06:36 (current)
<clever> [root@amd-nixos:~]$ nix-env --profile /nix/var/nix/profiles/system --delete-generations 463
<clever> removing generation 463
<clever> that removes the roots, so a normal `nix-collect-garbage` (with no flags) can then delete it
sigmundv__ has quit [Ping timeout: 246 seconds]
<wedens> hm. ok, I can probably write some script that uses nix-env. thanks
<wedens> does `nixos-rebuild test` add new generation?
<wedens> what I'm trying to achieve is to build and activate new configuration without spawning tons of generations when I'm doing lots of small tweaks
<clever> wedens: i try to test such stuff without nixos-rebuild
<clever> test also made no new generation
<clever> wedens: are you testing a normal package, or a nixos module?
<wedens> a module
<clever> wedens: then youll want to use a mix of `nixos-rebuild build` and `nixos-rebuild test`
iyzsong has quit [Ping timeout: 258 seconds]
<wedens> clever: `nixos-rebuild test` builds a configuration, doesn't it? or do you mean something else?
<clever> wedens: test will build and activate, but not make a generation
<clever> and /boot is NOT updated, so all changes are lost at reboot
<wedens> I should probably stick with my initial plan of "amending" previous generation, I think. with `nixos-rebuild test` it'll be too easy to forget to "commit" :)
reallymemorable has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @hyperfekt opened pull request #55928 → linux_testing_bcachefs: 4.20.2019.02.09 -> 4.20.2019.02.15 → https://git.io/fh5a3
joehh has quit [Ping timeout: 255 seconds]
nimblepoultry has joined #nixos
<DrLambda> I am getting "unable to download 'https://cache.nixos.org/nar/052hgd762k944ijmg0ds53vdfvf8hh07kxpdhs6jck4ph0n4y2fw.nar.xz': HTTP error 200 (curl error: Stream error in the HTTP/2 framing layer); retrying in 296 ms"
<DrLambda> how do i resolve that?
nimblepoultry has quit [Client Quit]
<DrLambda> i get it when trying nixos-rebuild switch
nimblepoultry has joined #nixos
work_ has quit [Quit: Connection closed for inactivity]
init_6 has quit [Quit: init 6]
<DrLambda> is there a way to make curl use http/1.1 or something like that?
<DrLambda> when using nixos-rebuild switch
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 258 seconds]
daniele- has quit [Quit: daniele-]
joehh has joined #nixos
<DrLambda> wedens: thanks
<{^_^}> [nixpkgs] @veprbl opened pull request #55929 → qt5.qtwebengine: fail properly → https://git.io/fh5aC
init_6 has joined #nixos
<colemickens> What's a good example of a Java package built from source in nixpkgs?
<colemickens> I want to try and package openhab.
drakonis has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
joehh has quit [Ping timeout: 255 seconds]
jaeckel has quit [Ping timeout: 244 seconds]
drakonis has quit [Read error: Connection reset by peer]
Drakonis__ has joined #nixos
<DrLambda> it seems freenet uses java
<DrLambda> its in nixpkgs/pkgs/applications/networking/p2p/freenet
drakonis_ has quit [Ping timeout: 245 seconds]
<colemickens> ah they just use the pre-built jars
<colemickens> that would make it a lot easier, maybe I'll just do that
<{^_^}> [nixpkgs] @ryantm merged pull request #55920 → nixos/logind: Add option for HandleLidSwitchExternalPower → https://git.io/fh5uN
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5aB
palo1 has joined #nixos
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5aE
<{^_^}> [nixpkgs] @ryantm merged pull request #55839 → beanstalkc: init at 0.4.0 → https://git.io/fh5vh
<{^_^}> [nixpkgs] @dtzWill merged pull request #55874 → libdrm: 2.4.96 -> 2.4.97 → https://git.io/fh5Oy
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fh5au
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<colemickens> Hm, I think ideally I'd use mvn2nix if it existed
<{^_^}> [nixpkgs] @dtzWill merged pull request #55603 → ffmpeg: 4.1 -> 4.1.1 → https://git.io/fhQuc
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to staging: https://git.io/fh5aa
jaeckel has joined #nixos
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill merged pull request #55597 → gcalcli: 4.0.0a4 -> 4.0.3 → https://git.io/fhQEA
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fh5aV
<{^_^}> [nixpkgs] @dtzWill merged pull request #55595 → git-extras: 4.6.0 -> 4.7.0 → https://git.io/fhQES
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fh5aw
<{^_^}> [nixpkgs] @dtzWill merged pull request #55164 → iw: 4.14 -> 5.0.1 → https://git.io/fhSDB
<{^_^}> [nixpkgs] @dtzWill pushed 3 commits to staging: https://git.io/fh5ar
lejonet has quit [Ping timeout: 250 seconds]
<wedens> colemickens: you mean https://github.com/NixOS/mvn2nix-maven-plugin ? :)
<colemickens> interesting, I found that, it got jammed, not sure how badly yet
daniele- has joined #nixos
<{^_^}> #19741 (by cko, 2 years ago, open): Maven builds are not documented in nixpgs manual
<colemickens> apparently there's a new kid on the block
daniele- has quit [Client Quit]
slack1256 has joined #nixos
lejonet has joined #nixos
<wedens> I don't think you gain much by using nix for managing java dependencies. native requirements are not that often in java-land. perhaps that's a reason why java infrastructure in nix is not being actively worked on
daniele- has joined #nixos
<colemickens> I guess it just seems like the fastest route for me to get it packaged
<colemickens> and I want it packaged to be able to write a nixos module and build a VHD for my dad for an OpenHAB VM that he doesn't have to really touch
<wedens> colemickens: perhaps the simplest way is to use openhab docker image
daniele- has quit [Quit: daniele-]
FRidh has joined #nixos
daniele- has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 12 commits to release-18.09: https://git.io/fh5a7
Drakonis__ has quit [Ping timeout: 258 seconds]
ninjin has quit [Ping timeout: 256 seconds]
slack1256 has quit [Remote host closed the connection]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
drakonis1 has quit [Quit: WeeChat 2.3]
<{^_^}> [nixpkgs] @vcunat pushed commit from @delroth to staging-next « unzip: patch CVE-2018-18384 »: https://git.io/fh5ah
<{^_^}> [nixpkgs] @vcunat merged pull request #55927 → unzip: patch CVE-2018-18384 → https://git.io/fh52d
callahad has quit [Ping timeout: 245 seconds]
callahad has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 102 commits to staging-next: https://git.io/fh5VU
<{^_^}> [nixpkgs] @alapshin opened pull request #55930 → skrooge: remove QtWebKit dependency → https://git.io/fh5Vt
<{^_^}> [nixpkgs] @vcunat pushed commit from @delroth to staging-18.09 « unzip: patch CVE-2018-18384 (PR #55927) »: https://git.io/fh5Vm
DrLambda has quit [Ping timeout: 257 seconds]
reallymemorable has joined #nixos
reallymemorable has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @vcunat pushed commit from @worldofpeace to staging-next « Merge #55894: cairo: apply patch for CVE-2018-19876 »: https://git.io/fh5V3
ddellacosta has quit [Ping timeout: 257 seconds]
rcshm has quit []
zupo has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @gnidorah opened pull request #55931 → sway module: add configFile option → https://git.io/fh5V0
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has joined #nixos
Thra11 has quit [Ping timeout: 246 seconds]
lejonet has quit [Ping timeout: 272 seconds]
chrisaw_ has quit []
_lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
<hyper_ch> hmmmmm, how to use docker on nixos?
gagbo has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #55930 → skrooge: remove QtWebKit dependency → https://git.io/fh5Vt
<{^_^}> [nixpkgs] @veprbl pushed commit from @alapshin to master « skrooge: remove QtWebKit dependency »: https://git.io/fh5wJ
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/fh5wT
<{^_^}> [nixpkgs] @veprbl merged pull request #54576 → adoptopenjdk-bin: 11.0.1 -> 11.0.2 (hotspot aarch64-linux, x86_64-mac) → https://git.io/fhoVl
joehh has joined #nixos
Glider_IRC__ has joined #nixos
joehh has quit [Ping timeout: 250 seconds]
Glider_IRC_ has quit [Ping timeout: 272 seconds]
_lawlesseel has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @LnL7 pushed to master « Revert "darwin.architecture: fix sandbox build" »: https://git.io/fh5wG
lawlesseel has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to release-18.09: https://git.io/fh5wc
<{^_^}> [nixpkgs] @LnL7 pushed 7 commits to staging-next: https://git.io/fh5wC
winem_ has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « python.pkgs.caffe: fix build, closes #8749 »: https://git.io/fh5wW
random_yanek has quit [Ping timeout: 268 seconds]
reallymemorable has joined #nixos
dramforever has joined #nixos
reallymemorable has quit [Ping timeout: 246 seconds]
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
random_yanek has joined #nixos
Ralith__ has quit [Remote host closed the connection]
<srhb> hyper_ch: Just like on any other OS.
<hyper_ch> srhb: I've never used docker
<srhb> hyper_ch: Time to read a manual then :)
dermetfan has joined #nixos
<cyris212> Does someone have hunspell working with an english dictionary?
daniele- has quit [Quit: daniele-]
<tilpner> hyper_ch: The installation process is different, but the wiki explains it, and you would easily be able to guess it from "man configuration.nix"
<dramforever> TIL 'man configuration.nix'
<dramforever> tilpner++
<{^_^}> tilpner's karma got increased to 17
<cyris212> Turns out you need to set DICPATH to your nix-profile for it to work.
<cyris212> tilpner: that's awesome \o/
winem_ has quit [Ping timeout: 250 seconds]
<tilpner> Maybe it should be advertised on the options website
<{^_^}> [nixpkgs] @pSub merged pull request #55906 → bspwm: 0.9.5 -> 0.9.6 → https://git.io/fh5le
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fh5w1
<{^_^}> [nixpkgs] @pSub merged pull request #55825 → soapui: 5.4.0 -> 5.5.0 → https://git.io/fh7xY
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fh5wy
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #55524 → ocamlPackages.hex: 1.2.0 -> 1.3.0 → https://git.io/fhHpr
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.hex: 1.2.0 -> 1.3.0 »: https://git.io/fh5wb
joehh has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #55933 → texlive.combine: allow dependencies for python scripts → https://git.io/fh5wp
<{^_^}> [nixpkgs] @dasJ opened pull request #55934 → tt-rss-plugin-tumblr-gdpr: 1.2 -> 2.1 → https://git.io/fh5re
<{^_^}> [nixpkgs] @zimbatm opened pull request #55935 → mdsh: init at 0.1.2 → https://git.io/fh5rJ
<{^_^}> [nixpkgs] @tobim opened pull request #55936 → nixos/snapserver: add module → https://git.io/fh5rk
sour has joined #nixos
justanotheruser has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @dasJ opened pull request #55937 → tt-rss-theme-feedly: 1.4.0 -> 2.0.0 → https://git.io/fh5rq
sour has quit [Ping timeout: 256 seconds]
das_j has quit [Remote host closed the connection]
das_j has joined #nixos
_kwstas has joined #nixos
babic has joined #nixos
_kwstas has quit [Client Quit]
_kwstas has joined #nixos
_kwstas has quit [Client Quit]
init_6 has quit []
sour has joined #nixos
<wedens> cyris212: there is `dicts` in hunspell derivation
<wedens> which provides DICPATH for hunspell binary
<wedens> and `hunspellWithDicts` is hunspell with (all?) dictionaries
<sour> hi all
drakonis_ has joined #nixos
jomik has joined #nixos
<dramforever> hi sour
ottidmes has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
<jomik> I was curious how you guys that don't use home-manager manage your home configuration? I found that I need to reference a nix package in many places. As an example, my xmonad needs a reference to some scripts in my nix store. Do you just ensure that these are in your path? Do you use an imperative setup for managing your vim/emacs config and shell?
<dhess> tilpner: around?
<tilpner> dhess: Sure, what is it?
<dhess> I'm curious about your commit here in the nixpkgs-mozilla repo: https://github.com/mozilla/nixpkgs-mozilla/commit/47f327c8de5575c50a6b2e78158d0f02b565c637
<tilpner> jomik: I try to generate my configurations with Nix, and that gives me embedding of store paths for free
<dhess> specifically in package-set.nix. I'm curious how the reference to `self` in the self assignment works
<jomik> My issue using home-manager is that it can become quite tedious to test configurations - i.e. I want to configure my dunst notifications, but I'd essentially have to use `home-manager switch` with each change. I _could_ just work directly in dustrc.
<sour> i asked yesterday about this, got some answers, but still didn't fix some problem i got; basically I can't build the X11 haskell package required by xmobar - it fails because it can't find the 'X11 headers'. Looking through the project, I saw that it required X.h, Xlib.h, and some xrandr.h and xinerama.h, among other things
<dhess> this bit: ... (pkgs // self) (pkgs // prev) ...
<sour> that was a wall of text o:
<jomik> tilpner: How do you generate the configurations then? Do you do it inside /etc/nixos/configuration.nix ?
<jomik> It gets a bit annoying at times that home-manager and my system config actually are separate. That is, my system config can not actually do `shell = "my fish shell"`, because it is a package derived by home-manager.
<tilpner> dhess: I'm not sure I understand your question correctly. self is meant to refer to the final package set, and it will only be evaluated when an overlayed item accesses it
<tilpner> jomik: Yes, I do that from ny NixOS config, with an evil module that allows me to write anywhere (instead of just /etc)
<dhess> tilpner: Does Nix do dynamic scoping a la Emacs?
<jomik> Ahhh, essentially what the home-manager module in nixos does.. :O Can you point me to an example?
<wedens> jomik: in case of dunstrc and other config files that you don't wan't to write in Nix, you can just symlink them and edit as usual
<tilpner> dhess: I've tried Emacs a few times, and never stuck with it. I'm not qualified to make that comparison
<tilpner> dhess: Maybe it would help you to play with this snippet reduced to one overlay, and a sample overlay, and see what you can and can't do?
<dhess> tilpner: ok let me ask a different way. Which `self` is that `self` in the expression bound to?
<jomik> wedens: Well, I do actually want to write it in nix, it just gets a bit annoying testing changes with home-manager, because it takes a good amount of time.
<tilpner> dhess: The self on line 6 is bound at line 5, and then used again on line 8
<tilpner> > let self = { foo = self.bar; bar = 42; }; in self
babic has quit [Remote host closed the connection]
<{^_^}> { bar = 42; foo = <CODE>; }
<tilpner> > let self = { foo = self.bar; bar = 42; }; in self.foo
<{^_^}> 42
<wedens> jomik: huh? shouldn't take more than ~10 seconds if you don't reconfigure packages
babic has joined #nixos
<wedens> I'm more annoyed by dozens of useless generations
<tilpner> jomik: An example of what? My module is available via the NUR
<tilpner> (with nur.repos.tilpner.modules; [ files user-files ])
<das_j> Hey, not sure if this is the correct way to apply for this, but I think nixpkgs commit access would really make my life a lot easier. I maintain some packages now and some trivial changes (like bumping versions) often take a lot of time because they don't get merged. Also, helping to tackle the incredible amount of open PRs could also make your lifes easier. So is there a way to get into the nixpkgs team?
<{^_^}> #50105 (by Infinisil, 14 weeks ago, open): New nixpkgs committers requirements/process
<jomik> wedens: 10 seconds is rather long tho :P
<tilpner> You can shorten eval time, if you only eval a part of your config, as opposed to system.build.toplevel
<tilpner> (Down to well below 1s)
<jomik> wedens: But yeah, generations is annoying too. I am on 268 now
<wedens> I use home-manager as nixos module, so any change results in switching system configuration. and I can't say it's too slow to be annoying
orivej has quit [Ping timeout: 272 seconds]
orivej has joined #nixos
<jomik> Ahh, I guess that'd make me more annoyed. I dislike cluttering the boot menu :P
<tilpner> sour: gist your expression somewhere?
<teto> jomik: this is a complaint I have too. For programs that accept it, I include a non-declarative file I can change at will. When my changes work out, I move the configuration to home-manager
sour_ has joined #nixos
<tilpner> Ehh, many generation are good
sour has quit [Ping timeout: 256 seconds]
<dhess> tilpner: I'm surprised that works.
<wedens> I'll write a script that "amends" previous generation or I'll just use `nixos-rebuild test` and do ``nixos-rebuild switch` when I'm ready to "commit"
reallymemorable has joined #nixos
<wedens> so, problem of dozens of meaningless generation is not that difficult to solve
<dhess> It appears that Nix basically treats an expression that refers to itself like a fixed-point... it does not recurse into the expression
<das_j> tilpner: Ah thank you, so there are no real new committers until this is cleared up? The discussion doesn't seem to have come to an end, everything is just a broad idea.
<jomik> Oh, huh, so `nixos-rebuild` test does not make a boot entry wedens ?
<wedens> yes
<jomik> teto: Yeah, that's what I figure I'll do as well. I guess I will just use the generated config as a base to then figure out the looks of my dunst notifications, and then when I got the numbers, write it into home-manager...
<jomik> Tho, I didn't know `nixos-rebuild test` doesn't make a boot entry. I may switch to the home-manager nixos module then :o
<tilpner> das_j: I don't know, it seems to have worked for kalbasit. Maybe just comment on there? (Or ping ${"inf" + "inisil"})
<teto> jomik: alternatively you can copy the config and use a program flag to load that alternate config while testing
* inf big thonk
reallymemorable has quit [Ping timeout: 246 seconds]
<tilpner> :/
<tilpner> I tried!
<inf> haha, don't worry.
<inf> that's what i already got used to while having quite common 3-letter nickname.
<das_j> infinisil-m: I'll just ping you here :) Or should I rather add a comment to the issue?
<tilpner> infinisil: ^
<das_j> Oh, thanks Weechat for those great completions
<tilpner> dhess: You'll notice that the source for lib.fix is pretty much the same
<tilpner> dhess: fix = f: let x = f x; in x;
<tilpner> All it does is provide a self in a way that's not let-in
<dhess> it doesn't refer to fix though :)
<dhess> that's my point
<tilpner> But it's practically fix. fix is no hugely complicated function
<hyper_ch> ok, using prebuilt docker images was easier to use than anticipated
<dhess> yes I understand fix, but the *scoping* is what's odd.
<dhess> I do not think you could do that in any other "functional" language I'm aware of... except maybe Emacs
<tilpner> > let a = { x = b.x; y = 42; }; b = { x = a.y; }; in a.x
<{^_^}> 42
<dhess> Anyway, you've cleared up the issue for me. Thanks
xkapastel has joined #nixos
<sour_> ,locate Xlib.h
<{^_^}> Found in packages: iv, z88dk, emscripten, xlibs.libX11.dev, perl526Packages.Tk, perl528Packages.Tk, perldevelPackages.Tk
<{^_^}> [nixpkgs] @LnL7 merged pull request #55724 → emacsMacport: fix sandbox build → https://git.io/fh7Y2
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fh5ro
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fh5rK
<{^_^}> [nixpkgs] @LnL7 merged pull request #55777 → haskellPackages.conduit-extra: fix darwin sandbox build → https://git.io/fh71e
<{^_^}> [nixpkgs] @LnL7 merged pull request #55781 → pythonPackages.httpretty: fix darwin sandbox build → https://git.io/fh71R
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/fh5r6
DrLambda has joined #nixos
<jomik> Emacs isn't a language :O :P
<das_j> jomik: No, but an OS
<jomik> Haskell can do the same tho. IIRC.
<jomik> SML too afaik
<jomik> the fix function that tilpner wrote I mean.
<jomik> Why is the scoping odd btw, dhess ? :O
sour_ has quit [Ping timeout: 256 seconds]
<dhess> jomik: either I would expect it to complain that `self` within the expression wasn't in scope; or that it would cause infinite recursion since there's no reduction step/base case when evaluating `self` within the expression.
<dhess> I suppose treating it as a fixed point is a reasonable default since the behavior I expected isn't particularly useful.
<dramforever> > let self = self; in self
<{^_^}> infinite recursion encountered, at (string):218:12
<{^_^}> [nixpkgs] @FRidh pushed 9 commits to python-unstable: https://git.io/fh5rS
<dramforever> dhess: Maybe you can treat it as a spreadsheet
<dhess> dramforever: I suspect that has something to do with the `self` in this case not being evaluated eagerly.
<dhess> it's in a thunk
<dramforever> > let self = { cell1 = self.cell2 + self.cell3; cell2 = 3; cell3 = self.cell2 + 1; }; in self
<{^_^}> { cell1 = <CODE>; cell2 = 3; cell3 = <CODE>; }
<dhess> dramforever: I just re-wrote this particular expression using lib.fix, and without referring to itself, so that it makes more sense to me :)
<dhess> dramforever: interesting, does Excel have similar behavior? I've never tried it.
<dhess> I've never written a mutually-recursive spreadsheet before :)
<jomik> I mean, it's standard in a lazy language, isn't it? You don't evaluate until it is needed.
<sb0> is there an example of using the hydra RunCommand plugin?
babic has quit [Ping timeout: 268 seconds]
<dhess> jomik: I was wondering if that's where my confusion comes from, the lazy bit. Maybe that's it. I'd need to think about it more deeply.
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « fixup strictdeps »: https://git.io/fh5rd
<jomik> dhess: could be. Or maybe you think about it too deeply :P I think this is sort of some of the first that learnyouahaskell tackles. At least indirectly. Through infinite streams. It really sucks evaluating `map` or `filter` on an infinite stream, Haskell can call map/filter and friends on infinite streams, because it is lazy :D
<jomik> s/stream/list
<sb0> ah, there's one in the commit log.
<infinisil> das_j: Commenting on the issue is probably best for now, I'd love to have you on the committer team :)
<das_j> Thank you, glad to hear that :)
jomik has quit [Quit: WeeChat 2.2]
<dhess> jomik: There's a subtlety here that I think you're missing (or perhaps it's me and I'm just dense). I understand mapping infinite streams, the `fix` function, etc. What's odd here for me is the fact that a const function is referring to itself. I don't think I've seen a Haskell program that does that.
<dramforever> repeat x = let xs = x : xs in xs
<dramforever> Or repeat x = fix (x :)
kisik21 has quit [Ping timeout: 268 seconds]
joehh has quit [Ping timeout: 246 seconds]
<dhess> dude that takes an argument
<dhess> it's not a const function
<dramforever> I mean the xs part
<dhess> I'm not confused about that bit
<dhess> ahh but yes but that is thunked
<{^_^}> [nixpkgs] @rembo10 opened pull request #55939 → sickgear: 0.17.5 -> 0.18.14 → https://git.io/fh5ov
kisik21 has joined #nixos
<dhess> in this case the top-level const expression is used immediately
<dramforever> What about this: let xs = 'x' : xs in xs
<dhess> dramforever: how would one then use xs in an expression?
<dramforever> This is a complete expression: (let xs = 'x' : xs in xs)
init_6 has joined #nixos
<dramforever> It evaluates to an infinite list where all elements are 'x'
<dramforever> if you do, say, putStr (let xs = 'x' : xs in xs), it will keep printing x
<dhess> yes ok
<dhess> you can `take` on it as well.
<dramforever> sure
<dhess> but if you do this: let xs = 'x' : xs in xs
<dhess> and then you evaluate xs , just xs, it's infinite, as you would expect
<{^_^}> [nixpkgs] @sjau opened pull request #55940 → easysnap: 2018-11-20 -> 2019-02-17 → https://git.io/fh5of
<dramforever> so you can see that a const can indeed refer to itself
<dhess> that Nix expression immediately refers to `self`
<dhess> what's limiting the evaluation?
<LnL> the //
<dramforever> The spreadsheet
<dhess> Yeah I was trying to think of an equivalent Haskell expression and could not come up with one
<dhess> I suppose in the Nix case I need to think about how the default.nix is loaded and evaluated
Supersonic has quit [Quit: Bye]
<dhess> OK I'll just go slink away and think about this some more.
joehh has joined #nixos
Supersonic has joined #nixos
silver has joined #nixos
<dramforever> I think you need to pay more attention to my spreadsheet analogy :)
<dramforever> Something like this: put {= A2 + A3} in A1, {= A3 + 2} in A2, {2} in A3
<dhess> dramforever: I'm considering it. I suppose your point is that the spreadsheet is effectively calling `fix` on the spreadsheet
<dramforever> Yes
<dhess> got it. That was helpful, thanks.
<dramforever> Also you can try to find examples of doing memoization with maps or arrays in Haskell
<dhess> Yes I think what I was missing here is the context of how the default.nix is being imported by Nix
<dhess> I was only thinking of it as a self-contained expression
dsiypl4 has joined #nixos
<jluttine> how can i get the directory of libgfortran.so in nix derivation? i tried ${pkgs.gfortran} but that gives path to some wrapper that doesn't contain lib directory..
<dramforever> {... (import ./default.nix) ...} -> {let defaultDotNix = (<paste contents of default.nix here>) in ... defaultDotNix ...}
phreedom has quit [Remote host closed the connection]
<dramforever> (Put a semicolon before 'in')
<jluttine> that is, it points to /nix/store/....gfortran-wrapper-7.4.0 instead of /nix/store/....gfortran-7.4.0-lib
phreedom has joined #nixos
<dramforever> jluttine: (gfortran.cc.lib) or (lib.getLib gfortran.cc)
<dramforever> That's an English 'or', not Nix 'or'
<jluttine> dramforever: thanks! i tried gfortran.lib and that didn't work. didn't know about this cc
<dramforever> Hey, I think just made the an illustration for explaining overlays: https://dram.cf/nix-talk/self-super.svg
<dramforever> jluttine: These things are called 'cc wrapper'
<dramforever> Ignore my botched sentence above and just see this 'overlays visualized': https://dram.cf/nix-talk/self-super.svg
<das_j> dramforever: So self gives me the fully-modified package set while super gives me the package set with only the modifications of previous overlays?
<dramforever> Exactly
<das_j> That clears things up, thank you
<dramforever> Didn't expect it to help someone this fast. You're welcome.
<das_j> dramforever: I usually guess which one to use. If there is an infinite recursion, I just use the other one
<aanderse> feature freeze coming up soon... anyone here able to merge https://github.com/NixOS/nixpkgs/pull/55410 ? :)
<{^_^}> #55410 (by aanderse, 1 week ago, open): nixos/httpd: improve security in configuration file
_d0t has joined #nixos
<dramforever> das_j: My rule of thumb is: If I define X myself, I use super.X, otherwise I use self.X
<das_j> makes sense to me
<das_j> Maybe next time when using weird overlay combinations, this helps
<aanderse> das_j: thx for the approve :)
<das_j> Just hope to remember the bookmark then
<dramforever> Things get a little bit with nasty with nested sets
<das_j> aanderse: Doesn't change anything but I do approve
<das_j> dramforever: This was my last problem, yes
joehh has quit [Ping timeout: 246 seconds]
<aanderse> das_j: every approve makes it easier for a committer to merge :)
<das_j> dramforever: Overriding Linux modules was the last thing :x
<das_j> Not that obvious if you do it for the first time
<sb0> when a hydra runcommand command prints something, where is it displayed?
<dramforever> Never seen/done anything like the last thing
<dramforever> I need to put my thing in the wiki
<das_j> dramforever: Yes, this way I know where to find it
<_d0t> hi! Is there any rescue mode in nixos? I have no space left on my drive, and now my system doesn't boot.
janneke is now known as janneke[m]
janneke[m] is now known as janneke_
janneke_ is now known as janneke
<symphorien> _d0t: iirc add 1 to the kernel cmdline, you will boot in systemd's rescue mode
<ivan> I'm still curious about this from two months ago, anyone know? <vaibhavsagar> what's the reasoning behind only allowing users in `trusted-users` to use the machine as a remote builder?
<ivan> afaik non-trusted-users can still build whatever derivations they want from any nixpkgs
<ivan> (local builds)
<symphorien> a machine A using B as a remote builder can add arbitrary already built derivations to the store
<symphorien> of B
<_d0t> symphorien: doesn't seem to work
<symphorien> a local normal user must either provide a .drv which results in this output or use a trusted substituter
<dramforever> _d0t: Try putting emergency
<dhess> haha, wow this is timely: https://github.com/willtim/Expresso
<dhess> See the "Turing equivalence?" bit of the README.md
<ivan> symphorien: I see, thanks
<dramforever> _d0t: If you can't even boot that, boot into a nixos installation disk, mount all your filesystems at /mnt or somewhere else, and run nixos-enter /mnt
<symphorien> _d0t: oh I discover this section of the manual https://nixos.org/nixos/manual/index.html#sec-boot-problems
<symphorien> the word was single and not 1
<dramforever> _d0t can you describe what you see instead of booting?
<{^_^}> [nixpkgs] @rembo10 opened pull request #55941 → sickbeard: fix build → https://git.io/fh5o8
<_d0t> gimme a sec
<dhess> Just found that while idly browsing /r/haskell.
<_d0t> here it is
<_d0t> I'm on nixos-unstable with encrypted zfs
<_d0t> This is after I enter the password
<_d0t> I mean, for the zfs pool
das_j has quit [Remote host closed the connection]
<dramforever> *shrug* dunno, sorry
das_j has joined #nixos
<_d0t> Seems like ZFS lost a bunch of files
jtojnar has quit [Quit: jtojnar]
<tilpner> _d0t: Boot any live system and free up some space
<tilpner> Which may be more involved with zfs than with non-cow filesystems
<_d0t> tilpner: here's the thing. It seems that zfs guys changed the encryption property name, and now I can't import the pool using older zfs versions.
<_d0t> I'm gonna connect that disk to my laptop and try here.
<tilpner> Okay, now it's a lot more work, but you can build a live ISO with the right zfs version
<hyper_ch> _d0t: there was a big change in the zfs encryption
<hyper_ch> _d0t: nixos did provide temporary solution for the legacy encryption
<symphorien> _d0t: https://nixos.wiki/wiki/Creating_a_NixOS_live_CD << you can make your own medium with latest zfs this way, I guess
<{^_^}> [nixpkgs] @flokli opened pull request #55942 → gitlab 11.7.4 -> 11.7.5 → https://git.io/fh5o2
<_d0t> hyper_ch: how do I check which one is legacy?
<_d0t> I think I created the pool after that happened.
<hyper_ch> it's a dataset setting, not pool setting
<_d0t> How do I check if I need to do that?
hiroshi has quit [Ping timeout: 250 seconds]
<hyper_ch> no idea :)
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #55943 → git-cola: 3.2 -> 3.3 → https://git.io/fh5oi
<dramforever> Wait a second
<hyper_ch> dmesg | grep zfs
<hyper_ch> what does that say?
<_d0t> hmm... i gotta connect that disk first.
<dramforever> I'm probably missing something here, but if it's a software change, have you tried booting in to a previous generation?
<_d0t> gimme a few minute
<_d0t> dramforever: it's not a software change. I rebooted my computer and got into that thing.
<dramforever> oh
<_d0t> And when I tried mounting the disk from a livecd, I wasn't able to due to zfs encryption.
<hyper_ch> into what thing?
<dramforever> Ah you mean you did get a full drive
<_d0t> https://ibb.co/jHMgrCy this thing
<_d0t> dramforever: yeah
<dramforever> okay, ignore me
<hyper_ch> well, the format change happened between in februar 2018.... so I don't think you're affected by that
<hyper_ch> but you'll still need to free data
<_d0t> hyper_ch: yeah, i created that zfs pool and datasets in the summer 2018
<hyper_ch> did you take lots of snapshots and never removed them?
<_d0t> nope
<_d0t> but it's a 256G ssd
<hyper_ch> :(
<hyper_ch> create live cd with zfs
<_d0t> I've just connected the disk to my laptop
<_d0t> zpool import -f worked just fine
<hyper_ch> run zfs list -S usedbysnapshots -o name,used,usedbydataset,usedbysnapshots,referenced,mountpoint
<hyper_ch> ( I hae that aliased in my .bashrc --> alias zl='zfs list -S usedbysnapshots -o name,used,usedbydataset,usedbysnapshots,referenced,mountpoint' )
<_d0t> btw, ZoL 0.8.0-rc2 couldn't import the pool but -rc3 workes fine.
<hyper_ch> pastebin the output of zfs list -S usedbysnapshots -o name,used,usedbydataset,usedbysnapshots,referenced,mountpoint
<hyper_ch> I wrote myself a little snapshot tool that also emails me when free space falls below x GB
<hyper_ch> (currently 100GB on my notebook and 200GB on my servers)
<_d0t> How do I re-import the pool?
<teto> ,locate libuuid.so
<{^_^}> Found in packages: libuuid, utillinux, libossp_uuid
<hyper_ch> zpool import poolname
<_d0t> it says it already exists
<_d0t> I forgot to give it the password
kisonecat has joined #nixos
<hyper_ch> zfs load-key
<_d0t> oh... yeah, thanks
<hyper_ch> you don't have any snapshots? oh
<_d0t> No, I did not.
<hyper_ch> you need to free space :)
<{^_^}> [nixpkgs] @flokli closed pull request #47172 → [WIP] spotifyd: init at 0.2.2 → https://git.io/fAdrX
<hyper_ch> it seems you could probably remove older generations
<_d0t> >WARNING: Pool 'zglow' has encountered an uncorrectable I/O failure and has been suspended.
<hyper_ch> nixos generations
<_d0t> I got this from dmesg.
<hyper_ch> ieeeks
eadwu has joined #nixos
<hyper_ch> how much ram do you have?
<_d0t> 16G
<{^_^}> [nixpkgs] @Infinisil opened pull request #55944 → teamspeak_client: Fix → https://git.io/fh5o9
<hyper_ch> plenty enough..... you could turn off swap and remove the dataset
<_d0t> oh...
<_d0t> It's a different thing.
<hyper_ch> and then recreate it
<_d0t> I re-plugged the usb cable
<hyper_ch> that should free a bit to actually boot the system
<_d0t> So my device is now /dev/sdb
<_d0t> But zfs still thinks it's sda
<_d0t> How do I detach the pool?
<hyper_ch> zpool export
<_d0t> cannot export 'zglow': pool I/O is currently suspended
<_d0t> Haha
<_d0t> Somehow think it's just easier to reboot at this point
<_d0t> brb
<hyper_ch> yep
_d0t has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @ryantm merged pull request #55922 → fix syntax error in tt-rss pre-start script → https://git.io/fh5z1
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5o5
_d0t has joined #nixos
infinee has quit [Quit: leaving]
samrose has quit [Read error: No route to host]
<_d0t> Ok, I mounted the thing successfully.
dramforever has quit [Quit: Leaving]
reallymemorable has joined #nixos
<_d0t> nix-collect-garbage -d is working
<_d0t> Hopefully I'll be able to boot.
<_d0t> Thank you guys!
lejonet has joined #nixos
<hyper_ch> you could also run "nix-store --optimise" when garbage collection is finished
<hyper_ch> to maybe get some more diskspace out of it
<hyper_ch> btw, you do use compression on zfs?
<_d0t> Yup.
<_d0t> But I haven't done any garbage collection in a while.
<_d0t> Is there a way to make sure my system will boot?
<_d0t> I.e. there are no missing files.
<hyper_ch> lz4 compression is just amazing IMHO
<symphorien> nix has gained an option min-free which automatically runs a gc when a build exhausts space below a threshold
<_d0t> symphorien: is there a way to set it globally?
<hyper_ch> there's nix-store --verify --check-contents but I think you need to be booted into the actual system
reallymemorable has quit [Ping timeout: 244 seconds]
<_d0t> hyper_ch: I used nixos-enter for chroot.
<hyper_ch> ok :)
<hyper_ch> haven't tried it like that
<symphorien> _d0t: http://xelpaste.net/upbLFS
<_d0t> Where do I put that? Into configuration.nix?
<symphorien> note that it only works if it is nix who consumes the last bit of space
<symphorien> yes
<_d0t> It usually is nix for me.
<_d0t> Most of my data is on a separate raid in another pool.
<hyper_ch> btw, why do you use zfs if you don't use snapshots and probably no mirror/raidz either?
jomik has joined #nixos
<_d0t> hyper_ch: for cow and compression mostly.
<hyper_ch> :)
<_d0t> And because I have FreeBSD on another partition and I want to share data between systems.
<_d0t> ZFS is the only FS supported well by both systems.
<_d0t> Which is somewhat ironic.
<srhb> gchristensen: Is nixos-unstable still prevented from bumping somehow?
<_d0t> >56855 store paths deleted, 65018.31 MiB freed
<gchristensen> shouldn't be, srhb
<gchristensen> is it suspiciously stopped?
<srhb> gchristensen: Yeah, two full evals yesterday and one today.
<srhb> At least, I can't see anything wrong with them.
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55652 → gometalinter: 2.0.11 -> 3.0.0 → https://git.io/fhQHv
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5Ke
<gchristensen> all the queued jobs done?
<srhb> Yep.
<{^_^}> [nixpkgs] @eadwu opened pull request #55946 → vscode: 1.31.0 -> 1.31.1 → https://git.io/fh5Kv
_kwstas has joined #nixos
ng0 has joined #nixos
<srhb> oddly, latest-finished is pointing to one of those from yesterday, which I don't understand.. (but the channel hasn't been bumped to that either)
<sb0> I can't get hydra RunCommand to work - the commmand is simply not executed (no output in any log AFAICT, and also I tried having a command that sends something to a netcat server - nothing was received)
<srhb> Maybe rerun madness...
<sb0> are there examples anywhere?
dsiypl4 has quit [Ping timeout: 246 seconds]
<srhb> sb0: What's your configuration look like?
<{^_^}> [nixpkgs] @rembo10 opened pull request #55947 → sabnzbd: 2.3.3 -> 2.3.7 → https://git.io/fh5KU
<srhb> sb0: You appear to be missing a job spec?
hiroshi has joined #nixos
<srhb> Or is omitting it the same as job = * ?
<srhb> Ah, it is.. *:*:*
<srhb> sb0: iirc the output should be in the hydra-queue-runner logs
<sb0> srhb: yes, the code sets the default to this
<sb0> srhb: okay, yes it's in this logfile indeed! doesn't explain why netcat failed though, could be something silly...
<srhb> sb0: Probably. :)
<{^_^}> [nixpkgs] @CarlosMChica closed pull request #55909 → bazel: fix bash completion → https://git.io/fh5lp
<sb0> srhb: how to make the output more visible though? connect to postgresql and munge with the hydra database?
<sb0> in the command I mean
<srhb> sb0: I don't think there's anything helpful in there, you're probably better off writing a custom script that does its own logging of stdout/stderr
<jomik> Anyone here using Dunst? I get this (A) and (U) text in my notifications, no clue why. Using `dunst -print` it is not there in the message text.
<symphorien> sb0: you could pipe the script to logger
<{^_^}> [nixpkgs] @CarlosMChica opened pull request #55948 → bazel: fix bash completion → https://git.io/fh5Kq
<tilpner> jomik: What's your global.format?
<delroth> ekleog: seems like you added meta.timeout = 30; to nixos/tests/opensmtpd back in August. The test has been constantly timing out since January, and I notice it's the only one using this meta.timeout feature. Any thoughts on just removing the timeout on that test?
<delroth> I think this has mostly shown itself to be a misfeature, given that people haven't noticed and fixed the timeout failures in about a month...
<jomik> tilpner: unset, so default?
<jomik> "odd" part is that it is not always the same, it is like (A), (U) and, I think, (AU)..
<tilpner> jomik: Mine's format = "<b>%s</b>\n%b"
lunabo has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 412 commits to python-unstable: https://git.io/fh5Kn
b has joined #nixos
<lunabo> Is there a way to easily install software that has not been packaged for Nix using a more traditional "make; make install" or "pip install" workflow?
<lunabo> My main concern about switching to Nix is that I will need to install some software and I won't have time to figure out how to do it the nice way
<symphorien> you can compile things normally inside nix-shell
<symphorien> but it will break on the next gc
<symphorien> so this is fit for development and quick testing, but not perennial installation
<tilpner> You can switch to Nix without risks. Switching it NixOS is what takes your compatibility with make install away
<{^_^}> [nixpkgs] @FRidh merged pull request #55937 → tt-rss-theme-feedly: 1.4.0 -> 2.0.0 → https://git.io/fh5rq
<{^_^}> [nixpkgs] @FRidh pushed commit from @dasJ to master « tt-rss-theme-feedly: 1.4.0 -> 2.0.0 »: https://git.io/fh5KB
rembo10 has quit [Quit: ZNC 1.7.1 - https://znc.in]
<lunabo> symphorien: tilpner: Hmm thanks, I'll look into those two options more. I once tried to install some Ocaml packages in a nix-shell and think there were hardcoded /bin/mv paths inside the Makefile, causing it to fail
<lunabo> but it might also be that I didn't set up the nix-shell correctly at the time
rembo10 has joined #nixos
<symphorien> ah yes hardcoded paths are a problem
_d0t has quit [Quit: Konversation terminated!]
dsiypl4 has joined #nixos
dermetfan has quit [Ping timeout: 245 seconds]
kisonecat has quit [Remote host closed the connection]
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55946 → vscode: 1.31.0 -> 1.31.1 → https://git.io/fh5Kv
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5KS
<sb0> srhb: symphorien: thanks
<sb0> aother thing - how do I define packages that are accessible in the environment where the command is run?
<sb0> I tried environment.systemPackages and hydra propagatedBuildInputs
<sb0> nothing
Rusty1 has joined #nixos
<sb0> command = nix-shell -p package command ?
<jomik> tilpner: I think that is default, right? Is there a way I can make it output it? Or should I just set it in the config?
<sb0> error: file 'nixpkgs' was not found in the Nix search path
<sb0> sigh
<sb0> what can be run in that hydra RunCommand environment??
<{^_^}> [nixpkgs] @ryantm merged pull request #55943 → git-cola: 3.2 -> 3.3 → https://git.io/fh5oi
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5KA
hyper_ch has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @ryantm merged pull request #55940 → easysnap: 2018-11-20 -> 2019-02-17 → https://git.io/fh5of
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Kh
<{^_^}> [nixpkgs] @ryantm merged pull request #55934 → tt-rss-plugin-tumblr-gdpr: 1.2 -> 2.1 → https://git.io/fh5re
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh56v
hyper_ch has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #55949 → [18.09] vscode backports - 2019-02-17 → https://git.io/fh56U
<hyper_ch> ryantm: wow, that was quick merge :)
<sb0> aha
<sb0> hydraPath
fusion809 has joined #nixos
ixxie has joined #nixos
knupfer has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #55950 → darwin: remove references to Ubiquity.framework → https://git.io/fh56W
dermetfan has joined #nixos
reallymemorable has joined #nixos
troydm has quit [Ping timeout: 268 seconds]
eadwu has quit [Quit: WeeChat 2.3]
hedning has quit [Remote host closed the connection]
hedning has joined #nixos
sondr3 has joined #nixos
hedning has quit [Remote host closed the connection]
hedning has joined #nixos
DrLambda has quit [Ping timeout: 246 seconds]
init_6 has quit []
eadwu has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55696 → exim: 4.91 -> 4.92 → https://git.io/fh7fr
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh56R
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @ryantm merged pull request #55563 → lguf-brightness: unstable-2019-02-07 -> unstable-2019-02-11 → https://git.io/fhQ3k
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh560
<{^_^}> [nixpkgs] @ryantm merged pull request #55052 → gildas: 20190101_b -> 20190201_b → https://git.io/fhyhp
<{^_^}> [nixpkgs] @ryantm pushed 3 commits to master: https://git.io/fh56u
<{^_^}> [nixpkgs] @ryantm merged pull request #55035 → bazel-deps: 2018-11-01 -> 2019-02-01 → https://git.io/fhydy
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh562
jomik has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @vbgl opened pull request #55951 → why3: 1.1.1 -> 1.2.0 → https://git.io/fh56i
<{^_^}> [nixpkgs] @vbgl merged pull request #55555 → coqPackages.paramcoq: init at 1.1.1 → https://git.io/fhQqZ
<{^_^}> [nixpkgs] @vbgl pushed to master « coqPackages.paramcoq: init at 1.1.1 »: https://git.io/fh56P
hexa- has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
work_ has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55730 → fcppt: 2.9.0 -> 3.0.0 → https://git.io/fh7sO
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh56y
<{^_^}> [nixpkgs] @marsam opened pull request #55952 → xapian: fix darwin build → https://git.io/fh56S
<wedens> ,tell jomik in dunst (U) means notification has url, (A) means it has actions (which you can access via hotkey). you can disable it via `show_indicators = false`
<{^_^}> wedens: I'll pass that on to jomik
waleee has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #39505 → dit: 0.4 -> 0.5 → https://git.io/vpCep
<{^_^}> [nixpkgs] @ryantm pushed commit from @davidak to master « dit: 0.4 -> 0.5 »: https://git.io/fh56A
rcshm has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<sondr3> what is that sorcery wedens?
npmccallum has quit [Ping timeout: 250 seconds]
<wedens> sondr3: huh?
<ptotter[m]> it seems that services.prometheus.enable installs prometheus 1.8
<sondr3> the ,tell thingy, is there a way to see all the commands?
<sondr3> I've also seen ,locate
<ptotter[m]> any way to get prometheus 2.2.1 instead? nix-env -qa seems to think it should be available
<wedens> ptotter[m]: services.prometheus.package
fpob has quit [Ping timeout: 255 seconds]
<ptotter[m]> didn't find that looking at options
<ptotter[m]> wedens: what's the syntax like?
<ptotter[m]> I'm on 18.09
<wedens> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<wedens> sondr3: ^
reallymemorable has quit [Quit: leaving]
<sondr3> should've thought of ,help, thanks wedens
<wedens> ptotter[m]: services.prometheus.package = pkgs.prometheus_2;
reallymemorable has joined #nixos
<ptotter[m]> wedens: thank you
<ptotter[m]> wedens: seems that's not available on 18.09
fpob has joined #nixos
<reallymemorable> Hi -- last night someone on here with a username like disasm (or similar) was compiling an iso that would work on my macbook air -- I'm not sure if it finished or I just missed his notification.
<reallymemorable> Is anyone familiar with this person?
<sondr3> disasm: ping
<reallymemorable> oh i remembered correctly
<sondr3> wifi trouble I guess? I installed NixOS on my MBP using a Ethernet-to-USB dongle
<reallymemorable> yes the wifi card was not recognized
lassulus has quit [Ping timeout: 244 seconds]
<reallymemorable> i dont have one of those handy and the folks on here last night were saying that it was easy to create an iso that would find the card
midchildan has quit [Ping timeout: 264 seconds]
<infinisil> Does anybody happen to know how I can make out-of-nixpkgs NixOS options show up in the manual?
rcshm has quit []
midchildan has joined #nixos
<srhb> reallymemorable: Looks like you didn't miss it: https://logs.nix.samueldr.com/nixos/2019-02-17#;disasm
<sondr3> reallymemorable: you can see the configuration for networking on my MBP here https://github.com/sondr3/dotfiles/blob/master/configuration.nix#L30
<sondr3> all I had to do was enable the firmware setting
<sondr3> though I'm not sure if it is the same as on a MBA
heyguyswatup has joined #nixos
simukis has quit [Remote host closed the connection]
<heyguyswatup> hi guys
<reallymemorable> srhb: so i am installing on my 2013 air
chross-q has joined #nixos
<reallymemorable> i separately asked about my 2018 MBP
Ariakenom has quit [Read error: Connection reset by peer]
thc202 has joined #nixos
<heyguyswatup> I have a question: when I 'nix search sage' there's a three packages; sage, sagemath and sageWithDoc, when I 'nix-env -i sage' it succeeds but the other two are not found? The reason I'm asking is cause the sage package doesn't come with docs or tut
<heyguyswatup> and I can't install the WithDoc package
<reallymemorable> sondr3: what year is your MBP?
<heyguyswatup> and I can't build the doc cause of 'syntax error'
<{^_^}> [nixpkgs] @FRidh merged pull request #55947 → sabnzbd: 2.3.3 -> 2.3.7 → https://git.io/fh5KU
<{^_^}> [nixpkgs] @FRidh pushed commit from @rembo10 to master « sabnzbd: 2.3.3 -> 2.3.7 »: https://git.io/fh5iq
<sondr3> reallymemorable: mine is a 2012 version, so Linux support is basically out of the box sans wireless
<{^_^}> [nixpkgs] @ryantm merged pull request #55935 → mdsh: init at 0.1.2 → https://git.io/fh5rJ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5iO
<LnL> heyguyswatup: you want to install packages by attribute instead of name
<reallymemorable> yeah mine is 2018 which I've heard doesn't support linux
<heyguyswatup> okay, how do I do that?
<sondr3> the more recent a MacBook is the less support it is for anything not macOS
<LnL> heyguyswatup: eg. nix-env -f '<nixpkgs>' -iA sageWithDoc
<heyguyswatup> ahh okay this is making more sense
<heyguyswatup> this -iA what does it mean
<sondr3> I think 2015 is more or less the cutoff point
<reallymemorable> what's the last year that is manageable? 2014?
<reallymemorable> ok
<reallymemorable> I might buy a 2015 MBP
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55949 → [18.09] vscode backports - 2019-02-17 → https://git.io/fh56U
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-18.09: https://git.io/fh5i3
chross-q has quit [Client Quit]
<heyguyswatup> cause I tried -i nixpkgs.sage for example but it didn't exist
<heyguyswatup> so I was wondering how to install with this nixpkgs.<whatever>
<heyguyswatup> way of referencing
<LnL> -i means find the package with the name "sage" and install the one with the highest priority
Ariakenom has joined #nixos
<sondr3> reallymemorable: for this kind of stuff the Arch Wiki is really awesome, https://wiki.archlinux.org/index.php/Mac#MacBook_Pro
<LnL> -iA nixpkgs.<attribute> installs a specific package instead
<heyguyswatup> but why didn't -iA nixpkgs.<> work but now -f '<nixpkgs>' did
hexa- has joined #nixos
<heyguyswatup> and I have doc, thanks so much
<LnL> yeah, the default is weird an inconsistent
<callahad> heyguyswatup: fwiw, sagemath is an alias to sage (https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/aliases.nix#L283), and sageWithDoc is just sage with one parameter overridden (sageWithDoc = sage.override { withDoc = true; };)
<LnL> heyguyswatup: it's based on the channel name, so on nixos it's nix-env -iA nixos.hello while for other distributes it's nix-env -iA nixpkgs.hello
<LnL> -f '<nixpkgs>' is basically what should be the default IMHO
<heyguyswatup> okay but I'll remember this trick, so to recap; when i nix search the name is the attribute and the thing in the parenthesis is the thing that I write to do a nix-env -i and if multiple packages have the same name in the parenthesis then the first one in the list gets installed but if I want to get a specific one then I can use -f '<nixpkgs>' and -iA
<heyguyswatup> ahhhhh
<symphorien> always use -iA
<{^_^}> [nixpkgs] @aanderse opened pull request #55953 → nixos/beanstalkd: new service for existing package → https://git.io/fh5iW
<heyguyswatup> hm so I should basically always install via 'nix search' and then nix-env -iA nixos.<name>
<symphorien> yes
<heyguyswatup> thanks
<Rusty1> no nox?
<LnL> it's much faster because it's not searching through everything for the name
<timokau[m]> heyguyswatup: `-i` works based on the package name, which happens to be `sage` (for `sage` as well as `sageWithDoc`). `-iA` works with the attribute name. Because of that, you can only specify the difference with `-iA`.
<reallymemorable> sondr3:thanks!
<timokau[m]> sagemath only exists because most repos call the sage package sagemath (its an alias)
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55653 → gotools: 2018-09-11 -> 2019-02-11 → https://git.io/fhQHU
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5i8
Ariakenom has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
<heyguyswatup> okay I understand. I'm super thankful for this channel btw some of these headaches go away so easily when you have a human to talk to <3
lucus16 has joined #nixos
<timokau[m]> heyguyswatup: Out of interest (I'm the sage maintainer), any particular reason you're installing offline docs as opposed to just using the online version?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55525 → tt-rss-plugin-auth-ldap: Use the correct license → https://git.io/fhHpi
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5iR
_kwstas has quit [Quit: _kwstas]
<heyguyswatup> I like having docs for all my programming environments offline in case of airplanes or busses
<heyguyswatup> Don't like being offline and crippled
<timokau[m]> heyguyswatup: Alright, makes sense. For what its worth, you can use `function?` for a quick reference even when the docs aren't installed.
<heyguyswatup> ooh, didn't know about that. Thanks (also for maintaining the package!)
<timokau[m]> :)
o1lo01ol1o has joined #nixos
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55261 → librealsense: 2.17.1 -> 2.18.0 → https://git.io/fh9Iu
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5i6
<{^_^}> [nixpkgs] @worldofpeace merged pull request #55248 → lynis: 2.7.0 -> 2.7.1 → https://git.io/fh9Up
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fh5iP
renais has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #55213 → python27Packages.aws-sam-translator: 1.8.0 -> 1.9.0 → https://git.io/fhSNf
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fh5i9
<{^_^}> [nixpkgs] @worldofpeace merged pull request #54953 → usbmuxd: 2018-07-22 -> 2018-10-10 → https://git.io/fhMVk
lawlesseel has quit [Remote host closed the connection]
drakonis has joined #nixos
lawlesseel has joined #nixos
lawlesseel has quit [Remote host closed the connection]
xkapastel has quit [Quit: Connection closed for inactivity]
lawlesseel has joined #nixos
drakonis_ has quit [Ping timeout: 255 seconds]
renais has quit [Ping timeout: 240 seconds]
_kwstas has quit [Quit: _kwstas]
peacememories has joined #nixos
ixxie has quit [Ping timeout: 255 seconds]
sour has joined #nixos
<sour> hi all, just for the record, I managed to get xmobar and that X11 troublesome package to compile
<sour> The problem was with stack - i didn't know how to set its include dirs / libs
<sour> switched to cabal, and it all worked flawlessly :)
<sour> finally!
<das_j> Is there a way to skip the post-installation fixup? It takes so long for my build and doesn't change anything
sour has quit [Client Quit]
drakonis has quit [Read error: Connection reset by peer]
jmeredith has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
__monty__ has joined #nixos
o1lo01ol1o has joined #nixos
<catern> is there some way in Hydra to just write down a Nix expression in the jobset configuration?
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> catern: Almost. Look up declarative jobset.
o1lo01ol1o has quit [Remote host closed the connection]
<srhb> (Or declarative projects)
<srhb> das_j: dontFixup = true;
<das_j> srhb: Thank you :)
lassulus has joined #nixos
fendor has joined #nixos
<catern> srhb: let me rephrase because declarative jobsets is not what I want
<catern> I want to put a Nix expression (as, you know, text) in the configuration of a jobset, instead of specifying a path to find a Nix expression
<catern> so I could define an expression to build without depending on a git repo existing, or some path, or whatever
knupfer has quit [Remote host closed the connection]
<srhb> catern: As far as I know that's not possible.
knupfer has joined #nixos
<catern> oh wait, I've got it
<catern> I can use a Nix expression as an input
xorkle has joined #nixos
o1lo01ol1o has joined #nixos
peacememories has joined #nixos
_kwstas has joined #nixos
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #55939 → sickgear: 0.17.5 -> 0.18.14 → https://git.io/fh5ov
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5PD
o1lo01ol1o has joined #nixos
dsiypl4 has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @aanderse closed pull request #55460 → nixos/php: init new php module for command line usage → https://git.io/fhHzX
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #55860 → postgresql_11: 11.1 -> 11.2 → https://git.io/fh5q2
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5PQ
rcshm has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #55954 → gitAndTools.hub: 2.7.0 -> 2.9.0 → https://git.io/fh5Ph
lassulus_ has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55941 → sickbeard: fix build → https://git.io/fh5o8
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5XT
<{^_^}> [nixpkgs] @ryantm merged pull request #55551 → altcoins.wownero: 0.4.0.0 -> 0.5.0.0 → https://git.io/fhQIY
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5XI
<{^_^}> [nixpkgs] @ryantm merged pull request #55776 → dict: fix datadir path → https://git.io/fh7XL
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Xt
<{^_^}> [nixpkgs] @primeos pushed commit from @gnidorah to master « sway-beta: make man flag depend on parameter »: https://git.io/fh5X3
<{^_^}> [nixpkgs] @primeos closed pull request #55931 → sway module: add configFile option → https://git.io/fh5V0
o1lo01ol1o has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
ddellacosta has joined #nixos
_kwstas has quit [Quit: _kwstas]
o1lo01ol1o has quit [Remote host closed the connection]
babic has joined #nixos
babic has quit [Remote host closed the connection]
fendor_ has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55857 → LanguageClient-neovim: 2018-09-07 -> 0.1.140 → https://git.io/fh5Lh
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Xr
gregoire has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55726 → gh-ost: 1.0.36 -> 1.0.47 → https://git.io/fh7OA
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Xi
<gregoire> Hi! I'm trying to configure msmtp on Nixos. Everything works fine but I have to manually copy my config in my home folder (~/.msmtprc) or in the store. I'm lookinng for a way to automatically write msmtprc in the same folder as the msmtp executable in the store. Is there any way to simply do that?
<{^_^}> [nixpkgs] @ryantm merged pull request #55710 → icingaweb2: Init at 2.6.2 → https://git.io/fh7ka
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5X7
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #55955 → Fixes for diod → https://git.io/fh5XF
o1lo01ol1o has joined #nixos
<gregoire> I've tried using writeTextFile but it doesn't seems to work outside the derivation
daniele- has joined #nixos
<Thra11> I'm trying to fix/update a couple of haskell packages, hsqml and hsqml-demo-morris. I've followed the instructions in nixpkgs/doc/languages-frameworks/haskell-section.md to create default.nix, shell.nix and <package name>.nix in the local sources, and I've added the recommended lines to ~/.config/nixpkgs/config.nix to override hsqml and hsqml-demo-morris. However, it isn't quite working: `nix build
<Thra11> nixpkgs.haskellPackages.hsqml` builds the local sources, but `nix build nixpkgs.haskellPackages.hsqml-demo-morris` seems to be trying to use the broken hackage sources to build its hsqml dependency instead.
eadwu has quit [Quit: WeeChat 2.3]
<Thra11> I'm a little confused. The hsqml override clearly works, but it isn't overridden when building hsqml-demo-morris
slack1256 has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<wedens> gregoire: you can make derivation that wraps (via `wrapProgram`) msmpt binary with config as a parameter
o1lo01ol1o has joined #nixos
waleee has quit [Ping timeout: 245 seconds]
reallymemorable has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @mroi opened pull request #55956 → glibc: enable cross builds on Darwin → https://git.io/fh513
<wedens> gregoire: I prefer to use home-manager. you can declaratively configure mail accounts and other stuff or just copy/symlink existing configuration files
eadwu has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55585 → postman: 6.7.1 -> 6.7.3 → https://git.io/fhQR5
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh518
<lejonet> Hmm, what am I doing wrong if I have stateVersion to 18.09 and https://github.com/NixOS/nixpkgs/blob/release-18.09/nixos/modules/services/search/elasticsearch-curator.nix clearly shows that services.elasticsearch-curator exists in 18.09, but I still get "error: The option `services.elasticsearch-curator' defined in `/home/lejonet/sources/builddirs/nixops/servers/utility/logger/configuration.nix' does not
<lejonet> exist." when trying to deploy with nixops? The local system is running stateVersion 18.09, so it should be visible
work_ has quit [Quit: Connection closed for inactivity]
<lejonet> (nix search shows the package for example)
<samueldr> lejonet: can you run `nix-info`?
<{^_^}> [nixpkgs] @ryantm merged pull request #55665 → Freeswitch 1.8 → https://git.io/fhQ59
<{^_^}> [nixpkgs] @ryantm pushed 4 commits to master: https://git.io/fh51B
<lejonet> samueldr: on the target machine or local machine?
gregoire has quit [Quit: Leaving]
<samueldr> let's see both, just in case
leotaku has quit [Quit: ZNC 1.7.1 - https://znc.in]
<samueldr> (I'm not a nixops buff, but I think I may have an idea about why)
leotaku has joined #nixos
<lejonet> local: "/nix/store/lw7xaqhakk0i1c631m3cvac3x4lc5gr5-bash-4.4-p12/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
<lejonet> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, channels(root): "nixos-18.03.133400.138f2cc707d", channels(lejonet): "nixos", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<lejonet> it would seem like the local system thinks its 18.03...
<lejonet> the target: "system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0.4, nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs"
<samueldr> sorry if this is condescending, but did you *change* stateVersion?
<samueldr> because you really shouldn't
<samueldr> ,stateVersion lejonet
<{^_^}> lejonet: Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<ryantm> lejonet: statVersion doesn't affect what version of nixpkgs you are building with
<samueldr> (yes, the name is... unfortunate :()
<ryantm> By default nixops uses whatever is on your NIX_PATH
<lejonet> samueldr: no, I've had that stateVersion for a while
<samueldr> right, but did you change it to 18.09, while it was another version before?
<lejonet> and nixpkgs in NIX_PATH is /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs which indeed seems to be stuck at 18.03
<samueldr> because, if you did, it's not going to do anything, since stateVersion is NOT used to "statefully define the nixos version"
<{^_^}> [nixpkgs] @dasJ opened pull request #55957 → nixos/icingaweb2: Init the module → https://git.io/fh51u
<lejonet> samueldr: not impossible, this system has been nuked and restore from backups quite a lot
<ryantm> Alternatively it's possible that the nixpkgs version in the NIX_PATH was rolled back.
<samueldr> it's used to know "what's the schema to be expected for the stateful data; to which NixOS 'state version' does it conform?"
growpotkin has joined #nixos
<lejonet> not impossible, because I'm supposedly on the nixos-unstable channel (which nix-channel --list confirms)
<growpotkin> Hey hopefully someone can give me a quick refresher; do runtime dependencies get added to "baseInputs"?
<samueldr> nixos will rebuild using root's "nixos" channel
<infinisil> growpotkin: Nope
<infinisil> ,runtimeDeps growpotkin
<{^_^}> growpotkin: In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<growpotkin> what would be the appropriate list
<growpotkin> thank you <3
<growpotkin> I waas googling a bit and hadn't bumped into it
<growpotkin> Long live the IRC!
<lejonet> samueldr: which is indeed pegged at 18.03, I thought I had changed that ages ago
<infinisil> growpotkin: :)
o1lo01ol1o has quit [Remote host closed the connection]
fendor_ has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @Ralith opened pull request #55959 → Update Vulkan packages → https://git.io/fh51a
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @veprbl closed pull request #54518 → texlive: fix latexindent runtime → https://git.io/fhVjW
bgamari has quit [Ping timeout: 264 seconds]
winem_ has joined #nixos
rcshm_ has joined #nixos
bgamari has joined #nixos
<lejonet> samueldr: now stuff is happening, thank you for pointing me in the right direction. I assumed that I had set root to nixos-unstable ages ago, which is why I didn't even bother look at it :)
<{^_^}> [nixpkgs] @Moredread opened pull request #55960 → i3status-rust: 0.9.0.2018-10-02 -> 0.9.0.2019-02-15 → https://git.io/fh51N
<samueldr> yeah, nix-info is an amazing resource for any "what the heck is happening with the channels" kind of questions
rcshm_ has quit [Ping timeout: 255 seconds]
<ma9e> infinisil: do you think we could merge #52096?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/52096 (by furrycatherder, 9 weeks ago, open): nixos/davmail: init
<lejonet> samueldr: quite interesting too how little info it gives on a nixops managed machine and the local machine I run nixops from :P
<infinisil> ma9e: Did you test it?
<samueldr> it kinda makes sense when you know what it does: it checks components of NIX_PATH and channels, the channel on a nixops deployed machine is irrelevant AFAIUI
<lejonet> Yeah exactly
<therealwaphire[m> guys, anybody use taffybar and xmonad here?
<slack1256> Yep
<lejonet> even the /etc/nixos directory is irrelevant on a nixops managed machine
<infinisil> therealwaphire[m: I did at some point, but better just state your problem upfront
<therealwaphire[m> oh okay
<therealwaphire[m> so, I'm both a nixOS and Haskell noob
<therealwaphire[m> installed taffybar through `nix-env -iA nixos.taffybar`
rydnr has joined #nixos
<therealwaphire[m> Copied the taffybar.example.hs from github and pasted in my .config/taffybar/taffybar.hs
<therealwaphire[m> but uh, all the import statements keep failing. `Could not find module System.Taffybar`
* infinisil takes a look
<ddellacosta> therealwaphire[m: that's the error you get when you start taffybar?
<ddellacosta> how are you seeing that error?
<therealwaphire[m> yes
<sondr3> have you tried including it with the xmonad.extraPackages? https://nixos.org/nixos/options.html#xmonad
dsiypl4 has joined #nixos
<slack1256> therealwaphire[m: try 'nix-shell -p haskellPackages.ghcWithPackages (p: [ p.taffybar p.xmonad p.xmonad-contrib])' and try to compile there
<slack1256> Also read the haskell documentation on nixpkgs
<therealwaphire[m> <freenode_son "have you tried including it with"> oh, no, I haven't tried this but I've tried `cabal install taffybar` but that failed with multiple errors. as I'm just playing around with it, thought to install taffybar with `nix-env`
<slack1256> and `man configuration.nix` and search for taffybar
rcshm_ has joined #nixos
<therealwaphire[m> so here is where I'm a bit confused too
<therealwaphire[m> I'm not sure if I should install packages per profile / user or invoke them inside a nix-shell
<therealwaphire[m> I mean, I'm not sure I understand the difference in use-case
<tilpner> It's subjective, but I prefer users.users.therealwaphire.packages for most packages, and the nix-shell for things I only need once or twice
<rydnr> Hi! I have a question. I can build a derivation using nix-build, but it fails when I add it to my configuration.nix and do a nixos-rebuild switch. The problem I get is "cc1plus: sorry, unimplemented: 64-bit mode not compiled in". The package I'm trying to build is a library from Firefox called Moz2D. The derivation is just https://github.com/lukego/studio/blob/vm-upgrade/backend/Moz2D/default.nix after converting it to a function.
<ddellacosta> therealwaphire[m: I have essentially what slack1256 suggested above but in my /etc/nixos/configuration.nix. It works fine. I'm also a relative newbie to NixOS, sounds like I have a month or so on you--my advice to you would be to start there and worry about the right place to put stuff once you have it working
kp__ has quit [Quit: WeeChat 2.3]
<therealwaphire[m> <freenode_dde "therealwaphire: I have essential"> thanks, man. that's what i'm doing right now. I'm playing around, trying to break things until I'm comfortable enough
<tilpner> Although even better is not having it in PATH, by e.g. embedding it in a config file exactly where it's needed
<{^_^}> [nixpkgs] @ryantm merged pull request #53480 → gitAndTools.git-annex: wrap binary on not-Linux to use Nixpkgs' coreutils → https://git.io/fhsk6
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5ML
<therealwaphire[m> <freenode_son "have you tried including it with"> also, hey, uh, isn't putting the package in there the same as `sudo nix-env -i` ?
<therealwaphire[m> cause I've done that, just to be sure
<therealwaphire[m> same `Could not find module` error
<therealwaphire[m> <freenode_til "Although even better is not havi"> I'm not sure I understand what you mean "embedding it in a config file where it's needed"
<therealwaphire[m> I'm not sure I understand what you mean by "embedding it in a config file where it's needed"
<tilpner> Oh, the Matrix bridge completely breaks pings
<tilpner> You'll have to do that manually, not by replying to people
<WilliamHamilton[> question: I want to run a script that requires java, for a game, and I'd like to use steam-run; Since steam-run doesn't include java, I wrote in my config: `(steam.override { extraPkgs = pkgs: [ pkgs.gnome3.gtk pkgs.gnome3.gsettings-desktop-schemas pkgs.hicolor-icon-theme pkgs.jre pkgs.jdk ]; })`
yokyolu has joined #nixos
<WilliamHamilton[> but I still get the error `java not found`. Could you explain why?
<rydnr> WilliamHamilton: Have you tried to inject "pkgs.openjdk" instead of "pkgs.jdk"?
<WilliamHamilton[> rydnr: no, let me try that!
<therealwaphire[m> <freenode_sla "and `man configuration.nix` and "> and no `taffybar` in there
zupo has joined #nixos
<WilliamHamilton[> rydnr: no difference, even with openjdk
kp__ has joined #nixos
<WilliamHamilton[> but what bugs me is: why does this happen. Doesn't `extraPkgs` mean that the libraries are visible in steam fhs?
<WilliamHamilton[> *chroot?
winem_ has quit [Remote host closed the connection]
<tilpner> WilliamHamilton[: As you wrote it, this is steam, not steam-run
<tilpner> If you want steam-run, append .run
<WilliamHamilton[> tilpner: wait, append `.run` where?
<tilpner> Hmm, I've actually not used steam.override myself
<tilpner> I use steamPackages.steam-chrootenv.override
<tilpner> Which may be the same, I haven't checked
<tilpner> But the result of that override is a package that has "steam", not "steam-run"
<rydnr> WilliamHamilton: I'm far from being an expert, but in the manual it explicitly addresses this (https://nixos.org/nixpkgs/manual/): steam.override { withJava = true; };
<WilliamHamilton[> rydnr: oh, you're right! Thanks, don't know how I didn't find this earlier!
<tilpner> WilliamHamilton[: (steam.override { withJava = true; }).run
<tilpner> If you want steam-run, use that
<rydnr> Any hint about what is the difference (in terms of gcc config, I guess) between nix-build and nixos-rebuild switch?
<ryantm> rydnr: I'd expect nix-build to use your user's nixpkgs and nixos-rebuild swtich to use root's
<{^_^}> [nixpkgs] @FRidh merged pull request #55628 → openblas: fix config breakage introduced for configs using 'false' → https://git.io/fhQwl
<{^_^}> [nixpkgs] @FRidh pushed commit from @dtzWill to master « openblas: fix config breakage introduced for configs using 'false' »: https://git.io/fh5M2
ddellacosta has quit [Ping timeout: 272 seconds]
<rydnr> ryantm: but I'm running nixos-rebuild -I nixpkgs=[my-nixpkgs] switch
ddellacosta has joined #nixos
Dagger2 is now known as Dagger
<rydnr> The only thing that springs to mind is to understand the gcc (and cmake?) wrappers. I've tried with gcc5, gcc6, gcc7, but I always get the "cc1plus: sorry, unimplemented: 64-bit mode not compiled in". I've checked gcc -version both for root and my user is 7.3.0.
<ryantm> rydnr: Are you having the issue with nix-build or when building nixos?
<rydnr> when building nixos
<rydnr> ryantm: nix-build (and nix-shell) builds the package just fine.
<LnL> how are you building the package vs nixos?
o1lo01ol1o has quit [Remote host closed the connection]
Mateon3 has joined #nixos
o1lo01ol1o has joined #nixos
<rydnr> LnL: I took this https://github.com/lukego/studio/blob/vm-upgrade/backend/Moz2D/default.nix and converted it into a function, with the same parameters as the "nativeBuildInputs" (plus cmake). Then nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
<ryantm> Has anyone been successful in triggering OfBorg to do a test lately? My last two attempts haven't done anything.
<LnL> that uses a fixed nixpkgs version
<LnL> so it will ignore -I nixpkgs=
<rydnr> LnL: I see
Mateon3 is now known as Mateon1
<LnL> try nix-build --arg pkgs '(import /path/to/nixpkgs {})'
<rydnr> LnL: yes, I'm not using his overlay. I use this derivation:
<rydnr> { atk , autoconf213 , cairo , cmake , fetchurl , fetchFromGitHub , fontconfig , freetype , gcc5 , gdk_pixbuf , glib , gnome2 , gtk3 , gtk3-x11 , gtk2 , libGL , libpulseaudio , nodejs , pango , perl , pkgconfig , python , stdenv , unzip , which , xorg , yasm , zip , ...}: with stdenv; let firefox-file = "FIREFOX_AURORA_52_BASE.tar.gz";
<Thra11> How can I delete a specific path from the store?
<MichaelRaskin> nix-store --delete
<rydnr> LnL: nix-build -I pkgs=[my-nixpkgs] -E 'with import <nixpkgs> { }; callPackage ./default.nix { }' works fine
<ma9e> infinisil: if you merge it, maybe someone will test it for us :p
rycwo has joined #nixos
<infinisil> ma9e: I doubt that tbh
<rydnr> LnL: Is it possible that nix-build would be using a different nixpkgs than the one I'm trying to override?
<Thra11> MichaelRaskin: Thankyou
<LnL> rydnr: yes, that -I pkgs= doesn't do anything
<infinisil> ma9e: Are you furrycatherder?
<LnL> rydnr: the source of callPackage (in this case <nixpkgs>) is what determines the package set
<{^_^}> [nixpkgs] @ryantm merged pull request #55957 → nixos/icingaweb2: Init the module → https://git.io/fh51u
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Mp
<rydnr> LnL: ok. It makes sense. The package can be built with the default nixpkgs, but not with the nixpkgs I'm working on.
lassulus_ has quit [Quit: WeeChat 2.2]
<rydnr> LnL: However, nix-build --arg pkgs '(import [my-nixpkgs] {})' -E 'with import <nixpkgs> { }; callPackage ./default.nix { }' gets built (or at least, it prints the folder in /nix/store)
<LnL> I think you want with import /path/to/nixpkgs {}; callPackage ./default.nix {}
o1lo01ol1o has quit [Remote host closed the connection]
<rydnr> LnL: You're right, it's being rebuilt now. Thanks.
b has quit [Ping timeout: 250 seconds]
endformationage has joined #nixos
<ottidmes> rydnr: what you probably meant to do was: nix-build -I nixpkgs=/path/to/nixpkgs -E 'with import <nixpkgs> { }; callPackage ./default.nix { }' (which is basically prioritizing the paths you supply there over those found in NIX_PATH, i.e. the default value where <nixpkgs> is resolved to)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @ryantm merged pull request #55833 → remmina: 1.3.0 -> 1.3.2 → https://git.io/fh7jP
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5Dn
rcshm_ has quit [Ping timeout: 246 seconds]
aleph- has joined #nixos
<das_j> Is anyone here running nixos on musl?
jb55 has quit [Quit: WeeChat 2.3]
<rydnr> LnL: It got built correctly, but nixos-rebuild -I nixpkgs=[my-nixpkgs] switch fails (since nothing changed)
<elvishjerricco> das_j: I don't think you can. Can't build systemd with musl I believe.
Thra11 has quit [Quit: WeeChat 1.9.1]
<das_j> elvishjerricco: I switched my libc and I'm currently building a system. Let's see what will happen ;)
<{^_^}> [nixpkgs] @FRidh opened pull request #55962 → buildPythonPackage: initial support for PEP 517 → https://git.io/fh5DB
matijja has joined #nixos
<elvishjerricco> das_j: I tried it a few days ago and couldn't get systemd building. DBus too, IIRC
<das_j> elvishjerricco: Heck. But hey, could have been the first freedesktop projects with a sane code base
<{^_^}> [nixpkgs] @dasJ opened pull request #55963 → icingaweb2Modules: Init all themes I could find → https://git.io/fh5Du
<elvishjerricco> das_j: The openembedded project seems to have a bunch of patches to get systemd building on musl, but I stumbled upon a systemd issue thread that described a lot of the patches as major security risks
<das_j> That's sad because I really see a future in musl
<catern> ,locate bin sendmai
hph^ has quit []
<{^_^}> Found in packages: exim, msmtp, ssmtp, busybox, postfix, nullmailer, system-sendmail
<rydnr> Is there a way to force the default gcc?
<symphorien> what are you trying to do ?
Guest79752 has joined #nixos
slack1256 has quit [Ping timeout: 246 seconds]
lassulus has quit [Remote host closed the connection]
<rydnr> symphorien: I'm not able to build a package using nixos-rebuild switch, but I can build it correctly using nix-build. The error is "cc1plus: sorry, unimplemented: 64-bit mode not compiled in".
lassulus has joined #nixos
<symphorien> can you use nix-diff to compare the derivation you build with nix-build and that nixos-rebuild fails to build ?
<rydnr> symphorien: First time I know of nix-diff. I will take a look, thanks!
<{^_^}> [nixpkgs] @vbgl closed pull request #55875 → ocamlPackages.psmt2-frontend: 0.1 -> 0.2 → https://git.io/fh5O9
<rydnr> symphorien: I'm reading nix-diff compares two derivations, but in my case only one gets built.
<symphorien> the .drv are always created before building
<rydnr> symphorien: ah, ok. Thanks.
Thra11 has joined #nixos
jb55 has joined #nixos
goibhniu has joined #nixos
npmccallum has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
npmccallum has quit [Read error: Connection reset by peer]
npmccallum_ has joined #nixos
npmccallum_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #55963 → icingaweb2Modules: Init all themes I could find → https://git.io/fh5Du
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh5yv
wedens has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @Mic92 merged pull request #55944 → teamspeak_client: Fix → https://git.io/fh5o9
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh5yT
<{^_^}> [nixpkgs] @Mic92 opened pull request #55965 → i3pystatus: 2018-04-11 -> 2019-02-10 → https://git.io/fh5yI
<{^_^}> [nixpkgs] @Mic92 opened pull request #55966 → twmn: 2014-09-23 -> 2018-10-01 → https://git.io/fh5yt
<{^_^}> [nixpkgs] @Mic92 opened pull request #55967 → font-awesome_5: 5.6.3 -> 5.7.2 → https://git.io/fh5ys
<{^_^}> [nixpkgs] @dasJ opened pull request #55968 → nixos/icingaweb2-audit: Init both module and pkg → https://git.io/fh5yG
Ariakenom has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Mic92 merged pull request #55960 → i3status-rust: 0.9.0.2018-10-02 -> 0.9.0.2019-02-15 → https://git.io/fh51N
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh5yn
Ariakenom has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
joehh has joined #nixos
aleph- has quit [Ping timeout: 246 seconds]
Glider_IRC_ has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #55561 → opencascade-occt: init at 7.3.0p2 → https://git.io/fhQO4
<{^_^}> [nixpkgs] @ryantm pushed commit from @amiloradovsky to master « opencascade-occt: init at 7.3.0p2 »: https://git.io/fh5yg
Glider_IRC__ has quit [Ping timeout: 255 seconds]
requisitebits has quit [Remote host closed the connection]
zmacs has joined #nixos
elgoosy has quit [Remote host closed the connection]
vk3wtf has quit [Ping timeout: 258 seconds]
zupo has joined #nixos
pie___ has quit [Quit: Leaving]
pie___ has joined #nixos
o1lo01ol1o has joined #nixos
joehh has quit [Ping timeout: 255 seconds]
slack1256 has joined #nixos
bgamari has quit [Ping timeout: 245 seconds]
bgamari has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
o1lo01ol1o has joined #nixos
matijja has quit [Ping timeout: 250 seconds]
jackdk has joined #nixos
zmacs has left #nixos ["rcirc on GNU Emacs 26.1"]
Lears has quit [Remote host closed the connection]
Lears has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
zmacs has joined #nixos
_kwstas has joined #nixos
rycwo has quit [Ping timeout: 258 seconds]
slack1256 has quit [Remote host closed the connection]
slack1256 has joined #nixos
knupfer has quit [Ping timeout: 264 seconds]
yokyolu has quit [Ping timeout: 272 seconds]
zmacs has left #nixos ["Killed buffer"]
alex`` has quit [Quit: WeeChat 2.3]
dsiypl4 has quit [Quit: Leaving]
bgamari has quit [Remote host closed the connection]
JosW has joined #nixos
o1lo01ol1o has joined #nixos
vk3wtf has joined #nixos
bgamari has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #55966 → twmn: 2014-09-23 -> 2018-10-01 → https://git.io/fh5yt
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh5SE
<ekleog> <delroth> ekleog: seems like you added meta.timeout = 30; to nixos/tests/opensmtpd back in August. The test has been constantly timing out since January, and I notice it's the only one using this meta.timeout feature. Any thoughts on just removing the timeout on that test? <-- Maybe bump all the timeouts by a factor 2? I had taken (time on my laptop)*4, but looks like it wasn't enough
<ekleog> the issue is nixos tests have a strong tendancy to just never end when they fail, so we need _some_ timeout to not just wait for the 4hrs limit
<delroth> ekleog: I don't think hardcoding a number of seconds is a great design though, it's very much dependent on the machine running the tests
<ekleog> delroth: right, but we need _some_ way of specifying a timeout, and it just happens to be the only one we have right now
<ekleog> and I'm not sure “short” / “long” / “very long” would be better
<{^_^}> [nixpkgs] @tadfisher opened pull request #55970 → ktlint: init at 0.30.0 → https://git.io/fh5S2
<ekleog> ideally machines running the tests would apply a multiplier to the number of seconds
<ekleog> … actually I was convinced I had added a paragraph to nixpkgs/manual stating this (“please define the number of seconds by keeping it consistent with nixpkgs”), but it looks like I never actually did it
Ariakenom has quit [Read error: Connection reset by peer]
<ekleog> if you feel like opening a PR fixing either of those issues (timeout too low / manual paragraph missing) feel free to ping me… and feel free to ping me as well if you figure out a better way of handling this :)
<delroth> ekleog: yeah, but not sure how that multiplier would be defined
Ariakenom has joined #nixos
kvda has joined #nixos
Ariakenom has quit [Client Quit]
<delroth> ekleog: if the aim here is just to avoid running for 4h with no progress, can we just not use values < 10-15min?
lejonet has quit [Ping timeout: 245 seconds]
<delroth> 30s is just way too prone to overrun for random reasons
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<MichaelRaskin> Obviously, the multiplier should be calculated based on Static Bash Units… Correcting for load is a harder problem.
fendor_ has joined #nixos
fendor_ has quit [Client Quit]
<ottidmes> MichaelRaskin: I am looking at making at least pkgs.fetchurl to use secure connections. I know the right curl options to pass, but I am stuck on how to pass the cacert file, sandboxing disallows access to files in /nix/store that are not direct dependencies, but if I were to change fetchurl, won't the derivation produced by it not also change (they would now depend on cacert), any ideas?
lejonet has joined #nixos
<MichaelRaskin> They are fixed-output, the output path doesn't change on curl updates and won't change on cacert update
<MichaelRaskin> (too lazy to click and check if the link is to my comment or not)
<growpotkin> jesus packaging python is murder me :(
<ottidmes> MichaelRaskin: right, so the .drv would change, but that does not matter, the paths produced will remain fixed due to them being fixed-output
<ottidmes> MichaelRaskin: then the only thing I need to fix is some infinite recursion, but that should be doable.
o1lo01ol1o has joined #nixos
<ottidmes> (fetchurl depending on cacert, while cacert's src is defined using fetchurl, should be a matter of only passing it explicitly at a higher level)
<MichaelRaskin> I think we already have a special early-stage kind of fetchurl anyway
<ottidmes> correct, fetchurlBoot I believe, its in core pkgs
<ottidmes> might have to patch that one too, but I will start with pkgs.fetchurl which will capture almost all src in one go (fetchurl, fetchzip, fetchFromGitHub, i.e. the most commonly used ones)
JosW has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<growpotkin> could someone take a look at this derivation I'm working on? I've been struggling with python for the last few hours.
<growpotkin> I'm trying to install "OCRmyPDF", and needed to add "pikepdf" as a depency, which is failing during the build for homeless-shelter permissions.
Ariakenom has joined #nixos
<growpotkin> I don't know enough about python to even guess why it is trying to access $HOME, or which files to patch to fix it
<growpotkin> I need an adult! lol
Ariakenom has quit [Read error: Connection reset by peer]
<ottidmes> MichaelRaskin: cool, its working :) "successfully set certificate verify locations"
<{^_^}> [nixpkgs] @ryantm merged pull request #55970 → ktlint: init at 0.30.0 → https://git.io/fh5S2
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5SH
<{^_^}> [nixpkgs] @ryantm merged pull request #55714 → upgrade leiningen to latest (2.9.0) → https://git.io/fh7I1
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh5S5
<ottidmes> MichaelRaskin: still leaves plenty fetchers vulnerable to MITM though, fetchbzr to name one, not sure if I can do anything about that one without reimplementing it (its small, that helps)
<{^_^}> [nixpkgs] @ryantm merged pull request #50939 → singularity: 2.6.0 -> 3.0.1 → https://git.io/fpRGt
<{^_^}> [nixpkgs] @ryantm pushed 6 commits to master: https://git.io/fh5Sd
<MichaelRaskin> fetchgit is probably a larger target
<MichaelRaskin> And fetchsvn, I guess
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #55955 → Fixes for diod → https://git.io/fh5XF
<{^_^}> [nixpkgs] @ryantm pushed 3 commits to master: https://git.io/fh5SA
o1lo01ol1o has joined #nixos
<ottidmes> MichaelRaskin: yeah, I am just going through them one by one, fetchbower seems secure since it imports cacert as dependency and adds it to nativeBuildInputs, fetchcvs seems insecure, but when I check its manpage I see no mention of certificates, so I think its too old software to even support them
<dmj`> clever: ping-a-ling
<ottidmes> MichaelRaskin: fetchgit seems to be secure already: GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
joehh has joined #nixos
<MichaelRaskin> Nice
<ottidmes> fetchsvn on the other hand has: --trust-server-cert, which I assume is like --insecure of curl, i.e. no checking
<ottidmes> MichaelRaskin: I guess I can just overlay svn and bazaar and replace them by a wrapper script that filters out those command line arguments
<ottidmes> since neither have something akin to curlOpts for extra argumetns
<LnL> ottidmes: hmm, what's wrong with fetchurl? only fetchurlBoot doesn't support https for bootstrapping reasons AFAIK
<ottidmes> LnL: this is https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/builder.sh#L18 it makes it not check certificates when doing HTTPS connections, while you want them checked when doing a prefetch
<LnL> oh I see, didn't know that
<ottidmes> so it supports HTTPS just fine, it just ignores security checks that are not necessary normally due to our use of hashes, but with a prefetch TOFU, you want to trust them only as much as is truly necessary
<scott> is there an easy way to enter a nix shell for running a 32-bit dynamic exe from itch.io? i can patchelf the dynamic loader (to the x86 version of the loader), but it's still looking for a small set of 32-bit versions of dynamic libs (dl, pthread, rt, stdc++, m, gcc_s, c), i believe
<scott> (i'm on 64-bit nixos-unstable)
<LnL> ottidmes: well with support I was expecting SSL_CERT_FILE, not --insecure :)
<{^_^}> [nixpkgs] @ryantm merged pull request #48835 → add pythonPackage.wrf-python → https://git.io/fxifi
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fh59f
<ottidmes> LnL: its actually using CURL_CA_BUNDLE, but due to --insecure it gets ignored (not that it is set in sandboxing normally anyways)
<ekleog> delroth: iirc the test passed in <5s on my laptop, so I assumed that 30s was already way too long. Sounds like I was wrong, and as it's still in kernel-land at the timeout a *10 or *20 multiplier for the current value would likely make sense…
<ekleog> Now, tbh I'm seriously thinking that the build machines are being overloaded with jobs, and this makes them slower than they should be due to too many cache invalidations
<growpotkin> rydnr: do you mean a specific version?
<ekleog> maybe their job number should just be lowered… anyway, that's off-topic, and a *20 on all meta.timeout values would likely make sense
<emily> what's the correct/easiest way to disable the annoying behaviour where system boot/gettys/etc. wait for dhcp?
<ekleog> delroth: BTW, actually I had just been looking at the manual online, and the manual from unstable should actually already be correct: https://github.com/NixOS/nixpkgs/pull/44439/files#diff-68f1603b1381b2564940fdeb04c2ab63R283
o1lo01ol1o has quit [Ping timeout: 255 seconds]
reygoch has joined #nixos
_kwstas has quit [Quit: _kwstas]
rprije has joined #nixos
<reygoch> Is there some PPA that I can use to install Nix package manager on Ubuntu? I haven't found anything like that.
Thra11 has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<LnL> ottidmes: actually fetchurlBoot uses the builtin so https works fine, no http bootstrapping trickery necessary
<LnL> reygoch: it's preferred to manage a nix installation with nix itself instead of another package manager
<LnL> there are some things that won't work for an apt/rpm install
<reygoch> LnL: I'm new to nix. Once I nix manually, I suspect there's some command for updating nix?
<reygoch> LnL: Is that correct?
<LnL> exactly, nix can upgrade itself :)
<reygoch> cool
<callahad> Hm. My terminal emulator won't start under wayland because it can't find libEGL.so. Not quite sure where to start for fixing that. Should be reproducible with: KITTY_ENABLE_WAYLAND=1 nix run 'nixpkgs.kitty' -c kitty
<reygoch> LnL: What about the cleanup? If I want to remove it completely? Is there a command for that too?
<callahad> Suggestions for first steps figuring this out?
<LnL> reygoch: for the default install it's rm -rf /nix
<ottidmes> LnL: not sure why you think I was talking about HTTP bootstrapping, I was only talking about certificate verification not being done with HTTPS connections, and even the builtin does not do that: https://github.com/NixOS/nix/blob/2d91012754dbe707fe60a0017496f78076d6694a/src/libstore/builtins/fetchurl.cc#L40
<reygoch> LnL: And there are no other files scattered around the system like is usually the case with manually installed packages?
cnmne has joined #nixos
Ariakenom has joined #nixos
<yorick> callahad: I added lib.makeLibraryPath [libxkbcommon, libglvnd, wayland] to my LD_LIBRARY_PATH
zupo_ has joined #nixos
<yorick> sessionCommands = "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${lib.makeLibraryPath (with pkgs; [ libxkbcommon libglvnd wayland-debug ])}"
Nivpgir has joined #nixos
zupo has quit [Ping timeout: 255 seconds]
<LnL> reygoch: everything is installed there, the only exceptions are the ~/.nix-profile symlink and ~/.cache/nix
mkoenig has quit [Remote host closed the connection]
rycwo has joined #nixos
<Nivpgir> Hi, I just installed nixos, had some trouble with grub, but worked them out
<Nivpgir> Now my problem is that I don't have wifi
<Nivpgir> I'm using network manager
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<reygoch> LnL: thanks for the info, much appreciated
<Nivpgir> But I do t think it's the issue, it looks like it's not even starting the wiif
<Nivpgir> The wifi interface*
<ottidmes> Nivpgir: maybe try this option: https://nixos.org/nixos/options.html#enableall
<growpotkin> dude I have so many issues with my wifi as well
<growpotkin> if I close the lid on my laptop I have to restart :( I've spent so many hours trying to debug it lol
<Nivpgir> I see no wifi with if config, and I'm getting some errors in dmesg involving the wifi firmware
<ddellacosta> so I'm trying to figure out how to use my own Haskell projects in NixOS, and I'm following these instructions: https://nixos.org/nixpkgs/manual/#how-to-build-a-stand-alone-project ...however I set ghc to be ghc844 instead of what is in that example. But I was surprised that it sees to be compiling GHC from scratch instead of using a binary package. What did I do wrong?
<growpotkin> have you checkout out the nix-hardware repo?
<growpotkin> ddellacosta: you aren't doing anything wrong
<growpotkin> ddellacosta: it is intended to do that to avoid versioning conflicts; this allows you to have separate non-conflicting collections of each GHC version
<ddellacosta> growpotkin: I see, thanks for the explanation
<growpotkin> ddellacosta: it does eat a lot of disk space though
<growpotkin> ddellacosta: you can periodically use "nix-collect-garbage" to clean things up
<ottidmes> growpotkin: I had issues with my ethernet on my desktop, after coming out from suspend, with any kernels > 4.9, I had it fixed by configuring the driver with an option, but the generic fix is to just reload the kernel module after coming out of sleep
<ddellacosta> growpotkin: yeah mostly I'm cranky because it's taking so much time. I hope it won't do this every time I set up a new project with the same ghc
<ddellacosta> but I guess it makes sense if it has different dependencies per project
o1lo01ol1o has joined #nixos
<callahad> yorick: Thanks, that appears to work for me!
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<growpotkin> ottidmes: I think I had tried some power management scripts to no avail
<growpotkin> ddellacosta: yeah it is time consuming. Whenever I clear out my garbage I usually rebuild GHC844, GHC863, and GHCHead overnight with my favorite modules so that I don't have to wait when I'm working.
<ddellacosta> growpotkin: gotcha. Thanks for the tip, I'll keep that in mind
<LnL> ottidmes: wonder that was added then, I was looking at the prim_fetchurl implementation apparently
<growpotkin> ddellacosta: you can add them to your config if you want, but I find that when someone breaks a package it will halt my whole system build which I don't want
<ddellacosta> ah, right
<Nivpgir> ottidmes: OK, this seems relevant, my problem is I can't do a nixos-rebuild without internet, is there a workaround for this? For the record, I can reboot to a working arch linux which I used to install nixos in the first place, if that helps...
rycwo has quit [Ping timeout: 250 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<growpotkin> ddellacosta: I keep 863 in my config though which is stable (just don't do head or some of the older ones)
<growpotkin> Nivpgir: You need to move files over from another machine, or fall back to a state where your internet worked
<ottidmes> Nivpgir: easiest is to just reinstall
<growpotkin> If you can still boot arch you can build from there
<ddellacosta> growpotkin: so, just to double-check my understanding--once you have your set of GHCs built with the standard set of modules you use, next time you create a new project using cabal2nix, it won't rebuild GHC (assuming you don't introduce any new dependencies)?
<growpotkin> ddellacosta: correct the packages should persist, so you will only need to build things that you are missing.
<ddellacosta> growpotkin: thank you! This is very helpful for my understanding
<growpotkin> ddellacosta: The only caveat I would add is that cabal2nix takes versioning restrictions very seriously; so whenever possible let them overlap with your other work.
<ddellacosta> okay, I'll keep that in mind
<growpotkin> ddellacosta: do you have a shell file that you use for little projects yet? Cabal2nix is kind of cumbersome for little things
xkapastel has joined #nixos
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<Nivpgir> Hmmm, I'll try to get ethernet somehow and if that fails I'll reinstall
<Nivpgir> BTW if I just run nixos install from arch again, will it work? Or will it ruin something?
<ddellacosta> growpotkin: no, I'm still just trying to figure out a sane flow on NixOS--I'm only really getting into it now. Up until now I've been using `cabal new-*` for Haskell work (before NixOS I mean)
<ottidmes> growpotkin: you can use callCabal2nix to do cabal2nix on the fly within your shell.nix, I use that and only call cabal2nix when actually "releasing"
<growpotkin> Nivpgir: it will work if you tell it the proper root directory
<growpotkin> Nivpgir: that is exactly how I would try to do it.
<ottidmes> LnL: yep, why its being done was in the comment of the file I linked, its perfectly reasonable, and probably even a feature, but it would have been better if it was behind an option, now I have to do workarounds to undo the disabling of TLS verification
stigo has quit [Quit: WeeChat 2.2]
<growpotkin> I just use that little shell for most things haha. I only really use cabal2nix when I'm packing something
<ddellacosta> growpotkin: thanks!
<growpotkin> no sweat, you can change the version at the top (or as a nix-shell arg). Add haskell modules in the top list. Add other executables/lib dependencies in the lower bit.
<growpotkin> dellacosta: because the haskell packs are in a separate list it's easy to pass them to haddock or something.
<ddellacosta> gotcha
<growpotkin> (this is just my way, It's served me well for the last year; but cabal2nix might not be as much as a hassle as I think) haha
o1lo01ol1o has joined #nixos
<ddellacosta> growpotkin: totally understand. In any case seeing how someone else does it is super helpful for my own understanding, even if I end up tweaking things or trying other approaches later
<ddellacosta> so, thanks again for that
<ottidmes> ddellacosta: I use this for my Haskell projects: https://gist.github.com/msteen/583b601814831d38b9e15642a46b6dd5
<ddellacosta> oh nice, haha
<ddellacosta> thanks ottidmes
<cnmne> hello, I'm getting an end-of-file error after running `nix-env -i hello` with a fresh multi-user install on macos 10.14.3; output with verbose=5: https://paste.debian.net/1068496
<{^_^}> [nixpkgs] @Mic92 merged pull request #51312 → usbutils: patch hashbang of lsusb.py → https://git.io/fpozG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fh59u
<LnL> ottidmes: I think I know how to handle the builtin:fetchurl part, if you're not familiar with nix/c++
blumenkranz has joined #nixos
<ottidmes> LnL: the only thing I could think of is doing the verification beforehand, so by all means, if you have some way that does not require any rebuilds, I am all ears :)
Nivpgir has quit [Ping timeout: 256 seconds]
<infinisil> cnmne: Does `journalctl -u nix-daemon -f` output anything when that happens?
<LnL> these are all fixed outputs so we can change the derivations as long as the name is the same
<ottidmes> LnL: I just checked all the other fetchers and am now implementing workarounds for them, that still leaves the builtin fetchers and 4 fetchers I could not figure out whether they do TLS verification (they do not explicitly disable it either)
copumpkin has joined #nixos
<cnmne> infinisil: I don't have journalctl, but i can try running the equivalent commands in launchctl
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<ottidmes> LnL: how would that work? the verification has to be done while it produces those fixed-output paths
<blumenkranz> Hello. I would like to fork this NixOS module: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/firejail.nix in order to make some tests on my computer before submitting a patch. Do you happen to know if the process is the same as overriding packages, or do I have to read some more specific guide?
<ottidmes> blumenkranz: you can override modules by disabling the default one, for example: disabledModules = [ "programs/command-not-found/command-not-found.nix" ]; that way you can sort of override an existing module, by supplying a module with the same options but your own config implementation of them
<blumenkranz> ottidmes: Oooh nice. Thanks for the help.
dsx has quit [Quit: dsx]
<LnL> ottidmes: yeah, but as long as you have a reference to a cert bundle you can do that
<infinisil> cnmne: oh right
<{^_^}> nix#2523 (by periklis, 14 weeks ago, open): darwin: nix-daemon crashes due to OBJC_DISABLE_INITIALIZE_FORK_SAFETY
kvda has joined #nixos
stigo has joined #nixos
<cbarrett> Hello. I'm trying to use Digital Ocean's newish support for custom images to load NixOS <https://www.digitalocean.com/docs/images/custom-images/overview/> They dont support ISOs however. I was wondering if any other image formats are generated by hydra?
blumenkranz has quit [Quit: WeeChat 2.3]
<cnmne> LnL, infinisil: reading the system.log with console shows a bunch of forks calling and crashing with objc
eadwu has quit [Quit: WeeChat 2.3]
<cnmne> so that does seem like the issue
<daniele-> fuxk xfinity! i just discovered that they throttle my connection in upload
<daniele-> all connections that tranfer more than 1Mb in upload are throttled to 256 kb/s
reygoch has quit [Quit: Leaving]
<infinisil> daniele-: so 999kb/s works? And it also works if you use multiple connections?
<daniele-> infinisil: the first Mb goes at ~2Mb/s the remaining is throttled at ~256kb/s
<infinisil> Ah right, i misread as 1Mb/s
<daniele-> i haven’t tested extensively but i believe it is per tcp connection. i don’t know how it would go for parallel connections
o1lo01ol1o has joined #nixos
<infinisil> That sure is not nice of them. (Also it's offtopic for #nixos :P, there's #nixos-chat for such things)
schjetne has quit [Ping timeout: 245 seconds]
Guest75765 has joined #nixos
__monty__ has quit [Quit: leaving]
<Guest75765> OK well, I did that, and something went wrong with the file system, files started getting corrupted, so I formatted everything and now I'm installing again, I'll report back tomorrow, thanks!
Guest75765 has quit [Client Quit]
Nivpgir has joined #nixos
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<Nivpgir> Whoops I was logged in as guest
<Nivpgir> OK well, I did that, and something went wrong with the file system, files started getting corrupted, so I formatted everything and now I'm installing again, I'll report back tomorrow, thanks!
<clever> Nivpgir: nix can detect corrupt files without a reinstall
<clever> Nivpgir: nix-store --verify --check-contents
<clever> Nivpgir: but you may also want to check smartctl -a, and see whats up with the diks
<iqubic> How does one make a symlink?
<clever> iqubic: ln -s
<iqubic> Yes, but that's not working.
<clever> iqubic: why do you think its not working?
<iqubic> ln -sv ~/link ~/long/directory/path/here/ puts the symlink in the link in the ~/long/directory/path/here directory.
<clever> iqubic: if the destination already exists as a directory, it puts the symlink inside that dir
<clever> thats how ln has always worked
<iqubic> But that's not really what I want.
<clever> then rm the destination first
<iqubic> I want the symlink to be in my home folder, and I want it to link to the other place.
<clever> you have the arguments backwards
o1lo01ol1o has joined #nixos
<iqubic> I do?
<clever> yes
<iqubic> Oh.
<clever> the link its creating, is the 2nd argument
<iqubic> That works.
o1lo01ol1o has quit [Ping timeout: 245 seconds]
Nivpgir has quit [Ping timeout: 256 seconds]
<cbarrett> Is this function something I could use to build my own image? Or is it not really intended for public use