Difference between revisions of "Talk:Flakes"
From NixOS Wiki
(Should we update this for Nix 2.8?) |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A lot of the attributes listed in the schema are out of date. | A lot of the attributes listed in the schema are out of date. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | # Using flakes with NixOS | ||
+ | |||
+ | looks like upgrading NixOS when using flakes now requires | ||
+ | |||
+ | ``` | ||
+ | $ nixos-rebuild switch --upgrade --recreate-lock-file | ||
+ | ``` | ||
+ | |||
+ | ---- | ||
+ | |||
+ | I noticed that a lot of people complain that flakes are hard to understand. The first paragraph of this article used to be very confusing and didn't really capture what I feel flakes are truly about. I've rewritten it to be more direct about the local locking of dependencies, which is what I see as the truly essential flake feature. -- [[User:Sid-code]] |
Latest revision as of 01:19, 19 March 2024
A lot of the attributes listed in the schema are out of date.
- Using flakes with NixOS
looks like upgrading NixOS when using flakes now requires
``` $ nixos-rebuild switch --upgrade --recreate-lock-file ```
I noticed that a lot of people complain that flakes are hard to understand. The first paragraph of this article used to be very confusing and didn't really capture what I feel flakes are truly about. I've rewritten it to be more direct about the local locking of dependencies, which is what I see as the truly essential flake feature. -- User:Sid-code