2023-08-21 07:07:11 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
...
|
2023-08-31 00:03:07 +02:00
|
|
|
}: let
|
|
|
|
inherit (lib) filterAttrs mkForce;
|
|
|
|
flakes = filterAttrs (name: value: value ? outputs) inputs;
|
|
|
|
in {
|
2023-03-02 07:30:03 +01:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-02-14 00:18:43 +01:00
|
|
|
nix = {
|
|
|
|
gc.automatic = true;
|
2023-06-16 13:48:24 +02:00
|
|
|
package = pkgs.nixVersions.nix_2_16;
|
2023-07-10 04:59:10 +02:00
|
|
|
settings =
|
|
|
|
{
|
|
|
|
auto-optimise-store = pkgs.stdenv.isLinux;
|
|
|
|
experimental-features = ["auto-allocate-uids" "flakes" "nix-command" "repl-flake"];
|
|
|
|
trusted-users = ["@staff" "@sudo" "@wheel"];
|
|
|
|
use-xdg-base-directories = true;
|
|
|
|
warn-dirty = false;
|
|
|
|
}
|
|
|
|
// ((import ../../../flake.nix).nixConfig);
|
2023-08-31 00:03:07 +02:00
|
|
|
registry =
|
|
|
|
builtins.mapAttrs
|
|
|
|
(name: v: {flake = v;})
|
|
|
|
flakes;
|
2023-02-13 23:33:09 +01:00
|
|
|
};
|
2023-08-21 07:07:11 +02:00
|
|
|
|
|
|
|
# set nixPath to the flake nixpkgs without channels
|
2023-08-31 00:03:07 +02:00
|
|
|
environment.variables.NIX_PATH = mkForce "nixpkgs=${inputs.nixpkgs.outPath}";
|
2023-02-13 23:33:09 +01:00
|
|
|
}
|