this post was submitted on 24 Aug 2023
146 points (79.9% liked)

Linux

45573 readers
808 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

For me

Mint

Manjaro

Zorin

Garuda

Neon

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 10 months ago (1 children)

I think one of the issues with nixos learning materials is that they eschew talking about how to write your own packages. but to really understand anything, you have to get your head around writing and modifying packages. in nix, a package is just a build step that can do I/O during particular phases and produces an output to the nix store, so they're an essential building block for anything that isn't utterly trivial.

the other major stumbling block is working out how modules (the things that let you write config for the system) can actually be composed. adding a new module to imports gives you new config params you can set so you can organize your system config in terms of modules and packages to make things work the way you like.

Nix Pills are the canonical learning material for packages. I don't know of any good learning material for modules - I learned by working on nixpkgs and another involved project that made extensive use of modules.

lastly, nix config files are written in the nix language and it's a bit idiosyncratic. it almost looks and feels like Haskell but it's slightly different in important ways. there's no way around learning it if you have multiple systems and want to share config between them.

[–] [email protected] 2 points 10 months ago

For learning how to write and modify packages there is the nixpkgs manual, which also contains a section on writing modules.