NixOS resuscitated a 2012 Macbook Air. This thing flies! I was NOT expecting that at all

2 years ago by Loucypher to c/nixos

As per title, I am mind-blown by the speed and stability of NixOS on this "relic" in IT terms... On this machine i tested:

Distro Performance
Fedora MEGA slow
Ubuntu OKish
LDME Fast
Debian Fast
NixOS VERY Fast

And the best thing is that I can bring this config with me on any computer! Oh boy, I think i have fallen in love with NixOS

Zachariah 5 points 2 years ago

Did you leave a MacOS partition for firmware upgrades, or just make sure it was fully updated before wiping?

Does all the hardware work? Which guide did you use for prep and install?

path: 0 13990622, hotness: undefined, score: 5, children: 5
Loucypher 8 points 2 years ago

It was updated before wiping yes. Those macs are abandonware, they stopped receiving firmware update a while ago. Followed no guide, the install wizard was very easy. All components worked out of the box

path: 0 13990622 13993805, hotness: undefined, score: 8, children: 4
Zachariah 2 points 2 years ago

That’s great. I have a few Macs about that age, and I was really hoping to revive them with Linux.

path: 0 13990622 13993805 13996662, hotness: undefined, score: 2, children: 0
matto 1 point 2 years ago

Sorry for reviving an old post, but I just came across this. I also have a 2012 MacBook Air and was planning to put NixOS on it. Did the sound, Bluetooth and WiFi work out of the box too? Thanks!

path: 0 13990622 13993805 14844741, hotness: undefined, score: 1, children: 2
Loucypher 2 points 2 years ago

Out of the box brother, go with no worries

path: 0 13990622 13993805 14844741 14908974, hotness: undefined, score: 2, children: 1
matto 1 point 2 years ago

That's great to hear. Thanks!

path: 0 13990622 13993805 14844741 14908974 14910894, hotness: undefined, score: 1, children: 0
Gebruikersnaam 5 points 2 years ago

How is fedora that slow? Is it due to btrfs? Is tracker running in the background?

path: 0 13996503, hotness: undefined, score: 5, children: 2
Loucypher 5 points 2 years ago

No idea… a real bummer but I am grateful I could not get it to run smoothly as it pushed me to eventually land on NixOS

path: 0 13996503 13996793, hotness: undefined, score: 5, children: 0
TBi 2 points 2 years ago

I run fedora on a 2009 thinkpad and it’s fast. I’m surprised NixOS is that much faster.

path: 0 13996503 14019692, hotness: undefined, score: 2, children: 0
circuitfarmer 4 points 2 years ago

Excellent.

It is readily accepted that Linux reduces overhead versus Windows on the same system.

What is less readily accepted is the same result versus macOS. Yes, it is considerably more work to get Linux running well on a Mac, since it is ultimately a closed ecosystem. But the point should be made that macOS also has a lot of unnecessary overhead over which the user has little or no control.

The PC vs Mac thing should be dead by now, tbh, in favor of corporate vs FOSS.

path: 0 14006714, hotness: undefined, score: 4, children: 4
Loucypher 1 point 2 years ago

Very easy to flash Linux on an intel based Mac ;)

path: 0 14006714 14011827, hotness: undefined, score: 1, children: 3
circuitfarmer 1 point 2 years ago

Yet not as easy as loading it on a PC, which was my only point there.

path: 0 14006714 14011827 14016898, hotness: undefined, score: 1, children: 2
Loucypher 3 points 2 years ago

not at all, it exactly the same process. Same level of difficulty. Given you do it on an intel Mac, Mx series are a royal pain

path: 0 14006714 14011827 14016898 14021204, hotness: undefined, score: 3, children: 0
Duamerthrax 1 point 2 years ago

I haven't done extensive testing, but I never had any issues installing Linux on my 2012 and 2013 macbook pros. Same exact process.

path: 0 14006714 14011827 14016898 14032801, hotness: undefined, score: 1, children: 0
satanmat 2 points 2 years ago

Nice!

I’ve got a similar iMac I’m looking to Linux as it is well past getting any more macOS updates.

Did you wipe macOS?!or did you bootcamp?

Thanks

path: 0 13991824, hotness: undefined, score: 2, children: 1
Loucypher 2 points 2 years ago

Totally wiped, yes

path: 0 13991824 13993791, hotness: undefined, score: 2, children: 0
Wooki 2 points 2 years ago

Yay welcome to the club. Now for home manager, flakes, and modules. Its awesome

path: 0 13997184, hotness: undefined, score: 2, children: 2
Johanno 3 points 2 years ago

I still am fighting learning those! I don't have home manager. I will avoid flakes at all costs and never heard of modules....

My stuff works anyway

