<{^_^}>
tailscale/tailscale#631 (by danderson, 17 weeks ago, open): DNS reconfig fails when using systemd implementation of resolvconf
<bbigras>
oh. like ssh and login (pam?) works with sssd but not other apps like gdm?
<bbigras>
"Gitea v1.13.0 is released - Includes Kanban Issue Boards" uh. we mentioned gitea today.
<cirno-999>
noob question; what does 'collision between' (in nix store) really mean?
<energizer>
two files with the path
<energizer>
two files with the same path
<cirno-999>
mmm, still don't get it
<cirno-999>
collision between `/nix/store/6j3xqf34j7aqqbbir5lhfxrn1jpfimnm-libva-1.7.3/lib/libva.so' and `/nix/store/y4z73amcdggqinchni9fdz0w90v9fi4k-libva-2.8.0/lib/libva.so'
<cirno-999>
they have diff paths, no?
<energizer>
idk
<samueldr>
(hi, support is not in the off-topic channel :))
<energizer>
#nixos is the place for support tho
<samueldr>
oops, sorry for the echo
<cirno-999>
okay ;D
<cirno-999>
(was not really support as I don't have an issue, was just curious~)
<samueldr>
it has to do with the "profiles" stuff in Nix though
<samueldr>
profiles smushes together multiple derivations and it turns out there's a collision between two paths, here lib/libva.so
<abathur>
I really wish there was like a compendium of unique shebangs, I'm betting there are some cool ideas out there that are just hard to search for
<abathur>
so, in my shebang-lair, I'm trying to figure out how resholve should solomon the shebang-baby, and I'm starting to think: 1) it's an error to have a shebang, unless resholve writes it; 2) it's an error to *not* have a shebang, unless you tell resholve there shouldn't be a shebang; 3) resholve has options to strip off a shebang or specify a new interpreter by absolute path
<samueldr>
why would there be no shebang?
<samueldr>
could it simplify your job to remove the option of not having a shebang?
<samueldr>
resholve HAVING to write a shebang
<abathur>
well
<abathur>
for context, I'm thinking about resholve having to write the shebang as an annoying alternative to resholve trying to parse the existing shebang
<abathur>
i.e., it *may* be easier to match the first N #! lines, strip them, and write a new shebang per instruction than to try and parse the existing shebang and resholve it
<samueldr>
isn't a shebang supposed to *only* be the first line and first chars of the file?
<samueldr>
#! nix-shell is nix itself parsing that
<abathur>
right, and that's getting at my qualm
<samueldr>
nix-shell reads all the file
<abathur>
i.e., resholve trying to do something simple and consistent that squares with what a user might expect
<samueldr>
you can put that at the end of your file if you want
<abathur>
that's even more horrifying :)
<samueldr>
it could be part of a string!
<samueldr>
something like <<EOF\n#! nix-shell -p something\nEOF
<samueldr>
since, obviously, nix-shell doesn't know about the actual file format
<samueldr>
so if you try to make a generator script that uses nix-shell, to output something using nix-shell, it can be weird!
<abathur>
nod
<abathur>
I don't know how common the multiline shebang stuff is in practice
<abathur>
I know shlevy's project exists, and there's one in the spack ecosystem
<samueldr>
I don't either, what's more common is tools re-reading the top line shebang
<abathur>
I'm honestly not super concerned about the multiline
<abathur>
but yeah
<gchristensen>
I think only nix-shell does the multi-line thing... and it is not a good idea ... :x
<samueldr>
why isn't it a good idea?
<gchristensen>
well I should say instead that I don't think it is a good idea
<samueldr>
reproducibility-first, not a great idea, sure... and perfs-wise, it sucks
<samueldr>
but it's really convenient
<gchristensen>
it lets you inject arbitary code in to a script if you can control anything enough to put a \n in it
<samueldr>
and even about reproducibility, you can make it reproducible with just enough care by pinnng
<samueldr>
if you generate a script with user input, then execute it through nix-shell. right?
<gchristensen>
yea
<abathur>
my concern is avoiding having to do a full shell parse of the shebang to handle something like #!/usr/bin/env HOME=/awshucks letsgetweird
<gchristensen>
ack
<abathur>
so I'm thinking of strict/simple/dumb ways to get what the user needs (a correct shebang!) without having to be too smrt
<gchristensen>
maybe "oops don't do that" is thebest choice here
<abathur>
so I lean towards something like "make having a shebang an error (unless they specify a replacement shebang)", because then all resholve has to do is recognize leading #! lines
<ashkitten>
hmmm if steam runtime 2 (soldier) is using its own containerization method, i wonder if nixos will be able to just use that directly like other distros
matthewcroughan has joined #nixos-chat
<samueldr>
wasn't there a nod towards that in their gitlab recently?
<samueldr>
I seem to recall someone linking to that
lassulus has joined #nixos-chat
lassulus has quit [Ping timeout: 256 seconds]
patagonicus4 has joined #nixos-chat
patagonicus has quit [Ping timeout: 260 seconds]
patagonicus4 is now known as patagonicus
<ashkitten>
samueldr: i think so
<ashkitten>
does anyone know if steam input controller emulation outside of steam itself is functional?
<ashkitten>
i don't know if it's worked since we switched to bubblewrap for steamrt
lassulus has joined #nixos-chat
lassulus has quit [Ping timeout: 246 seconds]
lassulus has joined #nixos-chat
lassulus has quit [Ping timeout: 256 seconds]
lassulus has joined #nixos-chat
waleee-cl has quit [Quit: Connection closed for inactivity]
<srhb>
(Or does that acronym have more meanings...)
<bbigras>
haha
<sphalerite>
srhb: not that I know of. But I guess a lot of storage does make sense for IPFS stuff.
<srhb>
Sure. :P The marketing is just ridiculous.
<sphalerite>
I think it's mostly about search terms. I would be surprised if people do actually search for IPFS on aliexpress, but… people do often surprise me with their weirdness
<eyJhb>
It should be fairly doable with what I have at uni
<supersandro2000>
if you run more than one pr at once make sure to not pick ones that introduce new packages
<supersandro2000>
those will fail the nix-shell
lassulus has joined #nixos-chat
<eyJhb>
Damn, it seems like they have downgraded my instance, wth
<eyJhb>
I will make sure of that :) New packages generally also need more reviewing
FRidh has joined #nixos-chat
<eyJhb>
Well, I will find out in a moment
<srk>
eyJhb: that one looks fun, cache queries were like 7MiB. stopped it at [0/13246 built, 6/0/9377 copied (726.7/127212.8 MiB), 224.2/58541.1 MiB DL]
<srk>
infinisil: sort-of, it still won't show you the list upfront :)
da_dada has joined #nixos-chat
<thibm>
you have the 'r' key
<thibm>
Maybe you can configure it to show the list upfront
<srk>
maybe
<thibm>
I like the ability to increase/decrease verbosity while the command is running
<srk>
it's pretty nice feature of old nix-build as I often stop builds when the list is too long or contains weird deps
<vika_nezrimaya>
we have a ,random-pr commanhd?
<vika_nezrimaya>
wow
<vika_nezrimaya>
,help
<{^_^}>
Use `,` to list all commands, `,foo = Foo!` to define foo as "Foo!", `,foo =` to undefine it, `,foo` to output "Foo!", `,foo somebody` to send "Foo!" to the nick somebody
<vika_nezrimaya>
,
<{^_^}>
Special commands: find tell locate expand inclusive-language random-pr permalink - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries channels ping paste escape'' -a escape" library overlay ifd pinning botsnack profiling unfree ask which-channel xml imperative xy fancy-uninstall tofu wololo nixlang++ pointers cache pills commands home-manager runtimedeps thesis invite stateversion exec unstable matrixbridge
<thibm>
srk: Yeah do the same
<vika_nezrimaya>
,inclusive-language
<{^_^}>
Can only be used in PMs: ,inclusive-language #<channel> <user>: Anonymously send a PM to a user saying "Hello and welcome to #<channel> 👋. We'd appreciate when you address the whole channel using all inclusive words such as; everyone, all, folks, y'all, youz, or fellow humans. Thank you and enjoy your stay! <This is an anonymously sent, pre-written message. If you have any questions, feel free to ask in #nix-diversity>"
<eyJhb>
...... They resized my host from 32 cores and 256 GB ram to 2 cores and 16 GB ram, without notice
<LinuxHackerman>
"they"?
<infinisil>
LinuxHackerman: Hm?
<LinuxHackerman>
who are "they" in eyJhb's message :p
<eyJhb>
LinuxHackerman: University :p
<infinisil>
Ah
<LinuxHackerman>
very nice of them
<eyJhb>
I got access to a machine at uni we use for simulation and stuff, but suddenly they just... Resized it, and I cannot resize it back as I get a error
<srk>
eyJhb: other peoples computers :D
<eyJhb>
LinuxHackerman: yeah :p Always fun... Especially when we have a guidance meeting soon :p
<eyJhb>
srk: true... :(
<insep_>
i liked today's task
red[evilred] has quit [Quit: Idle timeout reached: 10800s]
<thibm>
Trying to setup a project with conda (to compare what I get compared to new Nix packages): it breaks.
<thibm>
at list it fails consistently on a Ubuntu box and a CentOS box :>
evalexpr has quit [Remote host closed the connection]
evalexpr has joined #nixos-chat
vika_nezrimaya has quit [Ping timeout: 256 seconds]
<thibm>
aerc seems nice though
<thibm>
I used it a bit, but not as my main mail client
<eyJhb>
thibm: I want to use it as a main client, but the version in nixpkgs is outdated, and there is a PR to update it. But it is having some issues I guess
<eyJhb>
Seems cool! As I do not want to deal with mutt....
<thibm>
Well that's one of the reasons I like Nix: it's (usually) easy to update the pakage yourself and/or use a non-yet-merged PR.
<gchristensen>
call for help: if anyone wants to help me / #nixos-infra with some problems with the builders, here are some issues that are fairly small and should be easy enough to work on: https://github.com/grahamc/packet-nix-builder/issues
<eyJhb>
Yeah, but there is ... Other stuff and things wrong. I am not sure why this would only affect NixOS however
<thibm>
eyJhb: Yeah it's pretty cool. Like it's doing tmux-like stuff: when you compose a mail, you have a few lines on the top (opened mailbox, To:, Subject:, From:) and your editor on the bottom
<eyJhb>
Yeah, I quite like it. And holy hell it was easy to get working + Go <3
<thibm>
It's a game changer compared to mutt which just invokes your editor (and you loose access to all the mails meanwhile)
<eyJhb>
gchristensen: cool! I will look at it if I get the time :D
<gchristensen>
of course :)
Jackneill has quit [Ping timeout: 260 seconds]
Jackneill has joined #nixos-chat
lassulus has quit [Quit: WeeChat 2.9]
mtr has joined #nixos-chat
lassulus has joined #nixos-chat
<cirno-999>
I love nixos~~
rnea has joined #nixos-chat
<supersandro2000>
ping
Jackneill has quit [Quit: Leaving]
<supersandro2000>
I think my IRC client died because I did git gc on the nix repo
<supersandro2000>
and create a builder scope? Like nix can use 8 GB and 4 cores but nothing more across those 5 commands?
<lukegb>
I mean, for that you probably want to override the unit file for the nix daemon
<supersandro2000>
I just limited the jobs amount
<supersandro2000>
RAM is mostly used by nix iteself
<supersandro2000>
and I would like to blacklist the building of tensorflow and torch
endformationage has joined #nixos-chat
<supersandro2000>
so I want a slice with the ressource limits and then start my nix review in a scope systemd-run
rnea has quit [Ping timeout: 260 seconds]
cjpbirkbeck has joined #nixos-chat
cjpbirkbeck has quit [Client Quit]
kalbasit has joined #nixos-chat
rajivr has quit [Quit: Connection closed for inactivity]
<pie_>
oh this is new to me <srk> there's also a openscad like QT gui for implicit - https://github.com/kliment/explicitcad/ (you can find nix files in a PR)
<f0x>
this board, it purrs and eyes light up if you stroke across the round pads correctly
<joepie91>
ha, nice
<srk>
<3
<f0x>
it definitely made tiny smd a lot more accessible, showing the basics of stenciling/solderpaste, then placing parts with tweezers, then simple reflow on a super cheap hotplate
<srk>
cool. I've built reflow owen from cheapo toaster owen few years ago
<f0x>
i've done some things on my own 12 eur hotplate now
<f0x>
also designed a whole bunch of boards, KiCad is great when you learned to use it
<srk>
yeah, this toaster owen was like 20 eur. +SSR, PT100 and F4 control board
<f0x>
and routing is way too fun of a puzzle hehe
<srk>
IRL planarity
<srk>
I've used Freerouting before but now I route most stuff by hand
<lovesegfault>
The fact that we both share >=90% of our config makes me really wonder whether a better way to have a shared "nix-sensible" exists
<lovesegfault>
or something like that
genevino has joined #nixos-chat
<bbigras>
There was someone a while ago who wanted to make easily sharable profiles with flakes. Something like, you want emacs, use this profile.
<bbigras>
I wonder if it was possible to use them with heavy customization.
<lovesegfault>
bbigras: I'll be posting comments with questions on that commit
<bbigras>
lovesegfault: 👍️
kalbasit_ has quit [Remote host closed the connection]
kalbasit has joined #nixos-chat
<bbigras>
some things might not make sense haha. I did move stuff around to avoid some infinite recursions. not really knowing why it worked after the change.
cole-h has joined #nixos-chat
<lovesegfault>
bbigras: does deploy-rs not have any secrets support?
<bbigras>
lovesegfault: I have no idea. I'll check
<lovesegfault>
The only thing I remember disliking was how things were organized
<bbigras>
how so?
<bbigras>
deploy-rs's blog post doesn't mention secrets. I opened an issue to ask.
<lovesegfault>
I don't recall, that's just my mental note
<lovesegfault>
Looking at it now, the idea of these user profiles seems kind of useless
<lovesegfault>
more likely than not users want their own configs
<lovesegfault>
bbigras: how is nixUnstable working for you?
<lovesegfault>
When I tried it a while back it was very broken
<bbigras>
yeah. maybe some good default could be nice though. For things like emacs, maybe it could be nice to be able to say "I want emacs with rust support" and then you only tweak some specific settings.
<bbigras>
lovesegfault: how does it break? when building nix stuff or some apps doesn't work well?
<bbigras>
I'm only using it for my devShell, right? I think I didn't use it much. I only deployed to my laptop yet. and only used it for basic thing like browsing.
<bbigras>
I had problems running some command like `nix run` but it was either a problem with my prompt (starship) or fish. running it with bash was fine.
<cole-h>
lovesegfault: depoy-rs is used in conjunction with their vault.nix module, IIRC
<cole-h>
I'm interested in running Vault (so I can partake in gchristensen's exodus from GPG), but haven't had the time to (investigate how to) set it up
<bbigras>
those "secrets" are strings like for passwords right? In my case I also want secrets nix config. Like import a list of hostnames for `networking.hosts` that I don't want public.
<cole-h>
I think Vault has a "mountpoint" that you set up. You can add arbitrary files to it, so you could potentially `import "/mnt/vault/secret/hostnames.nix"`
<eyJhb>
thibm: Are you ready?
<bbigras>
cole-h: nice, thanks
<bbigras>
Any way to use something like `import "/mnt/vault/secret/hostnames.nix"` with flakes without having to `git add` it?
<cole-h>
As long as it's a string and not a path, I think that should just work...
<eyJhb>
thibm: https://i.imgur.com/833uPv4.jpg I am the OnePlus One king! Received all four, three of them works the last one has a dead monitor :D So now I have five in total!
<cole-h>
Let me verify
<lovesegfault>
bbigras: I think copying closures was broken
<lovesegfault>
it was a little bit ago
<lovesegfault>
cole-h: Oh, nice!
<bbigras>
what does "copying closures" mean?
<lovesegfault>
nix-copy-closure
<lovesegfault>
but in this case I think it was `nix copy` that wasn't working, for whatever reason
<lovesegfault>
I didn't bother debugging it, just went back to stable nix
<bbigras>
I didn't use it directly but maybe deploy-rs did (I guess it could push with ssh)
<bbigras>
hmm `string '../../secrets/at_home.nix' doesn't represent an absolute path`
<lovesegfault>
I use it all the time to copy a closure to a beefy server, build it, then copying the outputs back
<cole-h>
bbigras: Darn, doesn't work.
<cole-h>
bbigras: `./..`
<bbigras>
cole-h: oh 😭
<clever>
> ../../secrets/at_home.nix
<{^_^}>
/var/lib/nixbot/secrets/at_home.nix
<clever>
bbigras: paths work best when not quoted
<infinisil>
I know people prefer https://framadate.org/ because it's open source, but I'll continue using https://www.when2meet.com/ because its UX is just so much better, and I haven't found anything comparable that's open source
<bbigras>
clever: but I'm trying to fool nix flakes. I want those files to be used even if they are not in the git index.
<infinisil>
risson: (not that you need to change your meeting poll, but for info ^)
<cole-h>
bbigras: Yeah, guess that won't really work with flakes (since it has to copy all referenced paths into the store, and flakes cannot reference paths outside the flake...)
<bbigras>
ah. thanks
<bbigras>
I wonder if I could make an empty flake and override it on my desktop with `nix flake check --override-input` to make it point to my real secret stuff.
<bbigras>
No idea if that flag is doing what I think it does.
<risson>
infinisil: I'd prefer to have my own service hosted, but haven't gotten around to host it
<cole-h>
bbigras: I think --override-input also updates the lock
<bbigras>
cole-h: thanks
<bbigras>
oh `nix flake check --impure` tries to include my file
<bbigras>
I used an absolute path
<infinisil>
risson: Is there something ready to selfhost? Or would you create your own?
<bbigras>
is there a magic nix function to get the current directory as an absolute path?
<infinisil>
bbigras: ./
<infinisil>
> ./.
<{^_^}>
/var/lib/nixbot/state/nixpkgs
<risson>
I think I saw some interesting solutions for this
<risson>
I won't go down the rabbit hole of writing something like this though
<infinisil>
Well if you're interested from where Nix is executed, this is going to be impure, but you could use builtins.getEnv "PWD" then
<bbigras>
infinisil: oh like cole-h suggested. thanks
<bbigras>
oh it tries to import `/nix/store/h6riyn8rdzkvj3grhj01hngnpsm82lg4-source/secrets/at_home.nix` but those files are not indexed.
<cole-h>
Yeah
<eyJhb>
samueldr: yeah, sadly. Won't that work?
<eyJhb>
I almost got all of them to work btw.!
<bbigras>
`builtins.getEnv "PWD" + "/secrets/at_home.nix"` does work. yay \o/
<samueldr>
eyJhb: it might work, but there's no binary cache
<eyJhb>
samueldr: But I have five OnePlus Ones now, I will make my own buildfarm!
<eyJhb>
\s
<samueldr>
eyJhb: good luck linking firefox on whatever ram they have :)
<samueldr>
(that's another issue with armv7)
<eyJhb>
I have curl ! But yeah....
<eyJhb>
Are you saying that even if I get ff compiled, it would not run?
<samueldr>
firefox is a big boi, with so much stuff built; IIRC the problem is that 32 bit of address space is not enough to fit the compilation unit in memory to link together all the build artifacts
<samueldr>
so it might build most of the way, but fail at the end
<eyJhb>
How uncommon is the armv7 nowadays for android?
<samueldr>
for new devices, extremely as it's now mandated to be 64 bit IIRC
<samueldr>
for new "not off-brand devices"
<samueldr>
but you could still find some aarch64 devices with armv7l builds of android up to last year
<eyJhb>
I think my main issue might be, that at some point apps will not work for my OPO, as there is a lot of SO atm...
<eyJhb>
So in a couple of years, I might be really really forced to change :(
<samueldr>
most likely
<samueldr>
I figure though you're using LineageOS, right?
<samueldr>
that at least updates the API level of Android
<eyJhb>
Yeah I am, but that doesn't give me an advantage regarding apps. Yeah!
<eyJhb>
Else I would have thrown it away
<samueldr>
I don't think 64 bit for apps will be mandatory at the same time as it is to get the play store for OEMs
<samueldr>
I would guesstimate a couple (2-3) years after maybe
<samueldr>
I mean, 64 bit only
<eyJhb>
Wondering if I should spend the 18 EUR on a new battery
<eyJhb>
Hmm. that seems OK, would be nice if it rounds the 10 years mark first, just for fun
<samueldr>
gchristensen: I don't know what that means
<lovesegfault>
I use an AMD GPU over USB-C (Razer Core X) and it works wondefully well, even hotplug works
Dotz0cat has joined #nixos-chat
<samueldr>
lovesegfault: thunderbolt, I gather; on an AMD cpu?
<ldlework>
As I speak into my mic, if I just go AHHHHHHHHHHHHHHHHHHHHHHHHHHHHH I instead get AHHHhhhh..hhhhHHHHhhh...hhhHHHHhh..
<ldlework>
what in gods name would cause that?!
<samueldr>
ghosts
<ldlework>
holy shit i'm triggered
<energizer>
what amd graphics driver do you use?
<lovesegfault>
samueldr: thunderbolt, yeah
<energizer>
er, what amd graphics driver do yall use?
<samueldr>
(I hate being that guy, but type-c is only a connector :))
<samueldr>
most (all) AMD-toting laptops I've seen doesn't have thunderbolt, at best it's clearly labeled that they support eDP alternate mode, and power delivery on which ports
<samueldr>
sometimes it's not even labeled in the specs!
<lovesegfault>
energizer: I think I have a 5600XT
<lovesegfault>
running the drivers in the kernel
<danderson>
thunderbolt on AMD is brand spanking new, so I'm not surprised to see it on very recent laptops... But yeah, USB-C is very annoyingly difficult to parse into "what can I actually _do_"
<samueldr>
on recent AMD laptops I haven't seen it yet :
<samueldr>
:)*
<danderson>
and I use the default open source "radeon" driver, which works fine with my Vega 8 iGPU
<danderson>
In general, the radeon driver is pretty great. For some uses, you have to install the "radeon pro" proprietary driver, and I'm told that it's a bit garbage
<danderson>
but for regular "I want a screen with pixels and also games", the OSS radeon driver is great :)
<lovesegfault>
Yup, amdgpu has worked flawlessly for me
<lovesegfault>
I had some issues when I first set this up, but a kernel update fixed it some time ago
<danderson>
yeah, typically a brand new GPU needs a couple months of driver updates before it's rock solid
<danderson>
but it happens very dependably
<joepie91>
AMD GPUs++
<joepie91>
very happy about their Linux support
<ldlework>
It's audio going to the Pulse Audio Jack source that gets the sine-wave-volume effect.
<energizer>
resume-from-suspend fails like 80% of the time for me, with amdgpu
<ldlework>
Doesn't matter what device it comes from.
<ldlework>
If I pipe audio directly from the device to the output device the audio is clear.
<ldlework>
I don't know enough about the Pulse Audio Jack Source to ever fix this.
<energizer>
fwiw there is #pulseaudio
<lovesegfault>
danderson: did you catch my conversation with bbigras the other day about magic DNS?
<danderson>
lovesegfault: I didn't, what's up?
<lovesegfault>
danderson: neither of us seem to be able to get it to work with systemd-resolved or unbound
<lovesegfault>
Is the process just to point unbound/systemd-resolved to 100.100.100.100 as the sole DNS server?