gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<bqv> sphalerite: I got an acer r11, it seems silly to keep both
<genevino> pie_: well most often the companies i've seen that consider theirselves "agile" didn't seem like companies that care about the afterlife of someone's position.
<energizer> is there a cli tool that'll play musical notes like `play-note A4`
<cole-h> Shouldn't be too hard to program, if it doesn't exist, considering all those notes are at a specified Hz (AFAIR)
noonien has quit [Quit: Connection closed for inactivity]
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
<infinisil> energizer: Not a CLI, but I know that pulseeffects can play sine waves by frequency
<energizer> `ffmpeg -f lavfi -i "sine=frequency=110:duration=5" out.wav` is getting there
<infinisil> Nice
<samueldr> neat, it took me 50 minutes to make a new port for a device (with a known SoC, so easier) with the new tool I spent the whole afternoon writing to help porting
<cole-h> samueldr++ Congrats! :D
<{^_^}> samueldr's karma got increased to 274
<samueldr> in theory, it should help a user to get started on a port when another device has the same SoC
<samueldr> (because you can compare the kernel config)
<samueldr> though I sure am cheating with the amount of prior knowledge I have
<aleph-> Neat, what tool/soc?
<samueldr> SoC, really not specific, just helps because generally the OEM are starting from the same tree as any other OEM for the same SoC
<samueldr> so they share quirks
<samueldr> tool: yet to be published, working on that
<samueldr> that
<drakonis> ooooo
<drakonis> nice
<drakonis> re: missing data points
<drakonis> you can get a/b partition without fastboot
<drakonis> there's a prop for that
<samueldr> drakonis: which?
<samueldr> I tried to look into it but couldn't find it in the data
<samueldr> (I'm glad to be wrong though, if there really is)
<drakonis> magisk detects it
<samueldr> magisk might be looking at the partitions
<drakonis> getprop ro.build.ab_update
* samueldr looks
<drakonis> then there's system-as-root, which my phone is such
<drakonis> but it isnt a/b sadly
<samueldr> yeah, that one is a bit more complex
<drakonis> getprop ro.build.system_root_image
<drakonis> also exists it seems
rajivr has joined #nixos-chat
<samueldr> oh, thanks
<samueldr> those two will really help
<samueldr> from my data set it looks like I have everything needed with those two
<drakonis> there's also the prop for android 11's new partition scheme prop
<samueldr> that shouldn't be an issue for the project AFAIK
<drakonis> sysprop ro.boot.super_partition
<drakonis> that one's wonderful and i wish i had support for it on my phone
<samueldr> we're most likely going to completely ignore dynamic partitions in the end
<drakonis> and for initram, you might want to check magisk's install script
<samueldr> and just use the "super partition" as one of the LVM volumes to aggregate
<drakonis> it does detection there
<samueldr> hm?
<samueldr> to detect what?
<drakonis> Bad detection of "boot as recovery"
<drakonis> this one's less relevant
<samueldr> yeah, AFAIK false positive wouldn't be an issue with Mobile NixOS, only false negative is
<samueldr> as false negative prevents booting
<drakonis> hm, i see
<samueldr> and the port that was made with it https://github.com/NixOS/mobile-nixos/pull/205
<{^_^}> mobile-nixos#205 (by samueldr, 19 seconds ago, open): sony-pioneer: init
<drakonis> wonderful.
<drakonis> i'm a bit curious now, is it a one way street to install mobile-nixos?
<drakonis> i was hoping to sell my current phone after the new one arrives
<drakonis> but i dont know if its save to test out mobile-nixos with it
<drakonis> safe
<samueldr> it _should_ be safe
<samueldr> as safe as another custom ROM
<samueldr> or playing around with a rooted device
<drakonis> wonderful
<samueldr> so yes, you can brick
<drakonis> not so wonderful
<samueldr> if e.g. you _change_ the partitions
<samueldr> but bricking is hard
<drakonis> i set up android 11 with a custom rom and boy it is too dangerously janky
<drakonis> for my tastes
<drakonis> its aosp android 11 and its behaving weirdly
<samueldr> so yeah, with the last data points, it should be "basically flawless" for the important parts
<drakonis> cool
<samueldr> there's the rndis bit that I'd like to detect better, but I don't have enough devices to conclusively look
<drakonis> i have only one device right now, so i'm not game
<drakonis> or i'd toss mine into the pot
<samueldr> note that I did say "there's a chance to brick", but if you stay on the happy path and don't try to do anything funny it should be safe
<samueldr> same rules as with Android
<samueldr> don't touch the partition scheme
<samueldr> don't touch the wrong partitions
<samueldr> especially the bootloader :)
<drakonis> i dont do that
<drakonis> never!
<samueldr> and good for you, as it's mostly a guaranteed brick
<drakonis> well i'd never!
<drakonis> i dont have enough disposable income to be a risk taker
<samueldr> though there's sometimes fun devices
<samueldr> like oneplus-oneplus3 with an easy-to-get qualcomm programmer
<samueldr> you can brick it and re-program it [allegedly]
<samueldr> I never tried bricking it, but I did try re-programming it
<drakonis> that's amazing
<drakonis> its basically a "I'M INVINCIBLE" situation
<samueldr> well, not from doing something like telling the kernel it can send too much voltage to a component through device trees, or from misuse
<samueldr> but yes
<samueldr> from there you could change enough of the partition scheme that it wouldn't be recognizable as an android device, except for its bootloader
evanjs has quit [Ping timeout: 260 seconds]
evanjs has joined #nixos-chat
<drakonis> oh yes
<drakonis> recover from anything except hardware damage
waleee-cl has quit [Quit: Connection closed for inactivity]
<sphalerite> energizer: there's also beep
colemickens1 has joined #nixos-chat
<colemickens1> speaking of that... https://xnux.eu/log/#017
<{^_^}> https://github.com/NixOS/nixpkgs/pull/17 (by viric, 8 years ago, merged): Fixing npm and updating nodejs to 0.6.19
<colemickens1> (maybe was already posted here or in aarch64)
<samueldr> colemickens1: you grew a 1
<colemickens1> gross
colemickens1 is now known as colemckens
colemckens is now known as colemickens
<samueldr> heh
<samueldr> yeah, saw that, and since I'm not _developing_ the kernel on the pinephone I don't feel this is directed _at_ me, but still I'm concerned and was already working on rebasing on megi's work
<samueldr> since it works great
Jackneill has quit [Ping timeout: 256 seconds]
Jackneill has joined #nixos-chat
cole-h has quit [Ping timeout: 240 seconds]
<eyJhb> *sigh* having to tell people not to sit next to you in a lecture is harsh, even if just following guidelines from the University
V has quit [Quit: V]
<eyJhb> etu tazjin Do you guys use Fish + tmpfs?
V has joined #nixos-chat
<etu> eyJhb: yes
<eyJhb> How have you made your history persistent?
<etu> symlink
<eyJhb> By just having a fish_history?
<eyJhb> I keep getting file is in the way in many of my builds when doing that
<eyJhb> Hoping it sticks now! Hoped you had some awesome techy OP method etu ;)
<etu> eyJhb: .local/share/fish
<eyJhb> Just the whole folder?
<eyJhb> You are a mad man etu ! :o
<etu> :D
<etu> So much state!
<eyJhb> Did you hear about my NOEXEC / adventure? With /nix being the exception?
<eyJhb> :p
<etu> eyJhb: Nope
<eyJhb> Things are broken. Atm. Ranger + Dropbox does not work :p
<eyJhb> Or, just scope.sh in ranger
<eyJhb> And everything in Dropbox
<etu> hmm, noexec is a good idea
<etu> I like that
<eyJhb> gchristensen: that made me thing of it
<eyJhb> think*
<eyJhb> Remember to do it in /tmp etc. as well
<eyJhb> Or rather, he did it and I followed. I didn't really think and / NOEXEC was a sideeffect of not thinking that it affected my $HOME
<talyz> eyJhb: I bind mount the .local/share/fish dir (with impermanence ;) which works well as long as it's done early enough on boot
tilpner has joined #nixos-chat
__monty__ has joined #nixos-chat
<genevino> energizer: there's "bashtuner", "tuneroid" and "tunescope".
cjpbirkb1 has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 240 seconds]
cjpbirkb1 has quit [Quit: Goodbye, take care]
waleee-cl has joined #nixos-chat
<bqv> those of you who have linux phones, what is it about them that everyone says they're not usable as daily drivers?
<bqv> cause I've just got a pinephone and it's awesome
<bqv> and i'm trying to think of reasons why it isn't awesome
<abathur> energizer: I saw your musical note question yesterday and it triggered nothing, but I saw it again this morning and thought there's probably tool in the livecoding community that either already does this, or could be wired up to? (but I'm not personally familiar w/ their toolchains...)
<bqv> i'm drawing blanks
<bqv> lack of apps, maybe, but as long as there's *something* for most use-cases, it's no worse than windows vs linux
<eyJhb> bqv: the ones I have heard cannot receive calls, etc.
<eyJhb> ALSO! What do y'all use for sound on your systems? Like for automatically swiching between different inputs? E.g. on each boot in my docking station, I have to chose audio out from my Laptop instead of dock
<bqv> eyJhb: that would definitely be a dealbreaker... I think mine can, though? I haven't put a sim in yet, maybe i should, to test
<eyJhb> Go go bqv
<bqv> slowness could be a good reason, too, tbh, but i could live with that
<bqv> for the bonus of having straight up linux, and no google, and open firmware
<eyJhb> Do you hate Google enough to remove it from some software where I really need it removed bqv ? <3
<eyJhb> ,locate bin nc
<{^_^}> Found in packages: nedit, toybox, busybox, netcat-gnu, libressl.nc, libressl_2_9.nc
<bqv> eyJhb: remove it?
<bqv> i mean i just usually avoid it as far as possible
<bqv> i haven't gone so far as to reverse engineer anything
<eyJhb> :p I just have a bunch of CTF challenges where I need to remove the Google Dependency from it
<bqv> i think i've only compromised with using GCM
<eyJhb> :p
<bqv> like, make it so you don't need to use google? lol
<bqv> eyJhb: well, phone was slow to ring, but it rang
<bqv> talking in a matrix room, seems the biggest issues are like i said, it being slow and unpolished, and it missing important apps like banking stuff, because anbox isn't perfect yet
Jackneill has quit [Ping timeout: 256 seconds]
Jackneill has joined #nixos-chat
<sphalerite> bqv: which OS are you running on it?
cole-h has joined #nixos-chat
endformationage has joined #nixos-chat
slack1256 has joined #nixos-chat
<pie_> eyJhb: bqv: re: receiving calls: i realized the other day, what if you can just use some kind of voip thing to receive?
<pie_> depends on internet tho i guess
<pie_> dunno if lte works with those
slack1256 has quit [Remote host closed the connection]
<bqv> sphalerite: mobian
<bqv> pie_: i dunno, would work, but calls seem to work for me so i don't really have that problem
<eyJhb> Wouldn't depend on it
<eyJhb> Also, I should get a new phone...
<eyJhb> But I really just want to wait untill they release a phone with tested 5G support
<bqv> i want to try anbox now
<bqv> see if it works for monzo
<bqv> cause if it does then i have no problems with using this as a daily driver
<eyJhb> cpp!
<bqv> there's nothing i haven't already given up dependency on
<eyJhb> I still want NixAndroid
<eyJhb> Hack the bootloader to have a GRUB lige menu, etc.
<eyJhb> :D
<eyJhb> like**
<bqv> it's happening, i think sam is just intentionally taking the long route, so it'll be ready in a few years
<eyJhb> That is NixOS on a phone
f0x has quit [Ping timeout: 260 seconds]
joepie91 has quit [Ping timeout: 260 seconds]
<eyJhb> Not Nix to manage your Android phone :p
<bqv> oh
<bqv> oh god
<bqv> why
<eyJhb> As far as I can tell
<eyJhb> BECAUSE!
<eyJhb> Reasons
<bqv> "your kink is not my kink and that is ok"
<eyJhb> Also, because why not? :(
<eyJhb> I should really have a crontab, something that alerts me when the unstable channel has advanced beyond my active one
ky0ko has quit [Quit: killed]
<pie_> bqv: well good for you i guess :D
ky0ko has joined #nixos-chat
<infinisil> Idea for CI: Try deleting any single line. If the build/tests fail, CI passes. If it still works, you have either found a line that's not necessary or you don't have full test coverage
<pie_> :D
<samueldr> chaos monkey, but for your code
<samueldr> I hate it
<samueldr> I love it
<infinisil> Should probably use "Syntax construct" rather than a line, such that empty lines don't trigger it
<infinisil> Though that's not as easy to implement
rajivr has quit [Quit: Connection closed for inactivity]
<bqv> pie_: i think it would somewhat defeat the point of phones though, because they're meant to work in almost all low-signal conditions, but if you rely on LTE then you're a bit less robust. I wouldn't rely on that, e.g.
<__monty__> infinisil: Or you've found a line that's only there for performance reasons.
<infinisil> Or it starts trying to remove test cases themselves lol
<infinisil> Can't break a build if you don't build anything!
cjpbirkbeck has joined #nixos-chat
<pie_> bqv: that was my phirst thought yes
<energizer> abathur: looks cool, thanks
lejonet has quit [Ping timeout: 240 seconds]
<eyJhb> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<eyJhb> ... I really wish it was easier to add a node.js package to Nix
<cole-h> nodepackages is kinda whack
<eyJhb> Yeah :/
<eyJhb> And without ethernet in build, I cannot just hack and slash
<eyJhb> I just need `gulp-concat-css`
<cole-h> It's why I copied the Iosevka derivation into my config, so I could update it whenever I want to...
<eyJhb> cole-h: does it make it easier?
<cole-h> When coupled with node2nix, yes, IMO.
<eyJhb> Ahh, makes sense
<eyJhb> I guess I will just live without for the time being
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos-chat
<bqv> woah, home-manager is nix-community now?
<drakonis> yes!
<drakonis> has been for a little bit
<drakonis> two weeks i think
<bqv> so this is what happens when i cut myself off from chats
<bqv> completely missed that
<{^_^}> openzfs/zfs#10982 (by cheesycod, 2 days ago, open): FATAL: modpost: GPL-incompatible module zzstd.ko uses GPL-only symbol 'mutex_lock_nested'
<drakonis> sweet
<drakonis> more symbols to patch
<cole-h> Cat and mouse game zzz
<drakonis> yes
__Sander__ has joined #nixos-chat
<infinisil> As much as I want to love emacs, I think I should just embrace vim
<drakonis> less overhead?
<infinisil> I guess mainly because emacs doesn't work well with vim keybindings
<infinisil> As much as I like the concept of a text editor being more than a terminal, I don't want to give up my vim keybindings
<neeasade> liar
<infinisil> And fight every emacs package out there doing so
<cole-h> What do you mean, "emacs doesn't work well with vim keybindings"
<cole-h> infinisil: Maybe it's a bit too heavy, but have you tried something like doom emacs?
<neeasade> yeah that's what summoned me here. the one concession I'll make is macros
<infinisil> vim keybindings are just a second-class citizen. When you want to use an emacs package, it's going to have emacs keybindings
<cole-h> OK, that's fair.
<infinisil> And maybe, if you're lucky, vim keybindings somewhat work
<infinisil> If you look up commands for emacs online, it's going to be emacs ones
<neeasade> I think at somepoint I "embraced the suck" -- rather I just pull in stuff as I need it, bind what I like in vim bindings, and eventually™ muscle memory makes it all fade
<neeasade> plus there have been monumental community efforts
<neeasade> it's totally reasonable to feel the way you do, though
<infinisil> Yeah I tried out evil-collection, but I still had some cases where it didn't work
<infinisil> And as somebody not knowing elisp very well, I can't even debug things
<infinisil> I guess that problem also exists with vim though
<infinisil> Oh, doesn't kakoune use shell scripts for plugins?
<{^_^}> nix#3959 (by Ericson2314, 4 weeks ago, open): WIP: Derivations can output "text-hashed" data --- contains many other PRs
<drakonis> this PR
<drakonis> dear god
<neeasade> I think that's the hill emacs users eventually must grok - all the introspection/figuring out WTF is going on and piecing together a "you-ness"
<cole-h> I like projectile and the workspaces packages, so I use doom emacs when I'm well and truly hacking on something. But I still use nvim for making quick edits or browsing a file with vim bindings/
<cole-h> s@/@.@
<cole-h> I wonder: does neovim have daemon infra yet? I think that's one of the main reasons I switched to emacs: after the first frame is created, it's almost instantaneous to create another.
<cole-h> Back when I had loads of vim addons, it was pretty slow startup
<cole-h> (Or maybe related to running off spinning rust)
<__monty__> Isn't there lazy loading of vim plugins?
<__monty__> And I think I've had bug reports due to nvim as a daemon.
<__monty__> Not sure about either though.
f0x has joined #nixos-chat
<cole-h> :help remote does turn up something, but nvim needs to be compiled with +clientserver.
enick_594 has joined #nixos-chat
<cole-h> The biggest thing I miss from nvim is the undo tree.
<__monty__> Vim's undo is nice, yeah.
lejonet has joined #nixos-chat
<bqv> a brief bit of web browsing has made it quite clear how slow the pinephone really is... yikes
<__monty__> That bad?
<bqv> upsettingly slow
<bqv> 2G ram trying to run firefox/gnome-web though, somewhat understandable
<samueldr> do you know if it was all software rendering?
<bqv> not the foggiest
<samueldr> I still haven't looked at figuring it all out for hardware rendering
<samueldr> but it could make quite a difference
<cole-h> infinisil: You're making me want to hack on my nvim config again... :P
__monty__ has quit [Quit: leaving]
enick_594 has joined #nixos-chat
enick_594 has joined #nixos-chat
enick_594 has quit [Changing host]
enick_594 is now known as joepie91
__Sander__ has quit [Quit: Konversation terminated!]
<drakonis> weeeeeeeeel
<drakonis> welllllllllllllll
<drakonis> snapdragon 660 support getting upstreamed
<drakonis> my phone should be able to run vanilla linux
<drakonis> cant wait for pmos
<samueldr> 845 too has some mainline activity going
<joepie91> so I've been reverse-engineering a custom asset packing format of a game so that I can try to fix its shaders and make it work under WINE
<joepie91> how is everyone elses night going lol
<samueldr> well, can't say for _this_ night as it's creeping up slowly
<samueldr> but last night I made a new port to Mobile NixOS in 50 minutes thanks to a tool I had spent the day writing
<joepie91> (the reverse engineering was successful: https://gist.github.com/joepie91/5dd1110e18266703bf52bdf55b93924e )
<joepie91> samueldr: oh, nice :D
<joepie91> automation++
<samueldr> yes, though the 50 minutes surely was helped by existing knowledge and an SoC I was already acquainted with
<joepie91> even still
<samueldr> but that's 50 minutes from generation to boot, that includes time for downloads, builds
<samueldr> I'd really like to try other ports with it, but I'm all out of phones now
<joepie91> lol
<samueldr> I'm left with one without a working port, and it's not something the autoport would help with :(
<joepie91> software port or physical port :P
<samueldr> it has one physical port only
<samueldr> the downstream SDM845 from qualcomm doesn't play nice with what we need for the time being
<samueldr> so it works, but no display
<samueldr> until I add support for DRM
<joepie91> aw
<samueldr> (the good kind of DRM
<joepie91> yeah, the direct rendering mmmmmmmmmmmmanager?
<samueldr> yep
<samueldr> qualcomm (I assume) has broken / not implemented classic FB for SDM845, and broken / not implemented fbdev emulation
<samueldr> since they are not needed for android
<samueldr> and I haven't found a tree from an SDM845 that looked like the gpu driver code was different enough
<samueldr> across different oems
<samueldr> so that's why I assume it's from the source
<drakonis> it is pleasant.
<samueldr> though since there's apparently good work coming to mainline about SDM845, I'm less concerned, and will check it back out later with mainline
<samueldr> apparently wifi on sdm845 even works!
* colemickens looks around
<samueldr> colemickens: yes, including pixel 3 AFAICT
<colemickens> "Generation done successfully in /home/cole/code/autoport/google-blueline/"
<samueldr> it's likely to give you a file similar to what you had
<colemickens> That's okay, I assumed it might, still a place to start, I'll rebase my stuff on top of it and see where I land again.
<colemickens> I found another Google Pixel 3 for $175, just need to talk my dad into shipping it to me.
<samueldr> colemickens: I know that rndis works
<samueldr> so if it hangs it should be fine
<samueldr> you can look around
<samueldr> but DRM is the main next challenge
<colemickens> RNDIS makes me think of NDISwrapper
<samueldr> that's because it's related
<samueldr> >> Remote Network Driver Interface Specification (RNDIS) is a Microsoft proprietary protocol used mostly on top of USB. It provides a virtual Ethernet
<samueldr> >> The Network Driver Interface Specification (NDIS) is an application programming interface (API) for network interface controllers (NICs).
<joepie91> samueldr: sounds like a fairly typical "progress is happening despite vendors"...
<samueldr> yes
<joepie91> also, outcome of my reverse engineering: https://gist.github.com/joepie91/f4fa61f7478642a3dcd944d585eddb72
<joepie91> two mystery values left
<joepie91> might have to break out ghidra, I see no obvious purpose for them
nullheroes has joined #nixos-chat