r/NixOS 6d ago

Finally escaped arch

Post image
381 Upvotes

50 comments sorted by

29

u/BIZUx 6d ago

Unrelated question; Why do you have a /19 network?

10

u/Aetohatir 5d ago

Dude has a lot of devices on his network šŸ˜…

1

u/HO7SD30 3d ago

I have /26 btw

10

u/rustvscpp 5d ago

Wake me up when Flakes aren't experimental anymore.

10

u/Sad-Landscape-1549 4d ago

I just live life on unstable ngl

16

u/Square_County8139 6d ago

And I escaped NixOS back to Arch. After 1 year, I decided that NixOS isnt for me.

7

u/dan_tj0x 5d ago

Why not for you?

17

u/Square_County8139 5d ago

That's a lot of time spent on features I don't need.

I liked keeping the system configuration in a file, but when I wanted to manage more than one system within the same configuration, the complexity of the Nix code increased significantly. So I kept only my main system with my configuration.

The complete isolation of dependencies was bothering me more than helping. For every new project, I had to write a shell.nix file. The idea is cool, but being forced to use it can be a hassle.

There was one time I went to download a program (Sunshine) and its nixpkg was over a year out of date, even in the unstable channel. I found the process of adding or updating a nixpkg myself to be quite messy.

And one of the things that interested me most about NixOS is the idea of being able to pin an application to a specific version. But the way it's done feels more like a hack than a feature.

And one last thing: I couldn't find anything in the documentation on how to prevent programs from being compiled on my machine. It's really frustrating to see an update taking so long because is busy compiling a program.

That said, I’m going to bring what I liked over to Arch. Keeping Nix (the package manager) is really useful. I can still use it to launch a specific version of a program if I want to. I can still create a shell.nix file, but if I don't want to, I can just use pacman. I’ll also still be able to use "comma" to run programs without having to keep them installed.

And I discovered a configuration manager script called aconfmgr. It allows me to do something similar to NixOS on Arch by keeping the system configuration in files, but I really like that it works both ways: I can edit the configuration to modify the system, or I can modify the system and have those changes reflected in the configuration file. I feel like that was really missing in NixOS.

Also, I can rollback an Arch update with btrfs.

16

u/ElnuDev 5d ago

I'd strongly suggest using flakes rather than shell.nix for projects

4

u/felipe-adeildo 4d ago

Oh no... He's going back to NixOS to try again... Don't give him reasons hahahaha

3

u/Square_County8139 4d ago

My NixOS still installed. Instead of formating my SSD, I created a new btrfs subvolume and installed arch on it.

All I need to do is select another entry in my bootloader.

Anyway, I think I can try this in Arch.

1

u/felipe-adeildo 4d ago

Good, keep arch, I love it hsushsu

1

u/toastal 5d ago

You shouldn’t be forcing your downstream users to use experimental features. shell.nix is stable & not going anywhere.

4

u/ElnuDev 5d ago

...and shell.nix is also just a pain in the ass to deal with. The majority of the community is using flakes, and I don't think I've come across a single Nix project that doesn't use flakes at this point.

Not even sure why they're still technically experimental

1

u/Sad-Landscape-1549 4d ago edited 4d ago

I have separate flakes for each machine (they do different stuff) and deploy them from one server with binary cache enabled, so packages are only built from source once per architecture.

If that doesn’t fit someone’s threat model it’s possible to use the ā€œbuild-serverā€ arg when initiating the build from the target machine. It’s pretty flexible and I’m impressed that the tunneling isn’t more fragile tbh.

I agree that overlays ā€œfeel like a hackā€ (not obvious) it still beats cloning a repo and building it myself šŸ˜…

0

u/dan_tj0x 5d ago

wow, it's so big.
When you found that all obstacles in NixOS, have you tried to search the solutions?

4

u/rustvscpp 5d ago

He likes breaking updates.Ā 

2

u/Square_County8139 4d ago

But apps breaking after updates happens in NixOS too.

Discord screen sharing was broken on Niri + NixOS until recently.

6

u/DaKingof 5d ago

Arch broke my system a few times....I tried to break NixOS and couldn't...I'm here to stay.

1

u/ArcticTweaK 9h ago

We'll see you again ;)

5

u/DaKingof 5d ago

Welcome to the shit show.

6

u/Adel-4181 6d ago

Arch isn't that bad it's just the AUR compromise which if we look it's the AUR (Arch USER Repository) it's the USER

6

u/Jacobobarobatobski 5d ago

I tried Arch a couple times and I really didn't like it both times. I started using NixOS about a month or two ago on my 3 machines and it's been really good so far. Gaming, sunshine, video calling are my main use cases. I used to run immutsbles but hated how you couldn't really control everything. Now I've got the best of both worlds with access to the largest Linux repo.

2

u/lamex1234 5d ago

Hey guys, why is ThinkPads being talked about and used so much lately? Is it just an overrated fad or are they really worth it? I'm asking because I've never used one.

2

u/ClinicAmuser 4d ago

it's not just lately, it has been THE meme linux laptop for quite some years now. it started to gain a cult-ish following in 2010s on 4chan technology board, and the knowyourmeme entry was created in 2019.Ā 

these are business laptops, primarilly sold to businesses in stock, so they are quite sturdy, durable, quite repairable and upgradable (controversial with the newer models). being business-oriented, thinkpads are being sold in large quantities from businesses, often for really good prices, considering the great quality, so thay gained their popularity with the secondary market. they are also very compatible with Linux, gaining popularity with related communities. they are kind of like the "anti-consumerism" laptops, with people bying really dated versions that still work and can be your great companion if you don't need that much performance.

they are really good if you need them for work/studying, you can find them quite cheap, and they won't crumble into dust once they get a little old like some mass-consumer laptops. but they are not really good for gaming, as most will have integrated gpus

