<dashkal>
Not quite sure the terms to ask this right: How do I search "package groups"? Like vim plugins. Preferably at the command line with nix-env or similar.
<sphalerite>
dashkal: one easy way is to use nix repl
drakonis_ has quit [Ping timeout: 240 seconds]
<sphalerite>
dashkal: nix repl '<nixpkgs>' and then in there write vimPlugins. and use tab completion to explore it
<dashkal>
Oh hello. Yep, that's one way for sure.
<dashkal>
Part of why I ask asking for a nix-env like thing was so I could grep.
<dashkal>
Also a very nice tool for learning nix in general.
<dashkal>
Danke!
<kalbasit>
clever: one time you sent me a URL for a simple module, do you happen to have that link?
<kalbasit>
as in `eval-config.nix`
jgeerds has quit [Ping timeout: 245 seconds]
oida has joined #nixos
SyrupThinker has quit [Quit: ZNC 1.7.5 - https://znc.in]
<evanjs>
Got a leaf with an approved update if somebody can merge https://github.com/NixOS/nixpkgs/pull/78240 - though im not sure what the policy on no maintainership stuffs is
judson__ has quit [Remote host closed the connection]
Fare has joined #nixos
<evanjs>
Afaik we have a number of maintainerless packages right now. If it’s okay to leave it empty, I can just remove the maintainer before this one is merged.
<qyliss>
evanjs: either drop the maintainer or add yourself, and I'll merge
<qyliss>
(i'd suggest the latter)
<evanjs>
meh. might as well until somebody else comes along. I get bored easily, anyway. Separate commits or just one?
talqu has quit [Remote host closed the connection]
nek0 has joined #nixos
chagra has quit [Ping timeout: 265 seconds]
jbgi has quit [Ping timeout: 240 seconds]
plutes has quit [Ping timeout: 268 seconds]
plutes has joined #nixos
UndefinedIsNotAF has quit [Ping timeout: 264 seconds]
morket has joined #nixos
UndefinedIsNotAF has joined #nixos
clever has quit [Ping timeout: 268 seconds]
chagra has joined #nixos
clever has joined #nixos
clever has joined #nixos
clever has quit [Changing host]
<morket>
Installed nix package manager on my running system (Manjaro). Ran `nix-env -i joplin-desktop`. Expected to be able to run `joplin-desktop` and have it work. Instead getting `Gtk-Message: 09:33:51.759: Failed to load module "canberra-gtk-module"
<morket>
Trace/breakpoint trap (core dumped)`. Aren't all dependencies supposed to be installed by the script? Am I missing something? I'm new
<mudri>
I'm trying to get the mozregression application running. It exists on PyPi (https://pypi.org/project/mozregression/) but not in nixpkgs. Furthermore, it seems to have several dependencies that are similarly on PyPi but not nixpkgs. I think I'll need to package it and install it, rather than just running it in a nix-shell (it seems to be quite sensitive to the environment). How can I get this to work?
<mudri>
And a broader question: why isn't Python done like Haskell, where every package is in nixpkgs?
<simpson>
mudri: AISI (opinions vary!) the main problem is that PyPI doesn't export enough metadata to allow for automated conversion of the entire repository into a Nix-friendly format.
<simpson>
Hopefully only the ones that people actually use. There's been lots of talk of Stackage-like stable frozen package sets, but I don't think that they yet exist.
cosimone has quit [Quit: Terminated!]
<mudri>
In the meantime, do I really have to manually package the 8 dependencies that are not in nixpkgs?
cosimone has joined #nixos
<{^_^}>
[nix] @edolstra pushed to master « Show "warning:" in yellow instead of red »: https://git.io/Jv3MZ
<simpson>
Maybe. You might be able to use a virtualenv, if all of them are clean-enough Python, and if all of *their* dependencies are also packaged or available.
<simpson>
On one hand, this package is specialized, so that it might not have many other users who care; on the other hand, this package seems targeted at professionals who likely have the time and expertise to write Nix expressions.
<simpson>
On the gripping hand, you don't have to send your Nix expressions upstream to nixpkgs, if you don't want, but it certainly makes life easier for everybody.
<{^_^}>
[nixpkgs] @flokli opened pull request #79007 → yosys: use external abc and simplify derivation → https://git.io/Jv3Mz
* colemickens
wishes for the shoe making fairies to set their efforts to making systemd-networkd, iwd, network namespaces and wireguard all work together beautifully in nixos.
drakonis_ has joined #nixos
<jakobrs>
Is it possible to apply `patches` somewhere else that `sourceRoot`?
drakonis has quit [Ping timeout: 265 seconds]
cosimone has quit [Remote host closed the connection]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cosimone_ has quit [Remote host closed the connection]
cosimone_ has joined #nixos
<philipp[m]>
Any suggestions for a small and simple webdav server in nixpkgs that I can configure preferably with a htpasswd file?
<philipp[m]>
nginx doesn't implement the spec fully and lighttpd can't switch users, so I can't use those.
m4ts_ is now known as m4tsa
m4tsa is now known as m4ts
<philipp[m]>
Apaches webdav module is shipped. That should be enough.
<aanderse>
philipp: yeah that should be pretty straight forward to setup. ping me if you have any issues with the services.httpd module
<philipp[m]>
Thanks! Will do.
<aanderse>
actually... i might need to setup a webdav server on apache on nixos in a few months. if you don't mind pinging me if you get it working too with your config it might save me some time in the future :)
<philipp[m]>
Does Apache work as I think it does -> be happy if there is at least one working listen directive?
leothrix has quit [Ping timeout: 268 seconds]
<MmeQuignon>
Hi everyone, I am kind of stuck with steam here, and I'm here for some help. So, steam is partially working here, some games are working well, but a few ones aren'
<MmeQuignon>
t.
<aanderse>
well the httpd module is changing a bit from 19.09 to 20.03 so keep that in mind...
drakonis_ has joined #nixos
<aanderse>
philipp: yeah so use a virtual host
<aanderse>
and what are you looking to do... port 80, 443, or 80 with a redirect to 443?
<aanderse>
if you aren't doing anything out of the ordinary you should avoid `listen` entirely and stick with `enableSSL`
<MmeQuignon>
For example, Dota underlords runs well, but Divinity : Original sin isn't. I though external dependancies was embeeded in games, but DOS complains about some that aren't available. So, I'm wondering if someome have made it work and could help me. Thanks !
<aanderse>
MmeQuignon: i seem to recall divinity: original sin has a really horrible launcher that needs a tweak
<aanderse>
the launcher script screws with LD_LIBRARY_PATH in a not so good way
<MmeQuignon>
Yep, I think it's specific to the game's editor
<aanderse>
but... i'm really stretching my brain to remember, as i looked at that maybe 2 years ago? it is only a vague memory at this point...
<philipp[m]>
Some times games require libraries that aren't shipped with the steam runtime. They usually get added.
<MmeQuignon>
I think every games edited by it won't start
<philipp[m]>
I think Divinity was an especially nasty case that needed some sort of shim library to work though iIrc
<aanderse>
philipp: that was with AMD drivers, not nvidia though :\
<philipp[m]>
A, right.
<MmeQuignon>
I'm running steam with nvidia
<MmeQuignon>
I tried proton and it works well
<philipp[m]>
That would be my suggestion for divinity.
<philipp[m]>
Honestly: Proton nowadays works often much better than bad ports.
<ToxicFrog>
I'm trying to run ${pkgs.munin}/www/cgi/munin-cgi-graph
<philipp[m]>
aaron: I think I'm doing stuff out of the ordinary in terms of listening... I should refactor it a little though.
<clever>
MmeQuignon: i dont know why, but modern games like portal 2 run perfectly fine, but ancient games like the original half life, have horrible audio repeating
<ToxicFrog>
This is a nixpkgs-generated wrapper that does `export PERL5LIB='...all the perl dependencies the script has...'` and then `execs` the real script
<ToxicFrog>
The real script then dies immediately, saying that it can't find one of its dependencies (Date::Manip)
<MmeQuignon>
Tweaks mentionned in the steam page are quiet light for novices like me.
<aanderse>
philipp: so port 80 with a redirect to 443?
<ToxicFrog>
That dependency is listed in PERL5LIB, but the script reports that @INC (which I believe is initialized from PERL5LIB?) only contains the default path (i.e. to ${pkgs.perl})
<philipp[m]>
No... A proxy behind a ssl terminator in different networks :-/
<aanderse>
ah, ok
<philipp[m]>
The setup is a tad over-engineered... but somebody has to test the edge-cases of nixos-modules, right? :-D
<aanderse>
philipp: following arch wiki (and not having tested this at all) you get a simple proxy over ssl 443 (note: need to add ssl certificate or this doesn't build of course) with this: https://paste.ubuntu.com/p/6y4Htyj5BV/
<aanderse>
uhh.. s/simple proxy/simple webdav/
<philipp[m]>
Yes, my config is pretty similar now.
<aanderse>
just figuring out the ports now?
acarrico has quit [Ping timeout: 268 seconds]
drakonis_ has quit [Ping timeout: 265 seconds]
drakonis has joined #nixos
drakonis_ has joined #nixos
<ToxicFrog>
Aha. The problem is that the wrapped script is shebanged with `perl -T`, and `perl -T` ignores PERL5LIB
nikola_i has quit [Ping timeout: 265 seconds]
pinion[m] has joined #nixos
drakonis1 has joined #nixos
<philipp[m]>
Ports I got, figuring out the auth stuff
<aanderse>
ToxicFrog: IIRC you'd do something like `let perlEnv = perl.withPackages (p: with p; [ ModuleBuild LWP etc... ]); ` then just pass `perlEnv` to `buildInputs` and everything will automagically be taken care of
<aanderse>
by patch shebangs or whatnot
<philipp[m]>
Since we were talking about runners messing with Library paths. I present you: Wildlands.
<{^_^}>
[nixpkgs] @NeQuissimus pushed 2 commits to release-19.09: https://git.io/Jv3HO
<aanderse>
philipp: in case you hadn't noticed yet DavLockDB refers to a file, not a directory (oops!)
<aanderse>
seems to be working now
chrisaw has quit []
gustavderdrache has joined #nixos
chrisaw has joined #nixos
<clever>
philipp[m]: patchelf can entirely eliminate that
<clever>
philipp[m]: patchelf can also be relative to the binary, so it should fix it even outside of nix
<philipp[m]>
clever: It's a steam game. I don't think I want to patchelf steam games.
<aanderse>
ToxicFrog: run something like this in a shell: nix-shell -p 'perl.withPackages (p: with p; [ DataDumper DBDmysql DBI TermReadKey ])' then inspect it
<clever>
philipp[m]: yeah, with steam in the mix, you generally want the fhs wrappers
<aanderse>
print your @INC and it will make more sense
<clever>
philipp[m]: but, upstream, they could have used patchelf to bake that LD_LIBRARY_PATH into the binary, and then it would work on every system, without the script
<clever>
philipp[m]: in this specific case, you can use patchelf entirely without nix being involved
<philipp[m]>
In this specific case I had a look at what they were doing and it seems like they are just using libwine and messing things up. I think just forcing the windows version and using proton is easier.
<{^_^}>
[nixpkgs] @fpletz opened pull request #79016 → nixos/tests/openarena: run real openarena clients → https://git.io/Jv3Hu
zimbatm has quit []
zimbatm has joined #nixos
noudle has joined #nixos
<aanderse>
whenever someone decides on the best fix for divinity original sin maybe they want to throw it up on the nixos wiki... because when i get around to playing it it is one less thing for me to try to remember
<aanderse>
:)
yannik_ has joined #nixos
yannik_ is now known as Yannik_Sc
Izorkin has joined #nixos
<NoctisLabs>
Does anyone know of any Linux Distros based on NixOS?
<wedens[m]>
I wonder why we're stuck with libvirt 5.4.0. anyone tried to update it? they seem to have changed something in the build process and I can't build the latest version
<needthemes>
function that has an argument without a default value ('stdenv')`. How can I make this "default.nix" something that works with "nix-build" and be able to nix install it? My end goal is to customize the github repo stuff and see if that simple change will allow me to install the sweet kde theme. Eventually I'd like to put it in my overlays or
<needthemes>
home.nix, whereever is most appropriate so it's always installed on my systems.
dm9 has joined #nixos
<hyper_ch>
hmmm, I'm currently booted into Linux subi 5.4.14 #1-NixOS SMP Thu Jan 23 07:23:01 UTC 2020 x86_64 GNU/Linux , but now evdi has issues wiht kernel 5.5. So I added: boot.kernelPackages = pkgs.linuxPackages_5_4_14; and tried to rebuild, but nixos tells me: error: attribute 'linuxPackages_5_4_14' missing, at /etc/nixos/configuration.nix:329:26 . Why is that the case?
Chiliparrot has joined #nixos
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen1 has joined #nixos
<clever>
hyper_ch: if you tab-complete `linuxPackages` under `nix repl '<nixpkgs>'` what do you find?
<{^_^}>
[nixpkgs] @sorki opened pull request #79026 → blackmagic: v1.6.1-317-gc9c8b08 -> v1.6.1-404-gc3a3f77 (add new targets) → https://git.io/Jv3bv
<hyper_ch>
clever: thx, but then the documentation needs adjust. it shows as example: pkgs.linuxPackages_2_6_25
dingenskirchen1 is now known as dingenskirchen
<hyper_ch>
clever: and how to exit nix repl?
<clever>
hyper_ch: its as hard to exit as vim!
<hyper_ch>
vim is too complicated for me
<clever>
(you exit the exact same way, :q )
<hyper_ch>
how would I know how to exit vim?
<hyper_ch>
clever: thx
<clever>
a few months back, somebody in here said the same thing, "its as hard to exit as vim", then he realized it was identical
<clever>
it also shows the help command on startup
endformationage has joined #nixos
endformationage has quit [Client Quit]
<hyper_ch>
it shows it well hidden
<hyper_ch>
:)
raboof has quit []
raboof has joined #nixos
<{^_^}>
[nixpkgs] @kalbasit merged pull request #78796 → kubernetes-helm: 3.0.1 -> 3.0.3 and improve build meta → https://git.io/JvO3z
<{^_^}>
needthemes: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<coco>
a nix newbie (me) needs help. i added the nixos-hardware channel, and now i cannot nixos-rebuild anymore. i get the following output: https://pastebin.com/qeYrnSig what is the problem?
<AmandaC>
how did you add the channel? It seems like root's channel directory got corrupted somehow
<AmandaC>
you didn't remove the nixos channel at the same tim eyou did that, did you?
<sphalerite>
coco: try `sudo nix-channel --add https://nixos.org/channels/nixos-19.09 nixos` and `sudo nix-channel --update` and see if it works again then
shibboleth has quit [Remote host closed the connection]
hamishmack has quit []
coco has quit [Quit: WeeChat 2.6]
hamishmack has joined #nixos
<adamse>
i've just installed nixos and I'm a bit confused: I added "services.redshift.enable = true" and did nixos-rebuild switch, but I can't find any evidence redshift is running. What am I missing?
<Cadey>
i'm trying to pass it to a buildInputs for a shell.nix, but i'm getting error: cannot coerce a function to a string, at /nix/store/hqinvxc51hnjrz74ycqsl4ip8cf67xxb-nixpkgs-20.03pre211344.d5bf8b23592/nixpkgs/pkgs/build-support/mkshell/default.nix:28:3
<OmnipotentEntity>
Wrap in parenthesis
<Cadey>
i see
<Cadey>
how would i define my own lua package derivations?
coco has joined #nixos
fragamus has joined #nixos
<OmnipotentEntity>
Using buildLuaPackage typically
<Cadey>
buildLuarocksPackage seems to not be exposed
<OmnipotentEntity>
You need to declare it as a variable in your initial {}: if you haven't already
<OmnipotentEntity>
just like everything else :D
dingenskirchen has joined #nixos
<Cadey>
is there a way to declare the current working directory as the build source?
o1lo01ol1o has joined #nixos
<OmnipotentEntity>
I've never tried to before. I've always used fetchGithub and similar
<OmnipotentEntity>
fetchFromGithub actually?
<OmnipotentEntity>
no, fetchFromGitHub lol
jbgi has joined #nixos
<Cadey>
error: cannot auto-call a function that has an argument without a default value ('buildLuaPackage')
<OmnipotentEntity>
I don't have a standalone example, but if you look into python packages they seem to be largely analogous. This is something I haven't done personally though, so it's outside of the area where I can confidently guide you, sorry :(
<OmnipotentEntity>
kyren, have you packaged a lua library ever?
<Cadey>
a _minimal_ one that doesn't assume all of the baggage nixpkgs pulls in?
<aaa_>
Hi, how can I update rust from 1.38 to 1.39 on my nixos server; is anybody else doing this already with pkgs.bacula.overrideAttrs and can share the config?
pikajude has joined #nixos
<aaa_>
obviously pkgs.rust.overrideAttrs
leothrix has quit [Ping timeout: 265 seconds]
<Cadey>
omnipotententity: can you please update the nix pills to tell people to use nix search?
<aaa_>
I don't really know, I just want to have it installed, because I need to compile a small package that requires it ... I'm not a rust developer in any way.
<aaa_>
I've seen in one tutorial that using rustup is the way in nixos
evanjs has joined #nixos
jakob_rs has quit [Quit: leaving]
<evanjs>
infinisil: IIRC the moz overlay and rustup should both be up to date
<evanjs>
using latest.stable or etc
<evanjs>
aaa_: if I were you, I'd use the moz overlay
<evanjs>
the overrides include the extensions you can tell it to download with it, and you probably don't need to worry about targets, assuming you're just working on x64 :P
jbgi has quit [Ping timeout: 265 seconds]
<evanjs>
you can probably also ignore the clang bit in that expression
<evanjs>
however, while I do have rust configured like that systemwide, I primarily rely on a lorri + moz_overlay environment. e.g. a shell.nix like this https://github.com/evanjs/rbooru/blob/master/shell.nix (moz overlay is available from my system so it's not in the shell directly)
<infinisil>
Hm maybe nixos should have some convenience thing for multiple nixpkgs channels
<evanjs>
using lorri or direnv, you can ensure you're _always_ using the version of rustc and cargo defined in your shell
<evanjs>
After you put it in your overlays, it will be easier to access if you need it elsewhere. And sweeeet. np
leothrix has quit [Ping timeout: 265 seconds]
<aaa_>
evanjs, are the overlays similar to gentoo's approach, where you could have multiple servers pulling package descriptions from there and then choosing which one to install
chagra has quit [Client Quit]
<evanjs>
aaa_: without going too in depth atm, one thing I can say for sure is that nixos overlays drive me much less crazy than layman + emerge + the billion other tweaks I ended up having :P
<evanjs>
you're basically extending the package set you're using
tokudan has joined #nixos
<Palpares>
hi. I cannot figure out how to install my .config/nixpkgs/config.nix from a user. is there a nixos-rebuild switch equivalent command foruser ?
shibboleth has quit [Ping timeout: 240 seconds]
chagra has joined #nixos
shibboleth has joined #nixos
<jakob_rs>
How do I delete a system profile? As in, created with nixos-rebuild switch -p <profile name>
orivej has joined #nixos
lord| has joined #nixos
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
tomberek has joined #nixos
newbieyousir has joined #nixos
<tomberek>
Ericson2314: I'm starting to try to grok regnat's work on CA. I see he started to modify the db schema, but your discussion in #62 suggests the creation of a new table.
<evanjs>
Okay so, use case and current approach/idea: I have a laptop with Gentoo and Windows that I'm not yet comfortable removing Gentoo from (work stuffs) and often times, I need to disable things, rebuild, collect garbage, rebuild ,etc
<evanjs>
My idea was to add a config option that I can toggle via argstr or... wait.... nixos-rebuild doesn't allow args, does it :D
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
leothrix has quit [Ping timeout: 268 seconds]
cosimone has quit [Remote host closed the connection]
<evanjs>
nix options -> options that I can pass to --option
coco has joined #nixos
<sphalerite>
evanjs: what are you trying to achieve?
<infinisil>
evanjs: I've been using my own rebuild wrapper for a while
<infinisil>
Should be able to do one of those to support this
<infinisil>
(but you can't add --option options)
<evanjs>
sphalerite: I tried to preface earlier, but basically, for my laptop at least, I want to rebuild, every now and then, without X, JetBrains, nerdfonts, etc
<evanjs>
so like `nixos-rebuild --lite`. That sort of thing
<evanjs>
After that I collect garbage, rebuild, and I'm set :P
<evanjs>
I _really_ probably need to free up more space and/or address whatever expressions take up so much space, but....
<infinisil>
evanjs: Oh, you could do it with an environment variable
<infinisil>
Set `NIXOS_LITE=1`, then check with builtins.getEnv "NIXOS_LITE" in the build
<aaa_>
Hi, how can I add certain directory to PATH that is used in bash whenever I ssh to the server; I would like the solution to include adding this into configuration.nix ?
<evanjs>
oooooo that's an idea, definitely. And then just lib.mkForce all the things :D
<aaa_>
infinisil, one more thing that I forgot to mention is that this is inside screen
<infinisil>
niksnut: Oh I'm not suggesting using this inside nixpkgs. It's just for evanjs who wants to do some simple ad-hoc customizations in their config
<infinisil>
aaa_: No idea then, bash-interactive is the one that should support going up in history. Maybe your history isn't being recorded or so
<evanjs>
infinisil: hrmmm so going back to the NIXOS_LITE thing, I wonder where I should check for this in the configuration. Or rather, we can't just evaluate arbitrary blocks in nix with if expressions, can we?
<infinisil>
That for sure works
<evanjs>
To put it another way, mkIf is the only conditional off the top of my head I can think of that might help in this case, aside from e.g. mkMerge
<infinisil>
Yeah mkIf will work
jmeredith has joined #nixos
<evanjs>
but mkIf needs to be assigned to variables IIRC
<evanjs>
right, that's what I was thinking, I guess I might be a little myopic right now, and was looking at adding it to a file which already had config defined :P
<worldofpeace>
that is something we really should have in the release, dnscrypt-proxy v1 needs to be removed also for the longest time now
<evanjs>
niksnut: ag gotcha. I also just noticed that maybeEnv is located under deprecated :P
<evanjs>
infinisil's proposed solution seems to work for now, anyway
<infinisil>
worldofpeace: Nah I think it's fine as is
<evanjs>
probably... it's building right now. Dumber question: is there an easy way to do shell-like true/false in nix? e.g. if anything other than 0 -> true?
<worldofpeace>
infinisil: cool, I can rebase it and squash it
<infinisil>
> "anything else" != 0
<{^_^}>
true
<infinisil>
> pkgs.hello != 0
<{^_^}>
true
flameslicer has joined #nixos
AluisioASG has joined #nixos
<evanjs>
mmkay so just `!= 0`... I guess that makes sense. I get so stuck on the solution for what I think the problem is, I often miss the obvious answer. In this case, it's "Don't check for truthiness, but falsiness"
<lovesegfault>
if I have an attrset foo = { a; b; c; }; and another one bar = { a; b; c; }; could I build a function (foobar a) that yields foo.a bar.a
<lovesegfault>
(I want to call nix-build -A foobar.a and have it build foo.a and bar.a as opposed to doing nix-build -A foo.a bar.a)