2024-02-04 21:51:11 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
...
|
2025-05-11 22:49:04 +02:00
|
|
|
}:
|
|
|
|
{
|
2024-02-04 21:51:11 +01:00
|
|
|
nix = {
|
2025-05-11 22:49:04 +02:00
|
|
|
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
2024-02-04 21:51:11 +01:00
|
|
|
|
|
|
|
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
|
|
|
|
2025-03-01 22:21:00 +01:00
|
|
|
optimise.automatic = true;
|
|
|
|
|
2024-02-04 21:51:11 +01:00
|
|
|
settings = {
|
2025-05-11 22:49:04 +02:00
|
|
|
trusted-users = [ "root" ] ++ config.users.normalUsers;
|
2025-03-01 22:21:00 +01:00
|
|
|
experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
];
|
2024-02-04 21:51:11 +01:00
|
|
|
auto-optimise-store = true;
|
2025-03-23 22:48:46 +01:00
|
|
|
flake-registry = "";
|
|
|
|
use-xdg-base-directories = true;
|
2024-02-04 21:51:11 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
}
|