gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
wildtrees has quit [Quit: Leaving]
sudoforge has quit [Ping timeout: 252 seconds]
lyvidev has quit [Remote host closed the connection]
lyvidev has joined #nixos
sudoforge has joined #nixos
qubasa has joined #nixos
dansho has joined #nixos
qubasa_ has quit [Ping timeout: 244 seconds]
philr has joined #nixos
ris has quit [Ping timeout: 244 seconds]
jgt has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
mexisme has joined #nixos
<selfsymmetric-mu> I want to fetch a Python repo and add a script to my path: https://gist.github.com/matthew-piziak/e71aa779d9b910f442c7ef14ebe8dfa7
<selfsymmetric-mu> I just need to write the installPhase now, I think.
<selfsymmetric-mu> Which will presumably just be moving mpv-shim.py to my path and chmodding it, right?
<selfsymmetric-mu> But I don't know exactly where things are...
MmeQuignon has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjFmx
MmeQuignon has joined #nixos
<selfsymmetric-mu> This gets me an mpv-shim on my path but doesn't know about conffile.
<selfsymmetric-mu> I'm going to try `buildPythonApplication`.
<selfsymmetric-mu> Ah, shame, this repository doesn't have a setup.py
<selfsymmetric-mu> Should I patch one in?
alex`` has quit [Ping timeout: 245 seconds]
<selfsymmetric-mu> I know how to write patches to files, but I don't know how to _add_ a file.
lambda-11235 has joined #nixos
<evanjs> infinisil: Okay sweet, that works. I switched the channels variable to channels = (config.nixpkgs.config.packageOverrides {}); at some point and obviously that doesn't work. Your recommendation worked when I set it to [ pkgs pkgs.stable pkgs.unstable pkgs.unstable-small ]; Thanks!
<infinisil> :)
tmaekawa has joined #nixos
evanjs has quit [Quit: WeeChat 2.5]
Shouou has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/67135fbcc5d (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<tertl3> gentoo user here
thc202 has quit [Ping timeout: 250 seconds]
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
Okinan has joined #nixos
infinisil has joined #nixos
waleee-cl has quit [Quit: Connection closed for inactivity]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
jgt has joined #nixos
ryantrinkle has quit [Ping timeout: 245 seconds]
m0rphism has quit [Ping timeout: 245 seconds]
jgt has quit [Ping timeout: 264 seconds]
iyzsong has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<freeman42y> could this issue somehow be NixOS related? https://github.com/commercialhaskell/stack/issues/5005
<{^_^}> commercialhaskell/stack#5005 (by razvan-panda, 4 minutes ago, open): Executable named hoogle not found on path
ryantrinkle has joined #nixos
dl4mfo_ has joined #nixos
dl4mfo has quit [Ping timeout: 245 seconds]
gentauro has quit [Ping timeout: 272 seconds]
gentauro has joined #nixos
<selfsymmetric-mu> freeman42y: It's certainly possible. Stack makes some aggressive assumptions if it sees that you're on NixOS. It's burned me in the past.
rprije has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
MmeQuignon has quit [Ping timeout: 268 seconds]
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon2 is now known as Mateon1
selfsymmetric-mu has quit [Remote host closed the connection]
slack1256 has joined #nixos
selfsymmetric-mu has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/37c22b49f52 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @aanderse merged pull request #66807 → cgdb: 0.7.0 -> 0.7.1 → https://git.io/fjFmR
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjFYM
<gchristensen> like 250,000,000 infinisil / emily / adisbladis
<gchristensen> ish
<emily> so like over 4 gigs of just hashes @_@
<emily> bloom filters it'd have to be I guess
<gchristensen> the metadata export I get produces like 10g of data per export
<nh2> clever: hmm, even with `nixos/release-combined.nix --arg supportedSystems '[ "x86_64-linux" ]'` it complains at building `error: a 'aarch64-linux' with features {} is required`
jgt has joined #nixos
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
slack1256 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @aanderse opened pull request #66809 → apacheHttpd: 2.4.39 -> 2.4.41 → https://git.io/fjFY7
<{^_^}> [nixpkgs] @aanderse closed pull request #66774 → apacheHttpd: 2.4.39 -> 2.4.41 → https://git.io/fjFUA
<{^_^}> [nixpkgs] @evanjs opened pull request #66810 → gitkraken: 6.1.1 -> 6.1.3 → https://git.io/fjFYd
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 250 seconds]
slack1256 has joined #nixos
<infinisil> gchristensen: emily: According to a wiki formula for bloom filters, for this many elements we'd need a bloom filter of size 142MB for getting a false positive rate of 10%
<emily> I think 150 megs of disk space is positively anemic by NixOS standards
redknight_ has joined #nixos
<emily> looked at /nix/store lately? :p
<emily> I don't know if there are fancy techniques for incremental updates of bloom filters though
Ariakenom has quit [Quit: Leaving]
<infinisil> emily: That's pretty easy: Just send a bloom filter for the new paths, then OR it with the existing one
<infinisil> A union operation
<emily> right, ok
<infinisil> Oh wait
<infinisil> That's not incremental lol
<infinisil> Still needs 140MB
<emily> yeah you'd need them to be of different sizes or something
<emily> there's probably stuff in The Literature.
<emily> browsers already deal with a version of this problem for the "safe browsing" hash list
<infinisil> I guess if it's small enough you can send a list of new bit indices instead
<infinisil> Each new path would only have to add 3 bits
<infinisil> gchristensen: Do you also know the rate of new paths?
<infinisil> I guess let's say the cache has accumulated paths over 10 years, then it's ~70000 paths per day
<{^_^}> [nixpkgs] @teto merged pull request #64362 → chezmoi: 1.3.0 -> 1.5.5 → https://git.io/fj6NW
<{^_^}> [nixpkgs] @teto pushed commit from @jhillyerd to master « chezmoi: 1.3.0 -> 1.5.5 »: https://git.io/fjFOJ
hyperfekt has quit [Quit: hyperfekt]
<gchristensen> that wouldn't be a good measure because rate of addititons and more architectures
<infinisil> Meaning ~21000 indices, where each index takes about 30bits to transfer
hyperfekt has joined #nixos
<infinisil> Resulting in a ~1MB incremental update download per day
<infinisil> Which sounds pretty good :)
<infinisil> Let's make it 5MB then, which is still pretty good
<gchristensen> heh
<gchristensen> assuming that napkin math, sure
redknight_ has quit [Quit: Leaving]
<gchristensen> we put roughly one to store path each second
<gchristensen> so 70k isn't so off, but closer to 90k
<infinisil> I see, nice
<gchristensen> note the S3 puts aren't just NARs but narinfos and logs
<infinisil> Oh neat
<gchristensen> seems data collection broke a couple weeks ago. I'll look in to it later
<infinisil> And actually, I also went through the calculation with 1% false positive rate. The major difference would be that the filter size is 280 instead of 140MB, while updates to it are still about the same, so 1MB per day
<gchristensen> I wonder how to handle the part where the cache is continuously updated
<gchristensen> or if that even needs handling
<infinisil> Not sure what you mean
<hyperfekt> Just out of curiosity, what's the main use case of bringing down latency for single, fast builds? Or is there a lack of parallelism in checking the cache such that this would make lots of trivial builds faster, too?
<gchristensen> if you fetch the bloom filter data at 9am, and then from 9am to 3pm hydra does a mass rebuild and you fetch nixpkgs at 4pm, how do you tell your machine to fetch those built paths
<gchristensen> hyperfekt: nix check sthe cache for every build, so not having to do that would be cool
<infinisil> hyperfekt: Nix currently needs to first: Ask the cache if the root derivation exists, if yes fetch it, if not build it, meaning it needs to recursively do that for all dependencies (well it first checks whether they exist in the local store too)
<gchristensen> infinisil++
<{^_^}> infinisil's karma got increased to 122
<infinisil> gchristensen: I'm thinking it could store multiple bloom filters in increasing distances
<infinisil> gchristensen: So it would store a bloom filter for the new paths in the last hour, in the last 2 hours, last 4 hours, and so forth
<gchristensen> yeah, but how does Nix know to fetch a new copy?
<gchristensen> I guess it could always look
<infinisil> Probably just store the last fetch time locally
<hyperfekt> Ah, there's no parallelism between derivations and their dependencies, So it makes deep trees take longer too. How often do people have deep dependency trees not served by the cache that can and should be built quickly?
<hyperfekt> I mean I totally agree it would be just super cool to not have to contact the cache, but I wonder what the pain of it is in practice.
<gchristensen> yeah it isn't so bad as is
<gchristensen> makes it annoying to build without internet though
<hyperfekt> Well a bloom filter knowing what's in the unreachable cache will hardly be the best fix for that case :b
<infinisil> I guess it could considerably decrease time-to-first-byte for installations of new things, which might have a deep dependency tree
<infinisil> Also: Nix can't fetch the root derivation without first having fetched all its dependencies
<gchristensen> Nix's binar ycache query does start with the final derivation before checking deps of course
<infinisil> And this recursively, so it really needs to go through the whole chain and ask the cache serially until it knows what to fetch first
<hyperfekt> infinisil: Wait, really? :o That changes things...
<gchristensen> I don't think so...
<infinisil> I'm pretty sure anyways, because Nix doesn't allow invalid paths, and paths whose dependencies don't exist are invalid
<gchristensen> no, because if a cache has the final build product it has the whole closure
<infinisil> Ah, hmm
<infinisil> True
<infinisil> Might not be that bad after all
<gchristensen> it isn't so bad ;)
<gchristensen> besides, Nix can't know what the closure is unless it either built it, OR fetched the narinfo
<infinisil> I'm just noticing that there's a considerable delay on every nix-build, and that delay seems to be from fetching caches
<infinisil> checking caches*
<infinisil> gchristensen: Doesn't the local .drv tell nix what the closure is?
jgt has joined #nixos
<gchristensen> drvs describe build time closures
<gchristensen> run time closure is a subset, yes, but Nix doesn't start fetching build time closures unless it has to build
<infinisil> Yeah, but that plus knowing which paths are in substituters should be enough for it knowing what it needs to build
<hyperfekt> Well, it might be latency on every nix-build but if they're parallel it shouldn't matter that much? That's why I asked earlier if there is a need for low-latency nix-builds.
<gchristensen> I thought we were discussing run time closures
<gchristensen> :)
<infinisil> Well it needs to download build dependencies too if it's not cached, but if it is it only needs to fetch runtime deps
<clever> [clever@amd-nixos:~]$ nix show-config | grep narinfo-cache
<clever> narinfo-cache-negative-ttl = 3600
<clever> narinfo-cache-positive-ttl = 2592000
<clever> gchristensen: if something isnt found in the cache, nix will remember that for 1h
<infinisil> hyperfekt: I just feel like the fact that nix-build takes a long time to start building every time makes the experience so much worse
<clever> if something IS found in the cache, it will remember that for 30 days!
<infinisil> hyperfekt: If the delay was 100ms instead of 2seconds, that would be such a good UX improvement
<clever> if you GC the cache, things break, badly, for up to a month!
<gchristensen> infinisil: for sure
<gchristensen> infinisil: if you split eval and build, what do you find the delay is?
<infinisil> Well I just kind of imagined the eval time was 0 (with the nix daemon caching eval thing described earlier or so)
jgt has quit [Ping timeout: 250 seconds]
<infinisil> Hold on lemme measure eval time for some nixpkgs packages
<gchristensen> nixpkgs is pretty slow to eval :(
<infinisil> 1.6s for firefox, 0.17 for hello, 0.18 for python
Supersonic has quit [Ping timeout: 250 seconds]
<hyperfekt> infinisil: That's true! My nixos-rebuild takes a minute so I wasn't even thinking in the realm of interactivity lol
<infinisil> And querying substituters is also in the order of 2 seconds minimum
<gchristensen> 2s!
<infinisil> hyperfekt: NixOS is a case where evaluation is the main bottleneck unfortunately..
<infinisil> So any bloom filter shenanigans won't help much
<gchristensen> gosh, my substitution queries are on the order of ms
<infinisil> gchristensen: I tested with this: https://paste.infinisil.com/8c2gpPVepU.nix
<infinisil> Then nix-instantiate it, then time the `nix-store -r /nix/store/...-test.drv`
<gchristensen> nix-build /nix/store/nd4ksp3y9v5s614lmjssrxnrfcdfrgf2-test.drv 0.04s user 0.01s system 48% cpu 0.102 total
<infinisil> Ah and change the allowSubstitutes depending on whether you want to measure with or without substituting
<gchristensen> nix-build /nix/store/v4bkn48v1kk5x3djcr1772gx92prnbxa-test.drv 0.01s user 0.01s system 3% cpu 0.689 total
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
Supersonic has joined #nixos
<infinisil> gchristensen: Yeah so the one with substituting is about 2 seconds for me
<gchristensen> ouch
<infinisil> AHh you know what
<infinisil> I have many cachix caches
<infinisil> configured
<gchristensen> ouch. yup, that'll do ya
<infinisil> 3 cachix caches
<infinisil> Let's see how fast it is with those disabled..
<hyperfekt> Are cachix caches still wholly trusted?
<infinisil> About 1 second, whereas no substituting takes about 0.3 seconds right now
<gchristensen> hyperfekt: eh?
<Gilfoyle-> Hmm, anyone ever get filebot built?
<Gilfoyle-> See some logs on samuel's site but no answer on wether it was built or not. Not in nixpkgs at least.
* Gilfoyle- grumbles at java
sigmundv_ has quit [Ping timeout: 268 seconds]
<drakonis> hm
<drakonis> the question that should be answered
<drakonis> when's the lorri flake
<hyperfekt> gchristensen: As in, they can provide any package, not just the one I added the cache for.
<gchristensen> hyperfekt: yes
<gchristensen> unfortunately
<infinisil> Not really possible to get around this
<hyperfekt> Ah, I was hoping that might've changed since I last checked. Been refraining from using them because of that.
<hyperfekt> Per flake substituters? Does that make any sense?
<infinisil> hyperfekt: If a flake defines a function for creating a package and you call this in your code, can the flake's cache still be used?
<clever> infinisil: cachecache might help you with the cache performance
<hyperfekt> infinisil: As long as I don't pass in any derivations I'd say. Because at that point it's very unlikely for the cache to have it.
<infinisil> clever: You need a readme!
<gchristensen> hyperfekt: the problem is what if projectA's cache provides on derivation foo, bar, baz and projectB's cache provides bar, baz, tux.
<clever> infinisil: yeah
<gchristensen> hyperfekt: to make matters worse, bar and baz don't have the exact same content because tehir builds aren't reproducible.
<clever> infinisil: basically, it will query multiple upstream binary caches, and then present a single cache interface to downstream clients
<infinisil> hyperfekt: I think the only solution to getting such substitute authorization is to declare this in derivations via an attribute like `allowedSubstituters = [ "https://cache.nixos.org/" "https://foo.cachix.org/" ]`
<clever> infinisil: and also cache every narinfo in ram, and cache the nar files to disk
<gchristensen> infinisil: rip cachecache and corporate-internal caches
<infinisil> gchristensen: You could still whitelist more caches in nix.conf
<infinisil> clever: I see, neat
<infinisil> gchristensen: Yeah actually, we could differentiate between untrusted substituters and trusted ones. A trusted one can substitute any derivation, an untrusted one can only substitute derivations which have it declared in `allowedSubstituters`
<hyperfekt> I might be a bit slow because it's late and I should be in bed, but I don't see the fundamental problem - as long as you introduce tracking for which flake a derivation (as in the Nix language feature) is from. And even today non-reproducible derivations can produce different content, for example if built by Hydra and me locally.
<clever> infinisil: it would need to be based on the public key to be secure
<infinisil> gchristensen: Then people could go "I provide aarch caches for these derivations in cache.example.com", and make a PR to nixpkgs with `allowedSubstituters = optional stdenv.isAarch "https://cache.example.com/";`
sushi_ has joined #nixos
<infinisil> clever: Ah good point
<hyperfekt> infinisil: Having to declare substituters it in the derivation would kinda suck because changing the set of allowed ones would change the derivation :/
<infinisil> `allowedSubstituters = { "https://cache.example.com" = "<public key here>"; }`
<clever> hyperfekt: meta
ilikeheaps has quit [Ping timeout: 272 seconds]
<hyperfekt> Oh is meta not part of the hash?
<clever> hyperfekt: its ignored
<clever> hyperfekt: but you still have the problem of recursively adding it to everything in your closure
<no-n> 3:27 PM <no-n> does anyone know how to link to liblua on nixos?
<no-n> 3:27 PM <no-n> I tried nix-shell -p lua53Packages.lua but my linker can't find liblua
<infinisil> clever: It would have to be part of the final derivation so Nix knows the allowed substituters just from the .drv
<clever> infinisil: ack
<infinisil> Are passthru's in the .drv?
* infinisil is not sure
<infinisil> No they can't be
<clever> infinisil: they arent
<hyperfekt> But if it's in the drv getting rid of / adding one substituter precludes me from using all the others :<
dk_ has joined #nixos
<infinisil> Yeah it's not optimal that this would influence the drv itself..
<infinisil> hyperfekt: Well you could still add the cache you want temporarily to the trusted set so it can substitute anything
<hyperfekt> Hmm seems like a limited hack, because then we go back to having universally trusted caches. It'd work for stuff built by Hydra cause we kinda trust that but not for other stuff with more than one substituter. Or adding two partially trusted substituters.
<dk_> Hey everyone - Just took my first pill and have been playing with NixOS all day. So far it has been very informative and fun, but I'm having some issues getting KDE running within Virtualbox, built from latest ISO image. Demo appliance works as expected, but cannot get the custom one going. No screens found. Any thoughts?
<infinisil> clever: hyperfekt: I guess Nix could have a separate database field where it stores passthru.allowedSubstituters, then it wouldn't have to be part of the .drv but it could still query it
<clever> infinisil: the database mainly just stores the existance, hash, and signature of store paths, but not metadata about them
<clever> and drv files are all named after a hash of their contents
<hyperfekt> Would that mean having to eval any derivation I want substituted?
<gchristensen> (you do now)
<infinisil> clever: Yeah but it could be changed to store more stuff
<infinisil> And I think this would be reasonable if such an allowedSubstituters thing wants to be implemented
<clever> gchristensen: nix-copy-closure can copy just drv files to a remote machine
<clever> gchristensen: it would also complicate build slaves quering the binary cache for things
<clever> currently, the api for asking if a slave has a list of paths, includes a bool allowing it to fetch
<hyperfekt> What would be the ideal properties we want from limited trust substituters? Is there any point to being able to not trust the same substituter to provide runtime deps?
<clever> and it just wont answer until it has checked its own caches, and then report what it couldnt get
<infinisil> hyperfekt: Not sure what you mean
ottidmes has quit [Ping timeout: 245 seconds]
<hyperfekt> Currently a substituter provides the whole closure, right? But what if a derivation had a different set of allowed substituters than its dependencies? Seems like a possibility when you make it part of a derivation.
<hyperfekt> where it = allowed substituters
justanotheruser is now known as justanotherchad
<{^_^}> [nixpkgs] @kalbasit merged pull request #66799 → curlie: init at 1.2.0 → https://git.io/fjFqg
<{^_^}> [nixpkgs] @kalbasit pushed commit from @Ma27 to master « curlie: init at 1.2.0 (#66799) »: https://git.io/fjFOR
freeman42y has quit [Ping timeout: 252 seconds]
<infinisil> hyperfekt: I guess Nix would have to check each derivation on its own
<no-n> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
jgt has joined #nixos
<infinisil> clever: Hey, I'm just trying to use your kexec script again, but it seems to be failing now and I have no clue what it could be. The error is ultimately "Nothing has been loaded!" after the `kexec -e` step
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<infinisil> But there's also a "kexec_load failed: Invalid argument" earlier after the `kexec -l ...`
<clever> infinisil: dmesg say anything?
<infinisil> Assuming I interpret the numbers in dmesg correctly (e.g. 14.5 seconds since boot up), then there's nothing new in it
<infinisil> clever: ^
<{^_^}> [nixpkgs] @samueldr merged pull request #61655 → g2o: build g2o_viewer, libqglviewer: 2.6.3 -> 2.7.1 → https://git.io/fjFO0
<{^_^}> [nixpkgs] @samueldr pushed 4 commits to master: https://git.io/fjFOE
<clever> infinisil: read the kexec script, and run kexec with --debug added to it
<clever> (or modify and rebuild)
* infinisil tries that
jgt has quit [Ping timeout: 252 seconds]
<infinisil> clever: Lots of shiny output: https://paste.infinisil.com/CCTC-01UQ0.txt
<infinisil> "/sys/firmware/edd does not exist." looks a bit suspicious
<infinisil> This is with --debug on the `kexec -l ...`
<infinisil> But "invalid argument" really seems to indicate some command line option being wrong hmm
<clever> infinisil: and what does strace say failed?
<clever> infinisil: uname -a?
<infinisil> clever: Linux vario2 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u5 (2019-08-11) x86_64 GNU/Linux
<clever> infinisil: how much ram?
<infinisil> clever: 1GB
<clever> infinisil: you might not have enough ram for the initrd
<infinisil> 1GB has been enough before, not sure what would change for it to suddenly be not enough
<clever> is it the same nixpkgs rev? the closure size of the image may have grown
<infinisil> This is with 19.03
<infinisil> Hm, I guess I could try with more RAM, though I doubt it
wfranzini has quit [Remote host closed the connection]
<infinisil> clever: Just looking at http://man7.org/linux/man-pages/man2/kexec_load.2.html#ERRORS to see what EINVAL could all mean
wfranzini has joined #nixos
<clever> EINVAL The file referred to by kernel_fd or initrd_fd is empty (length zero).
<clever> that should be easy to check
<clever> ENOMEM Could not allocate memory.
<clever> and it shouldnt be a ram issue
<infinisil> clever: That EINVAL is apparently only for kexec_load_file, which isn't in my strace
<clever> ah
slack1256 has quit [Ping timeout: 244 seconds]
<clever> ls: cannot access '/sys/firmware/edd': No such file or directory
<clever> this doesnt exist on my machine either, so its probably nothing
slack1256 has joined #nixos
<infinisil> Yeah probably
<infinisil> clever: I'm just looking at "3839 openat(AT_FDCWD, "/sys/kernel/kexec_loaded", O_RDONLY) = 3"
<infinisil> Which seems to be how it detects to output "Nothing has been loaded!"
<infinisil> I guess that's just because the kexec_load syscall failed
<infinisil> Which makes sense lol
<infinisil> 3833 kexec_load(0x3fff0740, 4, [{buf=0x7f32dee87010, bufsz=500588588, mem=0x20899000, memsz=500592640}, {buf=0x7f32fcbf2410, bufsz=4403872, mem=0x3e600000, memsz=25358336}, {buf=0x15f4d20, bufsz=17644, mem=0x3ffeb000, memsz=20480}, {buf=0x15edb50, bufsz=28896, mem=0x3fff0000, memsz=36864}], KEXEC_ARCH_X86_64) = -1 EINVAL (Invalid argument)
<infinisil> "EINVAL Two or more of the kernel target buffers overlap."
* infinisil tries to check, but doubtful
gentauro has quit [Ping timeout: 248 seconds]
<clever> infinisil: you can also check the source, both to see how the checks are done, and if any undocumented checks exist
freeman42x has joined #nixos
<infinisil> Guess I'll just try more RAM..
<infinisil> Though that would make it impossible to downgrade to less RAM later (in DigitalOceans current selection)
<infinisil> And the reason I'm doing all this jazz is that I can downgrade to a less expensive Droplet lol
drakonis has quit [Ping timeout: 250 seconds]
<clever> infinisil: how does the current nixos-infect stuff work then...
<infinisil> No idea
<infinisil> I'm still guessing it's not RAM, maybe I'll try an older nixpkgs, or a different base distro
drakonis has joined #nixos
<Gilfoyle-> Question, trying to run powerdns with a sqlite3 backend. Able to get it to run, however even with powerdns.sqlite located under /var/lib/powerdns and with it's perms set to 777 powerdns is treating it as a RO db. Anyone try setting this up before and run into a similar issue?
<clever> infinisil: ohhh right, nixos-infect is using the lustrate method
<infinisil> Ah yeah and that doesn't support changing the root fs
mexisme has quit [Ping timeout: 250 seconds]
<clever> infinisil: just create that file (it can be zero bytes) and run the `switch-to-configuration boot` for a nixos build
<clever> and it will overwrite the bootloader and assume full control of the box
dansho has quit [Remote host closed the connection]
<infinisil> clever: Ohh I can temporarily increase RAM for a droplet, then revert it back
<clever> ah, that should also work
dansho has joined #nixos
<clever> if ram is the issue
<infinisil> I hope it is, but at the same time I hope it isn't
<clever> infinisil: funny thing about that lustrate method, is that its based on tales of how i manually did it to a gentoo netboot, lol
<clever> and i forgot it was even an option
<infinisil> Heh
<clever> i basically just ran switch-to-configuration on gentoo, then debugged and fixed the problems it caused
<clever> nixos was obeying things like the old dbus config, and using binaries from gentoo
<clever> `rm -rf /etc /bin /usr` fixed it, lol
<infinisil> clever: Well damn, more RAM did it, 1GB wasn't enough apparently
<clever> /etc/NIXOS_LUSTRATE just automates it for you, by moving it all to /old-root/
<clever> infinisil: guess you cant trust the error codes, also check the closure
<clever> instead of aiming -A at kexec_tarball, aim it at config.system.build.toplevel
<infinisil> clever: I'm not surprised that originated from you too :P
<clever> then do: du -h --max=1 -c $(nix-store -qR ./result) | sort -h, i think
<infinisil> Or there's some nix path-info incantation too
<infinisil> Ah that counts narSize though
<infinisil> The du variant is better for this
<clever> though du obeys zfs compression by default
<clever> --apparent-size to disable that
<clever> infinisil: ah, you want --max=0
uranther has joined #nixos
<clever> 776mb with zfs compression for me, 972mb without, yeah, thats pretty tight
<clever> kexec is likely undoing the initrd compression
<clever> though there is also a squashfs within there, that still remains compressed
<clever> nice
<clever> something else i should look into, is a more specialized kexec image
<clever> right now, its just a full blown nixos install
<infinisil> Minimizing the configuration?
<clever> i mean not-os'ing the image :P
<clever> make something highly specific, that can only install nixos
<infinisil> Hehe, so hardcore minimizing it
<clever> nix copy --to ssh://root@target?remote-store=local?root=/mnt /nix/store/hash-nixos
<infinisil> Yeah that would be really nice
<clever> of note, this lets you copy a closure to a chroot on a remote machine
<clever> so as long as you have a basic shell, nix, some partitioning utils, and mkfs.*, you can install nixos
<infinisil> clever: Packing those in a static build would make this smooth
<{^_^}> #56281 (by matthewbauer, 24 weeks ago, open): [wip] Statically built Nix
<clever> not sure about static, that can hurt if you have a lot of binaries
<clever> the initrd tools would be a better model
<infinisil> AHh right
<infinisil> I thought you meant nix, mkfs and such in the original distro
<Gilfoyle-> Is there a way to force a service to run as particular user?
<infinisil> for as second there
<clever> this will copy a bunch of bin/foo files, then recursively copy all libs they depend on, and re-patchelf them
<clever> so you get the dyn libs, binaries, and nothing else
<clever> which is better then static, because glibc isnt duplicated
<infinisil> Yeah seems better for keeping it small
<clever> Gilfoyle-: add .serviceConfig.User = "foo"; to its definition
<clever> infinisil: you could also go the insane route
dk_ has quit [Remote host closed the connection]
<clever> infinisil: this is a haskell binary, that runs as pid 1, in the initrd
<infinisil> Hehe could hardcode the whole setup
jgt has joined #nixos
<clever> infinisil: if you re-implement nix, fdisk, mkfs and dhcp in haskell, you could do it with 1 binary :P
<clever> also, have fun re-implementing modprobe, its more complicated then you think
<Gilfoyle-> clever: So would I have to override a service def? This is for the pdns service if it matters
<clever> Gilfoyle-: no need for an override, nixos will automatically merge the definitions
<clever> Gilfoyle-: but the service appears to already support dropping root on its own, after startup
<clever> ah, but thats currently not an option, and it will likely fail to bind to port 53 if you set serviceConfig.User
<Gilfoyle-> clever: I actually want to run it as root
<Gilfoyle-> clever: It's running as nobody which is why I suspect it can't write to the sqlite db file under /var/lib/powerdns/
<clever> Gilfoyle-: the nix expr says it should be running as pdnsd
<Gilfoyle-> Huh... well it's not. Odd...
<clever> Gilfoyle-: what channel are you on?
jgt has quit [Ping timeout: 252 seconds]
rprije has quit [Ping timeout: 268 seconds]
endformationage has quit [Ping timeout: 258 seconds]
<Gilfoyle-> unstable
<Gilfoyle-> Yeah it's setting setuid=nobody
<Gilfoyle-> Isn't a pdns user in passwd either
<clever> Gilfoyle-: what about the config file?
<clever> Gilfoyle-: how did you enable pdns?
randomstranger66 has joined #nixos
drakonis has quit [Quit: WeeChat 2.5]
randomstranger66 has quit [Remote host closed the connection]
<Gilfoyle-> https://paste.rs/UY6 pdns config is there
<Gilfoyle-> As for enabling it, see the other paste.rs link
<clever> Gilfoyle-: that looks nothing like the config nixos generates
<Gilfoyle-> Nope...
<Gilfoyle-> I guess extraConfig is overwriting it...
<clever> extraConfig gets inserted on line 21 of the file i linked
<clever> what was the other paste link? i cant find it
<Gilfoyle-> Oh wait a sec. So we have services.powerdns, and services.pdnsd.
rprije has joined #nixos
<Gilfoyle-> I wonder if they use the same def...
<no-n> ,headers
<clever> Gilfoyle-: powerdns does completely different things, and yes, --setuid=nobody
<Gilfoyle-> That's... odd.
<Gilfoyle-> Why have two overlapping services...
<clever> powerdns runs ${pkgs.powerdns}/bin/pdns_server
<clever> pdns runs ${pdnsd}/bin/pdnsd
<clever> > pdns.meta.description
<{^_^}> undefined variable 'pdns' at (string):262:1
<clever> > pdnsd.meta.description
<{^_^}> "Permanent DNS caching"
<no-n> I am including all the right files according to manpage synopsis but getting implicit function declaration errors for stuff like getaddrinfo and freeaddrinfo
<clever> > powerdns.meta.description
<{^_^}> "Authoritative DNS server"
<clever> > pdnsd.src.urls
<clever> > powerdns.src.urls
<clever> they look to be entirely different programs
<clever> with conflicting names
<Gilfoyle-> Ah.
<clever> > pdns-recursor.meta.description
<{^_^}> "A recursive DNS server"
<clever> isnt helping matters :P
<Gilfoyle-> No, not really. :P
<clever> > pdns-recursor.src.urls
<clever> wut
<Gilfoyle-> haha
<clever> that one is powerdns
<Gilfoyle-> Now the confusion sets in.
<clever> one powerdns is clearly powerdns, the other is pdns
<clever> and then pnsd is not powerdns
<clever> Gilfoyle-: https://nixos.org/nixos/manual/index.html#sec-replace-modules is still your answer
mexisme has joined #nixos
<Gilfoyle-> clever: So just disable it, and import my own local variant then yeah?
<clever> Gilfoyle-: yep
rprije has quit [Ping timeout: 258 seconds]
rprije has joined #nixos
slack1256 has quit [Remote host closed the connection]
mexisme has quit [Ping timeout: 264 seconds]
rprije has quit [Ping timeout: 245 seconds]
rprije has joined #nixos
<Gilfoyle-> Okay that worked, thanks clever.
palo1 has joined #nixos
slack1256 has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
jboy has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
jgt has joined #nixos
slack1256 has quit [Remote host closed the connection]
jgt has quit [Ping timeout: 264 seconds]
jollyjester has joined #nixos
<jollyjester> hello i've just added the nixos-unstable channel and i'm getting the following error: error: unable to download 'http://releases.nixos.org/nixos/19.03': HTTP error 404
<jollyjester> nevermind somehow it got fixed by just removing some channels
jollyjester has quit [Quit: leaving]
jollyjester has joined #nixos
dl4mfo has joined #nixos
<{^_^}> [nixpkgs] @FRidh merged pull request #65775 → ocrmypdf: init → https://git.io/fj9oO
<{^_^}> [nixpkgs] @FRidh pushed 7 commits to master: https://git.io/fjF3m
dl4mfo_ has quit [Ping timeout: 246 seconds]
FRidh has joined #nixos
lyvidev has quit [Quit: Leaving...]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c2742295fb1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jollyjester has quit [Quit: leaving]
dasj19 has joined #nixos
jgt has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « python3Packages.apipkg: disable several tests »: https://git.io/fjF32
jgt has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #66381 → Staging next → https://git.io/fj7nr
<{^_^}> [nixpkgs] @FRidh pushed 177 commits to master: https://git.io/fjF3r
phreedom has quit [Ping timeout: 260 seconds]
ericsagnes has quit [Ping timeout: 252 seconds]
FRidh has quit [Read error: Connection reset by peer]
<nkaretnikov> so i'm still trying to define my custom package set as described here: http://sandervanderburg.blogspot.com/2014/07/managing-private-nix-packages-outside.html in my case, i define an application and a library (two actually, but one of them is a wrapper). and the defined library version is not used by the application. (i checked the used shared library location and ran strings on that to see if my debug prints are
<nkaretnikov> there.) any ideas?
philr_ has joined #nixos
eyJhb is now known as eyJhb
<jackdk> I tend to use overlays for this sort of thing. https://git.sr.ht/~jack/nix-overlay/ works for me but I do not claim that it's idiomatic
wfranzini has quit [Remote host closed the connection]
<nkaretnikov> i don't have the code online yet, but if you want more information: the application is qemu and the libraries are libusb1 and libusb. I just changed the qemu build script to build with usb support and use a local version of libusb (by specifying a location on disk).
wfranzini has joined #nixos
<nkaretnikov> jackdk: i'm aware of that approach. however, i haven't used overlays. i just wanted to make it as painless as possible. the blog post was there, so i went with that
philr has quit [Ping timeout: 272 seconds]
<nkaretnikov> i'd rather not switch to using overlays at this point. i just need to figure out what's wrong. any tips on how to debug this?
iyzsong has joined #nixos
<jackdk> "have you missed a rec?", "show us the code?", "builtins.trace everywhere to see what's being evaluated?" that's all I got
FRidh has joined #nixos
<nkaretnikov> jackdk: look at the last example in the blog post. is there a need for a rec there?
<nkaretnikov> jackdk: i essentially have the same thing (with different inputs, but still close enough)
winem_ has joined #nixos
<nkaretnikov> i'd rather not show the code yet, it's a bit messy and would take time to organize and push.
<nkaretnikov> yeah, i might try the trace thing.
<jackdk> I don't think a rec is required there, but I also have a few things to do this evening, so all I can do is wish you luck from here.
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fjF3b
<nkaretnikov> :) sure, np. thx for the tips!
<{^_^}> [nixpkgs] @aethelz opened pull request #66812 → lazydocker: 0.5.5 -> 0.7 → https://git.io/fjF3N
nek0 has quit [Ping timeout: 250 seconds]
WilliButz has quit [Ping timeout: 244 seconds]
winem_ has quit [Ping timeout: 250 seconds]
WilliButz has joined #nixos
<nkaretnikov> hahaha, i figured it out... tl;dr: i was checking the wrong executable. i was expecting it to appear in my PATH, but turns out i use nix-build, so it was happily sitting in the result directory.
<nkaretnikov> a bit frustrating, but i'm also glad that i don't have to debug the nix build script. so i'll call it a win :)
step21 has quit [Quit: ZNC]
fl0_id has joined #nixos
<{^_^}> [nixpkgs] @aethelz opened pull request #66813 → Update/docui 2.0.0 → https://git.io/fjF3A
jgt has joined #nixos
justanotherchad has quit [Ping timeout: 245 seconds]
jgt has quit [Ping timeout: 252 seconds]
SOO7 has quit [Quit: Quit]
phreedom has joined #nixos
iyzsong has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #66802 → conky: 1.11.3 -> 1.11.5 → https://git.io/fjFqA
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFse
<iqubic> So I'm trying to upgrade my channels, a stable channel, and an unstable channel. The channel update worked, but now the "sudo nixos-rebuild switch" is failing with http://dpaste.com/3YE6SCY
<iqubic> That's just the tail of the error.
iyzsong has joined #nixos
SOO7 has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66798 → calibre: 3.45.2 -> 3.46.0 → https://git.io/fjFqu
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFsv
<iqubic> Can anyone help me out with this?
<{^_^}> [nixpkgs] @mguentner opened pull request #66814 → matrix-synapse: 1.2.1 -> 1.3.1 → https://git.io/fjFsf
<{^_^}> [nixpkgs] @mguentner closed pull request #66677 → matrix-synapse: 1.2.1 -> 1.3.0 → https://git.io/fjdn8
<{^_^}> [nixpkgs] @mmahut merged pull request #66803 → cimg: 2.6.7 -> 2.7.0 → https://git.io/fjFqh
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFsJ
<ivan> iqubic: looks like an incompatibility between spl and linux 5.2.9?
<iqubic> what even is spl?
<ivan> part of zfsonlinux
<iqubic> Ah.
<iqubic> So how can I stop using the latest kernel package right now?
<ivan> remove the boot.kernelPackages option from your config?
liberiga has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66806 → chafa: 1.0.1 -> 1.2.1 → https://git.io/fjFm4
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFsk
<iqubic> can I change this to pin my kernel version to 4.19? boot.kernelPackages = pkgs.linuxPackages_latest;
<{^_^}> [nixpkgs] @mmahut merged pull request #66805 → ccid: 1.4.30 -> 1.4.31 → https://git.io/fjFmL
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFsI
revtintin has joined #nixos
obfusk__ has quit [Quit: No Ping reply in 180 seconds.]
obfusk__ has joined #nixos
<symphorien> iqubic: https://nixos.org/nixos/packages.html#linuxpackages+bcc use the linuxPackages of your liking
<iqubic> I will.
asymptotically has joined #nixos
<adisbladis> symphorien: That's only the stable channel though.
<adisbladis> There is a linuxPackages_4_19 on unstable
<Miyu-chan> How do I allow firewall imperatively?
<Miyu-chan> I ran this:
<Miyu-chan> iptables -A nixos-fw -p tcp --dport 2222 -j nixos-fw-accept
<iqubic> adisbladis: I can pull it from unstable easily.
<adisbladis> iqubic: I know, I was pointing out to symphorien that the website only reflects the stable channel.
<iqubic> WTF is going on here.
o1lo01ol1o has joined #nixos
<iqubic> Uname states that I'm currently running 5.1.21.
<Miyu-chan> Ah. I know why now.
<iqubic> But I can't even use kernel versino 4.19 on account of this: "error: attribute 'spl' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/tasks/filesystems/zfs.nix:31:11"
lambda-11235 has quit [Quit: Bye]
b has quit [Ping timeout: 258 seconds]
jollyjester has joined #nixos
Chiliparrot has joined #nixos
<jollyjester> hey, can someone tell me the default channels that get shown when doing nix-channel --list and sudo nix-channel --list
<jollyjester> i kind of messed up my channels and can't rebuild
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/fjFsZ
<iqubic> jollyjester: That really depends on the system that each individual is running.
<iqubic> There is no set default.
obfusk__ has quit [Ping timeout: 252 seconds]
<iqubic> I have no idea what's going on with the kernel packages right now.
<iqubic> spl is screwing things up.
obfusk__ has joined #nixos
asymptotically2 has joined #nixos
asymptotically2 is now known as asymptotically
asymptotically is now known as Guest91998
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fjFsW
Guest91998 has quit [Remote host closed the connection]
<jollyjester> iqubic: i'm just running the default iso
<jollyjester> that's on the downloads page
<jollyjester> aka 19.03
<jollyjester> or whatever the latest is
<adisbladis> iqubic: Hmm, I think that might be a bug
<adisbladis> spl was merged into zfs proper recently-ish
<adisbladis> Lets see :)
<iqubic> Oh. How can I fix this?
<jollyjester> so what stuff should i have
<jollyjester> in my channels list
<adisbladis> For now you could hack around the issue by setting enableUnstable as decribed in https://nixos.wiki/wiki/NixOS_on_ZFS#Encrypted_ZFS
<adisbladis> Because currently our zfs derivation is the same as zfsUnstable
<adisbladis> But the check that adds spl checks for that flag so it still has _some_ implications
<adisbladis> I'll remove the addition of spl in nixpkgs =)
<iqubic> This is so stupid.
jgt has joined #nixos
<{^_^}> [nixpkgs] @vcunat merged pull request #65948 → tlaplusToolbox: 1.5.7 -> 1.6.0 → https://git.io/fjHlH
<iqubic> It's 2 in the morning. I'll tackle it later.
<jollyjester> ok so uh great
<jollyjester> so what channels am i supposed to add?
<jollyjester> i currently deleted all the channels out of rage, what channels do i need to readd
<jollyjester> from both sudo and normal user
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #65291 → Flatpak updates → https://git.io/fjDTD
<{^_^}> [nixpkgs] @worldofpeace pushed 9 commits to master: https://git.io/fjFsB
ericsagnes has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker closed pull request #28925 → vim module: allow to set global vimrc → https://git.io/v50Dn
o1lo01ol1o has quit [Remote host closed the connection]
<jollyjester> oh come on
<jollyjester> anyone please?
liberiga has quit [Ping timeout: 260 seconds]
sb0 has joined #nixos
<jollyjester> yo sb0
<sb0> hi jollyjester
<jollyjester> ey can you help me with something
<sb0> maybe, go ahead
<jollyjester> can you please run `nix-channel --list` both as normal user and as sudo?
<jollyjester> and tell me the output
<{^_^}> [nixpkgs] @Izorkin opened pull request #66815 → nixUnstable: pre6779_324a5dc9 -> pre6779_f435634a → https://git.io/fjFsu
<srhb> jollyjester: The default is to have the latest stable channel only on root, none on users
<jollyjester> srhb: ok thanks fam
<sb0> jollyjester: as normal user it's only my personal channels, as sudo it's "nixos https://nixos.org/channels/nixos-19.03"
<srhb> jollyjester: At least, that's the case on NixOS.
<jollyjester> srhb: the default stable channel is 19.03?
<srhb> Yes.
<jollyjester> ok thanks
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « python: Werkzeug: 0.15.4 -> 0.15.5 »: https://git.io/fjFsz
<jollyjester> this is it, right?
<jollyjester> this is what i add
<srhb> Yep.
<jollyjester> warning: name collision in input Nix expressions, skipping '/home/eon/.nix-defexpr/channels_root/nixos-19.03'
<jollyjester> error: attribute 'nixos' in selection path 'nixos.xclip' not found
<jollyjester> hmmmmm
<jollyjester> any way to fix this?
<srhb> Did you call it nixos-19.03 instead of nixos?
<jollyjester> uhh yes lol
<jollyjester> oops i guess
<jollyjester> how do i call it nixos?
<jollyjester> i just did nix-channel --add [url]
<jollyjester> with sudo obviously
<srhb> jollyjester: Try nix-channel --help
<jollyjester> yea ok
<jollyjester> makes sense
<jollyjester> yep i think that fixes it
<jollyjester> thanks for all the help
<srhb> Sure thing.
jollyjester has quit [Quit: leaving]
domogled has joined #nixos
<M-Gregoire49> Hello!
<M-Gregoire49> I'm struggling with something I thought would be easy: I'm trying to install https://github.com/domenkozar/hnix-lsp from my NixOS configuration. I could easily clone the repo and import the default.nix file from my config but I'm looking for a way for NixOS to clone the repo for me so I don't have to when starting on a fresh install.
<M-Gregoire49> Is there an easy solution I'm missing?
<{^_^}> [nixpkgs] @vcunat pushed to master « texlive: remove myself from meta.maintainers »: https://git.io/fjFsr
<srhb> M-Gregoire49: pkgs.fetchfromGitHub for instance.
<M-Gregoire49> I can directly use fetchFromGithub in an import?
<srhb> M-Gregoire49: Sure. :)
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to python-unstable: https://git.io/fjFsX
<srhb> M-Gregoire49: It just produces a path, import takes a path as well.
orivej has quit [Ping timeout: 245 seconds]
<M-Gregoire49> Wow, hasn't even crossed my mind ahaha
<M-Gregoire49> Awesome, thank you!
<{^_^}> [nixpkgs] @FRidh merged pull request #54537 → pythonPackages.kconfiglib: init at 10.36.0 → https://git.io/fhwy2
<{^_^}> [nixpkgs] @FRidh pushed commit from @teto to master « python3Packages.Kconfiglib: init at 10.36.0 »: https://git.io/fjFsD
<M-Gregoire49> Oh, side question since I'm looking at LSP servers. I'm looking at the derivations for node packages.
<M-Gregoire49> Any idea?
<M-Gregoire49> I use pkgs.nodePackages.bash-language-server and pkgs.nodePackages.javascript-typescript-langserver
<M-Gregoire49> but for some reason, bash-language-server from the same file (/https://github.com/NixOS/nixpkgs/blob/7d16cd787d70824907d0a311621e6776e35e8f72/pkgs/development/node-packages/node-packages-v10.json#L59) can't be found:
<{^_^}> [nixpkgs] @xrelkd opened pull request #66816 → parity: 2.5.5 -> 2.5.6, parity-beta: 2.6.0 -> 2.6.1 → https://git.io/fjFs9
<adisbladis> M-Gregoire49: Are you on stable or unstable?
o1lo01ol1o has joined #nixos
<M-Gregoire49> stable except for a few packages
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « pythonPackages.pyjwt: remove pytest constraints »: https://git.io/fjFsQ
<M-Gregoire49> Oh
<M-Gregoire49> Not yet in release 19.03
<adisbladis> M-Gregoire49: Right, bash-language-server was only added 3 months ago (so it's only on unstable)
<M-Gregoire49> Thanks a lot, should have checked the release
is_null has quit [Remote host closed the connection]
mexisme has joined #nixos
<{^_^}> [nixpkgs] @Ma27 opened pull request #66817 → kitty: python3 runtime requires ncurses executables → https://git.io/fjFsp
<freeman42x> how can I get ghc802 package installed? it's not available in latest nixpkgs
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « pythonPackages.lz4: 2.1.6 -> 2.1.10 »: https://git.io/fjFGT
<freeman42x> this way is not working anymore: https://discourse.nixos.org/t/new-nur-repo-for-ghc-binaries/2660
mexisme has quit [Ping timeout: 272 seconds]
fusion809 has quit [Remote host closed the connection]
nek0 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<nek0> Hi folks. Is anyone here familiar with deploying to Hetzner via nixops?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
o1lo01ol1o has joined #nixos
<nek0> I have a configuration, that fails at partitioning the discs at the point where they should e encrypted.
<nek0> The exact error message is "blivet.errors.CryptoError: luks_format failed for '/dev/md/root'".
dnlkrgr has joined #nixos
o1lo01ol1o has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
fendor_ has joined #nixos
fendor_ has quit [Remote host closed the connection]
ng0 has joined #nixos
<{^_^}> [nixpkgs] @primeos opened pull request #66818 → [19.03] Security backports for gollum, jekyll, and html-proofer → https://git.io/fjFGG
<dnlkrgr> hey! I'm trying to install nixos and I'm stuck on this step: https://nixos.org/nixos/manual/index.html#sec-installation-partitioning-UEFI. I have a `NVMe SSD` and get a `Warning: The resulting partition is not properly aligned for best performance.` message when creating the swap partition. I tried adding `-a optimal` to all the `parted` commands b
<dnlkrgr> ut the message still shows up. What else could I do there?
<{^_^}> [nixpkgs] @vbgl merged pull request #66467 → ocsigen-start: 1.5.0 -> 1.8.0; ocsigen-toolkit: 2.0.0 -> 2.2.0 → https://git.io/fj77U
<{^_^}> [nixpkgs] @vbgl pushed 3 commits to master: https://git.io/fjFGZ
vika_nezrimaya has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
___laika has joined #nixos
<dnlkrgr> freeman42x, thanks I also found it but I got strange results: https://pastebin.com/ACzn4hzm Does this make sense? Because then I would get a sector number of 0.
<freeman42x> dunno
<{^_^}> [nixpkgs] @markuskowa merged pull request #66732 → armadillo: 9.600.5 -> 9.600.6 → https://git.io/fjdDO
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjFGR
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to python-unstable: https://git.io/fjFG0
___laika has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
klntsky has quit [Remote host closed the connection]
Izorkin has joined #nixos
klntsky has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
thc202 has joined #nixos
pingiun has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to python-unstable « appdaemon: fix build »: https://git.io/fjFGo
<{^_^}> [nixpkgs] @FRidh pushed 34 commits to staging: https://git.io/fjFGi
<{^_^}> [nixpkgs] @FRidh merged pull request #66753 → openblas: 0.3.6 -> 0.3.7 → https://git.io/fjdN6
<{^_^}> [nixpkgs] @FRidh pushed commit from @markuskowa to staging « openblas: 0.3.6 -> 0.3.7 »: https://git.io/fjFGP
<freeman42x> how can I move this configuration.nix part: https://gist.github.com/razvan-panda/1d319eab15060ca419499ce052e0c1b9 into a shell.nix to provide the oldghcs.haskell.compiler.ghc802 package?
__monty__ has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
xelxebar_ has joined #nixos
xelxebar has quit [Ping timeout: 260 seconds]
justanotheruser has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
Xyliton has joined #nixos
dansho has quit [Quit: Leaving]
<__monty__> How can I prevent my laptop from going to sleep because of inactivity? Is the desktop environment responsible for this? Ideally I'd like the display to turn off but definitely not networking because I use this machine remotely.
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @FRidh closed pull request #66678 → pythonPackages.typing: 3.6.6 -> 3.7.4 → https://git.io/fjdn2
mexisme has joined #nixos
<{^_^}> [nixpkgs] @FRidh closed pull request #66465 → Update aws python packages: botocore, boto3, awscli, moto → https://git.io/fj7QS
chloekek has joined #nixos
<{^_^}> [nixpkgs] @FRidh closed pull request #66326 → pythonPackages.pygments: 2.3.1 -> 2.4.2 → https://git.io/fjQj7
orivej has joined #nixos
<{^_^}> [nixpkgs] @FRidh closed pull request #66150 → pythonPackages.nipype: 1.1.9 -> 1.2.0 → https://git.io/fjQLe
<Xyliton> I tried changing my binary cache to the "fixed" fastly one but nixos-rebuild still attempts to fetch stuff from cache.nixos.org and fails to download some packages because of a timeout. How should I proceed; right now I can't update my system at all :/
<{^_^}> [nixpkgs] @FRidh closed pull request #51474 → kdeconnect: init module → https://git.io/fpiTP
<{^_^}> [nixpkgs] @FRidh merged pull request #65946 → kdeconnect: 1.3.4 -> 1.3.5 → https://git.io/fjHln
<{^_^}> [nixpkgs] @FRidh pushed commit from @r-ryantm to master « kdeconnect: 1.3.4 -> 1.3.5 »: https://git.io/fjFGF
<__monty__> freeman42x: Hmm, slim doesn't seem to have an autoSuspend configuration option.
<{^_^}> [nixpkgs] @FRidh closed pull request #65739 → pythonPackages.py: 1.7.0 -> 1.8.0 → https://git.io/fj90q
lord| has quit [Read error: Connection reset by peer]
mexisme has quit [Ping timeout: 264 seconds]
<__monty__> Oh, the gdm option isn't in the manual either.
noudle has joined #nixos
<__monty__> Ok, looking at the code there is an option for gdm added two weeks ago but nothing for other displaymanagers.
fendor has joined #nixos
<Xyliton> Looks like the timeouts are happening for mono 5.20.1.27 and possibly rustc
<marek> is there a way to have a derivation that is always taking up master of a git repository and ignoring the sha256? kinda like a proxy? we have a QA that wants to install always latest software from a specific github repo, regenerating it at each commit is an option, but would like something more transparent
<{^_^}> [nixpkgs] @adisbladis opened pull request #66819 → emacs-packages: Make elpa & org package sets overrideable → https://git.io/fjFZJ
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<__monty__> marek: builtins.fetchGit can be used impurely, example 15.6 here: https://nixos.org/nix/manual/#ssec-builtins
ixxie has joined #nixos
jgt has joined #nixos
m0rphism has joined #nixos
<pie_> can I somehow add wrapGAppsHook to a writeShellScriptBin?
jgt has quit [Ping timeout: 252 seconds]
<Miyu-chan> wrapGAppsHook?
<Miyu-chan> And I'm guessing somewhere around "no."
<Miyu-chan> The internal function of writeShellScriptBin directly interacts with `derivation` mechanics than `mkDerivation`.
ris has joined #nixos
<Miyu-chan> Oh, hm. It still interacts with mkDerivation, actually.
<Miyu-chan> inherit name buildCommand;
<Miyu-chan> But IIRC, the default buildCommand is what runs the hooks.
<pie_> once again i wish trivial-builders.nix functions took a ... argument
<Miyu-chan> Oh wait.
<Miyu-chan> OH.
<Miyu-chan> Seems like hooks are not run under genericBuild.
<Miyu-chan> So it might actually work.
<pie_> all those things use runCommand
<Miyu-chan> Yeah, and runCommand uses `buildCommand`
<pie_> why is genericbuilder relevant?
fendor_ has joined #nixos
<pie_> i mean i know the hooks get run though there somewhee
<pie_> oh, is buildcommand replacing that??
<Miyu-chan> Just a misunderstanding. I thought that hooks are run under genericBuild.
<pie_> s/??/?
<Miyu-chan> But it's actually run when you source setup.sh.
<Miyu-chan> I think?
<pie_> hm. wonder if i can .overrideAttr in the hook
dnlkrgr has quit [Remote host closed the connection]
<pie_> the nativeBuildInputs rather
<Miyu-chan> Yeah, you're actually safe. setup hooks do not care what the buildCommand is.
<pie_> (didnt think of using overrides to do extra stuff with these functions until just now)
<Miyu-chan> My mistake ; ;
* pie_ pats Miyu-chan
fendor has quit [Ping timeout: 245 seconds]
jollyjester has joined #nixos
<jollyjester> yo, can anyone help me find a manual page for compiling custom packages?
<jollyjester> for example i want pdf without pdf support (mupdf)
<jollyjester> how can i do that?
<Miyu-chan> A bit more funsies are here, if you're interested. https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/make-derivation.nix#L199-L200
<Miyu-chan> The TL;DR is that a derivation is built using `bash -e default-builder.sh`.
<pie_> jollyjester: how much do you know
<pie_> jollyjester: you want to write a nix expression that overrides argument or mkDerivation attributes, depending on how the package is constructed, and then you either want to nix-build / nix-env it, or use it in your expression that wants it as an input
<pie_> damn, still crashing
<pie_> ./result/bin/wikidpad: line 3: 1204 Trace/breakpoint trap /nix/store/1cy5kgmirql14hv09v3cwssvm7y8p0hy-python3-3.7.4-env/bin/python /nix/store/ky9q90ccg6iwvbs468v1i88abg4ms2rw-source/WikidPad.py
<pie_> (WikidPad.py:1204): GLib-GIO-ERROR **: 12:37:40.765: No GSettings schemas are installed on the system
<pie_> Miyu-chan: i imagine just because i added the hook, my launcher script isnt magically going to work
<jollyjester> pie_: can you just link me the manual page on it
<jollyjester> so i can look into it
<Miyu-chan> Can I see the expression?
<pie_> jollyjester: well, its not /one/ manual page (well it is, its just a very big manual)
<jollyjester> pie_: just tell me what i can do, i usually nix-env -iA packages to install them
<jollyjester> i'm also new to nixos
<jollyjester> i have a lot of experience with gentoo and use flags are easy
<jollyjester> i want to do kind of the same thing but on nixos
<jollyjester> it's possible after all
<Miyu-chan> Ah. Hm.
* pie_ ponders that we really need a better newbie onboarding process, or pie_ isnt aware of it
<{^_^}> [nixpkgs] @ehmry opened pull request #66821 → irssi: build bundled OTR plug-in and remove "irssi-otr" package → https://git.io/fjFZG
ericsagnes has quit [Ping timeout: 252 seconds]
<pie_> jollyjester: how do you want to use the build that doesnt have pdf support
<pie_> jollyjester: you want this with nix-env?
<jollyjester> pie_: yea i guess, i don't add stuff in configuration.nix much i just install it manually
<jollyjester> (even though that's kind of against nixos's philosophy)
<pie_> jollyjester: thats fine, do you know anyhting about overlays
<jollyjester> uh yea i know that they're used to make your own packages
<jollyjester> and they're available on the nixpkgs github
<pie_> its more about applying them nicely
Ariakenom has joined #nixos
MarcWeber has quit [Ping timeout: 245 seconds]
<pie_> jollyjester: i would use the directory method here https://nixos.wiki/wiki/Overlays#On_the_user_level
<pie_> an overlay is "just" a two nested functions: `self: super: {...stuffgoeshere...}`
<pie_> that replaces in the result (overrides ) - attributes of the top level pkgs set
<pie_> so in the {} you would put your new package definition for mupdg
Shouou has joined #nixos
o1lo01ol1o has joined #nixos
<pie_> you need to figure out what needs to be changed so that it works the way you want
alex`` has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 115 commits to staging-next: https://git.io/fjFZ4
<jollyjester> pie_: you should've mentioned that the question marks are things that can be enabled or disabled at compile time in the config
<jollyjester> but how can i add them, i don't get that manual page
<pie_> they are config options
<{^_^}> [nixpkgs] @FRidh opened pull request #66822 → Staging next → https://git.io/fjFZB
<pie_> *arent config options
<jollyjester> pie_: can you please tell me how i can set them true or false in the config?
<pie_> those are function arguments, the things to the right of the question mark are default values
<pie_> you dont, you use thing.override { somearg = somethingelse; }
<pie_> to replace the package
<pie_> but you do that as i said above, in the overlay
<pie_> do you know anything about programming with immutable variables
<pie_> Miyu-chan: so yeah im open to suggestions :V
<jollyjester> uh not much, i'll try to look into what you sent me
<__monty__> Does nixos do any systemd setup or something to suspend the computer after a certain amount of inactivity?
<pie_> jollyjester: create a file in the overlays directory that has self: super: { ...stuff.,, } in it
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<jollyjester> pie_: ok done
<pie_> jollyjester: how do you disable the thing you want to disable
<{^_^}> [nixpkgs] @adisbladis pushed 6 commits to master: https://git.io/fjFZz
<{^_^}> [nixpkgs] @adisbladis merged pull request #66819 → emacs-packages: Make elpa & org package sets overrideable → https://git.io/fjFZJ
<pie_> i mean, normally, with nix not involved
<jollyjester> useMupdf
dnlkrgr has joined #nixos
<jollyjester> i want to disable that
<Miyu-chan> I kinda don't have any idea at this point TBH.
<Miyu-chan> Why not buildPython for this?
<pie_> jollyjester: ah. ok thats different. (i dont think I knew we can do that actually >.> )
<__monty__> jollyjester: You prefer poppler over mupdf? What drugs are you on?
<{^_^}> [nixpkgs] @FRidh pushed 156 commits to staging-next: https://git.io/fjFZa
<pie_> jollyjester: there seems to be a ~/.nixpkgs/config.nix file that you can set those options in
<jollyjester> pie_: i'm using home-manager and the only file i have in there is home.nix
<{^_^}> [nixpkgs] @FRidh pushed 158 commits to staging: https://git.io/fjFZV
<pie_> ah. well this _seems_ to behave like configuration.nix so have you tried just setting the option?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9defd3e3e39 (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<pie_> im not quite sure how homemanager works
ericsagnes has joined #nixos
<pie_> Miyu-chan: no idea what buildpython does
* pie_ goes to check
<Miyu-chan> I think it's called buildPythonPackage
<jollyjester> pie_: what option should i set
<jollyjester> i don't recall
<freeman42x> I installed the library libpqxx but I am still getting the error: fatal error: libpq-fe.h: No such file or directory. Any ideas how I can fix this?
<__monty__> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<pie_> Miyu-chan: i only know buildpythonpackage and buildpythonapplication, ah yeah.
<pie_> Miyu-chan: the "problem" is those expect setuptools or something, i just need to run the py file
<jollyjester> pie_: i meant what do i put in the config file?
<pie_> zathura.usemupdf = false; ?
<pie_> im just making a wild guess here
<jollyjester> hmmmm
<jollyjester> wasn't there a search "engine" for options
<jollyjester> i checked, no zathura options on it
<jollyjester> hmm
<pie_> the question is how homemanager passes that
<pie_> i dont know
<pie_> there's a #home-manager channel btw
<jollyjester> ok
<__monty__> Have you tried simply setting zathura.useMupdf? At the top-level of your home.nix?
<pie_> looks like you should be able to use that option
<{^_^}> [nixpkgs] @FRidh pushed to staging-next « icestorm: fix eval »: https://git.io/fjFZw
<{^_^}> [nixpkgs] @FRidh pushed to staging « icestorm: fix eval »: https://git.io/fjFZr
<pie_> options.nixpkgs = { zathura.useMuPdf = false; }; or something like that. and this /does/ make more sense than homemanager just implicitly passing on extra config options
<__monty__> jollyjester: Why do you prefer poppler btw? Mupdf is faster and produces higher quality output in my experience.
<pie_> Miyu-chan: so yeah i guess i just need this hook to run. question is why the hook isnt running (presumably(
<{^_^}> [nixpkgs] @rasendubi opened pull request #66824 → jetbrains.mps: init at 2019.1.5 → https://git.io/fjFZ1
gentauro has joined #nixos
ericsagnes has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
<dasj19> hello nixos, I am a nixos beginner and I try to do some customization.. for example adding a custom keyboard layout, I ended up here: https://github.com/NixOS/nixpkgs/pull/47764 and would like to help fix the issue... but in order to test my theory I have to modify a file from the xkeyboard-config-2.27 package.
<{^_^}> #47764 (by rnhmjoj, 45 weeks ago, merged): nixos/xserver: add option to install custom xkb layouts
<dasj19> how would I go about modifing a file from a package (just for the test sake) ? I know this is something against nixos ideology
<{^_^}> [nixpkgs] @flokli opened pull request #66825 → nixosTests.systemd: remove duplicate copypasta → https://git.io/fjFZy
dnlkrgr has quit [Remote host closed the connection]
ottidmes has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
ng0 has quit [Remote host closed the connection]
ng0 has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
hmpffff has joined #nixos
<freeman42x> dasj19, "modifing a file from a package" could you give a concrete example?
<dasj19> freeman42x: yes.. I would like to change this file on my system: /var/run/booted-system/sw/share/X11/xkb/rules/evdev.lst
smakarov has joined #nixos
boxscape has joined #nixos
<pie_> Miyu-chan: well i uhh...managed to bludgeon it into working https://bpaste.net/show/2z3v
<pie_> not really happy with that lol
<freeman42x> dasj19, is that file generated as part of some nix package installation?
bakakuna has joined #nixos
ericsagnes has joined #nixos
gentauro has quit [Ping timeout: 272 seconds]
<dasj19> freeman42x: yes... look at the last post from https://github.com/NixOS/nixpkgs/pull/47764 where I reported the issue.... the package would be xkeyboard-config-2.27
<{^_^}> #47764 (by rnhmjoj, 45 weeks ago, merged): nixos/xserver: add option to install custom xkb layouts
ehmry has joined #nixos
<freeman42x> dasj19, could you check if mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.27.tar.bz2 contains your file?
gentauro has joined #nixos
<pie_> Miyu-chan: you seem have been correct somehow though
<{^_^}> [nixpkgs] @adisbladis closed pull request #61142 → treewide: Make all usage of python2Packages explicit → https://git.io/fjcyI
<pie_> fixupPhase doesnt seem to run for example
<pie_> not sure why yet
dnlkrgr has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c2742295fb1 (from 8 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<dasj19> freeman42x: I have checked the tagged xkeyboard-config-2.27 from https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-2.27/xkeyboard-config-xkeyboard-config-2.27.tar.bz2 . it does not contain it... but I believe it gets created at compile time
<dasj19> freeman42x: I don't know how to resolve the mirror:// address
<freeman42x> dasj19, ugh, I don't know how to resolve mirror protocol either :/
<dasj19> freeman42x: I followed the link pie_ mentioned and ended up here: https://xorg.freedesktop.org/releases/individual/data/xkeyboard-config/
dnlkrgr has quit [Remote host closed the connection]
<{^_^}> #66826 (by deliciouslytyped, 9 seconds ago, open): support phases with buildCommand?
<freeman42x> dasj19, is "xkeyboard-config-2.27.tar.bz2" cached in /nix/store/* by any chance?
<{^_^}> [nixpkgs] @FRidh pushed commit from tbenst to master « python: wxPython: init at 4.0.6 »: https://git.io/fjFnJ
<freeman42x> dasj19, nvm, seems good. Can you download the tar from there and see if it contains your file?
<{^_^}> [nixpkgs] @FRidh closed pull request #64047 → python: wxPython: init at 4.0.6 → https://git.io/fjKBA
smakarov has quit [Remote host closed the connection]
<dasj19> freeman42x: there is no evdev.lst file in that package
gentauro has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @FRidh pushed to python3 « Temporarily set python = python3; to identify what would break »: https://git.io/fjFnL
<freeman42x> dasj19, :/ damn
<dasj19> freeman42x: I think that specifically that file gets created at compile time
shibboleth has joined #nixos
<freeman42x> dasj19, but is it created at compile time based on code from that tar file? or from which code?
chloekek has quit [Ping timeout: 246 seconds]
<dasj19> freeeman42x: I am pretty sure that it is the tar of xkeyboard-config-2.27
<dasj19> I'll search for the configuration.nix code that triggers it
revtintin has quit [Quit: WeeChat 1.9.1]
<gchristensen> would anybody like to be in the first group of maintainers to join the Nixpgks Maintainers group?
<freeman42x> dasj19, extract everything from that tar file. Open the folder with your favorite editor/IDE. Search in project for "evdev.lst". There are 4 usages. Then figure out how to control how it is generated
<gchristensen> or, would anyone like to nominate somebody?
<{^_^}> [nixpkgs] @flokli merged pull request #66725 → stdenv: add isELFExec, isELFDyn, fix wrappers → https://git.io/fjdPH
<{^_^}> [nixpkgs] @flokli pushed 3 commits to staging: https://git.io/fjFnY
<dasj19> okay freeman42x: what would be the step after that
<tilpner> gchristensen: You should probably detail what that is, what the requirements and responsibilities are
<gchristensen> good thinking.
<freeman42x> dasj19, the step after what?
<tilpner> gchristensen: AFAICT it's putting everyone from maintainer-list.nix into a GitHub organisation team with Triage permissions, which allow applying labels and closing, label-ing, and re-opening issues?
<gchristensen> tilpner: not yet, but almost
<dasj19> freeman42x: let's say I'll figure out how the file it's generated... then I guess I can hardcode my modification in it
<freeman42x> dasj19, yes
<dasj19> okay freeman42x... thanks for your support
<freeman42x> dasj19, your welcome. are you sure you don't have any other question?
<ehmry> gchristensen: I would volunteer, I used to be a maintainer but resigned from the github group, but I'm still in maintainer-list.nix and would like to help deal with PRs again
<freeman42x> gchristensen, I would volunteer as long as that just implies me contributing when I actually require that for my own goals (づ ̄ 3 ̄)づ
<dasj19> freeman42x: I guess I have a lot of questions but I would not bother you with them... as I said I just started recently with nixos and I am still figuring my way around... so I'll just ask here in the open if something is unclear...
Soo_Slow has joined #nixos
<dasj19> freeman42x: I noticed that nix kinda forces you to deal with the source of the problem instead of hacking your way around.... initially I just wanted to patch that file to see if it works... but apparently it is not allowed
<{^_^}> [nixpkgs] @flokli merged pull request #66621 → gitlab-ce: 12.0.3 -> 12.1.6 → https://git.io/fj5Nb
<{^_^}> [nixpkgs] @flokli pushed 6 commits to master: https://git.io/fjFnG
jgt has joined #nixos
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
vesper11 has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66779 → bird2: 2.0.4 -> 2.0.5 → https://git.io/fjFI3
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFn4
<{^_^}> [nixpkgs] @mmahut merged pull request #66676 → grafana: 6.3.2 -> 6.3.3 → https://git.io/fjdGA
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFnB
vesper has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
vesper11 has quit [Ping timeout: 245 seconds]
npmccallum has joined #nixos
Xyliton has quit [Quit: Lost terminal]
alex`` has quit [Ping timeout: 268 seconds]
alex`` has joined #nixos
nek0 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
rprije has quit [Ping timeout: 245 seconds]
<alexarice[m]> Is it possible to use a package in a derivation by directly referencing it's store path
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<__monty__> Only if there's a default.nix/*.nix there I think.
<__monty__> Why do you want to do this? Sounds brittle.
alex`` has quit [Ping timeout: 258 seconds]
<alexarice[m]> I want to run a test on a library created with nix-review
<alexarice[m]> looking more for a hack
alex`` has joined #nixos
jgt has joined #nixos
<andi-> just import the nixpkgs revision that you did review and pick the package from there?
realrokka has joined #nixos
<alexarice[m]> I just found that the nixpkgs revision is included in the results so I think I can just use that
jgt has quit [Ping timeout: 264 seconds]
Ariakenom has quit [Quit: Leaving]
chloekek has joined #nixos
jgt has joined #nixos
noudle has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @jD91mZM2 opened pull request #66828 → multimc: 0.6.6 -> 0.6.7 → https://git.io/fjFnj
b has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
dan94 has joined #nixos
dan94 has quit [Remote host closed the connection]
xkapastel has joined #nixos
Shouou has quit [Ping timeout: 252 seconds]
noudle has joined #nixos
mexisme has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<__monty__> ,locate bin pod2man
gentauro has joined #nixos
gentauro has quit [Client Quit]
gentauro has joined #nixos
<tilpner> __monty__: perldevel
<eyJhb> What would be the easiest waym
<asymmetric> what's the point of having the "rec" keyword, instead of making all attrsets recursively accessible by default?
<asymmetric> is there e.g. a performance penalty in using it?
<eyJhb> Damn it.. Way, of adding a user which home directory is owned by root? I need to do some openssh chrootdirectory, but that requires the dir to be owned by root
<tilpner> Or perl528Packages.perl.out, maybe
<__monty__> tilpner: {^_^} did respond in a query : ) perl has it too btw. (I assumed that's smaller than perldevel.)
asymmetric has quit [Quit: Peace.]
<tilpner> __monty__: Seems to be just newer
<{^_^}> [nixpkgs] @parisni opened pull request #66829 → vimPlugins: update; add readline.vim → https://git.io/fjFcW
<tilpner> eyJhb: Perhaps home = ...; createHome = false; and then use systemd tmpfiles or a preStart to set permissions?
o1lo01ol1o has joined #nixos
<eyJhb> tilpner: considering creating a `/backup-jail`, and then chown root, but yeah, some systemd might be needed
<eyJhb> But maybe my way of doing backups is flawed? And there is a easier/better way
<tilpner> I'll need more context to tell what you're doing, and even more to say if that makes for a good backup
<eyJhb> Currently server X copies files to dir Y, tar.gz that dir and encrypts it then uploads it with sftp/rssh to a qurantined dir (it only has access to a directory with its own backups on the server). Then each day the server the backups is hosted on runs a crontab to remove backups from the qurantine area, and puts them into a final backup directory
<eyJhb> Where I use rotate-backups to clean out old backups. Basically, it is fairly safe as it, if a server gets compromised
earldouglas has joined #nixos
<tilpner> Oh, so push-mode backups without fewer disadvantages compared to pull-mode. Nice
<tilpner> *with fewer
<eyJhb> Yeah, as if my main server is compromised => no access to all the servers. And if a server is compromised, then only sftp/rssh access to a single directory..
<eyJhb> Kinda like this setup, but it currently relies on Docker.. :(
o1lo01ol1o has quit [Ping timeout: 258 seconds]
asymmetric has joined #nixos
<tilpner> asymmetric: Sometimes you don't want recursive access, makes the file easier to read
gentauro has quit [Ping timeout: 245 seconds]
<eyJhb> "makes the file easier to read"?
earldouglas has left #nixos [#nixos]
<tilpner> Yes, consider: args: let ... in { ... foo = bar; ... } vs args: let ... in rec { ... foo = bar; ... }
<tilpner> In the first one, I only need to search the let block and args, while in the second one I need to consider the parts of the set that came before *and* then ones that come after foo
<eyJhb> tilpner: oh. When you said asymmetric , I thought of encryption and was hopeless in seeing how it played in with what we just talked about :p
<tilpner> Not everyone has randomly generated nicks like you :)
<tilpner> Or base64 of something
<eyJhb> Hey! It is not random, we had a long discussion about it once.. :p
<tilpner> I only vaguely remember JWT something
<__monty__> It's not an acronym for that icelandic volcano?
<eyJhb> Yeah, basically. First part of `{"alg":` base64 encoded :p But if you knew my full name tilpner , it would make sense as well
jgt has joined #nixos
<__monty__> Yep.
<eyJhb> Ahh, not intended with `ey` from there. But I would assume talyz and etu could make sense of my username now
<eyJhb> Anyways, tilpner did you have any ideas/suggestions for changes/how to implement? Thinking of just running Docker until I find another way
<{^_^}> [systemd] @andir pushed 8 commits to nixos-v239: https://git.io/fjFci
<aveltras> anyone encountered the error "XXX is not allowed to refer to a store path" while trying to use haskell developPackage function with nix-gitignore ? like this
b has quit [Quit: leaving]
<tilpner> eyJhb: It's unclear to me what part you want to implement/improve. You're probably not looking for "build a server that does quarantine per backup job instead of giving sftp access"
<tilpner> And even that would be a questionable suggestion
jgt has quit [Ping timeout: 264 seconds]
b has joined #nixos
<eyJhb> tilpner: well basically, I would want a similar setup as I currently have with Debian/Docker on NixOS, but without that much Docker
<eyJhb> So basically a single SFTP user which only has access to a single dir
<tilpner> You haven't said yet how you use Docker
<eyJhb> I use Docker to jail it to only have access to X directory on the host system
<{^_^}> [nixpkgs] @fgaz opened pull request #66830 → tclreadline: init at 2.3.6 → https://git.io/fjFcM
<freeman42x> I don't have any stack set up as part of the shell.nix
<tilpner> Paste your shell.nix just to be sure
<simpson> freeman42x: $(which stack) and $(readlink $(which stack)) can help you be sure.
<freeman42x> simpson, those commands either print documentation or nothing respectively
<freeman42x> tilpner, https://i.imgur.com/3qY8PHk.png
<tilpner> eyJhb: You seemed to have a plan with openssh, and I gave a suggestion on how you might add a jail directory (systemd.tmpfiles.rules). I haven't implemented a system like you're describing though
<__monty__> build*Stack*Project?
<tilpner> I'd imagine buildStackProject somehow makes a version of stack available
<__monty__> How does that not involve *any* stack setup?
<simpson> freeman42x: That's deeply unfortunate. If your system's healthy, then you'll see something like https://bpaste.net/show/QGNA
<tilpner> freeman42x: Unrelated: you don't need those parentheses, "with import <nixpkgs> {};" works too
<freeman42x> scratches head: https://i.imgur.com/yAr1XSk.png
<freeman42x> seems to be added by nix-shell... somehow, dunno why
<__monty__> simpson, freeman42x: Maybe he's confusing your outer $() markup for subshell syntax?
<freeman42x> simpson, oh lol. I thought you wanted me to run exactly: $(which stack) and $(readlink $(which stack))
<simpson> freeman42x: Nix will try to make it hard to GC something in memory.
<__monty__> simpson: This is a case where markdown `is clearer` ; )
<simpson> freeman42x: Oh my. Sorry; I won't ask you to run shell stuff anymore. If you don't know what a shell command will do, then don't do it; repasting random shell commands from people you don't know on IRC is extremely dangerous.
<freeman42x> simpson, lol
<eyJhb> $(rm -rf /)
<freeman42x> simpson, I know how to use which and stack, the only thing I did not know is readlink which sound safe, and why you surrouned stuff with $(...)
<__monty__> simpson: Tbf, someone could be familiar enough with shell to evaluate whether or not to run something but not familiar enough with your confusing (at least for shell) markup convention.
<eyJhb> tilpner: I will look into it, but never used systemd.tmpfiles before... No clue how to use it
<simpson> __monty__: $() is the portable way to do subshells. If that's too confusing, then I can simply not give people shell snippets. It's not really as much of a problem as you think it is.
<__monty__> But the extra $() runs whatever the command returns as a command?
<__monty__> People can be forgiven for blindly copying subshell syntax.
<freeman42x> readlink $(which stack) still prints nothing
<simpson> __monty__: Please stop trying to bargain with me on behalf of syntax. Nobody has done anything wrong yet and there is nothing that needs to be forgiven.
<freeman42x> __monty__, yeah, like stuff like "blindly copying subshell syntax" would obviously thrash my NixOS VM, and I could not fix that
<simpson> freeman42x: Then perhaps it's not a symlink. There's no magic answer here; the correct Stack executable is the one that has the behavior that you expect.
<freeman42x> simpson, yeah, but why and how does nix-shell install stack?
<__monty__> freeman42x: Because you're using buildStackProject.
<pie_> oh neat, apparently this is a thing https://docs.python.org/3/library/trace.html
<__monty__> nix-shell will provide the environment used to build your project and presumably for a stack project that'd include stack.
<freeman42x> __monty__, what is buildStackProject? where is that defined?
Ariakenom has joined #nixos
<freeman42x> __monty__, so nix-shell is hardcoded to look for stack information in the project?
<__monty__> simpson: All I was trying to say is $() makes for unnecessary confusion when quoting shell. It's fine for most other languages. I figured you might value clear communication.
orivej has quit [Ping timeout: 258 seconds]
<__monty__> freeman42x: Not at all, you use it in the nix file you put on imgur.
<simpson> __monty__: Yes, I do value clear communication, which is why I'm willing to put down the confusing quotes. I'm not sure what kind of concession you're looking to extract from me, but if you haven't gotten it yet, you're not going to get it.
<freeman42x> __monty__, omg lol, I totally missed that, cheers
<freeman42x> how do I get this line to point at unstable or... at the last commit on master? with import (fetchTarball https://github.com/NixOS/nixpkgs/archive/83b35508c6491103cd16a796758e07417a28698b.tar.gz) {};
FRidh has quit [Quit: Konversation terminated!]
<__monty__> simpson: Great, I didn't get that from "Oh my. Sorry; I won't ask you to run shell stuff anymore..." Which came across as rather passive aggressive. Enough said though, I'll leave it at this.
<__monty__> freeman42x: Presumably that's a hash for a branch. Maybe a tag like master'll just work.
inkbottle has joined #nixos
<freeman42x> __monty__, my remark was in reply to simpson who treated me a bit like an idiot, even though it was pretty obvious the commands were safe and I was running stuff in a VM as a normal user: "Oh my. Sorry; I won't ask you to run shell stuff anymore. If you don't know what a shell command will do, then don't do it; repasting random shell commands from people you don't know on IRC is extremely dangerous."
<freeman42x> __monty__, so no passive aggresivity here!
<freeman42x> __monty__, yeah, you are right, using master works, but I guess I should use a fixed commit for reproductibility
<__monty__> freeman42x: Maybe reread the convo. I was telling simpson off on your behalf.
<simpson> __monty__: Waste more words~
<freeman42x> __monty__, look, it is fine, no hard feelings and I do not want too argue. It just leaves a bad taste when other people dismiss other peoples intelligence without proper consideration
<__monty__> simpson: My pleasure. I'm not sure why you got offended. Everything up to the markdown command was me trying to help and that comment was in jest.
<__monty__> *comment
<{^_^}> [nixpkgs] @AluisioASG opened pull request #66831 → [19.03] libreoffice-fresh: 6.2.1.2 -> 6.2.6.2 → https://git.io/fjFCk
<simpson> freeman42x: You skipped straight over tilpner's correct diagnosis of your issue, and also decided that my attempt to help you was somehow some sort of gotcha or gimmick.
<__monty__> freeman42x: I'm confused, I'm not arguing you and I did not dismiss anyone's intelligence, or is this a passive aggressive comment directed at simpson?
<simpson> I don't think that you're an idiot, nor am I treating you as such.
<{^_^}> [nixpkgs] @danbst merged pull request #55115 → elasticsearch: add example on how to use plugins → https://git.io/fhSuj
<{^_^}> [nixpkgs] @danbst pushed to master « elasticsearch: add example on how to use plugins (#55115) »: https://git.io/fjFCL
<pie_> clever: you might find this useful at some point: apparently this is a thing https://docs.python.org/3/library/trace.html , i do recommend the --ignore-dir flag. (e.g. https://pymotw.com/3/trace/ )
<hyperfekt> freeman42x: I know you can do it via github, but not how you can get it from nixos.org: https://codeload.github.com/NixOS/nixpkgs-channels/legacy.tar.gz/nixpkgs-unstable
<freeman42x> __monty__, I'm not upset on you at all, I'm grateful for your help. I was just saying simpson could have been a bit nicer. Anyway, don't want to drag this
<simpson> freeman42x: No, I can't. If the issue is about my emotions rather than about my legibility on IRC, then there's only one solution.
simpson has left #nixos ["WeeChat 1.0.1"]
<freeman42x> simpson, I did not skip his diagnosis lol, and no: "also decided that my attempt to help you was somehow some sort of gotcha or gimmick." just stop please. I DO NOT WANT TO ARGUE.
<__monty__> hyperfekt: What is this codeload? Haven't seen this in github urls before.
<{^_^}> [nixpkgs] @mmahut merged pull request #66800 → cutemaze: 1.2.4 -> 1.2.5 → https://git.io/fjFq1
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFCq
<freeman42x> hyperfekt, oh, that is awesome
<hyperfekt> __monty__: Me neither, but it's where you get redirected when you go to github.com/project/repo/tarball
<hyperfekt> freeman42x: I'm unsure if Hydra checks for channel advance success too, but if so you could use this: https://hydra.nixos.org/job/nixpkgs/trunk/tarball/latest/download-by-type/file/source-dist
<freeman42x> how often is unstable released? I assume it's not just the latest commit always
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFCY
<{^_^}> [nixpkgs] @mmahut merged pull request #66757 → xmrig: 2.14.4 -> 3.0.0 → https://git.io/fjdjX
<__monty__> ,howoldis freeman42x
<freeman42x> __monty__, so is it a few days ago in average?
<__monty__> It can be months.
<freeman42x> oh... ok, that's a lot
<__monty__> I don't have any stats.
<__monty__> I was exaggerating but it was a couple weeks recently.
<freeman42x> anyway, I guess since this is for the shell.nix for a project I would want to use some version that is unchanging, like a git commit version
<hyperfekt> __monty__: Really? for nixpkgs, not nixos? I've never seen that :o
<{^_^}> [nixpkgs] @primeos merged pull request #66818 → [19.03] Security backports for gollum, jekyll, and html-proofer → https://git.io/fjFGG
<{^_^}> [nixpkgs] @primeos pushed 7 commits to release-19.03: https://git.io/fjFCG
<__monty__> hyperfekt: If my memory's not failing me.
<hyperfekt> freeman42x: github.com/nixos/nixpkgs/tarball/<rev>
<{^_^}> [nixpkgs] @mmahut merged pull request #66513 → looking-glass-client: a12 -> B1 → https://git.io/fj5TP
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFCc
<hyperfekt> freeman42x: There's other ways too, see https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
bakakuna has joined #nixos
o1lo01ol1o has joined #nixos
<tilpner> Stats for channel advancement: https://channels.nix.gsc.io/graph.html
<__monty__> tilpner saves the day again : )
<__monty__> tilpner++
<{^_^}> tilpner's karma got increased to 36
<hyperfekt> I knew there had to be something like this amongst Graham's stuff :D There just 0 SEO for that site, I'm glad whenever I remember the Hound URL.
<tilpner> No no, that's grahams site
<tilpner> tilpner++
<{^_^}> tilpner's karma got decreased to 35
<tilpner> ,codesearch
<{^_^}> tilpner: Did you mean configsearch?
<{^_^}> To search public NixOS/Nixpkgs/NixOps configs, use https://search.tx0.co (Ping ${"til" + "pner"} if it acts up again)
<tilpner> No, I did not
<__monty__> But you linked it, take the karma dammit! tilpner++ gchristensen++
<{^_^}> gchristensen's karma got increased to 142, tilpner's karma got increased to 36
<tilpner> ,nixossearch
<{^_^}> To search the GitHub repos nixos/*, use https://search.nix.gsc.io
gxt has joined #nixos
bakakuna has quit [Ping timeout: 245 seconds]
<hyperfekt> Oh what! That config search is extremely awesome though! How is the set of repos determined?
<{^_^}> [nixpkgs] @mmahut merged pull request #66358 → openxr-loader: init at 1.0.1 → https://git.io/fj7mJ
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFC4
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<asymmetric> infinisil++ for help with nixos modules :)
<{^_^}> infinisil's karma got increased to 123
<pie_> oh neat
<infinisil> :D
<pie_> man i could really use pyrasite right now but i really dont feel like packaging another python package
<{^_^}> [nixpkgs] @mmahut merged pull request #65892 → couchdb2: 2.3.0 -> 2.3.1 → https://git.io/fjHtW
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFCu
<freeman42x> oh, this is cool! have my energy for helping me hyperfekt++ __monty__++ つ ◕_◕ ༽つ
<{^_^}> __monty__'s karma got increased to 7, hyperfekt's karma got increased to 2
<{^_^}> [nixpkgs] @danbst closed pull request #57091 → lib: introduce `foreach`, `combined` and `combined map` idioms → https://git.io/fhhcE
<asymmetric> tilpner: does the search include people’s configs from that wiki page?
<asymmetric> Or did I misunderstand
<hyperfekt> I think that is what they meant, yeah
<tilpner> Not all of them, but some, and then others I encountered
<asymmetric> I tried a search for wireguard but only results from nixpkgs turned out
<hyperfekt> Just the good ones, hand curated by you :b
<asymmetric> On mobile though so maybe there’s some flags I missed
<{^_^}> [nixpkgs] @danbst merged pull request #66657 → Postgresql plugins fixes → https://git.io/fjdTK
<{^_^}> [nixpkgs] @danbst pushed 5 commits to master: https://git.io/fjFCw
<asymmetric> Oh, I was looking at https://search.nix.gsc.io/
jgt has joined #nixos
<asymmetric> I’m hesitant to make my dotfiles public for privacy reasons, but maybe I’m just paranoid
<tilpner> Yes, those are different instances. We were talking about putting them (and feed.nix.tx0.co) in a common location, but there are more urgent things to do for now
<pie_> CMCDragonkai: did you ever get anywhere with this? i could really use it right now https://github.com/NixOS/nixpkgs/issues/48809
<{^_^}> #48809 (by CMCDragonkai, 42 weeks ago, open): Getting Python Extensions to GDB
rsa has joined #nixos
<__monty__> asymmetric: I wouldn't mind discussing pros/cons in #nixos-chat tbh.
jgt has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @7c6f434c merged pull request #66831 → [19.03] libreoffice-fresh: 6.2.1.2 -> 6.2.6.2 → https://git.io/fjFCk
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to release-19.03: https://git.io/fjFC5
noudle has quit [Ping timeout: 245 seconds]
<pie_> CMCDragonkai: sidenote: i see you talking about debug stuff in https://logs.nix.samueldr.com/nixos/2018-10-22 , id be interested in eventually gettign around to better global debugging support for stuff in nixpkgs
chloekek has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @danbst closed pull request #55265 → python doc: update virtualenv section → https://git.io/fh9Lh
<{^_^}> [nixpkgs] @kim0 opened pull request #66832 → Xmrigproxy300 → https://git.io/fjFCh
<pie_> ,locate
<{^_^}> Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
Chiliparrot has joined #nixos
<__monty__> nix search, nix-index, nix-locate Do these all serve the same purpose? And what hoops do I have to jump through to get nix search working?
MmeQuignon has joined #nixos
<{^_^}> commercialhaskell/stack#5007 (by razvan-panda, 23 seconds ago, open): stack build error - Control.Exception.Safe.throwString called with: In Nix shell but reExecL is False
o1lo01ol1o has joined #nixos
<tilpner> __monty__: Something like NIX_PATH=nixpkgs=channel:nixos-unstable nix search -u should be sufficient
<tilpner> You can leave NIX_PATH off in most cases
domogled has quit [Remote host closed the connection]
<tilpner> nix-index/nix-locate index the outputs, nix search only the package descriptions
<__monty__> tilpner: Hmm, if I leave off the NIX_PATH it should use my own channels, right?
<tilpner> Probably, but it doesn't work here
<__monty__> Doesn't work here either.
<tilpner> Providing NIX_PATH is good enough for me
<tilpner> I usually rg nixpkgs anyway, so... ehh
<__monty__> Seems to be working, yeah. But that means I have to provide it every time I want to update the cache? And also it won't be synchronized with my local pkgs unless I update nix-channel and search close enough to eachother?
d3vnu11 has joined #nixos
<__monty__> I'll just stick to grepping then. Would be nice if there was an easy way to get the nix store path to the current nixpkgs checkout though.
d3vnu11 has quit [Remote host closed the connection]
<tilpner> Yes, that sounds right
<tilpner> What do you mean by "get the nix store path to the current nixpkgs checkout"?
Soo_Slow has quit [Remote host closed the connection]
Soo_Slow has joined #nixos
ddellacosta has joined #nixos
page_ has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @erictapen opened pull request #66833 → haskellPackages.hakyll: jailbreak → https://git.io/fjFWy
travelion has quit [Quit: bye]
travelion has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<__monty__> tilpner: Isn't there basically a checkout of nixpkgs somewhere in /nix?
<__monty__> I'd like to be able to easily grep that rather than the repo which is usually out-of-sync with my channel.
o1lo01ol1o has joined #nixos
<tilpner> rg foo $(nix-instantiate --find-file nixpkgs)
<tilpner> Or cd $(nix-instantiate --find-file nixpkgs); ...
<__monty__> tilpner++ That's exactly what I was after! Thanks.
<{^_^}> tilpner's karma got increased to 37
gxt has quit [Ping timeout: 260 seconds]
iyzsong has quit [Ping timeout: 264 seconds]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
kp__ has joined #nixos
ddellacosta has joined #nixos
<colemickens> Has there been some talk of distri? What's the concensus around here?
<adisbladis> colemickens: There were a bit of talk in -chat
<colemickens> Mk.
<adisbladis> And also here yesterday I see from my backlog
<{^_^}> [nixpkgs] @tkerber opened pull request #66834 → Various: Add support for raspberry pi 4. → https://git.io/fjFlv
<adisbladis> colemickens: Just a sec
<colemickens> I think I found it more or less, not too much scroll back :). Thanks for the links.
ddellacosta has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #66173 → tortoisehg: untie from mercurial and update to 5.0.2 → https://git.io/fjQYr
<{^_^}> [nixpkgs] @danbst pushed to master « tortoisehg: untie from mercurial and update to 5.0.2 (#66173) »: https://git.io/fjFlX
o1lo01ol1o has joined #nixos
<eyJhb> Anybody know of something like `security.acme`, but that allows for DNS verification instead of webroot? -> https://github.com/NixOS/nixpkgs/blob/release-19.03/nixos/modules/security/acme.nix
jgt has quit [Ping timeout: 264 seconds]
<thefloweringash> I remember seeing #63613
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63613 (by petabyteboy, 8 weeks ago, open): [WIP] nixos/acme: switch to lego and support DNS challenge
philr_ has quit [Ping timeout: 245 seconds]
<hyper_ch> eyJhb: did you have a look at acme.sh ? "simple" shell script with no dependencies except openssl
<hyper_ch> it's also "easy" to add a new dns host if one provides an api or some other automated way to add/remove the dns challenge
<eyJhb> hyper_ch: I have considered taking the exsisting script and converting it to use acme.sh instead, as it looks promising
<hyper_ch> I wrote the ispconfig dns plugin for acme.sh because I'm using it myself :)$
<eyJhb> Do you feel like writing a module hyper_ch ? ;)
<hyper_ch> eyJhb: not really
<eyJhb> Damn.
<eyJhb> What was the best way to test modules? Could I just import them?
<hyper_ch> eyJhb: what kind of modules are you talking about? nixos?
<eyJhb> Yeah :)
<eyJhb> LIke the one linked above
<hyper_ch> git clone
<hyper_ch> and then add it
<eyJhb> Btw thefloweringash thanks, did not oversee you :D Will look at that too
<eyJhb> hyper_ch: so.. sudo nixos-rebuild -i nixpkgs=nixpkgs/ switch ?
<eyJhb> Or?
<hyper_ch> I just run acme.sh as stand alone
<hyper_ch> nixos-rebuild boot/switch -I nixpkgs=/path/to/....
<{^_^}> [nixpkgs] @danbst closed pull request #60993 → mercurialFull: 4.9.1 -> 5.0 → https://git.io/fjF8v
<hyper_ch> eyJhb: I know what you meant. Just letting you know that I use it as standalone even on my nixos servers
<eyJhb> Ah, was unsure :) Just standalone with a systemd schedule?
<hyper_ch> there's also others like dehydrated
<hyper_ch> cronjob - once a day
<eyJhb> Or crontab
<ar> there's also lego
<eyJhb> Hmm.... Can I peak at how you ahve done it? Easier might be better.
<eyJhb> ar: also tempted by lego since I love go
<hyper_ch> "1 0 * * * root /root/.acme.sh/acme.sh --cron --home /root/.acme.sh > /dev/null 2>&1"
selfsymmetric-pa has joined #nixos
<eyJhb> In services.cron.systemCronJobs ?
<eyJhb> Conflicted with wanting to try and write a module, but then again, seems like I am just adding complexity without gain
<hyper_ch> eyJhb: yes, that's what I did
<{^_^}> [nixpkgs] @danbst merged pull request #64723 → lib: introduce `forEach` = flip map → https://git.io/fjX4d
<{^_^}> [nixpkgs] @danbst pushed 10 commits to master: https://git.io/fjF8k
<{^_^}> [nixpkgs] @WilliButz opened pull request #66835 → grafana-loki: 0.2.0 -> 0.3.0 → https://git.io/fjF8I
<ivan> does the /var/lib/hydra/.pgpass mechanism actually work? I'm seeing hydra-init "fe_sendauth: no password supplied" https://gist.github.com/ivan/a79f3a609eefaa4d1ded00cacf05c348
selfsymmetric-pa has quit [Remote host closed the connection]
selfsymmetric-pa has joined #nixos
<selfsymmetric-pa> I'd appreciate a pair of eyes on my attempted derivation here: https://github.com/NixOS/nixpkgs/issues/66808#issuecomment-522333026
<selfsymmetric-pa> I'm trying to build a python application, but it is failing on a package dependency.
<{^_^}> [nixpkgs] @flokli merged pull request #66825 → nixosTests.systemd: remove duplicate copypasta → https://git.io/fjFZy
<{^_^}> [nixpkgs] @flokli pushed 2 commits to master: https://git.io/fjF8O
<AluisioASG> Where would a new dynamic DNS client go in nixpkgs? I'm thinking pkgs/tools/networking, but there is also pkgs/applications/networking/dyndns
page has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #66828 → multimc: 0.6.6 -> 0.6.7 → https://git.io/fjFnj
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fjF8G
jgt has joined #nixos
Lem_ has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
Lem_ has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #66817 → kitty: python3 runtime requires ncurses executables → https://git.io/fjFsp
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fjF8l
<ivan> oh, what the hell, https://nixos.org/hydra/manual/ says ~/.pgpass while the module uses ~/pgpass
<{^_^}> [nixpkgs] @aanderse merged pull request #66730 → starship: init at 0.10.1 → https://git.io/fjdM0
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjF88
<ivan> and ~/pgpass-www
jgt has quit [Ping timeout: 252 seconds]
<ivan> and ~/pgpass-queue-runner
<{^_^}> [nixpkgs] @xbreak opened pull request #66836 → gcc: 9.1.0 -> 9.2.0 → https://git.io/fjF84
endformationage has joined #nixos
<srid> Is there a builtin function replaces symlinks with their target files when given a source path?
noudle has joined #nixos
<srid> I'd use this to workaround the fact that nix doesn't automatically copy over the symlink *targets*
<srid> I'd replace `./sumoner-cli` with `copyWithoutSymlinks ./summnoer-cli`
xkapastel has quit [Quit: Connection closed for inactivity]
dasj19 has quit [Ping timeout: 248 seconds]
<Miyu-chan> Is it a stupid idea to use `#!nix-shell drv` as a shebang for a systemd service?
<Miyu-chan> nix-shell seems to be the best way to get packages that use PYTHONPATH as plugin-list working.
dasj19 has joined #nixos
jnisch has joined #nixos
<Miyu-chan> Oh cool. python-env seems to actually know what to do.
<{^_^}> [nixpkgs] @cpages pushed to staging « SDL2: 2.0.9 -> 2.0.10 »: https://git.io/fjF8a
<{^_^}> [nixpkgs] @cpages closed pull request #66145 → SDL2: 2.0.9 -> 2.0.10 → https://git.io/fjQI1
<{^_^}> [nixpkgs] @AluisioASG opened pull request #66837 → libreoffice-still: 6.1.5.2 -> 6.2.6.2 → https://git.io/fjF8r
ddellacosta has joined #nixos
<jnisch> Hello, I am a NixOS beginner trying to understand why things like sane (for scanning) are not just a package that can be installed using nix-env -i?
infinisi1 has joined #nixos
<selfsymmetric-pa> jnisch++
<{^_^}> jnisch's karma got increased to 1
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<selfsymmetric-pa> Good question. I still don't quite understand where everything belongs.
<ehmry> jnisch: its probably because of the unix permissions modle
<freeman42x> could someone explain to me how using nixpkgs.config.allowBroken = true; makes sense? won't it give you a broken package?
<srhb> jnisch: packages cannot modify the "system" in any way. All installing something with nix-env -iA (never -i alone) is be joined into the symlink tree that constitutes some profile.
<ivan> jnisch: Debian packages have triggers that can modify the system, NixOS packages do not modify the system
<tilpner> jnisch: Sane apparently needs to create a user, a systemd service listening on a socket, udev rules, special environment variables, and firewall settings
<srhb> jnisch: Activating, say, systemd services, requires building a new system profile, which is done using the NixOS module system.
<selfsymmetric-pa> srhb: Right? The NixOS manual explains how to use the setting but doesn't explain why you'd ever use it.
<srhb> selfsymmetric-pa: Sorry, explains why ever use what? :)
<selfsymmetric-pa> Oops, I meant freeman42x. Why you'd use `allowBroken`.
<srhb> Ah. I'd expect you'd only ever want that to test if something truly is broken, and then remove the mark if it is.
<srhb> freeman42x: ^
<selfsymmetric-pa> srhb: Ah, good point. So it's mostly a development usecase.
<srhb> Or, theoretically, some parts of a package could be broken that you don't care about.
<jnisch> ok, that makes sense, was not aware this sane thing has to change so much
selfsymmetric-pa has quit [Remote host closed the connection]
<freeman42x> srhb, that makes sense, srhb++
<{^_^}> srhb's karma got increased to 63
<ivan> I figured out why Hydra needs three different pgpass files :-)
o1lo01ol1o has quit [Remote host closed the connection]
<srhb> jnisch: And the general rule also applies. Where a Debian "package" can mutate all sorts of things in a Debian system, packages in Nix really can't *do* anything to the system, except be present in /nix/store. Everything else must go through NixOS modules.
<maralorn> freeman42x: For example some haskellPackages get marked as broken erronously. In that case it‘s useful to enable that option. Although I still prefer overriding the broken flag over setting this global option.
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @WilliButz pushed to release-19.03 « grafana: 6.3.2 -> 6.3.3 »: https://git.io/fjF8H
<srhb> Indeed, most of the time enabling that would just cause you to fruitlessly spend time building things that really are broken...
<jnisch> srhb, thanks, srhb++
<{^_^}> srhb's karma got increased to 64
englishm has quit [Excess Flood]
englishm has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<__monty__> ivan: pgpass?
<ivan> __monty__: yeah, Hydra is made of three users and some postgres stuff insists PGPASSFILE is not group-readable, so each user needs their own user-owned file
npmccallum has quit [Quit: npmccallum]
<__monty__> ivan: I wonder if ACLs could circumvent that?
<{^_^}> [nixpkgs] @WilliButz merged pull request #65903 → eventstore: 5.0.0 -> 5.0.2 → https://git.io/fjHmW
<{^_^}> [nixpkgs] @WilliButz pushed 2 commits to master: https://git.io/fjF8N
<ivan> __monty__: yeah, just had the same thought
shabius has quit [Quit: Leaving]
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisi1 has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<{^_^}> [nixpkgs] @tkerber closed pull request #66834 → Various: Add support for raspberry pi 4. → https://git.io/fjFlv
dasj19 has quit [Ping timeout: 244 seconds]
jgt has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66606 → nixos/riemann-tools: Add ExtraArgs Config Option → https://git.io/fj5HE
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjF4k
<{^_^}> [nixpkgs] @mmahut merged pull request #53502 → cjdns: add extraConfig option → https://git.io/fhsCy
<{^_^}> [nixpkgs] @mmahut pushed commit from @elitak to master « nixos/cjdns: add extraConfig option (#53502) »: https://git.io/fjF4L
WilliButz has quit [Quit: WeeChat 2.5]
WilliButz has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
sushi_ is now known as ilikeheaps
ilikeheaps has quit [Quit: Konversation terminated!]
ilikeheaps has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #66837 → libreoffice-still: 6.1.5.2 -> 6.2.6.2 → https://git.io/fjF8r
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fjF4G
jollyjester has quit [Quit: Lost terminal]
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon1 has joined #nixos
WilliButz has quit [Quit: WeeChat 2.5]
WilliButz has joined #nixos
<srid> Does anyone know why this is giving `cp: cannot stat '/home/srid/code/summoner/summoner-cli/': No such file or directory` https://usercontent.irccloud-cdn.com/file/fIF4oNUo/image.png
Mateon2 has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 258 seconds]
<tilpner> srid: Guess: toString on ./summoner-cli removes its context, and is then forbidden by the sandbox
cizra has quit [Ping timeout: 252 seconds]
<tilpner> Remove toString
cizra has joined #nixos
<tilpner> srid: It seems you want to import a path into the store with a custom name. builtins.path { name = "foo"; path = ./bar; } will result in ${storeDir}/*-foo having the content of ./bar
fusion809 has joined #nixos
drakonis has joined #nixos
xkapastel has joined #nixos
boxscape has quit [Ping timeout: 258 seconds]
MmeQuignon has quit [Ping timeout: 264 seconds]
dasj19 has joined #nixos
fendor__ has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #66810 → gitkraken: 6.1.1 -> 6.1.3 → https://git.io/fjFYd
<{^_^}> [nixpkgs] @markuskowa pushed 4 commits to master: https://git.io/fjF4w
<{^_^}> [nixpkgs] @Izorkin opened pull request #66839 → nftables: 0.9.0 -> 0.9.1 → https://git.io/fjF46
fendor_ has quit [Ping timeout: 245 seconds]
<tokudan> trying to install a system through kexec ("nix-build '<nixpkgs/nixos>' -A config.system.build.kexec_tarball -I nixos-config=./rikku-iso.nix -Q") but getting "error: attribute 'kexec_tarball' in selection path 'config.system.build.kexec_tarball' not found"
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/63ca98bc537 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
fendor__ is now known as fendor
<{^_^}> [nixpkgs] @lopsided98 opened pull request #66840 → buildbot: 2.3.1 -> 2.4.0 → https://git.io/fjF41
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @Izorkin opened pull request #66841 → nftables: enable all features in kernel 5.2 → https://git.io/fjF4M
WilliButz has quit [Quit: WeeChat 2.5]
WilliButz has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fjF4H
<{^_^}> [nixpkgs] @srhb merged pull request #66816 → parity: 2.5.5 -> 2.5.6, parity-beta: 2.6.0 -> 2.6.1 → https://git.io/fjFs9
acarrico has joined #nixos
<clever> tokudan: you need to include kexec.nix in the imports
<clever> tokudan: the supplied configuration.nix does that
<{^_^}> [nixpkgs] @WilliButz merged pull request #66814 → matrix-synapse: 1.2.1 -> 1.3.1 → https://git.io/fjFsf
<{^_^}> [nixpkgs] @WilliButz pushed 3 commits to master: https://git.io/fjF4A
<tokudan> oh... missed the point in the wiki where it says "clone clever's repo" ^^
<tokudan> thanks clever :)
<clever> ah, that will do it
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
o1lo01ol1o has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
ee1943 has joined #nixos
cizra has quit [Remote host closed the connection]
infinisil has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
growpotkin has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
ddellacosta has quit [Ping timeout: 244 seconds]
<hyper_ch> tokudan: the wiki is unclear?
alex`` has quit [Ping timeout: 248 seconds]
<tokudan> hyper_ch: no, it's fine. I just missed the sentence, as I already thought I had a good idea and just needed some details... and missed other required details. the typical dangerous smattering :)
<hyper_ch> :)
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/63ca98bc537 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
alex`` has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
jgt has joined #nixos
cizra has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3a17a52a2a5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<musicmatze> Hi. I was invited to the nixos github community.
<musicmatze> May I ask why and what that includes?
<gchristensen> musicmatze: when was the invite, what is your github account, and what was the invite for specifically?
<gchristensen> (I think it was me, but ... I didn't expect to invite you yet?)
<musicmatze> the invite was like five minutes ago
<musicmatze> I just received the mail
<musicmatze> I'm matthiasbeyer on github
<gchristensen> oh!
<musicmatze> And it was for the github community, I don't know more
<colemickens> hello, this would be nice to get into staging :) https://github.com/NixOS/nixpkgs/pull/66541
<{^_^}> #66541 (by colemickens, 5 days ago, open): libinput: 1.13.4 -> 1.14.0
<gchristensen> I wish the email told you WHAT team you were invited for, and the description of the team. which says: Nixpkgs Maintainers :Nixpkgs package maintainers. See: https://discourse.nixos.org/t/join-the-package-maintainer-team/3751
<gchristensen> musicmatze: ^ check that link and let me know if you have questions?
<gchristensen> ,invite = Invited to join "Nixpkgs Maintainers" on GitHub? For more information, see: https://discourse.nixos.org/t/join-the-package-maintainer-team/3751
<{^_^}> invite defined
<musicmatze> ah, okay.
<musicmatze> So the mail only says, and I quote: "You’re invited to join the @NixOS organization on GitHub."
<gchristensen> can you send me a screenshot of it?
<iqubic> So, I'm having a load of issues. I can't rebuild my nixos configuration because of this error here: "error: attribute 'spl' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixos/modules/tasks/filesystems/zfs.nix:31:11"
<iqubic> I'm trying to use kernel version 4.19
<musicmatze> gchristensen: sure
<iqubic> I've set that explicitly as my boot.kernelPackages.
<gchristensen> musicmatze: thanks I'll report a bug to github
<srhb> iqubic: as in, linuxPackages_4_19?
<iqubic> Yes.
<iqubic> And something with spl and/or zfs is screwed up.
<musicmatze> gchristensen: feel free to cc me in the bugreport, either on github or via mail
<gchristensen> thanks
<musicmatze> where can I upload my screenshot?
o1lo01ol1o has joined #nixos
<gchristensen> musicmatze: email it to me at graham@grahamc.com ?
<lopsided98> iqubic: ZFS 0.8 doesn't have a separate SPL package anymore, and the NixOS module was probably not updated to account for this
<musicmatze> that's the best option obviously
<musicmatze> thanks
<iqubic> lopsided98: I see.
<iqubic> What can I do to fix this?
<iqubic> Because several people in this community use ZFS and will likely run into the same issue.
<srhb> iqubic: You can start by creating an issue describing how to reproduce the problem, version of nixpkgs etc. :)
<iqubic> I'm not sure how one reproduces this issue.
<iqubic> And I'm not sure how to check my nixpkgs version.
<srhb> iqubic: Your (minimal, preferably) config that causes the error and the version of nixpkgs should suffice.
<lopsided98> iqubic: Removing the optional here should fix it: https://github.com/NixOS/nixpkgs/blame/master/nixos/modules/tasks/filesystems/zfs.nix#L337
<symphorien> iqubic: run nix-info
<srhb> iqubic: nix-info will tell you that
<lopsided98> I haven't actually tested that though
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
orivej has joined #nixos
Mateon2 has joined #nixos
<lopsided98> iqubic: Actually that should probably be fixed, but it doesn't look like it is causing your specific error
domogled has joined #nixos
Mateon1 has quit [Ping timeout: 245 seconds]
Mateon2 is now known as Mateon1
<{^_^}> [nixpkgs] @abbradar pushed 2 commits to master: https://git.io/fjFB8
o1lo01ol1o has quit [Remote host closed the connection]
domogled has quit [Remote host closed the connection]
<lopsided98> My explanation is probably completely wrong, because assuming you are on 19.03, zfs is still at 0.7.13
<iqubic> I am on 19.03
<iqubic> I also have an unstable channel, but I'm not sure I'm ready to make that my primary channel.
o1lo01ol1o has joined #nixos
<iqubic> So what can I do to fix this right now?
<ivan> does anyone have an example for using hydra to build a subset of nixpkgs pkgs? I've been staring at: Jobset contains a job with an empty name. Make sure the jobset evaluates to an attrset of jobs.
o1lo01ol1o has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @abbradar merged pull request #64945 → libglvnd, ocl-icd, vulkan-loader: Remove addOpenGLRunpath where not needed. → https://git.io/fj1Lc
<{^_^}> [nixpkgs] @abbradar pushed commit from @ambrop72 to staging « libglvnd, ocl-icd, vulkan-loader: Remove addOpenGLRunpath where not needed. »: https://git.io/fjFB2
o1lo01ol1o has joined #nixos
Mateon2 has joined #nixos
noudle has quit [Ping timeout: 244 seconds]
Mateon1 has quit [Ping timeout: 248 seconds]
<lopsided98> ivan: not the simplest example, but this is what I use: https://github.com/lopsided98/nixos-config/blob/master/pkgs/release.nix#L72
noudle has joined #nixos
<ivan> lopsided98: thank you
Mateon2 has quit [Ping timeout: 272 seconds]
<lopsided98> iqubic: I don't know what is causing your problem, unless you are somehow mixing 19.03 NixOS modules with unstable packages
slack1256 has joined #nixos
<iqubic> I only have one thing being pulled from unstable.
<iqubic> boot.kernelPackages = nixos-unstable.pkgs.linuxPackages_latest;
<iqubic> But even when I change that to pkgs.linuxPackages_latest; is fails with the same error.
<gchristensen> yep that'll do it
<ivan> man, I wish I could use Hydra without understanding what in the world release-lib.nix does
<iqubic> gchristensen: How can I fix this/
<iqubic> ?
<gchristensen> use a kernelPackages from stable
<iqubic> s./.?.
<iqubic> Ah. I see.
<iqubic> Why is this issue occurring for me?
<freeman42x> WAT: Executable named nix-shell not found on path
<gchristensen> because spl was removed in unstable, when zfs moved it in to zfs itself
<iqubic> How long will it be until this issue if fixed?
rauno has joined #nixos
<gchristensen> you can fix it now by using kernelPackages from stable :)
<iqubic> How do I do that?
<iqubic> Is there a list of kernels that are in stable?
<iqubic> Also, when will I be able to pull in a kernel from unstable and have it work?
b has quit [Quit: leaving]
<srhb> iqubic: That's not something that is ever guaranteed to work.
<Miyu-chan> marek: Hi. Are you here right now?
<iqubic> I see.
<iqubic> so where is the list of kernels available in stable?
<srhb> iqubic: You can search for linuxPackages_ in all-packages.nix
b has joined #nixos
<Miyu-chan> marek: I'm interested in finishing https://github.com/NixOS/nixpkgs/pull/53600 but not the other one, since it seems like it will always be insecure. When I get to finishing #53600, I also want to add nixos-generate-config support.
<{^_^}> #53600 (by adrianparvino, 31 weeks ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
fendor_ has joined #nixos
<iqubic> Where is all-packages.nix?
<symphorien> pkgs/top-level/
<emily> `find . -name all-packages.nix`
<Izorkin> fpletz: really add iptables with compat support (work firefall with nft)? - https://pastebin.com/Vrw0wzdU
fendor has quit [Ping timeout: 258 seconds]
Mateon1 has joined #nixos
<iqubic> Will linuxPackages_4_9 work for me?
lopsided98 has quit [Remote host closed the connection]
noudle has quit []
lopsided98 has joined #nixos
<iqubic> Yes. Yes it will.
ddellacosta has joined #nixos
rauno has quit [Ping timeout: 250 seconds]
<{^_^}> commercialhaskell/stack#5008 (by razvan-panda, 47 seconds ago, open): Invalid option `--internal-re-exec-version=2.1.3.1'
o1lo01ol1o has quit [Remote host closed the connection]
fendor_ has quit [Ping timeout: 268 seconds]
ddellacosta has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6c1ff5ad9e4 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
nexgen has quit [Quit: Leaving]
selfsymmetric-mu has quit [Remote host closed the connection]
bakakuna has joined #nixos
selfsymmetric-mu has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
<iqubic> Do people here recommend removing my stable channel, and using only the unstable channel?
joko has quit [Changing host]
joko has joined #nixos
fendor has joined #nixos
<emily> I use nixos-unstable without any problems.
<emily> well, other than the ones I bring on myself.
<iqubic> How would I go about using only unstable?
<talyz> eyJhb: heh, yeah, the part after ey, at least :)
<mightybyte> I'm trying to use this NIX_REDIRECTS trick to get my build working: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/python-engineio/default.nix#L41
<{^_^}> [nixpkgs] @tilpner opened pull request #66842 → tree-wide: fix malformed meta.maintainers → https://git.io/fjFRI
<mightybyte> I've put similar lines in and know they're getting executed because I put some debugging statements, but for some reason it's not working.
<selfsymmetric-mu> iqubic: Personally I use stable unless I need something fresher. I actually can't wait for October so I can stabilize everything I'm currently using from the unstable channel.
<mightybyte> The following works: nix-build --option extra-sandbox-paths '/etc/protocols /etc/services'
<mightybyte> But I'd rather have that specified inside the nix expression. Any idea what might be going on?
jabranham has joined #nixos
<iqubic> selfsymmetric-mu: I see.
<{^_^}> [nixpkgs] @ngerstle opened pull request #66843 → Merge pull request #1 from NixOS/master → https://git.io/fjFRt
<{^_^}> [nixpkgs] @ngerstle closed pull request #66843 → Merge pull request #1 from NixOS/master → https://git.io/fjFRt
<{^_^}> [nixpkgs] @ngerstle opened pull request #66844 → traefik: 1.7.12 -> 1.7.14 → https://git.io/fjFRs
bakakuna has quit [Ping timeout: 258 seconds]
bakakuna has joined #nixos
Shouou has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
bakakuna has quit [Ping timeout: 248 seconds]
<gerschtli> hey everyone! i have got invited to join the nixos github organisation and i am now member of the maintainer team. does anyone know what this enables me to do or maybe why i am invited to join the team? :D
<{^_^}> [nixpkgs] @AluisioASG opened pull request #66845 → r128gain: init at 0.9.3 → https://git.io/fjFRC
<tilpner> gerschtli: This was because you maintain packages
<tilpner> ,orginvite = If you were just invited to the NixOS GitHub organisation, that was likely because of the newly created Package Maintainer Team. See https://discourse.nixos.org/t/join-the-package-maintainer-team/3751 for more
<{^_^}> orginvite defined
<gerschtli> ah thank you all for the link!
amir has quit [Read error: Connection reset by peer]
b has quit [Ping timeout: 245 seconds]
amir has joined #nixos
<eyJhb> talyz: yeah, `ey` does not make sense. But the rest should somewhat make sense :D
b has joined #nixos
<iqubic> So, I'm looking to do some elm coding in NixOS. What's the best way to get started with this?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<{^_^}> [nixpkgs] @mmahut merged pull request #66835 → grafana-loki: 0.2.0 -> 0.3.0 → https://git.io/fjF8I
<{^_^}> [nixpkgs] @mmahut pushed commit from @WilliButz to master « grafana-loki: 0.2.0 -> 0.3.0 (#66835) »: https://git.io/fjFRE
bakakuna has joined #nixos
Ralith_ has quit [Read error: Connection reset by peer]
<hyperfekt> iqubic: The way I see it you'd probably want to create a shell.nix with the appropriate tools taken from elmPackages.
<iqubic> I see. I should do it that way.
<{^_^}> [nixpkgs] @mmahut merged pull request #66839 → nftables: 0.9.0 -> 0.9.1 → https://git.io/fjF46
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFRr
bakakuna has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @mmahut merged pull request #66776 → pass-otp: 1.1.1 -> 1.2.0 → https://git.io/fjFTq
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFRK
<{^_^}> [nixpkgs] @uvNikita opened pull request #66846 → nixos/containers: add 'ephemeral' option → https://git.io/fjFRi
<{^_^}> [nixpkgs] @mmahut merged pull request #66832 → Xmrigproxy300 → https://git.io/fjFCh
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFR1
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjFRM
<{^_^}> [nixpkgs] @mmahut merged pull request #66783 → AgdaStdlib: 1.0.1 -> 1.1 → https://git.io/fjFIP
winem_ has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66813 → docui: 1.0.3 -> 2.0.0 → https://git.io/fjF3A
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjFRS
boxscape has joined #nixos
<{^_^}> [nixpkgs] @abbradar pushed to master « shadowsocks service: support dual-stack server »: https://git.io/fjFR9
<{^_^}> [nixpkgs] @ivanbrennan opened pull request #66847 → wkhtmltopdf: use qt5's own mkDerivation → https://git.io/fjFRd
<{^_^}> [nixpkgs] @mmahut opened pull request #66848 → avro-tools: properly installing the jar file → https://git.io/fjF0v
phreedom has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66804 → clipgrab: 3.8.3 -> 3.8.4 → https://git.io/fjFmv
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjF0t
wfranzini has quit [Remote host closed the connection]
Ralith_ has joined #nixos
phreedom has joined #nixos
shabius has joined #nixos
<emilsp> why do all the guides about encrypting the root fs for NixOS use LVM when you really only need to use it if you need hibernation support.
<shazow> emilsp: what would you prefer?
<shazow> I have some instructions for how to do it with btrfs (without lvm), but also includes hibernate support
<emilsp> I do not need hibernation support
<hyper_ch> emilsp: not all use lvm... the zfs ones do not
<emilsp> that's fair. Well, I don't know. I guess I'll try out LVM with ext4 and swap in a volume
dasj19 has quit [Quit: dasj19]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4835f65e950 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<hyper_ch> and with luks/dm-crypt you don't need lvm either
sondr3 has joined #nixos
slack1256 has quit [Ping timeout: 245 seconds]
<emilsp> hyper_ch: I know, and even if I've done this what feels like a million times before, I'm very aprehensive and want to follow an easy guide :)
<hyper_ch> why not just upgrade to zfs? :)
<emily> incidentally, what do you do if you want encrypted zfs + hibernation, given that swap on zvol doesn't work?
<emilsp> hyper_ch: encryption is not supported in the stable release, is it :P
<hyper_ch> just set zfs to unstable and you have native encryption support
<emilsp> How unstable is it though?
<sondr3> I'm looking at the nixos-hardware repo for my laptop, what does 'touchpad goes over i2c' mean? It's a comment above blacklisting the psmouse module
<hyper_ch> I've been using it for a long time
<emilsp> I'd rather go with ext4 in this case since I don't need a lot of integrity, it's an old laptop, so avoiding extra overhead would be nice.
Lem_ has quit [Ping timeout: 252 seconds]
<hyper_ch> :)
<hyper_ch> off to bed now
<emilsp> have a nice night!
Lem_ has joined #nixos
<emily> I thought the latest stable zfs had encryption now?
<emilsp> the upstream stable release supports encryption, yes. That's 0.8
<emilsp> But it's not yet stable on NixOS.
<emily> oh, on non-nixos-unstable? I see.
amir has quit [Read error: Connection reset by peer]
<emilsp> The zfs package containts 0.7.13, and zfsUnstable is for 0.8.1
amir has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #66849 → vscod{e,ium}: 1.37.1 → https://git.io/fjF0C
stayback has joined #nixos
<stayback> I'm building a derivation, during the build, the g++ gets -llua5.1, any way to change that to -llua? as lua5.1 fails
<stayback> any way to alias that in g++?
tertl3 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @lsix merged pull request #66373 → cppclean: 2018-05-12 -> 0.13 → https://git.io/fj7sr
<{^_^}> [nixpkgs] @lsix pushed 2 commits to master: https://git.io/fjF08
<{^_^}> [nixpkgs] @srhb opened pull request #66850 → nixos/sd-image: Increase default firmware partition size → https://git.io/fjF0B
<tilpner> emilsp: You can use zfs 0.8 on nixos-19.03
<__monty__> emilsp: zimbatm's recommendation here doesn't use lvm: https://nixos.wiki/wiki/Full_Disk_Encryption
winem_ has quit [Ping timeout: 264 seconds]
<tilpner> emily: But only by setting boot.zfs.enableUnstable, which I fear opts into future updates to unstable versions
<emily> I think you meant the other emil*, though I appreciate the clarification
<emily> so wait, enableUnstable switches to a *stable* version on 19.03? so weird.
<__monty__> emilsp: Also, if you follow this guide but skip all the lvm stuff you'd end up with lvm-less luks too: https://gist.github.com/martijnvermaat/76f2e24d0239470dd71050358b4d5134
<__monty__> emilsp: And if you want to use plain dm-crypt, that's possible too.
<__monty__> Though lvm is a nice safety-net in that case.
<emilsp> But I'd be using zfsUnstable, right, tilpner?
<tilpner> Yes, but zfsUnstable is stable right now
<tilpner> I know how that sounds
<tilpner> It might not be stable in the future though, which is what worries me
<emilsp> __monty__: I think I'll be good with luks :) Just finding out how to setup encrypted swap now so that it's an actual partition rather than a swap file.
<__monty__> Also, since it's an old laptop wouldn't zfs' RAM hunger be a problem?
stayback has quit [Remote host closed the connection]
<tilpner> ext4 likes all the memory it can get for caching as well
paroxp has joined #nixos
<paroxp> I don't suppose that anyone have had an issue with NixOS not setting the permissions for `/tmp` correctly?
<tilpner> What are the perissions supposed to be, and how are they set on your system?
<emilsp> tilpner: so you'd wager that it's actually ext4 rather than lusk that pushed my userspace programs out to swap under heavy io to disk?
<emilsp> __monty__: it's got 16 gigs of memory, but I'm not storing anything too critical here.
boxscape has quit [Remote host closed the connection]
<srhb> paroxp: 1777 here, which sounds correct to me.
o1lo01ol1o has quit [Remote host closed the connection]
<paroxp> srhb: yeah, that's what i'd expect
<tilpner> emilsp: I would expect the page cache to release memory as necessary by user applications, so no, not really
<paroxp> yet fresh install didn't cover that.
<srhb> paroxp: Mine is a tmpfs though
<srhb> paroxp: as in, boot.tmpOnTmpfs = true;;
<tilpner> emilsp: It's possible it was freeing memory, but just not quickly enough. And I can't think of a good reason for luks to eat lots of memory, so if those two are your only suspect, then yes, ext4
<paroxp> fair enough srhb :) Thought it would have been the default :D
lord| has quit [Quit: WeeChat 2.5]
shibboleth has quit [Quit: shibboleth]
<tilpner> 16GB are plenty for any filesystem at reasonable disk capacities
<srhb> paroxp: I'd still consider it a bug if non-tmpfs has the wrong permissions
<srhb> paroxp: I just meant I can't check right now what the default behaviour is :)
<paroxp> I see :D
<paroxp> I'll raise an issue perhaps... Wondered if this was a known thing ;/
<tilpner> Hold on
<tilpner> I have boot.tmpOnTmpfs = false, and 1777
<paroxp> out of ordinary, is the fact I have a /tmp on a separate partition.
<tilpner> paroxp: Check systemd-tmpfiles-*.service
<tilpner> They're supposed to set permissions
lord| has joined #nixos
<tilpner> That might do it actually
o1lo01ol1o has joined #nixos
<tilpner> If systemd-tmpfiles somehow runs before everything's mounted properly...
<tilpner> You can add a dependency, but I'd have to look the specifics up too
<emilsp> tilpner: it's just that as soon as I'm transferring lots of data, I see that I'm using a lot more swap, and everything slows down to a crawl aside from i/o speeds. I've lived with this behaviour for more than 10 years across multiple distros, so you might be right, it could just be ext4 being a dick about memory
<__monty__> emilsp: I haven't noticed a performance problem with plain dm-crypt (and lvm and btrfs) on a laptop from 2003.
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nixos
<tilpner> emilsp: I used to be on keep-swap side, but Linux always managed to swap out 700KB that X really needed. And just those. So eventually I disabled it, and haven't run into issues yet
<emilsp> __monty__: I usually don't have perf issues per say, it's more of a usability issue - if I'm running somewhat close to my memory limit - having about 20% memory free - and I start a large file transfer, everything hits the fan. And as far as btrfs goes, I've been bitten one too many times.
<{^_^}> [nixpkgs] @srhb merged pull request #66848 → avro-tools: properly installing the jar file → https://git.io/fjF0v
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fjF0M
<__monty__> emilsp: Not recommending btrfs. Just saying that particular combo hasn't been a problem for me on a 512MB machine. Granted spinning rust so I can't imagine a high encryption load because IO is so slow.
<emilsp> __monty__: heh, that's fair. This is a t430 with a 512 gig SSD, so not entirely a dinosaur by any means.
<tilpner> emilsp: On my todo list: Setup swappiness per-cgroup and disable all swapping for essential processes. I think it's possible too
<emilsp> I think throttling encryption rate or having some sort of a backpressure mechanism in the kernel to throttle i/o if real memory is low is the _real_ solution
<emilsp> Also, a complex pipe dream
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64607 → Fix build for gimp-with-plugins against exiv2 0.27.1 → https://git.io/fjP4S
<{^_^}> [nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/fjF0H
fendor_ has joined #nixos
ixxie has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @mmahut opened pull request #66852 → btanks: patching away wrong lua library → https://git.io/fjF07
<{^_^}> [nixpkgs] @luaduck closed pull request #63833 → WIP: linux_rpi: Update version to 20190620 / 4.19.50 → https://git.io/fjrxy
<{^_^}> [nixpkgs] @tilpner closed pull request #62071 → nixos/cadvisor: expose interval options → https://git.io/fjRf2
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66721 → brave: fix path to brave in *.desktop file → https://git.io/fjdif
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjF0p
gxt has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
drakonis has quit [Ping timeout: 252 seconds]
oborot has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66847 → wkhtmltopdf: use qt5's own mkDerivation → https://git.io/fjFRd
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjFEU
<oborot> Does anybody know how I can get Nix to re-build a particular package of mine form source? I override the st package with my own local repo, and it doesn't seem to build after the initial rebuild.
<oborot> Is there a version number or something I can increment to flag to Nix that it needs re-building?
<tilpner> oborot: That should very rarely be needed. Why do you want to rebuild it?
<tilpner> oborot: You can pass --check to nix-build, and it'll force a rebuild
<oborot> The ST is meant to be built form source to change how it's configured
<tilpner> Yes, I know
<oborot> I want to rebuild it because I changed something
<tilpner> What did you change?
<oborot> Some colours
<tilpner> And where?
<tilpner> How do you override st? Do you use fetchgit/fetchFromGitHub?
<oborot> I pulled this: https://github.com/LukeSmithxyz/st
<oborot> Made my ~/.Xdefaults file after the initial build
<oborot> It's supposed to be dynamic, but I'm guessing because the file didn't exist on the first build something didn't work right
<tilpner> Nix builds can't access your home directory, if you're on NixOS
<tilpner> So the existence of that file can't have any effect on the output of the build
<tilpner> (Unless you overrode it to specifically do that)
<oborot> Hmmm, I see
<tilpner> Can you paste the way you phrased the override?
<oborot> Well the next thing I was going to try was a patch for the default colours
<tilpner> ,paste
<{^_^}> Use a website such as [ https://gist.github.com/ http://ix.io/ https://hastebin.com/ http://sprunge.us/ https://paste.ee/ ] or similar services to share anything that's longer than a couple lines.
<oborot> Yeah, one second
fendor_ has quit [Ping timeout: 272 seconds]
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @WilliButz merged pull request #65945 → imagemagick7: 7.0.8-53 -> 7.0.8-58 → https://git.io/fjHWA
<{^_^}> [nixpkgs] @WilliButz pushed 2 commits to master: https://git.io/fjFEY
<oborot> tilpner: https://paste.ee/p/Rjug3
<pie_> output '/nix/store/4bbv7f4q3bid7p46fj1dmchcslvdgnbd-python3-3.7.4' is not allowed to refer to the following paths:
<pie_> /nix/store/kdxl7m4i8sam5908hk9r21q7vcj4b2ns-openssl-1.0.2s-dev
<pie_> is there a better way to deal with
<pie_> i have builtins.removeAttr in like 5 places at this point and i still havent caught it
<tilpner> oborot: That should rebuild any time you change anything in /home/robot/tools/st
<tilpner> (And then build/use the st you defined here)
<{^_^}> [nixpkgs] @c00w opened pull request #66853 → steam: Update dependencies for steamrt → https://git.io/fjFE3
<oborot> Do you think there's a better way to do that? I tried placing all my ST overrides within a nix wrapper, but they just didn't seem to apply
<tilpner> Not an override though
<{^_^}> [nixpkgs] @WilliButz merged pull request #66334 → pinboard-notes-backup: init at 1.0.4.1 → https://git.io/fj7Jq
<{^_^}> [nixpkgs] @WilliButz pushed 2 commits to master: https://git.io/fjFEn
<tilpner> oborot: Do you have a config.h, or just config.def.h?
<oborot> tilpner: Here's what I tried doing at first with limited success https://paste.ee/p/LLlEV
<tilpner> Or do you not need to edit that file at all, with the fork you mentioned
<tilpner> oborot: Paste one of the patches
<tilpner> Ehh, they're probably good
<tilpner> Well, paste errors then?
<tilpner> And what's ./cfg/st/config.nix?
dansvo has joined #nixos
<oborot> Here's one of the patches tilpner: https://paste.ee/p/ameT5
<tilpner> oborot: Do you have a config.h, or just config.def.h?
shibboleth has joined #nixos
<tilpner> Or do you not need to edit that file at all, with the fork you mentioned
Lem_ has quit [Ping timeout: 252 seconds]
<oborot> I didn't get any errors, the changes simply did not apply
<oborot> I had a config.nix, which was just a wrapper for config.h
<oborot> Perhaps I'd be better of with a regular config.h though
drakonis has joined #nixos
<tilpner> The package may cp config.def.h config.h if you don't provide conf
<oborot> Ah
Lem_ has joined #nixos
<oborot> Looking at your config, what's prePatch = "cp ${./config.h} config.def.h"; about?
<tilpner> No, that sounds like nonsense
* tilpner tired
<tilpner> oborot: That's the way I copy my own config into the build
apeyroux_ is now known as apeyeoux
<tilpner> And then the Makefile will "build" config.h by copying config.def.h
<oborot> Oh nice, mind if I steal this?
<tilpner> I guess I just did that because the nixpkgs package does it too, I could as well copy to config.h
<tilpner> No, go ahead, that repo is MIT licensed
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66684 → mkvtoolnix: use wrapQtApp → https://git.io/fjdW5
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjFER
__monty__ has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
lambda-11235 has joined #nixos
fendor has quit [Read error: Connection reset by peer]
dansvo has quit [Remote host closed the connection]
dansvo has joined #nixos
leotaku has quit [Ping timeout: 246 seconds]
<pie_> i have a solution for this courtesy infinisil <tilpner> emily: But only by setting boot.zfs.enableUnstable, which I fear opts into future updates to unstable versions
<pie_> boot.zfs.enableUnstable = assert pkgs.zfsUnstable.name == "zfs-user-0.8.1"; true;
<tilpner> pie_++ infinisil++
<{^_^}> infinisil's karma got increased to 124, pie_'s karma got increased to 5
Soo_Slow has quit [Remote host closed the connection]
<pie_> boils down to some manner of pinning i guess
<adisbladis> pie_: On latest unstable you dont need to do that
<tilpner> adisbladis: But you do on 19.03
<pie_> adisbladis: what do you mean
<pie_> <tilpner> It might not be stable in the future though, which is what worries me
MmeQuignon has joined #nixos
<pie_> what we really want is enableTheUpstreamNewerStablePackageThanks :)
<adisbladis> pie_: zfs and zfsUnstable are the same package now :)
<pie_> adisbladis: ok thats what i thought you meant, but thats entirely coincidental yeah? :P
<adisbladis> pie_: Yeah and it may not be true in the future
<adisbladis> Iirc zfsUnstable was added because of native crypto, but there may be similar cases in the future
<pie_> but yeah since its pinned to the stable version i suppose i could just remove it once i upgrade
<pie_> as opposed to pinning to an unstable or nonexistent version
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66849 → vscod{e,ium}: 1.37.1 → https://git.io/fjF0C
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fjFEr
<pie_> which would defeat the point
<{^_^}> [nixpkgs] @abbradar merged pull request #66853 → steam: Update dependencies for steamrt → https://git.io/fjFE3
<{^_^}> [nixpkgs] @abbradar pushed commit from @c00w to master « steam: Update dependencies for steamrt »: https://git.io/fjFEK
<pie_> so ok yeah what you said makes more sense than i originally thought :P
<pie_> (things adisbladis says usually make sense so i was wondering...(
<{^_^}> [nixpkgs] @abbradar pushed commit from @c00w to release-19.03 « steam: Update dependencies for steamrt »: https://git.io/fjFE6
<qubasa> Did someone look into xpra the x11 isolation layer? Because if I try to start the server my main x11 Server quits and I have a blank screen
<iqubic> adisbladis: Did you seem my questions in #nixos-emacs? I could use some help here.
<qubasa> Because I wanted to have firejail with xrpa on NixOS
<pie_> qubasa: i think uhhhh qyliss may know something about that if they're around
<qubasa> pie_: Thanks for the redirect ^_^
<pie_> im not _sure_ tho :p
dansvo has quit [Ping timeout: 268 seconds]
<aanderse> does anyone here run mpd on nixos?
gentauro has joined #nixos
<iqubic> aanderse: Just ask your question.
<aanderse> iqubic: thats actually it :\
<aanderse> i just tried to install it
<aanderse> it doesn't work
<aanderse> i look through the module
<aanderse> it makes sense that it doesn't work
<aanderse> so... does anyone actually use it? :\
<iqubic> What errors are you running into? How are installing it.
<iqubic> ?
<aanderse> services.mpd.enable = true;
<aanderse> i run pulseaudio
<aanderse> as a user
<iqubic> And what errors do you get when trying to use mpd?
<aanderse> and it looks like mpd as a system service + pulseaudio as a user service doesn't work together out of the box, as documented by several distros
<aanderse> our module has no special casing to take care of this
<aanderse> the errors are permissions
<aanderse> the generated "mpd" user (a system user) can't access pulseaudio as my own user
<aanderse> which... makes sense
<aanderse> so i'm just curios if anyone actually uses the module
<aanderse> because all the errors i'm getting make perfect sense according to several sources of documentation
gentauro has quit [Quit: leaving]
<aanderse> also... bbiab
<iqubic> aanderse: If you want to set the user, you can. Use the "services.mpd.user" option.
<iqubic> it wants the user's name as a string.
<{^_^}> [nixpkgs] @abbradar pushed to master « fetchurl mirrors: move steamrt mirror to another host »: https://git.io/fjFE7
<aanderse> iqubic: but i really shouldn't be passing my own personal user as the username there
<{^_^}> [nixpkgs] @abbradar pushed to release-19.03 « fetchurl mirrors: move steamrt mirror to another host »: https://git.io/fjFEd
<aanderse> because its a systemd *system* service, not a systemd *user* service
<iqubic> I see.
<iqubic> I'm not sure what to tell you.
<adisbladis> aanderse: If you're using home-manager I'd recommend you to try that mpd module
<iqubic> adisbladis: Do you have any idea why my home manager config is refusing to build?
Ariakenom has quit [Quit: Leaving]
<lambda-11235> How do I do `nix-build default.nix` with a different <nixpkgs>?
<clever> lambda-11235: -I nixpkgs=/path/to/nixpkgs
dansvo has joined #nixos
<lambda-11235> thanks. Is there someway to also do something like `pkgs.foo // {version="devel"; src = ./.;}` to use a nixpkgs derivation for development.
<clever> lambda-11235: .overrideAttrs { src = ./.; }
<pie_> does anyone else have problems with the home and end keys not working in nix repl
<tilpner> pie_: Home works, end doesn't
<{^_^}> [nixpkgs] @Infinisil pushed 0 commits to infinisil-test: https://git.io/fjFuT
<pie_> home gives me stuff like 1~, end does nothing
<clever> pie_: ive had that issue as well, havent looked into why yet
<pie_> its been annoying the hell out of me and i havent looked into it yet either
<pie_> for like, months
<clever> pie_: id say start by trying to reproduce it when building nix from git, and then find a version that works and doesnt
<{^_^}> [nixpkgs] @Infinisil pushed 0 commits to infinisil-test: https://git.io/fjFuL
<pie_> clever: its fine if you dont feel like it - ill figure it out, any idea where im failing to remove the disallowedreferences on this?: https://bpaste.net/show/k0VL
<pie_> (requires wxpython 4 to actually run (?) - the end result at least)
<pie_> also sorry its a huge mess (wip...)
<clever> pie_: you probably want to set it to [], rather then use remoteAttrs
<pie_> yeah i was thinking theres probably a better way to do this
xkapastel has quit [Quit: Connection closed for inactivity]
orivej has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @tilpner opened pull request #66855 → nixos/cadvisor: allow passing custom arguments → https://git.io/fjFuO
vika_nezrimaya has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66519 → xfce4-14: 4.14.pre2 -> 4.14 → https://git.io/fj5LY
<{^_^}> [nixpkgs] @worldofpeace pushed 26 commits to master: https://git.io/fjFun
orivej has joined #nixos
Shouou has quit [Ping timeout: 252 seconds]
dansvo has quit [Ping timeout: 245 seconds]
<pie_> clever: so why did yours work but mine didnt
<{^_^}> [nixpkgs] @abbradar pushed to master « flashplayer: 32.0.0.223 -> 32.0.0.238 »: https://git.io/fjFuc
<pie_> still building, but unless i missed something in show-derivation it should be fine
<{^_^}> [nixpkgs] @abbradar pushed to release-19.03 « flashplayer: 32.0.0.223 -> 32.0.0.238 »: https://git.io/fjFuC
luigy has left #nixos [#nixos]
sshow has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
sondr3 has quit [Quit: WeeChat 2.4]
<pie_> clever: "narrator: it didnt work"
jnisch has quit [Ping timeout: 272 seconds]
<arcnmx> oh that does remind me was wondering if it's possible to build nix(repl) with readline? it's always really annoying to use
<clever> arcnmx: its using editline
<symphorien> arcnmx: yes, debian does it
hmpffff has quit [Quit: nchrrrr…]
oborot has quit [Ping timeout: 272 seconds]
liberiga has joined #nixos
<zmlww> Is there any easy way to find where nix functions are defined? Similar to, say, ghci's `:i`.
<arcnmx> oh thanks yeah, there's an ifdef at least! I should track it down in nixpkgs to see whether there's an option there...
<arcnmx> I'm not familiar with editline but beyond occasional term issues it doesn't seem to like my inputrc (if it even supports it?)
<{^_^}> [nixpkgs] @samueldr merged pull request #66850 → nixos/sd-image: Increase default firmware partition size → https://git.io/fjF0B
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to master: https://git.io/fjFuR
kp__ has quit [Quit: WeeChat 2.5]
<arcnmx> oh hm or I need to duplicate I guess and configure it separtely? not immediately clear to me which is better.
MmeQuignon has quit [Ping timeout: 250 seconds]
<pie_> arcnmx: pung me if you get that to work lol
<pie_> ping
rprije has joined #nixos
MmeQuignon has joined #nixos
<pie_> ...im confused. using // to override disallowedReferences doesnt work but .overrideDerivation does
<pie_> does // not work on derivations or something?
<pie_> i didnt do a minimal repro yet so im guessing my premise is wrong somewhere
<clever> pie_: // doesnt change the derivation
<pie_> clever: whyyy
<clever> pie_: the derivation is the arguments to builtins.derivation
<clever> your using // on its return value
* pie_ scratches head
<pie_> oh.
<pie_> i guess that makes sense
<pie_> so what the heck is the return value and why doesn // fail on it
<clever> the return value is also a set
<clever> and you can add whatever you want to it
<clever> but that wont impact the build
<pie_> how does that work
<clever> > let set = { outPath = "foo"; }; in "${set}"
<{^_^}> "foo"
<clever> > let set = { outPath = "foo"; }; in "${set // { a = 42; }}"
<{^_^}> "foo"
<pie_> i guess that makes sense
<{^_^}> [nixpkgs] @Infinisil pushed to haskell-updates « haskellPackages.idris: Fix build »: https://git.io/fjFug
<pie_> but those dont sound the same
<clever> behind the scenes, stdenv.mkDerivation will modify the set some, then pass it to builtins.derivation
<clever> then it will use // to modify the return value, and add a .overrideAttrs function, which an reference the original set
<clever> so you can re-run builtins.derivation with a modified set
<pie_> that makes sense i think
<pie_> ok so youre telling me its not an obscure feature that you can // onto derivations
<pie_> huh. (ive done that before)
<pie_> and noone told me
<pie_> or, well, maybe its obscure, but i didnt know its used in such an everyday thing
<pie_> lots of magic in nixpkgs
<infinisil> I think from Nix's evaluation side, a derivation is just an attrset
<pie_> infinisil: thats kind of why im confused (but im also tired)
<pie_> infinisil and clever always show up at the same time, im starting to be suspicious they are the same person
<selfsymmetric-mu> they're horizontally scaling
<infinisil> Hehe
<samueldr> having met both of them, I doubt it...
<pie_> samueldr: whaaat
<clever> last nixcon
<pie_> oh i didnt know infinisil was at last nixcon, makes sense
<ryantrinkle> what could cause the virtual ethernet adapter to reliably fail to come up for just one nixos container (out of several running on the same machine)?
<pie_> ryantrinkle: is the container running at all? (i imagine yes, but you never know)
<ryantrinkle> pie_: it started, but then couldn't finish booting due to being unable to access the internet (since the ve- failed to come up)
<ryantrinkle> then it was terminated for failing to boot in time, i think
<{^_^}> [nixpkgs] @aanderse merged pull request #66399 → metabase: service module and test → https://git.io/fj7BH
<{^_^}> [nixpkgs] @aanderse pushed 4 commits to master: https://git.io/fjFua
<pie_> clever: what you said makes me thing the output attrset of a derivation...im having a hard time phrasing this; so how does nix know whats part of the derivation and whats extra arguments
<pie_> does it save the derivation object and just namespace the set arguments
shibboleth has quit [Remote host closed the connection]
<pie_> or not even namespace, just save a derivation object and keep it around somewhere tagged to the attrset?
<pie_> like, this stuff is purely functional, so te only way it can get used is at the end result..
<pie_> (right?)
<clever> > let original = { a = 42; }; set = original // { modify = new: original // new; }; in set
<{^_^}> { a = 42; modify = <CODE>; }
<clever> you can now do set.modify { a = 43; } to mutate it
<clever> or set.modify { b = 43; } to add an attr
<pie_> im with you so far
sudoforge has quit [Ping timeout: 245 seconds]
<pie_> ok i think im getting there
<pie_> yeah no, so is there a .drv attribute that contains the actual derivation or something
<pie_> and builtins.derivatin just returns args // { drv = thedrv; }
<pie_> i guess ill need to look into this better at some point
<pie_> nix is dense
shibboleth has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
mbrgm has joined #nixos