gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
aszlig_ is now known as aszlig
__monty__ has quit [Quit: leaving]
<jasongrossman> I like the loris too.
aanderse has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 264 seconds]
drakonis_ has quit [Quit: WeeChat 2.3]
drakonis has joined #nixos-chat
iqubic has joined #nixos-chat
iqubic has quit [Remote host closed the connection]
<gchristensen> ldlework: ping?
<ldlework> sup
<gchristensen> ldlework: what is that program to take a picture and make my CLI pretty?
<ldlework> wpgtk
<gchristensen> ah, no, it took an images as an input to set terminal colors
<gchristensen> hmm not seeing it there
<gchristensen> pywal
<gchristensen> samueldr: gsc.io/red.png
<samueldr> hah, I was about to do it
<gchristensen> oh, do!
<gchristensen> Ericson2314: hi O.S's website does worse than usual in lynx btw :)
<Ericson2314> @gchristiansen heh I noticed something similar today. It's odd because while the DOM can be fully constructed by JS, it's prerended too. We have a new thing comming up which the JS takes over, rather than replaces, the prerended DOM. Maybe that will help.
<gchristensen> hmm maybe you should try it :)
<gchristensen> Ericson2314: specifically since there is no content-type header, lynx just displays the source code
<Ericson2314> Oh hmm when I tried I got like blank page of something
<Ericson2314> I wasn't really sure what was going on, tbh
<gchristensen> ah
<gchristensen> anyway... far past my bed time. g'night :)
<Ericson2314> I'll let people know. Thanks Graham and good night :)
pie__ has joined #nixos-chat
pie___ has quit [Ping timeout: 250 seconds]
jackdk has quit [Ping timeout: 244 seconds]
ottidmes has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 2.3]
drakonis has quit [Quit: WeeChat 2.3]
<sphalerite> etu: just did the signing thing :)
* etu has mail
johanot has joined #nixos-chat
<manveru> is there actually any editor that can efficiently work on a 15G file?
<manveru> other than ed :P
<Taneb> sed? ;P
<Taneb> Honestly at that size I think using a visual editor is pointless
<manveru> hexedit seems fine with it
<manveru> it's almost graphical :)
jasongrossman has quit [Ping timeout: 268 seconds]
<manveru> looks like it can only replace characters :(
<sphalerite> manveru: sounds like an appropriate challenge for Xi :D
<manveru> what's that?
<manveru> is it in nixpkgs?
<sphalerite> don't think so
<manveru> :(
<manveru> looks like dtz made a package for it, but it's not in nixpkgs yet
__monty__ has joined #nixos-chat
<manveru> sphalerite: yeah, that just crashes :P
<sphalerite> manveru: nice
aanderse has quit [Ping timeout: 252 seconds]
aanderse has joined #nixos-chat
<ldlework> gchristensen: wpgtk is a frontend for/uses pywal
<gchristensen> oh interesting
<ldlework> gchristensen: what twm you using
<gchristensen> i3
<ldlework> cool
<gchristensen> wat, my computer didn't charge past 85% with 8hrs of charge time.
johanot has quit [Quit: WeeChat 2.2]
<emily> gchristensen: probably it's explicitly capping out
<emily> 85% means your battery capacity is pretty sucky I guess?
<etu> gchristensen: Not that bad, how old is it? My laptop max out at like 60% :D
<gchristensen> ⎈[grahamc@Morbo:~]$ cat /sys/class/power_supply/BAT0/charge_full
<gchristensen> 6256000
<gchristensen> [grahamc@Morbo:~]$ cat /sys/class/power_supply/BAT0/charge_full_design
<gchristensen> 8509000
<gchristensen> yikes
<gchristensen> I got it in May 2017
<joepie91> gchristensen: tried a full discharge and recharge?
<joepie91> gchristensen: also, is this an XPS?
<gchristensen> it is
<joepie91> gchristensen: hmm... using it on AC a lot by any chance?
<gchristensen> sure, about 80% of the time
<joepie91> gchristensen: does it ever give you a notification that it's on battery power, despite still being plugged into AC, and then after it's dropped a few % magically go back onto AC and charging again?
<gchristensen> not that I've noticed
<joepie91> gchristensen: hm, I think they didn't port over the battery saving feature from the Latitude series then :( which would explain your battery capacity
<joepie91> so the Latitudes have a system where once every few weeks or so, it disables AC for a while and partially discharges the battery
<joepie91> then at a set point it re-engages charging
<joepie91> this keeps the battery healthy
<joepie91> but it shows on Linux as a disconnect and reconnect after a while
<gchristensen> oh cool
<joepie91> if it indeed doesn't have that, I'd recommend letting it discharge nearly entirely every two weeks or so, and charging it back up again, and that should keep it healthy
<gchristensen> I can do that
<joepie91> might even improve it over your current max
<gchristensen> discharge to shutdown?
<joepie91> and yeah, it's a very neat system
<joepie91> gchristensen: well it depends on the battery, I don't know what the XPS batteries are like
<etu> joepie91: Hmm, I think TLP can do that
<gchristensen> :)
<joepie91> nearly-empty is probably safer than empty
<gchristensen> eh, it gets to about 10% each day
<joepie91> hm, try fully empty then :P
<joepie91> etu: TLP?
<etu> Make it stop charging when it's close to max and then let it down a bit and start charging
<gchristensen> (work-time plugged in, evening/morning it gets low)
<etu> joepie91: services.tlp.enable
<gchristensen> joepie91: maybe I shouldn't be compiling 8 cores at 100% for 6 hours each day?
<joepie91> etu: huh, didn't know about that. if that does the battery saving as well, that might be a nice automated option
<joepie91> gchristensen: should be fine tbh
<joepie91> these sort of cells generally remain more healthy the more they are discharged and recharged
<gchristensen> ok good `cuz I do r13y rebuilds on this thing
<etu> woo
<etu> Charge = 98.2 [%]
<etu> Capacity = 59.9 [%]
<etu> :D
ottidmes has joined #nixos-chat
<ldlework> gchristensen: send me a screenshot when you get a nice genned theme going
<gchristensen> I don't have one at all, and haven't really tried
<gchristensen> to be honest I was trying to extract from a screenshot of sakura, the colors it uses to import in to urxvt
<ldlework> Well that's what it's for
<ldlework> :P
<gchristensen> it did a pretty poor job, haha
<ldlework> well there's only a bunch of ways to tweak the result
<__monty__> joepie91: Isn't limited cycles the big thing with lipos?
<joepie91> __monty__: afaik laptop batteries use a slightly different chemistry (forgot the name) that can do more cycles
<__monty__> All I know is from this paper they did on lipo or lithium-ion batteries. Extremes were terrible, so don't go below 30% charge, nor above 80% and cycles were detrimental as well so always charge/discharge for that full permitted range.
<averell> you get most cycles if it's kept between 20 and 80% charged, but i guess with 8h compiling temperature is the biggest problem
<sphalerite> gchristensen: there's definitely some weird smart stuff it does which you can configure to some extent in the firmware settings
<gchristensen> sphalerite: ohhh?
<gchristensen> do go on
<sphalerite> gchristensen: I don't know any more than that, sorry :p check the firmware settings, I don't have my XPS anymore :)
<gchristensen> interesting
<gchristensen> what hapenned to your xps?
<lejonet> rage?
<sphalerite> sold it, because my work laptop covers my laptop needs
<gchristensen> ah
<gchristensen> ah, hrm
<sphalerite> (to my dad. With NixOS on it. :D )
<etu> sphalerite: That's one way to create new users ;D
<gchristensen> mayflower is probably cool with it, but becareful doing personal stuff on work-owned laptops :)
<etu> gchristensen: It differs from country to country a bit as well
<gchristensen> ah yeah
<sphalerite> gchristensen: I was encouraged to use it for personal stuff :)
<gchristensen> nice
<gchristensen> I would love to use my work laptop for everything :)
* etu is wonders if mayflower accepts remote working positions
<sphalerite> (reasoning being I'm more likely to set everything up such that I can work most effectively with it)
* lejonet only has a laptop for the few times a year he actually travels somewhere
<etu> lejonet: Rent? :D
<sphalerite> etu: not so much unfortunately, and how good is your German? :p
<gchristensen> wtf my Thundertbolt Cable can receive firmware updates? aaaaa
<joepie91> lol
<sphalerite> gchristensen: welcome to the wonderful world of active cables!
<lejonet> etu: could maybe be a solution :P
<etu> sphalerite: 1) Meh. 2) Terrible
<gchristensen> get me out of this hellscape
<lejonet> sphalerite: Jahwol!
<joepie91> gchristensen: Smart Cables Of Things
<etu> CoT -- The S stands for Secure :p
<lejonet> gchristensen: ofc it can, how else would they be able to update the spyware? Those systems aren't easy to maintain... ;)
<gchristensen> with good ol' fashioned CPU-level implants
<gchristensen> https://github.com/zfsonlinux/zfs/issues/8419 hmm maybe more likely to get merged this time
<{^_^}> zfsonlinux/zfs#8419 (by behlendorf, 1 week ago, open): Add TRIM support
endformationage has joined #nixos-chat
<sphalerit> oooh exciting
drakonis has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 250 seconds]
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos-chat
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos-chat
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 258 seconds]
yl has joined #nixos-chat
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos-chat
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos-chat
<gchristensen> I might just erase this laptop and install windows this evening just so I can update the firmware on this dock, to try and make it work
<samueldr> depending on how you feel on using closed-source build of "something", this could be more practical? https://www.hirensbootcd.org/
<samueldr> the FAQ describes how this is legal
<samueldr> (though I can't vouch for anything about security)
<gchristensen> "Why am I getting a virus warning for a file downloaded from your website?" god I love this so much
<gchristensen> websites that say "it isn't a virus, promise!"
<samueldr> (which is fun since is happens even to legit windows things :/)
<samueldr> yeah, I was just throwing that around
<samueldr> I imagine you could do the same with a PE or "windows to go" environment
<samueldr> (though whew I don't think this is the right crowd for input on those :D)
<gchristensen> :)
<gchristensen> it is a good tip, thank you
ekleog_ is now known as ekleog
<andi-> I started migrating my weechat configuration to nixos and first things was figuring out how to deal with the scripts and /upgrade.. In case someone whats to provide some early feedback before I get to creating a PR here it is: https://gist.github.com/andir/e47ad8df72f8004be66e916cfea2c45e
<gchristensen> wow
<aanderse> andi-: ping @ https://github.com/NixOS/nixpkgs/issues/33876 and if you don't mind taking a look at related https://github.com/NixOS/nixpkgs/issues/56294
<{^_^}> #33876 (by andir, 1 year ago, open): apache solr: CVE-2017-12629 & CVE-2017-3163
<{^_^}> #56294 (by aanderse, 3 days ago, open): Remove winstone package and module?
<andi-> aanderse: thanks for the reminder, will take care of it later
<aanderse> andi-: np. thank you!
nckx has quit [Quit: Updating my GNU Guix server — https://guix.info]
nckx has joined #nixos-chat
aanderse has quit [Ping timeout: 255 seconds]
aanderse has joined #nixos-chat
lopsided98_ is now known as lopsided98
jackdk has joined #nixos-chat
drakonis_ has joined #nixos-chat
drakonis has quit [Ping timeout: 259 seconds]
<gchristensen> snapshotable filesystems are really good
<mdash> xfs supports snapshots now, doesn't it?
<gchristensen> not sure
<gchristensen> being able to snapshot a FS and do a differential xfer to another host is really nice, though
<mdash> ok xfs has reflink now, so only per-file snapshots
<mdash> not as good
drakonis has joined #nixos-chat
drakonis_ has quit [Ping timeout: 255 seconds]
<elvishjerricco> Sad that ZFS doesn't have reflink though.
<gchristensen> what is reflink?
<elvishjerricco> gchristensen: `cp --reflink` will copy a file without writing new data, using the file system's CoW mechanism if it supports it. Btrfs supports it, but basically nothing else does
<elvishjerricco> except I guess xfs now
<gchristensen> neat
<elvishjerricco> Yea I'd really like it if 1) ZFS supported it, and 2) you could make it the default for cp.
<gchristensen> hehe, yes
<gchristensen> (hrm. I can't install Windows... maybe I'll go buy a Windows laptop for an evening, so I can upgrade this thing's firmware)
<elvishjerricco> gchristensen: You need windows to update your firmware?
<gchristensen> evidently
<elvishjerricco> That's for the xps?
<gchristensen> for a Dell TB16 dock
<andi-> Haven't dealt with those docks yet but in the past I used `wimlib` to create a custom windows image (for an USB stick) where I'd just install the drivers after booting the livecd and then launching whatever update tool the vendor supplied.. Worked decently on thinkpads.
<elvishjerricco> Ah. Thunderbolt is sweet. Though apparently it's a vulnerability now. On most systems, you can just plug something into a thunderbolt port and get direct memory access.
<gchristensen> that has *always* been true
<elvishjerricco> I know physical access == pwned, but it shouldn't be THAT easy :P
<gchristensen> I've known this was true since the first thunderbolt devices came out
<gchristensen> it is what you get when PCI is exposed as a cable
<gchristensen> I think the only useful and novel thing the vulnerability is doing is informing the public
<elvishjerricco> I think that in theory IOMMU is supposed to be able to protect you from it, but supposedly it's still not perfect
<gchristensen> s/perfect/used
<elvishjerricco> that too
<elvishjerricco> could a linux user configure their system to use IOMMU to protect themselves?
<gchristensen> in most BIOSes there is a thunderbolt security option which requires positively confirming you want to allow the thunderbolt device to connect
<gchristensen> I think this is why apple computers require thunderbolt devices to be made by apple
<gchristensen> andi-: wimlib, eh?
<gchristensen> I've tried using dosbox and WinPE so far, but I need to install thunderbolt drivers to do it, and neither of those support them
<andi-> gchristensen: have you tried just booting an installer image and launching the cmd.exe? That also used to work sometimes
<gchristensen> you can do that?
<andi-> Yeah since WindowsXP or something.. alt+f6 IIRC
* gchristensen reboots
<andi-> let me google that for you
__monty__ has quit [Quit: leaving]
<andi-> shift+F10 it seems
<gchristensen> "This verison of this file is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher." :)
<andi-> tableflip...
jasongrossman has joined #nixos-chat
<samueldr> :/ OEMs not playing ball
<samueldr> proprietary hardware is tiring :(
<andi-> i think that might be more towards the updated being a 32bit executable and the instlaler being 64bit only?
<samueldr> my statement was more general, thinking how a self-contained system to update those firmwares would probably be worthwhile
<samueldr> like... never assume the software on a user's computer works
<gchristensen> participating in fwupd would be a good step
<samueldr> apparently the actual *thunderbolt* bios bit in the dock can be updated from linux, but not the other biosen part of the device... because sure it needs more than 1 :/
<andi-> oh yeah.. I saw a recent thinkpad model being supported for most of the updates that come from lenovo/intel.. The future isn't as bad as I always think..
<andi-> I also don't get how we can have clickable shiny UEFI Bios Implementaitons that aren't able to run firmware updates (from USB-Sticks anymore).
<samueldr> some people are peeved at fwupd, e.g. system76 don't want to work with them because it "leaks" their install base numbers
<samueldr> *allegedly
<andi-> lol
<gchristensen> they can host their own sources
<samueldr> my 2012 HP UEFI can update itself from USB
<samueldr> within the UEFI
<andi-> thats exatly my point.. we used to have that..
<andi-> it was borked at first, got better then removed
<andi-> a coworker recently spent a day installing to some recent Dell XPS since that wouldn't boot in EFI mode from just any USB stick at any port... Just USB3 sticks on one specific port... I am not sure what those vendors are thinking.
<samueldr> are they?
<andi-> sometimes, are there advertisements in the bootscreen yet?
<jasongrossman> Mm. I'm not happy with System76 about that.
<gchristensen> andi-: ah, a bit wrong on that, if it was the 9380
<andi-> gchristensen: it was some fancy 2-in-1 XPS.. no idea about the numbers
<gchristensen> andi-: b/c the 9380 will only boot to USB disks plugged in to the right-side USB-C USB-2.0 port
<gchristensen> ah
<andi-> why /o\
<gchristensen> °°°·.°·..·°¯°·._.·because·._.·°¯°·.·° .·°°°
<andi-> is that the outcome of your text2speech?
<gchristensen> haha
<andi-> the other way around..
<gchristensen> Dragon detects dripping sarcasm and inserts the wavy bits
<andi-> ok dragon, draw me some ASCII art.
<andi-> o.O
<gchristensen> (what, no strongbad?)
<gchristensen> apparently the Cohen hearing today caused 1.9B of lost productivity per hour
<joepie91> lol
yl has quit [Ping timeout: 244 seconds]