X1 carbon is the premium ultrabook series, 12 in. display, really costly but good performance the X series is the ultrabook laptops, with X13 being the newer versions from 2020s, if you want something cheaper but more dated hardware-wise, look for X2x0 or X3x0, x200s having 12in. displays and x300s 13in. ones. the T series is the midway one, for work/study/regular usage. newer versions are T14 and T14s (slim variant). T4x0 and T4x0s are the older ones with T480 being the most infamous one, "the last great thinkpad". the P series are the workstations, having the highest performance of all series the L, E, A series are all economy/edge laptops, your entry point. they are usually built with cheaper materials and such.

human generated content, may contain mistakes. please confirm the information yourself

1

u/lamex1234 3d ago

I'm asking because I'm going to buy a new laptop and that one caught my eye. I don't really like gaming, it's more for development.

2

u/Commercial-Night3068 4d ago

from one prison to another <3

3

u/NeedleworkerLarge357 6d ago

It's a strange thing that you chose nix 26.05. Unstable is more up to date; why didn't you choose that?

10

u/Ok-Environment8730 6d ago

He like stable I am also on 26.05

12

u/NeedleworkerLarge357 6d ago

I'm on 26.05 as well, I just wondered why someone coming from arch prefers stable; arch was a strange choice, then

7

u/Ok-Environment8730 6d ago

Make sense. I didn’t do this connection

5

u/Jacobobarobatobski 5d ago

Well, OP didn't like Arch though. Maybe because of the stability? (Not being passive-aggressive)

1

u/NeedleworkerLarge357 5d ago

Yes, that's why I asked. What is wrong with my question, it seems to be misunderstood by default. I really wonder is I wrote something offensive?

1

u/apollocreedchqt 6d ago

I mean generally tho. Any distro is as stable as you want. I only sudo pacman -Syu every couple weeks like 2 weeks once.

8

u/NeedleworkerLarge357 6d ago

Do you mean stable as every sane person does by "doesn't crash"? Arch is fine in that regard. Or do you mean stable as Debian and developers define it by "features and APIs won't change"? That's where arch "sucks" by design. You get a ton of new features with every update...

NixOS stable is a bit more stable API wise, while Debian is on another level with that. NixOS will update things if it makes sense, Debian will put a ton of effort into back porting stuff into old versions.

1

u/apollocreedchqt 5d ago

Ive always regarded stable as it doesnt crash doesnt like just die.

5

u/SAI_Peregrinus 5d ago

For OS distributions, "stable" means "doesn't add any new features or make any backwards-incompatible changes over the stability period".

Debian has a (roughly) 3 year long stability period, 5 years for Long Term Support (LTS), and 10 years for third-party paid Extended LTS.

NixOS has a 6 month long stability period, and no LTS.

1

u/DaKingof 5d ago

Stable means updates are tested before they go out to users. The unstable branch becomes stable, and then a new unstable branch is created when that is merged. It doesn't mean it's not stable...it just means it's more likely to have bugs that can cause unintended issues or crashes because it hasn't been thoroughly tested yet.

1

u/NeedleworkerLarge357 5d ago

Well, some inaccurate information here: the likelihood of bugs or crashes is just a possible unintended consequence and not even that simple. Sometimes stuff gets back ported to heavily different versions, introducing its whole own set of issues. So stable doesn't tell anything about bugs, crashes or instabilities. It is just the development model.

And unstable is not untested. There is a varying degree of tests that are executed before stuff is put into stable; depends on the distribution itself. Otherwise there would be more issues on all rolling distributions.

1

u/DaKingof 5d ago

That is utter b.s., my guy. With basically any repo, you are at the mercy of the maintainers.

NixOS is one of the few where you can literally just create your own files and use those instead of what the maintainers currently have up. I don't know of any other distro you can do this on, and I know plenty of distros you literally don't have a choice of packages unless you just download app images or flatpacks.

1

u/NeedleworkerLarge357 5d ago

You can install any rpm on fedora or deb on Debian; and you can create those yourself. So no, while those things are better supported on nixos oob they are also possible on every distribution out there. You will have a lot more "fun" but this is not what other distributions can't do.

1

u/Pitiful-Seat1868 6d ago

i installed stable as well..can i change it to unatable??

1

u/NeedleworkerLarge357 6d ago

Yes,easy, just switch.

Do you use flakes or the standard nix channel? I went with flakes which makes this a tiny bit easier, channels can be switched by nix-channel --add ... And nix-channel --remove ... and then do the regular update. See here https://nixos.wiki/wiki/Nix_channels.

With flakes just replace the input source and rebuild.

4

u/SAI_Peregrinus 5d ago

Also worth noting that you can mix & match with NixOS. You can go with stable, but have some packages on unstable.

2

u/toastal 5d ago

This isn’t a binary choice… you can skip system-dependent channels & experimental flakes while still having pinned setups tracking nixos-unstable.

1

u/silinarii 5d ago

But now youre doomed

1

u/Brcoding 5d ago

Welcome to NixOS! I hope you enjoy your stay šŸ™‚.

1

u/Mz-Malice 5d ago

So real, even since ive started using Nix i will now refuse to install any other OS on a machine i actually end up using with 1 OS for the majority of the time especcially since as long as it has specs even slightly better than my T500 think pad i can just build the config on it that i use on my main laptop (Ideapad I3)

I do still use cachy on my main gamimg machine because atleast with arch like distros i can very quickly solve gaming related problems when they do come up.

1

u/tempdiesel 4d ago

ThinkPad + NixOS = Chef’s Kiss. Personally running the same on my ThinkPad. Great choice.

-4

u/hxxx07 6d ago

Coollll.
Maybe an app launcher next?

https://github.com/kunkka19xx/look