mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-03-14 12:18:59 +00:00
modules: update shared Nix config profile
This commit is contained in:
parent
b325840b4a
commit
20c0549706
@ -1,5 +1,4 @@
|
|||||||
{ lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
# Set the package for generating the configuration.
|
# Set the package for generating the configuration.
|
||||||
nix.package = lib.mkDefault pkgs.nixStable;
|
nix.package = lib.mkDefault pkgs.nixStable;
|
||||||
|
|
||||||
@ -21,7 +20,9 @@
|
|||||||
#
|
#
|
||||||
# Since we're using flakes to make this possible, we need it. Plus, the
|
# 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.
|
# 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;
|
auto-optimise-store = lib.mkDefault true;
|
||||||
flake-registry = "";
|
flake-registry = "";
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{ lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
# Set the package for generating the configuration.
|
# Set the package for generating the configuration.
|
||||||
nix.package = lib.mkDefault pkgs.nixStable;
|
nix.package = lib.mkDefault pkgs.nixStable;
|
||||||
|
|
||||||
@ -21,7 +20,9 @@
|
|||||||
#
|
#
|
||||||
# Since we're using flakes to make this possible, we need it. Plus, the
|
# 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.
|
# 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;
|
auto-optimise-store = lib.mkDefault true;
|
||||||
flake-registry = "";
|
flake-registry = "";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user