Live data from Hacker News

NixOS on Framework Laptop

kvark.github.io

171–180 of 250 posts

Re: NixOS on Framework Laptop

#171
post #154

> X1 took 120s, so 4.5x slower… totally unexpected Your numbers are clearly suspicious. Did you ever take measures to circumvent the CPU throttling bug under Linux on your X1E? See [1]. Also, regarding your battery comments, when my X1E G1 was new I got great battery life, around 7-8 hours. I still get 5ish. > requires LUKS full-disk encryption, and having it setup conflicted with NVidia’s proprietary driver. This ju…

Regarding the LUKS encryption, he is likely talking about an encrypted /boot partition and using SecureBoot.

Was about to say something about the encrypting /boot. I always leave mine unencrypted but everything else gets encrypted.

Re: NixOS on Framework Laptop

#172
post #39

Super weird about the realtek Ethernet issues. Linux’s support for Realtek is pretty good I thought.

Ach, the usual stuff about NICs being re-re-re-created, incredibly annoying. I thought the same - then I bought in September 2021 a "Lenovo Ideapad 5 Pro 16ACH6" which is when I found out that the "Realtek Semiconductor Co., Ltd. Device 8852"/"Realtek RTL8111E Ethernet LOM"/"Lenovo Device 4852" needs a brand new driver/module, respectively is not compatible with anything else. I lost a lot of hair until I found " htt…

Wow that sucks. Kudos to the dev that maintains that driver. I wonder if they ever tried to upstream it?

Re: NixOS on Framework Laptop

#173
Laptops have become a portable form-factor KVM for me. Unfortunately I do not have a good solution to the form factor part. The introduction to this article, regarding the four different hardware forms, was pretty interesting.

Re: NixOS on Framework Laptop

#174

Earlier quoted context omitted.

How do you deal with the transitiob from MacOS to PopOs? I'm trying to do it, but discouraged from all the small annoying things: - changing default shortcuts from CMD to CTRL. Is swapping the positions enough? - Janky scrolling/no inertia ( i'm not on a framework (hp x360 spectre), is the framework better? - all the small tuning software i have (Karabiner for remapping, Amethyst for tiling, BitBar etc) - is there a…

> changing default shortcuts from CMD to CTRL. Is swapping the positions enough? I strongly recommend not to do this. I did it and it was a nightmare: some of mac's hotkeys are like linux hotkeys but reversing Meta & Ctrl, but not all of them. I adjusted the most egregious hotkeys, but there were always more. This went on for around a month. In the end, it was impossible for me to get used to the differences: my musc…

Yeah the inconsistency is what worries me. But my concern is that the CMD position (ALT on other keyboards, right beside space) is more ergonomic than the CTRL position, especially on laptops.

Re: NixOS on Framework Laptop

#175
Can't wait till I'm able to buy a Framework laptop from Europe. I even checked on eBay US (which offers customs services for international shipping) but prices are too high at the moment

Re: NixOS on Framework Laptop

#176
post #43

Earlier quoted context omitted.

systemd is so complex, I've come to a conclusion, that it no longer fits my definition of free software. We allow runaway complexity to obscure the inner workings of an important software package, to the point, where having source access no longer makes a practical difference to a "casual" power-user or even a software engineer. I can source-dive runit, s6, OpenBSD's rc, or OpenRC and within a weekend, have a pretty…

That's an interesting line to draw! Do you think this also extends to stuff like firefox or java vm, or are you only focusing on "system" software with that analysis?

I'm trying to balance between idealism and pragmatism. Source access is pragmatic only in a situation where you feel confident to dive it. I admire projects like suckless, Alpine, or Netsurf, because they prove this kind of balance can be maintained. But I'm still posting this from Safari ;)

Re: NixOS on Framework Laptop

#177

Earlier quoted context omitted.

Does this also adjust icon sizes in apps' toolbars?

