this post was submitted on 05 Feb 2024
828 points (97.0% liked)
linuxmemes
21639 readers
444 users here now
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack members of the community for any reason.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
- These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn. Even if you watch it on a Linux machine.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That doesn't sound too different from the regular Unix paradigm where all your config is stored in your home directory. I've wiped my root partition many times over the last decade but usually everything in my desktop environment is just the same as it was. Aside from migration of dotfiles into .config which was honestly overdue.
Unless NixOS is kind of like Ansible and is a build script for the whole system, package management and all? Haven't tried it myself.
My concern would be slow buildup of unused packages if that's the case. It's nice to wipe out that junk on an upgrade.
I haven't used Ansible but it sounds pretty much like that, basically you write out all the packages you want in a config and it builds the system from that. Very nice in terms of stability and maintainability. I'm very much an amateur so I can't say for sure but I think the unused package issue would still exist on nix.
Exactly, like ansible.
Unused packages aren't typically a problem unless you imperatively change your systems state. Otherwise, If you remove it from your configuration.nix, it's removed when you switch to your next build. Previous builds/generations keep those versions of those packages, which wastes space, but you can specify garbage collection to remove generations older than a month
My only complaint so far is the best way to properly make a development shell for a python project is either with a still somewhat experimental feature called flakes, or a 3rd party solution poetry2nix. Im probably going to switch to using docker/podman for python projects.
On the other hand, pip is the worst package manager, so being incentivized away from it is kind of a plus