From d6cce1383e770e66f28f10c7e4d085dc79889925 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 8 Jul 2023 12:42:00 +0800 Subject: [PATCH] fix: errors introduced by chatgpt --- docs/nixos-with-flakes/nixos-with-flakes-enabled.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md index 84c599e..573afdb 100644 --- a/docs/nixos-with-flakes/nixos-with-flakes-enabled.md +++ b/docs/nixos-with-flakes/nixos-with-flakes-enabled.md @@ -21,12 +21,7 @@ However, as Flakes is still an experimental feature, it is not enabled by defaul # Omit the previous configuration... # Enable Flakes and the new command-line tool - nix = { - package = pkgs.nixFlakes; - extraOptions = '' - experimental-features = nix-command flakes - ''; - }; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = with pkgs; [ # 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. \ No newline at end of file +After making the modifications, run `sudo nixos-rebuild switch` to apply the updates.