path: 0 13997184 13998230, hotness: undefined, score: 3, children: 1
Wooki 2 points 2 years ago

Once you are comfy with base configs. Simple flakes become a dream simplifying your configs especially helpful when your using nix on more than one computer.

Vimjoyer on youtube has a bunch of vids that really helps and he keeps it simple.

path: 0 13997184 13998230 14006481, hotness: undefined, score: 2, children: 0
avieshek 2 points 2 years ago

I have a Mid-2012 MacBook Pro, got 16GB RAM but still a spinning hard drive. How does it compare to Pop!_OS?

path: 0 13997180, hotness: undefined, score: 2, children: 4
OhYeah 1 point 2 years ago

I've ran both pop_os and nixos on the same laptop, albeit a newer laptop, and they felt the same to me performance wise. My experience is that if they're using the same kernel, same init system, same desktop env, etc they'll prob feel the same

path: 0 13997180 14000876, hotness: undefined, score: 1, children: 0
TBi 1 point 2 years ago

Get an SSD. Makes a massive difference

path: 0 13997180 14019699, hotness: undefined, score: 1, children: 0
Loucypher 1 point 2 years ago

I guess PopOS performs like vanilla mint or like Ubuntu. NixOS feels very snappy even on Gnome on a 8gb machine from bloody 2012

path: 0 13997180 14000704, hotness: undefined, score: 1, children: 1
avieshek 1 point 2 years ago

Would you like the point some differences like inteface (UI-UX), driver support, features, performance etc?

path: 0 13997180 14000704 14011035, hotness: undefined, score: 1, children: 0
reddig33 2 points 2 years ago

Why do you feel nix is faster than the other builds? Something related to graphics drivers?

path: 0 13993230, hotness: undefined, score: 2, children: 1
Loucypher 3 points 2 years ago

I guess there is just less bloat running in NixOS. But then again, the difference between Debian and NixOS is very subtle. Debian/LMDE run great on that hardware

path: 0 13993230 13993836, hotness: undefined, score: 3, children: 0
Mucki 1 point 2 years ago

Thank you. Will try NixOS on a desktop soon. Speed is also very much related to the kernel, so you may want to compare kernels, too. I.e. Debian standard, Liquorix, Debian realtime, MX AHS, etc. I figured the rt kernel generally performs best for non-dGPU systems. And also the WM: KDE is unbearable for me, really slow on old thinkpads, while with XFCE everything is blazing fast.

path: 0 13996811, hotness: undefined, score: 1, children: 5
Laser 3 points 2 years ago

The NixOS kernel is pretty vanilla

path: 0 13996811 13997056, hotness: undefined, score: 3, children: 0
Atemu 2 points 2 years ago

The kernel is one of the least important components when it comes to performance.

Kernel tweaks can eek out a couple percent here or there for your specific task (while likely regressing in others) but nothing really significant.

FWIW though, we have lqx and rt variants in NixOS (though rt is mainline now with 6.12).

path: 0 13996811 14005283, hotness: undefined, score: 2, children: 2
Mucki 1 point 2 years ago

Generally yes.

Here is two examples from my recent experience:

  • Run custom realtime software on rt and non-rt kernel: Huge difference when I look at milliseconds and latency.
  • I ran Minecraft recently on the standard and rt kernel, with realtime it performs much better (no dGPU)

I will look into nixOS definitely. Last time I checked must have been 2018 hehe

path: 0 13996811 14005283 14009633, hotness: undefined, score: 1, children: 1
Atemu 2 points 2 years ago

Right if you have applications with rt constraints, you'll obviously need a rt-capable OS but that's more a matter of it being available as a feature, rather than being performant enough.

path: 0 13996811 14005283 14009633 14009694, hotness: undefined, score: 2, children: 0
Loucypher 1 point 2 years ago

You’re right I got the latest and greatest kernel and that surely plays a factor

path: 0 13996811 14000798, hotness: undefined, score: 1, children: 0
crazyminner 1 point 2 years ago

Would nixos work on their M4 minis?

path: 0 14053696, hotness: undefined, score: 1, children: 1
Loucypher 1 point 2 years ago

Nope. Too soon for that

path: 0 14053696 14061654, hotness: undefined, score: 1, children: 0
notharry123 0 points 2 years ago

@Loucypher hey ! are you using zen browser flatpak??

path: 0 14093278, hotness: undefined, score: 0, children: 1
Loucypher 1 point 2 years ago

Yes indeed, but only because it is not on the Nix repositories yet

path: 0 14093278 14093279, hotness: undefined, score: 1, children: 0
nixos

@lemmy.ml

login for more options
1625
113
4

All about NixOS - https://nixos.org/

go to feed...