There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

chayleaf , to linux in NixOs why?

You know why reinstalling Linux is annoying? Because you have to remember (or write down) every piece of config you ever changed. Dark mode in KDE? Change it in settings. Some systemd unit tweak? Change it in /etc/systemd. Want to run some commands at boot? Use systemd (see above), or write an initrd hook (distro-specific). Need a specific version of an app? Need some files in /opt? Need certain packages installed? You better remember to do that!

In NixOS, you “reinstall” your OS every time you change a single setting, because reinstalling NixOS isn’t scary at all - everything that needs to be changed is configured in your configuration - just make sure /home and /var/lib are saved (and perhaps some other dirs, I have root on tmpfsand bind mount all persistent files I need to ensure I know what needs to be preserved on clean reinstall and what doesn’t).

Want to move it to a different PC? No problem, copy the files in /home and /var/lib and simply install NixOS using the configuration you already have on the new PC. Want to create a boot option with slightly different kernel or kernel options, or maybe even another DE? No problem, specializations got you covered.

And of course, this also means it’s easy to share configurations for specific use cases. Want to run on some specific hardware that doesn’t work out of the box? Perhaps nixos-hardware got you covered. Want a certain program set up? Maybe there’s already a NixOS option for system-level config or a home-manager option for user-level config, worst case you can write it yourself and share for everyone else in the community using flakes, and maybe open a PR to nixpkgs/home-manager. Want to share configuration between systems? That’s easy, put them in the same flake and write a common module shared between all of your systems.

Basically, if you’re fine with whatever comes out of the box in any Linux distro, you don’t need NixOS, but if you need configuration, if you run servers, it is a lifesaver. I switched from Arch, no regrets. I run my personal laptop, my server, which I effortlessly migrated from Oracle Cloud when they quit Russia, and my router on it, here’s my NixOS/home-manager config.

The only downsides are the learning curve and the fact that you can’t “just” run programs that expect a FHS layout. You can do it with workarounds like steam-run or appimage-run anyway, but overall be prepared to learn to package stuff for NixOS. Also if you have no experience with functional programming, the Nix language may be hard to understand at first.

0therbit5 OP ,

Really exhaustive comment, I can say from my side that for my daily use is not my distro but apply on a server side is not bad at all!! Thanks 😊

pinchcramp ,
@pinchcramp@lemmy.dbzer0.com avatar

This is probably the most comprehensive, yet easily understandable explanation of NixOS I’ve ever read.

Thank you very much

socsa ,

So it’s basically a more formalized API version of preinstall and postinstall scripts.

chayleaf ,

kinda, preinstall/postinstall scripts expect to run on a clean system, while NixOS can be changed without a full system wipe, you don’t need to redownload/rebuild anything you’ve already downloaded/built.

rah ,

Want to move it to a different PC? No problem, copy the files in /home and /var/lib and simply install NixOS using the configuration you already have on the new PC.

How/can one separate some changes from others? I don’t want my server to be identical to my laptop. How does one install a package which won’t be installed on a different machine at a later time?

chayleaf ,

Simply use two different configurations? The more interesting question is how to share stuff between configs.

Each piece of config is a NixOS module. You can include some NixOS modules in one system’s config, but not the other.

dai ,

You are able to have different configurations spun up from the one file by using machine names. My main machine is pretty barebones with minimal applications, but my laptop is even more minimal.

I can’t move away from Proxmox right now for my servers but the option is there if I want to spin up some containers using similar Configs and such.

Ketchup , to ukcasual in What a Steal!

Hey! That’s a more proportional discount than u/Spez applied to reddits API changes when he assured Christian that they would come to a price that was “based in reality”

neoney , to programmerhumor in JavaScript Drinking Game
@neoney@lemmy.neoney.dev avatar
InverseParallax , to linux in Desktop environment Ram consumption: Cinnamon, Gnome, KDE, Mate, LXDE, LXQT

Love kde, but it needs to get that bloat down. Still snappy though.

kamenoko , to programmerhumor in What's inside that package.json

data.do.you.really.want.it.cause.its.hidden.behind.twenty.randomly.generated.data.layers.read()

Kosta554 , to programmerhumor in What's inside that package.json

It do be like that sometimes.

k3yword , to programmerhumor in Windows: not even once

I just want to comment on this because it’s 2yrs old.

clearedtoland ,

I stared at it wondering if that was part of the screenshot. Is Lemmy even 2 years old?

k3yword ,

Apparently it was created in 2019?

fibojoly , to programmerhumor in Socrates Documentation Model

All I know is that I know nothing. RTFM.

Gentoo1337 , to linux in The 5 stages of Linux gaming
@Gentoo1337@sh.itjust.works avatar

Lmao

vlad76 ,

That’s why I still dual boot. Linux is my default, but I ain’t got time to spend 3 hours making a game work. I stop at 2:59.

brayd ,
@brayd@discuss.tchncs.de avatar

“I stop at 2:59” lmao

zazaserty ,
@zazaserty@discuss.tchncs.de avatar

I mean apart from roblox most games work

vlad76 ,

This is true. Most games work out of the box on Steam these days.

perishthethought , to programmerhumor in What's inside that package.json

I laughed. Thanks for that.

QuazarOmega , to programmerhumor in non-deterministic finite automata being relatable

This is too advanced, where is my code monkey humor??

/s (but I still don’t know what those words together mean)

Napain OP ,

the joke is that it just sounds funny, like PHARDNESS

QuazarOmega ,

Ohh ok lmao, I thought the joke was something very technical

cranberryjam , to programmerhumor in non-deterministic finite automata being relatable
@cranberryjam@lemmy.blahaj.zone avatar

I’m having flashbacks to my theory to computation class. So much latex. So many proofs…

Brisolo32 , to programmerhumor in SleepSort

This is genius

InverseParallax , to linux in NixOs why?

Cloud systems invented this concept called ‘declarative environments’ basically you describe the software in a container or os and the container orchestrator builds it for you. The same every time, you just give it a recipe.

Nixos is that for desktops.

It takes away a lot of the bullshit, experimentation and breaking of a classic os.

That being said, I always considered that the fun part, so ymmv.

It’s like docker for server applications, it takes care of everything for you behind the scenes and just works (ish).

Sinthoras39 , to programmerhumor in The real reason that made me join PeerTube
@Sinthoras39@discuss.tchncs.de avatar

I felt offended when the same thing happened to me.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines