<lucus16>
Hmm, `cargo run` fails because it can't find a library. That kind of makes sense since the binary it just built isn't patchelf'd, but what's the best way to solve it?
<clever>
lucus16: if you have the source available, just let nix build the whole thing
<ivan>
lucus16: I sometimes point LD_LIBRARY_PATH= at things in /nix to get Rust things to run
<ivan>
(when not building with nix)
<lucus16>
This is for during development, when I'm working in a nix-shell with those dependencies in the buildInputs
<ivan>
is cargo run failing during build?
<lucus16>
No, when manually invoked from within the nix-shell, as part of my development workflow
<ivan>
I mean, is rustc failing or is the binary failing to execute
<lucus16>
Hmm, rustc is supposed to introduce the correct rpath into that binary, right?
<clever>
i would expect it to
<clever>
what does `type rustc` and `type cargo` return?
<lucus16>
rustc is /nix/store/h4dv6f26q32m98zl7f7zzj965cx7lzs6-rustc-1.34.2/bin/rustc
<lucus16>
cargo is /nix/store/9sqsyi5fz0wp7n624gck7fw5pcjycvc7-cargo-1.34.2/bin/cargo
<clever>
yeah, that looks good at a glance
qubasa has joined #nixos
<lucus16>
rustc has no wrapper, cargo has a small one, nothing like the cc wrapper
<clever>
lucus16: if you run `set`, do you see anything like a fixup or postinstall function?
<lucus16>
There's a bunch of hits for fixup, including a fixupOutputHooks which does something with patchELF
<clever>
ah
<clever>
so the rust stuff only patches stuff in $out/bin/ after installing
<clever>
and the binaries you make in nix-shell wont work on their own
<lucus16>
Where are rpaths supposed to come from actually? What decides what ends up in the rpath of an ELF file?
pie__ has quit [Ping timeout: 258 seconds]
<clever>
with gcc, the $out/lib of every single buildInput gets added to the rpath when linking the binary
<clever>
and then a fixup hook will run patchelf --shrink-rpath, to remove things that arent in the DT_NEEDED list
arjen-jonathan has quit [Ping timeout: 252 seconds]
<lucus16>
yeah, but that's the cc wrapper that adds them, correct? How are they chosen in a non-Nix environment?
<clever>
on a normal distro, the compiler mostly relies on /etc/ld.so.conf and ldconfig
<clever>
and i think /usr/lib and /lib are baked into ld.so
Matthieu_ has joined #nixos
o1lo01ol1o has joined #nixos
ericsagnes has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
jluttine has joined #nixos
pvevu has quit [Ping timeout: 248 seconds]
mexisme has quit [Ping timeout: 272 seconds]
o1lo01ol1o has joined #nixos
ericsagnes has joined #nixos
<Guanin>
Ok, I think I have openvpn running in the initrd, but it struggles with DNS. I'm copying everything from ${pkgs.glibc}/lib/*.so over into the initramfs, but that does not change anything (the gentoo wiki states that libnss_dns is required for dns resolution)
<Guanin>
I've also assigned a custom nameserver in /etc/resolv.conf (although this is also set by dhcp correctly)
<Guanin>
ping does not work, too
<Guanin>
(just for clarification: ping which requires a dns request)
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<clever>
Guanin: the dynamic libraries get copied automatically
<clever>
at least, the normal ones, dlopen are special
<clever>
Guanin: what if you strace things?
<Guanin>
still need to do that
jgt has joined #nixos
<Guanin>
grepping for .so in output of strace busybox ping google.de shows that it uses libm.so.6, libresolv.so.2 and libc.so.6 (at least for these there was no ENOENT)
<clever>
Guanin: under normal nixos, it will use nscd to do the actual lookup
<clever>
so the busybox process wont actually do any dns
<Guanin>
Huh ok, so I have to include strace into the initramfs, too?
<clever>
but will also depend on what kernel your using
<aanderse>
marek: are you a zabbix guy?
<day|flip>
clever: is there a way for me to see kernel .config file?
<clever>
day|flip: the config for the running kernel is in /proc/config.gz
jasongrossman has joined #nixos
fusion809 has joined #nixos
justanotheruser has joined #nixos
<Guanin>
clever, thanks for your help, I got it working :) Is it desirable to clean it up enough to make a pull request, or is openvpn in the initrd a niche requirement that is better suited to document in the wiki?
<Guanin>
One of my main concerns is probably that this introduces some kind of secret-in-the-nix-store problem, but it is similar to the situation for openvpn and for the host keys for boot.initrd.ssh
<clever>
Guanin: it does sound like it may be useful to have
<clever>
Guanin: there are also ways to solve the secrets in the initrd problem already
<Guanin>
(I used initrd-ssh.nix as a starting point)
<clever>
boot.initrd.secrets is seperate, and the security depends on what boot.loader.supportsInitrdSecrets is set to
alex`` has quit [Quit: WeeChat 2.4]
<clever>
(facepalm)
<clever>
grub only supports boot.loader.grub.extraInitrd, which will load 2 initrd's at boot time
<clever>
systemd-boot only supports boot.loader.supportsInitrdSecrets, which will dynamically regenerate the initrd to inject secrets, when your doing nixos-rebuild switch
<clever>
and if you use boot.initrd.secrets on grub, the secrets land in the store!
<clever>
but grub doesnt support that, and instead just takes a list of initrds, some of which arent in the store
<Guanin>
So I guess I should stick to boot.initrd.secrets, and the handling of secrets might be changed for the grub case in the future to use the extraInitrd to bypass the store?
<clever>
Guanin: id say grub should be patched to support boot.initrd.secrets
n0qqe has joined #nixos
toppler has quit [Ping timeout: 245 seconds]
<Guanin>
Okay, so I'll stick to boot.initrd.secrets for the config/credentials. I'll just need to resolve one ugly hack (symlinking ip to /nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-iproute2-4.20.0/sbin/ip as openvpn uses that one) before starting to create a usable interface for it
<clever>
Guanin: you probably want to check if openvpn is just looking for `ip` in $PATH, or using an absolute path
<Guanin>
I just wanted to get a proof of concept running and go to sleep now :) I'll play around with it tomorrow (UTC+2 here) and will come back here
<drakonis1>
what's the advice on patching glibc and wine?
<drakonis1>
and then getting wine to use the patched glibc?
drakonis_ has joined #nixos
o1lo01ol1o has joined #nixos
drakonis has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
Rusty1 has quit [Quit: Konversation terminated!]
<zacts>
what might be the best way to install a local perl with cpan modules on NixOS? I want to do this following the Nix way of doing things if I can.
<zacts>
on debian systems I would do this with perlbrew, which is kind of like rbenv if you are familiar with that. or rvm.
<zacts>
I see the nix package guide for Perl and Ruby
<zacts>
but I'm confused on how to package a local perl and modules
freeman42x has quit [Ping timeout: 258 seconds]
<zacts>
wait, let me read the manual
<zacts>
I think it explains how to create your own packages that don't exist in NixOS yet
<zacts>
ivan: # nixos-rebuild switch -I nixpkgs=/path/to/my/nixpkgs <-- this might be better right?
<ivan>
if that works, sure, I just haven't tested it
<gentauro>
clever: nevermind. I added `virtualisation.docker.enable = true;` to the /etc/nixos/configuration and then added `docker` to environment.systemPackages and added the "docker" userGroup to my user
m0rphism has joined #nixos
<clever>
gentauro: you dont have to add docker to systemPackages
<eyJhb>
Will try and see, if it makes a difference using the newest displaylink now. If it wanted to build for me.. :p
<clever>
Izorkin: it accepts a string, so you could just set listen = "/run/phpfpm-something/something"; but automating it would require changing nixpkgs, or using disabledModules
<Izorkin>
clever: my rewrite modules phpdpm with run no-root mode
Makaveli7 has joined #nixos
<Izorkin>
*phpfpm
<aanderse>
Izorkin: also of note is that a *huge* number of nixos modules assume that hard coded formula, so if you're thinking to change it you will need to update them all... :(
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aanderse>
no. i mean every service which uses phpfpm is assuming that fixed location. there are many services which use phpfpm. they would all need to be updated to reflect a change like that
<tA_>
howdy, im running fc-list, grepping for tewi (from tewi-font) and im only seeing a bold entry, but xfontsel is showing the regular one as an option, is there something else i have to do to get the regular? i checked the derivation in case it was an extra option but I dont think it is
<eyJhb>
Nope.. And, no logs that indicate why pretty much....
<eyJhb>
The only thing I have found to be working, is downgrading
<{^_^}>
[nixpkgs] @FRidh pushed commit from @schneefux to master « wallabag: 2.3.7 -> 2.3.8 »: https://git.io/fj2Nh
dansho has quit [Quit: Leaving]
knupfer has joined #nixos
<eyJhb>
clever: but what are we debugging here? Wheter or not pageflip is enabled/disabled? - Because, it should be displaylink that says useful stuff, but it can't
<aanderse>
Izorkin: is line 36 ok? specifically the cfg.pools.${pool} part?
toppler has joined #nixos
<eyJhb>
Trying with 10
<Izorkin>
aanderse: yes, correct. Different does not work. Is there another variant?
<eyJhb>
clever: Tried setting it to 10, which logs should I check?
[Leary] has joined #nixos
thc202 has joined #nixos
Lears has quit [Read error: No route to host]
<clever>
eyJhb: the journal still
aanderse-znc has joined #nixos
aanderse has quit [Ping timeout: 245 seconds]
<eyJhb>
clever: nothing in it, if it is the same command
linarcx has quit [Quit: WeeChat 2.4]
aanderse-znc is now known as aanderse
linarcx has joined #nixos
nilsirl[m] has joined #nixos
<aanderse>
marek: if you need a hand with anything in that zabbix pr let me know :)
<m1cr0man>
Hi folks. I'm trying to build a derivation which has a jar-based setup program. It's giving me an UnknownHostException but I can resolve the URL on the host fine from the prompt. What do I need to add? Here's the deriv. so far https://github.com/m1cr0man/nix-configs/blob/newmc/services/spigot.nix
<manveru>
you can maybe open an issue on nixpkgs for it, i don't have a darwin machine to test, or the time to build haskell atm :P
nD5Xjz_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<halogenandtoast>
manveru: no worries, thanks though
tilpner has joined #nixos
shibboleth has joined #nixos
<romildo>
I want to run audacity (multi-track audio editor and recorder) on NixOS unstable, but I am not getting sound output.
<clever>
romildo: does it appear in pavucontrol ?
<romildo>
Any clues on how to get it working?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<romildo>
clever, no
<clever>
romildo: does it print anything to stdout?
seku has quit [Remote host closed the connection]
<marek>
aanderse: I might, I think I'm very close :) the last thing to solve is to include passwordFile with configFile, any idea? I cannot find any examples of this
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<pbb>
clever: ok I just removed the ip=dhcp and indeed dhcp in initramfs still works, but networking scripts don't start because "Timed out waiting for device /sys/subsystem/net/devices/eth1."
<pbb>
(the devices don't get renamed either)
mian has joined #nixos
<pbb>
eth1: Failed to rename network interface 3 from 'eth1' to 'enp2s0': Device or resource busy
<pbb>
maybe because it's up?
<clever>
pbb: i'm not sure renaming works when using initrd networking
<clever>
pbb: networking.usePredictableInterfaceNames = false; will just not rename it
<marek>
aanderse: can I ask the user to make the file in the DBPassword = <> format?
<pbb>
clever: ok disableing predictable interface names mostly worked, but I prefer another solution: I will remove the ips and set down the interfaces in postBootCommands, so they can be initialized cleanly
<marek>
aanderse: I guess ideally it would contain only the password right?
<clever>
pbb: that also works, if you can afford the network being down
<clever>
pbb: depends on if its just for luks, or a whole nfs root
<pbb>
it's for unlocking a zfs encrypted pool
<Guanin>
clever Regarding the openvpn-initrd module: I resolved the /bin/ip problem by adding "iproute /bin/ip" to the openvpn config. The command line switch available by openvpn somehow did not work
<clever>
Guanin: ah, nice
<Guanin>
I also cleaned up the options and think that it is nearly suitable to be PR'd :)
<Guanin>
I'm just cleaning up the documentation right now
<Guanin>
Is there some tag that I can use to reference other options? So something like <literal> or <option>?
<Guanin>
Or is <option> already the proper tag for that?
jtojnar has quit [Read error: Connection reset by peer]
<clever>
Guanin: dont remember, but could just grep the entire nixpkgs for examples
<aanderse>
marek: it is your module, you're free to do whatever you see fit
<aanderse>
but you're right, ideally the file would only contain the password
jtojnar has joined #nixos
<aanderse>
as that would be more consistent with the rest of nixos modules
<aanderse>
which means a little bit more work on your part
<aanderse>
hmm
<marek>
aanderse: I did not like the redmine way at first, but I think there is no better way
<aanderse>
marek: yeah that way is horrible
<aanderse>
but used sometimes because no other option
<aanderse>
now that i think about it
<aanderse>
there might be a module or two which ask for credentials to be in a specific format
<aanderse>
yeah put a note in the description of password file to specify the password as zabbix would expect
<aanderse>
it will keep the module code so simple
<aanderse>
see if any reviewer complains :)
jgt has joined #nixos
<romildo>
clever, any other clue on fixing audacity sound output?
<clever>
romildo: testing it on this end...
<marek>
aanderse: argh, the configuration from upstream is world-readable by default :) oh
<clever>
romildo: which platback device are you selecting within audacity?
jgt has quit [Ping timeout: 250 seconds]
<Guanin>
Huh, is there a way of creating a temporary file to include it in boot.initrd.secrets from a string? (Basically a pkgs.writeText that is not added to the store)
<marek>
aanderse: actually, writeTextFile nixpkgs function does that - is has the executable ? but not readable
<clever>
Guanin: i believe it must be a file that already exists, only nixops is able to extract strings
<aanderse>
writeTextFile will be world readable
<Guanin>
Okay, that it might be better to add the ovpn configuration as types.path instead of types.lines :)
<aanderse>
and its ok if the configuration file for zabbix is world readable... so long as the (password) include file it references is not
Jetien_ has quit [Ping timeout: 245 seconds]
<romildo>
clever, in Preferences->Devices the only option for interface host is ALSA, and the playback devices are only hdmi ones and default.
Matthieu_ has quit [Ping timeout: 248 seconds]
<clever>
romildo: on my end, i see a default device
<clever>
romildo: set platback to default, at the very bottom
<aanderse>
marek: are you using the zabbix web frontend at all? and if so, are you using services.httpd.extraSubservices = [ { type = "zabbix"; } ]; ?
<romildo>
clever, the default is working. But I was quite sure it was not previously. Now I am puzzled.
dckc-ho has joined #nixos
mumuluxi has joined #nixos
<dckc-ho>
I'm struggling to install idris with pruviloj. The docs say `nix-env -iE 'pkgs: pkgs.idrisPackages.with-packages (with pkgs.idrisPackages; [ contrib pruviloj ])'` but I get: error: attribute 'idrisPackages' missing, at (string):1:7
wucke13 has joined #nixos
<clever>
dckc-ho: nix-env doesnt pass you pkgs, it passes you an attrset containing all channels
<dckc-ho>
OTOH, the nix-shell command documented there works.
<dckc-ho>
clever, I'm not sure how to apply that clue. care to elaborate?
<dckc-ho>
error: value is a function while a set was expected, at (string):1:18
endformationage has joined #nixos
<clever>
dckc-ho: nixpkgs is the path to nixpkgs, not the package set
<clever>
dckc-ho: thats why i imported it
<marek>
aanderse: honestly, thank you so much for that review, I learned so much from it
<dckc-ho>
imported? where?
<aanderse>
marek: awesome, i'm so glad to hear :D
<clever>
dckc-ho: the `import nixos {}`
jtojnar has quit [Quit: jtojnar]
iyzsong has quit [Ping timeout: 248 seconds]
<clever>
dckc-ho: that imports the file at that path, and then calls the function with no args
<clever>
dckc-ho: you want `pkgs = import nixpkgs {}`
wfranzini has quit [Remote host closed the connection]
<aanderse>
marek: i'm looking to get rid of the zabbix http subservice and replace it with a real module, i'll ping you when i get around to it (as i have zero zabbix experience)
<dckc-ho>
still flailing... I'd rather use nix-shell than nix-env, but i haven't figured out how to get emacs idris mode to notice nix-shell settings. direnv looked promising; maybe I'll try again.
<dckc-ho>
latest try:
<dckc-ho>
nix-env -iE '{ nixpkgs, ...}: let pkgs = import nixpkgs {}; in pkgs.idrisPackages.with-packages (with nixpkgs.idrisPackages; [ contrib pruviloj ])'
<dckc-ho>
error: cannot coerce a function to a string, at (string):1:29
<clever>
dckc-ho: your using nixpkgs in the with block, that is of type path
<clever>
dckc-ho: you want pkgs in the with block
<dckc-ho>
same error: nix-env -iE '{ nixpkgs, ...}: let pkgs = import nixpkgs {}; in pkgs.idrisPackages.with-packages (with pkgs.idrisPackages; [ contrib pruviloj ])
<marek>
how can I import nixos/tests on my workstation to run my own specific tests (based on my own configration, not related to nixpkgs)?
<clever>
dckc-ho: also, i find using -E with nix-env to be a source of problesm for other reasons
<clever>
dckc-ho: 4 months later, when you want to upgrade idris, youll need to figure this all out again
<clever>
dckc-ho: its much simpler to make an override in config.nix, then just nix-env -iA nixpkgs.idris-things
<dckc-ho>
I'm more comforable with shell.nix, something evident in this directory, instead of global config.nix
* dckc-ho
tries to get direnv, emacs, and nix-shell to play nice again...
<clever>
dckc-ho: yeah, i also prefer having it in the current dir, and to just never install dev time tools, nix-shell all the way
<dckc-ho>
there's a movement to shrink the python stdlib; I think they're ignoring this sort of "just install one extra package" friction
<dckc-ho>
clever, do you use emacs?
<clever>
dckc-ho: vim
<{^_^}>
[nixpkgs] @jtojnar merged pull request #63124 → gnome3.gnome-control-center: Add mutter to dependencies → https://git.io/fj26r
<simpson>
dckc-ho: Oh, trust me, Python folks have been aware of the problem for a *long* time; it's more that there's certain dysfunctions within Python core, one of which is the inability to comprehend extensions of systems/applications.
<simpson>
python.withPackages isn't a panacea, but it's not bad either.
ericsagnes has quit [Ping timeout: 248 seconds]
Matthieu_ has joined #nixos
<clever>
simpson: a bigger problem in nix+python, is dynamic libraries
<simpson>
clever: Like, using ctypes or cffi to load DSOs?
toppler has quit [Ping timeout: 248 seconds]
<clever>
simpson: you sometimes need to patchelf/LD_LIBRARY_PATH, but you cant patchelf the python proc, and you dont even control the things depending on you to patch it right
<simpson>
clever: Huh, TIL. Is that a problem with PyPy too, or just CPython?
sb0 has quit [Ping timeout: 245 seconds]
Jetien_ has joined #nixos
<clever>
any time your loading a compiled library and not giving an absolute path
<clever>
it will search the LD_LIBRARY_PATH and RPATH of the python binary
<clever>
but if somebody is depending on your library, they wont think to wrap python and fix that
<dckc-ho>
(well, except that I'm downloading 80% of all open source software ever developed again because I did `nix-channel --update` while I was flailing)
<dckc-ho>
odd that idris has a runtime dependency on gcc
<zacts>
ivan: the -I switch doesn't seem to work for me.
<clever>
zacts: your telling it to look for nixpkgs, in /home/zacts/git/nixpkgs, and /home/zacts/git/nixpkgs/nixpkgs doesnt exist
<joapet99>
It may seem like the creation of a win64 prefix with wineWowPackages.full doesn't finish correctly. "/nix/store/br5l8n88by98ks4h6zk5lg0hyy5565by-wine-wow-4.0/bin/wine: not an ELF binary... don't know how to load it"
<joapet99>
The syswow64 folder ends up empty
<joapet99>
Can anyone confirm this?
<zacts>
oh
jasongrossman has joined #nixos
<zacts>
let me try this again
<zacts>
clever: yes, and your version is what is in the manual too.
<zacts>
yep, now it's working for me
sb0 has joined #nixos
<zacts>
thanks
<clever>
your welcome
<infinisil>
dckc-ho: Can you quickly confirm something for me? If you put `self: super: { myIdris = with self.idrisPackages; with-packages [ contrib pruviloj ]; }` in ~/.config/nixpkgs/overlays/my-idris.nix, can you install that with `nix-env -iA nixos.myIdris`?
jgt has joined #nixos
<marek>
aanderse: I'm not sure why did that ofborg eval failed, I cannot find if it's related to my change
<{^_^}>
[nixpkgs] @kuznero opened pull request #63164 → grsync: init at 1.2.6 → https://git.io/fj2hv
<joepie91[m]>
am I going mad, or is the pulseaudio-modules-bt package suddenly required for bluetooth audio in 19.03 whereas that was not the case in 18.09?
<joepie91[m]>
I don't recall this being in the release notes...
Jetien_ has quit [Ping timeout: 248 seconds]
zacts has joined #nixos
<{^_^}>
[nixops] @PsyanticY opened pull request #1165 → Adding destroy message when destroying containers → https://git.io/fj2hs
G0ld3nChi1d has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 248 seconds]
m1911 has joined #nixos
<{^_^}>
[nixpkgs] @Amarandus opened pull request #63165 → nixos/system/boot/initrd-openvpn: New openvpn options for initrd → https://git.io/fj2hR
<dckc-ho>
yay! emacs and nix-shell are getting along via direnv
<{^_^}>
[nixpkgs] @FRidh pushed commit from @avnik to master « wine: 4.8 -> 4.9, 4.0 -> 4.0.1 »: https://git.io/fj2jn
<PyroLagus>
what are nixos's plans for python 2? will python 2 packages be deleted or marked insecure after EOL?
<infinisil>
PyroLagus: I think the plan is to firstly make python 3 the default
<PyroLagus>
it's not yet?
<PyroLagus>
oh, it isn't. wow
<Izorkin>
aanderse: full update PR, please check.
<FRidh>
python attribute will either remain at python2 (python27) or be removed. Setting it to python3 is likely to break downstream codebases (although personally I think it's good to push 'm a bit)
<FRidh>
For runtime python2 is hardly used, but for building it is more common.
<MichaelRaskin>
Well, maybe someone wants to maintain Python2 using RedHat SRPMS after EOL…
jgt has joined #nixos
<simpson>
PyroLagus, FRidh, MichaelRaskin: I will write my RFC this weekend. The basic idea: pythonPackages points to python3Packages, python2Packages points to pypyPackages, and we'll remove CPython 2.x in favor of PyPy.
<PyroLagus>
ah
<FRidh>
simpson: that I would be directly opposed to due to lack of compatibililty and bad state of pypyPackages
<simpson>
FRidh: I am prepared to put in the time to fix the "bad state". The lack of compatibility is a grave that the Python community has dug for themselves over the past 15yrs, though, so that's not on my menu.
<FRidh>
simpson: what do you gain by setting python2Packages = pypyPackages? It will only cause confusion, and lead to breakage. Then just remove pythonPackages as attribute if you want to break things.
jgt has quit [Ping timeout: 248 seconds]
<FRidh>
improving pypyPackages would be nice
<simpson>
FRidh: Well, as I see it, the choices are either PyPy, or no Python 2; there's no other suitable Python 2 interpreters IMO.
<FRidh>
if we put in the effort it should be fine I think to build them on hydra, considering the python2 package set will be shrinking anyway
<FRidh>
simpson: what is your motivation for having this? Do you need python2 for a longer period of time?
alex`` has quit [Ping timeout: 248 seconds]
<simpson>
(I don't want to break anything; I want for the Numpy folks to have listened over a decade ago and stopped gluing themselves to CPython's internal APIs.)
<{^_^}>
[nixpkgs] @ambrop72 opened pull request #63166 → libelf: Add patch to prevent -Wundef warnings. → https://git.io/fjaeq
<simpson>
FRidh: Well, yeah. There's an entire massive Python 2 community with legacy code which isn't going anywhere next year.
<simpson>
Well, yes. CPython retiring their 2.x branch is causing lots of trouble for lots of folks.
<MichaelRaskin>
Maybe enough of them to actually patch any bad holes for a long time in the future
vidbina has quit [Ping timeout: 246 seconds]
Orbstheorem has joined #nixos
<simpson>
FRidh: Another thing about the PyPy community is that, unlike CPython, folks have *documented* differences and incompatibilities. There's an entire wiki about the trashiest and most common Python packages: https://bitbucket.org/pypy/compatibility/wiki/Home
dontobey has quit [Read error: Connection reset by peer]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.2)]
<{^_^}>
[cabal2nix] @turboMaCk opened pull request #422 → Run hpack in prePatch phase → https://git.io/fjae6
hoijui has quit [Ping timeout: 250 seconds]
gratto has joined #nixos
<Yaniel>
any schedule for defaulting to kernel 5.x on unstable?
Makaveli7 has joined #nixos
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
<etu>
Yaniel: Whenever there's an LTS kernel on 5.x
<Yaniel>
ah, so even unstable sticks to lts kernels?
<etu>
yeah, if you want to you can use pkgs.linuxPackages_latest to always stick to latest
<Yaniel>
doesn't seem like a good idea as long as I have an NVIDIA GPU
jgt has joined #nixos
<etu>
You're totally correct about that, then you can pick pkgs.linuxPackages_5_0 or pkgs.linuxPackages_5_1 or so to be able to change when you feel like it
<m1cr0man>
I'm adding a node package to my local copy of nixpkgs and then running generate.sh. Is there a more efficient way for me to put a node package in production on my server? Every time I make a change and I run that script im querying npm for all the sources again.
domogled has quit [Ping timeout: 258 seconds]
<marek>
how do I tell nix-build to ignore one whole option defined in my configuration on import?
<marek>
like import everything expect "deployment" (custom morph option not in nixpkgs modules)
<mjrosenb>
ok, I've determined that the issue with building generics-sop-0.3.2.0 is that it depends on an older version of ghc. how do I request that a newer generics-sop get built?
<m1cr0man>
I know about node2nix but it seems a bit overkill for production? Surely I don't need those huge nix scripts. Maybe I just need to learn more about deploying nodejs packages on nix.
<dminuoso>
Is there an environment variable the nix provided gcc respects to control where to look for directories?
<dminuoso>
(Reason I need this, is because apparently Python folks consider it very funny to rely on `gcc` to look for libraries when loading .so files..)
<dminuoso>
Ah I guess it'd just be LIBRARY_PATH
jgt has joined #nixos
<pie__>
dminuoso, theres a thread about that somewhere on the issue tracker i think
<pie__>
maybe try looking for python and ldd?
<pie__>
something like that
acarrico has quit [Ping timeout: 258 seconds]
<dminuoso>
pie__: Actually... I could just provide a stub shell script called `gcc` that satisfies the interface cutils is looking for.
<not_a_robot>
anyone know what package has the ssh client? I'm trying to rsync in a systemd timer but getting a failed to exed ssh error
<Yaniel>
I'd expect openssh
o1lo01ol1o has quit [Ping timeout: 248 seconds]
contrapumpkin has quit [Ping timeout: 244 seconds]
<not_a_robot>
Yaniel: thanks, for some reason that didn't even cross my mind
szicari has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #63176 → pythonPackages.azure-cosmos: init at 3.1.0 → https://git.io/fjaJa
<tA_>
howdy, anyone know if im missing something installing fonts other than adding it to fonts.fonts? its showing in xfontsel fine, but i can only seem to access the bold version of tewi in my terminal
linarcx has quit [Quit: WeeChat 2.5]
<infinisil>
,locate bin ssh
<{^_^}>
Found in packages: openssh, openssh_hpn, openssh_gssapi
toppler has quit [Ping timeout: 245 seconds]
FRidh has quit [Quit: Konversation terminated!]
jgt has joined #nixos
not_a_robot has quit [Ping timeout: 256 seconds]
Anton-Latukha has quit [Ping timeout: 245 seconds]
DerGuteMoritz has joined #nixos
toppler has joined #nixos
jgt has quit [Ping timeout: 258 seconds]
szicari has quit [Ping timeout: 250 seconds]
szicari has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
orivej has joined #nixos
<marek>
is there ANY way to escape ";" in ${url}? :(
<gchristensen>
what is the problem?
<marek>
gchristensen: it errors with invalid character, when there is an ; in the url
<marek>
even with escaping it with \ hm
<samueldr>
marek: using the "naked" URL syntax? use a string instead
<marek>
samueldr: using that ^ I still get: error: invalid character ';' in name '?p=qemu.git;a=patch;h=d52680fc932efb8a2f334cc6993e705ed1e31e99'
halogenandtoast has joined #nixos
Thra11 has quit [Ping timeout: 272 seconds]
<Guanin>
marek That problem is probably not the url itself, but in the filename where the patch will be stored
<samueldr>
I saw your original question had `${}` in... `"${http://example.com/a;a}"`would be a string, with an antiquotation, with a naked URL literal
<tA_>
update on fonts, i notice that fc-match tewi is defaulting to the bold version, which I think is my problem, is there any way to change the entries fc-match returns?
zupo has quit [Client Quit]
<tA_>
also noticed that the derivation is converting the bdf to pcf and only placing them, should I grab the bdfs too?
jgt has quit [Ping timeout: 258 seconds]
Arahael has joined #nixos
<tA_>
ok figured it out, needed a fontconfig block with the bitmap options enabled
PyroLagus has quit [Quit: ZNC / WeeChat]
PyroLagus has joined #nixos
m0rphism has quit [Ping timeout: 258 seconds]
Zer000 has quit [Quit: Leaving]
karetsu has joined #nixos
<karetsu>
what would be the declarative way to specify which ispell language to use as default?
<karetsu>
nixos.wiki coming up blank
Lears has joined #nixos
[Leary] has quit [Read error: No route to host]
<ldlework>
Does anyone know how to setup, using the NixOS module, a Nginx virtual-host which acts as a reverse proxy to some other webserver running on the machine?
<Guanin>
It uses a custom "proxy" function which uses proxyPass
<Guanin>
But in theory, you could just do something like virtualHosts."example.com".locations."/".proxyPass = "http://localhost:1234/";
* DigitalKiwi
uses extraConfig
<ldlework>
woah, nice thanks
<Guanin>
DigitalKiwi the third config example there was added by me :) But I got that proxy function in some example config somewhere else, mostly added that one the hardened TLS config and HSTS preloading
<Guanin>
That list is a great way to discover options for the services you want to configure, and they all provide documentation (and if it is not sufficient, it links to the *.nix file in the nixpkgs repo, where you can read the source and learn what the option will do)
ambro718 has quit [Ping timeout: 245 seconds]
jgt has joined #nixos
daGrevis has joined #nixos
<ldlework>
When using NixOps, if I extend an EBS volume size, how can I get NixOS to realize it?
ericsagnes has joined #nixos
<ldlework>
maybe just a reboot
ldlework has quit [Quit: co'o ro do]
jgt has quit [Ping timeout: 258 seconds]
ldlework has joined #nixos
daGrevis has quit [Remote host closed the connection]
daGrevis has quit [Remote host closed the connection]
<juliusdeane>
How can I configure the lightdm greeter (e.g. changing the background img) on nixos?
daGrevis has joined #nixos
Matthieu_ has joined #nixos
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
<pie__>
juliusdeane, your mileage may vary with user stuff
<pie__>
the general pointed to thing in that direction is home-manager but i havent actually gotten around to really looking at it myself, so more YMMV
<Guanin>
pie__ I'd say lightdm is one step before home-manager is relevant. juliusdeane you can set the lightdm gtk greeter theme with services.xserver.displayManager.lightdm.greeters.gtk.theme - and if you find a way to set the background from lightdm-gtk-greeter.conf (look into the manpage) you can use services.xserver.displayManager.lightdm.greeters.gtk.extraConfig to write arbitrary stuff into that file ;)
<pie__>
Guanin, ah ok
<pie__>
neat
acarrico has quit [Ping timeout: 272 seconds]
<Guanin>
lightdm typically just provides a login prompt, so it is not run as normal user and it does not really make sense to try to use home-manager to manage lightdm :)
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<juliusdeane>
Guanin thnx
<Guanin>
juliusdeane it looks like you can just add a [greeter] section with background=/path/to/image inside the extra config to change the background image
<juliusdeane>
The problem with that is that I can't really find where the conf file is
<juliusdeane>
I've found some read-only ones on /run/current-system but there doesn't appear to be a global one
<zacts>
I thought that Nix was implemented in Haskell, but the source looks like C++.
<juliusdeane>
At least not in /etc/
<Guanin>
It is somewhere inside /nix/store, but the proper way to add stuff to the lightdm-gtk-greeter.conf is through the option added to configuration.nix (or a different file that is imported)
Makaveli7 has quit [Quit: WeeChat 2.5]
<zacts>
regardless, NixOS is working well for me so far.