<moonloo>
why is it when you use /nix as an independent package manager on another system you run into opengl problems? I don't even get those when running a container with a different rootfs. is there a way to correct this but doing some mount binds and running /nix as a rootfs in a container?
<moonloo>
would using a full nixos rootfs help with that?
davidv7_ has joined #nixos
davidv7 has quit [Ping timeout: 276 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<mjlbach>
use nixGL
<moonloo>
but nigl isn't required on nixos, why is that? and would using nixos as a container rootfs fix that problem or is the nixos kernel special?
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<tpw_rules>
because the way nix programs are configured to search for opengl only works on nixos (there's some special directories under /run)
<tpw_rules>
what nixGL does, roughly, is copy your current graphics driver to the store, set some environment variables to point to those drivers, and calls the program
<tpw_rules>
and no, it wouldn't work in a nixos container because the program inside the container and out may have different versions of the libraries
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @tathougies to release-20.03 « [nixos/prometheus] promTypes.filter.value -> promTypes.filter.values »: https://git.io/JtNaX
<tomberek>
moonloo: opengl is a runtime dependency that can't quite be correctly encapsulated. Similar to how docker requires special support for nvidia (hence nvidia-docker).
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
evils has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @tathougies to release-20.09 « [nixos/prometheus] promTypes.filter.value -> promTypes.filter.values »: https://git.io/JtNaD
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<moonloo>
tomberek : maybe it's something specific to docker because with bubblewrap all i have to do is bind /dev/nvidia-modeset /dev/nvidia[0-9] /dev/nvidiactl in addition to /dev/dri and /sys/dev/char + /sys/devices/pci0000:00
MmeQuignon has quit [Ping timeout: 240 seconds]
nhs has joined #nixos
<tomberek>
moonloo: ah, you are using bubblewrap and trying to get opengl working inside there?
<moonloo>
yes
<tomberek>
ok, i presume you have looked at bubblewrap issue 297. Strace your application, but i'd suspect it is looking for something at /run/opengl-driver
<fresheyeball>
anyone used docker inside of a nix expression?
h0m1 has quit [Ping timeout: 264 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
h0m1 has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
Lord_of_Life_ has joined #nixos
attila_lendvai has quit [Ping timeout: 265 seconds]
Lord_of_Life has quit [Ping timeout: 272 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
Lord_of_Life_ is now known as Lord_of_Life
emmanuel_erc has joined #nixos
<apteryx>
hi! I installed nix on top of Guix System, and added the nixpkgs channel; I could install a package with nix-env -i, but nix search go for instance returns 'error: no results for the given search term(s)!'. Any idea? It hints at updating the cache with -u, but this didn't help.
mcornick has quit [Quit: zzz]
<fresheyeball>
apteryx: what are you installing?
<apteryx>
I'm trying to install 'go'
<apteryx>
well, searching for it
<apteryx>
at first
<tomberek>
golang
<apteryx>
nix search golang returns void too
<apteryx>
so there's something with my package cache
<apteryx>
nix-env -i go proceeds to install go-1.16 though, so that's weird
jonringer has quit [Remote host closed the connection]
<apteryx>
is there an equivalent to 'guix show' in nix?
<apteryx>
To show the description of a package, along with its outputs, inputs, etc.
<apteryx>
oh, forgot to mention my previous issue was me forgetting to source some nix.sh file that sets NIX_PATH. It's documented in the Guix manual; my bad.
<jawr>
it complains that The option `interface' does not exist.
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
cole-h has joined #nixos
nhs has quit [Ping timeout: 265 seconds]
<matthewcroughan>
kalbasit[m]: Hey! I'm trying to use your buildGoModule function, but the structure of the repo I'm trying to build doesn't have a `main.go` inside its root
<tomberek>
no, the client would be apache2 (asl20)
<matthewcroughan>
I'm going to guess not. But that is confusing.
<matthewcroughan>
If you've ever used f-droid, you'll understand why ;D
<matthewcroughan>
Was just wondering how strict nix was about that sort of thing.
growpotkin has joined #nixos
apache8080 has joined #nixos
<simpson>
fjfjfjfjfjfj[m]: No. Programs use the same linkage and memory layouts as on other GNU/Linux distros.
<matthewcroughan>
tomberek: what about meta.maintainers?
<matthewcroughan>
is that supposed to represent the nixpkg maintainer?
<tomberek>
nix helps you keep track of it and manage it if you care. Nixpkgs has many free clients for unfree services, and some unfree software (which doesn't get built or distributed by the build farms).
<tomberek>
yes. normally if you build it, you add yourself
<{^_^}>
[nixpkgs] @FRidh opened pull request #114538 → python: fix full builds by referring to the correct interpreter (fixes #114475) → https://github.com/NixOS/nixpkgs/pull/114538
<patagonicus>
Both nixos-install and nix-bisect have nice build progress output where it shows the number of packages already built and how many to build in total as well as a few other things - how do I get that with nix-build and/or nixos-rebuild?
respawn_ has quit [Quit: Leaving]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
riksteri has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
jkachmar has quit [Quit: Connection closed for inactivity]
emmanuel_erc has quit [Read error: Connection reset by peer]
<Seylerius>
Hi y'all. Struggling to get NixOS installed with a LUKS-encrypted LVM, keyed to my Yubikey. I repeatedly get an error about being unable to insert `dm_crypt` due to an `unknown symbol` every time I boot for real, but I can successfully mount the drive in the live disk.
ahmed_elgabri has joined #nixos
UnaDuda has quit [Ping timeout: 264 seconds]
emmanuel_erc has quit [Read error: Connection reset by peer]
UnaDuda71 is now known as UnaDuda
<patagonicus>
Seylerius: That's … weird. Can you paste your config for us?
ahmedelgabri has quit [Ping timeout: 258 seconds]
<Seylerius>
Yeah, hold on. Lemme grab it off the other machine.
UnaDuda94 has joined #nixos
emmanuel_erc has joined #nixos
Izorkin has quit [Ping timeout: 240 seconds]
<Seylerius>
Wait, can probably manage to sprunge or ix.io it from there without any funky copying.
<UnaDuda>
I will call Microsoft to stop changing IP
<UnaDuda>
Hello, i need to build a dnf package.
Izorkin has joined #nixos
supersandro20002 is now known as supersandro2000
<UnaDuda>
Hello, i need to build a dnf package.
<supersandro2000>
please stop spamming that
emmanuel_erc has quit [Read error: Connection reset by peer]
<patagonicus>
Seylerius: So I've never tried yubikeys with LUKS, but my best guess for what to try is to *not* set cryptoModules. The ones you list are all included in the default, but the default has more. Although it probably should work if you're sure you only need those (but I'd try it just to make sure).
<UnaDuda>
supersandro2000 I need to build a dnf package.
<UnaDuda>
I exit, and when downloaded, i will back.
emmanuel_erc has joined #nixos
<UnaDuda>
My eMule.
<UnaDuda>
Bye.
UnaDuda has quit [Quit: Connection closed]
<Seylerius>
That's a thought. I should update the wiki article with my findings once I figure out the right routine.
<shla>
supersandro2000, but then how come is ldd able to resolve it to /nix/store/q53f5birhik4dxg3q3r2g5f324n7r5mc-glibc-2.31-74/lib64/ld-linux-x86-64.so.2 ?
<shla>
i'll probably go container way, easiest of above solutions
emmanuel_erc has quit [Read error: Connection reset by peer]
<tomberek>
shla: ldd is printing that it would be able to find that if it was trying to load it as a dynamic library. It's misleading. It cannot find it as an interpreter.
<UnaDuda>
etu Please, give me a example default.nix to build a DNF package.
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<etu>
UnaDuda: DNF doesn't have it's own package format, also DNF isn't a package format we usually use in Nix so I think you're in the wrong channel.
<etu>
UnaDuda: DNF just uses RPM's I think.
<UnaDuda>
etu I can install a web server???
fuiltilt has quit [Quit: WeeChat 2.9]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
troydm has joined #nixos
nhs has joined #nixos
nly has left #nixos ["ERC (IRC client for Emacs 27.1)"]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<nf>
what's the point of using fileSystems.foo.encrypted over boot.initrd.luks.devices? seems like the former is an abstraction over the latter providing strictly less options?
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<wei97>
hi folks, nix newbee here, does anyone know how can I play with home-manager's lib function in the repl? in specific, what shall I use :l to load in the nix repl? for example there's a func defined in lib.hm.gvariant.mkTuple and i want to tried it out in repl...i alreay had the home-manager channel added btw..
fuzzypixelz has joined #nixos
<fuzzypixelz>
if anyone here uses plasma, I'd like to know what the support like on nixos?
lsix has joined #nixos
<hexa->
we have a live iso using plasma desktop, you can test-drive it
attila_lendvai has quit [Ping timeout: 265 seconds]
K0kada has joined #nixos
vrinek has quit [Ping timeout: 272 seconds]
zupo has joined #nixos
<gchristensen>
hm :)
tomberek has joined #nixos
<hexa->
gchristensen: nixos lts when? :P
<gchristensen>
as soon as the $10,000,000 check clears :)
<hexa->
cool
<hexa->
let's get that done
<siraben>
gchristensen: where from?
<gchristensen>
whoever wants to pay it
<gchristensen>
I haven't heard of anyone scrambling to pay for an LTS yet, and actually one of the places I thought for sure would want it actually rides nixos unstable, because they agree with my position that LTS is an expensive and boring way to buy technical debt
ahmed_elgabri has quit [Ping timeout: 264 seconds]
ahmedelgabri has quit [Ping timeout: 272 seconds]
<unclechu>
hey, is there any idiomatic Nix way to use `pkgs.tmuxPlugins` in my tmux config?
tomberek has quit [Quit: Ping timeout (120 seconds)]
jmeredith has joined #nixos
ahmed_elgabri has joined #nixos
collares has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
slack1256 has joined #nixos
<aveltras>
i'm trying to setup a systemd user service to automatically shutdown minikube when i poweroff my laptop (because it takes a long time to shutdown if minikube is still running), i have the following setup but the systemd service is loaded and inactive
<collares>
viric: not much, but I've used it in nixos. what's wrong?
<aveltras>
is there any reason the service is not active on boot ?
<viric>
collares: Trying to get the latest in master to work... the bluetooth seems not aware of anything when I start pipewire manually; I pick its etc/ config and put into my $HOME config, but bluetooth doesn't get anything registered
<viric>
collares: do you know how to use pipewire without the nixos module in place? Like calling / configuring it manually.
collares has quit [Read error: Connection reset by peer]
<viric>
I've no idea how pipewire-pulse should register 'things' to bluez
tomberek has joined #nixos
justanotheruser has joined #nixos
<collares>
vinic: hmm, that's a good question. thinking. so you'd like to have the config files like in your home directory? usually the fact that you don't see devices means pipewire-media-session is not running for some reason
emmanuel_erc has quit [Read error: Connection reset by peer]
<collares>
do you see other devices in pavucontrol?
<viric>
collares: So one thing is pipewire, the other is pipewire-pulse, and the other is pipewire-media-session
emmanuel_erc has joined #nixos
<viric>
what is the media session about?
<collares>
I don't know the right terminology, but pipewire-media-session takes care of creating nodes "corresponding to outside devices" and making them available for pipewire
<viric>
ahh the media session is what talks to alsa/kernel?
<collares>
so pipewire-media-session is not running you can create your own nodes (using qjackctl for example) but you don't get nodes for your bluetooth devices
<viric>
I remember that when I started pipewire-pulse (in prev versions) or regular pulseaudio, some 'things' get registered to bluez
<viric>
but I cannot get that to happen with the latest pipewire
meh` has joined #nixos
<viric>
and I don't know how those two communicate. dbus?
<collares>
to be honest I know nothing about the internals. bluez communicates with pipewire (as a whole) over dbus, but I guess pipewire-media-session must do its own thing
<fionera>
has anyone intellij with the ruby plugin working? I cant add a ruby sdk on nixos
<collares>
do you have a pipewire-media-session process running atm?
<justanotheruser>
Is there a way to list all the nix-store directories used in a nix-build?
ahmedelgabri has joined #nixos
<viric>
collares: I've nothing now
<viric>
collares: I start pipewire manually
<patagonicus>
justanotheruser: Sort of. You can use `nix-store --query --requisites /nix/store/*.drv` to get everything that is needed to build a particular derivation. But because of the binary caches, you'll usually just either get the result of derivation directly or just a few of it's dependencies, but not their build time dependencies.
<viric>
collares: in configuration.nix I have sound.enable true, but nothing more. No pulseaudio or pipewire.
ekleog_ has quit [Quit: WeeChat 2.9]
ekleog has joined #nixos
<collares>
viric: Oh, okay. So if you start it manually, you have to point it at the right config files, and media-session has a lot of them (alsa-monitor.conf, bluez-monitor.conf, media-session.conf, v4l2-monitor.conf)
<viric>
aha
<viric>
moreover it has splitted paths in nixos...
<collares>
note that the configuration file (both the values and the format) tend to change quite often, so it's good to make sure whatever example you're using matches the pipewire version
<viric>
collares: I copy /nix/store/p72qjc7brixhmgd5f2c5j5y9j57pcnkb-pipewire-0.3.22/etc/pipewire/ to ~/.config/pipewire/
emmanuel_erc has quit [Read error: Connection reset by peer]
<collares>
viric: what's worse, an option to read from a custom config directory was only added to pipewire last week (post 0.3.22, I think)
<viric>
collares: 1st, the path from the media session in pipewire.conf is broken due to splitted paths
<viric>
I'm at 0.3.22
emmanuel_erc has joined #nixos
<collares>
wait, 0.3.22? are you in latest master? I think 0.3.22 was only in master for a short amount of time before it got backed out because the config files weren't updated
<viric>
collares: I reverted the revert for me
<viric>
I want 0.3.22
<collares>
got it (there's a PR for that if that's the only thing barring you from using the nixos module)
<viric>
collares: well I wanted to understand it better too, because I have no clue.
<collares>
let me link to the config defaults from the pipewire repo
<collares>
the config files are there (in particular, look at the media-session.d folder)
<viric>
collares: I have them in $out/etc
<viric>
collares: for example, do you use any 'user' systemd unit? I don't
<collares>
oh, right, you mentioned that, sorry
<collares>
I have them for pipewire and pipewire-pulse
<viric>
collares: pactl lists the pipewire
<collares>
A systemd unit for pipewire-media-session will be added in 0.3.23, but currently you add an exec line to pipewire.conf to start pipewire-media-session
<viric>
collares: ok
<viric>
I'm there. pipewire & media session running
<viric>
bluez has no idea of anything yet
rauno has joined #nixos
TurloF1 has quit [Quit: Connection closed for inactivity]
<collares>
okay, cool. so set PIPEWIRE_CONFIG_DIR to the directory that contains the media-session.d folder before starting pipewire-media-session and should pick up the config files
emmanuel_erc has quit [Read error: Connection reset by peer]
<viric>
collares: if I attempt the connect: bluetoothd[24266]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 00:02:3C:6F:E0:20: Protocol not availabl
emmanuel_erc has joined #nixos
<viric>
collares: isn't ~/.config/pipewire just fine?
<viric>
I only get RTKit complaints and nothing else
thibm_ is now known as thibm
<collares>
viric: it might be fine but I can't tell for sure (since my config files are in /etc), so it could be worth a try. do you see pipewire-media-session complaining about config files when starting it manually?
<collares>
if you kill pipewire-media-session and start it manually (by just running the binary) it should talk with pipewire normally
<collares>
and you get to see the warning messages
<viric>
collares: no complaint at all anywhere besides rtkit. I watch journalctl -f
<viric>
collares: AH! pipewire-media-session tells me bluez5 support is not enabled
<viric>
Is it a build thing?
<collares>
viric: yeah, I think you're right, because in my case it does complain about a missing file if I point it to a wrong folder
<viric>
I mean "pipewire-media-session -h"
<collares>
viric: could be, but I thought bluez5 support was enabled by default, let me check
<viric>
so says it's nix recipe
<viric>
(oh nix-store -l non-$out doesn't work)
orivej has quit [Ping timeout: 240 seconds]
<viric>
ah no. Not locally built. grmbl.
respawn_ has quit [Quit: Leaving]
lunik1 has quit [Quit: :x]
<collares>
viric: it should be enabled by default. does your media-session.conf mention bluez5 inside "with-pulseaudio"? do you have a with-pulseaudio file in the config dir? and does your bluez-monitor.conf file contain rules?
<collares>
I think the with-pulseaudio file might be the problem
<collares>
you need an (empty) with-pulseaudio file inside media-session.d to enable pipewire-media-session to talk to pipewire-pulse
<viric>
media-session.d/with-pulseaudio is a blank file
<collares>
ah, good
ahmed_elgabri has quit [Ping timeout: 265 seconds]
ahmedelgabri has quit [Ping timeout: 260 seconds]
<viric>
collares: the hydra log for 0.3.22 says Run-time dependency bluez found: YES 5.55
<collares>
so, my current theory is that your config files (even though they're in pipewire-0.3.22) don't work with 0.3.22
<viric>
mh
<viric>
I got the same outcome with 0.3.21
<collares>
oh okay, then my theory's wrong :)
<viric>
:)
sterni has quit [Ping timeout: 240 seconds]
<viric>
ah! wait
<viric>
media-session.conf has #bluez5
<viric>
registered!
<viric>
aptx_hd, aptx, aac, sbc_xq, sbc
<collares>
great! I thought bluez5 was enabled by default before 0.3.22 (it was disabled by default back when I first started using it in november and got enabled)
emmanuel_erc has quit [Read error: Connection reset by peer]
<viric>
it complains about hsphfpd things
emmanuel_erc has joined #nixos
<viric>
Feb 27 16:40:37 cubo kernel: pipewire-media-[26763]: segfault at 10 ip 000055feda2d0ec6 sp r 4 in pipewire-media-session[55feda297000+4d000]
<collares>
yeah, but you can ignore that. pipewire gets compiled with three hfp backends (native, ofono, hsphfpd)
<collares>
so it'll complain about not having ofono or hsphfpd but it'll happily use the native-hfp backend
<viric>
it crashed
<collares>
and that's only for hfp (recording audio as well as listening)
sterni has joined #nixos
<collares>
viric: right, we have to debug that (but I still think it's not related to hsphfpd)
<viric>
I want 0.3.22 because of their "- Add HFP HF support"
davidv7_ has quit [Remote host closed the connection]
<viric>
I have a local checkout
<viric>
let me nix-shell..
<collares>
viric: can you try disabling some codecs, just to make sure it's not a problem there?
<viric>
collares: let's see if I learn something :)
supersandro2000 has quit [Disconnected by services]
supersandro20000 has joined #nixos
<collares>
okay, gdb will probably be the best idea, good luck :) if it's a codec problem you can uncomment the bluez5.codecs = [ ... ] line in bluez-monitor.conf and delete some codecs from the list
emmanuel_erc has quit [Read error: Connection reset by peer]
<collares>
sbc is the most basic one, so it's the least likely to cause problems
emmanuel_erc has joined #nixos
<viric>
pipewire-media-session is in 'examples' :)
<collares>
yeah, it's supposed to be a reference session manager, but at this point it's the most full-featured (there are others such as wireplumber)
<viric>
I'm using master... no crash :)
orivej has joined #nixos
afreak has quit [Remote host closed the connection]
<viric>
collares: in what process do codecs run? Media session?
davidv7 has joined #nixos
cartwright has joined #nixos
<viric>
collares: in the list of bluez registered paths, all are A2DP
wei97 has quit [Quit: Connection closed]
oxalica has quit [Quit: oxalica]
<collares>
viric: no, I think you're right, a codec failure would probably crash elsewhere
<viric>
collares: I could play music... it sounds like a can, so might be HFP/HSP
talvdav[m] has quit [Quit: Idle for 30+ days]
<collares>
yes, sounding like a can definitely means HSP/HFP without msbc
<viric>
pactl list says: Active Profile: headset-head-unit
<viric>
collares: I switched profile and it went nuts... 'SCO packet for unknown connection..' flood
<collares>
btw, you proabably want to enable msbc (in bluez-monitor.conf) if you use your microphone. obviously you still want A2DP to listen to stuff when not using the mic
<collares>
viric: oh, so it wasn't using HSP/HFP before and it still sounded like a can? weird
<viric>
it was it was
<viric>
But switching during playing made all go nuts
jophish has joined #nixos
<viric>
ok, a2dp-sink-sbc working
<viric>
is a2dp-sink = a2dp-sink-sbc?
<collares>
no, a2dp-sink tries all codecs (from "highest quality" to lowest, so it starts with ldac then aptx-hd then aptx then aac then sbc)
<collares>
I mean, unless you disable some of those codecs in your config file (if you do a2dp-sink won't try it, of course)
<viric>
collares: how can I get the codecs listed?
<collares>
what do you mean? the codecs your device supports or the names pipewire accepts?
work_ has quit [Quit: Connection closed for inactivity]
<viric>
collares: I only see in pactl list these profiles: a2dp-sink, headset-head-unit, a2dp-sink-sbc
<viric>
nothing about HSP/HFP codecs.
<collares>
oh yeah, there's no codec switching in HSP/HFP
<collares>
you can enable msbc in the config file, but it'll either use cvsd or msbc and that can't be changed at runtime
<viric>
neither shown what is used
<viric>
?
emmanuel_erc has quit [Read error: Connection reset by peer]
troydm has quit [Ping timeout: 240 seconds]
emmanuel_erc has joined #nixos
malook has joined #nixos
lunik1 has joined #nixos
<collares>
not in the sink name, but depending on your pipewire version it'll show up in pw-dump
<collares>
(if you're using master it will show up there when the HSP/HFP profile is active)
<viric>
how would I know what codecs my BT device supports?
<collares>
probably using avinfo
<viric>
ah never heard of it
<collares>
avinfo BLUETOOTH_DEVICE_MAC (but it has to be done either with the device connected or disconnected, I don't remember which but only one works)
<viric>
connected, not
<viric>
disconnected, either
<viric>
avinfo -i 00:02:3C:6F:E0:32
<siraben>
How do I write a makefile such that the Nix derivation doesn't need a custom build and install phase and non-Nix users build it properly?
<siraben>
`CC ?= cc, out ?= /usr` ?
<viric>
invalid argument
emmanuel_erc has quit [Read error: Connection reset by peer]
Izorkin has quit [Ping timeout: 272 seconds]
emmanuel_erc has joined #nixos
<collares>
viric: can't help you with that then, sorry :(
<viric>
I'm very new to bluez
<collares>
one final suggestion: if you want msbc (microphone support that only partially sounds like a can, like you would get if you used your headset in Windows or on your phone), make sure you use a very recent kernel version (5.10.18 or 5.11.1)
<collares>
otherwise you need custom patches to make msbc work reliably
Izorkin has joined #nixos
<viric>
My whole endeavour on pipewire is to get msbc (the good codec for handsfree)
<viric>
hm 5.4.99 here
<collares>
ah, awesome, that's how I got started with pipewire too
tokudan has quit [Quit: Dunno.]
<viric>
collares: did any of that work for you? :)
<collares>
you don't need 0.3.22 for that, 0.3.21 works fine
tokudan has joined #nixos
<collares>
yes, it's working fine
<collares>
but you do need a recent kernel (or a kernel patch)
<viric>
but NEWS from 0.3.22 says - Add HFP HF support, which I thought was the-thing
<viric>
I can get the latest 5.11 from master
<collares>
HFP HF is the "opposite" thing (think Linux on a car that wants to enable msbc support for cell phones connected to it), I believe. you want HFP AG support, which was available in 0.3.21 already
<viric>
collares: aaah
<viric>
collares: since I attached gdb it didn't crash anymore. meh
<collares>
lol
<viric>
well that was master though and not 0.3.22
<viric>
collares: ahh no idea pipewire could do the two HFP things
<collares>
all I know if that 0.3.21 works for my use case (which includes msbc support), but I don't know if 0.3.22 is better
emmanuel_erc has quit [Read error: Connection reset by peer]
<viric>
0.3.22 had the crash
tarruda3 has quit [Ping timeout: 276 seconds]
emmanuel_erc has joined #nixos
<collares>
viric: right, so a bunch of people that work on pipewire bluetooth support are paid by Collabora to work on Automotive Grade Linux
<viric>
0.3.22 crashes right away. meh
<collares>
so for them hfp hf support is as important as hfp ag
<viric>
neat
<viric>
collares: going to RTKit.... I couldn't find how pam_limits can be configured to authorize for RTKit
<viric>
how do you grant RTKit permission to users?
<collares>
anyway, I know current master has linux 5.10.18 and 5.11.1 but I don't know if that hit nixos-unstable yet (5.10.17 and 5.11 are not enough)
domogled has quit [Read error: Connection reset by peer]
domogled1 has joined #nixos
<viric>
ahh
<viric>
I'll use the git ref
emmanuel_erc has left #nixos [#nixos]
<collares>
and make sure to enable msbc in bluez-monitor.conf, it's not enabled by default
<collares>
i don't know about rtkit, sorry
<viric>
sure, it's not there by default
<viric>
rtkit wants some 'RT time > 0' as in slimits, but pam_limits cannot configure it
<viric>
maybe there is a specific pam module for it
emmanuel_erc has joined #nixos
domogled1 is now known as domogled
davidv7 has quit [Remote host closed the connection]
<emmanuel_erc>
hello there, how do I enable certain features in nix. I'm getting this eror http://ix.io/2R5u
<viric>
clickbait? emmanuel_erc
<emmanuel_erc>
I'm running arch linux. I'm guessing that I have to modify "~/.config/nixpkgs/config.nix"
<emmanuel_erc>
viric: What do you mean?
<gchristensen>
emmanuel_erc: you need to create a builder which is capable of building recursive nix
<emmanuel_erc>
I could use the same config file in ~/.config/nixpkgs/config.nix?
<emmanuel_erc>
@gchristensen
<gchristensen>
this is configuring the nix process itself, not nixpkgs' evaluation
<gchristensen>
if you're using the daemon, you need to reconfigure /etc/nix/nix.conf and restart the daemon. if you're not, ~/.config/nix/nix.conf I think
<viric>
collares: is msbc the same quality as sbc, for each channel?
ahmedelgabri has joined #nixos
ahmed_elgabri has joined #nixos
<Yaniel>
msbc is off by default since it's apparently not supported too well in some devices
<Yaniel>
how are you testing 0.3.22?
<viric>
collares: oh now avinfo worked... it only mentions two audio sinks somehow.
tarruda3 has joined #nixos
<viric>
Yaniel: I was testing the 'make run' frmo the repository in fact
<Yaniel>
you could try installing it "properly" from #114482
emmanuel_erc has quit [Read error: Connection reset by peer]
<Yaniel>
and if any one config file is wrong you can get a crash, an error in the journal or absolutely nothing happening
<collares>
viric: no, it's not the same quality. I guess technically it is because sbc supports several configurations, but what we think of when we head sbc is better than msbc sound quality
<collares>
viric: for that you'd need faststream support, but nothing supports that (a few gamer headsets and some headsets from creative do, and pipewire does not support it)
<viric>
collares: well they have to get low-latency likely with the same bandwidth
<collares>
yeah
<collares>
in my opinion msbc has acceptable quality, though (it's what everyone expects from bluetooth calls)
<viric>
I have a creative headset... and a Jabra conference thing
jonringer has joined #nixos
<viric>
collares: oh pipewire 0.3.21 doesn't find ~/.config/pipewire I guess
Dr8128 has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
<viric>
Bluetooth® 4.1, SBC , FastStream, (it says in advertisement)
<collares>
unless it's very old it should support msbc. when doing hfp negotiation the headset announces its capabilities, but I don't know of a good way of seeing that. it sounds like a can with bluez5.msbc-enabled = true in bluez-monitor.conf, right?
<collares>
(you need to restart pipewire-media-session after enabling it)
<collares>
viric: oh that's interesting! the only support I know for faststream comes from pali's infamous PulseAudio patches, I don't know how easy it is to use
ahmed_elgabri has quit [Ping timeout: 240 seconds]
<viric>
collares: would specs advertise msbc?
<viric>
(aside from sbc)
ahmedelgabri has quit [Ping timeout: 272 seconds]
<viric>
hm I see that for other headsets they do advertise msbc
<viric>
collares: ah right, avinfo showed faststream in sink source
<collares>
viric: if you do want to check I guess you can install hsphfpd (there's a nix package in the pulseaudio directory although it's not pulseaudio specific) and run it to see codec negotiation details
emmanuel_erc has quit [Read error: Connection reset by peer]
<collares>
(even if you're not planning on using hsphfpd for daily use)
emmanuel_erc has joined #nixos
<viric>
(What "pastebin" website has simply a form with textarea and show raw text? All is so full of superhtml and ads!)
supersandro20000 has quit [Read error: Connection reset by peer]
supersandro2000 has joined #nixos
<collares>
viric: I got to go, but feel free to add a comment in the pipewire status tracking issue #102547 if msbc does not work with the newest kernel. By the way, in that issue the nixos module config sample for enabling msbc (in the issue description) is in the wrong format, there's a comment of mine about it
<viric>
Yaniel: I understand that _ag is what is required to allow HFP/HSP headsets to connect.
<viric>
It might be a kernel thing, when it writes about SCO packets to unknown connection, simply
sterni has quit [Ping timeout: 272 seconds]
<viric>
I just don't have a 3rd to test now
davidv7 has joined #nixos
emmanuel_erc has quit [Read error: Connection reset by peer]
davidv7 has quit [Remote host closed the connection]
collares has joined #nixos
emmanuel_erc has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
<collares>
Yaniel: You asked for suggestions and I have one that might not be worth implementing: Many bluetooth adapters require a recent kernel. It could be worth adding a warning if an user enables msbc via the nixos module but uses an old kernel.
<collares>
(the versions that work reliably without patching are 5.10.(>= 18) and 5.11.(>= 1))
<collares>
(and of course anything after 5.12, but that doesn't exist yet)
<collares>
*require a recent kernel for msbc support
zupo has joined #nixos
sterni has joined #nixos
<Yaniel>
might as well, if there is an easy way to find out the kernel version
<l-as>
Can anyone explain to me how setting the `src` in a derivation in a flake to `self` works? e.g. `nix build dwarffs#src` just gives me the exact same result as `nix build dwarffs`. I don't get how the `src` can be the its own output.
<collares>
I guess it's enough to do versionAtLeast config.boot.kernelPackages.kernel.version "5.10.18", even though technically there's one release (5.11) that doesn't contain the patch
<shapr>
How do I see the derivation for a package? I'd like to update a nixpkgs-unstable package to the latest upstream version.
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<collares>
shapr: You can open 'nix repl' then load nixpkgs with ':l <nixpkgs>' and open the derivation in an editor with :e (for example, ':e pkgs.pipewire')
<shapr>
collares: I'll try that, thanks!
<collares>
This will open a read-only version of the derivation because it comes from the store, but you can then easily open it in your repo clone
<remexre>
yeah; I wrote a thing for Deno (which has a similar lockfile), and it works pretty well, in that the equiv of `cargo update' is all that's needed on changes to the equiv of `Cargo.lock
<remexre>
'
sangoma has joined #nixos
<remexre>
like, needing to generate + keep-up-to-date a separate nix file to list one's dependencies seems like a massive pain when it's already listing dependencies in a TOML file, with sha256 sums
rajivr has quit [Quit: Connection closed for inactivity]
<sterni>
how come the --pure-eval flag and setting are basically not documented despite being in nix stable?
zebrag has quit [Ping timeout: 276 seconds]
<f0x>
hmm, so what would one use nixos' containers.* for?
<sterni>
f0x: a common use case is if you have networking issues with a single interface, for example want to have multiple services that want to run on the same port
<sterni>
f0x: then you can containerize them and figure out the rest later™
<f0x>
ah hmm right, like throwing them all in a reverse proxy etc
<f0x>
is there performance overhead/other concerns?
respawn_ has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @xaverdh opened pull request #114582 → nixos/systemd-boot: open temporary file in binary mode to avoid ecoding issues → https://github.com/NixOS/nixpkgs/pull/114582
justanotheruser has quit [Ping timeout: 272 seconds]
<sterni>
f0x: well it's worse than not using containers, but should be relatively lightweight
<sterni>
systemd-nspawn just does namespacing, no virtualisation or such afaik
rjc29 has quit [Quit: Ping timeout (120 seconds)]
<f0x>
sterni: thanks :)
<f0x>
might be nice to separate the various (web)services in those
<joepie91>
I wouldn't bother using them if you can just control the ports that stuff runs on
<sterni>
well they also have their own process namespace, filesystem namespace etc
emmanuel_erc has quit [Read error: Connection reset by peer]
emmanuel_erc has joined #nixos
<kalbasit[m]>
<matthewcroughan "kalbasit: Hey! I'm trying to use"> You need to use subPackages which is a list of strings of paths to main.go of the commands you want to build.
fresheyeball has joined #nixos
jonringer has quit [Remote host closed the connection]
<redmp_>
it's stated in the nixops user guide introduction that you can use it to put a machine's IP on other machines, but there aren't details about how other than some hints in section 3.15
bokononi1t has joined #nixos
<manveru[m]>
redmp_: i think it was something like `config.networking.privateIPv4`
<simpson>
supersandro2000: Sorry for dropping the ball on https://github.com/NixOS/nixpkgs/pull/89787. I bumped the versions and changed stuff according to your feedback. Thanks for your hard work.
<pie_67>
nh2: ping? i saw you poking at the grub parts of nixos modules
<pie_67>
grub-install seems to call grub-mkimage, but i cant figure out how to override the -c argument / embbedded config it passes
<pie_67>
do you maybe have any ideas?
<f0x>
hmm, my /etx/nix/nix.conf contains "max-jobs = 0" and "builders = ssh://user@host", however when trying to morph build i get "but neither local builds ('--max-jobs') nor remote builds ('--builders') are enabled"
<f0x>
evidently it picks up the max-jobs from that config but not the builders?
<|beowulf|>
I'm trying to get my Lexmark C746dn printer to work with NixOS. I've had success with the ppd from openprinting.org on other Linux distros but no luck so far nix NixOS. I've the following in my /etc/nixos/configuration.nix: https://pastebot.rmdir.de/lKqVmfK1xV1rWd1Gr7Pplg
<|beowulf|>
There's a line in the ppd that says *cupsFilter: "application/vnd.cups-postscript 0 /usr/lib/cups/filter/fax-pnh-filter"
<nh2[m]>
<pie_67 "grub-install seems to call grub-"> pie_67: do you mean `pkgs/tools/misc/grub/pvgrub_image/default.nix`? I'm more familiar with `nixos/modules/system/boot/loader/grub/grub.nix` and `install-grub.pl`
Dr8128 has quit [Ping timeout: 256 seconds]
supersandro2000 has quit [Client Quit]
<pie_67>
nh2[m] its an implicit call in the grub-install binary. ive done some more research and i dont see a good way to do it because there doesnt seem to be any escape hatches and they directly call c code AFAICT. right now im looking at extraInstallCommands
<pie_67>
it looks like all i need to do is call mkimage to generate the efi image thing and then move the file to the efi directory
<pie_67>
i dont like it because its not integrated into the rest of the flow, but i _think_ it will be ok because all the other config stuff is done through the stuff nixos-install and whatever the other nixos stuff generates
<nh2[m]>
<pie_67 "nh2 its an implicit call in the "> pie_67: ah, I see, that call is internal in there. I didn't know that, so I cannot yet give any concrete tips for it, but let me know how you proceed with it1
<pie_67>
at the least there seems to be a -v argument that makes it dump what the command should look like: grub-mkimage --directory '/nix/store/m0y82s89gi77nw9mqxl1qranjxipqxa4-grub-2.04/lib/grub/x86_64-efi' --prefix '/oven6/root@/boot/grub' --output '/boot/grub/x86_64-efi/core.efi' --dtb '' --format 'x86_64-efi' --compression 'auto' --config
<nh2[m]>
fresheyeball: I guess you could invoke docker tooling to unpack the contents of the docker container, or write a systemd service that starts the docker container with arguments you like
<fresheyeball>
nh2[m]: can I invoke the container inside the build step of a derivation?
<fresheyeball>
I don't know how to provide an isolated docker
<fresheyeball>
I always do it with systemd
marusich has quit [Ping timeout: 240 seconds]
vidbina has joined #nixos
<pie_67>
these --help explanations are so useless..
<pie_67>
" -p, --prefix=DIR set prefix directory" Thanks whats a prefix directory
<nh2[m]>
fresheyeball: hmm, launching processes from the docker container during the build step might be tougher, given that docker uses a daemon based architecture to launch stuff. But some of the other docker running implementations (which I'm not very familiar with yet) might be able to do it during the build
<emmanuel_erc>
Hello there, I'm trying to use recursive nix and I'm running into issues. In the part of the build, where I recursively call nix-build, my script fails on this particular line "with builtins.trace (builtins.getEnv \"NIX_PATH\") (import <nixpkgs> {});"
inkbottle is now known as zebrag
<emmanuel_erc>
When I run the entire expression (that includes the line), my script fails on this line, but it is able to evaluate "builtins.getEnv \"NIX_PATH\"" and return a path in the nix-store.
<emmanuel_erc>
how is "import <nixpkgs> {}" possibly still failing?