feat: update readme, adjust nix settings

This commit is contained in:
Ryan Yin
2023-07-30 16:32:05 +08:00
parent a99adf065d
commit 71af10ff3b
3 changed files with 11 additions and 9 deletions

View File

@@ -19,12 +19,14 @@
options = lib.mkDefault "--delete-older-than 1w";
};
# Manual optimise storage: nix-store --optimise
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
nix.settings.auto-optimise-store = true;
# enable flakes globally
nix.settings.experimental-features = ["nix-command" "flakes"];
nix.settings = {
# Manual optimise storage: nix-store --optimise
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
auto-optimise-store = true;
builders-use-substitutes = true;
# enable flakes globally
experimental-features = ["nix-command" "flakes"];
};
# Allow unfree packages
nixpkgs.config.allowUnfree = lib.mkDefault false;