<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]
<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>
<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
<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.
<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
<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
<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
<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)
<pie_>
I don't github, might someone fix/open an issue about exposing plasma5's klipper? /nix/store/qmrihimhk2fl8dgaz3b9f5jjds61nvcg-system-path/bin/klipper
<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
<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
<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
<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"
<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)
<{^_^}>
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: { ... }) ];
<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
<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:
<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: 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}";
<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?
<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)
<{^_^}>
[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: 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
<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
<{^_^}>
[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?
<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
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
<{^_^}>
[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)
<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]
<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.
<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
<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 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)
<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 ?
<{^_^}>
[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
<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
<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]
<{^_^}>
[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]
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?
<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
<{^_^}>
[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")?
<{^_^}>
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
<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
<{^_^}>
[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
<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?
<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
<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: 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?
<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
<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
<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
<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.
<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 :(
<{^_^}>
[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?