<mikky>
I'm trying to use `(builtins.elemAt config.networking.interfaces."br0".ipv4.addresses 0).address` inside a module (imports = [ ./module.nix ]) and I'm getting 'index out of bounds` error. The `config` map isn't propagated to the module?
<noonien>
what are the reasons for not having dependencies as relative paths?
<noonien>
or is it just simplicity?
newuser99 has quit [Ping timeout: 260 seconds]
<mikky>
noonien: not sure what you're asking
<noonien>
hmm, i guess i'm asking why all nix store paths are absolute
fes has joined #nixos
<noonien>
having absolute paths is convenient, but having relative paths would mean /nix/store could be anywhere
<samueldr>
maybe at eval time, but things work with full paths
<mikky>
why would you want to have /nix/store elsewhere?
<{^_^}>
[nixpkgs] @zowoq opened pull request #80481 → Revert "postgresql: build < 9.5 with openssl 1.0.2" → https://git.io/Jv4AG
<samueldr>
okay, ignore dynamic linkers on linux, there are other things that will only work with an absolute path
<samueldr>
mikky: single user install as non-root
<samueldr>
~/my-nix-store
<samueldr>
that could be useful in a shared environment
<mikky>
I see
<noonien>
yeah, that was my tought as well, i'm pretty sure there are a few examples that require absolute paths, or transform relative paths into absolute ones
reallymemorable has quit [Quit: reallymemorable]
<noonien>
also, having relative paths would complicate things quite a bit, since they have to be relative to something
<noonien>
i just wanted to ask to make sure
fes has quit [Ping timeout: 260 seconds]
<noonien>
a friend asked the same question to which i gave the same answer, it being a requirement for the dynamic linker, and then he showed me ORIGIN
<mikky>
you can always use some kind of chroot setup
<noonien>
no, i don't need this feature, i was just curious
<mikky>
It's an interesting thought experiment
<mikky>
make it a game :)
<mikky>
the goal: run nix as user without root access
<noonien>
you should be able to do that
<noonien>
you either have to have /nix/store as your user
<noonien>
or compile nix with a different root
laduke has joined #nixos
<samueldr>
noonien: the dynamic linker itself, I figure, might need an absolute path
<aswanson>
newuser97: that depends on if you want to have the packages available globally or for a specific development environment. if the latter I would suggest making a shell.nix as outline where it mentions using `mkShell` in the link you provided
<laduke>
Is it possible (and easy) to install into a systemd-nspawn? I'd like to maybe gradually switch my little home server over to nixos; so I'd like to try moving services into a nixos vm. I guess I could use virtualbox vms.
newuser97 has quit [Remote host closed the connection]
<dashkal>
This might be a wrong question, in which case corrections are appreciated: Can you add dev environments made with shell.nix files as GC roots?
newuser96 has joined #nixos
<evanjs>
clever: down to cleanup and trimming the kernel config now. Though I guess I could use the original config I was given and see how far it gets me now lol
<newuser96>
https://bpaste.net/FPEQ is what I tried, but the environment running qtile doesn't have psutil
<newuser96>
I should probably do this with something other than the window manager so it's not as disruptive when I want to reload it...
<newuser96>
but anyway, why am I not getting psutil in that env?
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv4pm
bvdw has quit [Read error: Connection reset by peer]
<fes>
i would like to add some parameters in pulseaudio's daemon.conf but the file in /etc/pulse/daemon.conf is linked to a file in store and that file is unwritable. how do i solve this?
<mdash>
are you trying to avoid a conflict when using nix-env -i?
<newuser99>
which `vim` gives me a .nix-profile/bin/vim
reallymemorable has joined #nixos
<mdash>
right, but nix-env doesn't know about anything in your env named 'vim' because it's provided by a derivation of a different name
<newuser99>
Not sure what I changed but now running `home-manager switch` works without conflict. So that's fine for now. But what is the correct solution to that priority issue.
<newuser99>
?
<mdash>
typically it's "not have derivations in your env with overlaps"
<{^_^}>
[nixpkgs] @jonringer pushed commit from @drewrisinger to master « pythonPackages.osqp: init at 0.6.1 »: https://git.io/Jv4hR
<evanjs>
Might be looking at some gcc5 compilation tomorrow... is that something that’s supported on 19.03/20.03 and up, though? Or is that just too old
<qyliss>
> pkgs.gcc5
<{^_^}>
attribute 'gcc5' missing, at (string):281:1
<qyliss>
That's a no, I think :)
<bhipple>
> pkgs.gcc4
<{^_^}>
attribute 'gcc4' missing, at (string):281:1
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/Jv4j4
srid-irccloud has quit [Quit: Connection closed for inactivity]
Ukari has quit [Remote host closed the connection]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
v88m has joined #nixos
Supersonic112 is now known as Supersonic
<evanjs>
bhipple: oh boy 😰 going to be building for a system that is currently running gcc5 on armv7 (I think?). Cross compilation isn’t the issue, now that libwebsockets is fixed (cmake wasn’t marked a nativeBuildInput before) but hrm. Wonder how gcc 49 will work 😅
<CMCDragonkai>
What's special about Hydra, other than it is a Nix project?
<infinisil>
CMCDragonkai: Special in what way??
boxscape has joined #nixos
<evanjs>
There it is, gcc49Stdenv. Is it enough to do something like pkgsCross.armv7l-hf-multi-platform.callPackage { stdenv = pkgs.gcc49Stdenv; }, then?
mexisme has joined #nixos
noogie has quit [Remote host closed the connection]
<CMCDragonkai>
what's so great about it, compared to other CI systems
MrCoffee has quit [Quit: Lost terminal]
<gchristensen>
CMCDragonkai: it is good at building 50,000 jobs in one go
<evanjs>
Well. Looks like it’s building. Guess I’ll see if that works tomorrow 😁 thanks again bhipple and qyliss
<evanjs>
Bah. Looks like it’s failing to link libwebsockets if i simply give gcc49Stdenv to the callPackage function. probably need to push it up higher, don’t I 😃
<peelz>
can I use backticks in github issue titles, or will those render as literal backticks?
noogie has quit [Remote host closed the connection]
<sehqlr[m]>
oh yeah, you should package them then :)
gxt has joined #nixos
<newuser99>
using that thing I linked? or some other way?
<sehqlr[m]>
I have only ever used the shell aliases, so I'd start with what you started with
phirsch has joined #nixos
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slack1256 has quit [Remote host closed the connection]
butterthebuddha has joined #nixos
<evanjs>
I got really lazy and just put all mine in ~/bin haha. Will probably package eventually...
justanotheruser has quit [Ping timeout: 272 seconds]
<evanjs>
on another note... looks like the alternate gcc49Stdenv has the same result... suppose I’ll dig deeper tomorrow... or just workaround actually needing to build this package if possible 😃 no need to stress over a cross compiled package for a test if said package isn’t being updated...
<newuser99>
'cannot convert a function to JSON' https://bpaste.net/GDZQ What's it talking about?
<infinisil>
newuser99: You're overriding pkgs.writeScript, which is already defined
<infinisil>
(to something different that takes a different number of arguments)
<newuser99>
infinisil: The same thing happens if I replace "writeScript" with "myWriteScript"
<newuser99>
Oh I think I'm calling these functions incorrectly
<newuser99>
the function defined like ` myWriteScript = name: text: destination: self.pkgs.writeTextFile {` can be called like `myWriteScript { name = "foo"; text = "bar"; destination = "baz"};` ?
<gentauro>
I recently replaced the outdated `xscreensaver` with `services.xserver.xautolock` in the `/etc/nixos/configuration.nix` file. I've updated my `~/.xmonad/xmonad.hs` to lock the screen like this `, ((modm, xK_l), spawn "xautolock -locknow")`. When that happens, a random screensaver is chosen. Do anybody know how to specificy the screensaver in the `/etc/nixos/configuration.nix` file? (based on
<{^_^}>
[nixpkgs] @bennofs pushed commit from @r-ryantm to master « freenect: 0.5.7 -> 0.6.0 »: https://git.io/JvBUf
<gentauro>
it looks like `xlock` is used under the hood
<gentauro>
and placing `XLock.mode:blank` in `~/.Xdefaults` doesn't seem to work :(
xkapastel has quit [Quit: Connection closed for inactivity]
dansho has quit [Quit: Leaving]
Arahael has joined #nixos
<iqubic>
So, I'd like to change the look of the default X11 mouse cursor. How can I go about doing that? I know that there's a ton of packages in nixpkgs that offer cursor themes, but I don't know how to use them. I'm using i3 so I'll have to configure this myself instead of using a settings GUI.
malSet has quit [Ping timeout: 240 seconds]
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mvnetbiz_ has quit [Quit: Ping timeout (120 seconds)]
gxt has quit [Ping timeout: 240 seconds]
<gentauro>
this is `spooky`. So I can add `XLock.mode:matrix` to `~/.Xdefaults` and that works, but when I replace `matrix` with `blank` it doesn't ...
mvnetbiz_ has joined #nixos
<gentauro>
the man page states that there is a `blank` modename
<peelz>
dminuoso: what do you mean? I'm expecting `xdg-open some-image.png` to open with chromium.desktop, not wine-extension-png.desktop lol
<dminuoso>
If you add the capability of overriding mime registrations via files in different locations, you get into this mess of "how can we sensibly allow one thing to override another in such a way that it always works out"
<peelz>
I don't get what you mean... these are user preferences being overridden by applications
<peelz>
it's completely broken
<arianvp>
What's the difference between self and rec in overlays?
<arianvp>
And why do we have the self argument anyway if we have rec keyword
<dminuoso>
arianvp: What do you mean by "difference between self and rec" - one is a lambda bound name, the other is a syntax keyword.
<Taneb>
arianvp: "rec" just lets you access the local attrset that's in the the file. "self" lets you access the whole final attrset you're overlaying
<fionera>
How can I include a single PR before it gets merged into my nix build process? I currently cant rebuild since waybar is broken... https://github.com/NixOS/nixpkgs/pull/80417
<peelz>
eyJhb: are you experiencing similar issues with xdg-mime/xdg-open?
<Taneb>
arianvp: so e.g. you can use something which has a dependency you're overriding and it uses the one with the overridden dependency automatically
<zischknall>
I am currently working on fixing waybar, if nobody is onto it already
<dminuoso>
Taneb: I suppose in some sense `rec { foo }` is the same as `fix (s: with s; { foo })`
<deteego>
There was a couple of critical bugs that recently got fixed in nixos master
<ma27[m]>
fionera: `environment.systemPackages = [ (import /path/to/nixpkgs-checkout {}).waybar ];`. Rather than a path you may also fetch a remote nixpkgs repo using `builtins.fetchGit`.
<evils>
deteego: nixos-unstable is the most recent revision of master that passed a set of tests (and then some stuff), i think status.nixos.org is the newer / more informative page
iz16 has joined #nixos
<deteego>
evils Ah thanks, that is indeed a lot more informative
<evils>
well, nixos-unstable-small is more recent, it has less tests to pass
<deteego>
Is it possible to see why the latest build status is failing?
<deteego>
Also whats the difference between nixos-unstable and nixos-unstable-small?
dm9 has quit [Client Quit]
<evils>
nixos-unstable-small has fewer tests to pass before getting updated
o1lo01ol1o has joined #nixos
<deteego>
Ah I see, and it is its own channel like nixos-unstable?
thc202 has joined #nixos
<evils>
yes
cosimone has joined #nixos
<deteego>
Hmm I might consider using it then, thanks
<xavierm02>
Hi. Is it a good idea to use buildPythonPackage (with the buildPhase changed to make) to build some Python program that uses a Makefile that mostly just runs a setup.py?
<evils>
if you click the link on the "hydra jobs for tests" pass/fail graph for a channel, you'll go to the hydra page for that channel, which shows the latest run for nixos-unstable was cancelled manually by someone?
<evils>
and there's 2 builds queued
<deteego>
Yeah that leads to my last question, is it possible for someone to queue/trigger another build?
<deteego>
It seems like it got stuck somehow
<deteego>
I mean it hasn't been updated for the past 10 days which is quite unusual
<evils>
i think there's even some automation to unstick things, if it was cancelled manually, there's probably some intension behind it and someone trying to fix it :D
<fionera>
ma27[m]: The fetchGit is kinda bad since it takes forever to fetch
<ma27[m]>
fionera: ah right, `builtins.fetchTarball` may be better (as it has a sha256 parameter, so you fetch it only once)
<zischknall>
Hey guys where can i find all the available kernel patches? The options example was: pkgs.kernelPatches.ubuntu_fan_4_4 because of that i thought they were available as packages. But doing a search for patches on the packages reveals nothing.
<ma27[m]>
If you stumble upon this issue more often, you may also create a custom tracking branch which is based on release-XX.XX where you cherry-pick other stuff on top (and rebase onto release-XX.XX to upgrade). That's at least what I'm currently doing :)
<fionera>
ma27[m]: yeah but how to get a github repo as tarball?
<cmacrae>
Hey people o/ I'm trying to apply a patch to my Emacs package, which builds successfully. But, it doesn't seem to be having the desired affect. Here's what I'm doing: https://git.io/Jv4Jh
<cmacrae>
Does this look like the right approach?
<cmacrae>
Just wondering if there's anything I'm missing :)
<{^_^}>
[nix] @edolstra merged pull request #3328 → installer: Handle edge case where the nix-daemon is already running on the system → https://git.io/Jvtn4
<aminechikhaoui>
Hi, fixed output derivations are supposed to inherit environment variables that are part of the nix-daemon if they have impureEnvVars right ?
<xavierm02>
I kind of want to use buildPythonApplication to not have to deal with all the python environment variables etc., but I still want to call the Makefile
<aminechikhaoui>
Halp ! so I have a fixed output derivation to access s3 with AWS_* env vars, I can see in /proc/<nix-daemon-pid>/environ the env vars being correct but the fixed output derivation doesn't seem to inherit that :(
<aminechikhaoui>
same setup works on my laptop, just doesn't want to behave on my hydra
<aminechikhaoui>
any idea what could be the problem ?
romanofski has joined #nixos
Naptra has quit [Remote host closed the connection]
ryantrinkle has quit [Ping timeout: 260 seconds]
Naptra has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @ehmry pushed commit from @marsam to master « terraform-lsp: 0.0.9 -> 0.0.10 »: https://git.io/JvBGv
<evanjs>
So re pushing stuff to a (gentoo-based) device with gcc-5.4.0-compiled programs... all I need to do is ensure that I push the gcc files over as well, right? Application + direct deps + gcc and etc?
<evanjs>
Couldn't get pkgsCross.armv7l-hf-multiplatform.callPackage working with gcc49 :D
<evanjs>
I think /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/gcc-9.2.0 or whatever is the big thing I'd need? Unsure of which gcc output to use though
<{^_^}>
[nixpkgs] @ehmry pushed commit from @marsam to master « vale: 1.7.1 -> 2.0.0 »: https://git.io/JvBGq
<{^_^}>
[nixos-org-configurations] @garbas pushed to requesting-access-to-homepage-server « requesting (garbas) access to nixos.org server »: https://git.io/JvBGm
<aminechikhaoui>
ah ok now a different question, I think nix-daemon isn't the one forking the build process for the fixed output derivation. When would nix-daemon decide to not fork, maybe because I have sandbox = relaxed in this server ?
<aminechikhaoui>
hm nope I have relaxed in my laptop and it works
<{^_^}>
[nixpkgs] @xfix opened pull request #80542 → nixos/acme: Fix a.example.com test → https://git.io/JvBGS
reallymemorable has joined #nixos
noudle has quit []
fusion809 has quit [Remote host closed the connection]
<aminechikhaoui>
ah looks like the issue happens only with user root
sleepymurph has quit [Remote host closed the connection]
* aminechikhaoui
is going to continure to talk to himself, it's helpful :D
<gchristensen>
root skips the daemon, aminechikhaoui :D
mexisme has joined #nixos
chpatrick has joined #nixos
<aminechikhaoui>
I guess I'm maybe looking at the wrong thing for my investigation then hehe
<aminechikhaoui>
but nixbld users should have the right behavior right ?
<chpatrick>
hi, has there been any past debate on building "batteries included" versions of packages on hydra?
<aminechikhaoui>
I don't know what my question mean, disregard :D
<chpatrick>
it's really annoying when you want to do something basic with a package (like mplayer with pulseaudio/x264 support) and you need to configure and build from source, especially when it's a big package
<chpatrick>
it's giving me gentoo flashbacks :D
<emily>
chpatrick: gosh, why are you using mplayer in 2020 when mpv exists?
<emily>
that gives me flashbacks :P
<chpatrick>
emily: it's what I used back in the day, but my point stands
<chpatrick>
see also opencv without gtk by default
<emily>
mpv is a maintained fork of mplayer2 was a maintained fork of mplayer
<chpatrick>
mplayer doesn't even build with x264Support = false
<chpatrick>
err, = true
<emily>
though it's had significant cleanups, rewrites and new features since then
<chpatrick>
emily: thanks, I'll try mpv, but it's still a really annoying issue
nuncanada has joined #nixos
<emily>
I think people would be amenable to adding batteries-included versions of stuff people actually use, but mplayer is pretty retro at this point so I doubt the package gets much use, especially the combinatorial number of configuration options
<emily>
IMO it's not ideal to have that many flags in the first place as there's no hope of keeping them all reliably working together, stuff should just be included by default...
<chpatrick>
emily: it was just an example :)
<emily>
yeah, just answering for the specific example :p
mexisme has quit [Ping timeout: 240 seconds]
<emily>
personally I don't find I need to tweak package settings much, though I have had to edit packages to add support for stuff >_>
<chpatrick>
I really think all this stuff should be on by default, with a -lite version or something in case you want to save dis kspace
xkapastel has quit [Quit: Connection closed for inactivity]
<chpatrick>
emily: another example is if you want blender with cuda support you need to spend an hour building it
orivej has joined #nixos
<emily>
I agree
<chpatrick>
I'm pretty sure a big majority of people want to use their GPU for blender
<emily>
if you submit PRs to twiddle settings to be on by default I think it'd get strong consideration
<emily>
and I think that's generally better than making a billion variant packages for hydra to build
<emily>
usually people won't really have thought that much about these defaults, just been "hm, an optional dependency I don't use, I guess I'll make it a package flag"
<emily>
the exception is stuff that's used for Nix bootstrap, the stdenv build environment, that's on the ISO, etc.
<Taneb>
Env vars and distributed builds, how do they interact?
<Taneb>
(for impure builds)
<srk>
chpatrick: +1 for cuda blender
<wild_buffalo>
On Nixos, when I install packages using `nix-env -iA nixos.somePackage`, Gnome's menu doesn't get updated with the new installed package
<wild_buffalo>
How can I update it?
dingenskirchen1 has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 is now known as dingenskirchen
<clever>
disasm: [3092856.987011] INFO: task chromium:shlo0:6068 blocked for more than 120 seconds.
<aminechikhaoui>
gchristensen ok I think the problem is this impureEnvVars doesn't work with remote builds I think
<aminechikhaoui>
and the issues are happening since I disabled localhost from hydra so before I think it worked ok because the queue-runner asks the local daemon to run the fixed output derivations
<aminechikhaoui>
so it inherits the env vars correctly
<itiscoldhere>
hello nixos experts - I am trying to update nixos 1809 to 1909. after updating the systemstate in configuration.nix and rebuild switch I get a network time synch error and prevents me from successfully logging in. I never see the nixos login screen, instead I see a blinking cursor in the upper left corner of my screen. Can someone advise what is preventing me from seeing login screen after attempts to update to 1909. Thank you! I am new user to
<itiscoldhere>
nixos :)
gxt has quit [Ping timeout: 240 seconds]
<infinisil>
,stateVersion itiscoldhere
<{^_^}>
itiscoldhere: Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
Fare has quit [Ping timeout: 240 seconds]
mlatus has joined #nixos
f0i has joined #nixos
thblt has joined #nixos
ddellacosta has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HugoDaniel has joined #nixos
<noonien>
hmm, does fetchTarball not generate a derivation?
thblt has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
growpotkin has joined #nixos
<gchristensen>
builtins.fetchTarball doesn't, no
<noonien>
hmm, interesting
<itiscoldhere>
infinisil: thank you for your quick response. I'll read in the manual for "stateVersion", very helpful
<clever>
noonien: its an eval-time fetch, which forces nix to not be parallel
<noonien>
i'm actually trying to pin nixpkgs
<noonien>
and was expecting it to return a derivation of the source of nixpkgs
<noonien>
well, the url i've given it, which happens to be the source of a nixpkgs version
samrose_ has quit [Ping timeout: 272 seconds]
<clever>
noonien: it returns a string in the store directly, rather then a derivation that can produce such a string
samrose has joined #nixos
<infinisil>
I think you can use lib.fakeDrv to pretend it's a drv :P
<noonien>
ah, nice. i don't need it as a derivation, i was just testing, and was not expecting this
<noonien>
i'm guessing that in this use-case it doesn't matter if nix isn't paralelized at tis stage
<noonien>
this*
<emily>
infinisil: I don't see a fakeDrv in my copy of nixpkgs?
<emily>
oh, is that a builtin?
<noonien>
i don't see it in the nix manual either
zupo has joined #nixos
<infinisil>
emily: Ah it's called `toDerivation`, misremembered
<infinisil>
lib.toDerivation
CRTified has joined #nixos
<noonien>
hmm, is there a reason why some builtins need to be prefixed with `builtin.` and some do not?
<noonien>
i'm guessing it's due to aliasing, but i don't think this is documented
bridge[evilred] has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @r-ryantm to master « abcm2ps: 8.14.6 -> 8.14.7 »: https://git.io/JvBCa
<clever>
infinisil: ive lead another to the dark side...
<srk>
with huge git repo like linux there's no way to import it quickly via fetchGit/filterSource
<srk>
fastest is to run git archive and use that
<clever>
srk: builtins.fetchGit calls git archie
<simpson>
abbec: Just as a sanity check: What's *in* the environment that you're looking for? Are you okay with your build behaving in curious ways when folks are using nix-shell or direnv to alter the env?
<abbec>
settings to generate a config file for other programs
<abbec>
so it does not affect the build, it affects how other things run
<srk>
clever: before or after import? :)
<srk>
I would say after
<drakonis>
srk: you can do shallow clones
<clever>
165 auto tar = runProgram("git", true, { "-C", cacheDir, "archive", gitInfo.rev });
<mikky>
clever: thx, found it in source codes. Is there some kind of documentation for lib.* functions? I only found one for builtins.*
<clever>
mikky: it should be in nixpkgs
<clever>
the nixpkgs manual
<mikky>
right, found it, thx!
<mikky>
guess the manual isn't too search-engine friendly
v88m has joined #nixos
<clever>
mikky: its also broken up into ~4 pieces, nix, nixpkgs, nixos, nixops
<disasm>
hello folks! I'm available for the next hour if anyone has any questions on how they can help contribute to the ZHF issue for the upcoming release!
<cole-h>
I did my part!
nuncanada has quit [Read error: Connection reset by peer]
<disasm>
cole-h++
<{^_^}>
cole-h's karma got increased to 1
<cole-h>
:D
<rnhmjoj>
i want to downgrade a haskell package (the latest release doesn't build in current stackage lts). will changing the version in configuration-hackage2nix.yaml do the job?
reallymemorable has joined #nixos
<srk>
rnhmjoj: better use overlay
opthomasprime has joined #nixos
<srk>
,overlays rnhmjoj
<{^_^}>
srk: Did you mean overlay?
<{^_^}>
rnhmjoj: 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
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/JvBWu
<rnhmjoj>
this package is broken because the pandoc version in stackage is too old. it will take a while before it's updated and fixed. i'd like to fix that before 20.03 is released
<cole-h>
(rnhmjoj++: unrelated, but thanks for merging some of my PRs recently :) )
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/JvBWa
<{^_^}>
[nixpkgs] @disassembler pushed commit from @xfix to release-20.03 « nixos/acme: Fix a.example.com test »: https://git.io/JvBWr
<pythonixer>
Hi, I'm using coc.nvim (a vim/neovim plugin to bring vscode capabilities to neovim). The coc-python extension can make use of microsoft's python lsp. I'm trying to make it work imperatively with the plugin downloading the lsp server, but naturally, without dependencies to run microsoft stuff, the server doesn't start. Has anyone got coc-python to
<pythonixer>
work, or can point me in the right direction?
<{^_^}>
[nix] @Ma27 closed pull request #3291 → nix/main: Set `verboseBuild` to `args.printBuildLogs` → https://git.io/JebKR
afaure has quit [Remote host closed the connection]
MrET has joined #nixos
dm9 has quit [Quit: WeeChat 2.7]
MrET has quit [K-Lined]
<{^_^}>
[nixpkgs] @disassembler merged pull request #53854 → ugarit: fix build by using chicken-4.x → https://git.io/fhnEg
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to master: https://git.io/JvBlv
<{^_^}>
[nixpkgs] @disassembler pushed 2 commits to release-20.03: https://git.io/JvBlf
Jackneill has quit [Remote host closed the connection]
opthomasprime has left #nixos [#nixos]
<evanjs>
alright, drawing a blank... how would I take an argument that is a path and reference that as a derivation? e.g. --argstr key ./key -> "${key}"
pythonixer has quit [Remote host closed the connection]
civodul has quit [Read error: Connection reset by peer]
mpoquet has quit [Quit: Leaving]
<clever>
evanjs: stop quoting paths! (use --arg not --argstr)
<{^_^}>
[nixpkgs] @Frostman opened pull request #80551 → [20.03] tigervnc: fix compatibility with xorgserver 1.20.7 (backport) → https://git.io/JvBlw
<infinisil>
disasm: I'll make a comment in that PR
<{^_^}>
[nixpkgs] @rnhmjoj merged pull request #80418 → milkytracker: set cmake sdl variable to fix build (20.03) → https://git.io/Jv4RY
<{^_^}>
[nixpkgs] @rnhmjoj pushed 2 commits to release-20.03: https://git.io/JvBlK
<disasm>
infinisil: does that really need to go to staging? it's only 500 range
<infinisil>
Hmm.. probably not. Also it's python
<infinisil>
(so no big compilation)
<zeta_0>
i followed the instructions on installing this jobfunnel tool from github but errors were thrown, how would i install this package with nix(it's not in the nix repository)? https://github.com/PaulMcInnis/JobFunnel
<worldofpeace>
infinisil: right, though if it were rust it would be unbearable 🤣
<disasm>
infinisil: also your comments says it probably affects python3 as well, so should we remove the optional constraint on python2?
<infinisil>
disasm: Yeah that's what I mean to suggest there
<disasm>
infinisil++
<{^_^}>
infinisil's karma got increased to 216
<disasm>
I'll give it a day. If no update on that, I'll make the changes and commit
Rusty1 has quit [Ping timeout: 240 seconds]
<disasm>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 68
<disasm>
for all the ZHF merges :)
cinimod` has quit [Remote host closed the connection]
cinimod` has joined #nixos
<evanjs>
clever++
<{^_^}>
clever's karma got increased to 337
<evanjs>
okay, no quote paths :P
<clever>
evanjs: --arg just takes a raw nix expression, --argstr will quote it for you, so you dont have to --arg foo '"bar"' (extra quotes to stop bash from eating the quotes)
<cole-h>
What's the etiquette on pinging somebody to get a NixOS module fix merged?
<cole-h>
I accidentally broke the fish module when I updated it earlier (or rather, didn't account for the module breaking), so anybody tracking nixos master's fish shell is busted.
<cole-h>
(It didn't make it into 20.03, so maybe I should just wait for the ZHF sprint to finish)
cinimod` has quit [Ping timeout: 265 seconds]
<worldofpeace>
disasm: ❤️
Rusty1 has joined #nixos
<emily>
module breakages are their own kind of failure imo
<emily>
even if there's no test for it
<Izorkin>
Please backport this commit #70841 to nixpkgs-19.09-darwin
rajivr___ has quit [Quit: Connection closed for inactivity]
slack1256 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<cole-h>
Anybody have an example shell.nix they use with lorri (or even plain nix-shell, I guess) for using Haskell? I've started learning a bit and am interested in seeing others' workflows
<zeta_0>
(')
<zeta_0>
cole-h: i could show you my default.nix file that i use for haskell, but i have never used lorri before
crispy_avocado_t has quit [Remote host closed the connection]
<evanjs>
now, how do I transform /nix/store out of the tar ..... x_x
<evanjs>
tried -P, -C $out, etc etc
<evanjs>
oh, and --tranform 's;$out;;'
<evanjs>
*transform
Neo-- has quit [Ping timeout: 245 seconds]
<evanjs>
cole-h: if it's a shell.nix it shouldn't need anything extra to work with direnv or lorri so to speak but hold on lemme grab the example from the docs
<mikky>
so, I'm trying to do something like this: https://l.termbin.com/nekj . That works as expected but I'm pretty sure there's a more elegant solution. I've tried may things (like import, recursiveUpdates, combinations) but none worked
<zeta_0>
since those instructions are not working, how would i install this jobfunnel tool the nix way?
<mikky>
I'm sure there is a way to do this using a single .nix file but it eludes me
<infinisil>
mikky: There's too little context there to give any advice
o1lo01ol1o has quit [Remote host closed the connection]
<mikky>
infinisil: I have many small containers that share some configuration both for the container itself (like privateNetwork = true) and the os inside the container (i.e. config = { ... })
<infinisil>
mikky: Can you give a complete example?
<mikky>
there's more stuff in each file but this hopefuly should be enough to get the idea
<infinisil>
mikky: I think `containers.webapp1 = {
<infinisil>
oops
<{^_^}>
[nix] @samueldr opened pull request #3366 → [WIP] Add a compatibility shim for non-flake nix → https://git.io/JvB45
ddellacosta has quit [Quit: WeeChat 2.2]
<infinisil>
mikky: I think `containers.webapp1 = { ... }: { imports = [ ./container_defaults.nix ]; config.config = { config, pkgs, lib, ... }: { ... }; }` should work too
<infinisil>
The // operator should be avoided with modules, as it doesn't merge option definitions semantically
jgeerds has joined #nixos
Fare has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
morgaine[evilred has quit [Quit: Idle timeout reached: 10800s]
zupo has joined #nixos
<pie_[bnc]>
this commant isnt actually showing any open calls, im trying to get a list of loaded libraries, what gives? :I `strace -e open -f /nix/store/f2klcja64zjcfa19354lbwd5r3g914qb-cling-unstable-2018-11-20/bin/cling `
<pie_[bnc]>
or i guess i could just use LD_DEBUG
<mikky>
huh, I tried something similar at first but this looks promising < infinisil
<{^_^}>
[nixpkgs] @rnhmjoj opened pull request #80556 → haskellPackages.pandoc-crossref: downgrade to latest working → https://git.io/JvBBO
<infinisil>
mikky: There are some unfortunate subtleties involved. Like the `{ ... }` is only necessary because of some special submodule import behavior. And `config.config` is necessary because the option is named "config", which conflicts with the config from the module system
lawlesseel has joined #nixos
erasmas has quit [Quit: leaving]
lawlesseel has quit [Remote host closed the connection]
<zeta_0>
cust0dian: thanks for the help, after going into a nix-shell with your script and running nix-build, it threw an error about scipy, maybe it is a version mismatch or something: https://hastebin.com/urocepipit.sql
<zeta_0>
i have no idea?
<Thra11>
Is there a way to get sources from svn to look like svn sources for projects which try to check the svn revision as part of their build scripts? (As a one off: I just want to test building a package from svn)
<cust0dian>
zeta_0: you shouldn't need to go into nix-shell, just nix-build with that file as default.nix; and maybe make sure your nixpkgs is up-to-date, scipy-1.4.1 should definitely be there
<cust0dian>
ah, yeah, you would need to build on top of nixpkgs-unstable
<zeta_0>
cust0dian: oh, ya i just saw that now nix pkgs
<zeta_0>
cust0dian: i already setup my home.nix to install unstable packages as well, so i think i can wrap that script in parenthesis and past it in there
<zeta_0>
hopefully
<cust0dian>
zeta_0: should be able to just `nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz`
<mikky>
infinisil: it makes sense but there's another issue which (to me, currently) doesn't: `error: Module `/.../_container_defaults.nix' has an unsupported attribute `autoStart'. This is caused by assignments to the top-level attributes `config' or `options'.`
<chloekek>
After I download a tarball with nix-prefetch-url --unpack, and I then paste the URL and SHA-256 hash into fetchTarball, then why does fetchTarball need to download it again?
<{^_^}>
[nixpkgs] @LnL7 merged pull request #79769 → git: Fix git-gui to work on Catalina → https://git.io/JvCJI
<aterius>
Is it not possible to build darwin packages via remote build on a nixOS system? I'm getting this error
<aterius>
```on 'ssh://nix' failed: a 'x86_64-darwin' with features {} is required to build '/nix/store/jpraymhpsqh48gps6c78z64sf2a4iwds-libstartup-notification-0.12.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}```
crispy_avocado_t has joined #nixos
<crispy_avocado_t>
has anyone here used scikit learn with nix?
<mikky>
well, I understand the reason but I don't understand the mechanic of that error
<zeta_0>
i am trying to install the unstable version of scipy in a nix-shell using default.nix but it is not working, how do i fix this? https://hastebin.com/ohuqoyaben.js
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<zeta_0>
cust0dian: i want add the unstable channel in my default.nix file, but i am not sure how, it's throwing an error
<zeta_0>
i thought it would be the same as how i did it in my home.nix file, but i guess not
<makefu>
zeta_0: i am quite sure that you cannot mix python propagatedBuildInputs like this
endforma1 has joined #nixos
<zeta_0>
makefu: so what would be the workaround to get this to fix this?
<makefu>
get everything from unstable would be a possibility
endformationage has quit [Ping timeout: 240 seconds]
<makefu>
the basic idea is to put the package from unstable into your nixpkgs overlay
psyanticy has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has joined #nixos
<zeta_0>
makefu: that looks overly complicated
<cust0dian>
zeta_0: change `pkgs = import <nixpkgs> {};` to `pkgs = import <nixos-unstable> {};` and remove `unstable` binding
orivej has joined #nixos
cosimone has quit [Quit: Quit.]
<cust0dian>
that's assuming you already added nixos-unstable channel
o1lo01ol1o has quit [Ping timeout: 255 seconds]
<{^_^}>
[nixpkgs] @Frostman opened pull request #80559 → nixos/zfs: enable encryption test for stable zfs → https://git.io/JvBRo
<zeta_0>
cust0dian: yes, i am now waiting for it to install all those pkgs
<lirzhv>
hello. I am trying to disable ipv6 temporary addresses and just use the eui address. i tried setting networking.interfaces.<name>.preferTempAddress to false and boot.kernel.sysctl."net.ipv6.conf.<name>.use_tempaddr" to 0 but i still get temporary addresses
<iqubic>
Nice. But I don't want to just simply change the size of my cursor. I also want to change the way it looks. Basically I want to change the theme used.
johnny101m has quit [Quit: -a- Connection Timed Out]
johnny101m has joined #nixos
mexisme has joined #nixos
HugoDaniel has quit [Ping timeout: 240 seconds]
<iqubic>
*you're
<emily>
iqubic: if you're going to ask questions that can easily be looked up in the NixOS / home-manager manuals all the time, can you at least have the courtesy to not phrase every question as "why is it so hard to ..." / a criticism of NixOS, or gratuitously correcting other people's grammar?
<Dandellion>
are the azure instructions on the website correct?
<iqubic>
Sure.
<Dandellion>
the bootstrap blob is 16.03, but the instructions mention 19.09, but then seems to actually be doing nixos-unstable.
<Dandellion>
not that any vhd seem to be available for 19.09 nor unstable
o1lo01ol1o has joined #nixos
<zeta_0>
emily: so how would i declaratively place: nix-env -i -f default.nix in environment.systemPackages or home.Packages?
<evils>
scoates: `git branch --contains [commit hash to check]` in an up to date nixpkgs git repo will yield a list of branches that contain that commit, i don't know if there's a nix tool to do the same (that commit is only in nixos-unstable-small)
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from @r-ryantm to master « bmake: 20181221 -> 20200212 »: https://git.io/JvB0d
<iqubic>
So, I'm looking through the home-manager nix files, and getting rather confused. It looks like when I enable Dunst, it should start the Dunst daemon when I start my WM. That doesn't seem to be the case. It looks like I have to start Dunst myself manually.
<{^_^}>
[nixos-org-configurations] @edolstra pushed 5 commits to master: https://git.io/JvB0p
<{^_^}>
[nixos-org-configurations] @edolstra pushed 0 commits to requesting-access-to-homepage-server: https://git.io/JvB0h
HugoDaniel has joined #nixos
<scoates>
evils: 10 days for nixos, but 4 days for nixpkgs right?
<Dandellion>
Im running dunst with home-manager and it works fine for me
<Dandellion>
I dont start it manually at least
<cole-h>
Is there a way to append to a list of environment variables in a `mkShell`? Adding `ENV_VAR = "$ENV_VAR:newcontents";` doesn't appear to work -- I get a literal "$ENV_VAR" in it
<iqubic>
Dandellion: How do you start your WM/DE?
<srk>
lovesegfault: yeah, looks like it .. or old: { patches = (old.patches or []) ++ ; }
<evils>
scoates: that's what status.nixos.org says, and 17 hours for nixos-unstable-small
* scoates
nods
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
newuser99 has joined #nixos
<newuser99>
A lot of nix commands issue this warning "warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring". What should I do about it?
<iqubic>
I don't like this habit of logging in at a tty terminal and then running startx. I'd rather have a graphcal Display Manager handle that for me.
<lovesegfault>
Does anyone know why the above patch fails to be intepreted as a patch by nix?
<Dandellion>
in my nicos configuration I just also have xsession.enable = true, with no DE configured. That just starts the display manager, which will then start the the xsession based on what home manager has set up
<lovesegfault>
I get a sketchy `/nix/store/7whxa62xjyfylxhww5w9ppjpsl4x9rim-stdenv-linux/setup: line 976: index: No such file or directory`
<iqubic>
So you have xsession.enable = true in both home-manager and the global nixos config?
hoijui has quit [Ping timeout: 240 seconds]
<Dandellion>
no xserver in nixos config, xsession in home-manager
<iqubic>
Ah. I see.
<iqubic>
What does your xserver config look like /etc/nixos/configuration.nix?
<cole-h>
Ah, lorri just doesn't like hooks. Providing a `lorriHook` (name doesn't really matter) in the `mkShell` and eval-ing it in the .envrc works like a charm.
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<Dandellion>
iqubic: `services.xserver.enable = true;` and some things to enable touchpad and setting keyboard language
<cole-h>
The fish module is currently broken on NixOS because the patch needed to be updated
<worldofpeace>
cole-h: you aren't a bother. But I don't think I can do much more today. I'll see if I can ask someone in nixos-dev, and that would be a better place for your request also
<cole-h>
I was confused and figured nixos-dev was actualy nix-dev -- thanks for clarifying that.
<cole-h>
worldofpeace++
<{^_^}>
worldofpeace's karma got increased to 69
<cole-h>
Nice.
linarcx has quit [Ping timeout: 268 seconds]
<hax404>
worldofpeace: thank you
alexherbo2 has quit [Ping timeout: 240 seconds]
erictapen has joined #nixos
<worldofpeace>
cole-h: I just asked for you
Fulgen has joined #nixos
<worldofpeace>
hax404: No problem, sometimes a ping at the right time is helpful
<cole-h>
Thanks a bunch. I'm always so scared of pinging the big kahunas
HugoDaniel has joined #nixos
<rycee>
iqubic: The systemd service for dunst is not actually used if you run NixOS. Unless you specifically configure NixOS to use a socket activated session dbus. Unfortunately you can't do that, though, since there are a few NixOS bugs preventing it.
<rycee>
… from working correctly with systemd user services inside the home directory.
waleee-cl has joined #nixos
<cole-h>
zeta_0: Nix uses whatever repo Emacs uses by default. I can't find anything specific in the codebase
alexherbo2 has joined #nixos
<worldofpeace>
cole-h: But usually they are committers, so that's how things get merged in NixOS. The worst thing that could happen is they just don't see it.
<worldofpeace>
I'm always open to helping someone find a reviewer/merger if needed though 👍️
<zeta_0>
cole-h: ok, i'll try to install the emacs pkg csv-mode, if it does not work then that means it does not use elpa so i'll have to make some changes
<cole-h>
worldofpeace: ❤️
<zeta_0>
hopefully not, lets see
itiscoldhere has quit [Ping timeout: 240 seconds]
alexherbo29 has quit [Ping timeout: 260 seconds]
Jackneill has joined #nixos
<iqubic>
rycee: How should I start Dunst up then?
kleisli has joined #nixos
<rycee>
It should be activated by your dbus session.
<drakonis>
rycee: has flakes been explored for the upstream home-manager repo?
<drakonis>
s/has/have
<rycee>
iqubic: You should have a `~/.local/share/dbus-1/services/org.knopwob.dunst.service` link which dbus sees.
<rycee>
drakonis: Somebody opened a PR a while ago. I haven't looked at flakes at all yet, though.
<zeta_0>
i pasted a question on #nixos-emacs, but that channel looks dead
<iqubic>
rycee: How do I make sure that dbus sees that?
<drakonis>
the person that started the nixflk repository has a fork with a flake
<mikky>
is there a way to find out the file name of an imported module? i.e if I do `import ./mymodule.nix`, can I somehow get the string './mymodule.nix' inside the mymodule?
<rycee>
drakonis: I'll have some spare time starting July and might experiment with flakes then.
<iqubic>
My current window manager (EXWM) doesn't start dbus on it's own, so I'm using this: xsession.windowManager.command = "dbus-launch --exit-with-session emacs"
<drakonis>
5 months away though, that's quite a lot of time.
<drakonis>
but fair enough
<cole-h>
And in that time, flakes will continue to be improved ;)
<drakonis>
the flake registry seems like a fine way to unify the various parts of the ecosystem
<{^_^}>
[nixpkgs] @veprbl opened pull request #80571 → [19.09] mariadb: fix darwin build → https://git.io/JvBzG
<rycee>
drakonis: If somebody makes a PR then I'll merge it. As long as it doesn't affect non-flake use.
<iqubic>
rycee: So, I'm really not sure what I need to do to make sure Dunst is running.
<drakonis>
it shouldnt change anything as far as i'm aware
<iqubic>
yeah. I'm only just now switching to having home-manager deal with this.
<iqubic>
I just copied over the commands from my xinitrc.
<drakonis>
new thing leads to uncertainty.
<iqubic>
So, I'm not sure what parts are and aren't needed.
<rycee>
Starting it in `xsession.windowManager.command` will not affect your whole X session, only the window manager and its child processes.
<iqubic>
Right.
<iqubic>
So, what I want to do is have dunst + dbus running when my window manager is running. The way my window manager should be started is to just execute emacs, using this package: http://dpaste.com/29XX7AY
<iqubic>
And yes, that particular package is coming from an overlay.
<iqubic>
But I'm not sure how to get that stuff working.
Jackneill has quit [Remote host closed the connection]
<zeta_0>
earlier today with the help of some other fellow nixers, i installed a tool called jobfunnel to help me automate my job search, but i need another tool that will display the csv data in a simple format/view that is easy to read, what would you recommend? https://github.com/PaulMcInnis/JobFunnel
<rycee>
iqubic: Does your environment include the DBUS_SESSION_BUS_ADDRESS variable?
<zeta_0>
sorry if this question is off topic, i was just wondering if you guys/girls have some recommendations for this csv dilemma that i have
<rycee>
iqubic: I'm not sure how dbus activation works, does notify-send work?
<iqubic>
Yes, and it's set to this value: "unix:abstract=/tmp/dbus-5K47vJ5pNx,guid=5750e1fe34039c2e015f73145e4c269d"
<newuser99>
zeta_0: visidata
<iqubic>
Yeah. notify-send does actually work.
Naptra has quit [Remote host closed the connection]
kahiru has quit [Ping timeout: 272 seconds]
<rycee>
iqubic: Ok, which program can't send notifications?
<rycee>
iqubic: If it is a systemd service then it wont see the DBUS_SESSION_BUS_ADDRESS variable.
<iqubic>
Dunst is working fine for me right now.
<iqubic>
I just want to make sure that it works after a reboot.
kahiru has joined #nixos
<rycee>
zeta_0: Can import the csv file into libreoffice?
<zeta_0>
newuser99: thanks i'll take a look at that
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @vcunat to glibc231 « dnsmasq: fixup build after kernel header changes »: https://git.io/JvBzQ
<zeta_0>
rycee: ok, i can try out libreoffice, i just want something that can format the data in a way that is easy to read, because i am going to be reading through hundreds/maybe thousands of job applications
<iqubic>
rycee: My current set-up is to have .xinitrc run "systemctl --user start dunst" and "exec dbus-launch --exit-with-session emacs"
<iqubic>
But now I'm switching to using lightdm instead of just logging into a TTY and running startx. I want to make sure Dunst and DBus will be running when I reboot my machine.
<rycee>
iqubic: Hmm, does `systemctl --user start dunst` actually start? Can you do `systemctl --user status dunst`?
<newuser99>
Is there a function somewhere that I can use to translate a very quoted shell string into a nix string?
<iqubic>
rcyee: It does. I have my IRC client set up to run notify-send whenever someone mentions my name. That's working just fine.
werner291 has joined #nixos
<cole-h>
newuser99: As in, you want to undo all the quoting, or retain all the quoting?
<iqubic>
asking systemctl for the status confirms that it's running.
drakonis has quit [Quit: WeeChat 2.7]
<iqubic>
But I want to make sure that this will still be running when I reboot my machine.
<rycee>
iqubic: Interesting, so `systemctl --user show-environment | grep DBUS_SESSION_BUS_ADDRESS` prints the same "unix:abstract=/tmp/d…" value?
<iqubic>
I haven't tried that.
<iqubic>
I just ran "echo $DBUS_SESSION_BUS_ADDRESS" to view that value.
<iqubic>
Weird.
<iqubic>
echo gives the /tmp/d... value.
<iqubic>
Asking systemctl --user for the value gives: "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus"
<newuser99>
cole-h: I have shell alias in my old bashrc. I want to put that string into my home.nix such that it'll end up looking the same in my home-manager--generated .bashrc
<newuser99>
So, retain I think.
<cole-h>
have you tried `lib.escapeShellArg{,s}`?
crispy_avocado_t has quit [Remote host closed the connection]
<chvp>
,locate bin uuidgen
<{^_^}>
Found in packages: toybox, libuuid.bin, utillinux.bin
<cole-h>
libuuid or utillinux chvp
<cole-h>
Too slow
<gchristensen>
usually utillinux
<iqubic>
rycee: I want to make sure that when I log in via lightdm, after I reboot, that dunst and dbus are running.
<cole-h>
gchristensen: Is there a difference between the two?
<iqubic>
It's working now, but I fear it might not work after a reboot.
__monty__ has quit [Quit: leaving]
knupfer has joined #nixos
<cole-h>
iqubic: You might have to do something like `systemctl import-environment DBUS_SESSION_BUS_ADDRESS` every time you log in.
<iqubic>
I don't think so. I never ran that on this instance of my WM, and Dunst is still working.
<cole-h>
bogdb: Can you be more specific? What is happening, and what should happen?
<iqubic>
Forgot to include the line that starts dunst.
<iqubic>
But I feel like that's not the best way of doing that.
knupfer has quit [Read error: Connection reset by peer]
<bogdb>
@cole-h, yes, of course: for context, i am porting some older code from LAPACKE routines to Eigen, stuff like LAPACKE_dgepq3 and family, so I wrote a simple test case to verify my results. on Nixos the LAPACKE routine returns some wrong result
<bogdb>
tried linking only with openblas but the same happens
<bogdb>
i went to another system (Arch) and my example works fine there
<cole-h>
It would be extremely helpful if you could put up a minimally reproducible example somewhere. I'm out of my depth with lapack and wouldn't know where to begin.
<cole-h>
Otherwise, you'll have to rely on somebody else knowing the answer 😬
<bogdb>
on my system it crashes with segfault after returning a wrong value for jpvt. if you comment out the #define then it stops segfaulting but still returns a wrong value for jpvt
<iqubic>
I'm sure there's some things that I'm doing that could be done by home-manager proper.
<srk>
would it make sense to add aliases like lsusb = usbutils, jscal = linuxConsoleTools.. ?
<rycee>
iqubic: Well, HM assumes that the dbus session is already available so I don't think there is anything much better available.
tomberek has joined #nixos
gxt has joined #nixos
<iqubic>
How could I make it so that dbus is already available? Or is that only really used when using HM and a non-nixos distro?
<rycee>
It does seem like you have a systemd activated dbus session as well, though since it said "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus". So I guess you have two dbus sessions going? I would suspect that you then also end up with two dunst services. One started through systemd and one though the inner dbus session
drakonis has joined #nixos
<iqubic>
rycee: Yeah. I accidentally started a standalone dbus session.
<rycee>
Typically the dbus user session is socket activated through systemd (and end up on /run/user/$UID/bus). The legacy way is in the X wrapper script like in NixOS.
<cole-h>
bogdb: Sorry, this is beyond me at the moment. You could also try posting to the discourse instance: https://discourse.nixos.org/
<iqubic>
So shoud I just leave my config the way that I currently have it?
<bogdb>
I have a suspicion it's because at some point there was an effort to push openblas everywhere
<rycee>
iqubic: Honestly, if it works then just leave it until NixOS gets proper socket activated dbus sessions :-)
<bogdb>
and my linking against lapacke gets silently replaced to -lopenblas or some such
<cole-h>
Or, When It's Ready™, whichever you prefer :P
<rycee>
But haven't had much time to finish it up. Especially since it involves a stdenv change and I don't have serious build resources available :-/
<iqubic>
Now... I just need to tweak Dunst so that it doesn't look like crap. I also need to find a new X11 cursor and configure that too. But that's stuff I can do on my own.