gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
tilpner_ has joined #nixos-chat
tilpner has quit [Ping timeout: 260 seconds]
tilpner_ is now known as tilpner
<energizer> i have this problem: at boot, the screen is visible only if it's plugged in over DVI and not HDMI. After boot, I can plug in HDMI and it works. But that means I have to keep a DVI monitor around just to plug it in at boot and unplug it afterwards.
<energizer> (i need to see the screen to know if i typed the boot password correctly)
slack1256 has quit [Ping timeout: 260 seconds]
slack1256 has joined #nixos-chat
rajivr has joined #nixos-chat
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos-chat
iqubic has joined #nixos-chat
<infinisil> Oh wow, powerlevel10k shows the exit status of each command in a pipe
<infinisil> E.g. like this: 0|123|0|0|0|0|PIPE|0
<gchristensen> nice
<iqubic> Oh, I knew it told you the output of the final command, but I didn't know it did that for each command in the chain.
infinisil-t has joined #nixos-chat
<infinisil-t> Hello from Thunderbird, which apparently now has an IRC client builtin
<samueldr> finally moving to the big leagues, infinisil-t?
<infinisil-t> You know it
<infinisil> Tbh, Thunderbird's GUI is horrible
<infinisil> Overall
<infinisil> It just feels like a big pile of features thrown together in some way
<infinisil> Many buttons, panes, tabs, windows, sliders, settings, ugh
<gchristensen> clicking through to the article -- very short -- only 5 sentences -- https://www.theonion.com/total-collapse-of-democracy-so-horrifying-america-decid-1845348175
<gchristensen> yeaaah thats thunderbird for ya
<infinisil> gchristensen: Damn you weren't kidding with the sentence count
<infinisil> TheOnion sure is on point!
<infinisil> I can't wait to see the voting shitshow in a couple weeks
<gchristensen> in a couple weeks?
<samueldr> that's quite a strong wording
<samueldr> gchristensen: almost literally a couple :) two weeks and some?
<gchristensen> already lines to vote are 5-10hrs long, and some places have maliciously placed, fake ballot boxes
<samueldr> I think infinisil implied on voting day
<gchristensen> yeah but also, like, the shitshow is now
<infinisil> I was mainly thinking of how a certain hopefully-losing individual would behave
<gchristensen> ah
<gchristensen> :)
<infinisil> How long does it take for final results to be published?
<gchristensen> apparently the tradition is the candidate doing worse in the polls eventually just concedes
<gchristensen> failing that, check out the hanging chads of 2000 :)
<samueldr> but wasn't he the non-traditional choice 4 years ago?
<aminechikhaoui> it's stressful being an immigrant in this election :D not that Biden would make life heaven on earth but ..
cjpbirkb1 has joined #nixos-chat
cjpbirkbeck has quit [Ping timeout: 240 seconds]
<samueldr> wow are prepaid mobile options expensive here
<samueldr> I just want something to validate calls and SMS that won't cost basically 40$ for a month's time
infinisil-t has quit [Ping timeout: 272 seconds]
maxdevjs has quit [Ping timeout: 272 seconds]
slack1256 has quit [Ping timeout: 240 seconds]
<ashkitten> gchristensen: wow, literally 60% of the words in that article are part of the list of things undermining american democracy
endformationage has quit [Quit: WeeChat 2.9]
slack1256 has joined #nixos-chat
cole-h has joined #nixos-chat
cole-h_ has joined #nixos-chat
cole-h has quit [Ping timeout: 264 seconds]
<sphalerite> samueldr: maybe eyJhb can send you one. https://eyjhb.dk/scam/2018/11/05/sim-cards.html
<samueldr> I don't know how that would fare on another continent
slack1256 has quit [Remote host closed the connection]
<sphalerite> probably mostly a question of whether the services you want to validate with allow using foreign numbers.
cjpbirkb1 has quit [Quit: Goodbye, take care]
<samueldr> I want to test calls and SMS are working on the pinephone :)
<samueldr> my service with my telco is data only
<energizer> if i make a 3d model is it easy to look at it with a vr headset?
evalexpr has quit [Quit: ZNC 1.8.2 - https://znc.in]
<sphalerite> energizer: https://store.steampowered.com/app/891420/VR_Model_Viewer/ probably yes, if you're willing to spend 6€ for it
evalexpr has joined #nixos-chat
<energizer> sphalerite: do i need a fancy device for that, or can i use my phone + google cardboard?
<sphalerite> energizer: oh. I'm guessing that does need a "proper" headset.
xd1le has quit [Read error: Connection reset by peer]
xd1le has joined #nixos-chat
iqubic has left #nixos-chat ["ERC (IRC client for Emacs 28.0.50)"]
cole-h_ has quit [Ping timeout: 256 seconds]
spudly has quit [Read error: Connection reset by peer]
spudly has joined #nixos-chat
spudly has quit [Read error: Connection reset by peer]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 272 seconds]
spudly has joined #nixos-chat
cdepillabout has joined #nixos-chat
spudly has quit [Ping timeout: 240 seconds]
spudly has joined #nixos-chat
spudly has quit [Client Quit]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 256 seconds]
evalexpr_ has joined #nixos-chat
evalexpr has quit [Quit: Bye]
evalexpr_ is now known as evalexpr
spudly has joined #nixos-chat
spudly has quit [Client Quit]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 260 seconds]
__Sander__ has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Client Quit]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 246 seconds]
cdepillabout has quit [Ping timeout: 246 seconds]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 272 seconds]
xd1le has quit [Read error: Connection reset by peer]
xd1le has joined #nixos-chat
cjpbirkbeck has joined #nixos-chat
__monty__ has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Client Quit]
madjar has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 256 seconds]
spudly has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 256 seconds]
cdepillabout has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Client Quit]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 264 seconds]
spudly has joined #nixos-chat
spudly has quit [Client Quit]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 272 seconds]
julm has quit [Ping timeout: 256 seconds]
noonien has joined #nixos-chat
xd1le has quit [Remote host closed the connection]
xd1le has joined #nixos-chat
julm has joined #nixos-chat
noonien has quit []
spudly has joined #nixos-chat
spudly has quit [Client Quit]
julm_ has joined #nixos-chat
julm has quit [Quit: leaving]
spudly has joined #nixos-chat
adamt has joined #nixos-chat
spudly has quit [Ping timeout: 258 seconds]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 256 seconds]
spudly has joined #nixos-chat
cdepillabout has quit [Quit: Leaving]
spudly has quit [Ping timeout: 246 seconds]
infinisil-t has joined #nixos-chat
maxdevjs has joined #nixos-chat
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 256 seconds]
spudly has joined #nixos-chat
cole-h_ has joined #nixos-chat
spudly has quit [Ping timeout: 260 seconds]
julm_ is now known as julm
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-chat
tilpner has quit [Remote host closed the connection]
tilpner has joined #nixos-chat
maxdevjs has quit [Ping timeout: 272 seconds]
spudly has joined #nixos-chat
spudly has quit [Ping timeout: 258 seconds]
endformationage has joined #nixos-chat
__Sander__ has quit [Ping timeout: 256 seconds]
neeasade has joined #nixos-chat
* infinisil subscribes to #83411
<{^_^}> https://github.com/NixOS/nixpkgs/issues/83411 (by jluttine, 29 weeks ago, open): Packaging request: Jami desktop client
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos-chat
__Sander__ has joined #nixos-chat
julm has quit [Ping timeout: 256 seconds]
madjar has quit [Quit: Connection closed for inactivity]
<__monty__> Formerly ring?
cole-h_ is now known as cole-h
<infinisil> __monty__: Indeed
<__monty__> Ok, cool.
julm has joined #nixos-chat
spudly has joined #nixos-chat
infinisil-t has quit [Quit: infinisil-t]
__Sander__ has quit [Quit: Konversation terminated!]
spudly has quit [Ping timeout: 264 seconds]
rajivr has quit [Quit: Connection closed for inactivity]
adamt has quit [Quit: Connection closed for inactivity]
xd1le has quit [Remote host closed the connection]
xd1le has joined #nixos-chat
<ldlework> SSHFS protip, when it freezes up and things start to hang; kill ssh, not sshfs and you'll be able to fusermount -u it
<__monty__> ldlework: And this is faster?
<ldlework> Hmm, not sure what you mean faster. But my problem has been that I was killing sshfs, and this would randomly allow me to fusermount -u or not (with device busy errors)
<ldlework> Killing SSH has proven 100% reliable to allow fusermount -u after with no device busy errors
spudly has joined #nixos-chat
cole-h has quit [Ping timeout: 264 seconds]
tokudan has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
tokudan has joined #nixos-chat
tokudan has quit [Remote host closed the connection]
tokudan has joined #nixos-chat
<colemickens> Does anyone have a one-liner available for booting an AWS aarch64 instance? The last time I tried booting the latest AMI I flatly wasn't able to SSH.
<samueldr> hmm, anyone would know a trick to tie the hardware status of something to a systemd service status?
<samueldr> or maybe not a systemd service, but something that has similar ergonomics
<infinisil> samueldr: How about a *.target unit
<samueldr> I don't know, I'll read on them
<infinisil> Those are just on/off switches afaik
<infinisil> Not tied to any program
<infinisil> So you can switch that on/off when the hardware changes, and tie a service to the *.target with some PartOf or so
<samueldr> "when the hardware changes" is probably what I don't know
<infinisil> samueldr: What is the hardware here?
<samueldr> /sys/class/modem-power/modem-power/device/powered
<samueldr> a modem
<infinisil> Ah, sounds like a thing udev could do
<samueldr> "ugh", I've never really groked udev and it seems to be one of the most cargo-culted bit in Linux these days
<samueldr> and it's so hard to debug
<samueldr> but what would udev do here?
<infinisil> `udevadm monitor` shows you events
<infinisil> And it can do all kinds of things based on these events
<infinisil> Which is described with udev rules
<samueldr> sure
<infinisil> udevadm also has some other useful commands
<samueldr> though every time I've had to debug udev rules it's been so hard to actually know if what I'm writing is even used
<infinisil> You could for example [de]activate a systemd unit when some device connects
<samueldr> hmm, though my main issue here is that I want to make it ergonomic for the user to enable or disable the modem
<samueldr> it's not like the user will plug it or unplug it
<samueldr> it's part of the hardware already
<infinisil> Hm I see
<samueldr> (playing around with udevadm and the stuff at the same time I write here)
<samueldr> as a *consequence* of powering it on through sysfs there are devices that show up
<infinisil> I mean if it's just controlling the hardware, then wouldn't a systemd service that just enables it when starting, and disables it when stopping again, work?
<infinisil> So like just an ExecStart and ExecStop
<samueldr> I think my main hangup is that the service could be desynced from the hardware's actual state
<samueldr> the modem could be powered off from outside of the service
<infinisil> I see
<samueldr> but the service would still be "up", no?
<infinisil> Yeah
<samueldr> (see, I'm also unsure of what I actually want!)
<infinisil> samueldr: How about this: A .target unit for indicating the state, which is controlled with: A .service for starting it manually, a .service for stopping it manually, and an udev rule that mirrors any changes to the .target
<samueldr> I guess that'll depend on if udev can see the powered state change, or if the hardware paths it gives are reliable indications for the state
<samueldr> but that's possibly good
<samueldr> oh, but that's two services... kind of not great
<samueldr> does it need to be a systemd service? I guess it's better if you want to interact with other systemd-aware things
<samueldr> (that's more of a rubber ducking question)
<infinisil> Yeah, doesn't have to be, but maybe better if it is
<samueldr> I guess the question really is "can we have programmatic status?" on a service
<samueldr> which looks like it's no, that's for targets
<infinisil> Yea
<samueldr> is there a thing we can interact with to "ask for" a target status?
<infinisil> systemctl is-<TAB>
<samueldr> e.g. systemctl disable some.target # would somehow bubble up to calling whatever is desired
<infinisil> Oh
<infinisil> Ah you can use all the Wants,Requires,PartOf,etc.
<infinisil> Maybe BindsTo is the right thing here
<infinisil> Oh yeah then you won't need two services for manual calling
<infinisil> And can just use the target itself
<infinisil> Although, then you can't distinguish between udev enabling the target and the user doing it manually
<infinisil> So e.g. udev enables it with a rule, which then triggers the service to enable it, which hopefully doesn't trigger udev again, or else you have an infinite loop
<samueldr> the good thing here is the kernel driver isn't bad; echo 1 > to ask to power on, echo 0 > to ask to power down
<samueldr> >> And can just use the target itself
<samueldr> the target can have start and stop commands?
<infinisil> samueldr: No, but it can have a BindsTo=some.service, which then has start/stop commands
<samueldr> right, I was confused by "then you won't need two services for manual calling", but I guess it's because that can be handled by one service
<infinisil> (not sure if BindsTo is right, but something like that)
<infinisil> Hm yeah
<infinisil> Also, there's RefuseManualStart=, RefuseManualStop= which may be useful
<samueldr> though here the service would be the interface the user would genrally use to trigger powering on/off
<samueldr> so I don't think I want to refuse :)
<samueldr> the main problem I had in mind was that the modem could be powered off through other means, so it would be odd to see the service's status saying it's running while it's not
<samueldr> but reading BindsTo, if I can make a target that follows the actual state of the modem everything should be fine
vika_nezrimaya has joined #nixos-chat
* infinisil nods