mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-12-30 18:48:50 +01:00
fix: errors introduced by chatgpt
This commit is contained in:
parent
11e30d9088
commit
d6cce1383e
@ -21,12 +21,7 @@ However, as Flakes is still an experimental feature, it is not enabled by defaul
|
|||||||
# Omit the previous configuration...
|
# Omit the previous configuration...
|
||||||
|
|
||||||
# Enable Flakes and the new command-line tool
|
# Enable Flakes and the new command-line tool
|
||||||
nix = {
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
package = pkgs.nixFlakes;
|
|
||||||
extraOptions = ''
|
|
||||||
experimental-features = nix-command flakes
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# Flakes use Git to pull dependencies from data sources, so Git must be installed first
|
# Flakes use Git to pull dependencies from data sources, so Git must be installed first
|
||||||
@ -246,4 +241,4 @@ To customize the cache source, we must add the related configuration in `flake.n
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
After making the modifications, run `sudo nixos-rebuild switch` to apply the updates.
|
After making the modifications, run `sudo nixos-rebuild switch` to apply the updates.
|
||||||
|
Loading…
Reference in New Issue
Block a user