Giter Club home page Giter Club logo

silent-wqh / nixos-and-flakes-book Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryan4yin/nixos-and-flakes-book

0.0 0.0 0.0 1.43 MB

:hammer_and_wrench: :heart: Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place! 想要学习使用 NixOS 与 Flakes 吗?在寻找一份新手友好的教程?那你可来对地方了!

Home Page: https://nixos-and-flakes.thiscute.world

License: Creative Commons Attribution Share Alike 4.0 International

Nix 100.00%

nixos-and-flakes-book's Introduction

NixOS & Flakes Book 🛠️ ❤️

Want to know NixOS & Flakes in detail? Looking for a beginner-friendly tutorial? Then you've come to the right place!

An unofficial and opinionated NixOS & Flakes 📖 for beginners: https://nixos-and-flakes.thiscute.world/

中文版: https://nixos-and-flakes.thiscute.world/zh/

If you're using macOS, ryan4yin/nix-darwin-kickstarter may be a good starting point for you, you can learn how to use Nix with this book and take nix-darwin-kickstarter as a start point to build your own Nix configuration.

Feedback and Discussion

I’m not an expert on NixOS, and I’ve only been using NixOS for less than 9 months until now(2024-02), so there must be some misconceptions or inappropriate examples in the book. If anyone finds anything incorrect or have any questions / suggestions, just let me know about it by open an issue or join the discussion on GitHub Discussions, I'm glad continue to optimize the content of this book.

The reason why I wrote this little book was only because no one in the community did it for me, who was a beginner at the time, so I chose to do it myself. Even though I knew I could make mistakes, it's much better than do nothing.

My hope is that this book can help more people, enabling them to experience the joys of NixOS. Hope you like it!

Introduction to Flakes

The flakes experimental feature is a major development for Nix, it introduces a policy for managing dependencies between Nix expressions, it improves reproducibility, composability and usability in the Nix ecosystem. Although it's still an experimental feature, flakes have been widely used by the Nix community.1

Flakes is one of the most significant changes the nix project has ever seen.2

A Word of Caution about Flakes

The benefits of Flakes are evident, and the entire NixOS community has embraced it wholeheartedly. Currently, more than half of the users utilize Flakes3, providing assurance that Flakes will not be deprecated.

⚠️ However, it's important to note that Flakes is still an experimental feature. Some issues persist, and there is a possibility of introducing breaking changes during the stabilization process. The extent of these breaking changes remains uncertain.

Overall, I strongly recommend everyone to use Flakes, especially since this book revolves around NixOS and Flakes. However, it's crucial to be prepared for potential problems that may arise due to forthcoming breaking changes.

Contribution

A real community, however, exists only when its members interact in a meaningful way that deepens their understanding of each other and leads to learning.

If you find something which doesn't make sense, or something doesn't seem right, please make a pull request and please add valid and well-reasoned explanations about your changes or comments.

Before adding a pull request, please see the contributing guidelines.

Thank you to all the people who already contributed to this project!

References

License

NixOS & Flakes Book © 2023 by Ryan Yin is licensed under CC BY-SA 4.0

Footnotes

  1. Flakes - NixOS Wiki

  2. Flakes are such an obviously good thing

  3. Draft: 1 year roadmap - NixOS Foundation

nixos-and-flakes-book's People

Contributors

ryan4yin avatar adda0 avatar xtian avatar gabyx avatar sdelrio avatar d3spairx avatar anxsec avatar monsterobserver avatar mrunhap avatar cjlarose avatar clouder0 avatar r0b0ty avatar dbeley avatar fabaff avatar fdietze avatar giorgiga avatar gregorygandy avatar blmhemu avatar ityspace avatar idrisr avatar joncol avatar kourtni avatar yukicoco avatar ldicarlo avatar matthieu-laurent39 avatar the-mikedavis avatar koppor avatar riffingonsoftware avatar karoofish avatar seerlite avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.