No, increasing just the font size is a hack. Unless you only use the terminal, doing this means not using GUI apps comfortably because icon size will not scale. Even if you somehow do make them scale, that increased font size and is limited to the screen you're working on. If you ever attach an external monitor to your laptop, it won't look right on that. Avoid doing this unless you have no choice.

Works well on external 4K monitors also. And yes, the icons do not increase in size, but they still look OK. Certainly better than fractionally scaled icons. There's no downside to trying this - it's literally a single slider that you can slide back if you don't like what it does.

Re: NixOS on Framework Laptop

#178
post #177

Earlier quoted context omitted.

No, increasing just the font size is a hack. Unless you only use the terminal, doing this means not using GUI apps comfortably because icon size will not scale. Even if you somehow do make them scale, that increased font size and is limited to the screen you're working on. If you ever attach an external monitor to your laptop, it won't look right on that. Avoid doing this unless you have no choice.

Works well on external 4K monitors also. And yes, the icons do not increase in size, but they still look OK. Certainly better than fractionally scaled icons. There's no downside to trying this - it's literally a single slider that you can slide back if you don't like what it does.

I've actually done this on my primary setup which is an AMD ThinkPad connected to a 4K 27 inch display. I didn't know about issues with fractional scaling before I bought this monitor and now I keep everything at 1x scaling and have increased the font size.

As I said, this setup has two big drawbacks

- I can't use my laptop display without adjusting the font size - Almost all GUI apps look strange because the text is large and icons are small. For example, the uBlock Origin icon on Firefox is tiny and sometimes I make mistake and click elsewhere.

Scaling fonts and not the display is a hack but considering fractional scaling is even more messy, I've resorted to using this method.

This is why I said that I won't buy the FrameWork laptop because it needs fractional scaling.

Re: NixOS on Framework Laptop

#179
post #177

Earlier quoted context omitted.

Works well on external 4K monitors also. And yes, the icons do not increase in size, but they still look OK. Certainly better than fractionally scaled icons. There's no downside to trying this - it's literally a single slider that you can slide back if you don't like what it does.

I've actually done this on my primary setup which is an AMD ThinkPad connected to a 4K 27 inch display. I didn't know about issues with fractional scaling before I bought this monitor and now I keep everything at 1x scaling and have increased the font size. As I said, this setup has two big drawbacks - I can't use my laptop display without adjusting the font size - Almost all GUI apps look strange because the text is…

Ah yes, if your laptop is non-hidpi and your display is, you will have these issues. In my case both the laptop and the display are hidpi, and things work pretty well. Basically all devices I used in the last decade are hidpi.

Re: NixOS on Framework Laptop

#180
post #159

Earlier quoted context omitted.

I don't have a specific use case in mind. The possibilities are endless. Delegating a cgroups doesn't take systemd, by the way. You can do it with mkdir(). Systemd puts user processes in a part of the cgroups tree where they can't work freely, by default. You have to use a systemd unit or the dbus api to break out of that box. That is a design decision on system's part. If I was putting user processes in cgroups, I w…

Well you have to understand that my mental picture from your past description is FreeBSD running in KVM on NixOS running on managed GCP/AWS, which is a somewhat confusing and convoluted architecture to me and I'm not sure what it's for or what the possibilities are that can't be done with some other setup. You could probably simplify and cut out some of those pieces. But if you meant something else, then let me know.…

>it is racy to have more than one process writing to the toplevel hierarchy

Source? And define top level hierarchy? The top level isn't really special.

This is why locks exist btw.

I'm not convinced you have to manage cgroups from one process. That is not how most implementations do it.

>Processes cannot just freely break out of their cgroup, that wouldn't be secure.

Processes can freely migrate ("break out" if you insist on that terminology) if they have write access to one level above them in the tree. Systemd does not put you in that situation, but it could.

E.g. if you are in /user/ you have nowhere to go, but if your are in /user//default you can go to /user////default.

Post reply on HN