modules: update shared Nix config profile

This commit is contained in:
Gabriel Arazas 2024-06-13 13:45:32 +08:00
parent b325840b4a
commit 20c0549706
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,4 @@
{ lib, pkgs, ... }: {
{ config, lib, pkgs, ... }: {
# Set the package for generating the configuration.
nix.package = lib.mkDefault pkgs.nixStable;
@ -21,7 +20,9 @@
#
# Since we're using flakes to make this possible, we need it. Plus, the
# UX of Nix CLI is becoming closer to Guix's which is a nice bonus.
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
experimental-features =
[ "nix-command" "flakes" ]
++ lib.optionals (lib.versionOlder config.nix.package.version "2.22.0") [ "repl-flake" ];
auto-optimise-store = lib.mkDefault true;
flake-registry = "";
};

View File

@ -1,5 +1,4 @@
{ lib, pkgs, ... }: {
{ config, lib, pkgs, ... }: {
# Set the package for generating the configuration.
nix.package = lib.mkDefault pkgs.nixStable;
@ -21,7 +20,9 @@
#
# Since we're using flakes to make this possible, we need it. Plus, the
# UX of Nix CLI is becoming closer to Guix's which is a nice bonus.
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
experimental-features =
[ "nix-command" "flakes" ]
++ lib.optionals (lib.versionOlder config.nix.package.version "2.22.0") [ "repl-flake" ];
auto-optimise-store = lib.mkDefault true;
flake-registry = "";
};