gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<aszlig> techieAgnostic: btw. are you using the lvm just for not needing to enter the passphrase more than once?
<aszlig> or do you actually use the lvm features?
kisik21 has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #44527 → [WIP] sage: 8.3 -> 8.4 → https://git.io/fNX76
<techieAgnostic> aszlig: i just wanted an encrypted root and the guide i was looking at used it
<techieAgnostic> im not too knowledgable on it outside of that
<aszlig> techieAgnostic: you could do that without LVM if you chain the luks-containers
hakujin1 has joined #nixos
<techieAgnostic> hmm interesting
<ldlework> I honestly don't have any idea what could be adding those store paths to PATH
<ldlework> really disconcerting
hakujin1 has quit [Ping timeout: 256 seconds]
goibhniu has quit [Ping timeout: 240 seconds]
<aszlig> ldlework: you're not in a nix-shell, right?
<ldlework> nope
<ldlework> just opening either xterm or kitty
<kisik21> samueldr: Updated to unstable... Firefox fonts got all messy, rofi cannot set locale (works with LC_ALL=C though), and some emojis are colored, but still big.
<ldlework> when i uninstalled kitty from nix-env it stopped showing up in PATH when i open xterm
<ldlework> very strange
<ldlework> i'm going to try to clean out my nix-env
<ldlework> because i should do that anyway
lord| has quit [Ping timeout: 240 seconds]
mayhewluke has quit [Ping timeout: 264 seconds]
lord| has joined #nixos
cryptopsy has quit [Quit: WeeChat 2.1]
johnw has joined #nixos
goibhniu has joined #nixos
mayhewluke has joined #nixos
goibhniu has quit [Ping timeout: 256 seconds]
<aszlig> ldlework: try starting a shell with set -x, eg. if you use bash: bash -x
<aszlig> ldlework: this should show you what's going on and why those store paths end up in $PATH
bennofs has quit [Quit: WeeChat 2.0]
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @samueldr opened pull request #44528 → doc: Fixes mentions of mention-bot. → https://git.io/fNX5k
siraben has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
sir_guy_carleton has joined #nixos
Pneumaticat[m] has left #nixos ["User left"]
goibhniu has quit [Ping timeout: 256 seconds]
<ldlework> aszlig: any way to put that in a file? the output is very ver large
<aszlig> ldlework: sure, using bash -x 2> somefile
<aszlig> ldlework: but keep in mind to remove any sensitive data when you're pasting this
<ldlework> aszlig: that just hung forever and the file has no content
<iqubic> johnw: I'm trying to get your use_nix.sh script to work.
<iqubic> And I'm not sure what value to give for NIXPKS on my system.
<kisik21> Does anyone know how to solve this: (termite:6727): Gtk-WARNING **: GModule (/nix/store/fmxk52iw6hkkdsnizvmwcsd43zgsfmb2-ibus-with-plugins-1.5.17/lib/gtk-3.0/3.0.0/immodules/im-ibus.so) initialization check failed: GLib version too old (micro mismatch)
<kisik21> and iBus switching not working because of this thing?
hakujin1 has joined #nixos
Kim has joined #nixos
Denommus has joined #nixos
galaxite has joined #nixos
hakujin1 has quit [Ping timeout: 265 seconds]
galaxite has left #nixos [#nixos]
<iqubic> Well, this is being stupid.
v0|d has quit [Remote host closed the connection]
phreedom_ has quit [Remote host closed the connection]
ericsagnes has joined #nixos
<iqubic> https://paste.pound-python.org/show/6bDg1jDOYWT0ul1en3cD/ is a shell.nix that I want to use.
<iqubic> However trying to invoke that shell.nix requires the packages to be updated. Makes sense since I used this shell.nix the other day.
<iqubic> However, the updating of the packages is failing for some stupid reason that I don't understand.
<iqubic> Anyone know how to fix this issue?
<Drakonis> don't use python 2 by the way
<iqubic> drakonis: Why?
<iqubic> Why is that a bad thing?
<Drakonis> because it will be deprecated soon
<iqubic> How soon?
<Drakonis> 2020
<craige[m]> Soo enough to not write new code in Python 2 :-D
<Drakonis> its enough time to stop using it
<kisik21> 2020 will be the death of Python 2, but most projects will deprecate it sooner probably
<Drakonis> that has been happening for a while now
<{^_^}> [nixpkgs] @Infinisil merged pull request #44058 → trackpoint: Make the device name configurable → https://git.io/fNBnA
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fNXdG
phreedom has joined #nixos
andreabedini has joined #nixos
Kim has quit [Quit: WeeChat 2.0]
Kim has joined #nixos
<aszlig> ldlework: yah, it should wait for input, so just pressing ctrl+d should stop it
<aszlig> ldlework: and the reason there is no output is because if bash detects that it's not on a terminal (due to the redirection) it won't do initialization
<ldlework> aszlig: heh
sigmundv has quit [Ping timeout: 256 seconds]
<ldlework> i'm using zsh btw
<aszlig> ldlework: so this is better: bash -i -x 2> somefile
<aszlig> ldlework: well, then s/bash/zsh/
<ldlework> aszlig: that did the trick
hakujin1 has joined #nixos
<aszlig> zsh is even better, because it actually prints out the sourced file name
<ldlework> aszlig: I mean, +/home/ldlework/.config/zsh/.zshenv:5>
<ldlework> but the only thing in there is
<ldlework> export PATH="$HOME/bin:/usr/local/bin:$PATH:$HOME/src/nix-virtualenv/bin"
<aszlig> ldlework: okay, but no store paths in it, right?
<ldlework> nope
Kim has quit [Quit: WeeChat 2.0]
<aszlig> ldlework: what's your $SHLVL?
<ldlework> 3
<ldlework> well
<ldlework> 2
<aszlig> ldlework: your terminal is xterm, right?
<ldlework> i was in one of those bash sessions
<ldlework> aszlig: well xterm or kitty
<ldlework> i am trying to move to kitty
<aszlig> ldlework: the problem happens in both, right?
<ldlework> yeah
<aszlig> ldlework: okay, then: xterm -e zsh -x
hakujin1 has quit [Ping timeout: 265 seconds]
<aszlig> ldlework: alternatively using -l to bash or zsh would work in a similar vein, but just to be sure =)
n0qqe has joined #nixos
<ldlework> aszlig: we have the problem with the output being too much again heh
<ldlework> and just adding the piping before didn't work
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
noqqe has quit [Ping timeout: 264 seconds]
n0qqe is now known as noqqe
<aszlig> ldlework: okay, then: xterm -xrm xterm*saveLines:10000 -e zsh -x
copumpkin has quit [Read error: Connection reset by peer]
<ldlework> aszlig: hmm zsh: no matches found: xterm*saveLines:10000
<ldlework> I tried "savelines" too
<aszlig> err... my bad
<aszlig> ldlework: xterm -xrm 'xterm*saveLines:10000' -e zsh -x
<ldlework> i see
copumpkin has joined #nixos
hakujin1 has joined #nixos
<ldlework> aszlig: okay what were we looking for?
<ldlework> the PATH still looks the same
<aszlig> ldlework: okay, no store paths in the trace?
<ldlework> no there are
<aszlig> ldlework: (store paths in conjunction with PATH of course)
<ldlework> yeah PATH is filled with /nix/store paths
<ldlework> including kitty
hakujin1 has quit [Ping timeout: 256 seconds]
<ldlework> aszlig: so in my zshenv i do export PATH="$HOME/bin:/usr/local/bin:$PATH:$HOME/src/nix-virtualenv/bin"
<ldlework> and so the output of the command you're having me do claims that all those paths come from this line
johnw has quit [Ping timeout: 256 seconds]
<ldlework> i wonder if I removed this bit from my zsh config, if this -x thing will tell us the real source of the paths?
<aszlig> ldlework: that only means that $PATH already contained them, right?
<ldlework> yes
Supersonic has quit [Ping timeout: 256 seconds]
<aszlig> ldlework: well, then it's probably set one level higher
<aszlig> ldlework: or two that is
<aszlig> ldlework: are you on nixos?
<ldlework> yeah
<ldlework> but i also use home-manager
<ldlework> i am using the zsh module from home-manager
lassulus_ has joined #nixos
<aszlig> ldlework: okay, now that info would have been useful in the first place :-D
<ldlework> oh no
<ldlework> aszlig: why's that?
<ldlework> sorry to wasted any time doh
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
Supersonic has joined #nixos
<Drakonis> nixos-unstable-small seems to be stuck atm?
<Drakonis> its stuck on commits from 2 days ago
alex`` has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @cdepillabout opened pull request #44529 → Fix gi vte haskell pkg → https://git.io/fNXFt
silver has quit [Read error: Connection reset by peer]
kisik21 has quit [Ping timeout: 264 seconds]
<aszlig> techieAgnostic: hm, looking through the code it isn't apparent at the first glance
<aszlig> techieAgnostic: do you get a PATH like this also if you log in VT as root?
<Enzime> ,howoldis
<Enzime> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<Enzime> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unstable which-channel whomade
<Drakonis> ,NUR
<{^_^}> Nix User Repository: User contributed nix packages, https://github.com/nix-community/NUR
<Drakonis> ,whomad
<{^_^}> drakonis: Did you mean whomademe?
<{^_^}> #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<Drakonis> yes i've checked it
<Enzime> "nixos-unstable-small" "Last updated 16 hours ago"
siraben has quit [Read error: Connection reset by peer]
<Drakonis> you should check the commit it is currently building
<Drakonis> it last succeeded
<Drakonis> not just the date
<Drakonis> its here right now.
<infinisil> ,stuck
<infinisil> Enzime: Apparently it's that ^^
<Drakonis> i went to check hydra and the build hasn't succeeded due to issues with the tarball
<Drakonis> by the way, why does the logs look like a garbled mess?
<Drakonis> journald's not getting piped correctly?
<infinisil> ,howoldis = https://howoldis.herokuapp.com/
<{^_^}> howoldis defined
<samueldr> drakonis: weird accusation
<samueldr> journald isn't used in the hydra/nix build stack
<Drakonis> it isn't?
<Drakonis> i stand corrected
<Drakonis> nothing against systemd, its just that checking the hydra logs seems to be broken
<samueldr> it's the way the logs (and other artifacts) are compressed on S3
<Drakonis> oic
<samueldr> they're served using brotli
<samueldr> which the browser should be able to decode
<Drakonis> i'm running firefox, maybe i should try chromium
<samueldr> (assuming chrome at least, firefox should too I think)
<samueldr> drakonis: it's a mess on chrome too right now
<Drakonis> ah, ew.
<samueldr> it's probably missing a header or some other toggle :(
<Enzime> I'm using QtWebEngine
<samueldr> (haven't had the time to check)
<Enzime> (Blink based)
<Enzime> still messed up
<infinisil> Huh, that's really weird
<infinisil> the log thing
<Enzime> this build is queued
<Enzime> and the commit is from 10 hours ago
<Drakonis> i'm aware
<Drakonis> ah, sucks.
<Drakonis> but that's fine
<ldlework> aszlig: heh so what is your conclusion
<samueldr> you could realistically check the raw url, curl $url | brotli -d
<samueldr> (unverified)
<infinisil> Oh, ofborg currently tries to build stdenv or llvm or so on master..
<infinisil> Which means every PR's build will fail
<Drakonis> rip
<samueldr> woo wee, that's going to sting
* infinisil checks that it wasn't his fault
<Drakonis> bring out the burn lotion
<infinisil> I did merge a bunch today, but none that involved stdenv or llvm
<Drakonis> is it fine if i push multiple updates in a single pull request?
nbathum has joined #nixos
<Drakonis> its for quakespasm and the vulkan variant
<aszlig> ldlework: yes or no? =)
<samueldr> make sure your commits are in order drakonis and it should
<samueldr> (one commit per package per update)
<ldlework> aszlig: i don't see a question from you, sorry :(
<iqubic> So I updated my shell.nix, and now I'm getting completely different errors.
<Drakonis> yeah i've done it per package
<aszlig> ldlework: oops, sorry... i highlighted techieAgnostic instead of you
<Drakonis> mostly just getting into the swing
<iqubic> So I'm a bit puzzled at what's going on here.
<samueldr> drakonis: then it should be fine, you could always add details into the PR about why it's updating more than one package if necessary
<aszlig> ldlework: do you get a PATH like this also if you log in VT as root?
<infinisil> Ah, this is the one that makes llvm rebuild: https://github.com/NixOS/nixpkgs/commit/76a713bd299ff9bd63880c4be25a8335f5082322
<Drakonis> actually i'm not sure how to split it
<infinisil> Didn't go through a PR..
<Drakonis> otherwise i would've done two pull requests
<samueldr> infinisil: naughty!
<infinisil> But it's understandable, it's just a patch, and nothing that seems related to llvm
<iqubic> Anyone know how to fix my issues?
<infinisil> It's not a direct dep of llvm
hakujin1 has joined #nixos
<Drakonis> iqubic, have you tried just creating an nix shell environment through
<Drakonis> nix-shell -p <package name 1> -p <package name 2> and so on
<iqubic> no.
<Drakonis> maybe it'll save you time
<infinisil> llvm depends on cmake depends on libarchive depends on sharutils
<iqubic> but I want to make sure that my deps are pulled from unstable.
<infinisil> So it seems that everything with cmake needs to be rebuilt too, which is a lot
<Drakonis> run unstable then?
<infinisil> Nah that's not the problem
<ldlework> aszlig: no the path is clean for root and ldlework in VT
<samueldr> infinisil: so uh, argument for always PRing?
<iqubic> drakonis: Turns out the issue is tensorflow-tensor board.
<samueldr> I wonder what ofborg would have seen
<infinisil> samueldr: Yeah
<iqubic> I comment that out and stuff just works.
<aszlig> ldlework: okay, then how does your x session setup look like?
<ldlework> aszlig: where do I look
<aszlig> ldlework: in your configuration.nix
<infinisil> samueldr: Hmm.. It doesn't show a count of how many rebuilds there are (other than the >500 one)
<samueldr> infinisil: I dropped this earlier, dunno if the numbers are right https://gist.github.com/samueldr/13a87914a4c8b3b48ad962126abf61bf
<aszlig> ldlework: can you pastebin that without secrets?
<samueldr> infinisil: still, showing >500 could have changed the way it's handled?
<iqubic> Is it possible for me to get tensorflow-tensorboard for python3?
<samueldr> I may be overrepresenting the non-PR commits, but is's *hard* to be sure due to some rebase to master
<infinisil> samueldr: Hmm probably, I wish there was a >5000 marker or so
<samueldr> and I'm not 100% positive that PRs to staging are correctly handled (but pretty sure)
andreabedini has joined #nixos
<infinisil> Or that it would show the number somewhere
<infinisil> samueldr: What do you mean by that?
hakujin1 has quit [Ping timeout: 276 seconds]
<samueldr> that link I just posted
<infinisil> Ah
<samueldr> it's the amount of commits that skipped the PR process, per ranges
<samueldr> (we're still missing 18.03..18.09 obviously
<Drakonis> iqubic, yes?
<samueldr> (I didn't want to try and stats a moving target)
<ldlework> aszlig: here are some relevant modules https://gist.github.com/dustinlacewell/76f15793bc88bb4ef34a6861e90e7590
<iqubic> drakonis: Clearly I can't.
<ldlework> aszlig: here is the top-level expression https://gist.github.com/dustinlacewell/73c8f62723f4ea4c36e2044f8d6c0659
<iqubic> That only works because I commented out tensorflow-tensorboard.
<iqubic> Unless it has a different name, IDK what's wrong.
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<iqubic> If I uncomment tensorflow-tensorboard, I get this:
pie_ has joined #nixos
<Drakonis> hmm
<Drakonis> nix run nixpkgs.python2 nixpkgs.python2Packages.numpy nixpkgs.python2Packages.matplotlib nixpkgs.python2Packages.tensorflow nixpkgs.python2Packages.tensorflow-tensorboard
<Drakonis> run this
<aszlig> ldlework: hm, try to grep for "kitty" in your configurations
<iqubic> drakonis: I decided to use python3 at your advice.
<Drakonis> its breaking because some library that tensorflow-tensorboard depends on, doesn't like the default python 3 version
<iqubic> everything works in python2
<iqubic> Wait. I feel stupid.
<iqubic> From the database of all pip packages I found the entry for tensorboard.
<iqubic> On that entry is the following information:
<iqubic> Requires: Python >= 2.7, != 3.0.*, != 3.1.*
<iqubic> Looks like I will have to live without that. Oh well.
<infinisil> Those are just older 3 versions
<infinisil> It doesn't say that it doesn't support the latest 3.x, which is like 3.7 or so
<iqubic> Right...
<iqubic> Looks like they might actually have a version for python3.
<iqubic> Not sure why things are failing than.
<Drakonis> perhaps the package should be updated?
<ldlework> aszlig: there really is nothing
<Drakonis> actually
<iqubic> drakonis: Which package should be updated?
<Drakonis> you want tensorboard
<iqubic> No, I don't.
<iqubic> I tried that.
<Drakonis> package tensorboard instead
<iqubic> I got an error saying that tensorboard was undefined.
<aszlig> ldlework: even not in the home manager configs?
<ldlework> aszlig: another thing that shows up in path is /nix/store/2q6d3wph3d1649adji65ahssd8xwq1rp-qtile-0.10.7/bin which is my window manager
<iqubic> I know.
<ldlework> aszlig: services.xserver.windowManager.qtile.enable = true;
<Drakonis> the new one should be added to the repository then
<ldlework> being the only line in my config anywhere
<ldlework> that refers to qtile
<Drakonis> shouldn't be too hard
<iqubic> But if I tell nix-shll to look for tensorboard, then it spits out undefined variable.
<aszlig> ldlework: but that doesn't depend on kitty, so where does that come from?
<ldlework> it is my window manager
<aszlig> ldlework: i know... i mean: if qtile would be the issue, why is kitty there?
<ldlework> there are a number of things in PATH that point to bin/ folders in the store
<ldlework> aszlig: i'm just saying there are a number of things from the store in my PATH
<ldlework> not just kitty
<ldlework> python, libfreetype,
<aszlig> ldlework: yeah, but i guess kitty is the easiest to track down as it's not referenced elsewhere in nixpkgs
<iqubic> drakonis: Do you think I could write an overlay to fix this? I don't really want to mess with forking nixpkgs and editing that code, then linking my shell.nix to the new version of nixpkgs I created.
<ldlework> samueldr: kitty-0.8.0, imagemagick-6.9.9-34, xsel-unstable-2016-09-02, virtualgl-2.5.2, python-2.7.14, qtile-0.10.7, python2.7-setuptools-38.4.0, cairo-1.14.10-dev, freetype-2.7.1-dev, bzip2-1.0.6.0.1-bin, libpng-apng-1.6.34-dev, fontconfig-2.12.1-bin, expat-2.2.5-dev, glib-2.54.3-dev, libdrm-2.4.90-bin
<Drakonis> you seem to be missing what i just said
<samueldr> hi, aszlig may prefer the reply :)
<Drakonis> add it then send it upstream
<Drakonis> everyone wins
<ldlework> sorry samueldr
<ldlework> :)
<samueldr> no worries
<iqubic> drakonis: That sounds like a lot of work.
<ldlework> aszlig: i'm almost getting the impression that these are the dependencies of the terminal emulator themselves
<ldlework> aszlig: that these things are on the path because the terminal emulators have some wrapper script
<Drakonis> it really isn't
<ldlework> that adds all of this to the path when starting the terminal emulator
<ldlework> and therefore they show up in my shell path
<ldlework> (blind guess!)
<Drakonis> its only a lot of work if you're unwilling to do it
<iqubic> drakonis: If I were to do that I'd have to fork nixpkgs, code my fix, and then make a PR.
<iqubic> How hard would that be?
<aszlig> ldlework: but you've been using xterm, right?
<Drakonis> oh yes, code a fix that's just looking up the entry and fixing it
<iqubic> Right. LOL.
<iqubic> Which repo do I fork?
<aszlig> ldlework: another try would be to look at the dependency graph of your current system
<Drakonis> hey folks, is it fine if i tell this guy to do a shallow copy?
<aszlig> ldlework: nix-store -q --tree /run/current-system
<Drakonis> a shallow clone instead of a full clone?
<iqubic> Do I clone NixOS/nixpkgs-channels or NixOS/nixpkgs?
<Drakonis> no, do nixpkgs
<iqubic> drakonis: How long would a full clone take?
<ldlework> aszlig: when i run xterm, the following dissapear from $PATH: kitty-0.8.0, imagemagick-6.9.9-34, xsel-unstable-2016-09-02, virtualgl-2.5.2
<Drakonis> how fast is your internet?
<Drakonis> the full clone is a gigabyte or so
<iqubic> Fast enough.
<Drakonis> its everything
<iqubic> I'm fine cloning all of everything.
<Drakonis> also, be a dear and do a branch
<ldlework> aszlig: Which seem like they might be specific to kitty. I noticed that cairo is in there. I wonder if those are the dependencies for my window manager qtile, which is why it shows up in both xterm and kitty
<aszlig> drakonis: why should anobody have anything against it? you can still fetch the rest afterwards if needed
<iqubic> drakonis: Should I fork the repo first?
<Drakonis> yes do it
<ldlework> aszlig: that's a lot of data!
semilattice has quit [Ping timeout: 248 seconds]
<aszlig> ldlework: well, it's your whole system (except home-manager of course)
<aszlig> ldlework: even if those disappear there are still others lurking around, right?
<Drakonis> aszlig, was curious whether it was frowned or not
<Drakonis> but for the purpose of packaging it is fine
<Drakonis> i suppose
<aszlig> drakonis: why should it be frowned upon?
<ldlework> aszlig: yes the following seem constant: python-2.7.14, qtile-0.10.7, python2.7-setuptools-38.4.0, cairo-1.14.10-dev, freetype-2.7.1-dev, bzip2-1.0.6.0.1-bin, libpng-apng-1.6.34-dev, fontconfig-2.12.1-bin, expat-2.2.5-dev, glib-2.54.3-dev, libdrm-2.4.90-bin
<ldlework> which look a lot like qtile dependencies, the window manager
<Drakonis> it shouldn't but i asked anyways
<aszlig> ldlework: if you do a nixos-rebuild build-vm and test it there, is it also the case?
<ldlework> i've never done this
<ldlework> is it dangerous at all?
<aszlig> ldlework: only if you have a kernel with a buggy KVM implementation
<Drakonis> wait, how do you get an buggy implementation?
<aszlig> drakonis: running kernels during the merge window
<Drakonis> ah right, that's no good
<Drakonis> unless there's an real use case like developing kernel code, i wouldn't do that
<ldlework> oh man
<Drakonis> iqubic, take a look at this https://nixos.wiki/wiki/Nixpkgs/Update_a_package
<ldlework> entering that vm scared me
<aszlig> drakonis: after years of eating every single bug i got tired of it and row run linux_latest only
<Drakonis> speaking of buggy kvm implementations
<Drakonis> gotta ask, how do you actually run linux-latest?
<Drakonis> i haven't figured how to set up the new kernel release
<Enzime> how do I check if a commit was merged via pull request?
<Enzime> or if it was just committed to master
<aszlig> ldlework: the only thing that gets written to disk is the qcow image in $PWD
<Drakonis> there's a new vm module now
<ldlework> this is pretty cool
<Drakonis> a framework
<Drakonis> Enzime, just check your github profile for that
<ldlework> so far after logging in i just got a white screen
<aszlig> ldlework: it's $hostname.qcow2
<Enzime> drakonis: explain?
<Drakonis> as for me, i have to push three pull requests
<Drakonis> your timeline shows whether it was merged or not
<iqubic> how do I format a github url in such a way that I'm using ssh?
<Enzime> drakonis: no I'm asking
<Enzime> I have a commit (by someone else)
<Enzime> I want to know if it was merged via PR
<Drakonis> oh, ah, i see
<Enzime> or if they committed straight to master
<Enzime> if they did the latter
<Enzime> then I get to be angry at them
<Drakonis> do you have their username?
<Enzime> :)
orivej has quit [Ping timeout: 240 seconds]
<Enzime> MP2E: ^
<aszlig> ldlework: hm, let my try qtile in a vm to see whether i can reproduce this
<ldlework> the output says it is formatting a thing
<Drakonis> ph
<Drakonis> oh you mean this?
<ldlework> no idea if that's what it's doing *now* though
<iqubic> Well, here I go cloning all of nixpkgs.
<iqubic> And I'm 25% done already.
<Drakonis> read the wiki page while you're on it
<Drakonis> it'll help you
<Enzime> drakonis: that won't show merge commits
<Drakonis> but your task right now is to clean up the old tensorboard package and repurpose it for the new one
<Drakonis> i noticed
<Drakonis> thanks github
<ldlework> aszlig: how is this even suppose to work anyway? it doesn't have any of my configuration from home manager for example
<ldlework> it doesn't have my /nixcfg directory
<ldlework> so did it just nixops a vm with my nixos config and boot it?
<aszlig> ldlework: it shouldn't have, that's the whole point
<ldlework> i don't think that would work..
<Drakonis> this looks like master
<ldlework> maybe this white blank screen is just default qtile? I can't seem to get any of the default keys to work
<Drakonis> Enzime, this is master, yes.
<Enzime> drakonis: yes it is master
<Drakonis> commited straight into master
<Enzime> drakonis: what tells you that?
<Drakonis> merged usually shows "merged with"
<Enzime> drakonis: not necessarily
<Drakonis> okay sure
<Enzime> all of those commits were merged in
<ldlework> aszlig: in general, should i use buildvm to sort of harden my nixos config for reproducability?
<andrewrk> I'm trying to run a vulkan hello world example and it's segfaulting
<aszlig> ldlework: well, ideally you'd run nixos vm tests
<andrewrk> is this perhaps nixos related? I'm using the glfw and vulkan-loader packages
<andrewrk> the segfault is in the driver
<andrewrk> well it was, and then I did `nixos-rebuild switch --upgrade` (on the unstable channel) and now it's in ___longjmp_chk in glibc
<ldlework> aszlig: I should probably move the rendering of ~/.config/qtile/qtile.py to my nixos configuration huh?
<andrewrk> anyone know of another channel I could ask this question in?
<ldlework> So that I have a usable system even without home-manager
<MP2E> Enzime: ah yes i did commit straight to master. Did that cause a problem? I can revert right now if that'd be the best course of action.
<MP2E> didn't mean to cause issues but it's a case of 'it works on both my machines'
<MP2E> can use more discretion in the future though.
<Drakonis> toldja
<aszlig> ldlework: there we go... it's qtile
<ldlework> oh you like solved the mystery?
blahdodo has quit [Quit: Bye bye]
<aszlig> ldlework: it *might* have something to do with pkgs/applications/window-managers/qtile/0002-Restore-PATH-and-PYTHONPATH.patch
<aszlig> ldlework: but it's just a wild guess
<Enzime> drakonis: what I wanted to know is how to figure out if it was committed straight to master
<Enzime> but it wasn't clear at all from your method ;p
<Drakonis> usually, merge requests are marked as such
<Enzime> drakonis: as I said, my commits were merged in
<Drakonis> direct commits are normal
<Enzime> and they weren't marked
<Enzime> MP2E: I think you should always make PRs
<Enzime> especially now that we have Graham's bot building stuff
<Enzime> this breaks on Darwin
<Enzime> and it's the reason why the nixpkgs-unstable channel is behind
<Drakonis> no, its behind because one of our folks did a bad thing and broke it
<Drakonis> poor hydra
<ldlework> aszlig: why would that draw in the terminal emulator requirements into the PATH
<MP2E> ahh I see, didnt' realize that, i'll revert it.
<Drakonis> i need to do rclone browser next next
blahdodo has joined #nixos
<Drakonis> anyone got an quick and dirty cmake qt build?
<{^_^}> [nixpkgs] @MP2E pushed to master « Revert "mariadb: 10.2.16 -> 10.3.8" »: https://git.io/fNXN8
<MP2E> done, sorry about the trouble.
jperras has joined #nixos
<MP2E> i'll make sure to make prs in the future :p
<Enzime> MP2E: :)
<Enzime> it'd be cool if Hydra created GitHub Issues
<Drakonis> where's that "learn something every day" video
<Enzime> whenever a build started failing
<Enzime> and it tagged maintainers + committer
jperras has quit [Client Quit]
<Drakonis> gotta work on that then
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon3 is now known as Mateon1
<{^_^}> [nixpkgs] @tgharib opened pull request #44532 → xtrigger: init at v0.002 → https://git.io/fNXNi
<aszlig> ldlework: no idea... i'd suggest opening a bug report and pinging @kamilchm (the maintainer of qtile in nixpkgs)
<Drakonis> hmm, how weird, updating gzdoom has led to an llvm build
<Drakonis> did mesa change?
<Drakonis> oh boy, its getting pulled by extension
<{^_^}> [nixpkgs] @Chiiruno opened pull request #44533 → linux_testing_bcachefs: 4.15.2018.04.14 -> 4.15.2018.08.03 → https://git.io/fNXAJ
mayhewluke has quit [Ping timeout: 240 seconds]
<Drakonis> oh boy, a cmake patch broke everything, naughty.
<iqubic> What are the rules for submitting PRs to nixpkgs?
<ekleog> hmm… but aren't patches to cmake supposed to be on staging?
<ekleog> iqubic: there's a PR template, if you start opening a PR you'll see the list of checkboxes, try to tick as many of them as possible
<iqubic> So I assume pythonWithPackages pulls modules from development/python-modules?
<iqubic> Where can I go to see the definition of the buildPythonPackage funtion?
<ekleog> git grep 'buildPythonPackage ='
<ekleog> works for pretty much all “where can I go to see the definition of [function]” in nixpkgs :)
<{^_^}> [nixpkgs] @tgharib closed pull request #44532 → xtrigger: init at v0.002 → https://git.io/fNXNi
<ekleog> and for your previous question, dunno, but you can try adding a fake package like `myFakePackage = builtins.trace "hit my fake package" {};`, try referencing it and see if the trace message appears -- if it does, then yes
mayhewluke has joined #nixos
<iqubic> That really does look like it should just work when I use python 3
<iqubic> But it doesn't.
<iqubic> Blows up in my face when I try: https://paste.pound-python.org/show/yNDyPPPsF3adE5iooz2W/
<Drakonis> you don't trace nix-shell
<ekleog> … wait, did you even read this error message?
<iqubic> ekleog: No.
<Drakonis> reading is good, do that.
<iqubic> ah.
<Drakonis> seriously, read it.
<Drakonis> unknown command flag
<iqubic> Yeah. I saw.
hakujin1 has joined #nixos
<Drakonis> you're not building it right either
<Drakonis> read the wiki articles please
<iqubic> How am I not building it correctly?
<iqubic> See the second paste for the shell.nix I'm trying to use.
<iqubic> How is any of this wrong?
<ekleog> this paste you just sent us https://paste.pound-python.org/show/zxv0mcVrZkbrg3dnhyM2/ tells you, in its last line, what is wrong
<iqubic> Right. But I never specified that in my shell.nix or anywhere else.
<iqubic> I don't have a global python install.
<Drakonis> i thought i told you to update the tensorboard package
<Drakonis> and it is a dependency for the package
<Drakonis> in which it doesn't have support for newer python releases
<iqubic> drakonis: I was going to do that, but I started looking at the code in nixpkgs and got really confused.
hakujin1 has quit [Ping timeout: 265 seconds]
<Drakonis> confused at what though?
<iqubic> I have no idea how to go about updating the tesnsorboard package because I don't understand how nix builds python packages.
<Drakonis> i gave you some reference articles to understand how this works
<iqubic> I was away at dinner when you sent them. Let me grep my logs.
<Drakonis> look up nixos.wiki
<iqubic> I have.
<iqubic> Is that what I want/
<Drakonis> https://nixos.org/nixpkgs/manual/#python relevant to your predicament
<Drakonis> this explains how python packages work
<ekleog> iqubic: in addition to drakonis' links, reading the manual/wiki is never lost time, even if that's not directly what you want, if it looks more or less close to what you're trying to do you should read it :)
freeman42x]NixOS has quit [Ping timeout: 256 seconds]
<iqubic> ekleog: I have three places in the manual that contain revelent information to my task.
<iqubic> Well some of the things I'm looking at are on the wiki.
jmeredith has joined #nixos
hakujin1 has joined #nixos
<Drakonis[m]> i recommend referencing other packages as well
<iqubic> I think the first place to begin is to figure out which file is being downloaded when I tell nix to build tensorboard.
hakujin1 has quit [Ping timeout: 276 seconds]
<Drakonis[m]> i think you're missing the point of this exercise
<iqubic> What is the point of this exercise?
<Drakonis> it is to update the package
<iqubic> Right.
<iqubic> Which seems simple, but I'm not sure what lines of code need to change.
<Drakonis> look at what i linked you
<Drakonis> i updated a few packages today through the info in the article
<iqubic> Which article?
<Drakonis> wiki articles, both of them
vmandela has joined #nixos
iqubic has quit [Ping timeout: 265 seconds]
iqubic has joined #nixos
<iqubic> Sorry. computer problems were being a pain to deal with.
hakujin1 has joined #nixos
Guanin has quit [Ping timeout: 260 seconds]
<iqubic> So I think I need to rewrite tensorboard's default.nix
<iqubic> I need to make fetchPypi point to 'tensorboard' instead of 'tensorflow-tensorboard'
<Drakonis> um, actually it already does that
<Drakonis> "pname = "tensorboard";"
<iqubic> really?
<iqubic> So what is the issue?
<Drakonis> change the package version and the sha hash
<Drakonis> its 1.7.0
<Drakonis> not 1.10.0
<iqubic> Is that all I need to do?
<Drakonis> also update the sha256 hash
<iqubic> Why is that the only thing I need to do?
<iqubic> And why does it being on a previous version cause the build to fail?
<ekleog> if you had read the docs you've been pointed to at least 3 times you'd likely have at least the beginning of the answers to your questions
<iqubic> ekleog: I have read the docs, a few times each.
hakujin1 has quit [Ping timeout: 265 seconds]
<Drakonis> html5lib is up to date
<iqubic> I have no idea what is happening here.
<iqubic> html5lib isn't even listed as a dep of tensorboard.
Guanin has joined #nixos
alex`` has joined #nixos
<Drakonis> it is an indirect dependency
<iqubic> How do I test a change of nixpkgs?
<Drakonis> you wanna bet its this package that's doing that?
<iqubic> I do.
<iqubic> So what should I do?
<Drakonis> someone botched the package and its breaking html5lib
<Drakonis> nix-build -A in the repository root
<iqubic> Which package was botched?
<iqubic> And what package should I fix?
<Drakonis> i just can't handhold you forever
<Drakonis> i want to sleep
<Drakonis> read a little and check the packages
<iqubic> I will.
<Drakonis> okay, this has been dragging on for two hours
<tnks> in general, is this true for packages in Nixpkgs? `x.callPackage y z === (x.callPackage y {}).override z`
<Drakonis> i really have to sleep
amfl_ is now known as amfl
<tnks> I'm pretty sure this is true for the top-level callPackage, but there's a lot of platform-specific callPackages.
<tnks> If I'm mistaken, and it's not even true for the top-level callPackage, that would be great to know too.
<Drakonis> right now i want some rest
Drakonis has quit [Remote host closed the connection]
<nikki93> does anyone use nixos with a thinkpad and disable their trackpad? if so how do they do it?
hakujin1 has joined #nixos
<teto1> nikki93: usually you would look at libinput/synaptic configuration . For libinput see additionalOptions
hakujin1 has quit [Ping timeout: 265 seconds]
<maurer> nikki93: https://github.com/kamilchm/nixos-config/blob/master/configuration.nix#L125-L133 is a snippet that might be overkill, but gets the job done
<Havvy> Can I set per-user programs on nixos? E.g. I only want `yakuake` available for the user `havvy`. And relatedly, I also want it to autorun.
<maurer> Havvy: I'd do that with nix-env + user units, but that's not declarative
<Havvy> maurer: user systemd units?
<maurer> Yeah, that's how I handle my emacs daemon and my weechat session
<Havvy> Semi-unrelatedly, I also want to do that for developing a daemon.
<Havvy> (And if there's no declarative way to do it, I can just do it using nix-env. But I'd rather it be a part of my configuration.nix so I don't have to keep installing it every time I create a new VM.
<ekleog> Havvy: for per-user programs/service, you likely will want something like nix-home, nixup or I again forgot the latest name for the project is :)
<iqubic> home-manager
<ekleog> for a daemon, just use sth like systemd.services.${service}.serviceType.User
<ekleog> iqubic: thanks :)
reinzelmann has joined #nixos
<ldlework> What is the proper way to render a file to the home directory?
<ldlework> Using NixOS
Ariakenom has joined #nixos
<ekleog> make a systemd service that generates the file, afaik (or maybe home-manager too)
<Havvy> ekleog: I find full examples better than snippets. Do you have such an example handy?
wchresta has joined #nixos
<ekleog> Havvy: I don't know personally anyone who uses home-manager and published their dotfiles (and don't use it myself for need of deploying on non-nix'd servers too), but github search for “home manager” with language “Nix” returned things like https://github.com/rummik/nixos-config (taking the only one that has a README)
<Havvy> I mean for the user daemon.
itscaleb has quit [Quit: help]
v0|d has joined #nixos
alex`` has quit [Ping timeout: 268 seconds]
hakujin1 has joined #nixos
vmandela has quit [Quit: Leaving]
hyper_ch2 has joined #nixos
vmandela has joined #nixos
hakujin1 has quit [Ping timeout: 256 seconds]
<teto1> Havvy: you can install per-user packages with users.users.<LOGIN>.packages = [ vim ]
<teto1> home-manager is quite cool too
<iqubic> Alright... I give up. I'm not going to fix up tensorboard right now. I'm just going to submit a pull request.
<iqubic> Not a PR, but I'm going to open an issue on GitHub.
Fare has quit [Ping timeout: 244 seconds]
<bobvanderlinden> Havvy: I've published my configuration: https://github.com/bobvanderlinden/nix-home/blob/master/home.nix I've only been using home-manager for a few days though.
<Havvy> bobvanderlinden: Yeah, looks like home-manager is quite powerful with that.
<Havvy> teto1: :) Thanks. That's one definite answer. So I'd want `users.extraUsers.havvy { ...; packages = [ yakuake ]; };` then.
<teto1> Havvy: yes. users.users is the new name for users.extraUsers so it might be best. look in man configuration.nix to find the possible settings
<Havvy> That man page needs a link to the webpage that has the same information...
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @LnL7 opened pull request #44534 → elixir: 1.7.0 -> 1.7.2 → https://git.io/fNXja
mahalel_ has quit [Ping timeout: 265 seconds]
rummik has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<iqubic> Well, I made my bug report.
rummik has quit [Client Quit]
rummik has joined #nixos
<{^_^}> [nixpkgs] @neonfuz opened pull request #44536 → crispy-doom: init at 5.2 → https://git.io/fNXj1
rummik has quit [Client Quit]
wchresta has quit [Ping timeout: 240 seconds]
mahalel_ has joined #nixos
hakujin1 has joined #nixos
<pie_> anyone know how to get klipper in plasma
bobvanderlinden has quit [Ping timeout: 252 seconds]
hakujin1 has quit [Ping timeout: 265 seconds]
andreabedini has joined #nixos
<etu> Since I've upgraded my work system on latest unstable I keep getting these errors in the log and can't connect to ethernet. http://ix.io/1jiD
<etu> But wifi is fine and it's the same authentication method (PEAP)
Anton-Latukha has joined #nixos
<etu> My network card is on a PCI bus: http://ix.io/1jiE
NightTrain has quit [Ping timeout: 268 seconds]
Kim has joined #nixos
Kim has quit [Client Quit]
<pie_> I don't github, might someone fix/open an issue about exposing plasma5's klipper? /nix/store/qmrihimhk2fl8dgaz3b9f5jjds61nvcg-system-path/bin/klipper
hakujin1 has joined #nixos
tim[m] has left #nixos ["User left"]
hakujin1 has quit [Ping timeout: 256 seconds]
sir_guy_carleton has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #44528 → doc: Fixes mentions of mention-bot. → https://git.io/fNX5k
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fN1er
hakujin1 has joined #nixos
maerwald has quit [Ping timeout: 240 seconds]
maerwald has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #44538 → cc-wrapper: dont inconditionnally include glibc → https://git.io/fN1ep
Thra11 has quit [Ping timeout: 248 seconds]
hakujin1 has quit [Ping timeout: 245 seconds]
thc202 has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
mayhewluke has quit [Ping timeout: 240 seconds]
<ldlework> anyone got a clue how i would check the qtile log?
<pie_> ldlework, well...where does it log to?
hamishmack has joined #nixos
<pie_> this seems to use docker or something, anyone have advice on how i would make a build script for it?: https://github.com/Ulauncher/Ulauncher/
layus has joined #nixos
<adisbladis[m]> pie_: That looks like a normal python package to me
mahalel_ has quit [Ping timeout: 260 seconds]
<pie_> adisbladis[m], oh i was just looking at "$ ./build-utils/dev-container.sh will take you into a Docker container from which you can run build and test scripts" i guess
andreabedini has quit [Quit: Textual IRC Client: www.textualapp.com]
mahalel_ has joined #nixos
<pie_> adisbladis[m], hm, so how should I go about this with python? its not on pypi so i dont suppose i can use pypi2niX?
<{^_^}> [nixpkgs] @dotlambda pushed to master « ddar: explicitly use python2 »: https://git.io/fN1fY
philippD has joined #nixos
<pie_> hm ok i think i see from the pypi2nix github readme that i can import the requirements.nix it generates and the set src myself so i can just use fetchFromGitHub
mahalel_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @dotlambda pushed to master « duply: explicitly use python2 »: https://git.io/fN1fK
<pie_> adisbladis[m], so I have this so far but it doesn't actually try to build anything when I run nix-shell shell.nix https://bpaste.net/show/f7444d75c955
mayhewluke has joined #nixos
alex`` has joined #nixos
goibhniu has joined #nixos
<pie_> so how does nixos handle stuff like this? https://packages.ubuntu.com/trusty/gir1.2-glib-2.0
<pie_> apparently thats some kind of "gobject introspection data"
Ariakenom has joined #nixos
vmandela has quit [Quit: Leaving]
nschoe has joined #nixos
<adisbladis[m]> pie_: Look at some other python packages. You want to use `buildPythonApplication`, not `mkDerivation`
vmandela has joined #nixos
<pie_> aha,
<pie_> .
<{^_^}> [nixpkgs] @adisbladis merged pull request #44525 → php: 5.6.36 -> 5.6.37, 7.0.30 -> 7.0.31 → https://git.io/fNXSp
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to release-18.03: https://git.io/fN1Uc
MuffinPimp has quit [Read error: Connection reset by peer]
MuffinPimp has joined #nixos
rain1 has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @bkchr opened pull request #44540 → linux-kernel: Removes bcm2835_mmal_v4l2_camera_driver patch → https://git.io/fN1Ua
<{^_^}> [nixpkgs] @xeji pushed to master « mpd: don't use smbclient alias »: https://git.io/fN1Uw
the-kenny has joined #nixos
<pie_> adisbladis[m], still doesnt seem to build anything
__monty__ has joined #nixos
Denommus has quit [Ping timeout: 264 seconds]
<pie_> here's what I have so far https://bpaste.net/show/1cc7cddf476e
aarvar has quit [Ping timeout: 264 seconds]
S0rin has quit [Quit: WeeChat 1.9.1]
hakujin1 has joined #nixos
<pie_> ah well I cant actually think of any existing python examples to look at
* pie_ attempts grep
<ldlework> If I want to use a window manager's package version from unstable, how can I do that?
<srhb> ldlework: Depends on the wm. Some of them have a .package attribute.
<srhb> pie_: What do you mean "doesn't seem to build anything" ? What did you want to get built? When you drop into a nix shell with that, all the dependencies should be available.
<pie_> srhb, it should build the application itself
<srhb> pie_: No, it shouldn't.
<pie_> but it looks like i need to wrap it in something like python3.pkgs.callPackage
<srhb> You want nix-build for that.
<pie_> srhb, i mean thats what i'd like
<srhb> Ah :)
<srhb> pie_: The user guide to the python infrastructure shows how to use things like buildEnv for this.
<pie_> srhb, this is something I always get hung up on >_>
<adisbladis[m]> I guess that expressions look fine to me
<adisbladis[m]> pie_: Btw, when using buildPythonPackage/buildPythonApplication the name attr defaults to "${pname}-${version}"
<srhb> pie_: Or you could drop .env on it
<srhb> With withPackages.
<pie_> srhb, why does other stuf that "has a program" work fine with nix shell? im guessing its because in the top level package spec thing -p uses everything is wrapped in callpackage
<srhb> pie_: Approximately that, yes. See section 9.11.1.2 example two
hakujin1 has quit [Ping timeout: 260 seconds]
<ldlework> this one
<pie_> aha.
<srhb> ldlework: Override pkgs.qtile in an overlay, for instance :)
<ldlework> rebuilding didn't do anything
<srhb> ldlework: Where did you include that overlay?
<srhb> ldlework: nixpkgs.overlays ?
johanot has joined #nixos
<pie_> adisbladis[m], re: name, ah ok
<pie_> meanwhile " Python packages (libraries) and applications that use setuptools or distutils are typically built with respectively the buildPythonPackage and buildPythonApplication functions. "
<pie_> isnt setup.py setuptools?
<adisbladis[m]> Yeah
<pie_> ok so I do need buildPythonPackage then but no big deal
<srhb> pie_: "respectively" refers to library/application, not setuptools/distutils, I believe.
<pie_> uh.
<srhb> I can see how that sentence is confusing though. :)
<ldlework> srhb: here's a better question - how do I use the qtile from unstable as my window manager without leaving stable?
<ldlework> srhb: the .patch files don't seem to work when i just update the version and source
<srhb> ldlework: Exact same approach, but instead of fetchFromGithub, refer to the unstable attrset.
<srhb> Or rather, instead of overrideAttrs, refer to the unstable attrset :)
<pie_> adisbladis[m], if delete name (and using buildPythonPackage): "error: attribute 'pname' missing, at /nix/store/8qyf24g8yfihdkskkmjki99my37lm5p4-nixos-18.03.133029.d0c868ec17c/nixos/pkgs/development/interpreters/python/mk-python-derivation.nix:14:13"
<srhb> Morally, qtile = unstable.qtile;
<ldlework> huh
<adisbladis[m]> pie_: https://ptpb.pw/kS1w works
<adisbladis[m]> nix-build on that one results in a package that builds
<pie_> adisbladis[m], right the difference is that im using nix-shell i think
<srhb> ldlework: (That's assuming you have unstable in scope and that it's an unstable nixpkgs attrset)
<pie_> adisbladis[m], ok I have it building. I just need to fix the errors \o/
<ldlework> srhb: if I do the following in my configuration.nix, will the overlays from ~/.config/nixpkgs/overlays be merged with it? nixpkgs.overlays = [ (self: super: { unstable = import <nixos-unstable> {}; }) ];
<adisbladis[m]> pie_: :)
<pie_> ahh this thing....
<pie_> "ulauncher-_VERSION_-py2-none-any.whl is not a valid wheel filename."
<pie_> this is the part where i need to patch god knows what it was
<srhb> ldlework: No. Those are user specific overlays.
<ldlework> srhb: then in ~/.config/nixpkgs/overlays/qtile.nix I can do { qtile = super.unstable.qtile } ?
<srhb> ldlework: Eg. what is in effect when you use nix-env
<srhb> They have no impact on nixos-rebuild unless you've done something special to include them.
<ldlework> I see.
<ldlework> srhb: do you have a snippet for including overlays from a different location (IE overlays I've defined alongs side my main nixos config modules)
<srhb> ldlework:
<srhb> Woops
<ldlework> (or from ~/.config/nixpkgs/overlays i guess)
<srhb> ldlework: I believe you can use nix.nixPath to set nixos-overlays to some path that you can use for both things
<srhb> sorry, that's nixpkgs-overlays, not nixos-overlays
<pie_> adisbladis[m], did yours really not error? what was your nix-build
<srhb> ldlework: Mind that that method can be a bit confusing because altering NIX_PATH takes effect after the _next_ rebuild, not immediately.
<srhb> ldlework: But in the end, how you include your overlays is a matter of taste. I prefer to have one "default.nix" overlay that includes all my other overlays, and both my user and system overlays include only that "top level" overlay.
<adisbladis[m]> pie_: I only looked at the return value (exit 0)
<adisbladis[m]> That ulauncher thing looks insane
<pie_> define insane xD
hakujin1 has joined #nixos
<adisbladis[m]> pie_: Look at what ther docker stuff is doing: https://github.com/Ulauncher/Ulauncher/blob/dev/Dockerfile.build#L39
<adisbladis[m]> Why would an application launcher in python depend on nodejs
<pie_> yeah it looks like it uses yarn to build some use rconfig interface thing >_>
<adisbladis[m]> Now you have to deal with the insanity of nodejs too
<pie_> I hope it doesnt actually need it to run?
<pie_> (I dont know why you would *WANT* to do something like that but...)
<adisbladis[m]> pie_: Looks like it's used for the preferences ui
<adisbladis[m]> So presumably it's required
<pie_> yeah thats what i meant
ioa has left #nixos [#nixos]
<pie_> :/
<pie_> so yeah any idea about that wheel name thing
hakujin1 has quit [Ping timeout: 277 seconds]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @peterhoeg opened pull request #44543 → emacs: make a number of melpa packages work again → https://git.io/fN1IT
<pie_> well apparently "sed -i "s/%VERSION%/$1/g" $tmpsrc/setup.py" needs to be run but idk if itll fix it
<pie_> calls build-deb
<pie_> this is an annoying package
hakujin1 has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #44451 → systemd: 238 -> 239 → https://git.io/fNPQH
<{^_^}> [nixpkgs] @globin pushed commit from @Mic92 to staging « systemd: 238 -> 239 »: https://git.io/fN1I4
hakujin1 has quit [Ping timeout: 265 seconds]
hakujin1 has joined #nixos
rain1 has joined #nixos
aminechikhaoui has quit [Ping timeout: 260 seconds]
kline has quit [Ping timeout: 633 seconds]
<pie_> this wheel name stuff always makes me rage because i can never find documentation for it
<ldlework> srhb: how do you include that top level overlay
kline has joined #nixos
hakujin1 has quit [Ping timeout: 276 seconds]
<pie_> ok just needed a proper numric version and it built >_>
<pie_> now for runtime errors \o/
<{^_^}> [nixpkgs] @bkchr opened pull request #44544 → services.plasma5: Make activationscript use absolute path to → https://git.io/fN1Ix
fendor has joined #nixos
<pie_> adisbladis[m], can i mix stuff from pypi2nix with nixpkgs ones/
<{^_^}> [nixos-homepage] @edolstra merged pull request #231 → Fixes build when pointing to a nixpkgs checkout. → https://git.io/fNPNu
<{^_^}> [nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/fN1L3
rain1 has quit [Quit: Leaving]
<pie_> https://github.com/garbas/pypi2nix/issues/195 "pypi2nix can not be mixed with nixpkgs pythonPackages"
<{^_^}> garbas/pypi2nix#195 (by jraygauthier, 12 weeks ago, closed): How to get a python interpreter with a subset of the packages defined in `requirements.nix`?
<pie_> ah well.
<pie_> propagatedBuildInputs is the way to get python packages to persist to runtime right?
<pie_> not sure why this isnt working...
<clever> pie_: sorta
<clever> propagatedBuildInputs on its own has no impact on the runtime
<clever> but the python setup hooks generate PYTHONPATH from that, and may copy it into the makeWrapper
<pie_> ah wait i got it, it was a combo. i needed propagatedBuildInputs and pygobject3 not pygobject2
<pie_> clever, ahhhh. I see.
<ldlework> Does anyonw know how to modify this code so that instead of setting imports = validFiles, it instead imports each file and builds a list of overlays like, nixpkgs.overlays = [ (self: super: { ... }) ];
<ldlework> I suppose I just need to study how to write functions which map over things
sammecs has joined #nixos
<ldlework> clever: are you just showing me an example of map?
<ldlework> oh an importing map
<clever> ldlework: an importing map that takes a directory of overlays
<ldlework> oh is it recursive?
<clever> i dont think its recursive
<ldlework> aw
<clever> line 51 is the result of readDir
<clever> which is a set mapping name to type (string)
<clever> attrNames on 54 reduces it to a list of names
<clever> it then runs the filter on 53 over that
<ldlework> so if I wrapped this in a function taking dir, could I do `nixpkgs.overlays = this-thing /nixcfg/overlays;'
<clever> yeah
ng0 has joined #nixos
<ldlework> huh
<ldlework> I'll try it
<ldlework> clever: how about this for /nixcfg/overlays/default.nix https://gist.github.com/dustinlacewell/c9d51e23a2f8b489a1a239188f7ea282
<clever> ldlework: the let keyword is missing after the = so it wont parse right
<ldlework> oh I see
<clever> let content =
<ldlework> not sure why the last } is red
<clever> and 8 is missing a trailing ;
<hyper_ch2> hi clever
<ldlework> nice clever
<clever> ldlework: the filter on line 7 will filter the list to only include files like ./foo.nix and ./foo/default.nix, and ./. on 2 is going to cause many problems
<clever> ldlework: because now nixcfg_overlays_default.nix is also being loaded as an overlay
<ldlework> clever: can't we filter it out?
<ldlework> clever: aside from that, how do you like this, https://gist.github.com/dustinlacewell/c9d51e23a2f8b489a1a239188f7ea282
<clever> you need to give it the path to a directory that will only contain overlays and nothing else
<ldlework> clever: what i mean is can't i modify the code to ignore this file specifically?
<clever> you could, just add that to the filter function on 5
<ldlework> yeah!
<ldlework> clever: they're absolute paths at that point right
<clever> n just contains the name
<clever> which is why 6 and 8 have to append path and n together
<ldlework> the file will be called default.nix
<ldlework> /nixcfg/overlays/default.nix
<clever> maybe
<ldlework> and i'll add it to imports
<clever> 9 also has a useless set of parens
hakujin1 has joined #nixos
<clever> 5-7 also
<clever> the outer most set isnt needed
<ldlework> clever: only need when multiple lines?
<clever> nope
<ldlework> filter has a surrounding pair too
<clever> its more about forcing the order of evaluation
<clever> the lines dont matter
<ldlework> i see
<clever> filter originally had it, to force `map m (filter f list)` to filter first, then map on the result
<clever> without that, `map m filter f list` would have tried to map over the filter function, and it would have immediately failed
<clever> but if you break it up in a let block, there is no need to force it
<ldlework> makes sense
<ldlework> clever: how do I change this such that I don't need unstable on the path, but rather, it always gets the tarball or whatever, https://gist.github.com/dustinlacewell/3688cad0fe547464ad8c11ef883282fb
<clever> ldlework: unstable = import (builtins.fetchTarball https://github.com/nixos/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
<ldlework> dang nice
<clever> but that will re-download the tar every the you nixos-rebuild, and will update things without warning
hakujin1 has quit [Ping timeout: 260 seconds]
<clever> also note, that unstable will not obey the same config/overlays
<ldlework> clever: couldn't I pass a sha256 so it wont do that
<clever> since its imported with {}, it will read ~/.config/nixpkgs/
<clever> your better off using pkgs.fetchFromGitHub if your going to use a sha256
<ldlework> clever: my overall goal is to use the qtile window manager version from unstable without upgrading my whole system to unstable, and having a nice system for overlays where I just drop the file in
<clever> you can also replace nixos-unstable in the above example, with the current git rev of nixos-unstable
<clever> then it will cache things better
<ldlework> someone told me to use overlays for so i wanted to tackle nice overlays first
<ldlework> but you knocked that out of the park
<clever> you can also just download the current qtile/default.nix and load it with callPackage in your overlay
<clever> and ignore nixos-unstable entirely
<ldlework> yeah but boo
<pie_> if i neec to copy a directory from the source root to $out how do i do that again?
<pie_> just cp in postBuild?
<clever> pie_: yeah
<ldlework> clever: so does this mean, that since we're using {} to import unstable in overlays/unstable.nix, that my other overlay in overlays/qtile.nix wont be able to specify that qtile = unstable.qtile; ?
<ldlework> I thought someone told me to basically do that.
orivej has joined #nixos
<clever> ldlework: i generally import nixpkgs with { config = {}; overlays = []; } to make it pure
<clever> you can then optionally give it its own overlays
<pie_> clever, this fails: postBuild = ''cp -r data $out/data'';
<clever> but in your case, you dont want the `qtile = unstable.qtile` overlay, because that would cause infinite recursion
<pie_> cp: cannot create directory '/nix/store/vgg09fhyba50zxbkqq04697s5bcf5z49-ULauncher-dev/data': No such file or directory
<clever> pie_: $out hasnt been made yet, try postInstall instead
<pie_> ah.
<ldlework> clever: isn't the qtile we're assigning to different than unstable.qtile? so no recursion?
<clever> ldlework: if you load the same overlay in both nixpkgs, it can cause recursion
<ldlework> remember we're in like a self: super: overlay
<pie_> much better
<ldlework> clever: basically, you just invented my overlay system, and you got unstable imported as an overlay. What's the most elegant way to now get unstable qtile as the window manager? :)
<ldlework> (because probably will want other unstable packages in the future, and don't want to simply be copying files around)
<clever> ldlework: several options, unstable.qtile is one
<ldlework> qtile = unstable.qtile?
<ldlework> in a overlays/qtile.nix that will be auto-imported by that default.nix we made?
<clever> that is also an option
<ldlework> that seems pretty low maintenance
<clever> but you can also just directly do pkgs.unstable.qtile in the nixos config
<ldlework> clever: but like
<ldlework> you don't specify what package to use when you specify qtile as the window manager
<ldlework> you just say "qtile"
<clever> ah
<clever> then you need to overwrite qtile with an overlay
<ldlework> like qtile = unstable.qtile?
<clever> qtile = self.unstable.qtile;
* ldlework huggles clever
<ldlework> i'm gonna try it
Izorkin has quit [Ping timeout: 240 seconds]
<pie_> is there any way to import a directory for src = without specifying a hash?
<clever> pie_: src = ./.;
<pie_> ah oh looks like src = ./whatever works
<pie_> ah, clever ^.^
<clever> every time you eval the expression, nix will import that path and hash it
<ldlework> clever: I was just thinking. Couldn't you use that fetchFromGithub trick for unstable to import multiple commits of unstable, and so as to use specific commits for specific unstable packages
<ldlework> instead of having to use unstable packages from a single shared unstable?
<clever> ldlework: yeah
MP2E has quit [Remote host closed the connection]
<ldlework> clever: fetchFromGithub should probably have an option to do shallow clones or something
<pie_> clever, yeah thats what i wanted
<clever> ldlework: by default, it just grabs a tarball
<ldlework> I see
<{^_^}> [nixpkgs] @pSub pushed 302 commits to add-missing-licenses: https://git.io/fN1YX
ericsagnes has quit [Ping timeout: 256 seconds]
<pie_> well i have an old tab open where someone did:
<pie_> { pkgs ? import (_pkgs.fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs-channels"; rev = "..."; sha256 = "..."; }) {}}:
<clever> that will use the impure _pkgs to fetch a specific revision, when the pkgs arg has not otherwise been set
<clever> but the "pure" pkgs will still obey your config.nix and overlays, which can screw things up
betaboon has joined #nixos
<clever> its missing a { config = {}; overlays = []; }
<{^_^}> [nixpkgs] @vcunat pushed 132 commits to staging-next: https://git.io/fN1Om
<ldlework> clever: okay here is /nixpkgs/overlays/unstable.nix https://gist.github.com/dustinlacewell/3688cad0fe547464ad8c11ef883282fb
<ldlework> is this right
<ldlework> that rev is the last commit from the unstable branch
<clever> ldlework: looks good
<ldlework> nice
BlessJah_ has joined #nixos
ekleog has quit [Quit: WeeChat 2.0]
simukis has joined #nixos
ekleog has joined #nixos
<emily> if I want to write a +x file in my /etc/nixos/configuration.nix and e.g. set it environment.variables.BROWSER -- and don't particularly care about its path otherwise (i.e., it's fine if it's a Nix store mess), what's the idiomatic way to do that?
<BlessJah_> does anyone use yubikey/yubioath? Since some time it only works for root, I wonder if I missed any changes I should've applied??
<clever> emily: writeScriptBin
<emily> clever: thank you!
<clever> > pkgs.writeScriptBin "name" "#!${pkgs.stdenv.shell}\necho things"
<{^_^}> "<derivation /nix/store/issglb8ai5ai8zdqx00y3kbzqbnk3219-name>"
<clever> emily: that will return a path to a directory that contains a bin/name binary
<clever> emily: you can also use pkgs.writeScript to just get a naked script at /nix/store/hash-name
<emily> aw, `environment.variables.BROWSER = pkgs.writeScript "test" '...'` doesn't work because of needing a coercion -- is there anything less ugly than "${'' ... ''}"?
hakujin1 has joined #nixos
<clever> emily: a let block, lol
<pie_> is there any way to pass arguments to setup.py?
<clever> environment.variables.BROWSER = let foo = pkgs.writeScript "name" "body"; in "${foo}";
<{^_^}> [nixpkgs] @globin opened pull request #44546 → docker-registry: Revert "[bot]: remove unreferenced code" → https://git.io/fN1Or
<pie_> ah found the docs on what buildPythonPackage does
<emily> clever: fair enough
oldandwise has joined #nixos
<ldlework> clever: https://gist.github.com/dustinlacewell/5f761902e679e38f40c592e5488a3ff0 is giving me: error: value is a function while a string was expected, at /nixcfg/overlays/default.nix:8:6
<{^_^}> [nixpkgs] @jtojnar pushed to master « keybinder: remove GTK3 dependency »: https://git.io/fN1O9
hakujin1 has quit [Ping timeout: 256 seconds]
<ldlework> not sure what it is complaining about
<infinisil> ldlework: you have 2 variables named filter
<ldlework> hmm
<clever> ldlework: line 7 is shadowing builtins.filter
<ldlework> that fixed it yeah
<ldlework> oh boy
<ldlework> error: value is a set while a list was expected, at /nix/store/797yi4rh4mzs1vfx6im9yznc9l4sj7bb-source/pkgs/top-level/stage.nix:175:8
<ldlework> clever: I'm guessing that our default.nix is assigning a set to nixpkgs.overlays instead of a list?
<clever> map can only ever return a list
<emily> another question: is there any way, with the systemd.services.foo machinery, to install a service into the equivalent of /usr/lib/systemd/user rather than /usr/lib/systemd/system?
<clever> emily: https://nixos.org/nixos/options.html#systemd.user.services
b has joined #nixos
<emily> ah, thank you
<ldlework> oh hum not sure then
<emily> I was trying to source-dive -- grepping the options would have been simpler :/
<clever> emily: you can also `man configuration.nix` and search with /
alexteves has joined #nixos
<{^_^}> [nixpkgs] @leenaars opened pull request #44547 → matterbridge: 1.7.1 -> 1.11.0 → https://git.io/fN13e
<pie_> oh wow i actualy got it to run
<emily> "No manual entry for configuration.nix" :(
<emily> I have documentation.enable = true (it's false by default because I'm in a container, I think)
<clever> emily: ah, container may lack it
<infinisil> ldlework: pretty sure that code is correct now, the error is probably somewhere else
<emily> would love to have that manpage, just not sure how to get it
<ldlework> infinisil: i gisted the full traceback
<ldlework> could unstable be broken or something?
<clever> ldlework: line 66 shows that the problem comes from something you put into systemPackages
<emily> (I'm also not getting logind sessions/systemd --user starting properly at all -- pam_systemd(login:session): Failed to create session: No such device or address -- but I suspect that's an esoteric problem with the container setup rather than a NixOS misconfiguration)
ersran9 has joined #nixos
<ldlework> hmm
<clever> ldlework: oh, i found the problem
<clever> overlays = {};
<clever> value is a set while a list was expected, at /nix/store/797yi4rh4mzs1vfx6im9yznc9l4sj7bb-source/pkgs/top-level/stage.nix:175:8
<clever> 2018-08-06 07:07:51 < clever> its missing a { config = {}; overlays = []; }
<ldlework> I added that!
<ldlework> oh but I set overlays to a set
<clever> yep
<clever> and look at the error closer
<clever> `value is a set while a list was expected`
<ldlework> sure i understand that much, no idea how to related it to what we passed to the unstable import
<ldlework> how you*
<clever> unstable wants a list of overlays
<ldlework> doh, /nix/store/2q6d3wph3d1649adji65ahssd8xwq1rp-qtile-0.10.7/bin/qtile
<ldlework> qtile is still 0.10.7
<ldlework> doing $(which qtile) after switching
<clever> have you considered just running nixos-unstable for the whole system?
<ldlework> come on we can figure this out!
<ldlework> I'll put it in the wiki
<clever> ldlework: what does `type qtile` respond with?
<makefu> anybody has all icons working in the blueman-applet? for me only half of the icons are shown for some reason.
<ldlework> clever: qtile is /nix/store/2q6d3wph3d1649adji65ahssd8xwq1rp-qtile-0.10.7/bin/qtile
<teto1> makefu: same
<clever> ldlework: thats not right
<clever> ldlework: it shouldnt be giving a full storepath
<clever> ldlework: what about `echo $PATH` ?
<ldlework> clever: we tried to debug this earlier with....srhb
<makefu> teto1: okay, so it seems to be an issue in the packaging.
<ldlework> clever: he decided it was qtile's fault that was polluting the PATH
<ldlework> the way the nix package is designed
<clever> ldlework: and does `ps` show several bashes?
<ldlework> lemme find the file he complained
<ldlework> clever: no just one zsh
<ldlework> clever: he said it was qtile that uses a wrapper script and injects the store paths into PATH
hakujin1 has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of failing Hydra builds »: https://git.io/fN13i
<clever> ldlework: you may need to reboot after adding that overlay, it sounds like its doing something funky
<ldlework> I can try that sure
init_6 has joined #nixos
<betaboon> can anyone suggest a good true-color capable terminal-emulator that does not use lib-vte? i used urxvt for quite a while and was pretty happy. i recently tried st but I'm not happy with it. any suggestions ?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of failing Hydra builds »: https://git.io/fN13H
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fN13Q
hakujin1 has quit [Ping timeout: 256 seconds]
<ldlework> Welp, now I can't login. I think QTile is crashing..
<ldlework> No idea how to check its log. What I could find said it claims to log in ~/qtile.log but that doesn't exist.
<ldlework> I guess I'll try removing the overlay.
<clever> ldlework: ctrl+alt+f1, login, and check `type qtile` again
<clever> before you remove the overlay
mayhewluke has quit [Ping timeout: 256 seconds]
<ldlework> clever, well it crashed complaining there was no DISPLAY set
mayhewluke has joined #nixos
<{^_^}> [cabal2nix] @peti pushed 0 commits to refs/tags/v2.10.2: https://git.io/fN1sT
<clever> ldlework: `type qtile`, not try to start it
<ldlework> weechat looks trippy af in VT lol
<makefu> teto1: i've opened an issue for this #44548
<ldlework> clever: oh heh
<{^_^}> https://github.com/NixOS/nixpkgs/issues/44548 (by makefu, 37 seconds ago, open): blueman-applet missing icons
<ldlework> clever: it is /run/current-system/sw/bin/qtile
<clever> ldlework: and if you realpath that one?, its the updated version?
<ldlework> clever, no it is still 0.10.7
sammecs has quit []
<ldlework> it mentions /nixpkgs/overlays/qtile though
<emily> Mic92: any status on https://github.com/NixOS/nixpkgs/issues/44338, as it seems the PRs to NixOS/systemd were merged? seems like systemd v239 solves a bug in lxd containers I'm experiencing ^^;
<{^_^}> #44338 (by xeji, 4 days ago, open): upgrade systemd to 239
<clever> ldlework: how does it mention overlays?
<ldlework> /nixcfg/overlays/qtile
<ldlework> /nixcfg/overlays/is
<ldlework> then the nixstore path
<emily> Mic92: thank you!
<{^_^}> [nixpkgs] @pSub pushed 19 commits to remove-jumanji: https://git.io/fN1sl
<emily> is there anything someone on the nixos-unstable channel can do to get that?
<ldlework> ok I managed to boot qtile :)
<Mic92> emily: you can already use it by setting `systemd.package = ` with an overrided versoin
<emily> ah, okay
<Mic92> systemd.package in configuration.nix
<emily> *nods* thank you for your help
<{^_^}> [nixpkgs] @pSub pushed to remove-jumanji « remove jumanji »: https://git.io/fN1s2
<{^_^}> [nixpkgs] @pSub opened pull request #44549 → remove jumanji → https://git.io/fN1sa
aanderse has joined #nixos
hakujin1 has joined #nixos
rsaarelm has joined #nixos
<ldlework> clever: yeah it seems qtile wont even boot when the overlay is in play
<ldlework> I have to remove the qtile = unstable.qtile; overlay, rebuild, then reboot, for qtile to start working again
<ldlework> I'm getting pretty weary though.
<ldlework> So I think I'm gonna take a break. Thanks for the help.
<ldlework> clever: could it be that qtile depends on other changes in unstable that happened?
<emily> Mic92: sorry to be a pest, but I'm not sure how to add to upstreamSystemUnits from my configuration.nix? do I just have to patch my local nixpkgs, or...?
<ldlework> like different versions of the dependencies or something?
semilattice has joined #nixos
<ldlework> and those versions don't exist in stable? no idea.
hakujin1 has quit [Ping timeout: 265 seconds]
<Mic92> emily: I don't know if you can do the same from configuration.nix in a simple way. Personally I patched my local nixpkgs clone.
ericsagnes has joined #nixos
<Mic92> it is possible to add services files from packages via systemd.packages. Then you would need to copy the service file there.
<ldlework> i really don't want to maintain a local nixpkgs / clone
ArahaelPi has quit [Ping timeout: 240 seconds]
<emily> Mic92: *nods* I guess it's okay to patch without a commit because when it gets clobbered by a channel update it'll have the commit in anyway?
<{^_^}> [nixpkgs] @pSub pushed 22 commits to add-missing-licenses: https://git.io/fN1GT
pie_ has quit [Ping timeout: 244 seconds]
mayhewluke has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @pSub merged pull request #44549 → remove jumanji → https://git.io/fN1sa
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/fN1Gq
<{^_^}> [nixpkgs] @pSub pushed 0 commits to remove-jumanji: https://git.io/fN1GO
<Mic92> emily: my work flow is usually to commit the change, so I can also change the branch from time to time. To update my repository I use git rebase. If the rebase process notice that the change was already applied, it will skip your commit. Otherwise it will complain about a commit in which case you can just say git rebase --skip to remove your commit in favor of upstream.
mayhewluke has joined #nixos
<emily> *nods*
<clever> ldlework: its possible that the problem comes from using the unstable version of opengl against the stable opengl
<emily> okay, I'll just cherry pick your commit for now then :)
sir_guy_carleton has joined #nixos
__monty__ has quit [Quit: leaving]
<clever> ldlework: which is why i said earlier to callPackage the unstable qtile from the stable pkgs, so your not mixing opengl's
Kim has joined #nixos
<emily> Mic92: do you just pass -I nixpkgs=... to nixos-rebuild or is there a way to patch the checkout used by default?
<Mic92> emily: you can set your NIX_PATH globally: http://bob.cs.sonoma.edu/IntroCompOrg-x64/book.html
<emily> cool, thank you!
<Mic92> there was once a good blog post how to do this. but it was vanished at some point from the internet
silver has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #44547 → matterbridge: 1.7.1 -> 1.11.0 → https://git.io/fN13e
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN1Gw
orivej has quit [Ping timeout: 260 seconds]
PLPD-Bot has quit [Remote host closed the connection]
<betaboon> is there a python library to read simple nix-expressions ?
<Mic92> betaboon: pythonix bridges python and nix
<betaboon> Mic92: thanks :)
<Mic92> the alternative is to load the result of `nix eval --json `
pie_ has joined #nixos
ng0 has quit [Quit: Alexa, when is the end of world?]
<{^_^}> [nixpkgs] @laMudri opened pull request #44550 → AgdaStdlib: 0.15 -> 0.16 → https://git.io/fN1GN
<betaboon> Mic92: nix eval --json does exactly what i need for this situation :D
<betaboon> thank you very much
<{^_^}> [nixpkgs] @pSub pushed to add-missing-licenses « pyrex: fix evaluation »: https://git.io/fN1ZI
arahael1 has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #44551 → duktape: 2.2.1 -> 2.3.0 → https://git.io/fN1ZO
logzet has joined #nixos
ng0 has joined #nixos
<Kim> Is there a particular way to override the source for WeeChat in 18.03 that wasn't there in 17.09? This stopped working after the update: https://github.com/rummik/nixos-config/blob/e53fd13a2f8a6014858ca6a2991a10d538a7db38/cfgs/weechat.nix
ericsagnes has quit [Ping timeout: 244 seconds]
<pie_> adisbladis[m], "Ulauncher communicates to extensions using WebSockets." ...but why?
<clever> Kim: i would expect that to continue to work, what error does it give?
<Kim> I found the documentation changes that show how to include additional Python packages, but I can't still seem to figure out how to override the src attribute
arahael1 has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mdorman opened pull request #44552 → magit-annex: provide `external.git` → https://git.io/fN1Za
iyzsong has joined #nixos
arahael1 has joined #nixos
<Kim> clever: It doesn't; it just fails silently and I'm left with weechat 2.0 and no additional plugins
<Kim> s/plugins/python packages/
<clever> Kim: what does `which weechat` return?
<Kim> "/run/current-system/sw/bin/weechat"
<clever> Kim: and `realpath /run/current-system/sw/bin/weechat` ?
<TheBrayn> nixos?
<Kim> I think it may have something to do with the really weird package layout that weechat has in 18.03
<TheBrayn> wrong channel ...
<Kim> clever: /nix/store/cw9nbnizb3ic1gw6k7v3i5hyji24pfz9-weechat/bin/weechat
<TheBrayn> I thought this was the weechat channel
<clever> Kim: thats odd, the version suffix on line 17 of your overlay is missing
<Kim> I know, right?
<clever> Kim: do you happen to have anything else weechat related in your systemPackages list?
<Kim> Just the one. Grepped for it
<clever> Kim: oh, i think i see something
<Kim> And I'm not really sure how to sort through it
<clever> Kim: if configure is null, then it returns the weechat your trying to override
<clever> but if configure is set to anything else, it returns a bash script defined on line 120
<clever> changing the src attribute on that bash script wont have the expected result
<Kim> Okay, I think I finally understand what's happening
<clever> Kim: so you need to set configure = null; in your .override
<clever> or learn what it works and use it to your advantage
<Kim> That file is way too clever for its own good :P
<Kim> But yeah, I'll do that. Thanks clever!
<Kim> Also, unintentional pun is unintentional
<clever> firefox and chrome split things up more, so you have firefox-unwrapped
<clever> and then a seperate firefox in its own default.nix
<clever> that allows you to override the src of firefox-unwrapped, and then still use the wrapper easily
<clever> weechat jammed them together, so you must decide between using the wrapper or changing src
<Kim> Makes more sense now
<Kim> I'll add that to my list of things to send PRs for at some point
<{^_^}> [nixpkgs] @dezgeg merged pull request #44349 → raspberrypifw: fix cross 'builds' → https://git.io/fNKum
<{^_^}> [nixpkgs] @dezgeg pushed commit from @georgewhewell to master « fix rasperrypifw cross build »: https://git.io/fN1nl
ericsagnes has joined #nixos
<Kim> That fixes it
<Kim> Well, mostly, now I have no Python xD
<Kim> Is there a way to override `weechat.unwrapped` without using that as the WeeChat package?
<clever> not sure
semilattice has quit [Ping timeout: 256 seconds]
f0i has quit [Ping timeout: 256 seconds]
<clever> Kim: this is how i manage my weechat
<clever> Kim: it includes a python based plugin for accessing slack
v0|d has quit [Remote host closed the connection]
<Kim> Yeah, that's what I've been using
<betaboon> when using nix-shell in shebang: is there a way to split the list of packages into multiple lines ?
<{^_^}> [nixpkgs] @yegortimoshenko merged pull request #44459 → b2sum: init at 20160619 → https://git.io/fNPN0
<{^_^}> [nixpkgs] @yegortimoshenko pushed 4 commits to master: https://git.io/fN1cg
<infinisil> betaboon: if it get so long that you need multiple lines then you should probably use a shell.nix file
aminechikhaoui has joined #nixos
<betaboon> infinisil: it's just three pythonPackages, but going 'python3Packages.XYZ python3Packeges.FOO' etc gets very long very fast XD
f0i has joined #nixos
<infinisil> So the answer to your question is 'no' btw :)
v0|d has joined #nixos
<betaboon> ok XD
<infinisil> As far as i know at least
rprije has quit [Ping timeout: 240 seconds]
tusj has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #44553 → toggldesktop: init at 7.4.231 → https://git.io/fN1Cc
reinzelmann has quit [Quit: Leaving]
<samueldr> infinisil, betaboon: just double-up the lines
<betaboon> samueldr: ? how do you mean ?
<samueldr> just verified it still worked with nix 2.0, and it does
<betaboon> ah realy. nice. thanks :)
<infinisil> Huh, and that doesn't spawn it 4 levels deep?
<infinisil> TIL!
<betaboon> samueldr, infinisil: i can confirm that it works. and no, it does not spawn it 4levels deep
<samueldr> just in case others need the explanation: recursive shebangs don't exist
<samueldr> it's nix-shell that handles the additional lines
<infinisil> Neat, sorry for the misinformation then
<samueldr> I used nix-shell for the longest time to avoid learning nix properly at first :)
ekleog has quit [Quit: WeeChat 2.0]
logzet has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
ekleog has joined #nixos
<samueldr> huh! TIL they are not forced to be contiguous
<hyper_ch2> (is it possible to learn nix properly?)
<Taneb> Is it an error to repeat build inputs?
Fare has joined #nixos
<samueldr> the manual doesn't talk about mixin the #! lines with the code, but does show a sample with multiple lines → https://nixos.org/nix/manual/#use-as-a-interpreter
pie_ has quit [Ping timeout: 260 seconds]
silver_ has joined #nixos
__monty__ has joined #nixos
silver has quit [Ping timeout: 260 seconds]
Sigyn has quit [Quit: People always have such a hard time believing that robots could do bad things.]
Sigyn has joined #nixos
<{^_^}> [nixops] @Chakerbh opened pull request #987 → Add an argument to enable IP forwarding in GCE → https://git.io/fN1lO
<{^_^}> [nixpkgs] @LightDiscord opened pull request #44554 → Update lightdiscord's email in maintainer list → https://git.io/fN1lo
<teto1> samueldr: I've had many problems with nix-shell as shebang. the only robust way I found is to call it with an external file "#! nix-shell shell-test.nix -i python". Maybe that would be best for the manual
<samueldr> teto1: what kind of problems?
<samueldr> (though yeah, for complex stuff, an external file is probably the best, same rules apply on the CLI)
<samueldr> I just now was surprised by the implementation details
<{^_^}> nix#2209 (by teto, 8 weeks ago, open): What is wrong with my shebang ?
<samueldr> yeah, the moment you leave the simple attributes `-p hello` it begins to be hellish :(
<teto1> or https://github.com/NixOS/nix/issues/2072 (interpreting withPackages as an url xD)
<{^_^}> nix#2072 (by teto, 16 weeks ago, closed): nix-shell shebang won't work with withPackages
snajpa has quit [Max SendQ exceeded]
snajpa has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
hsribei has joined #nixos
Izorkin has joined #nixos
<samueldr> ah, but that isn't a nix-shell thing for the url issue
<samueldr> > p [a:b (a: "b")]
<{^_^}> "[ \"a:b\" <LAMBDA> ]"
<samueldr> nix defines a sequence of letters followed by a column and then non-spaces (probably wrong here) as an URL
mguex has quit [Remote host closed the connection]
hakujin1 has joined #nixos
<samueldr> > [ a:this-is-an-url http://nixos.org/ ] # just like ./. is a special construct
<{^_^}> [ "a:this-is-an-url" "http://nixos.org/" ]
hakujin1 has quit [Ping timeout: 256 seconds]
<Izorkin> How to disable warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring - ? nix-channel --add not work
hakujin1 has joined #nixos
<goibhniu> hi Izorkin, did you also run `nix-channel --update`?
<Izorkin> yes, running
<Izorkin> goibhniu: me running nixos-rebuild with sudo
<goibhniu> sudo might confuse things
<clever> yeah, ive noticed lately that sudo puts a literal $HOME into $NIX_PATH
<clever> and $HOME is not a valid directory in the cwd
hakujin1 has quit [Ping timeout: 265 seconds]
<samueldr> clever: could it be 8ab8d9cb74e75de46e647a5d77c137f7ef3ebd2b ?
<clever> samueldr: yeah, but the weird part is that it seems to work fine for normal shells, and breaks with `sudo foo` shells
<clever> maybe there is a bug in the normal shells, that double-evals NIX_PATH
vmandela has quit [Quit: Leaving]
f0i has quit [Ping timeout: 276 seconds]
davenpcm has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #44554 → Update lightdiscord's email in maintainer list → https://git.io/fN1lo
<{^_^}> [nixpkgs] @Mic92 pushed commit from @LightDiscord to master « maintainers: update lightdiscord's email (#44554) »: https://git.io/fN1Rf
Fare has quit [Ping timeout: 256 seconds]
<Izorkin> me removed '$HOME/.nix-defexpr/channels in nixPath - sudo nixos-rebuil - without warnings
hakujin1 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #44551 → duktape: 2.2.1 -> 2.3.0 → https://git.io/fN1ZO
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fN1Rl
hakujin1 has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #44555 → mpich2: cleanupm derivation, rename to mpich → https://git.io/fN1RN
<Taneb> Is there a cleaner way to get a function for an accessor than "x: x.foo"?
philippD has joined #nixos
UNIcodeX has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
fendor has quit [Ping timeout: 264 seconds]
f0i has joined #nixos
<elvishjerricco> Taneb: I wouldn't call this cleaner, but there is `builtins.getAttr "foo"`
hakujin1 has joined #nixos
<Taneb> I'll stick with what I have for now ;)
<Taneb> Thanks for the suggestion, though!
<Taneb> (I struggle sometimes because I learnt both nix and Elm as "like Haskell but different" so sometimes there's something I don't use often in one that I occasionally reach for in the other)
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hakujin1 has quit [Ping timeout: 265 seconds]
philippD has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
jperras has joined #nixos
pie_ has joined #nixos
<mpickering> domenkozar: Any ideas why travis will not use a cachix binary cache? It seems to ignore it
<domenkozar> mpickering: can you show me travis config?
<clever> i suspect that it may need the binary cache in /etc/nix/nix.conf, for nix-daemon to obey it?
<domenkozar> mpickering: can you show me the corresponding travis build?
<mpickering> I was just trying to copy what was in the hnix repo
Fare has joined #nixos
<mpickering> I have built everything locally and pushed it all to cachix
<mpickering> so I was expected it to download all these dependencies and just do the build
<mpickering> perhaps that is not how it is expected to work
<clever> tee: /etc/nix/nix.conf: No such file or directory
<domenkozar> clever: that's expected
<domenkozar> as that line is for macos
dbmikus has joined #nixos
<clever> ah, thats before the .travis.yml even started
<mpickering> sudo: launchctl: command not found perhaps?
<clever> sudo launchctl kickstart -k system/org.nixos.nix-daemon || true
f0i has quit [Ping timeout: 240 seconds]
<clever> yeah, that could be an issue
<clever> the new nix.conf isnt taking effect
<clever> Configured https://mpickering.cachix.org binary cache in /home/travis/.config/nix/nix.conf
<clever> and because the new nix.conf isnt in effect, nix silently ignores the custom binary cache that cachix configured
<domenkozar> it's a single root install on linux
<domenkozar> single user, travis user install*
<clever> ah
<domenkozar> this is peculiar
<clever> so no nix-daemon at play
<domenkozar> let me try locally
<domenkozar> yeah same issue
<domenkozar> I suspect you're using recursive nix
<domenkozar> and that breaks binary cache configuration
<domenkozar> let me verify that
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<mpickering> I apologise, it worked!
<mpickering> I'm not sure why it built some stuff first
<mpickering> but after it had, then it used the cache
f0i has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to add-missing-licenses: https://git.io/fN1gs
dvim has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
<domenkozar> mpickering: seems like your local builds have different hash(es)
<domenkozar> glad you resolved it
<domenkozar> I'm working on fixes for travis
<domenkozar> so it's easier to setup
philippD has joined #nixos
benkolera_ has joined #nixos
cmcdragonkai_ has joined #nixos
<maerwald> I want to use a custom repository for i3, but the tarball is from git branch so has no autorrconf run. Any good examples on how to inject autoreconf in packager override?
hakujin1 has joined #nixos
emily__ has joined #nixos
cmcdragonkai has quit [Ping timeout: 240 seconds]
swflint has quit [Ping timeout: 240 seconds]
mkaito has quit [Ping timeout: 240 seconds]
eddyb has quit [Ping timeout: 240 seconds]
sorear has quit [Ping timeout: 240 seconds]
tg has quit [Ping timeout: 240 seconds]
tazjin has quit [Ping timeout: 240 seconds]
fpletz has quit [Ping timeout: 240 seconds]
mdash has quit [Ping timeout: 240 seconds]
SOO7 has quit [Ping timeout: 240 seconds]
lluchs has quit [Ping timeout: 240 seconds]
scode has quit [Ping timeout: 240 seconds]
teto1 has quit [Ping timeout: 240 seconds]
Profpatsch has quit [Ping timeout: 240 seconds]
sphalerite has quit [Ping timeout: 240 seconds]
layus has quit [Ping timeout: 240 seconds]
benkolera has quit [Ping timeout: 240 seconds]
johnazoidberg[m] has quit [Ping timeout: 240 seconds]
tokudan[m] has quit [Ping timeout: 240 seconds]
Florian[m] has quit [Ping timeout: 240 seconds]
jack[m]1 has quit [Ping timeout: 240 seconds]
buzzmaster[m] has quit [Ping timeout: 240 seconds]
colmeka[m] has quit [Ping timeout: 240 seconds]
bobvanderlinden_ has quit [Ping timeout: 240 seconds]
das-g[m] has quit [Ping timeout: 240 seconds]
omawnakw[m] has quit [Ping timeout: 240 seconds]
manveru[m] has quit [Ping timeout: 240 seconds]
desttinghim[m] has quit [Ping timeout: 240 seconds]
mtncoder[m] has quit [Ping timeout: 240 seconds]
YuFanLovezYou[m] has quit [Ping timeout: 240 seconds]
Richard[m] has quit [Ping timeout: 240 seconds]
happyente[m] has quit [Ping timeout: 240 seconds]
WilliamGHatch[m] has quit [Ping timeout: 240 seconds]
atopuzov[m] has quit [Ping timeout: 240 seconds]
Magnap[m] has quit [Ping timeout: 240 seconds]
roberth has quit [Ping timeout: 240 seconds]
htafdwes[m] has quit [Ping timeout: 240 seconds]
ejpcmac has quit [Ping timeout: 240 seconds]
unlmtd[m] has quit [Ping timeout: 240 seconds]
Wysteriary[m] has quit [Ping timeout: 240 seconds]
oleks has quit [Ping timeout: 240 seconds]
tippenein has quit [Ping timeout: 240 seconds]
rsaarelm has quit [Ping timeout: 240 seconds]
ok2 has quit [Ping timeout: 240 seconds]
Psi-Jack has quit [Ping timeout: 240 seconds]
pyvpx has quit [Ping timeout: 240 seconds]
dhess has quit [Ping timeout: 240 seconds]
nikki93 has quit [Ping timeout: 240 seconds]
flokli has quit [Ping timeout: 240 seconds]
emily has quit [Ping timeout: 240 seconds]
NinjaTrappeur has quit [Ping timeout: 240 seconds]
rsaarelm_ has joined #nixos
benkolera_ is now known as benkolera
cmcdragonkai_ is now known as cmcdragonkai
sphalerite_ has joined #nixos
<qyliss^work> maerwald: something like i3.overrideAttrs (oldAttrs: { preConfigure = "autoreconf -i"; buildInputs = [ autoreconf ]; }) ?
swflint has joined #nixos
<maerwald> autoreconf undefined
<maerwald> pkgs.autoreconf?
<qyliss^work> Depends on where exactly you're putting this
hakujin1 has quit [Ping timeout: 276 seconds]
makergrl has quit [Ping timeout: 260 seconds]
<qyliss^work> That's not supposed to be code you can just paste in, because I haven't tested it, but something along those lines should be what you want.
SOO7 has joined #nixos
Psi-Jack has joined #nixos
tg has joined #nixos
roberth has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #44546 → docker-registry: Revert "[bot]: remove unreferenced code" → https://git.io/fN1Or
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fN12N
<clever> maerwald: autoreconfHook would work better, it runs autoreconf for you
<samueldr> anyone here using `boot.initrd.luks.yubikeySupport`? asking because of a PR potentially touching this code has had no tests for yubikey hardware
emily__ is now known as emily
<{^_^}> [nixpkgs] @dezgeg merged pull request #44540 → linux-kernel: Removes bcm2835_mmal_v4l2_camera_driver patch → https://git.io/fN1Ua
<{^_^}> [nixpkgs] @dezgeg pushed commit from @bkchr to master « linux-kernel: Removes bcm2835_mmal_v4l2_camera_driver patch »: https://git.io/fN1a4
<maerwald> hm, how do I make autoreconfHook visible in configuration.nix
<clever> maerwald: pkgs.autoreconfHook
Gohla has quit [Quit: Bye.]
init_6 has quit [Ping timeout: 256 seconds]
Gohla has joined #nixos
Cale has quit [Ping timeout: 260 seconds]
iqubic has quit [Quit: leaving]
<maerwald> that works, now I need to add buildInputs without overwriting the old
<clever> maerwald: thats what the oldAttrs argument is for
<clever> buildInputs = oldAttrs.buildInputs ++ [ pkgs.autoreconfHook ];
<maerwald> ah
vmandela has joined #nixos
erasmas has joined #nixos
<vmandela> Hi, can anyone help me on https://github.com/NixOS/nixpkgs/issues/44495 - How to show configs from `nested.clone` in the grub menu ?
<{^_^}> #44495 (by vmandela, 1 day ago, open): How to show configs from `nested.clone` in the grub menu
<maerwald> I added xorg. xcbutilimage but it still seems it cannot find it
<maerwald> configure fails
<clever> maerwald: can you gist your nix file and the error it gives?
Cale has joined #nixos
<maerwald> https://0bin.net/paste/+I-I87ZCw6UoG9RJ#vquo-5COO+Wqh+EPha134z2MKin0gGwm6/Uci15FIa1
<maerwald> https://0bin.net/paste/GNa7xlLV3ix2vbWs#+el-BOdcwQXTv50dYEjngZ7yzLyI11+UjUn4/pk2bk3
<{^_^}> [nixpkgs] @johanot opened pull request #44556 → nixos/certmgr: init → https://git.io/fN1wD
<tilpner> I'm getting a lot of "warning: unable to download 'https://cache.nixos.org/palp5sv3sw526ha0513ic245rca87131.narinfo': Couldn't resolve host name (6); retrying in 21041 ms" lately, what can I do to fix this?
<woffs> A co-worker of mine is on OpenBSD. Any chance to get Nix/NixOS there? ;)
<maerwald> clever: can you see it?
<AntonLatukha[m]> Can someone help. I am working on pull request, and figuring-out how to combine `terraform-provider-libvirt` with `terraform`. Terraform not sees libvirt provider binary, and provider is not official, so it is not in `terraform-full`. I am parsing https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/cluster/terraform/default.nix but so far no luck to solve it. How to do it right way.
johanot has quit [Quit: leaving]
<samueldr> joko: sorry to bother, if this is your config https://git.joko.gr/joko/etc-nixos/src/master/machines/munch-hardware.nix could you confirm `boot.initrd.luks.yubikeySupport` works as expected? and do you have time to verify an update won't break it? (you can PM me if desired/needed)
<AntonLatukha[m]> woffs: https://github.com/NixOS/nix/pull/1565 at the bottom. I currently try to test it for BSD. Not sure whole Nix binary code would work. I do not know what Nix uses in Linux Kernel - it is the whole another story. My aim is to just make install POSIX.
<{^_^}> nix#1565 (by Anton-Latukha, 47 weeks ago, open): [WIP] install-nix: Full progress of Linux installation
<maerwald> I don't see why it cannot find xcb-image, the package is clearly in the list
aanderse has quit [Ping timeout: 265 seconds]
<woffs> thanks AntonLatukha[m]
<clever> maerwald: yeah, reading it...
<AntonLatukha[m]> woffs: But when I would make Terraform and LibVirt work - I would setup BSDs. And then I would do additional testing what from Nix works there. Also current upstream installer theoretically works on BSD with bash as sh, but it has a couple of caveats that solved in my pull request.
<clever> maerwald: is pkgconfig in the buildInputs?
<clever> maerwald: also, you probably want to use super, not pkgs, in that override
<AntonLatukha[m]> woffs: Also I am not talking about any official support. Installer is not package manager itself.
<maerwald> yes, pkg-config is there
tazjin has joined #nixos
baconicsynergy has joined #nixos
<clever> maerwald: try using .overrideAttrs instead of overrideDerivation
<{^_^}> [nixpkgs] @matthewbauer merged pull request #44520 → appimagekit: init at 20180727 → https://git.io/fNX1H
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fN1o4
nschoe has quit [Remote host closed the connection]
rouma has joined #nixos
baconicsynergy has quit [Client Quit]
<emily> how do you do the equivalent of [Install] WantedBy=default.target DefaultInstance=foo with NixOS's systemd machinery?
orivej has joined #nixos
<emily> looks like the answer is maybe just "do it in an activation script" ^^;
<Dezgeg> noooo
<AntonLatukha[m]> emily: Depending if you making some custom service, or you configure something that is already in https://nixos.org/nixos/options.html#. Those options most times have `extraConfig`, then you can add custom services config there.
<emily> okay, that was premature; I just assumed because autovt@tty1 is hardcoded that way
<emily> (...is "do it in an activation script" the secret code to make everyone desperate to answer your question? :D)
Fare has quit [Ping timeout: 240 seconds]
<emily> unfortunately I still haven't worked out the way to actually do it >.>
Fare has joined #nixos
<{^_^}> [nix] @edolstra pushed 5 commits to master: https://git.io/fN16T
<samueldr> emily: ^ above message is for you
<emily> oh, right
<emily> sorry, I misunderstood your original line AntonLatukha[m]
<emily> thanks for the help
<samueldr> (AntonLatukha[m] the matrix bridge will (un)helpfully compress those messages down)
<AntonLatukha[m]> samueldr: I know, what I can do. I need multiline and code markup. I write big messages all the time.
<samueldr> AntonLatukha[m]: no worries, I didn't know if you knew about the limitation :)
<emily> yeah, only problem is that it ate the nickping there
Fare has quit [Ping timeout: 264 seconds]
Fare has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #44543 → emacs: make a number of melpa packages work again → https://git.io/fN1IT
<{^_^}> [nixpkgs] @peti pushed 12 commits to master: https://git.io/fN1PJ
<emily> unfortunately there's no installConfig to go with unitConfig :/
<{^_^}> [nixpkgs] @oxij opened pull request #44558 → stdenv: symlink propagated docs → https://git.io/fN1P2
Fare has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @dezgeg pushed to master « linux_testing: 4.18-rc7 -> 4.18-rc8 »: https://git.io/fN1PS
endformationage has joined #nixos
ng0 has quit [Ping timeout: 250 seconds]
Neo-- has joined #nixos
__monty__ has quit [Quit: leaving]
johnw has joined #nixos
amosbird has joined #nixos
<amosbird> Hello, how can I build a static tensowflow.so using nix ?
sorear has joined #nixos
Ariakenom has quit [Ping timeout: 248 seconds]
asymmetric has joined #nixos
dvim has quit [Quit: WeeChat 2.2]
Drakonis has joined #nixos
Adluc has quit [Excess Flood]
Thra11 has joined #nixos
johnw has quit [Ping timeout: 256 seconds]
hakujin1 has joined #nixos
<tfc[m]> hey there, when i have a var like `x = <nixpkgs>`, how do i express `makeTest = import (<nixpkgs> ++ /nixos/tests/make-test.nix)` ?
<samueldr> > <nixpkgs/nixos/tests/make-test.nix>
<{^_^}> /var/lib/nixbot/state/nixpkgs/nixos/tests/make-test.nix
<tfc[m]> i want to include the make-test.nix file depending from what nixpkgs path the user provided me with an optional parameter `{ nixpkgs ? <nixpkgs> }`
<samueldr> ah, in that case it's a bit different
<Dezgeg> I suppose import "${nixpkgs}/nixos/tests/make-test.nix" works
<amosbird> hmm, why doesn't so files have a .interp section?
hakujin2 has joined #nixos
<amosbird> can I package a so file and all its dependencies to make it portable ?
<samueldr> or possible `let pkgs = <nixpkgs>; in import (pkgs + "/nixos/tests/make-test.nix")` assume the `let in` is a stand-in for the parameters
__monty__ has joined #nixos
<tfc[m]> samueldr: oh no... i tried that and it did not work - but it looks like that was only because of a typo. :-(
<tfc[m]> samueldr: so what you say works and i have it running now. i was just too stupid to type. thanks man!
<samueldr> hah, sure, if you try importing a path that doesn't exist it won't work ;)
<amosbird> btw, why does the so file depend on /usr/local/libs ?
hakujin1 has quit [Ping timeout: 256 seconds]
Fare has joined #nixos
<amosbird> I don't have LD_LIBRARY_PATH set
<Dezgeg> don't use ldd from your distro
teto has joined #nixos
matthewbauer has joined #nixos
<tfc[m]> samueldr: ok this is strange... on mac it works, on nixos it doesn't. is there anything obvious that i am missing? https://gist.github.com/tfc/eb9b6869772a0e717630f2393850b7b3
<{^_^}> [nix] @dtzWill opened pull request #2334 → Revert "progress-bar: re-draw last update if nothing new for 1sec." → https://git.io/fN1yU
<samueldr> tfc[m]: /nix/store/k8g2ma0sg58mzfjr1my8hys8gm374yqv-nixpkgs/nixos/tests/make-test.nix do the components exist on the FS?
<tfc[m]> samueldr: no, it does not. it contains a lot of .drv files etc. but no nix expression...
<amosbird> Dezgeg: ah, i see
<teto> haskell noob here, I've been trying to run nix-shell with ghc-mod/hlint/hindent from different nixpkgs commits but there seems to always be sthg wrong. Any advice ? (If I remove those 3, the nix-shell call works)
<amosbird> hmm, so how can I package all the dependencies into one folder?
vmandela has quit [Remote host closed the connection]
<tfc[m]> samueldr: which is strange because i thought <nixpkgs> is always basically some form of nixpkgs checkout?
vmandela_ has joined #nixos
<{^_^}> [nixpkgs] @pSub pushed to add-missing-licenses « rambox: restrict to supported platforms »: https://git.io/fN1yl
<amosbird> Dezgeg: does nix have an ldd tool ?
<Dezgeg> it's in the glibc package
<samueldr> tfc[m]: humour me, you tried Dezgeg's "${}/..." try concatenating to the path, it doesn't have the same semantic whether it's been put into a string or not https://gist.github.com/samueldr/2cb63a38d8e06929402a92fff3107ccf
Fare has quit [Ping timeout: 244 seconds]
<amosbird> Dezgeg: does it also have patchelf shipped ?
* samueldr would love if someone that groks the semantics difference could clarify
<Dezgeg> patchelf comes from the patchelf package
<amosbird> i wonder if it's different than pip install patchelf-wrapper
lo_mlatu has joined #nixos
<amosbird> is this normal https://la.wentropy.com/1Cqc ?
<tfc[m]> samueldr: right... THAT works also on nixos. so that is helpful, but i am now confused about why it works on mac? :)
<Dezgeg> yes it's normal, .interp is for dynamically linked binaries only
<samueldr> tfc[m]: sandbox enabled?
freeman42x]NixOS has joined #nixos
<lo_mlatu> How can I changed the programs used to launch the application that runs in terminal (i.e. Terminal=true) in gnome3 de? This may not related to nixos but all the answer I found talked about ubuntu or some distros and not work for nixos...
<amosbird> Dezgeg: thanks
<amosbird> hmm, I have the rpath set to $ORIGIN. Why does it still print dependencies in /usr/local https://la.wentropy.com/jMVY
<{^_^}> [nixpkgs] @xeji pushed commit from @laMudri to master « AgdaStdlib: 0.15 -> 0.16 (#44550) »: https://git.io/fN1Sq
<{^_^}> [nixpkgs] @xeji merged pull request #44550 → AgdaStdlib: 0.15 -> 0.16 → https://git.io/fN1GN
<tfc[m]> samueldr: i am not aware of having played with sandbox settings, so i think i don't have it enabled on both machines
vmandela_ has quit [Quit: Leaving]
<infinisil> Lol, check this out: https://repodig.com/repositories/100
<infinisil> A repository analyzer, featured or lobsters: https://lobste.rs/s/g1jm83/repodig_determine_maintainability
<infinisil> But it is limited to the 100 last open issues/prs
<infinisil> So it's not all that useful :)
<infinisil> (for nixpkgs)
jperras has quit [Quit: WeeChat 2.2]
eddyb has joined #nixos
<samueldr> infinisil: I scraped all the data recently, in a manner allowing it to be continued, I'll be looking into fixing the main issues and sharing code + data by this week-end
<srk> would be nice if it shows closed issues / PRs per minute :D
BlessJah_ has quit [Remote host closed the connection]
<samueldr> playing around with ideas, I threw this together last night with the data https://stuff.samueldr.com/screenshots/2018/08/20180806124905.png
<samueldr> pulls that are updates to software, exclamation marks are those needing merge/rebase
<samueldr> (I don't know how maintainers do it, find a PR to act on!)
<Drakonis> nice.
hakujin2 has quit [Ping timeout: 276 seconds]
Sonarpulse has quit [Ping timeout: 265 seconds]
<infinisil> samueldr: Cool!
Fare has joined #nixos
hakujin2 has joined #nixos
<Drakonis> ah damn, this llvm build is going to throw a wrench in my plans
<samueldr> the idea is to make the data available (sqlite) so others too can make cool tools
<pikajude> why does the hoogle service use --local by default?
emacsomancer has joined #nixos
<amosbird> Hi, can I specify a specific libc.so version when installing a new apcakge
<amosbird> pacakge * ?
Drakonis has quit [Read error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number]
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fN19x
<{^_^}> [nix] @edolstra merged pull request #2334 → Revert "progress-bar: re-draw last update if nothing new for 1sec." → https://git.io/fN1yU
Drakonis has joined #nixos
<infinisil> amosbird: No idea what you mean by that?
<amosbird> I'd like to install libtensorflow with glibc 2.12
<amosbird> so that the so would be portable
dotplus has left #nixos [#nixos]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
lo_mlatu has quit [Quit: Page closed]
agjacome has joined #nixos
alex`` has quit [Ping timeout: 240 seconds]
<infinisil> ,overlays amosbird
<{^_^}> infinisil: Did you mean overlay?
<{^_^}> amosbird: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
ryanartecona has joined #nixos
<infinisil> You'll want to use an overlay to change glibc to an older version, which will then compile everything with that glibc, including dependencies
<amosbird> um, I need to generate a libtensorflow_framework.so so that it's portable and can be used in most linux distros
<infinisil> Oh huh, no idea about that
<amosbird> infinisil: um
<amosbird> how can I change that for libtensorflow package
<{^_^}> [nixpkgs] @kalbasit opened pull request #44559 → tmux-plugins: fix the fzf-tmux-url derivation → https://git.io/fN1Qj
stanibanani has joined #nixos
Fare has quit [Ping timeout: 248 seconds]
stanibanani has quit [Ping timeout: 256 seconds]
stanibanani has joined #nixos
stanibanani has left #nixos [#nixos]
aarvar has joined #nixos
Drakonis has quit [Remote host closed the connection]
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
bigvalen has left #nixos ["Leaving"]
<{^_^}> [nixpkgs] @kalbasit opened pull request #44560 → tmux-plugin: expose buildTmuxPlugin → https://git.io/fN1dx
<{^_^}> [nixpkgs] @Ma27 opened pull request #44561 → python3Packages.asana: 0.7.0 -> 0.7.1 → https://git.io/fN1dp
<{^_^}> [nixpkgs] @borisbabic opened pull request #44562 → pythonPackages.browser-cookie3: init at 0.6.4 → https://git.io/fN1FJ
NinjaTrappeur has joined #nixos
mayhewluke has quit [Ping timeout: 256 seconds]
reinzelmann has joined #nixos
mayhewluke has joined #nixos
Jackneill has quit [Ping timeout: 256 seconds]
Sonarpulse has joined #nixos
agjacome has quit [Quit: leaving]
Ariakenom has joined #nixos
<bgamari> How would one go about setting doCheck = false of the llvmPackages_5.llvm in an overlay?
alex`` has joined #nixos
<bgamari> llvmPackages_5.override appears to override the arguments passed to pkgs/development/compilers/llvm/5/default.nix
<bgamari> rather than provide the usual `override { overrides = self: super: { ... } }`-style interface
<infinisil> bgamari: self: super: { llvmPackages_5 = super.llvmPackages_5 // { super.llvmPackages_5.llvm.overrideAttrs (old: { doCheck = false; }) }; )
Fare has joined #nixos
<infinisil> Oh wait llvm = super.llvmPackages_5.llvm...
<infinisil> Missed that
<bgamari> ahh, right
<bgamari> thanks infinisil
<{^_^}> [nixpkgs] @Ma27 opened pull request #44563 → python3Packages.asgiref: 2.2.0 -> 2.3.2 → https://git.io/fN1bs
simukis has quit [Ping timeout: 240 seconds]
petersjt014[m] has quit [Ping timeout: 276 seconds]
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #44564 → vim-plugins: update to latest (2018-07-30) → https://git.io/fN1bX
<LnL> you might need to override llvmPackages_5.tools.llvm instead to make it propagate to everything
alex`` has quit [Ping timeout: 240 seconds]
cross has joined #nixos
<LnL> dtz[m]: ^ I got a bit confused by that :)
bobvanderlinden has joined #nixos
<bobvanderlinden> elvishjerricco: hi, i just tried your cross-nixos-aarch64 project. it took quite a while to build, but works very well! are there any plans to merge the cross-nixos-aarch64 of nixpkgs upstream?
<bobvanderlinden> i wanted to create a prebuilt image for raspberry pi and optionally use nixops to deploy from my x86_64 machine to raspberry pis around the house
<bobvanderlinden> seemed like cross-building would be ideal for that
betaboon has quit [Quit: WeeChat 2.1]
<elvishjerricco> bobvanderlinden: I've got some better stuff in the pipeline that I wanna get upstream before long. That use case is exactly my end goal :)
<bobvanderlinden> :D:D
<bobvanderlinden> awesome! I'd love to hear what you're up to
<elvishjerricco> bobvanderlinden: So far I've gotten everything to cross compile to my rpi 3b+
<elvishjerricco> My super long term goal is to build an android distro of nixos, so I've got an android kernel building for it as well
<elvishjerricco> Which surprisingly boots and seems to work. Or at least, I can SSH into it, but the screen doesn't come on.
<bobvanderlinden> the next service i tried was home-assistent, but that one still fails (python being used inside the build). I can look into fixing that, but I wanted to make sure I was building on top of a good branch
<bobvanderlinden> oh wow, everything for the rpi3? what are you running? do you have a branch somewhere i can check out?
<kalbasit> samueldr: can you ask borg to build this PR https://github.com/NixOS/nixpkgs/pull/44559 ? Thx!
<{^_^}> #44559 (by kalbasit, 1 hour ago, open): tmux-plugins: fix the fzf-tmux-url derivation
<elvishjerricco> bobvanderlinden: Hm. Well currently I'm using mostly the same branch, except I've rebased it over a more recent nixos-unstable. And I've adapted some code for an android kernel in the cross-nixos-aarch64 repo. But linuxPackages_latest works on rpi3 out of the box now.
<elvishjerricco> By "everything" I ultimately just meant enough to boot it, see the terminal on the screen, and even have networking / ssh working. So it's not huge
<bobvanderlinden> elvishjerricco: nice! that's already quite a leap from where i started.
<bobvanderlinden> and there are probably quite a few patch examples I can use to fix other packages that do not cross-build atm.
<elvishjerricco> bobvanderlinden: Let me see if I can push this stuff somewhere...
<dtz[m]> LnL: haha sorry, dunno why my thing keeps wanting that commit message :(
<dtz[m]> err PR title
<elvishjerricco> bobvanderlinden: Main reason I haven't pushed yet is that I have not maintained the ability to run stuff in qemu
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
<bobvanderlinden> ah that's too bad, but i can look into fixing that again
<bobvanderlinden> it isn't of highest priority for me too, but it is nice. would be nice if it could avoid the sdimage for emulation and build a root directory directly
freeman42x]NixOS has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<philippD> I have a problem using nix to build pdfs (through pandoc) and evince: Normally evince is smart enough to reload files when they change. When they are built using Nix they aren't though. I suspect the reason is that all timestamps of Nix-created files is 1970-01-01. Does anyone know an easy solution for this?
<symphorien> maybe synctex can help (don't ask details, I only know the name)
<infinisil> philippD: Probably `nix-build && cp result/foo.pdf foo.pdf` to build and `evince foo.pdf` will work
<infinisil> or s/cp/ln -s
<philippD> infinisil: the `ln -s` seems pretty ok. Thanks
<kalbasit> infinisil: thx for building the PR (https://github.com/NixOS/nixpkgs/pull/44559). Can you merge it? I need to get the next PR https://github.com/NixOS/nixpkgs/pull/44560 ready for merging but I need this first one merged first
<{^_^}> #44559 (by kalbasit, 1 hour ago, open): tmux-plugins: fix the fzf-tmux-url derivation
<{^_^}> #44560 (by kalbasit, 49 minutes ago, open): [WIP] tmux-plugin: expose buildTmuxPlugin
freeman42x]NixOS has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #44559 → tmux-plugins: fix the fzf-tmux-url derivation → https://git.io/fN1Qj
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fN1x4
lluchs has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
ng0 has joined #nixos
<elvishjerricco> bobvanderlinden: There. I just pushed what I use to cross compile to and boot on the rpi
<elvishjerricco> Note the change in branch of nixpkgs
alex`` has joined #nixos
<kalbasit> infinisil: thx :)
<infinisil> :)
<kalbasit> infinisil: https://github.com/NixOS/nixpkgs/pull/44560 is ready . This is my first build-support, I'd love your feedback on it
<{^_^}> #44560 (by kalbasit, 1 hour ago, open): top-level: expose buildTmuxPlugin
emacsomancer has quit [Remote host closed the connection]
* infinisil takes a look
<{^_^}> [nixpkgs] @volth opened pull request #44566 → libvirt: 4.5.0 -> 4.6.0 → https://git.io/fN1pm
freeman42]NixOS has joined #nixos
<infinisil> kalbasit: Want my comments here or on github?
Ariakenom_ has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
<kalbasit> infinisil: github works better
<infinisil> Alright
Ariakenom_ has quit [Ping timeout: 248 seconds]
<bobvanderlinden> elvishjerricco: awesome! I'll give it a go
reinzelmann has quit [Quit: Leaving]
jperras has joined #nixos
<kalbasit> infinisil: that's a better idea, let me quickly change the PR :)
ryanartecona has joined #nixos
<kalbasit> infinisil: I updated the PR https://github.com/NixOS/nixpkgs/pull/44560/files
<rycee[m]> drakonis: I didn't read through it all. Did your problem sort itself out or is there any remaining issues?
<{^_^}> [nixpkgs] @LnL7 opened pull request #44567 → python-language-server: 0.18.0 -> 0.19.0 → https://git.io/fN1j0
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fN1j2
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.4.145 -> 4.4.146 »: https://git.io/fN1jw
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.9.117 -> 4.9.118 »: https://git.io/fN1ji
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.14.60 -> 4.14.61 »: https://git.io/fN1j1
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.17.12 -> 4.17.13 »: https://git.io/fN1jy
<kalbasit> infinisil: updated it again :) Thx!
jmeredith has quit [Quit: Connection closed for inactivity]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
simukis has joined #nixos
dbmikus_ has joined #nixos
<philippD> Is there something like `tex2nix` that creates a nix expression for a given tex file that only depends on the packages used in that file?
dbmikus has quit [Ping timeout: 240 seconds]
<philippD> I searched quite a bit but couldn't find anything of this sort
<philippD> If the answer is no I would be willing to write create it
<{^_^}> [nixpkgs] @dotlambda pushed to master « home-assistant: 0.75.1 -> 0.75.2 »: https://git.io/fNMeK
IRCsum has quit [Remote host closed the connection]
Thra11 has quit [Quit: WeeChat 1.4]
IRCsum has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #44563 → python3Packages.asgiref: 2.2.0 -> 2.3.2 → https://git.io/fN1bs
<{^_^}> [nixpkgs] @dotlambda pushed commit from @Ma27 to master « python3Packages.asgiref: 2.2.0 -> 2.3.2 (#44563) »: https://git.io/fNMeQ
<{^_^}> [nixpkgs] @uskudnik opened pull request #44568 → Add support for user-extensible shellHook to buildStackProject → https://git.io/fNMve
IRCsum has quit [Max SendQ exceeded]
IRCsum has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « python.pkgs.asgiref: disable for python < 3.5 »: https://git.io/fNMvL
<zgrep> Out of curiosity, what's the reason for the inconsistency between commands such as `nix search`, `nix edit` where I tend to need to use `nixpkgs`, and other things such as `nix-env -iA` where I tend to use the name I gave the channel (which for me is "nixos")?
<{^_^}> [nixpkgs] @dotlambda merged pull request #44493 → pythonPackages.fire: init at 0.1.3 → https://git.io/fNXW8
<{^_^}> [nixpkgs] @dotlambda pushed commit from @leenaars to master « pythonPackages.fire: init at 0.1.3 (#44493) »: https://git.io/fNMvG
<tilpner> zgrep - nix-env used a different mechanism for providing the top-level expression (~/.nix-defexpr), which is not used by the newer tools
f0i has quit [Ping timeout: 256 seconds]
<tilpner> It's another moving part, and many people avoid nix-env where possible anyway
baconicsynergy has joined #nixos
<zgrep> The newer tools have, in my opinion at least, the rather more unexpected behaviour in this case, then.
<samueldr> also note that the `nix` command is a new UX, if a thing under `nix` seems weird with other tools under `nix` it's definitely an issue
<samueldr> don't know if there is an issue open or an expected location to talk about its UX
<LnL> there's no new style equivalent for 'install' yet
alex`` has joined #nixos
<zgrep> (It's just that I'd expect to use the name I gave to a channel, and was rather surprised a few weeks ago when it didn't.)
ng0 has quit [Ping timeout: 250 seconds]
<bobvanderlinden> samueldr: there was: https://github.com/NixOS/nix/issues/779
<{^_^}> nix#779 (by Profpatsch, 2 years ago, closed): Redesign of the nix command line
baconicsynergy has quit [Quit: Leaving]
<bobvanderlinden> but since Nix 2 was released it was closed. I don't know of a equivalent
<bobvanderlinden> LnL: I hope something like home-manager will be integrated and `install` will be: add package to your home file. Command line could be `nix home switch`
<bobvanderlinden> maybe have a `nix home add <package>` that will alter your `home.nix` with an additional package and then run `nix home switch`
<LnL> yeah, I don't know if a traditional install like we have now is even going to be added
<bobvanderlinden> i hope not. it results in confusion/problems sometimes :(
<{^_^}> [nixpkgs] @xeji opened pull request #44569 → vimNox: drop → https://git.io/fNMfl
<bobvanderlinden> basically the thing Nix stands for (reproducible) is something that nix-env doesn't completely adhere to
<LnL> something that's more like buildEnv but updates the expressions for you would be interesting
<tilpner> zgrep - What is your NIX_PATH? Does it refer to roots channels? Does root have a channel called "nixpkgs"?
IRCsum has quit [Remote host closed the connection]
IRCsum has joined #nixos
<zgrep> Huh. Indeed it does.
oida has quit [Remote host closed the connection]
<zgrep> Now that makes sense.
oida has joined #nixos
Neo-- has quit [Ping timeout: 265 seconds]
Thra11 has joined #nixos
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #44570 → set initialHashedPassword in installation-device.nix → https://git.io/fNMJs
<{^_^}> [nixpkgs] @kalbasit opened pull request #44571 → mycli: 1.6.0 -> 1.17.0 → https://git.io/fNMJr
johnw has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
ma27 has joined #nixos
ckauhaus has quit [Quit: WeeChat 2.0]
ng0 has joined #nixos
viric has joined #nixos
<viric> niksnut: hello - I just had that case... installed firefox in one terminal and kdenlive in another. Race condition, I ended up without the firefox update.
<viric> niksnut: firefox finished early, and then the kdenlive nix-env said:
<viric> waiting for lock on profile '/nix/var/nix/profiles/per-user/viric/profile'
<viric> profile '/nix/var/nix/profiles/per-user/viric/profile' changed while we were busy; restarting
<viric> replacing old 'kdenlive-17.12.2'
<viric> installing 'kdenlive-17.12.2'
johanot has joined #nixos
<viric> niksnut: I had installed firefox 61.0.1, and ~/.nix-profile/bin still has firefox 59
<viric> copying path '/nix/store/5jh0p7p59ffx694nr5z733f6bvz6ah38-firefox-61.0.1' from 'https://cache.nixos.org'...
<viric> building '/nix/store/q0igr88wwwhfc0xb53x4ss08106dk40v-user-environment.drv'...
<viric> created 22529 symlinks in user environment
<viric> ls -l `type -P firefox`
<viric> lrwxrwxrwx 1 root root 70 1 gen 1970 /home/viric/.nix-profile/bin/firefox -> /nix/store/1jcmd2iqxiw2illxw533xzbx16n8mmys-firefox-59.0.2/bin/firefox
<infinisil> viric: Don't spam
<infinisil> ,paste viric
<{^_^}> viric: Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
ersran9 has quit [Ping timeout: 248 seconds]
<infinisil> viric: And no need to ask specific people, anybody here can potentially help you
jmeredith has joined #nixos
hlolli has joined #nixos
<johanot> infinisil: thx for your thorough review on the certmgr pr, will look tomorrow. :)
<hlolli> anyone here that can look at https://github.com/NixOS/nixpkgs/pull/44076/ ?
<tilpner> infinisil - I assumed they had discussed "that case" before, and now had a specific example/case
<infinisil> johanot: Awesome :)
<viric> infinisil: I'm discussing this issue with niksnut since 2010
<infinisil> viric: Oh I see
<viric> infinisil: he says it does not happen, and every time it happens to me, I report to him
<niksnut> viric: I believe you :-)
<viric> :)
<viric> niksnut: but this time it had more console output, like the lock thing
<viric> 1st time I see it
* infinisil remembers that
<viric> I'd say it happens to me every time. I just happen to "nix-env -i" twice very rarely
<{^_^}> [nixpkgs] @dotlambda merged pull request #44561 → pythonPackages.asana: 0.7.0 -> 0.7.1 → https://git.io/fN1dp
<{^_^}> [nixpkgs] @dotlambda pushed commit from @Ma27 to master « pythonPackages.asana: 0.7.0 -> 0.7.1 (#44561) »: https://git.io/fNMTb
johnw has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #44572 → mate-screensaver: 1.20.1 -> 1.21.0 → https://git.io/fNMkI
<viric> How can I tell why "kinit" is in my profile?
<viric> nix-env -q |grep kinit does not show it
<viric> hm I found it - kcalc
rtjure has joined #nixos
<infinisil> #44497 <-- :O
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44497 (by hedning, 1 day ago, open): [WIP] Add gnome wayland support
dbmikus__ has joined #nixos
dbmikus_ has quit [Ping timeout: 264 seconds]
semilattice has joined #nixos
PolarIntersect has joined #nixos
<PolarIntersect> yoo
<PolarIntersect> Anyone here know how to disable screen blanking in X11?
<infinisil> PolarIntersect: Have you tried services.xserver.blankScreen = false? /s
<infinisil> I mean, if it's actually blank then that's a bug, and there won't be anything to "disable" it, because it needs to be fixed
flokli has joined #nixos
<PolarIntersect> It's just that the screen goes black every 3 seconds when watching Netflix
<PolarIntersect> Using ` xset ` doesn't do anything, which is weird
<{^_^}> [nixpkgs] @globin merged pull request #43909 → nvtop: init at 0.2.2 → https://git.io/fNWMX
<{^_^}> [nixpkgs] @globin pushed commit from @WilliButz to master « nvtop: init at 0.2.2 »: https://git.io/fNMIS
<infinisil> PolarIntersect: Why would running xset do anything?
<PolarIntersect> xset x off
<PolarIntersect> oops
<PolarIntersect> ` xset s off `
<PolarIntersect> It's the command to disable screen blanking in X
<PolarIntersect> but it doesn't work on my NixOS machines
<PolarIntersect> Not 100% sure why
<infinisil> Ahh, I see, so it's the screensaver thing that kicks in, or that's what you think it is
ryanartecona has quit [Quit: ryanartecona]
<PolarIntersect> Well, the screen saver is a separate thing
<PolarIntersect> blanking is where X11 renders a black screen
<tilpner> xset s 3 works here, and now I understand how annoyed you must be
<PolarIntersect> If you wait 3 minutes, it does it by default
ryanartecona has joined #nixos
<PolarIntersect> lol
<infinisil> Yeah (i meant that)
mojjo1234_ has joined #nixos
<PolarIntersect> Just tryin'a watch some Star Trek while I code :D: D :D
<PolarIntersect> X11 is like "NOPE."
<tilpner> Wouldn't the typing reset the timeout?
rouma7 has joined #nixos
<PolarIntersect> coding is on a separate machine
<infinisil> Maybe watch the logs to see if there's anything interesting printed
<tilpner> And xset s 3600 doesn't work either?
<PolarIntersect> I have a KVM between them, so I have to switch the KVM whenever the screen blanks -.- lolol
<mojjo1234_> hi! is there a way to obtain purescript 12.0 on nixos? the stable channel has 11.7 and in unstable 12.0 does not build anymore since some days.. (well, it's unstable :)
<PolarIntersect> tilpner: nope
<{^_^}> [nixpkgs] @fpletz pushed to master « openssl_1_1_0: add patch to fix c_rehash quoting »: https://git.io/fNMLs
<PolarIntersect> mojjo1234_: Seems like thre are packages? https://nixos.org/nixos/packages.html#purescript
<infinisil> PolarIntersect: Does it only happen on one screen?
<PolarIntersect> infinisil: Nope, it's regular screen blanking
rouma has quit [Ping timeout: 248 seconds]
<symphorien> mojjo1234_: "since some days" you can checkout an older unstable and use it, maybe ?
<PolarIntersect> mojjo1234_: You could create an overlay for it that pulls in the old recipe?
<infinisil> PolarIntersect: Maybe ask ##linux and #xorg as well
<PolarIntersect> infinisil: Yeah, I figured it was a NixOS specific issues since other distros don't have the issue for me
<PolarIntersect> but I guess not
Drakonis has joined #nixos
<infinisil> Well it might be NixOS specific, but xorg and linux people still might know some stuff we don't
<mojjo1234_> symphorien: yeah.. good idea.. right now I fetch it via `fetchTarball` ... but I don't point to a specific revision... how would I do this?
flokli has quit [Quit: WeeChat 2.0.1]
<mojjo1234_> (from within my configuration.nix)
<{^_^}> [nixpkgs] @vincentbernat opened pull request #44573 → nixos/cloudstack-image: initial import → https://git.io/fNML9
<symphorien> just point it to the right github url
<PolarIntersect> infinisil: Sadly, ##xorg is the kind of place that only answers questions with WDYT and ##linux is the kind of place that will tell me to go to ##xorg :D :D
<symphorien> replace "master" or the branch by the sha of the commit I guess
<infinisil> PolarIntersect: If nobody here can help I think it's worth a try :)
<PolarIntersect> infinisil: Yeah :)
<infinisil> I mean, if my display were to turn off every 3 seconds I'd try to fix that asap!
Ariakenom has quit [Quit: Leaving]
flokli has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<infinisil> Phew, now ofborg has llvm and everything built, but hydra doesn't..
<infinisil> So ofborg builds succeed, but you can't get stuff from the cache when you build it yourself..
<Drakonis> nice!
<Drakonis> what broke it in the first place?
<Drakonis> rather, what's leading to the rebuild?
<samueldr> nothing broke
<infinisil> I already said it before
<samueldr> the functional nature of dependencies in nixos caused the rebuild
<Drakonis> okay
<samueldr> most times, these changes are pre-empted and batch-built
<samueldr> (the staging branch)
<Drakonis> aye, but this one skipped it then
<infinisil> drakonis: this is the commit that was the source of the many rebuilds: https://github.com/NixOS/nixpkgs/commit/76a713bd299ff9bd63880c4be25a8335f5082322
<infinisil> And it didn't go through staging (which it probably should have), but it's no biggie, things will sort itself out automatically and nothing is broken
<mojjo1234_> symphorien: currently I'm using `fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz` Which would be a working drop in URL that takes the one from say 10 days ago?
<Drakonis> alright cool
<symphorien> replace nixos-unstable by the commit sha you are interested in
<mojjo1234_> symphorien: nice..
simukis has quit [Quit: simukis]
simukis has joined #nixos
logzet has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #44566 → libvirt: 4.5.0 -> 4.6.0 → https://git.io/fN1pm
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « libvirt: 4.5.0 -> 4.6.0 (#44566) »: https://git.io/fNMqS
simukis has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #44555 → mpich2: cleanup derivation, rename to mpich → https://git.io/fN1RN
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNMmf
<mojjo1234_> symphorien: weird, whatever commit I chose (10, 20, 30 days ago) i still get the same error.. I'm pretty sure that I build within this time period from the nixos-unstable...
<mojjo1234_> symphorien: ah, wait.. this one looks more promising :) seems to build
kisik21 has joined #nixos
mayhewluke has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « libtorrentRasterbar: multi outputs, install python2/3 bindings »: https://git.io/fNMmo
<mojjo1234_> is there actually a way to rebuild without restarting the services..? on this machine it takes ages until polkit.service is restarted...
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
selfsymmetric-pa has joined #nixos
<ldlework> How do I ensure that "xmodmap ~/.Xmodmap" is always run on boot?
<infinisil> ldlework: services.xserver.displayManager.sessionCommands
<ldlework> <3
ryanartecona has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « Revert "libtorrentRasterbar: multi outputs, install python2/3 bindings" »: https://git.io/fNMYl
ng0 has quit [Quit: Alexa, when is the end of world?]
Drakonis has quit [Remote host closed the connection]
dhess has joined #nixos
<dhess> Anyone working on CVE-2018-5390?
<viric> grmbl kdenlive runs with 100%cpu here
<selfsymmetric-pa> ldlework: Note that if your configuration is simple, there are builtins, like `services.xserver.xkbOptions = "ctrl:nocaps"`.
<ldlework> selfsymmetric-pa: can you replicate, https://gist.github.com/dustinlacewell/12f60db5b892cf06e96e88d3bfc08fae
<selfsymmetric-pa> Nah, at that point I think you should go with infinisil's suggestion and use `sessionCommands`.
johnw has joined #nixos
<kisik21> "ValueError: Namespace Gtk not available" when using (python3.withPackages (python-packages: with python-packages; [ pygobject2 pygobject3 pillow ])). What did I forget?
<kisik21> Trying to use GTK+ 3 btw
<ldlework> selfsymmetric-pa: thanks
lassulus has quit [Ping timeout: 240 seconds]
<symphorien> kisik21: gobject-instrospection as another buildInput
<kisik21> Not building a derivation, trying to use directly
<symphorien> in nix-shell -p then
<kisik21> (actually I install system-wide but I think I know what do you mean)
mayhewluke has joined #nixos
<symphorien> gi depends on either environment variables or a wrapper, so you can't install python this way
<kisik21> so I need to make it a derivation or use nix-shell?
<symphorien> just use nix-shell
<symphorien> you can can use the wrapper thing when you know all the possible programs you could want to use gtk from
<symphorien> here I guess this is not the case
<kisik21> `nix-shell -p gobjectIntrospection "(python3.withPackages (python-packages: with python-packages; [ pygobject2 pygobject3 pillow ]))"` - same thing
<kisik21> what am I doing wrong?
johanot has quit [Quit: leaving]
<symphorien> I have this in my shell history and it works nix-shell -p gobjectIntrospection atk gtk3 'python2.withPackages (ps: with ps; [ pygobject3 ])' --run "python -c \"import pygtkcompat; pygtkcompat.enable_gtk(version='3.0')\""
<symphorien> apparently you still need to add gtk and stuff
lassulus has joined #nixos
<kisik21> what's atk?
<symphorien> accessibility toolkit of gtkk
<symphorien> you may or may not use it
<kisik21> I don't think I'll need it...
<kisik21> hooray, it works, thank you
<kisik21> now I think I'll wrap this thing in a proper-ish derivation so it won't linger in my ~/.local
witchof0x20 has quit [Remote host closed the connection]
<kisik21> ouch
witchof0x20 has joined #nixos
<kisik21> (wpg:27692): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
<kisik21> symphorien: what's that? what should I add?
<symphorien> hum
semilattice has quit [Ping timeout: 256 seconds]
<kisik21> should I add anything?
<symphorien> what are you trying to achieve
<kisik21> trying to run github.com/deviantfero/wpgtk
<symphorien> so you are trying to properly package something, right ?
nD5Xjz has quit [Ping timeout: 260 seconds]
<kisik21> I'm trying to at least get it running so I would know how to package it. Should I not bother and package it blindly and then debug it?
<kisik21> I'm a total noob at packaging Python apps though
<symphorien> in the case of gnome stuff it is easier to just package it because there is wrapGAppsHook which does all the magic
<symphorien> let me find you an example.
<{^_^}> [nixpkgs] @corngood opened pull request #44575 → mesa: add patch to include driver path in cache key → https://git.io/fNM35
<symphorien> https://github.com/NixOS/nixpkgs/blob/8397411b4011cc5cd78f629e91b7635898e466d5/pkgs/applications/audio/quodlibet/default.nix << not the simplest, but just drop anything which has to do with checks
klntsky has quit [Ping timeout: 250 seconds]
davenpcm has quit [Quit: Textual IRC Client: www.textualapp.com]
<symphorien> ah this one is simpler
<kisik21> this one? am I still online?
<kisik21> am I still receiving messages?
<symphorien> sorry
<symphorien> forgot to paste
<kisik21> it's ok
alex`` has quit [Ping timeout: 248 seconds]
<kisik21> can I make a derivation using PyPI instead of GitHub?
<kisik21> oh nevermind
<{^_^}> [nixpkgs] @Ericson2314 opened pull request #44576 → stage-1: Remove last reference of now-removed stdenv.isCross → https://git.io/fNMsn
<kisik21> reading the source improperly
Anton-Latukha has quit [Quit: Leaving.]
<kisik21> Is xsltproc packaged somehow?
<clever> ,find xsltproc
<{^_^}> Couldn't find any such files
silver has joined #nixos
<cransom> it's in libxslt
<clever> libxslt.bin 29,008 x /nix/store/1hmq8lvxfd9yfnxxandk3kahdah610r3-libxslt-1.1.29-bin/bin/xsltproc
<kisik21> oh thanks
<clever> ,locate xsltproc
<{^_^}> Found in packages: boost-build, bashCompletion, python27Packages.libxslt.bin
<clever> ah, wrong cmd
<clever> ,locate bin xsltproc
<{^_^}> Found in packages: python27Packages.libxslt.bin
<clever> odd that the bot is claiming python though
silver_ has quit [Ping timeout: 240 seconds]
<kisik21> wait, this bot can search packages?
<kisik21> wow
<kisik21> ,help
<{^_^}> Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<clever> kisik21: its just using nix-index, which you cain install youself
<kisik21> yeah, I know about nix-index
<infinisil> Looking into why it didn't find that
<kisik21> though I sometimes forget to use it ^^
<kisik21> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager howoldis library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unstable which-channe
<ldlework> New Cookbook Challenge: In NixOS config, take a path to a file, and build that file into derivation with corresponding activation package to link it outside of the store somewhere.
klntsky has joined #nixos
ma27 has quit [Quit: WeeChat 2.0]
<srhb> ldlework: Devil is in the detail, namely in the "somewhere"
<srhb> It is not something we can do in general.
<ldlework> srhb: home-directory
<ldlework> etc
<ldlework> var
<srhb> ldlework: We have a framework for setting things in /var
<symphorien> kisik21: I added a small note in the wiki, if your experience is different please amend https://nixos.wiki/wiki/Python#Special_Modules
<ldlework> just outside of the store. home-manager does it in a systematic way. I was thinking "minimal example" case.
nD5Xjz has joined #nixos
<srhb> ldlework: No, home-manager just hsa something similar for /home
<srhb> And when I said /var I meant /etc, clearly
<srhb> Bedtime soon.. q_q
<ldlework> srhb: doesn't it just take an activation package?
<ldlework> to symlink from the ${whatever} to the target location?
<ldlework> (i'm making this up as i go)
<srhb> ldlework: Not quite, no. I mean, again, if you're willing to stuff "completely custom framework to support a specific location" into your "just" -- sure! :P
<srhb> But it's not very much nix. It's mostly just bash. And bad dreams.
<ldlework> lol i'm confused why this would require a framework
<ldlework> but you are a comparative wizard
MP2E has joined #nixos
<srhb> ldlework: Have you tried less /run/current-system/activate ?
<srhb> Specifically, search for "etc" in that file
<srhb> And find /nix/store/...-setup-etc.pl
<srhb> Then less that :)
<ldlework> srhb: why couldn't an activation script simply ln -s like other lines in this file are doing?
<srhb> For some things I'm sure it can. In general, not so much.
<srhb> I mean, atomicity is one thing that might make it hard in certain cases
<ldlework> like simple config files? why wouldn't that work?
<srhb> We already can do simple config files (/etc)
<srhb> That's specifically the easy thing. :)
<ldlework> sure, i can't point qtile to use something in /etc as its config though
<ldlework> it always looks in ~/.config/qtile/config.py
<srhb> ldlework: Patch it :P
<clever> ldlework: then patch it to accept an env var with the path to the config?
<ldlework> and i don't want to use home-manager for this, because i want qtile to be properly configured on first boot
<ldlework> .................
<srhb> Really, we do it all the time!
<clever> then set the env var to the storepath of a config file, and dont use /etc at all
<srhb> And ideally throw the upstream peoples a "make this configurable pls"
<ldlework> that doesn't scale
<ldlework> this is like #python in the early 90's
<{^_^}> [nixpkgs] @symphorien opened pull request #44577 → gwyddion, ripser: fix derivation name → https://git.io/fNMGi
<ldlework> where every problem is an X Y problem no matter what
<srhb> Besides ~/.config sounds like XDG_CONFIG_PATH or whatever it's called
<ldlework> :P
hamishmack has joined #nixos
<srhb> ldlework: We have some really really hard constraints on our system.
<srhb> ldlework: So we absolutely do hit this way more often
<srhb> And breaking the guarantees of the system is not something undertaken lightly. :)
<srhb> Hence, patch patch patch.
<ldlework> i am already doing this on a massive scale with home-manager
<ldlework> I would like to do the same thing with just one file, such that it happens in my main system
<kisik21> Please remind me how to get a hash for a tarball for pasting into nix file?
<ldlework> i don't want to get in the business of patching tools i use just to get on with nixos if there is a simple mechanism for doing this
<symphorien> ,tofu kisik21
<{^_^}> kisik21: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<symphorien> in vim, type 52a0
<kisik21> how did you guess I'm using vim?
<srhb> ldlework: I'm afraid home-manager makes some sacrifices that makes it looks more deceptively simple than it really is
<samueldr> chances were good
<symphorien> I didn't guess
<samueldr> I mean, if you selected nix and nixos, you like good tools ;)
<kisik21> You knew it
<infinisil> srhb: Those are? (I have an idea, but not sure)
<kisik21> samueldr: I was a vim user before I got to nixos lol
<ldlework> srhb: so it is not the case that i can use an activation package to symlink a file in the store to an arbitrary place on the system, including ~/.config?
<srhb> infinisil: For instance, I have two config files managed by home-dir that are symlinked in place apparently separately from each other
<ldlework> just be straight with me, i'm a consenting adult
<ldlework> :)
<srhb> ldlework: Yes, you can do that.
<ldlework> ok heh <3
<srhb> I will cry inside :)
<ldlework> i hear that
<srhb> infinisil: And by home-dir I mean home-manager q_q
<ldlework> srhb: consider i need to learn how to do things with nix in general just by moving the parts
Thra11 has quit [Ping timeout: 260 seconds]
<ldlework> srhb: were you mentioning a general mechanism for adding things to ~/.config before?
<srhb> ldlework: I definitely applaud that. :) I'm sorry, I really don't mean to be dissuading, just to try and measure up the costs. not that my experiences can be transfered via osmosis anyway :)
<infinisil> srhb: so you have 2 files that compete over a symlink?
<srhb> infinisil: No no. They just each have a symlink.
<srhb> (Directly into the nix store)
<srhb> Compare /etc/static
* infinisil doesn't see the problem, or is missing something
<infinisil> Ohhh
<infinisil> Yeah I've been wanting to implement it better
<infinisil> Making it as atomic as possible
* srhb nods
<infinisil> Shouldn't be too hard actuallllly
<ldlework> infinisil: can you explain the problem a little?
<srhb> At least one level of indirection there should be okay. :)
<ldlework> atomic?
dbmikus__ has quit [Ping timeout: 264 seconds]
<infinisil> srhb: Yeah
silver_ has joined #nixos
<srhb> ldlework: A general premise in NixOS is: Either everything changes, or nothing does.
silver has quit [Ping timeout: 244 seconds]
<srhb> ldlework: With separate symlinks directly into the store the risk of having half-activations is increased
<infinisil> How NixOS manages /etc: Build derivation that contains /etc, in activation phase, do `ln -sf ${etc} /etc/static` and then potentially update symlinks in /etc, e.g. a new file /etc/foo -> /etc/static/foo
ryanartecona has quit [Quit: ryanartecona]
<infinisil> (I think at least)
<srhb> Sounds right to me
<srhb> home-manager does 1 and 3, right?
<srhb> (morally)
<infinisil> Well it does the direct symlinks at 3, but yeah
<ldlework> i feel like we should all band together
<kisik21> packaged... gi.RepositoryError: Typelib file for namespace 'Pango', version '1.0' not found
* srhb nods
<ldlework> and solve user state management
<ldlework> once and for all
<kisik21> what do I need to add?
<ldlework> in a great effort
monotux has quit [Ping timeout: 264 seconds]
<kisik21> oh wait I forgot gtk lol
<infinisil> ldlework: Feelings unfortunately don't do any work though xD
<infinisil> And it's not a trivial problem, needs proper thought
<ldlework> let's think it through
<ldlework> mailing list or something
<infinisil> And optimally integration into Nix itself
<ldlework> yes please
<ldlework> think of the children^H^H^H^Husers!
<ldlework> no literally, think of the users and how we handle their state.
<ldlework> :D
silver__ has joined #nixos
<infinisil> There is #9250
<{^_^}> https://github.com/NixOS/nixpkgs/pull/9250 (by ts468, 2 years ago, open): nixuser: declarative user environments
<infinisil> But it kinda bitrotted.. and wasn't ever used afaik
<{^_^}> [nixpkgs] @xeji merged pull request #44533 → linux_testing_bcachefs: 4.15.2018.04.14 -> 4.15.2018.08.03 → https://git.io/fNXAJ
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fNMZ6
<srhb> And home-manager was rather... Instantly usable. :P
<infinisil> home-manager is much more promising
<infinisil> Yee
<ldlework> It is just nix and bash code right?
<ldlework> Why can't we move it into NixOS?
<infinisil> So I think the best course of action is to fix up and polish home-manager first
<srhb> Essentially, yes
<srhb> ldlework: There's a module already.
Lisanna has joined #nixos
<infinisil> One of the biggest problems with home-manager is that it currently has a lot of modules just copied from NixOS and adjusted by some chars
rouma7 has quit [Ping timeout: 244 seconds]
<Lisanna> What methods exist in Nix for sorting a list of strings alphabetically?
<infinisil> The solution would be to make modules non-NixOS specific
<{^_^}> [nixpkgs] @xeji pushed commit from @romildo to master « mate-screensaver: 1.20.1 -> 1.21.0 (#44572) »: https://git.io/fNMZy
<{^_^}> [nixpkgs] @xeji merged pull request #44572 → mate-screensaver: 1.20.1 -> 1.21.0 → https://git.io/fNMkI
<Lisanna> Only one I've found so far is to abuse builtins.attrNames
<infinisil> Which will then also have the advantage of them being usable on other Linux distros
silver_ has quit [Ping timeout: 268 seconds]
<infinisil> > builtins.sort [ "a" "aa" "foo" "flob" ]
<{^_^}> <PRIMOP-APP>
<Lisanna> builtins.sort needs a comparator
<infinisil> > builtins.sort (a: b: a < b) [ "a" "aa" "foo" "flob" ]
<{^_^}> [ "a" "aa" "flob" "foo" ]
<Lisanna> > "a" < "b"
<{^_^}> true
<Lisanna> oh, cool
<infinisil> :)
<{^_^}> [nixpkgs] @kalbasit opened pull request #44578 → pythonPackages.cli-helpers: init at 1.0.2 → https://git.io/fNMnW
<ldlework> infinisil: should we start a wiki page outlining the known-knowns with regards to that objective?
<ldlework> like the ones you just mentioned
<ldlework> starting point for a proposal on how to generalize the modules
<infinisil> Hmm, doesn't really fit in the wiki
<infinisil> Should really be an RFC
endformationage has quit [Read error: Connection reset by peer]
endformationage has joined #nixos
ntqz has quit []
<kisik21> I think I've built an overlay, but I can't make NixOS pick up changes from it. NixOS cannot find xfce.xfce4-i3-workspaces-plugin... here's the source. https://paste.pound-python.org/show/1igBGDDyf0IM426niykI/
<infinisil> kisik21: Remove the self prefix of all those attrs
<infinisil> kisik21: And line 5 should have `gtk = self.gnome3.gtk;` instead of super
<infinisil> kisik21: Same with line 7: `gtk = self.gnome2.gtk;`
Dagger has quit [Excess Flood]
<kisik21> fixed, trying again...
erasmas has quit [Quit: leaving]
<kisik21> found another error in one of the derivations...
<{^_^}> [nixpkgs] @poelzi opened pull request #44579 → update bitwig studio to 2.3.5 → https://git.io/fNMCT
<kisik21> How to make xfce4-dev-tools and all other xfce4 packages to appear in derivation without listing them all as arguments?
<ldlework> infinisil: if one uses the nixos module for home-manager (still haven't figured that out) would it be possible to have home-manager do its thing before first boot?
<kisik21> xfce4 top-level file seems to do it by creating a new scope... Is there a way to make this scope used in the overlay?
<infinisil> ldlework: Nope, unfortunately, this part of it needs some work as well
<ldlework> my biggest worry with my current configuration is that when push comes to shove to move to a new laptop, things will not be as easy as i hoped
<ldlework> that is sort of the promise i aimed after when i switched to nixos, i hope i can eventually get there
<infinisil> Unfortunately a lot of things in my set up don't really work with a declarative config :(
<infinisil> Well not a lot, but some things
<infinisil> E.g. weechat and firefox
johnw has quit [Ping timeout: 256 seconds]
rouma7 has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #44577 → gwyddion, ripser: fix derivation name → https://git.io/fNMGi
<{^_^}> [nixpkgs] @xeji pushed commit from @symphorien to master « gwyddion, ripser: fix derivation name (#44577) »: https://git.io/fNMCp
zkourouma has joined #nixos
<ldlework> infinisil: i am happy for weechat if i am able to clone my weechat state repo and put it into the right spot
<ldlework> or symlink it there
rouma7 has quit [Ping timeout: 244 seconds]
<infinisil> Maybe NixOS needs something to declaratively manage state :P
<ldlework> infinisil: like the convention i'm using is that my whole configuration goes into /nixcfg such that that would be the thing I would write to a partition before symlinking a specific host's top-level to configuration.nix
worldofpeace_ has joined #nixos
<ldlework> i wanna be able to go to a new laptop, get the livecd going, clone my repo to /nixcfg and to the first build jazz and then reboot into my actual environment
<ldlework> i would love to give a talk someday at a nixcon showcasing that
<kisik21> why not clone to /etc/nixos directly?
<kisik21> I actually do that on my laptop
<ldlework> kisik21: because the only file needed there is configuration.nix
<ldlework> and nix does its own hardware-configuration.nix generation there
<ldlework> so it is not a good candidate for a repo root
<ldlework> just my opinion
<ldlework> simply symlinking /nixcfg/hosts/logos/configuration.nix -> /etc/nix/configuration.nix is nice and simple
<kisik21> .gitignore to the rescue. And for hardware configuration - that changes rarely and I manage it manually (or for new PCs I plan on generating it and then symlinking it from hardware/.
<kisik21> Allows to better deploy to machines with identical hardware
<ldlework> kisik21: anyway, i hear you. this doesn't really bear on the real problems though.
<infinisil> kisik21: Once regenerating hardware-configuration.nix actually solved a bug for me
<infinisil> Because of an updated kernel module
<ldlework> boy i hope i never run into something like that haha i would never figure it out
<worldofpeace_> Anyone want to merge/review #44292 ?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/44292 (by mankyKitty, 5 days ago, open): vscode-extensions: Script to generate Nix for "latest" version of all installed vscode extensions
<kisik21> I sometimes keep my own hardware-specific hacks section in hardware-configuration.nix, because I feel configuration.nix should contain only bits that are defining use-cases and software configuration.
<kisik21> That way configuration.nix would be generic enough to be usable on other machines.
<ldlework> Quick! Everyone! What are your favorite nix-tools-that-you-must-install-separately?!
<kisik21> nix-locate comes to mind the most quickly
<worldofpeace_> ^
hlolli has quit [Remote host closed the connection]
<kisik21> I'd also say nix-de-generate, but last time I used it it generated an environment that was worse than environment generated with my xonsh script written in 5 minutes
<kisik21> it imported SO MUCH crap in it...
sigmundv has joined #nixos
<kisik21> Idlework: oh, also... does nix-shell come by default?
jperras has quit [Ping timeout: 255 seconds]
<infinisil> Pretty cool: #40679
<{^_^}> https://github.com/NixOS/nixpkgs/pull/40679 (by matthewbauer, 11 weeks ago, open): [wip] programs/nix-index.nix: init module
worldofpeace_ has quit [Ping timeout: 256 seconds]
gratin has joined #nixos
ericsagnes has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @fpletz merged pull request #44509 → libinput: 1.11.0 -> 1.11.3 → https://git.io/fNXV9
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to staging: https://git.io/fNMlp
zopsi has joined #nixos
chessai has joined #nixos
<chessai> haskell-related: does anyone know what might cause reflex to depend on multiple versions of vector here? https://gist.github.com/chessai/a86559d076651e534834885d4f2dfdf4#file-wtf-nix-L102
zopsi has quit [Client Quit]
zopsi has joined #nixos
Fare has quit [Ping timeout: 268 seconds]
<infinisil> chessai: It seems that th-lift-instances is the problem, did you override this or something?
<infinisil> Sounds like an improperly declared overlay
<clever> chessai: can you gist the nix expressions that caused this?
alexteves has quit [Remote host closed the connection]
<chessai> infinisil: i did not override it
<chessai> clever: ok