30 lines
669 B
Nix
30 lines
669 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
nix =
|
|
let
|
|
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
|
in
|
|
{
|
|
package = pkgs.nix;
|
|
|
|
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
|
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
|
|
|
# set the path for channels compat
|
|
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
|
|
|
settings.experimental-features = "nix-command flakes";
|
|
};
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
home.stateVersion = "25.11";
|
|
}
|